|
@@ -57,13 +57,13 @@
|
|
|
</van-col>
|
|
|
</van-row>
|
|
|
<van-row class="padding">
|
|
|
- <view style="opacity: 0;">
|
|
|
+ <view style="opacity: 1;">
|
|
|
<van-col span="4" class="lg" offset="2">
|
|
|
<text class="cuIcon-selection"></text>
|
|
|
- 积分:
|
|
|
+ 卡号:
|
|
|
</van-col>
|
|
|
<van-col span="8">
|
|
|
- <text class="text-white text-bold text-xxl jifen">{{ userinfo.experience }}</text>
|
|
|
+ <text class="text-white text-bold text-lg">{{ invite_code }}</text>
|
|
|
</van-col>
|
|
|
</view>
|
|
|
|
|
@@ -163,8 +163,9 @@ export default {
|
|
|
userinfo: {
|
|
|
//判断是否第一次进入小程序 1为是第一次 0为非第一次
|
|
|
},
|
|
|
- first: 0,
|
|
|
- pop_show: false
|
|
|
+ first: false,
|
|
|
+ pop_show: false,
|
|
|
+ invite_code:false
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -177,6 +178,7 @@ export default {
|
|
|
let $res = res.data
|
|
|
$this.userinfo['login_time'] = $res.data
|
|
|
$this.$store.commit('set_userinfo', $this.userinfo)
|
|
|
+ wx.setStorageSync("is_first", false)
|
|
|
reload_userinfo($this)
|
|
|
})
|
|
|
Toast.success($res.errmsg)
|
|
@@ -185,6 +187,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ //修改第一次登录状态
|
|
|
close_pop() {
|
|
|
this.pop_show = false
|
|
|
},
|
|
@@ -207,14 +210,9 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
- let $userinfo = wx.getStorageSync('userinfo')
|
|
|
- if ($userinfo['login_time'] == 0) {
|
|
|
- console.log('第一次登录')
|
|
|
- $this.first = true
|
|
|
- } else {
|
|
|
- $this.first = false
|
|
|
- }
|
|
|
- $this.userinfo = $userinfo
|
|
|
+ $this.first = wx.getStorageSync('is_first')
|
|
|
+ $this.invite_code = wx.getStorageSync('code')
|
|
|
+ reload_userinfo($this)
|
|
|
// else if ($this.userinfo.play_time == 0) {
|
|
|
// $this.pop_show = true
|
|
|
// }
|