解决体验版弹出登录框
This commit is contained in:
@@ -51,8 +51,7 @@
|
||||
this.id = option.id
|
||||
this.getCertifiedCjDetail()
|
||||
this.imgUrl = uni.getStorageSync('img_url')
|
||||
if (!uni.getStorageSync('token') || uni.getStorageSync('token').length === 0) {
|
||||
console.log(uni.getStorageSync('token'))
|
||||
if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
|
||||
this.isLoad = false
|
||||
// uni.navigateTo({
|
||||
// url: '../../pages/my/login/login'
|
||||
@@ -65,7 +64,7 @@
|
||||
//获取认证厂家详情
|
||||
getCertifiedCjDetail() {
|
||||
this.$apiServe.getCertifiedCjDetail(this.id).then(res => {
|
||||
console.log('认证厂家详情页', res.data)
|
||||
// console.log('认证厂家详情页', res.data)
|
||||
if (res.data.data) {
|
||||
let data = res.data.data
|
||||
data.images = data.images.split(';')
|
||||
@@ -76,8 +75,7 @@
|
||||
}).finally(_ => {})
|
||||
},
|
||||
reOnLoad() {
|
||||
console.log('----------------true')
|
||||
if (!uni.getStorageSync('token') || uni.getStorageSync('token').length === 0) {
|
||||
if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
|
||||
this.$toast.warn('登录失败请重试')
|
||||
this.isLoad = false
|
||||
// uni.navigateTo({
|
||||
@@ -86,9 +84,9 @@
|
||||
return
|
||||
}
|
||||
this.isLoad = true
|
||||
this.getCertifiedCjDetail()
|
||||
},
|
||||
failToLoad() {
|
||||
console.log('----------------false')
|
||||
this.$toast.warn('登录失败请重试')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user