修复了切换类型时图片有概率不更新的bug
This commit is contained in:
parent
2429f37789
commit
7322947eca
@ -122,7 +122,8 @@
|
||||
</view>
|
||||
<view class="goods" @click="goodDetail(item)" v-else v-for="(item, index) in goodsList">
|
||||
<view class="left">
|
||||
<u--image :showLoading="true" :src="item.image" width="192.76rpx" height="192.76rpx"></u--image>
|
||||
<!-- <u--image :showLoading="true" :src="item.image" width="192.76rpx" height="192.76rpx"></u--image> -->
|
||||
<image lazy-load style="height: 192.76rpx;width: 192.76rpx;" :src="item.image"></image>
|
||||
</view>
|
||||
<view class="right">
|
||||
<view class="tit">
|
||||
@ -737,16 +738,18 @@
|
||||
getList() {
|
||||
this.showLoading = true
|
||||
this.status = "loading"
|
||||
this.page_num = 1;
|
||||
cloudWarehouse({
|
||||
street_code: this.street_code,
|
||||
category_id: this.cloudList[this.current]?.category_id || "",
|
||||
order: this.type,
|
||||
keyword: this.keyword,
|
||||
page_num: this.page_num
|
||||
|
||||
}).then(res => {
|
||||
this.goodsList = res.data.list
|
||||
this.showLoading = false
|
||||
this.goodsList = res.data.list;
|
||||
this.showLoading = false;
|
||||
if (res.data.list.length < 10) this.status = 'nomore';
|
||||
else this.status = 'loadmore';
|
||||
this.goodsList.forEach(item => {
|
||||
this.trnList.push({
|
||||
left: 0,
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user