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