修改部分细节

This commit is contained in:
邓洁
2023-04-16 21:22:36 +08:00
parent 3095df7065
commit 1ba6284b78
6 changed files with 22 additions and 13 deletions

View File

@@ -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(_ => {})

View File

@@ -56,10 +56,10 @@
classifyList: [],
tabCurrent: 0,
tabList: [{
name: '上架时间'
name: '新品发布'
},
{
name: '点赞量'
name: '新创意'
},
],
imgUrl: '',

View File

@@ -21,12 +21,12 @@
<news></news>
</view>
<!-- 新品发布 -->
<!-- 企业需求 -->
<view>
<view class="subtitle">
<u--image src="/static/report/hy_icon_fux.png" width="24rpx" height="24rpx" :lazy-load="true">
</u--image>
<text class="xpfb_text text">新品发布</text>
<text class="xpfb_text text">企业需求</text>
</view>
<productsByTime></productsByTime>
</view>
@@ -64,7 +64,7 @@
},
{
src: '/static/report/hy_icon_fu.png',
title: '新品发布'
title: '企业需求'
},
{
src: '/static/report/hy_icon_cj.png',