bobo 3 年之前
父節點
當前提交
c184959325
共有 7 個文件被更改,包括 29 次插入98 次删除
  1. 24 1
      api/signIn.js
  2. 3 1
      app.json
  3. 0 85
      pages/signIn/index.js
  4. 0 3
      pages/signIn/index.json
  5. 0 5
      pages/signIn/index.wxml
  6. 0 1
      pages/signIn/index.wxss
  7. 2 2
      project.private.config.json

+ 24 - 1
api/signIn.js

@@ -16,11 +16,34 @@ class SignIn extends request {
     }
     return this.postRequest(`${this.BASE_URL}open/sign-in/click`, params)
   }
-
+  /**
+   * 券列表
+   */
   static getUserAwardCouponList(params) {
     return this.postRequest(`${this.BASE_URL}open/sign-in/user-award-coupon-list`, params);
   }
 
+  /**
+   * 券签名列表
+   */
+  static getUserSignInList(params) {
+    return this.postRequest(`${this.BASE_URL}open/sign-in/user-sign-in-list`, params);
+  }
+
+  /**
+   * 券使用状态列表
+   */
+  static getUserAwardCouponUseStateList(params) {
+    return this.postRequest(`${this.BASE_URL}open/sign-in/user-award-coupon-use-state-list`, params);
+  }
+
+    /**
+   * 未使用的券数量
+   */
+  static getUserAwardCouponNum(params) {
+    return this.postRequest(`${this.BASE_URL}open/sign-in/user-award-coupon-num`, params)
+  }
+
 }
 
 export default SignIn

+ 3 - 1
app.json

@@ -6,7 +6,9 @@
         "pages/index/index",
         "pages/receiveCoupon/receiveCoupon",
         "pages/logs/logs",
-        "pages/signIn/index"
+        "pages/signIn/index",
+        "pages/signIn/record/index",
+        "pages/signIn/record/record"
     ],
     "window": {
         "backgroundTextStyle": "light",

+ 0 - 85
pages/signIn/index.js

@@ -1,85 +0,0 @@
-// pages/signIn/index.js
-import SignIn from '../../api/signIn'
-
-Page({
-
-    /**
-     * 页面的初始数据
-     */
-    data: {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    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(_ => {})
-
-    },
-
-    tapSignIn: function() {
-        SignIn.triggerSignIn(5, "16602120168").then(res => {
-            console.log(res)
-        }).catch(_ => {})
-    },
-
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom: function () {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function () {
-
-    }
-})

+ 0 - 3
pages/signIn/index.json

@@ -1,3 +0,0 @@
-{
-  "usingComponents": {}
-}

+ 0 - 5
pages/signIn/index.wxml

@@ -1,5 +0,0 @@
-<!--pages/signIn/index.wxml-->
-<view>
-
-<view catchtap="tapSignIn">签到</view>
-</view>

+ 0 - 1
pages/signIn/index.wxss

@@ -1 +0,0 @@
-/* pages/signIn/index.wxss */

+ 2 - 2
project.private.config.json

@@ -37,8 +37,8 @@
                     "scene": 1013
                 },
                 {
-                    "name": "pages/signIn/index",
-                    "pathName": "pages/signIn/index",
+                    "name": "pages/signIn/activity/activity",
+                    "pathName": "pages/signIn/activity/activity",
                     "query": "",
                     "scene": null
                 }