bobo il y a 3 ans
Parent
commit
1a47a04da6
3 fichiers modifiés avec 10 ajouts et 34 suppressions
  1. 1 2
      app.json
  2. 8 31
      pages/signIn/activity/activity.js
  3. 1 1
      pages/signIn/activity/activity.wxml

+ 1 - 2
app.json

@@ -6,8 +6,7 @@
         "pages/index/index",
         "pages/receiveCoupon/receiveCoupon",
         "pages/logs/logs",
-        "pages/signIn/index",
-        "pages/signIn/record/index",
+        "pages/signIn/activity/activity",
         "pages/signIn/record/record",
         "pages/signIn/perCenter"
     ],

+ 8 - 31
pages/signIn/activity/activity.js

@@ -7,7 +7,7 @@ Page({
      * 页面的初始数据
      */
     data: {
-
+        showPage: false
     },
 
     /**
@@ -16,37 +16,14 @@ Page({
     onLoad: function (options) {
         SignIn.getActivityData("").then(res => {
             console.log(res)
-        }).catch(_ => {})
-
-        SignIn.getUserAwardCouponList({
-            page: 1,
-            pageSize: 10,
-            mobile: "16602120168"
-        }).then(res => {
-            console.log(res);
-        }).catch(_ => {})
-
-        SignIn.getUserSignInList({
-            page: 1,
-            pageSize: 10,
-            mobile: "16602120168"
-        }).then(res => {
-            console.log(res);
-        }).catch(_ => {})
-
-        SignIn.getUserAwardCouponUseStateList({
-            page: 1,
-            pageSize: 10,
-            mobile: "16602120168"
-        }).then(res => {
-            console.log(res);
-        }).catch(_ => {})
+        
+        }).catch(_ => {
 
-        SignIn.getUserAwardCouponNum({
-            mobile: "16602120168"
-        }).then(res => {
-            console.log(res);
-        }).catch(_ => {})
+        }).finally(_ => {
+            this.setData({
+                showPage: true
+            })
+        })
         
     },
 

+ 1 - 1
pages/signIn/activity/activity.wxml

@@ -1,5 +1,5 @@
 <!--pages/signIn/index.wxml-->
-<view>
+<view wx:if="{{showPage}}">
 
 <view catchtap="tapSignIn">签到</view>
 </view>