瀏覽代碼

数据隐藏问题

kk.shi 3 年之前
父節點
當前提交
abe5594617
共有 2 個文件被更改,包括 11 次插入11 次删除
  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: '使用/失效',