返回内容的时候增加判断
parent
29e15a09d6
commit
7e3395086e
|
|
@ -29,6 +29,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
|
import { isEmpty } from '@/common/js/common/common.js';
|
||||||
import componentPopup from "@/components/popup/popup";
|
import componentPopup from "@/components/popup/popup";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -200,9 +201,10 @@ export default {
|
||||||
},
|
},
|
||||||
//提交按钮
|
//提交按钮
|
||||||
sub_ragion_event(e) {
|
sub_ragion_event(e) {
|
||||||
let province = this.columns[0][this.columns_index[0]];
|
// 修改如果为空的情况下就取第0条数据
|
||||||
let city = this.columns[1][this.columns_index[1]];
|
let province = this.columns[0][isEmpty(this.columns_index[0]) ? 0 : this.columns_index[0]];
|
||||||
let areal = this.columns[2][this.columns_index[2]];
|
let city = this.columns[1][isEmpty(this.columns_index[1]) ? 0 : this.columns_index[1]];
|
||||||
|
let areal = this.columns[2][isEmpty(this.columns_index[2]) ? 0 : this.columns_index[2]];
|
||||||
uni.setStorageSync(this.cache_key, {
|
uni.setStorageSync(this.cache_key, {
|
||||||
province: province,
|
province: province,
|
||||||
city: city,
|
city: city,
|
||||||
|
|
|
||||||
|
|
@ -736,7 +736,7 @@
|
||||||
region_picker_show: false,
|
region_picker_show: false,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
region_event(address1, address2, address3) {
|
region_event() {
|
||||||
let data = uni.getStorageSync(app.globalData.data.cache_region_picker_choice_key) || {};
|
let data = uni.getStorageSync(app.globalData.data.cache_region_picker_choice_key) || {};
|
||||||
if((data.province || null) == null) {
|
if((data.province || null) == null) {
|
||||||
data.province = {};
|
data.province = {};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue