修改小程序bug
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
<u-image src="/static/detail/xp_icon_ysc.png" width="34rpx" height="32rpx"
|
||||
@click="cancelHeartTap(detailList.thumb_id)">
|
||||
</u-image>
|
||||
<text class="thumb">{{detailList.thumb==NaN?1:detailList.thumb}} 赞</text>
|
||||
<text class="thumb">{{detailList.thumb}} 赞</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -139,7 +139,7 @@
|
||||
//获取详情信息
|
||||
getProductDetail() {
|
||||
this.$apiServe.getProductDetail(this.id).then(res => {
|
||||
console.log('产品详情mtype', res.data.data);
|
||||
console.log('产品详情', res.data.data);
|
||||
let detail = res.data.data
|
||||
let dataCode = res.data.code
|
||||
//授权登录拦截
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
getBanner() {
|
||||
this.$apiServe.getBanner().then(res => {
|
||||
let banner = res.data.data
|
||||
console.log('轮播图', banner);
|
||||
console.log('轮播图', res.data);
|
||||
if (banner) {
|
||||
for (const item of banner) {
|
||||
item.img = this.imgUrl + item.img
|
||||
@@ -172,6 +172,9 @@
|
||||
//获取图片url
|
||||
getImgUrl() {
|
||||
this.$apiServe.getImgUrl().then(res => {
|
||||
console.log('图片url', res.data);
|
||||
res.data.data.img_url = res.data.data.img_url + '/'
|
||||
console.log('res.data.data.img_url', res.data.data.img_url);
|
||||
try {
|
||||
uni.setStorageSync('img_url', res.data.data.img_url);
|
||||
this.initStart = true
|
||||
|
||||
@@ -72,7 +72,9 @@
|
||||
//获取客服电话
|
||||
getCsTel() {
|
||||
this.$apiServe.getCsTel().then(res => {
|
||||
this.mobile = res.data.data.cs_tel
|
||||
if (res.data.data) {
|
||||
this.mobile = res.data.data.cs_tel
|
||||
}
|
||||
}).finally(_ => {})
|
||||
},
|
||||
//跳转到绑定公司页面
|
||||
|
||||
Reference in New Issue
Block a user