diff --git a/components/myAvatar/myAvatar.vue b/components/myAvatar/myAvatar.vue index bb648e4..46926b9 100644 --- a/components/myAvatar/myAvatar.vue +++ b/components/myAvatar/myAvatar.vue @@ -67,7 +67,10 @@ //获取头像昵称和普通会员和VIP会员 getUser() { this.$apiServe.getUser().then(res => { - if (res.data.msg === "登录超时,请重新登录") { + // if (res.data.msg === "登录超时,请重新登录") { + // this.isLoad = false + // } + if (res.data.code === -1) { this.isLoad = false } var data = res.data.data diff --git a/pages/detail/productsDetail/productsDetail.vue b/pages/detail/productsDetail/productsDetail.vue index 07d1912..d905628 100644 --- a/pages/detail/productsDetail/productsDetail.vue +++ b/pages/detail/productsDetail/productsDetail.vue @@ -1,6 +1,6 @@ @@ -120,7 +122,7 @@ showCall: false, mobile: '', updateContent: '您暂无权限访问,请升级VIP访问', - updatingContent: '升级VIP,正在审核中' + updatingContent: '升级VIP,正在审核中', } }, onLoad(option) { @@ -139,9 +141,12 @@ //获取详情信息 getProductDetail() { this.$apiServe.getProductDetail(this.id).then(res => { - console.log('产品详情', res.data); + console.log('产品详情', res); let detail = res.data.data let dataCode = res.data.code + if (!detail) { + this.isLoad = false + } //授权登录拦截 if (dataCode == 0 && detail.mytpe == 1) { this.isLoad = false @@ -160,7 +165,6 @@ if (detail.tags) { detail.tags = detail.tags.split(',') } - //点赞数 detail.thumb = parseInt(detail.thumb) + parseInt(detail.thumbcount) this.detailList = detail } @@ -395,7 +399,7 @@ .footer { - position: absolute; + position: fixed; bottom: 0; width: 100%; height: 100rpx;