forked from nsjcy/frontEnd/nsjcy

1
liuwh
2020-03-23 ed96dab91fbac7159525fe557af2ecdd135c791d
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