首页致命bug修复
This commit is contained in:
@@ -201,16 +201,16 @@
|
||||
<view v-if="tjProList.length > 0" >
|
||||
<view class="flexbox" style="flex-wrap: wrap;">
|
||||
<view class="goodsItem" v-for="(item,index) in tjProList" :key="index"
|
||||
@click="goDetail(item.shopproudicts[0].productId)">
|
||||
<image :src="item.shopproudicts[0].productImages" mode="" class="goodsImg"></image>
|
||||
@click="goDetail(item.productId)">
|
||||
<image :src="item.productImages" mode="" class="goodsImg"></image>
|
||||
<view class="goodsContent">
|
||||
<view class="goodsName">
|
||||
{{item.shopproudicts[0].productName}}
|
||||
{{item.productName}}
|
||||
</view>
|
||||
<view class="goodsPrice">
|
||||
<span class="price" v-if="item.shopproudicts[0].activityPrice && item.shopproudicts[0].activityPrice > 0">¥{{item.shopproudicts[0].activityPrice}}</span>
|
||||
<span class="price" v-else>¥{{item.shopproudicts[0].price}}</span>
|
||||
<span class="Salesnum">已售:{{item.shopproudicts[0].sumSales}} 件</span>
|
||||
<span class="price" v-if="item.activityPrice && item.activityPrice > 0">¥{{item.activityPrice}}</span>
|
||||
<span class="price" v-else>¥{{item.price}}</span>
|
||||
<span class="Salesnum">已售:{{item.sumSales}} 件</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -307,9 +307,9 @@
|
||||
onHide() {
|
||||
this.page = 1
|
||||
this.tjProList = []
|
||||
if(this.tagList.length > 0){
|
||||
this.tabsid = this.tagList[0].splId
|
||||
}
|
||||
// if(this.tagList.length > 0){
|
||||
// this.tabsid = this.tagList[0].splId
|
||||
// }
|
||||
},
|
||||
//页面显示
|
||||
onShow() {
|
||||
@@ -392,16 +392,17 @@
|
||||
},
|
||||
getJtData(){
|
||||
this.$http
|
||||
.post('book/label/list',{
|
||||
// .post('book/label/list',{
|
||||
.post('book/label/getProductsByLabel',{
|
||||
'splId': this.tabsid,
|
||||
'limit': this.pageSize,
|
||||
'page': this.page
|
||||
})
|
||||
.then(res => {
|
||||
|
||||
if(res.code == 0 && res.page.list.length > 0){
|
||||
this.tjProList = this.tjProList.concat(res.page.list)
|
||||
this.totalPage = res.page.totalPage
|
||||
if(res.code == 0 && res.page.records.length > 0){
|
||||
this.tjProList = this.tjProList.concat(res.page.records)
|
||||
this.totalPage = res.page.pages
|
||||
this.status = 3
|
||||
console.log(this.tjProList,'按标签检索结果')
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user