From 1b2c4db0cb373f9a079393800ed88d4681d7a190 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Thu, 1 Aug 2019 11:22:57 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=8A=A5=E5=90=8D=E6=B4=BB=E5=8A=A8][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9]:[=E5=88=A0=E9=99=A4=E5=9C=B0=E5=9D=80]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/radetail/joinActivity/edit.js | 44 +++++++++++++-------------- pages/radetail/joinActivity/edit.wxml | 4 +-- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/pages/radetail/joinActivity/edit.js b/pages/radetail/joinActivity/edit.js index c434c10..83fc53e 100644 --- a/pages/radetail/joinActivity/edit.js +++ b/pages/radetail/joinActivity/edit.js @@ -58,21 +58,21 @@ Page({ index1: e.detail.value }) }, - address: function() { - let that = this; - wx.chooseLocation({ - success: function(res) { - that.setData({ - address: res.name + '(' + res.address + ')', - addressStr: JSON.stringify(res) - }) - }, - fail: function(error) { - console.log(error) - }, - complete: function(data) {} - }) - }, + // address: function() { + // let that = this; + // wx.chooseLocation({ + // success: function(res) { + // that.setData({ + // address: res.name + '(' + res.address + ')', + // addressStr: JSON.stringify(res) + // }) + // }, + // fail: function(error) { + // console.log(error) + // }, + // complete: function(data) {} + // }) + // }, change(value){ console.log(value) }, @@ -89,11 +89,11 @@ Page({ } else { var sex = that.data.sex; } - if (that.data.addressStr) { - var address = that.data.addressStr; - } else { - var address = null; - } + // if (that.data.addressStr) { + // var address = that.data.addressStr; + // } else { + // var address = null; + // } if (e.detail.value.username) { var username = e.detail.value.username; } else if (that.data.username) { @@ -134,7 +134,7 @@ Page({ }); } - if (username == null || address == null || sex == 0 || birthday == null) { + if (username == null || sex == 0 || birthday == null) { wx.showToast({ title: '请输入完整的用户信息', icon: "none" @@ -148,7 +148,7 @@ Page({ let data ={}; data = { sex: sex, - address: address, + // address: address, name: username, birthday: birthday, answer: JSON.stringify(that.data.answer), diff --git a/pages/radetail/joinActivity/edit.wxml b/pages/radetail/joinActivity/edit.wxml index 92cee11..179b6e9 100644 --- a/pages/radetail/joinActivity/edit.wxml +++ b/pages/radetail/joinActivity/edit.wxml @@ -20,11 +20,11 @@ - + 调查问卷