更改区县根据定位
This commit is contained in:
parent
67c22e8731
commit
38f694e948
@ -20,7 +20,6 @@
|
||||
预约状态:
|
||||
<!-- <span v-if="item.exceedStatus == '0'">生效中</span>
|
||||
<span v-if="item.exceedStatus == '1'">已过期</span> -->
|
||||
|
||||
<uni-tag v-if="item.exceedStatus == '0'" text="生效中" size="mini" type="success" />
|
||||
<uni-tag v-if="item.exceedStatus == '1'" size="mini" text="已过期" />
|
||||
</view>
|
||||
|
||||
@ -62,7 +62,6 @@
|
||||
</view>
|
||||
<u-action-sheet :show="showSex" :actions="actions" title="请选择性别" @close="showSex = false" @select="sexSelect">
|
||||
</u-action-sheet>
|
||||
11
|
||||
<u-toast ref="uToast" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -197,14 +197,15 @@
|
||||
protocolshow: false,
|
||||
radio: '',
|
||||
stepnumber: 1,
|
||||
code:'',
|
||||
query: {
|
||||
province: '370000000000',
|
||||
provinceName: '山东省',
|
||||
residentName: null,
|
||||
identity: null,
|
||||
phone: null,
|
||||
city: '371400000000',
|
||||
cityName: '德州市',
|
||||
city: '',
|
||||
cityName: '',
|
||||
county: null,
|
||||
countyName: null,
|
||||
town: null,
|
||||
@ -440,6 +441,11 @@
|
||||
},
|
||||
//区县list
|
||||
arealistinfo(code, list) {
|
||||
var region = uni.getStorageSync('region')
|
||||
// 德州
|
||||
if (region == 1) {
|
||||
this.query.city='371400000000'
|
||||
this.query.cityName='德州市'
|
||||
arealist(code).then(res => {
|
||||
if (list == 'county') {
|
||||
this.countylist = res.data
|
||||
@ -449,6 +455,20 @@
|
||||
this.villagelist = res.data
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.query.city = 370500000000
|
||||
this.query.cityName='东营市'
|
||||
arealist(code).then(res => {
|
||||
if (list == 'county') {
|
||||
this.countylist = res.data
|
||||
} else if (list == 'Township') {
|
||||
this.Townshiplist = res.data
|
||||
} else if (list == 'village') {
|
||||
this.villagelist = res.data
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
//选择医生
|
||||
gochoosedoctor() {
|
||||
@ -482,7 +502,7 @@
|
||||
},
|
||||
//点击社区
|
||||
villageshowtrue() {
|
||||
if (!this.query.town) {
|
||||
if (!this.query.townName) {
|
||||
this.$refs.uToast.show({
|
||||
title: '请先选择街道/乡镇',
|
||||
type: 'error',
|
||||
@ -591,7 +611,14 @@
|
||||
},
|
||||
},
|
||||
onLoad(options) {
|
||||
var region = uni.getStorageSync('region')
|
||||
// 德州
|
||||
if (region == 1) {
|
||||
this.arealistinfo('371400000000 ', 'county');
|
||||
} else {
|
||||
this.arealistinfo('370500000000', 'county');
|
||||
}
|
||||
// }
|
||||
this.getCrowdinfo();
|
||||
let date = new Date();
|
||||
let year = date.getFullYear();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user