|
@ -2,7 +2,7 @@ |
|
|
<div> |
|
|
<div> |
|
|
<div class="selfCity flex flex-center2 p-12 flex-end"> |
|
|
<div class="selfCity flex flex-center2 p-12 flex-end"> |
|
|
<div class="flex flex-center2 flex-1"> |
|
|
<div class="flex flex-center2 flex-1"> |
|
|
<img src="@/assets/images/icons/homeBlue.png" alt="" @click="getAgency" /> |
|
|
<img :src="require(`@/assets/images/icons/${autoFlag?'homeBlue':'back'}.png`)" alt="" @click="backAuto" style=""/> |
|
|
<!-- <span style="color: #666666;" v-if="!selfCity && district">请选择您所在城市</span> --> |
|
|
<!-- <span style="color: #666666;" v-if="!selfCity && district">请选择您所在城市</span> --> |
|
|
<span class="flex"> |
|
|
<span class="flex"> |
|
|
<div v-for="(item, index) in selfCity"> |
|
|
<div v-for="(item, index) in selfCity"> |
|
@ -11,7 +11,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</span> |
|
|
</span> |
|
|
</div> |
|
|
</div> |
|
|
<van-button type="info" size="small" round class="m-right10" @click="restAddress">手动选择</van-button> |
|
|
<van-button type="info" size="small" round class="m-right10" @click="restAddress" v-if="autoFlag">手动选择</van-button> |
|
|
</div> |
|
|
</div> |
|
|
<div class="container"> |
|
|
<div class="container"> |
|
|
<van-list finished-text="没有更多了" class="selectAgency"> |
|
|
<van-list finished-text="没有更多了" class="selectAgency"> |
|
@ -32,7 +32,8 @@ export default { |
|
|
selfCity: [], |
|
|
selfCity: [], |
|
|
address: null, |
|
|
address: null, |
|
|
district: null, |
|
|
district: null, |
|
|
show:true |
|
|
show:true, |
|
|
|
|
|
autoFlag:true |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
@ -44,6 +45,7 @@ export default { |
|
|
methods: { |
|
|
methods: { |
|
|
restAddress() { |
|
|
restAddress() { |
|
|
this.district = null; |
|
|
this.district = null; |
|
|
|
|
|
this.autoFlag = false; |
|
|
this.selfCity = []; |
|
|
this.selfCity = []; |
|
|
this.getAgency(); |
|
|
this.getAgency(); |
|
|
}, |
|
|
}, |
|
@ -86,6 +88,12 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
backAuto(){ |
|
|
|
|
|
if(this.autoFlag) return |
|
|
|
|
|
this.autoFlag = true; |
|
|
|
|
|
this.selfCity = []; |
|
|
|
|
|
this.signWX() |
|
|
|
|
|
}, |
|
|
async getAgency(type) { |
|
|
async getAgency(type) { |
|
|
let res = await getAllOrgTreeList({ organizationName: this.district }) |
|
|
let res = await getAllOrgTreeList({ organizationName: this.district }) |
|
|
if (res.code === 0) { |
|
|
if (res.code === 0) { |
|
|