xuhaolan 3 éve
szülő
commit
a270479edd
1 módosított fájl, 7 hozzáadás és 3 törlés
  1. 7 3
      pages/user/share.vue

+ 7 - 3
pages/user/share.vue

@@ -6,7 +6,7 @@
 		<!-- <view class="share" @click="sharePyq()">
 			分享至朋友圈
 		</view> -->
-		<image class="img" src="../../static/img/share03.png" mode=""></image>
+		<image class="img" :src=bgImg mode=""></image>
 		
 
 		<view class="share">
@@ -48,9 +48,11 @@
 	export default {
 		data() {
 			return {
-				isShow:false
+				isShow:false,
+				bgImg:'',//背景图片
 			};
 		},
+		
 		computed: {
 			...mapState('user', ['userInfo'])
 		},
@@ -65,8 +67,10 @@
 						link,
 						title,
 						synopsis,
-						img
+						img,
+						wechat_share_pic
 					} = res.data.data
+					this.bgImg = wechat_share_pic
 					let shareList = {
 						link: `${link}${this.userInfo.phone}`,
 						imgUrl: img,