bopy_addresspicker
v0.0.1
Published
address picker for bonbon's wepy
Downloads
1
Readme
#🍭地址选择器(wepy版本)
使用方法:
html:
<template>
<view>
<addressPicker cls="custom-class" :url="url"></addressPicker>
<view @tap="getArea">123</view>
</view>
</template>
javascript:
import wepy from 'wepy'
import AddressPicker from 'bona_addresspicker'
import {GET_CITY_LIST} from '../api/api' // 获取地址接口
export default class List extends wepy.page {
config = {
navigationBarTitleText: 'list'
}
data = {
url: GET_CITY_LIST
}
components = {
addressPicker: AddressPicker
}
methods = {
getArea() {
var r = this.$invoke('./addressPicker', 'getArea')
console.log(r)
}
}
}