Procházet zdrojové kódy

数据隐藏问题

kk.shi před 3 roky
rodič
revize
abe5594617
2 změnil soubory, kde provedl 11 přidání a 11 odebrání
  1. 2 2
      pages/luckDraw/profile.js
  2. 9 9
      pages/signIn/record/record.js

+ 2 - 2
pages/luckDraw/profile.js

@@ -182,8 +182,8 @@ Page({
             noResult: false,
             noCoupon: true,
             noPrize: false,
+            goodsItemList: [],
         })
-        this.data.goodsItemList = [];
         this.getUserPrizeList()
     },
     getPrize(e) {
@@ -197,8 +197,8 @@ Page({
             noResult: false,
             noCoupon: false,
             noPrize: true,
+            goodsItemList: [],
         })
-        this.data.goodsItemList = [];
         this.getUserPrizeList()
     },
     turnPrize: function() {

+ 9 - 9
pages/signIn/record/record.js

@@ -244,10 +244,10 @@ Page({
             noCoupon: true,
             noDetail: false,
             noUtility: false,
+            couponList: [],
+            detailList: [],
+            stateList: [],
         })
-        this.data.couponList= [],
-        this.data.detailList= [],
-        this.data.stateList= [],
         this.getUserAwardCouponList()
         wx.setNavigationBarTitle({
             title: '签到优惠券',
@@ -266,10 +266,10 @@ Page({
             noDetail: true,
             noCoupon: false,
             noUtility: false,
+            couponList: [],
+            detailList: [],
+            stateList: [],
         })
-        this.data.couponList= [],
-        this.data.detailList= [],
-        this.data.stateList= [],
         this.getUserSignInList()
         wx.setNavigationBarTitle({
             title: '获取明细',
@@ -289,10 +289,10 @@ Page({
             noUtility: true,
             noCoupon: false,
             noDetail: false,
+            couponList: [],
+            detailList: [],
+            stateList: [],
         })
-        this.data.couponList= [],
-        this.data.detailList= [],
-        this.data.stateList= [],
         this.getCouponStateList()
         wx.setNavigationBarTitle({
             title: '使用/失效',