当前位置:网站首页>Uniapp picker select the effect demo of provinces and cities (finishing)
Uniapp picker select the effect demo of provinces and cities (finishing)
2022-07-25 03:39:00 【I'm happy】
design sketch :
describe : Select the three-level linkage function of provinces and cities in the applet
picker, Open the components of small programs in wechat - You can see in the form component :
picker It is mainly to use mode attribute ,mode Attribute contains :
<template>
<view class="Box">
<picker mode="region" @change="change">
<view>
My address :{
{
myregion}}
</view>
</picker>
</view>
</template>
<script>
export default {
components: {
},
data() {
return {
myregion: ' Please select ',
}
},
// Page loading
onLoad(e) {
//uni.hideTabBar(); // Don't let the bottom show tab Options
},
// Page shows
onShow() {
},
// Method
methods: {
// Click to select a province or city
change(e){
console.log(e,'change');
this.myregion = e.detail.value[0] + '-' + e.detail.value[1] + '-' + e.detail.value[2];
},
},
// Compute properties
computed: {
},
// The listener
watch: {
},
// Page hidden
onHide() {
},
// Page uninstall
onUnload() {
},
// Trigger pull-down refresh
onPullDownRefresh() {
this.pageNum = 1
// this.getListData()
},
// Handling function of page pull bottom event
onReachBottom() {
this.pageNum++
// this.getListData()
},
}
</script>
<style lang="scss" scoped>
</style>
边栏推荐
- B. Making Towers
- Experience sharing of system architecture designers in preparing for the exam: how to prepare for the exam effectively
- Use of CCleaner
- C. Mark and His Unfinished Essay
- Zhanrui Mobile Phone Unlocked
- Deep learning Titanic (beginner) kaggle Liu er's homework Lesson 8
- [Flink] protocol operator reduce
- One question per day
- Force deduction question 3
- Flowlayout in compose
猜你喜欢

Servlet个人实操笔记(一)

B. Almost Ternary Matrix
![Matplotlib tutorial (I) [getting to know Matplotlib first]](/img/dc/e7dfc435900c14e3e9be07f6ad75fe.png)
Matplotlib tutorial (I) [getting to know Matplotlib first]

Secondary vocational network security skills competition P100 dcore (light CMS system) SQL injection

Task02 | EDA initial experience

C language_ Defining structures and using variables

292. Nim game

Select sort / cardinality sort

Hal library serial port for note taking

基于SSM实现后勤报修系统
随机推荐
C language_ Structure introduction
Detailed explanation of three factory modes
Force deduction question 3
10. 509 Certificate (structure + principle)
Deep learning method of building a model from zero
Openlayers draw circles and ellipses
场景之在线人数或者粉丝查询实现
VMware installation
Force deduction brush question 7. Integer inversion
Visio use
300. Longest increasing subsequence
301. Delete invalid brackets
Imeta | ggclusternet microbial network analysis and visualization nanny level tutorial
MySQL select query part 2
原创|记一次高校漏洞挖掘
[Flink] rich function
Calculation method of confusion matrix
Introduction to Apache Doris grafana monitoring indicators
Li Kou 343 integer partition dynamic programming
01_ Education 1