update token

This commit is contained in:
2020-06-22 17:45:17 +08:00
parent 7e71f97e01
commit 28911b6e7c
7 changed files with 195 additions and 146 deletions

View File

@@ -7,8 +7,8 @@
<view>
<input type="text" placeholder="手机号" />
</view>
<view class="area">
<input type="text" placeholder="省市区" />
<view class="area" @click="show=true">
<input type="text" placeholder="省市区" disabled />
</view>
<view>
<input type="text" placeholder="详细地址" />
@@ -21,16 +21,34 @@
</view>
</view>
<view class="edit-btn">保存地址</view>
<!-- <u-picker mode="region" v-model="show" @confirm="setArea"></u-picker> -->
<u-select v-model="show" mode="mutil-column-auto" :list="areaList" @confirm="setArea"></u-select>
</view>
</template>
<script>
export default {
data() {
return {
checked: false
checked: false,
show: false,
areaList: []
}
},
mounted() {
this.getAreaList(0);
},
methods: {
setArea(e) {
console.log(e);
},
getAreaList(pid) {
this.$u.api.getAreaList({
pid: pid
}).then((res)=>{
if (res.errCode == 0) {}
})
}
},
onLoad() {}
}
</script>
<style lang="scss" scoped>