dengjie commit : 修改部分存在问题
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
<view>
|
||||
<view class="products_box">
|
||||
<u-grid :border="false" col="2">
|
||||
<u-grid-item v-for="(item,index) in productList" :key="index" @click="toDetailPage(item)">
|
||||
<u-grid-item v-for="(item,index) in productList" :key="index">
|
||||
<u-image src="/static/products/sy_bb.png" width="354rpx" height="539rpx" :lazy-load="true">
|
||||
</u-image>
|
||||
<view class="bgContent">
|
||||
<view class="bgContent" @click="toDetailPage(item)">
|
||||
<view>
|
||||
<u-image :src="imgUrl+item.cover" width="346rpx" height="320rpx" :lazy-load="true"
|
||||
@click="toDetailPage()">
|
||||
@@ -41,7 +41,6 @@
|
||||
<view style="font-size: 24rpx;color: #A3A3A3;text-align: center;padding: 26rpx 0;"
|
||||
v-if="type==2&&productList.length==0">
|
||||
暂无更多浏览记录</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -57,9 +56,7 @@
|
||||
imgUrl: '',
|
||||
tagsArray: [],
|
||||
productList: [],
|
||||
// showM: false,
|
||||
content: '您确定移除吗?',
|
||||
productList: []
|
||||
content: '您确定移除吗?'
|
||||
}
|
||||
},
|
||||
props: {
|
||||
@@ -83,8 +80,8 @@
|
||||
item.tags = this.tagsArray[0]
|
||||
item.create_time = dateFormatHistory(item.create_time)
|
||||
}
|
||||
console.log('获取历史记录', data);
|
||||
this.productList = data
|
||||
console.log('获取历史记录', this.productList);
|
||||
}).finally(_ => {
|
||||
|
||||
})
|
||||
@@ -132,7 +129,7 @@
|
||||
//点击图片跳转到详情页
|
||||
toDetailPage(item) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/detail/productsDetail/productsDetail?id=' + item.id
|
||||
url: '/pages/detail/productsDetail/productsDetail?id=' + item.product_id
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user