|
|
|
|
@ -3,10 +3,13 @@
|
|
|
|
|
:style="{ 'background-image': showBg ? 'url(' + cdnBaseImg + 'share_bg.svg)' : '' }"
|
|
|
|
|
:class="showBg ? 'g_pt_32' : ''">
|
|
|
|
|
<view class="g_flex_row_center g_fs_22 g_c_3 g_fw_600 g_mb_24" v-if="showBg">邀请粉丝(代理)关注我的发单号</view>
|
|
|
|
|
<!-- #ifdef APP-PLUS || MP-WEIXIN -->
|
|
|
|
|
<image :src="shareJobImg" show-menu-by-longpress style="width: 343px; height: 635px; margin: 0 auto; display: block"
|
|
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
|
|
<view v-if="loading" class="g_position_abso g_top_0 g_left_0 g_w_all g_h_all g_flex_row_center flex_center">
|
|
|
|
|
<rh-loading :loading="loading" />
|
|
|
|
|
</view>
|
|
|
|
|
<image v-show="!loading" :src="shareJobImg" show-menu-by-longpress style="width: 343px; height: 635px; margin: 0 auto; display: block"
|
|
|
|
|
mode=""></image>
|
|
|
|
|
<view class="g_text_c g_fs_16 g_mt_12 g_mb_32 g_fw_600">长按图片转发给微信好友</view>
|
|
|
|
|
<view v-show="!loading" class="g_text_c g_fs_16 g_mt_12 g_mb_32 g_fw_600">长按图片转发给微信好友</view>
|
|
|
|
|
<!-- #endif -->
|
|
|
|
|
<!-- #ifdef APP-PLUS -->
|
|
|
|
|
<canvas :style="{
|
|
|
|
|
@ -129,6 +132,7 @@
|
|
|
|
|
appfile: null,
|
|
|
|
|
canvasWidth: 0,
|
|
|
|
|
canvasHeight: 0,
|
|
|
|
|
loading: true,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
props: {
|
|
|
|
|
@ -156,6 +160,7 @@
|
|
|
|
|
// #ifdef MP-WEIXIN || H5
|
|
|
|
|
if (uni.getStorageSync("poster_img")) {
|
|
|
|
|
this.shareJobImg = uni.getStorageSync("poster_img");
|
|
|
|
|
this.loading = false;
|
|
|
|
|
} else {
|
|
|
|
|
if (this.active == 1) {
|
|
|
|
|
uni.showLoading({
|
|
|
|
|
@ -183,6 +188,7 @@
|
|
|
|
|
// console.log("shareJobImg345", newValue);
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
this.loading = false;
|
|
|
|
|
}, 500);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|