diff --git a/v4/views/attract/attract.vue b/v4/views/attract/attract.vue index ead0ecd..9581b9d 100644 --- a/v4/views/attract/attract.vue +++ b/v4/views/attract/attract.vue @@ -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 || "",