修改小程序bug

This commit is contained in:
邓洁
2023-02-25 16:32:35 +08:00
parent 8bdb156ec2
commit b439c3dd7a
7 changed files with 36 additions and 31 deletions

View File

@@ -57,15 +57,15 @@
}
},
onLoad(option) {
this.imgUrl = uni.getStorageSync('img_url')
this.imgUrl = uni.getStorageSync('img_url')
this.id = option.id
this.getCertifiedCjDetail()
this.getCsTel()
if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
this.isLoad = false
return
}
this.isLoad = true
// if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
// this.isLoad = false
// return
// }
// this.isLoad = true
},
methods: {
//获取客服电话
@@ -77,10 +77,15 @@
//获取认证厂家详情
getCertifiedCjDetail() {
this.$apiServe.getCertifiedCjDetail(this.id).then(res => {
// console.log('认证厂家详情页', res.data)
if (res.data.code === -1) {
this.isLoad = false
}
console.log('认证厂家详情页', res.data)
if (res.data.data) {
let data = res.data.data
data.images = data.images.split(';')
if (data.images) {
data.images = data.images.split(';')
}
this.detailList = data
} else {
this.$toast.warn('没有更多详情了')