修改部分细节
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
</u-modal>
|
||||
<view style="margin:0 20rpx;">
|
||||
<u-overlay :show="!isLoad">
|
||||
<login @success="reOnLoad()" @fail="failToLoad()"></login>
|
||||
<login :timoutText="timoutText" @success="reOnLoad()" @fail="failToLoad()"></login>
|
||||
</u-overlay>
|
||||
</view>
|
||||
<u-modal :show="showUpdate" :content='content' closeOnClickOverlay="false" showCancelButton="true"
|
||||
@@ -123,6 +123,7 @@
|
||||
mobile: '',
|
||||
updateContent: '您暂无权限访问,请升级VIP访问',
|
||||
updatingContent: '升级VIP,正在审核中',
|
||||
timoutText: 1
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
@@ -144,7 +145,7 @@
|
||||
console.log('产品详情', res);
|
||||
let detail = res.data.data
|
||||
let dataCode = res.data.code
|
||||
if (dataCode === -1) {
|
||||
if (dataCode === -1 || res.statusCode == 500) {
|
||||
this.isLoad = false
|
||||
}
|
||||
//授权登录拦截
|
||||
@@ -165,7 +166,15 @@
|
||||
if (detail.tags) {
|
||||
detail.tags = detail.tags.split(',')
|
||||
}
|
||||
|
||||
// if (detail.is_thumb == 1 && parseInt(detail.thumb) == 1 && parseInt(detail
|
||||
// .thumbcount) == 1) {
|
||||
// console.log('222');
|
||||
// detail.thumb = parseInt(detail.thumbcount)
|
||||
// } else {
|
||||
detail.thumb = parseInt(detail.thumb) + parseInt(detail.thumbcount)
|
||||
// }
|
||||
|
||||
this.detailList = detail
|
||||
}
|
||||
}).finally(_ => {})
|
||||
|
||||
Reference in New Issue
Block a user