Fix:3022 【商城小程序】填写申请资料点击返回后再次进入,填写内容未保留(修复为填写内容仍然保留)
This commit is contained in:
@@ -89,6 +89,13 @@ export default {
|
||||
onLoad: function () {
|
||||
this.init()
|
||||
this.getCityList()
|
||||
const localData = uni.getStorageSync('investmentIndex')
|
||||
if (localData) {
|
||||
this.businessApply = localData
|
||||
}
|
||||
},
|
||||
onUnload() {
|
||||
uni.setStorageSync('investmentIndex', this.businessApply)
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
@@ -119,7 +126,7 @@ export default {
|
||||
this.total = data.total
|
||||
this.businessApplyList = data.businessApplyList
|
||||
if (data.businessApply) {
|
||||
this.businessApply = data.businessApply
|
||||
// this.businessApply = data.businessApply
|
||||
this.address = {
|
||||
province: data.businessApply.provinceName || "",
|
||||
city: data.businessApply.cityName || "",
|
||||
|
||||
Reference in New Issue
Block a user