bobo 3 anos atrás
pai
commit
0527b1ebfd

+ 107 - 0
pages/signIn/activity/activity.js

@@ -0,0 +1,107 @@
+// 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(_ => {})
+
+        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(_ => {})
+
+        SignIn.getUserAwardCouponNum({
+            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 () {
+
+    }
+})

+ 3 - 0
pages/signIn/activity/activity.json

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

+ 5 - 0
pages/signIn/activity/activity.wxml

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

+ 1 - 0
pages/signIn/activity/activity.wxss

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

+ 66 - 0
pages/signIn/record/record.js

@@ -0,0 +1,66 @@
+// pages/signIn/record/record.js
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

+ 3 - 0
pages/signIn/record/record.json

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

+ 2 - 0
pages/signIn/record/record.wxml

@@ -0,0 +1,2 @@
+<!--pages/signIn/record/record.wxml-->
+<text>pages/signIn/record/record.wxml</text>

+ 1 - 0
pages/signIn/record/record.wxss

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