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