All Projects → xiaoyucoding → mp-weixin-region-data

xiaoyucoding / mp-weixin-region-data

Licence: MIT License
微信小程序省市区选择器数据字典

Projects that are alternatives of or similar to mp-weixin-region-data

miniprogram-picker
微信小程序自定义组件Picker。本组件对微信小程序原生Picker组件进行了二次封装,开发者只需要提供固定数据结构的sourceData,再进行一些必要配置,本组件就可以自动帮助开发者处理联动逻辑。
Stars: ✭ 30 (+66.67%)
Mutual labels:  picker, miniprogram
android-folder-picker-library
A light-weight (just 27 KB) android library to let users choose folder / files.
Stars: ✭ 64 (+255.56%)
Mutual labels:  picker
SettingsAppInSwiftUI
I have recreated a Settings App in iPhoneXR using SwiftUI concepts such as Form,Section,Toggle,Picker,Stack..etc
Stars: ✭ 37 (+105.56%)
Mutual labels:  picker
MaterialDayPicker
An elegant day of the week picker inspired by Google's clock app
Stars: ✭ 59 (+227.78%)
Mutual labels:  picker
react-daterange-picker
A react date range picker to using @material-ui. Live Demo: https://flippingbitss.github.io/react-daterange-picker/
Stars: ✭ 85 (+372.22%)
Mutual labels:  picker
mall
优达学城小程序商城
Stars: ✭ 21 (+16.67%)
Mutual labels:  miniprogram
android-pickpic
Ready to use library that allows people to select pictures from their device and Facebook account.
Stars: ✭ 12 (-33.33%)
Mutual labels:  picker
accounting-together
📃 使用小程序云开发+Vant组件库搭建的一个AA收账小程序【一起算账】
Stars: ✭ 71 (+294.44%)
Mutual labels:  miniprogram
ColorPick.js
A simple and minimal jQuery color picker plugin for the modern web.
Stars: ✭ 48 (+166.67%)
Mutual labels:  picker
a-color-picker
A color picker for web app
Stars: ✭ 97 (+438.89%)
Mutual labels:  picker
wecontr
小程序 内容管理系统CMS 适合站长和自媒体 含积分兑换商城 推荐锁粉奖励等玩法
Stars: ✭ 46 (+155.56%)
Mutual labels:  miniprogram
react-native-value-picker
Cross-Platform iOS(ish) style picker for react native.
Stars: ✭ 18 (+0%)
Mutual labels:  picker
WeConsole
功能全面、界面与体验对标 Chrome devtools 的可定制化的小程序开发调试面板
Stars: ✭ 137 (+661.11%)
Mutual labels:  miniprogram
wxapp-computed
在微信小程序中使计算值(computed)
Stars: ✭ 20 (+11.11%)
Mutual labels:  miniprogram
miniprogram
[微信小程序/小游戏] A fast wechat miniprogram/minigame development sdk written in Golang
Stars: ✭ 52 (+188.89%)
Mutual labels:  miniprogram
weapp.request
为微信小程序提供的网络请求组件,是 wx.request 的扩展,基于 Promise API,添加缓存控制
Stars: ✭ 29 (+61.11%)
Mutual labels:  miniprogram
HiGoogleFonts
HiGoogleFonts allows you to add a Google font picker to easily display a list of Google fonts. The picker shows an instant preview of the font style without loading the font css.
Stars: ✭ 44 (+144.44%)
Mutual labels:  picker
filesystem picker
FileSystem file or folder picker dialog.
Stars: ✭ 44 (+144.44%)
Mutual labels:  picker
face
基于 Remax 的多端研发体系
Stars: ✭ 26 (+44.44%)
Mutual labels:  miniprogram
wot-design-mini
An ui component library for mini program
Stars: ✭ 28 (+55.56%)
Mutual labels:  miniprogram

mp-weixin-region-data

微信小程序省市区选择器数据字典

说明

数据来源微信小程序的省市区选择器,主要有两个用处:

  • 自定义省市区选择器组件
  • 服务端数据字典与客户端一致

数据格式

有两种模式

multi

省、市、区(县)的数据独立存放,通过 value 作为 key 进行关联。

// province.json 省
{
    "value": "110000",
    "text": "北京"
}
// city.json 市
{
    "110000": [{
        "value": "110100",
        "text": "北京市"
    }]
}
// district.json 区
{
    "110100": [{
        "value": "110101",
        "text": "东城区"
    }, ...]
}

single

数据在一个文件中,类似父子结构存放。

{
    "value": "110000",
    "text": "北京市",
    "children": [{
        "value": "110100",
        "text": "北京市",
        "children": [{
            "value": "110101",
            "text": "东城区"
        }, {
            "value": "110102",
            "text": "西城区"
        }, {
            "value": "110105",
            "text": "朝阳区"
        }, {
            "value": "110106",
            "text": "丰台区"
        }, {
            "value": "110107",
            "text": "石景山区"
        }, {
            "value": "110108",
            "text": "海淀区"
        }, {
            "value": "110109",
            "text": "门头沟区"
        }, {
            "value": "110111",
            "text": "房山区"
        }, {
            "value": "110112",
            "text": "通州区"
        }, {
            "value": "110113",
            "text": "顺义区"
        }, {
            "value": "110114",
            "text": "昌平区"
        }, {
            "value": "110115",
            "text": "大兴区"
        }, {
            "value": "110116",
            "text": "怀柔区"
        }, {
            "value": "110117",
            "text": "平谷区"
        }, {
            "value": "110118",
            "text": "密云区"
        }, {
            "value": "110119",
            "text": "延庆区"
        }]
    }]
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].