Compare commits

...

2 Commits

Author SHA1 Message Date
chen 35e359caef setter 2021-09-03 18:37:33 +08:00
chen ef740fb1a1 修改 2021-09-03 18:34:12 +08:00
3 changed files with 16 additions and 5 deletions

View File

@ -2,7 +2,11 @@ var host = "https://carbonneutral.bjfs.org.cn";//线上
// var host = "https://carbon.my-footprint.cn";//线上域名2 // var host = "https://carbon.my-footprint.cn";//线上域名2
// var host = "https://tanzhonghe-admin.com";//本地 // var host = "https://tanzhonghe-admin.com";//本地
<<<<<<< HEAD
// var host = "https://carbon.scdxtc.cn";//大向天诚服务器
=======
// var host = "http://carbon.scdxtc.cn";//大向天诚服务器 // var host = "http://carbon.scdxtc.cn";//大向天诚服务器
>>>>>>> 7aeb254a85a161e4f3eef68e01a6674b00a20fb1
var config = { var config = {
host: host, host: host,
appkey: '8c10f27733333fef726885b08ff9d858',//appkey 碳中和Y appkey: '8c10f27733333fef726885b08ff9d858',//appkey 碳中和Y

View File

@ -58,6 +58,15 @@ Page({
} }
}, },
casesChange(event) { casesChange(event) {
if(this.data.threeList[event.detail.value].type=='forest_management'){
this.setData({
isXiangm:true
})
} else {
this.setData({
isXiangm:false
})
}
this.setData({ this.setData({
curCaseIndex: event.detail.value, curCaseIndex: event.detail.value,
isShif: false, isShif: false,
@ -72,13 +81,11 @@ Page({
}) })
if (event.detail.value == 1) { if (event.detail.value == 1) {
this.setData({ this.setData({
isXiangm: true,
newDo_type: this.data.senList[this.data.senIndex].type, newDo_type: this.data.senList[this.data.senIndex].type,
cases_position_id:this.data.threeList[this.data.curCaseIndex].address[0].id cases_position_id:this.data.threeList[this.data.curCaseIndex].address[0].id
}) })
} else { } else {
this.setData({ this.setData({
isXiangm: false,
newDo_type: this.data.threeList[this.data.curCaseIndex].type, newDo_type: this.data.threeList[this.data.curCaseIndex].type,
cases_position_id:this.data.threeList[this.data.curCaseIndex].address[0].id cases_position_id:this.data.threeList[this.data.curCaseIndex].address[0].id
}) })

View File

@ -21,6 +21,7 @@
"checkSiteMap": true, "checkSiteMap": true,
"uploadWithSourceMap": true, "uploadWithSourceMap": true,
"compileHotReLoad": false, "compileHotReLoad": false,
"lazyloadPlaceholderEnable": false,
"useMultiFrameRuntime": true, "useMultiFrameRuntime": true,
"useApiHook": true, "useApiHook": true,
"useApiHostProcess": true, "useApiHostProcess": true,
@ -31,12 +32,11 @@
}, },
"enableEngineNative": false, "enableEngineNative": false,
"useIsolateContext": true, "useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
"userConfirmedBundleSwitch": true, "userConfirmedBundleSwitch": true,
"packNpmManually": false, "packNpmManually": false,
"packNpmRelationList": [], "packNpmRelationList": [],
"minifyWXSS": true "minifyWXSS": true,
"showES6CompileOption": false
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.19.2", "libVersion": "2.19.2",