微信小程序直播分享优化
parent
4aacfea470
commit
2296513a44
|
|
@ -94,7 +94,8 @@
|
||||||
</component-popup>
|
</component-popup>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 分享 -->
|
||||||
<component-share-popup ref="share"></component-share-popup>
|
<component-share-popup ref="share"></component-share-popup>
|
||||||
</view>
|
</view>
|
||||||
<view v-else>
|
<view v-else>
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
<!-- 导航 -->
|
<!-- 导航 -->
|
||||||
<view class="nav pf pa-w left-0 right-0 bottom-0 wh-auto">
|
<view class="nav pf pa-w left-0 right-0 bottom-0 wh-auto">
|
||||||
<view class="padding-main flex-row jc-sb">
|
<view class="padding-main flex-row jc-sb">
|
||||||
<button class="share-friend-submit cr-white text-size-sm round" type="default" hover-class="none" open-type="share">
|
<button class="share-friend-submit cr-white text-size-sm round" type="default" hover-class="none" @tap="share_event">
|
||||||
<image class="item-icon va-m margin-right-sm" :src="static_url + 'nav-share-friend-icon.png'" mode="widthFix"></image>
|
<image class="item-icon va-m margin-right-sm" :src="static_url + 'nav-share-friend-icon.png'" mode="widthFix"></image>
|
||||||
<text class="va-m">分享</text>
|
<text class="va-m">分享</text>
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -46,7 +46,10 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 结尾 -->
|
<!-- 结尾 -->
|
||||||
<component-bottom-line :propStatus="data_bottom_line_status"></component-bottom-line>
|
<component-bottom-line :propStatus="data_bottom_line_status"></component-bottom-line>
|
||||||
|
|
||||||
|
<!-- 分享 -->
|
||||||
|
<component-share-popup ref="share"></component-share-popup>
|
||||||
</view>
|
</view>
|
||||||
<view v-else>
|
<view v-else>
|
||||||
<!-- 提示信息 -->
|
<!-- 提示信息 -->
|
||||||
|
|
@ -57,7 +60,8 @@
|
||||||
<script>
|
<script>
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
import componentNoData from '../../../../components/no-data/no-data';
|
import componentNoData from '../../../../components/no-data/no-data';
|
||||||
import componentBottomLine from '../../../../components/bottom-line/bottom-line';
|
import componentBottomLine from '../../../../components/bottom-line/bottom-line';
|
||||||
|
import componentSharePopup from '../../../../components/share-popup/share-popup';
|
||||||
|
|
||||||
var static_url = app.globalData.get_static_url('weixinliveplayer', true);
|
var static_url = app.globalData.get_static_url('weixinliveplayer', true);
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -77,7 +81,8 @@
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
componentNoData,
|
componentNoData,
|
||||||
componentBottomLine,
|
componentBottomLine,
|
||||||
|
componentSharePopup
|
||||||
},
|
},
|
||||||
props: {},
|
props: {},
|
||||||
|
|
||||||
|
|
@ -216,7 +221,16 @@
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 分享开启弹层
|
||||||
|
share_event(e) {
|
||||||
|
if ((this.$refs.share || null) != null) {
|
||||||
|
this.$refs.share.init({
|
||||||
|
share_info: this.share_info
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue