| xqd
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
|
- <view class="app-my-share" v-if="userInfo.parent_id">
|
|
|
+ <view class="app-my-share" v-if="shareInfo.parent_id">
|
|
|
<view class="share-info">
|
|
|
<view class="headimg">
|
|
|
- <image :src="userInfo.identity.parent_headimg"></image>
|
|
|
+ <image :src="shareInfo.parent_headimg"></image>
|
|
|
</view>
|
|
|
- <text class="nickname">{{userInfo.identity.parent_name}}为您服务</text>
|
|
|
+ <text class="nickname">{{shareInfo.parent_name}}为您服务</text>
|
|
|
<view class="contact" @click="showQrCode">
|
|
|
<image src="../../../static/image/icon/cash/icon-wechat.png"></image> 联系
|
|
|
</view>
|
| xqd
@@ -16,14 +16,14 @@
|
|
|
</view>
|
|
|
<view class="share">
|
|
|
<view class="headimg">
|
|
|
- <image :src="userInfo.identity.parent_headimg"></image>
|
|
|
+ <image :src="shareInfo.parent_headimg"></image>
|
|
|
</view>
|
|
|
<view class="nickname">
|
|
|
- <view>{{userInfo.identity.parent_name}}</view>
|
|
|
+ <view>{{shareInfo.parent_name}}</view>
|
|
|
<view class="desc">加我微信,随时为您服务</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <image class="qrcode" :src="userInfo.identity.parent_qr_code"></image>
|
|
|
+ <image class="qrcode" :src="shareInfo.parent_qr_code"></image>
|
|
|
<view class="saoyisao">扫一扫上面的二维码图案,加我微信</view>
|
|
|
</div>
|
|
|
|
| xqd
@@ -46,7 +46,7 @@
|
|
|
},
|
|
|
data(){
|
|
|
return {
|
|
|
- showQrCodeStatus: false
|
|
|
+ showQrCodeStatus: false,
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
| xqd
@@ -78,26 +78,17 @@
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+ },
|
|
|
+ onLoad(){
|
|
|
+
|
|
|
},
|
|
|
computed: {
|
|
|
- isLogin() {
|
|
|
- return this.$user.isLogin();
|
|
|
- },
|
|
|
...mapState('mallConfig', {
|
|
|
setting: state => state.mall.setting
|
|
|
}),
|
|
|
...mapGetters('mallConfig', {
|
|
|
getTheme: 'getTheme',
|
|
|
}),
|
|
|
- ...mapGetters({
|
|
|
- userInfo: 'user/info',
|
|
|
- }),
|
|
|
- },
|
|
|
- created() {
|
|
|
- if (this.isLogin) {
|
|
|
- this.$store.dispatch('user/info', {refresh: true});
|
|
|
- } else {
|
|
|
- }
|
|
|
},
|
|
|
}
|
|
|
</script>
|