刷新
This commit is contained in:
parent
67345721c1
commit
d9eac85942
13
api/store.js
13
api/store.js
@ -300,6 +300,19 @@ export function getStoreCategory(id, data) {
|
|||||||
noAuth: true
|
noAuth: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新获取商品分类
|
||||||
|
* @param {Object} id 商铺 id
|
||||||
|
* @param {Object} data
|
||||||
|
*/
|
||||||
|
export function getProductCategoryList(data) {
|
||||||
|
return request.get("store/product/category/index", data, {
|
||||||
|
noAuth: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关注商铺
|
* 关注商铺
|
||||||
* @param {Object} type_id 商铺 id
|
* @param {Object} type_id 商铺 id
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
"name": "惠农生活",
|
"name": "惠农生活",
|
||||||
"appid": "__UNI__3A527D1",
|
"appid": "__UNI__3A527D1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"versionName": "2.0.49",
|
"versionName": "2.0.51",
|
||||||
"versionCode": 2049,
|
"versionCode": 2051,
|
||||||
"transformPx": false,
|
"transformPx": false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus": {
|
"app-plus": {
|
||||||
|
@ -334,7 +334,7 @@
|
|||||||
"path": "market/market",
|
"path": "market/market",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "供销云市场",
|
"navigationBarTitleText": "供销云市场",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": true,
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -342,7 +342,7 @@
|
|||||||
"path": "specialty/specialty",
|
"path": "specialty/specialty",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "名优特产",
|
"navigationBarTitleText": "名优特产",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": true,
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -527,6 +527,9 @@
|
|||||||
onPageScroll() {
|
onPageScroll() {
|
||||||
uni.$emit('scroll');
|
uni.$emit('scroll');
|
||||||
},
|
},
|
||||||
|
onPullDownRefresh() {
|
||||||
|
this.storeMerchantList(true);
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
navTo(url) {
|
navTo(url) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@ -576,10 +579,13 @@
|
|||||||
if (this.isLoading == -1) return;
|
if (this.isLoading == -1) return;
|
||||||
this.isLoading = 1;
|
this.isLoading = 1;
|
||||||
storeMerchantList(this.where).then(res => {
|
storeMerchantList(this.where).then(res => {
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
this.goodsList = [...this.goodsList, ...res.data.list];
|
this.goodsList = [...this.goodsList, ...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(() => {
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
closeShowAddress() {
|
closeShowAddress() {
|
||||||
|
@ -326,6 +326,9 @@
|
|||||||
onPageScroll() {
|
onPageScroll() {
|
||||||
uni.$emit('scroll');
|
uni.$emit('scroll');
|
||||||
},
|
},
|
||||||
|
onPullDownRefresh() {
|
||||||
|
this.getProductslist(true);
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
navTo(url) {
|
navTo(url) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@ -392,10 +395,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.where.page++;
|
this.where.page++;
|
||||||
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;
|
||||||
|
}).catch(() => {
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
goDetail(item) {
|
goDetail(item) {
|
||||||
|
@ -664,10 +664,11 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
changeSaleType(type = 1) {
|
changeSaleType(type = 1) {
|
||||||
this.loadend = false;
|
|
||||||
this.loading = false;
|
|
||||||
this.$set(this, 'orderList', []);
|
|
||||||
if (type != this.sale_type) {
|
if (type != this.sale_type) {
|
||||||
|
this.loadend = false;
|
||||||
|
this.loading = false;
|
||||||
|
this.$set(this, 'orderList', []);
|
||||||
|
|
||||||
if (this.orderStatus == 4) {
|
if (this.orderStatus == 4) {
|
||||||
this.refundParam.identity = type;
|
this.refundParam.identity = type;
|
||||||
this.refundParam.page = 1;
|
this.refundParam.page = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user