diff --git a/pages/supply_chains/supply_chains.vue b/pages/supply_chains/supply_chains.vue
index 87784d2..e0e05c5 100644
--- a/pages/supply_chains/supply_chains.vue
+++ b/pages/supply_chains/supply_chains.vue
@@ -140,7 +140,7 @@
{{loadTitle}}
-
+
{{loadTitle2}}
@@ -291,7 +291,6 @@
},
onReachBottom() {
- console.log('ss');
if (this.productList.length > 0) {
setTimeout(() => {
this.list(false, this.street_id);
@@ -353,12 +352,20 @@
},
//获取商品列表
list(isPage, id) {
- if(!id) return that.list2(true, ''); // 定位没有获取到时,直接推荐
+ // if(!id) return that.list2(true, ''); // 定位没有获取到时,直接推荐
let that = this;
if (that.loadend) return;
if (that.loading) return;
- if (isPage === true) that.$set(that, 'productList', []);
+ if (isPage === true) {
+ that.$set(that, 'productList', []);
+ that.$set(that, 'where', {
+ category_id: 0,
+ page: 1,
+ limit: 6
+ })
+ }
+ that.$set(that, 'productList2', []);
that.loading = true;
that.loadTitle = '';
@@ -393,7 +400,15 @@
if (that.loadend2) return;
if (that.loading2) return;
- if (isPage === true) that.$set(that, 'productList2', []);
+ if (isPage === true) {
+ that.$set(that, 'productList2', []);
+ that.$set(that, 'where2', {
+ category_id: 0,
+ page: 1,
+ limit: 6
+ })
+ }
+ that.$set(that, 'productList', []);
that.loading2 = true;
that.loadTitle2 = '';
@@ -573,6 +588,7 @@
selfLocation() {
if (uni.getStorageSync('loction') == true) {
this.isshow = false
+ this.list2(true,'')
} else {
this.isshow = true
uni.setStorageSync('loction', true);
@@ -603,6 +619,7 @@
}).catch(err => {
this.isshow = false
+ this.list2(true,'')
uni.showToast({
title: err,
icon: 'none'
@@ -610,6 +627,7 @@
})
},
fail: (err) => {
+ console.log('定位失败');
this.isshow = false
// uni.showToast({
// title: "获取定位超时",