修改bug
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
</u-image>
|
||||
<view class="img_tag">{{item.cate_name}}</view>
|
||||
</view>
|
||||
<view style="padding: 14rpx 22rpx;">
|
||||
<view style="padding: 14rpx 24rpx 14rpx 16rpx;">
|
||||
<view class="title_box">
|
||||
<text class="title">{{item.name}}</text>
|
||||
<u-tag :text="item.tags" type="warning" shape="circle"></u-tag>
|
||||
@@ -59,14 +59,17 @@
|
||||
...this.queryParam,
|
||||
title: this.queryTitle
|
||||
}
|
||||
|
||||
this.$apiServe.getProductList(data).then(res => {
|
||||
let tags = res.data.data
|
||||
for (const item of tags) {
|
||||
let tag = item.tags
|
||||
this.tagsArray = tag.split(',')
|
||||
item.tags = this.tagsArray[0]
|
||||
if (tags) {
|
||||
for (const item of tags) {
|
||||
let tag = item.tags
|
||||
this.tagsArray = tag.split(',')
|
||||
item.tags = this.tagsArray[0]
|
||||
}
|
||||
this.productList = tags
|
||||
}
|
||||
this.productList = res.data.data
|
||||
}).finally(_ => {})
|
||||
},
|
||||
//点击图片跳转到详情页
|
||||
|
||||
@@ -58,7 +58,6 @@
|
||||
this.getDiscover()
|
||||
const tempList = uni.getStorageSync('storage_search_record')
|
||||
this.recentRecordList = tempList ? tempList : [];
|
||||
console.log(this.recentRecordList)
|
||||
const menuButtonInfo = uni.getMenuButtonBoundingClientRect();
|
||||
this.searchBarTop = menuButtonInfo.top;
|
||||
this.searchBarHeight = menuButtonInfo.height;
|
||||
@@ -104,7 +103,6 @@
|
||||
getDiscover() {
|
||||
this.$apiServe.getDiscover().then(res => {
|
||||
this.foundList = res.data.data
|
||||
console.log(res.data.data)
|
||||
}).finally(_ => {})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user