Merge branch 'dev' into chenxuelian
This commit is contained in:
@@ -68,7 +68,14 @@
|
||||
this.$apiServe.getUser().then(res => {
|
||||
console.log('个人信息==', res.data);
|
||||
if (res.data.msg == "登录超时,请重新登录") {
|
||||
this.isLoad = false
|
||||
if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
|
||||
this.$toast.warn('登录失败请重试')
|
||||
this.isLoad = false
|
||||
// uni.navigateTo({
|
||||
// url: '../../pages/my/login/login'
|
||||
// })
|
||||
return
|
||||
}
|
||||
}
|
||||
var data = res.data.data
|
||||
this.avatar = data.avatar
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
name: '',
|
||||
phone: '',
|
||||
showM: false,
|
||||
//部分产品无权限访问,需升级VIP
|
||||
needAsk: '',
|
||||
//会员中心的用户名旁边不显示edit图标
|
||||
show: false,
|
||||
content: `请保持手机畅通<br>
|
||||
@@ -30,8 +32,13 @@
|
||||
commitment: '承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置'
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
console.log('ask', option.ask);
|
||||
if (option.ask == 1) {
|
||||
this.needAsk = option.ask
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 联系客服模态框
|
||||
handleSureClick() {
|
||||
let name = this.$refs.nameAndphone.model.userInfo.name
|
||||
let phone = this.$refs.nameAndphone.model.userInfo.phone
|
||||
@@ -47,14 +54,15 @@
|
||||
} else if (res.data.code == 20005) {
|
||||
this.$toast.warn('请完善数据')
|
||||
}
|
||||
|
||||
}).finally(_ => {})
|
||||
},
|
||||
confirm() {
|
||||
this.showM = false
|
||||
// uni.switchTab({
|
||||
// url: '/pages/my/my'
|
||||
// })
|
||||
if (this.needAsk == 1) {
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,6 +60,10 @@
|
||||
<login @success="reOnLoad()" @fail="failToLoad()"></login>
|
||||
</u-overlay>
|
||||
</view>
|
||||
<u-modal :show="showM" :content='content' closeOnClickOverlay="false" showCancelButton="true"
|
||||
confirmText="升级VIP" @confirm="confirm" confirmColor="#0EBB5B">
|
||||
<rich-text :nodes="content"></rich-text>
|
||||
</u-modal>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -80,7 +84,9 @@
|
||||
tagsArray: [],
|
||||
showHeart: false,
|
||||
detailList: [],
|
||||
isLoad: true
|
||||
isLoad: true,
|
||||
showM: false,
|
||||
content: '您暂无权限访问,请升级VIP访问'
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
@@ -104,8 +110,8 @@
|
||||
if (res.data.data.thumb) {
|
||||
this.isThumb = true
|
||||
}
|
||||
if (res.data.code == 0) {
|
||||
this.$toast.warn('没有权限访问')
|
||||
if (res.data.msg == "没有权限访问" && uni.getStorageSync('loginToken')) {
|
||||
this.showM = true
|
||||
}
|
||||
if (res.data.data) {
|
||||
let detail = res.data.data
|
||||
@@ -162,6 +168,11 @@
|
||||
},
|
||||
failToLoad() {
|
||||
this.$toast.warn('登录失败请重试')
|
||||
},
|
||||
confirm() {
|
||||
uni.navigateTo({
|
||||
url: '../../../packageMy/memberCenter/memberCenter?ask=' + 1
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user