xiaochengxurenwu

This commit is contained in:
shilixia 2020-04-08 11:04:06 +08:00
parent ae4b7715d3
commit 7d871fa997
2 changed files with 27 additions and 16 deletions

4
app.js
View File

@ -97,8 +97,8 @@ App({
perms:[], perms:[],
openid:null openid:null
}, },
serverUrl: 'https://safeyun.ctcshe.com/', // serverUrl: 'https://safeyun.ctcshe.com/',
//serverUrl: 'http://127.0.0.1:8000/', serverUrl: 'http://127.0.0.1:8000/',
//serverUrl: 'http://10.21.28.148:8000/', //serverUrl: 'http://10.21.28.148:8000/',
//serverUrl: 'http://192.168.0.103:8000/', //serverUrl: 'http://192.168.0.103:8000/',
//serverUrl:'http://10.0.11.195:8000/', //serverUrl:'http://10.0.11.195:8000/',

View File

@ -99,6 +99,7 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
var checkperson = true
this.getGcdetail(options.id); this.getGcdetail(options.id);
this.setData({ this.setData({
@ -110,27 +111,37 @@ Page({
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { onReady: function () {
this.setData({
cjryname: "",
cjry: "",
cjrs:0
}),
this.data.cfnr=""
}, },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function () {
let lst = getApp().globalData.selectPeopleList
let nst = []
let nst1 = [] let lst = getApp().globalData.selectPeopleList
if (lst) { let nst = []
for (var i = 0; i < lst.length; i++) { let nst1 = []
nst.push(lst[i]['name']) if (lst) {
nst1.push(lst[i]['id']) for (var i = 0; i < lst.length; i++) {
nst.push(lst[i]['name'])
nst1.push(lst[i]['id'])
}
this.setData({
cjryname: nst.join(','),
cjry: nst1.join(','),
cjrs: nst1.length
})
} }
this.setData({
cjryname: nst.join(','),
cjry: nst1.join(','),
cjrs: nst1.length
})
}
}, },
/** /**