提交bug

master
chen 2022-08-11 18:20:48 +08:00
parent 96097f43e6
commit b74e21e741
1 changed files with 20 additions and 10 deletions

View File

@ -50,29 +50,35 @@ Page({
if (this.data.senList[event.detail.value].type == 'forest_management') {
this.setData({
isShif: true,
newDo_type: this.data.senList[this.data.senIndex].type
newDo_type: this.data.senList[this.data.senIndex].type,
senIndex: 1,
})
} else {
this.setData({
isShif: false,
newDo_type: this.data.senList[this.data.senIndex].type
newDo_type: this.data.senList[this.data.senIndex].type,
senIndex: 0,
})
}
},
casesChange(event) {
if(this.data.threeList[event.detail.value].type=='forest_management'){
this.setData({
isXiangm:true,
this.setData({
isShif:true,
isXiangm:true,
senIndex: 1,
})
} else {
this.setData({
isXiangm:false,
this.setData({
isShif:false,
isXiangm:false,
senIndex: 0,
})
}
this.setData({
curCaseIndex: event.detail.value,
isShif: this.data.threeList[event.detail.value].type=='forest_management'?true:false,
senIndex: 0,
senIndex: this.data.threeList[event.detail.value].type=='forest_management'?1:0,
addressIndex:0,
priceList: {},
curThreeCode: [],
@ -287,8 +293,10 @@ Page({
if (res.data.result == 'success') {
var threeList = JSON.parse(res.data.data).cases;
if(threeList[0].type=='forest_management'){
that.setData({
isXiangm:true
that.setData({
isShif:true,
isXiangm:true,
senIndex:1
})
}
let arr = that.data.senList
@ -301,7 +309,9 @@ Page({
})
if(arr[0].type=='forest_management'){
that.setData({
isShif:true
isShif:true,
isXiangm:false,
senIndex:1
})
}
that.setData({