商品刷新

This commit is contained in:
THK3121 2023-05-31 17:29:55 +08:00
parent 196fcb9d5e
commit 8dc86cfa53
3 changed files with 9 additions and 5 deletions

View File

@ -651,6 +651,7 @@
"path": "index", "path": "index",
"style": { "style": {
"navigationStyle": "custom", "navigationStyle": "custom",
"enablePullDownRefresh": true,
"navigationBarTitleText": "店铺diy首页" "navigationBarTitleText": "店铺diy首页"
// #ifdef MP // #ifdef MP
, ,
@ -672,6 +673,7 @@
{ {
"path": "detail/index", "path": "detail/index",
"style": { "style": {
"enablePullDownRefresh": true,
"navigationBarTitleText": "店铺详情" "navigationBarTitleText": "店铺详情"
} }
}, },

View File

@ -1193,10 +1193,12 @@
} }
}, },
onPullDownRefresh() { onPullDownRefresh() {
console.log('123');
// //
setTimeout(() => { setTimeout(() => {
const newList = this.goods.reverse(); const newList = this.goods.reverse();
this.goods = newList; this.goods = newList;
this.getProductSpu()
// uni.startPullDownRefresh(); // uni.startPullDownRefresh();
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
}, 500) }, 500)

View File

@ -102,12 +102,12 @@
</view> </view>
</view> </view>
</view> </view>
<view class="item"> <!-- <view class="item">
<view class="acea-row row-middle"> <view class="acea-row row-middle">
<text class="item-name">是否农贸市场</text> <text class="item-name">是否农贸市场</text>
<u-switch v-model="isnm" @change="change" activeColor="#42CA4C"></u-switch> <u-switch v-model="isnm" @change="change" activeColor="#42CA4C"></u-switch>
</view> </view>
</view> </view> -->
<view class="item no-border"> <view class="item no-border">
<view class='acea-row row-middle'> <view class='acea-row row-middle'>
<text class="item-title">请上传营业执照及行业相关资质证明图片</text> <text class="item-title">请上传营业执照及行业相关资质证明图片</text>
@ -302,9 +302,9 @@
onReady() {}, onReady() {},
methods: { methods: {
// //
change(e) { // change(e) {
this.isnum = (e === true ? 1 : 0) // this.isnum = (e === true ? 1 : 0)
}, // },
// //
getVillage(e) { getVillage(e) {
const self = this; const self = this;