11
This commit is contained in:
@@ -1,119 +0,0 @@
|
||||
<template>
|
||||
<view style="background-color: #fefefe;">
|
||||
<view class="title">
|
||||
全部
|
||||
</view>
|
||||
<block v-for='(item,index) in city' :key="index">
|
||||
<view class="cityList" @click="chooseCity(item,index)">
|
||||
{{item.label}}
|
||||
<image src="../../static/img/correct.svg" v-if='cityId===item.value' mode=""></image>
|
||||
</view>
|
||||
<view class="border">
|
||||
|
||||
</view>
|
||||
|
||||
</block>
|
||||
<view class="" style="height: 200rpx;background-color: #f6f6f6;"></view>
|
||||
<view class="btn" v-if="cityId" @click="comfirm">
|
||||
<view class="bottombtn">
|
||||
确定
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getcoder} from "@/api/map.js";
|
||||
import {setCity} from '@/api/resume.js'
|
||||
|
||||
import {
|
||||
mapGetters
|
||||
} from 'vuex'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
index:'',
|
||||
id:'',
|
||||
cityId:'',
|
||||
city:[],
|
||||
}
|
||||
},
|
||||
onLoad:function(option){
|
||||
this.index=option.index;
|
||||
if(option.id){
|
||||
this.id = option.id;
|
||||
}
|
||||
this.city = this.area.data[this.index].children;
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['area'])
|
||||
},
|
||||
methods: {
|
||||
comfirm:function(e){
|
||||
if(this.cityId){
|
||||
setCity(this.id,this.cityId).then(res=>{
|
||||
uni.navigateTo({
|
||||
url:'../my/resume/index'
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
chooseCity:function(item,index){
|
||||
this.cityId = item.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.bottombtn{
|
||||
background-color: #1B66FF;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 10rpx;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-size: 32rpx;
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
}
|
||||
.btn{
|
||||
background-color: #fefefe;
|
||||
width: 690rpx;
|
||||
padding: 30rpx;
|
||||
padding-bottom: 80rpx;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
.border{
|
||||
margin-left: 30rpx;
|
||||
width: 720rpx;
|
||||
border-bottom: 2rpx solid #dddddd;
|
||||
}
|
||||
.cityList{
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 32rpx;
|
||||
color: #333333;
|
||||
padding: 30rpx;
|
||||
/* padding-left: 0;
|
||||
margin-left: 30rpx; */
|
||||
|
||||
background-color: #fefefe;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.cityList image{
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
/* margin-left: auto; */
|
||||
}
|
||||
.title{
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 28rpx;
|
||||
color: #999999;
|
||||
background-color: #f6f6f6;
|
||||
padding: 30rpx;
|
||||
}
|
||||
page{background-color: #f6f6f6;}
|
||||
</style>
|
||||
Reference in New Issue
Block a user