From ed96dab91fbac7159525fe557af2ecdd135c791d Mon Sep 17 00:00:00 2001
From: liuwh <liuwh@hugeinfo.com.cn>
Date: Mon, 23 Mar 2020 14:21:40 +0800
Subject: [PATCH] 1

---
 SunshineLnsMinApp/pages/createSub/createSub.js |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/SunshineLnsMinApp/pages/createSub/createSub.js b/SunshineLnsMinApp/pages/createSub/createSub.js
index fbc5ba0..0323bca 100644
--- a/SunshineLnsMinApp/pages/createSub/createSub.js
+++ b/SunshineLnsMinApp/pages/createSub/createSub.js
@@ -55,7 +55,7 @@
             if (res.confirm) {
               wx.switchTab({
                 url: '/pages/creat/creat',
-                success: function(e) {
+                success: function (e) {
                   var page = getCurrentPages().pop();
                   if (page == undefined || page == null) return;
                   page.onLoad();
@@ -75,8 +75,23 @@
   /**
    * 生命周期函数--监听页面加载
    */
-  onLoad: function(options) {
+  onLoad: function (options) {
     var _m = "question";
+
+    var that = this;
+    wx.request({
+      url: app.globalData.url + '/api/activity/finds',
+      success: function (res) {
+        if (res.data.code == 0) {
+          console.log(res)
+        } else {
+          wx.showModal({
+            title: '提示',
+            content: "请求失败!"
+          })
+        }
+      }
+    })
     this.setData({
       [_m]: {
         "paper": {
@@ -127,7 +142,7 @@
     });
   },
 
-  onChange: function(e) {
+  onChange: function (e) {
     var index = e.currentTarget.dataset['index'];
     const {
       value

--
Gitblit v1.8.0