gang.huang vor 4 Jahren
Ursprung
Commit
85f200e746

+ 1 - 1
pages/index/index.js

@@ -71,6 +71,7 @@ Page({
       curpage: 1,
       from: fromSource
     }, function (res) {
+      wx.stopPullDownRefresh()
       if (res.code == 200) {
         let prop_special = res.datas.special_list;
         let sent_down_special = prop_special.splice(0, 8);
@@ -175,7 +176,6 @@ Page({
     }
   },
   onPullDownRefresh(){
-    wx.stopPullDownRefresh()
     this.getDatas()
   }
 })

+ 2 - 1
pages/phoneCharges/phoneCharges.js

@@ -78,6 +78,7 @@ Page({
       from: fromSource
     },
     function (res) {
+      wx.stopPullDownRefresh()
       if (res.code == 200) {
         if (res.datas && res.datas.goods) {
           var datas = res.datas
@@ -177,7 +178,7 @@ Page({
    * 页面相关事件处理函数--监听用户下拉动作
    */
   onPullDownRefresh: function () {
-
+    this.requestGoods();
   },
 
   /**

+ 1 - 0
pages/phoneCharges/phoneCharges.json

@@ -1,4 +1,5 @@
 {
+  "enablePullDownRefresh":true,
   "navigationBarTitleText": "手机充值",
   "navigationBarBackgroundColor": "#fe7124",
   "navigationBarTextStyle": "white"

+ 1 - 1
pages/postage/postage.js

@@ -81,6 +81,7 @@ Page({
       page_type: 'oil',
       from: fromSource
     }, (res) => {
+      wx.stopPullDownRefresh()
       if (res.code == 200) {
         if (res.datas && res.datas.goods) {
           const datas = res.datas
@@ -198,7 +199,6 @@ Page({
    * 页面相关事件处理函数--监听用户下拉动作
    */
   onPullDownRefresh: function () {
-    wx.stopPullDownRefresh()
     this.requestGoods();
   },