diff --git a/template/uni-app/pages/index/diy/index.vue b/template/uni-app/pages/index/diy/index.vue
index e8f78de36..347c3fe72 100644
--- a/template/uni-app/pages/index/diy/index.vue
+++ b/template/uni-app/pages/index/diy/index.vue
@@ -402,39 +402,6 @@
}
} catch (e) {}
// #endif
- // const {
- // state,
- // scope
- // } = options;
- // #ifndef H5
- uni.getLocation({
- type: 'wgs84',
- success: function(res) {
- try {
- uni.setStorageSync('user_latitude', res.latitude);
- uni.setStorageSync('user_longitude', res.longitude);
- } catch {}
- }
- });
- // #endif
- // #ifdef H5
- if (this.$wechat.isWeixin()) {
- this.$wechat.location().then(res => {
- uni.setStorageSync('user_latitude', res.latitude);
- uni.setStorageSync('user_longitude', res.longitude);
- })
- } else {
- uni.getLocation({
- type: 'wgs84',
- success: function(res) {
- try {
- uni.setStorageSync('user_latitude', res.latitude);
- uni.setStorageSync('user_longitude', res.longitude);
- } catch {}
- }
- });
- }
- // #endif
this.diyData();
this.getIndexData();
// #ifdef MP
@@ -799,7 +766,7 @@
uni.stopPullDownRefresh({
success: (e) => {},
});
-
+
}).catch(error => {
// #ifdef APP-PLUS
if (error.status) {
@@ -888,14 +855,19 @@
});
});
},
- },
- onReachBottom: function() {
- if (this.isSortType == 0) {
- // this.getGroomList();
- } else {
- this.getGoodsList();
+ onsollBotton() {
+ console.log('????', this.isSortType)
+ if (this.isSortType == 0) {
+ // this.getGroomList();
+ } else {
+ this.getGoodsList();
+ }
}
},
+
+ onReachBottom: function() {
+
+ },
onPageScroll(e) {
// #ifdef H5
if (this.isHeaderSerch) {
diff --git a/template/uni-app/pages/index/index.vue b/template/uni-app/pages/index/index.vue
index 870bd5202..4a12ed5d0 100644
--- a/template/uni-app/pages/index/index.vue
+++ b/template/uni-app/pages/index/index.vue
@@ -1,17 +1,19 @@
-
+