|
@@ -5,11 +5,11 @@
|
|
@touchmove.prevent.stop>
|
|
@touchmove.prevent.stop>
|
|
<view class="activityShow">
|
|
<view class="activityShow">
|
|
<view class="activityShow-one">
|
|
<view class="activityShow-one">
|
|
- <image src="../../static/logo.png" mode="" class="activityShow-one-img"></image>
|
|
|
|
|
|
+ <image :src="avatar" mode="" class="activityShow-one-img"></image>
|
|
</view>
|
|
</view>
|
|
<view class="activityShow-two">
|
|
<view class="activityShow-two">
|
|
<image src="../../static/activity/beijingtwo.png" mode="" class="activityShow-two-img"></image>
|
|
<image src="../../static/activity/beijingtwo.png" mode="" class="activityShow-two-img"></image>
|
|
- <text class="activityShow-two-text ells-one">张三</text>
|
|
|
|
|
|
+ <text class="activityShow-two-text ells-one">{{ nickName }}</text>
|
|
</view>
|
|
</view>
|
|
<view class="activityShow-three">邀请您一起免费抽奖</view>
|
|
<view class="activityShow-three">邀请您一起免费抽奖</view>
|
|
<image class="activityShow-four" src="../../static/activity/tupian.png" mode=""></image>
|
|
<image class="activityShow-four" src="../../static/activity/tupian.png" mode=""></image>
|
|
@@ -65,8 +65,20 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
closeShow: false, //邀请助力成功隐藏
|
|
closeShow: false, //邀请助力成功隐藏
|
|
|
|
+ avatar: '', //用户头像
|
|
|
|
+ nickName: '', //用户昵称
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ created() {
|
|
|
|
+ if(this.inviteCode){
|
|
|
|
+ $http.post(`/api/v1/mp/user/marketing/userInfo/${this.inviteCode}`, {}).then(res=>{
|
|
|
|
+ if(res.code == 0) {
|
|
|
|
+ this.avatar = env.filePublic + res.data.avatar.split(',')[0] + '?imageView2/2/w/170'
|
|
|
|
+ this.nickName = res.data.nickName
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
//关闭
|
|
//关闭
|
|
close() {
|
|
close() {
|