diff --git a/app.js b/app.js index 7a0efc4..b698d4a 100644 --- a/app.js +++ b/app.js @@ -91,8 +91,8 @@ App({ }, globalData: { userInfo: null, - serverUrl: 'https://safeyun.ctcshe.com/', - //serverUrl: 'http://127.0.0.1:8000/', + //serverUrl: 'https://safeyun.ctcshe.com/', + serverUrl: 'http://127.0.0.1:8000/', //serverUrl: 'http://192.168.0.102:8000/', //serverUrl:'http://10.7.100.250:8000/', isaqy: 0, diff --git a/pages/operation/operationadd.js b/pages/operation/operationadd.js index d4f6b5f..9448e1d 100644 --- a/pages/operation/operationadd.js +++ b/pages/operation/operationadd.js @@ -7,7 +7,8 @@ Page({ */ data: { zyimg:[], - zyqy:'' + zyqy:'', + chosespr:false }, checkboxChangefxcs: function (e) { var x = this.data.fxcslist; @@ -32,6 +33,17 @@ Page({ bindzynrInput: function (e) { this.data.zynr = e.detail.value }, + chosesprChange: function (e) { + if (e.detail.value) { + this.setData({ + chosespr:true + }) + } else { + this.setData({ + chosespr:false + }) + } + }, /** * 生命周期函数--监听页面加载 */ @@ -239,6 +251,25 @@ Page({ } }) }, + getspr12array:function(){ + wx.request({ + url: getApp().globalData.serverUrl + 'api/operation?a=getspr12', + header: { + 'content-type': 'application/json', // + 'Cookie': wx.getStorageSync("sessionid"), + }, + method: 'GET', + data: {'sdbm':this.data.sdbm}, + success: res => { + if (res.statusCode === 200) { + this.setData({ + spr1Array:res.data.spr1Array, + spr2Array:res.data.spr2Array + }) + } + } + }); + }, submit:function(){ var that = this; if (!that.data.kssj) { @@ -321,6 +352,9 @@ Page({ fxcs: this.data.fxcs, } //console.log(gcdata.unsafe) + wx.showLoading({ + title: '', + }) wx.request({ url: getApp().globalData.serverUrl + 'api/operation?a=add', header: { diff --git a/pages/operation/operationadd.wxml b/pages/operation/operationadd.wxml index a215cca..4e63e52 100644 --- a/pages/operation/operationadd.wxml +++ b/pages/operation/operationadd.wxml @@ -54,7 +54,7 @@ - + 属地部门 @@ -73,7 +73,7 @@ - 请选择 + 请选择 @@ -85,8 +85,8 @@ -