Merge branch 'feature/入司优化' into dev

This commit is contained in:
mengxiaolong
2020-11-13 10:58:19 +08:00

View File

@@ -464,7 +464,7 @@ export default {
}
}
},
async setBankArea(area) {
setBankArea(area) {
console.log(area)
const [province, city] = [...area]
this.userInfo.bankAddress = `${province.name}-${city.name}`
@@ -472,9 +472,12 @@ export default {
this.userInfo.bankCity = city.code
this.areaName = this.userInfo.bankAddress
this.areaShow = false
this.queryBankJoints()
},
async queryBankJoints() {
let param = {
bankcode: this.code,
citycode: city.code.slice(0, 4)
citycode: this.userInfo.bankCity.slice(0, 4)
}
this.bankJointsList.splice(0)
let res = await getBankJoints(param)
@@ -733,6 +736,13 @@ export default {
this.save()
}
},
watch: {
code() {
if (this.userInfo.bankCity) {
this.queryBankJoints()
}
}
},
beforeDestroy() {
//清理计时器
window.clearInterval(this.timeId)