update
This commit is contained in:
parent
9047f40c97
commit
b9b0707544
@ -182,7 +182,7 @@
|
||||
<!-- 访客弹框-->
|
||||
</visitorModel>
|
||||
<canvas canvas-id="shareCanvas" class="canvas" style="width: {{width}}px; height: {{height}}px; position: fixed; top: -999999px;"></canvas>
|
||||
<loginTips :tokenShow.sync="tokenShow" @loginCut.user="loginCut"></loginTips>
|
||||
<!-- <loginTips :tokenShow.sync="tokenShow" @loginCut.user="loginCut"></loginTips>-->
|
||||
|
||||
<chooseImageTips :chooseShow.sync="chooseShow" :jumpString.sync="jumpString" :photo.sync="user.photo" @hideCut.user="hideCut"></chooseImageTips>
|
||||
<loginDialog :loginShow="loginShow" @hiddenLogin="hiddenLogin"></loginDialog>
|
||||
@ -389,16 +389,16 @@
|
||||
vm.is_base_info = getApp().$wepy.$options.globalData.is_base_info
|
||||
// vm.getorderDetail()
|
||||
console.log('33333JJJJ')
|
||||
if (!vm.token) {
|
||||
vm.loginShow = true
|
||||
wepy.$instance.pageLogin().then((data) => {
|
||||
vm.token = data.token
|
||||
vm.loginShow = false
|
||||
vm.page = 1
|
||||
vm.onShow()
|
||||
})
|
||||
return
|
||||
}
|
||||
// if (!vm.token) {
|
||||
// vm.loginShow = true
|
||||
// wepy.$instance.pageLogin().then((data) => {
|
||||
// vm.token = data.token
|
||||
// vm.loginShow = false
|
||||
// vm.page = 1
|
||||
// vm.onShow()
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
|
||||
async function timi(res) {
|
||||
// await vm.getNewCount()
|
||||
@ -717,7 +717,9 @@
|
||||
let titles = ['好友', '关注', '粉丝', '访客'], {is_base_info} = app.globalData,
|
||||
vm = this, {id} = wx.getStorageSync('userInfo')
|
||||
// 校验是否完成注册资料
|
||||
console.log(vm.$signInVerify(), 'vm.$signInVerify()===')
|
||||
if (!vm.$signInVerify()) {
|
||||
console.log('000')
|
||||
vm.loginShow = true
|
||||
return
|
||||
}
|
||||
@ -752,10 +754,10 @@
|
||||
loginCut(e) {
|
||||
this.loginShow = e.loginShow
|
||||
},
|
||||
loginDialogCut(e) {
|
||||
// this.$parent.getEvent(this.config.navigationBarTitleText, `点击暂不登录`)
|
||||
this.loginShow = e.loginShow
|
||||
},
|
||||
// loginDialogCut(e) {
|
||||
// // this.$parent.getEvent(this.config.navigationBarTitleText, `点击暂不登录`)
|
||||
// this.loginShow = e.loginShow
|
||||
// },
|
||||
hideCut(e) {
|
||||
wx.showTabBar({
|
||||
animation: true
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
</block>
|
||||
</view>
|
||||
<view class="font_24 white flo_l" style="color: #f7e4ad;width: 70%; ">
|
||||
{{user.deadline?user.deadline+'到期':'未激活'}}
|
||||
{{user.deadline_str?user.deadline_str+'到期':'未激活'}}
|
||||
</view>
|
||||
<swiper class="card-swiper" circular="true" bindchange="cardSwiper">
|
||||
<swiper-item v-for="(item,index) in rankList" :key="index" class="{{cardCur==index?'cur':''}}" @tap="showFn(index)">
|
||||
@ -240,15 +240,15 @@
|
||||
vm.$get({url: `${service.host}/rank/list`}).then(({code, data}) => {
|
||||
vm.user = data.rank_info
|
||||
let {type, is_subscribe} = wx.getStorageSync('userInfo')
|
||||
let userInfo = {
|
||||
nickName: vm.user.nickname,
|
||||
avatarUrl: vm.user.avatar,
|
||||
type,
|
||||
id: vm.user.id,
|
||||
is_subscribe,
|
||||
rank_id: vm.user.rank_id
|
||||
}
|
||||
wx.setStorageSync('userInfo', userInfo)
|
||||
// let userInfo = {
|
||||
// nickName: vm.user.nickname,
|
||||
// avatarUrl: vm.user.avatar,
|
||||
// type,
|
||||
// id: vm.user.id,
|
||||
// is_subscribe,
|
||||
// rank_id: vm.user.rank_id
|
||||
// }
|
||||
// wx.setStorageSync('userInfo', userInfo)
|
||||
vm.specialVIP = data.ranks
|
||||
console.log(data, 'aaaaaaaa')
|
||||
vm.rankList = []
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
</block>
|
||||
</view>
|
||||
<view class="font_24 white flo_l" style="color: #f7e4ad;width: 70%; ">
|
||||
{{user.deadline?user.deadline+'到期':'未开通'}}
|
||||
{{user.deadline_str?user.deadline_str+'到期':'未开通'}}
|
||||
</view>
|
||||
<swiper class="card-swiper" circular="true" previous-margin="1px" bindchange="cardSwiper" current="{{cardCur}}">
|
||||
<swiper-item v-for="(item,index) in rankList" :key="index" class="{{cardCur==index?'cur':''}}" @tap="showFn(index)">
|
||||
@ -258,15 +258,15 @@
|
||||
// vm.payData.remain_amount = data.remain_amount
|
||||
// vm.payData.coin = data.coin
|
||||
let {type, is_subscribe} = wx.getStorageSync('userInfo')
|
||||
let userInfo = {
|
||||
nickName: data.nickname,
|
||||
avatarUrl: data.avatar,
|
||||
type,
|
||||
id: data.id,
|
||||
is_subscribe,
|
||||
rank_id: data.rank_id
|
||||
}
|
||||
wx.setStorageSync('userInfo', userInfo)
|
||||
// let userInfo = {
|
||||
// nickName: data.nickname,
|
||||
// avatarUrl: data.avatar,
|
||||
// type,
|
||||
// id: data.id,
|
||||
// is_subscribe,
|
||||
// rank_id: data.rank_id
|
||||
// }
|
||||
// wx.setStorageSync('userInfo', userInfo)
|
||||
console.log(data)
|
||||
})
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user