@@ -54,8 +54,8 @@ App({
globalData: {
userInfo: null,
appid: 'wx4398d60942bc7710',
- // imgUrl: 'https://zmbx.oss-cn-shanghai.aliyuncs.com/'
- imgUrl: 'http://cdn.info666.com/'
+ imgUrl: 'https://zmbx.oss-cn-shanghai.aliyuncs.com/'
+ // imgUrl: 'http://cdn.info666.com/'
// wx289928fedd0242a5 测试
// wx0883711d2af54d70 正式
}
@@ -135,7 +135,9 @@ Page({
console.log(item)
// @todo 给学校赋值,并且关闭输入框
this.setData({
- showSchool:false
+ showSchool:false,
+ 'form.school': item.id,
+ 'form.schoolName': item.schoolName
})
},
@@ -164,6 +166,8 @@ Page({
submit (e) {
let {actualName,sex,birthday,area,grade,other,school} = this.data.form
+ console.log(this.data.form);
+
let {sortList} = this.data
jgList: sortList.map(item => !!this.data.form[item.name])
@@ -101,6 +101,7 @@
<input
bindfocus="handleShowSchool"
bindinput="handlePickerSchool"
+ value="{{form.schoolName}}"
id="school"
placeholder="请输入"
placeholder-class="phcolor"></input>
@@ -38,7 +38,7 @@
"compileType": "miniprogram",
"libVersion": "2.4.4",
- "appid": "wx289928fedd0242a5",
+ "appid": "wx0883711d2af54d70",
"projectname": "iSnow2",
"debugOptions": {
"hidedInDevtools": []
@@ -7,8 +7,8 @@ const jheader = {
-const url = 'http://118.24.176.28:8778'
-// const url = 'https://api.winwin-sport.com'
+// const url = 'http://118.24.176.28:8778'
+const url = 'https://api.winwin-sport.com'
let RQ = []
function request(api, method, header, data, hideLoading) {