This commit is contained in:
DESKTOP-GMUNQ1B\k 2024-04-11 18:11:16 +08:00
parent 3063a637a2
commit 5e2af7e198
5 changed files with 14 additions and 7 deletions

View File

@ -32,7 +32,7 @@
</image> </image>
</view> </view>
<view class="nav-item-down"> <view class="nav-item-down">
<view class="nav-item-down-title">名优特产</view> <view class="nav-item-down-title">名优特产</view>
<view class="nav-item-down-desc">地方特色特产</view> <view class="nav-item-down-desc">地方特色特产</view>
</view> </view>
</view> </view>

View File

@ -15,8 +15,8 @@ let openPlantGrass = '-openPlantGrass-'
let httpSix, httpApi; let httpSix, httpApi;
// const env = 'dev'; // 开发 const env = 'dev'; // 开发
const env = 'prod'; // 生产 // const env = 'prod'; // 生产
// const env = 'prew'; // 预上线 // const env = 'prew'; // 预上线
switch (env) { switch (env) {

View File

@ -2,8 +2,8 @@
"name": "惠农生活", "name": "惠农生活",
"appid": "__UNI__3A527D1", "appid": "__UNI__3A527D1",
"description": "", "description": "",
"versionName": "2.0.20", "versionName": "2.0.27",
"versionCode": 2020, "versionCode": 2027,
"transformPx": false, "transformPx": false,
/* 5+App */ /* 5+App */
"app-plus": { "app-plus": {

View File

@ -324,8 +324,8 @@
"path": "home/home", "path": "home/home",
"style": { "style": {
"navigationBarTitleText": "里海云仓", "navigationBarTitleText": "里海云仓",
"enablePullDownRefresh": false, "navigationStyle": "custom",
"navigationStyle": "custom" "enablePullDownRefresh": true
} }
}, },
{ {

View File

@ -313,6 +313,7 @@
mer_cate_id: '', mer_cate_id: '',
keyword: '', keyword: '',
deduction_rate: '', // deduction_rate: '', //
rand: 1
} }
} }
}, },
@ -326,6 +327,9 @@
onPageScroll() { onPageScroll() {
uni.$emit('scroll'); uni.$emit('scroll');
}, },
onPullDownRefresh() {
this.getProductslist(true);
},
methods: { methods: {
navTo(url) { navTo(url) {
uni.navigateTo({ uni.navigateTo({
@ -388,10 +392,13 @@
if (this.isLoading == -1) return; if (this.isLoading == -1) return;
this.isLoading = 1; this.isLoading = 1;
getProductslist(this.where).then(res => { getProductslist(this.where).then(res => {
uni.stopPullDownRefresh();
this.hostProduct = [...this.hostProduct, ...res.data.list]; this.hostProduct = [...this.hostProduct, ...res.data.list];
this.isLoading = 0; this.isLoading = 0;
if (res.data.list.length < this.where.limit) this.isLoading = -1; if (res.data.list.length < this.where.limit) this.isLoading = -1;
this.where.page++; this.where.page++;
}).catch(err => {
uni.stopPullDownRefresh();
}) })
}, },
goDetail(item) { goDetail(item) {