xtz hace 4 años
padre
commit
7ba157de73
Se han modificado 5 ficheros con 11 adiciones y 6 borrados
  1. 2 2
      app.js
  2. 5 1
      pages/contest/info/info.js
  3. 1 0
      pages/contest/info/info.wxml
  4. 1 1
      project.config.json
  5. 2 2
      utils/http.js

+ 2 - 2
app.js

@@ -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 正式
   }

+ 5 - 1
pages/contest/info/info.js

@@ -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
     this.setData({
       jgList: sortList.map(item => !!this.data.form[item.name])

+ 1 - 0
pages/contest/info/info.wxml

@@ -101,6 +101,7 @@
         <input
         bindfocus="handleShowSchool"
         bindinput="handlePickerSchool"
+        value="{{form.schoolName}}"
         id="school"
         placeholder="请输入"
         placeholder-class="phcolor"></input>

+ 1 - 1
project.config.json

@@ -38,7 +38,7 @@
   },
   "compileType": "miniprogram",
   "libVersion": "2.4.4",
-  "appid": "wx289928fedd0242a5",
+  "appid": "wx0883711d2af54d70",
   "projectname": "iSnow2",
   "debugOptions": {
     "hidedInDevtools": []

+ 2 - 2
utils/http.js

@@ -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) {