hwq 2 lat temu
rodzic
commit
16a2c21471
100 zmienionych plików z 24281 dodań i 0 usunięć
  1. 16 0
      .hbuilderx/launch.json
  2. 264 0
      App.vue
  3. 276 0
      api/activity.js
  4. 84 0
      api/functionalUnit.js
  5. 44 0
      api/index.js
  6. 64 0
      api/login.js
  7. 146 0
      api/order.js
  8. 186 0
      api/product.js
  9. 46 0
      api/set.js
  10. 183 0
      api/user.js
  11. 134 0
      api/wallet.js
  12. 37 0
      api/wx.js
  13. 57 0
      components/Loading/index.vue
  14. 120 0
      components/countDown/index.vue
  15. 18 0
      components/empty.vue
  16. 36 0
      components/emptyPage.vue
  17. 118 0
      components/home/index.vue
  18. 630 0
      components/jyf-parser/jyf-parser.vue
  19. 97 0
      components/jyf-parser/libs/CssHandler.js
  20. 535 0
      components/jyf-parser/libs/MpHtmlParser.js
  21. 80 0
      components/jyf-parser/libs/config.js
  22. 22 0
      components/jyf-parser/libs/handler.wxs
  23. 501 0
      components/jyf-parser/libs/trees.vue
  24. 421 0
      components/newlist/nowList.vue
  25. 71 0
      components/returnButton.vue
  26. 246 0
      components/seckill/seckill.vue
  27. 196 0
      components/share.vue
  28. 218 0
      components/ss-calendar/ss-calendar.vue
  29. 1201 0
      components/tki-qrcode/qrcode.js
  30. 210 0
      components/tki-qrcode/tki-qrcode.vue
  31. 122 0
      components/uni-badge/uni-badge.vue
  32. 181 0
      components/uni-countdown/uni-countdown.vue
  33. 188 0
      components/uni-countdown/uni-countdowns.vue
  34. 124 0
      components/uni-fav/uni-fav.vue
  35. 96 0
      components/uni-icons/icons.js
  36. 10 0
      components/uni-icons/uni-icons.vue
  37. 230 0
      components/uni-list-item/uni-list-item.vue
  38. 68 0
      components/uni-list/uni-list.vue
  39. 65 0
      components/uni-list/uni-refresh.vue
  40. 87 0
      components/uni-list/uni-refresh.wxs
  41. 194 0
      components/uni-load-more/uni-load-more.vue
  42. 396 0
      components/uni-notice-bar/uni-notice-bar.vue
  43. 198 0
      components/uni-number-box.vue
  44. 243 0
      components/uni-popup/uni-popup-dialog.vue
  45. 116 0
      components/uni-popup/uni-popup-message.vue
  46. 263 0
      components/uni-popup/uni-popup-ori.vue
  47. 282 0
      components/uni-popup/uni-popup-share.vue
  48. 263 0
      components/uni-popup/uni-popup.vue
  49. 141 0
      components/uni-rate/uni-rate.vue
  50. 244 0
      components/uni-steps/uni-steps.vue
  51. 279 0
      components/uni-transition/uni-transition.vue
  52. 226 0
      components/upload-images.vue
  53. 7076 0
      components/wangding-pickerAddress/data.js
  54. 103 0
      components/wangding-pickerAddress/wangding-pickerAddress.vue
  55. 18 0
      config/app.js
  56. 32 0
      config/cache.js
  57. 33 0
      js_sdk/xb-copy/uni-copy.js
  58. 39 0
      libs/log.js
  59. 84 0
      libs/login.js
  60. 253 0
      libs/wechat.js
  61. 46 0
      main.js
  62. 93 0
      manifest.json
  63. 34 0
      node_modules/.package-lock.json
  64. 901 0
      node_modules/axios/CHANGELOG.md
  65. 19 0
      node_modules/axios/LICENSE
  66. 909 0
      node_modules/axios/README.md
  67. 5 0
      node_modules/axios/SECURITY.md
  68. 168 0
      node_modules/axios/UPGRADE_GUIDE.md
  69. 2277 0
      node_modules/axios/dist/axios.js
  70. 0 0
      node_modules/axios/dist/axios.map
  71. 0 0
      node_modules/axios/dist/axios.min.js
  72. 0 0
      node_modules/axios/dist/axios.min.map
  73. 221 0
      node_modules/axios/index.d.ts
  74. 1 0
      node_modules/axios/index.js
  75. 37 0
      node_modules/axios/lib/adapters/README.md
  76. 404 0
      node_modules/axios/lib/adapters/http.js
  77. 212 0
      node_modules/axios/lib/adapters/xhr.js
  78. 57 0
      node_modules/axios/lib/axios.js
  79. 19 0
      node_modules/axios/lib/cancel/Cancel.js
  80. 119 0
      node_modules/axios/lib/cancel/CancelToken.js
  81. 5 0
      node_modules/axios/lib/cancel/isCancel.js
  82. 148 0
      node_modules/axios/lib/core/Axios.js
  83. 54 0
      node_modules/axios/lib/core/InterceptorManager.js
  84. 8 0
      node_modules/axios/lib/core/README.md
  85. 20 0
      node_modules/axios/lib/core/buildFullPath.js
  86. 18 0
      node_modules/axios/lib/core/createError.js
  87. 87 0
      node_modules/axios/lib/core/dispatchRequest.js
  88. 43 0
      node_modules/axios/lib/core/enhanceError.js
  89. 99 0
      node_modules/axios/lib/core/mergeConfig.js
  90. 25 0
      node_modules/axios/lib/core/settle.js
  91. 22 0
      node_modules/axios/lib/core/transformData.js
  92. 134 0
      node_modules/axios/lib/defaults.js
  93. 3 0
      node_modules/axios/lib/env/README.md
  94. 3 0
      node_modules/axios/lib/env/data.js
  95. 7 0
      node_modules/axios/lib/helpers/README.md
  96. 11 0
      node_modules/axios/lib/helpers/bind.js
  97. 70 0
      node_modules/axios/lib/helpers/buildURL.js
  98. 14 0
      node_modules/axios/lib/helpers/combineURLs.js
  99. 53 0
      node_modules/axios/lib/helpers/cookies.js
  100. 24 0
      node_modules/axios/lib/helpers/deprecatedMethod.js

+ 16 - 0
.hbuilderx/launch.json

@@ -0,0 +1,16 @@
+{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
+  // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
+    "version": "0.0",
+    "configurations": [{
+     	"default" : 
+     	{
+     		"launchtype" : "remote"
+     	},
+     	"mp-weixin" : 
+     	{
+     		"launchtype" : "remote"
+     	},
+     	"type" : "uniCloud"
+     }
+    ]
+}

+ 264 - 0
App.vue

@@ -0,0 +1,264 @@
+<script>
+/**
+ * vuex管理登陆状态,具体可以参考官方登陆模板示例
+ */
+import { mapMutations } from 'vuex';
+// #ifdef H5
+import { weixindata, setRouter } from './utils/wxAuthorized';
+// #endif
+// #ifdef APP-PLUS
+import { getUpApp } from './utils/upApp.js';
+// #endif
+export default {
+	data() {
+		return {
+			/* 保存微信信息 */
+			appData: {}
+		};
+	},
+	methods: {
+		...mapMutations('user', ['setUserInfo', 'login', 'hasLogin'])
+	},
+	onLaunch: function(urlObj) {
+		let obj = this;
+		// 加载缓存中的用户信息
+		let userInfo = uni.getStorageSync('userInfo') || '';
+		// 判断是否拥有用户信息
+		if (userInfo.uid) {
+			//更新登陆状态
+			uni.getStorage({
+				key: 'userInfo',
+				success: res => {
+					obj.setUserInfo(res.data);
+					obj.login(res.data);
+				}
+			});
+		}
+		// #ifdef H5
+		// 保存路由对象
+		setRouter(this.$router);
+		//判断是否已经缓存浏览器
+		let bool = uni.getStorageSync('weichatBrowser') || '';
+		if (bool === '') {
+			//判断是否为微信浏览
+			bool = navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == 'micromessenger';
+			// 保存当前是否为微信内核浏览器
+			uni.setStorageSync('weichatBrowser', bool);
+		}
+		if (bool) {
+			// 加载微信信息
+			weixindata();
+		}
+		// #endif
+		// #ifdef APP-PLUS
+		// 判断是否升级
+		getUpApp();
+		// 获取当前运行系统
+		let system = uni.getStorageSync('platform') || '';
+		if (!system) {
+			uni.setStorage({
+				key: 'platform',
+				data: uni.getSystemInfoSync().platform
+			});
+		}
+		// #endif
+	},
+	onShow: function() {
+		// 加载拦截
+		// console.log('App Show');
+	},
+	onHide: function() {
+		// console.log('App Hide');
+	}
+};
+</script>
+
+<style lang="scss">
+/*全局公共样式和字体图标*/
+@import '/static/css/cmy.css';
+@import "uview-ui/index.scss";
+view,
+scroll-view,
+swiper,
+swiper-item,
+cover-view,
+cover-image,
+icon,
+text,
+rich-text,
+progress,
+button,
+checkbox,
+form,
+input,
+label,
+radio,
+slider,
+switch,
+textarea,
+navigator,
+audio,
+camera,
+image,
+video {
+	box-sizing: border-box;
+}
+/* 骨架屏替代方案 */
+.Skeleton {
+	background: #f3f3f3;
+	padding: 20rpx 0;
+	border-radius: 8rpx;
+}
+
+/* 图片载入替代方案 */
+.image-wrapper {
+	font-size: 0;
+	background: #f3f3f3;
+	border-radius: 4px;
+	image {
+		width: 100%;
+		height: 100%;
+		transition: 0.6s;
+		opacity: 0;
+		&.loaded {
+			opacity: 1;
+		}
+	}
+}
+
+// 设置富文本中图片最大宽度
+uni-rich-text img {
+	max-width: 100% !important;
+}
+/*边框*/
+.b-b:after,
+.b-t:after {
+	position: absolute;
+	z-index: 3;
+	left: 0;
+	right: 0;
+	height: 0;
+	content: '';
+	transform: scaleY(0.5);
+	border-bottom: 1px solid $border-color-base;
+}
+
+.b-b:after {
+	bottom: 0;
+}
+
+.b-t:after {
+	top: 0;
+}
+
+/* button样式改写 */
+uni-button,
+button {
+	height: 80rpx;
+	line-height: 80rpx;
+	font-size: $font-lg + 2rpx;
+	font-weight: normal;
+
+	&.no-border:before,
+	&.no-border:after {
+		border: 0;
+	}
+}
+
+uni-button[type='default'],
+button[type='default'] {
+	color: $font-color-dark;
+}
+
+/* input 样式 */
+.input-placeholder {
+	color: #999999;
+}
+
+.placeholder {
+	color: #999999;
+}
+// 边距样式
+@for $i from 1 to 4 {
+	.margin-l-#{$i * 10} {
+		margin-left: $i * 10rpx !important;
+	}
+	.margin-r-#{$i * 10} {
+		margin-right: $i * 10rpx !important;
+	}
+	.margin-t-#{$i * 10} {
+		margin-top: $i * 10rpx !important;
+	}
+	.margin-b-#{$i * 10} {
+		margin-bottom: $i * 10rpx !important;
+	}
+	.margin-#{$i * 10} {
+		margin: $i * 10rpx !important;
+	}
+	.margin-v-#{$i * 10} {
+		margin-top: $i * 10rpx !important;
+		margin-bottom: $i * 10rpx !important;
+	}
+	.margin-c-#{$i * 10} {
+		margin-left: $i * 10rpx !important;
+		margin-right: $i * 10rpx !important;
+	}
+	.padding-l-#{$i * 10} {
+		padding-left: $i * 10rpx !important;
+	}
+	.padding-r-#{$i * 10} {
+		padding-right: $i * 10rpx !important;
+	}
+	.padding-t-#{$i * 10} {
+		padding-top: $i * 10rpx !important;
+	}
+	.padding-b-#{$i * 10} {
+		padding-bottom: $i * 10rpx !important;
+	}
+	.padding-#{$i * 10} {
+		padding: $i * 10rpx !important;
+	}
+	.padding-v-#{$i * 10} {
+		padding-top: $i * 10rpx !important;
+		padding-bottom: $i * 10rpx !important;
+	}
+	.padding-c-#{$i * 10} {
+		padding-left: $i * 10rpx !important;
+		padding-right: $i * 10rpx !important;
+	}
+}
+// 字体大小
+.font-size-sm {
+	font-size: $font-sm;
+}
+.font-size-base {
+	font-size: $font-base;
+}
+.font-size-lg {
+	font-size: $font-lg;
+}
+// 字体颜色
+.font-color-yellow {
+	color: $color-yellow;
+}
+.font-color-gray {
+	color: $color-gray;
+}
+.font-color-red {
+	color: $color-red;
+}
+// 边框颜色
+.border-color-yellow {
+	border: 1rpx solid $color-yellow;
+}
+
+// 修改默认背景颜色
+uni-page-wrapper {
+	background-color: $page-color-base;
+}
+page {
+	background-color: $page-color-base;
+	// 设置默认字体
+	font-family: PingFang SC, STHeitiSC-Light, Helvetica-Light, arial, sans-serif, Droid Sans Fallback;
+}
+</style>

+ 276 - 0
api/activity.js

@@ -0,0 +1,276 @@
+import request from "@/utils/request.js";
+/**
+ * 
+ * 所有活动接口 包括:拼团,砍价,秒杀
+ * 
+*/
+// 砍价产品详情
+export function getBargainDetail(data,id) {
+	return request({
+		url: '/api/bargain/detail/' + id,
+		method: 'get',
+		data
+	});
+}
+
+/**
+ * 砍价产品详情
+ */
+// export function getBargainDetail(id) {
+//   return request.get("bargain/detail/" + id);
+// }
+
+//砍价 砍价帮总人数、剩余金额、进度条、已经砍掉的价格
+export function postBargainHelpCount(data) {
+	return request({
+		url: '/api/bargain/help/count',
+		method: 'post',
+		data
+	});
+}
+
+/**
+ * 砍价 砍价帮总人数、剩余金额、进度条、已经砍掉的价格
+ */
+// export function postBargainHelpCount(data) {
+//   return request.post("bargain/help/count", data);
+// }
+
+//砍价 开启砍价用户信息
+export function postBargainStartUser(data) {
+	return request({
+		url: '/api/bargain/start/user',
+		method: 'post',
+		data
+	});
+}
+
+/**
+ * 砍价 开启砍价用户信息
+ */
+// export function postBargainStartUser(data) {
+//   return request.post("bargain/start/user", data);
+// }
+
+//砍价开启
+export function postBargainStart(data) {
+	return request({
+		url: '/api/bargain/start',
+		method: 'post',
+		data
+	});
+}
+
+/**
+ * 砍价开启
+ */
+// export function postBargainStart(bargainId) {
+//   return request.post("bargain/start", { bargainId: bargainId});
+// }
+
+// 砍价 砍掉金额
+export function postBargainHelpPrice(data) {
+	return request({
+		url: '/api/bargain/help/price',
+		method: 'post',
+		data
+	});
+}
+
+/**
+ * 砍价 砍掉金额
+ */
+// export function postBargainHelpPrice(data) {
+//   return request.post("bargain/help/price", data);
+// }
+
+// 砍价 帮助好友砍价
+export function postBargainHelp(data) {
+	return request({
+		url: '/api/bargain/help',
+		method: 'post',
+		data
+	});
+}
+
+/**
+ * 砍价 帮助好友砍价
+ */
+// export function postBargainHelp(data) {
+//   return request.post("bargain/help", data);
+// }
+
+// 砍价 砍价帮
+export function postBargainHelpList(data) {
+	return request({
+		url: '/api/bargain/help/list',
+		method: 'post',
+		data
+	});
+}
+
+
+/**
+ * 砍价 砍价帮
+ */
+// export function postBargainHelpList(data) {
+//   return request.post("bargain/help/list", data);
+// }
+
+// 砍价 观看/分享/参与次数
+export function postBargainShare(data) {
+	return request({
+		url: '/api/bargain/share',
+		method: 'post',
+		data
+	});
+}
+
+/**
+ * 砍价 观看/分享/参与次数
+ */
+// export function postBargainShare(bargainId) {
+//   return request.post("bargain/share", { bargainId: bargainId});
+// }
+
+// 砍价列表(已参与)
+export function getBargainUserList(data) {
+	return request({
+		url: '/api/bargain/user/list',
+		method: 'get',
+		data
+	});
+}
+
+/**
+ * 
+ * 砍价列表(已参与)
+ * @param object data
+*/
+// export function getBargainUserList(data){
+//   return request.get('bargain/user/list',data);
+// }
+
+// 砍价取消
+export function getBargainUserCancel(data) {
+	return request({
+		url: '/api/bargain/user/cancel',
+		method: 'post',
+		data
+	});
+}
+
+/**
+ * 砍价取消
+ */
+// export function getBargainUserCancel(data) {
+//   return request.post("/bargain/user/cancel", data);
+// }
+
+
+
+
+
+/**
+ * 拼团列表
+ * 
+*/
+export function getCombinationList(data) {
+  return request.get('combination/list', data,{noAuth:true});
+}
+
+/**
+ * 拼团详情
+ * 
+*/
+export function getCombinationDetail(id) {
+  return request.get('combination/detail/'+id);
+}
+
+/**
+ * 拼团 开团
+ */
+export function getCombinationPink(id) {
+  return request.get("combination/pink/" + id);
+}
+
+/**
+ * 拼团 取消开团
+ */
+export function postCombinationRemove(data) {
+  return request.post("combination/remove",data);
+}
+
+/**
+ * 砍价列表
+ */
+export function getBargainList(data) {
+  return request.get("bargain/list", data,{noAuth:true});
+}
+
+
+/**
+ * 
+ * 取消砍价
+ * @param int bargainId
+*/
+export function bargainUserCancel(bargainId){
+  return request.post('bargain/user/cancel', { bargainId: bargainId})
+}
+
+/**
+ * 秒杀产品时间区间
+ * 
+*/
+export function getSeckillIndexTime(){
+  return request.get('seckill/index',{},{noAuth:true});
+}
+
+/**
+ * 秒杀产品列表
+ * @param int time
+ * @param object data
+*/
+export function getSeckillList(time,data){
+  return request.get('seckill/list/'+time,data,{noAuth:true});
+}
+
+/**
+ * 秒杀产品详情
+ * @param int id
+*/
+export function getSeckillDetail(id){
+  return request.get('seckill/detail/'+id);
+}
+
+/**
+ * 砍价海报
+ * @param object data
+ * 
+*/
+export function getBargainPoster(data){
+  return request.post('bargain/poster',data)
+}
+
+/**
+ * 拼团海报
+ * @param object data
+ * 
+*/
+export function getCombinationPoster(data){
+  return request.post('combination/poster',data)
+}
+
+/**
+ * 获取秒杀小程序二维码
+ */
+export function seckillCode(id,data) {
+  return request.get("seckill/code/"+id,data);
+}
+
+/**
+ * 获取拼团小程序二维码
+ */
+export function scombinationCode(id) {
+  return request.get("combination/code/"+id);
+}

+ 84 - 0
api/functionalUnit.js

@@ -0,0 +1,84 @@
+import request from '@/utils/request'
+
+//获取优惠券列表
+export function getCouponsList(data,types) {
+	//优惠券状态 0全部 1未使用 2已使用
+	return request({
+		url: '/api/coupons/user/'+types,
+		method: 'get',
+		data
+	});
+}
+
+//领取优惠券
+export function setCoupons(data) {
+	return request({
+		url: '/api/coupon/receive',
+		method: 'post',
+		data
+	});
+}
+
+//获取可使用优惠券
+export function couponsOrder(data,price) {
+	return request({
+		url: '/api/coupons/order/'+price,
+		method: 'get',
+		data
+	});
+}
+
+
+//	积分列表
+export function integrallist(data) {
+	return request({
+		url: '/api/integral/list',
+		method: 'get',
+		data
+	});
+}
+
+
+// 获取签到列表
+export function signList(data) {
+	return request({
+		url: '/api/sign/list',
+		method: 'get',
+		data
+	});
+}
+// 点击签到
+export function integral(data) {
+	return request({
+		url: '/api/sign/integral',
+		method: 'post',
+		data
+	});
+}
+
+// 签到信息
+export function signUser(data) {
+	return request({
+		url: '/api/sign/user',
+		method: 'post',
+		data
+	});
+}
+
+//天天领红包-当天可领
+export function my_award(data) {
+	return request({
+		url: '/api/game/my_award',
+		method: 'get',
+		data
+	});
+}
+
+//天天领红包-领取红包
+export function get_award(data,id) {
+	return request({
+		url: '/api/game/get_award/' + id,
+		method: 'post',
+		data
+	});
+}

+ 44 - 0
api/index.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 促销商品
+export function groom4(data) {
+	return request({
+		url: '/api/groom/list/4',
+		method: 'get',
+		data
+	});
+}
+// 精品推荐
+export function groom1(data) {
+	return request({
+		url: '/api/groom/list/1',
+		method: 'get',
+		data
+	});
+}
+// 新品首发
+export function groom3(data) {
+	return request({
+		url: '/api/groom/list/3',
+		method: 'get',
+		data
+	});
+}
+
+// 获取首页信息
+export function loadIndexs(data) {
+	return request({
+		url: '/api/index',
+		method: 'get',
+		data
+	});
+}
+
+//获取门店列表
+export function store_list(data) {
+	return request({
+		url: '/api/store_list',
+		method: 'get',
+		data
+	});
+}

+ 64 - 0
api/login.js

@@ -0,0 +1,64 @@
+import request from '@/utils/request'
+
+// 登录
+export function login(data) {
+	return request({
+		url: '/api/login',
+		method: 'post',
+		data
+	});
+}
+// 注册
+export function register(data) {
+	return request({
+		url: '/api/register',
+		method: 'post',
+		data
+	});
+}
+// 验证码
+export function verify(data) {
+	// type=register为注册
+	// type=login为登录
+	return request({
+		url: '/api/register/verify',
+		method: 'post',
+		data
+	});
+}
+
+// 获取用户信息
+export function getUserInfo(data) {
+	return request({
+		url: '/api/userinfo',
+		method: 'get',
+		data
+	});
+}
+
+// 短信登录
+export function loginMobile(data) {
+	return request({
+		url: '/api/login/mobile',
+		method: 'post',
+		data
+	});
+}
+// #ifdef APP-PLUS
+// 微信授权登录
+export function loginWx(data) {
+	return request({
+		url: '/api/wechat/appauth',
+		method: 'get',
+		data
+	});
+}
+// #endif
+//绑定手机号
+export function bangding(data) {
+	return request({
+		url: '/api/binding',
+		method: 'POST',
+		data
+	});
+}

+ 146 - 0
api/order.js

@@ -0,0 +1,146 @@
+import request from '@/utils/request'
+import {upFilse} from '@/utils/request'
+// 订单确认
+export function confirm(data) {
+	return request({
+		url: '/api/order/confirm',
+		method: 'post',
+		data
+	});
+}
+//获取可使用优惠券
+export function couponsOrder(data,price,id) {
+	return request({
+		url: '/api/coupons/order/'+price+'/'+id,
+		method: 'get',
+		data
+	});
+}
+//获取优惠券列表
+export function getCouponsList(data,types) {
+	//优惠券状态 0全部 1未使用 2已使用
+	return request({
+		url: '/api/coupons/user/'+types,
+		method: 'get',
+		data
+	});
+}
+//提交评论
+export function order_comment(data) {
+	return request({
+		url: '/api/order/comment',
+		method: 'post',
+		data
+	});
+}
+//订单产品信息
+export function product(data) {
+	return request({
+		url: '/api/order/product',
+		method: 'post',
+		data
+	});
+}
+// 快递查询
+export function express_query(data) {
+	return request({
+		url: '/api/order/express_query',
+		method: 'get',
+		data
+	});
+}
+//上传图片
+export function upload(data) {
+	return upFilse({
+		url: '/api/upload/image',
+		method: 'post',
+		data
+	});
+}
+// 订单列表
+export function orderList(data) {
+	return request({
+		url: '/api/order/list',
+		method: 'get',
+		data
+	});
+}
+// 订单详细
+export function orderDetail(data,orderid) {
+	return request({
+		url: '/api/order/detail/'+orderid,
+		method: 'get',
+		data
+	});
+}
+
+// 取消订单
+export function orderCancel(data) {
+	return request({
+		url: '/api/order/cancel',
+		method: 'post',
+		data
+	});
+}
+
+// 删除订单
+export function orderDel(data) {
+	return request({
+		url: '/api/order/del',
+		method: 'get',
+		data
+	});
+}
+// 申请退款
+export function refund(data) {
+	return request({
+		url: '/api/order/refund/verify',
+		method: 'post',
+		data
+	});
+}
+// 退款理由列表
+export function refundReason(data) {
+	return request({
+		url: '/api/order/refund/reason',
+		method: 'get',
+		data
+	});
+}
+
+// 确认收货
+export function orderTake(data) {
+	return request({
+		url: '/api/order/take',
+		method: 'post',
+		data
+	});
+}
+
+// 订单支付
+export function orderPay(data) {
+	return request({
+		url: '/api/order/pay',
+		method: 'post',
+		data
+	});
+}
+
+// 创建订单
+export function createOrderkey(data,key) {
+	return request({
+		url: '/api/order/create/'+key,
+		method: 'post',
+		data
+	});
+}
+
+// 统计订单金额
+export function computedOrderkey(data) {
+	return request({
+		url: '/api/order/computed/'+data.orderkey,
+		method: 'post',
+		data
+	});
+}
+

+ 186 - 0
api/product.js

@@ -0,0 +1,186 @@
+import request from '@/utils/request'
+
+// 获取商品列表
+export function getProducts(data) {
+	// 	{
+	// 参数名称	是否必须	示例	备注
+	// sid			否			二级分类编号
+	// cid			否			一级分类编号(!)
+	// keyword		否			搜索
+	// priceOrder	否			价格排序
+	// salesOrder	否			销量排序
+	// news			否			是否新品
+	// page			否			分页参数起始值
+	// limit		否			分页数步长值
+	// }
+	return request({
+		url: '/api/products',
+		method: 'get',
+		data
+	});
+}
+// 获取商品详情
+export function goodsDetail(data, id) {
+	return request({
+		url: '/api/product/detail/' + id,
+		method: 'get',
+		data
+	});
+}
+
+// 砍价列表
+export function getBargainList(data) {
+	return request({
+		url: '/api/bargain/list',
+		method: 'get',
+		data
+	});
+}
+// 加入购物车
+export function cartAdd(data) {
+	return request({
+		url: '/api/cart/add',
+		method: 'post',
+		data
+	});
+}
+
+// 收藏商品
+export function collectAdd(data) {
+	return request({
+		url: '/api/collect/add',
+		method: 'post',
+		data
+	});
+}
+
+// 取消收藏商品
+export function collectDel(data) {
+	return request({
+		url: '/api/collect/del',
+		method: 'post',
+		data
+	});
+}
+
+// 获取搜搜关键字
+export function searchKeyword(data) {
+	return request({
+		url: '/api/search/keyword',
+		method: 'get',
+		data
+	});
+}
+
+// 获取热门分类信息
+export function groomList(data,type) {
+	// 获取产品类型 1 精品推荐 2 热门榜单 3首发新品 4促销单品
+	return request({
+		url: '/api/groom/list/'+type,
+		method: 'get',
+		data
+	});
+}
+
+
+// 获取秒杀商品详细
+export function seckillGoods(data,id) {
+	return request({
+		url: '/api/seckill/detail/'+id,
+		method: 'get',
+		data
+	});
+}
+
+// 获取拼团商品详细
+export function groupGoods(data,id) {
+	return request({
+		url: '/api/combination/detail/'+id,
+		method: 'get',
+		data
+	});
+}
+
+
+// 获取商品分类
+export function getCategoryList(data) {
+	return request({
+		url: '/api/category',
+		method: 'get',
+		data
+	});
+}
+
+
+// 获取拼团列表
+export function getCombinationList(data) {
+	return request({
+		url: '/api/combination/list',
+		method: 'get',
+		data
+	});
+}
+
+//取消拼团
+export function getCombinationLisRemove(data,id) {
+	return request({
+		url: '/api/combination/remove'+id,
+		method: 'get',
+		data
+	});
+}
+
+//拼团开团页面数据
+export function getCombinationLisPink(data,id) {
+	return request({
+		url: '/api/combination/pink/'+id,
+		method: 'get',
+		data
+	});
+}
+
+// 获取拼团海报
+export function getCombinationPoster(data) {
+	return request({
+		url: '/api/combination/poster',
+		method: 'post',
+		data
+	});
+}
+
+
+// 获取秒杀分类
+export function getSeckillClass(data) {
+	return request({
+		url: '/api/seckill/index',
+		method: 'get',
+		data
+	});
+}
+// 获取秒杀列表
+export function getSeckillList(data,id) {
+	return request({
+		url: '/api/seckill/list/'+id,
+		method: 'get',
+		data
+	});
+}
+
+
+// 产品评价数量和好评度
+export function reply_config(data,id) {
+	return request({
+		url: '/api/reply/config/'+id,
+		method: 'get',
+		data
+	});
+}
+// 获取产品评论
+export function reply_list(data,id) {
+	return request({
+		url: '/api/reply/list/'+id,
+		method: 'get',
+		data
+	});
+}
+

+ 46 - 0
api/set.js

@@ -0,0 +1,46 @@
+import request from '@/utils/request'
+
+// 修改用户信息
+export function userEdit(data) {
+	return request({
+		url: '/api/user/edit',
+		method: 'post',
+		data
+	});
+}
+
+//退出登录
+export function logout(data) {
+	return request({
+		url: '/api/logout',
+		method: 'get',
+		data
+	});
+}
+//修改密码
+export function registerReset(data) {
+	return request({
+		url: '/api/register/reset',
+		method: 'post',
+		data
+	});
+}
+
+//绑定手机
+export function binding(data) {
+	return request({
+		url: '/api/binding',
+		method: 'post',
+		data
+	});
+}
+// #ifdef APP-PLUS
+//苹果生成账户
+export function applelogin(data) {
+	return request({
+		url: '/api/applelogin',
+		method: 'post',
+		data
+	});
+}
+// #endif

+ 183 - 0
api/user.js

@@ -0,0 +1,183 @@
+import request from '@/utils/request'
+
+
+//查看子点位
+export function lookSubpoints(data,id){
+	return request({
+		url:'/api/tree/children/'+id,
+		method:'get',
+		data
+	})
+}
+//查看自己的点位
+export function lookOneself(data){
+	return request({
+		url:'/api/tree/points',
+		method:'get',
+		data
+		
+	})
+}
+
+//绑定上级
+export function spread(data) {
+	return request({
+		url:'/api/user/spread',
+		method: 'post',
+		data
+	})
+}
+
+//我的推广
+export function myspread(data) {
+	return request({
+		url: '/api/spread/people',
+		method: 'POST',
+		data
+	});
+}
+
+// 订单统计信息
+export function orderData(data) {
+	return request({
+		url: '/api/order/data',
+		method: 'get',
+		data
+	});
+}
+
+// 获取用户信息
+export function getUserInfo(data) {
+	return request({
+		url: '/api/userinfo',
+		method: 'get',
+		data
+	});
+}
+// 获取用户信息
+export function userinfo(data) {
+	return request({
+		url: '/api/userinfo',
+		method: 'get',
+		data
+	});
+}
+
+// 用户分享图
+export function spreadBanner(data) {
+	return request({
+		url: '/api/spread/banner',
+		method: 'get',
+		data
+	});
+}
+
+// 获取地址列表
+export function getAddressList(data) {
+	return request({
+		url: '/api/address/list',
+		method: 'get',
+		data
+	});
+}
+// 修改地址
+export function addressEdit(data) {
+	return request({
+		url: '/api/address/edit',
+		method: 'post',
+		data
+	});
+}
+// 删除地址
+export function addressDel(data) {
+	return request({
+		url: '/api/address/del',
+		method: 'post',
+		data
+	});
+}
+// 设为默认地址
+export function setAddressDefault(data) {
+	return request({
+		url: '/api/address/default/set',
+		method: 'post',
+		data
+	});
+}
+// 购物车列表
+export function getCartList(data) {
+	return request({
+		url: '/api/cart/list',
+		method: 'get',
+		data
+	});
+}
+
+// 修改购物车数量
+export function getCartNum(data) {
+	return request({
+		url: '/api/cart/num',
+		method: 'post',
+		data
+	});
+}
+//删除购物车
+export function cartDel(data) {
+	return request({
+		url: '/api/cart/del',
+		method: 'post',
+		data
+	});
+}
+//获取收藏夹列表
+export function getcollectList(data) {
+	return request({
+		url: '/api/collect/user',
+		method: 'get',
+		data
+	});
+}
+// 取消收藏
+export function delcollect(data) {
+	return request({
+		url: '/api/collect/del',
+		method: 'post',
+		data
+	});
+}
+
+//积分转账
+export function transfer(data) {
+	return request({
+		url:'/api/trade',
+		method: 'post',
+		data
+	})
+}
+
+//余额转账
+export function yuetransfer(data) {
+	return request({
+		url:'/api/yue/trade',
+		method: 'post',
+		data
+	})
+}
+
+//现金转账
+export function cashtransfer(data) {
+	return request({
+		url:'/api/cash/trade',
+		method: 'post',
+		data
+	})
+}
+
+// 我的分红积分
+export function share(data) {
+	return request({
+		url:'/api/game',
+		method: 'get',
+		data
+	})
+}

+ 134 - 0
api/wallet.js

@@ -0,0 +1,134 @@
+import request from '@/utils/request'
+
+// 获取用户消费记录
+export function spreadCommission(data,state) {
+	return request({
+		url: '/api/spread/commission/'+state,
+		method: 'get',
+		data
+	});
+}
+
+// 获取账户余额
+export function userBalance(data) {
+	return request({
+		url: '/api/user/balance',
+		method: 'get',
+		data
+	});
+}
+
+export function wallet(data) {
+	return request({
+		url: '/api/wallet',
+		method: 'get',
+		data
+	});
+}
+
+// 提现
+export function extractCash(data) {
+	return request({
+		url: '/api/extract/cash',
+		method: 'post',
+		data
+	});
+}
+
+// 提现
+export function exchangeCash(data) {
+	return request({
+		url: '/api/extract/brokerage',
+		method: 'post',
+		data
+	});
+}
+
+// 提现信息
+export function extractBank(data) {
+	return request({
+		url: '/api/extract/bank',
+		method: 'get',
+		data
+	});
+}
+// #ifdef H5
+// 公众号充值
+export function rechargeWechat(data) {
+	return request({
+		url: '/api/recharge/wechat',
+		method: 'post',
+		data
+	});
+}
+// #endif
+// #ifdef MP
+// 小程序充值
+export function rechargeRoutine(data) {
+	return request({
+		url: '/api/recharge/routine',
+		method: 'post',
+		data
+	});
+}
+// #endif
+// 获取提现支付宝账号
+export function aliInfo(data) {
+	return request({
+		url: '/api/ali/info',
+		method: 'get',
+		data
+	});
+}
+//获取默认银行卡账号
+export function bankInfo(data) {
+	return request({
+		url: '/api/bank/info',
+		method: 'get',
+		data
+	});
+}
+// 保存提现支付宝账号
+export function setAliInfo(data) {
+	return request({
+		url: '/api/ali/edit',
+		method: 'post',
+		data
+	});
+}
+//保存默认银行卡账号
+export function setBankInfo(data) {
+	return request({
+		url: '/api/bank/edit',
+		method: 'post',
+		data
+	});
+}
+
+
+// 账户余额
+export function balance(data) {
+	return request({
+		url: '/api/user/balance',
+		method: 'get',
+		data
+	});
+}
+
+// 账户余额
+export function cashList(data) {
+	return request({
+		url: '/api/cash/list',
+		method: 'get',
+		data
+	});
+}
+
+//充值金额
+export function moneyChong(data){
+	return request({
+		url:'/api/recharge/index',
+		method:'get',
+		data
+	})
+}

+ 37 - 0
api/wx.js

@@ -0,0 +1,37 @@
+import request from '@/utils/request'
+// #ifdef H5
+// 微信分享信息
+export function share(data) {
+	return request({
+		url: '/api/share',
+		method: 'get',
+		data
+	});
+}
+//微信配置
+export function wechatConfig(data) {
+	return request({
+		url: '/api/wechat/config',
+		method: 'get',
+		data
+	});
+}
+// 微信code地址
+export function wechatAuth(data) {
+	return request({
+		url: '/api/wechat/auth',
+		method: 'get',
+		data
+	});
+}
+// #endif
+// #ifdef MP-WEIXIN
+// 微信code地址
+export function wechatMpAuth(data) {
+	return request({
+		url: '/api/wechat/mp_auth',
+		method: 'post',
+		data
+	});
+}
+// #endif

+ 57 - 0
components/Loading/index.vue

@@ -0,0 +1,57 @@
+<template>
+	<view>
+		<view class="Loads acea-row row-center-wrapper" v-if="loading && !loaded" style="margin-top: .2rem;">
+			<view v-if="loading">
+				<view class="iconfont icon-jiazai loading acea-row row-center-wrapper"></view>
+				正在加载中
+			</view>
+			<view v-else>
+				上拉加载更多
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		name: "Loading",
+		props: {
+			loaded: {
+				type: Boolean,
+				default: false
+			},
+			loading: {
+				type: Boolean,
+				default: false
+			}
+		}
+	};
+</script>
+<style>
+	.Loads {
+	  height: 80upx;
+	  font-size: 25upx;
+	  color: #000;
+	}
+	.Loads .iconfont {
+	  font-size: 30upx;
+	  margin-right: 10upx;
+	  height: 32upx;
+	  line-height: 32upx;
+	}
+	/*加载动画*/
+	@keyframes load {
+	  from {
+	    transform: rotate(0deg);
+	  }
+	  to {
+	    transform: rotate(360deg);
+	  }
+	}
+	.loadingpic {
+	  animation: load 3s linear 1s infinite;
+	}
+	.loading {
+	  animation: load linear 1s infinite;
+	}
+</style>

+ 120 - 0
components/countDown/index.vue

@@ -0,0 +1,120 @@
+<template>
+	<view class="time" :style="justifyLeft">
+		<text class="red" v-if="tipText">{{ tipText }}</text>
+		<text class="styleAll" v-if="isDay === true">{{ day }}</text>
+		<text class="timeTxt red" v-if="dayText">{{ dayText }}</text>
+		<text class="styleAll">{{ hour }}</text>
+		<text class="timeTxt red" v-if="hourText">{{ hourText }}</text>
+		<text class="styleAll">{{ minute }}</text>
+		<text class="timeTxt red" v-if="minuteText">{{ minuteText }}</text>
+		<text class="styleAll">{{ second }}</text>
+		<text class="timeTxt red" v-if="secondText">{{ secondText }}</text>
+	</view>
+</template>
+
+<script>
+	export default {
+		name: "countDown",
+		props: {
+			justifyLeft: {
+				type: String,
+				default: ""
+			},
+			//距离开始提示文字
+			tipText: {
+				type: String,
+				default: "倒计时"
+			},
+			dayText: {
+				type: String,
+				default: "天"
+			},
+			hourText: {
+				type: String,
+				default: "时"
+			},
+			minuteText: {
+				type: String,
+				default: "分"
+			},
+			secondText: {
+				type: String,
+				default: "秒"
+			},
+			datatime: {
+				type: Number,
+				default: 0
+			},
+			isDay: {
+				type: Boolean,
+				default: true
+			}
+		},
+		data: function() {
+			return {
+				day: "00",
+				hour: "00",
+				minute: "00",
+				second: "00"
+			};
+		},
+		created: function() {
+			this.show_time();
+		},
+		mounted: function() {},
+		methods: {
+			show_time: function() {
+				let that = this;
+
+				function runTime() {
+					//时间函数
+					let intDiff = that.datatime - Date.parse(new Date()) / 1000; //获取数据中的时间戳的时间差;
+					let day = 0,
+						hour = 0,
+						minute = 0,
+						second = 0;
+					if (intDiff > 0) {
+						//转换时间
+						if (that.isDay === true) {
+							day = Math.floor(intDiff / (60 * 60 * 24));
+						} else {
+							day = 0;
+						}
+						hour = Math.floor(intDiff / (60 * 60)) - day * 24;
+						minute = Math.floor(intDiff / 60) - day * 24 * 60 - hour * 60;
+						second =
+							Math.floor(intDiff) -
+							day * 24 * 60 * 60 -
+							hour * 60 * 60 -
+							minute * 60;
+						if (hour <= 9) hour = "0" + hour;
+						if (minute <= 9) minute = "0" + minute;
+						if (second <= 9) second = "0" + second;
+						that.day = day;
+						that.hour = hour;
+						that.minute = minute;
+						that.second = second;
+					} else {
+						that.day = "00";
+						that.hour = "00";
+						that.minute = "00";
+						that.second = "00";
+					}
+				}
+				runTime();
+				setInterval(runTime, 1000);
+			}
+		}
+	};
+</script>
+
+<style>
+	.time{
+		display: flex;
+		justify-content: center;
+	} 
+	.red{
+		color: #fc4141;
+		margin: 0 4rpx;
+	}
+</style>

Plik diff jest za duży
+ 18 - 0
components/empty.vue


+ 36 - 0
components/emptyPage.vue

@@ -0,0 +1,36 @@
+<template>
+	<view class="empty-box">
+		<image src="/static/images/empty-box.png"></image>
+		<view class="txt">{{title}}</view>
+	</view>
+</template>
+
+<script>
+	export default{
+		props: {
+			title: {
+				type: String,
+				default: '暂无记录',
+			},
+		},
+	}
+	
+</script>
+
+<style lang="scss">
+	.empty-box{
+		display: flex;
+		flex-direction: column;
+		justify-content: center;
+		align-items: center;
+		margin-top: 200rpx;
+		image{
+			width: 414rpx;
+			height: 240rpx;
+		}
+		.txt{
+			font-size: 26rpx;
+			color: #999;
+		}
+	}
+</style>

+ 118 - 0
components/home/index.vue

@@ -0,0 +1,118 @@
+<template>
+	<view style="touch-action: none;">
+		<view class="home" style="position:fixed;" :style="{ top: top + 'px', bottom: bottom }" id="right-nav" @touchmove.stop.prevent="setTouchMove">
+			<view class="homeCon bg-color-red" :class="homeActive === true ? 'on' : ''" v-if="homeActive">
+				<navigator hover-class='none' url='/pages/index/index' open-type='switchTab' class='iconfont icon-shouye-xianxing'></navigator>
+				<navigator hover-class='none' url='/pages/order_addcart/order_addcart' open-type='switchTab' class='iconfont icon-caigou-xianxing'></navigator>
+				<navigator hover-class='none' url='/pages/user/index' open-type='switchTab' class='iconfont icon-yonghu1'></navigator>
+			</view>
+			<view @click="open" class="pictrueBox">
+				<view class="pictrue">
+					<image :src="
+              homeActive === true
+                ? '/static/images/close.gif'
+                : '/static/images/open.gif'
+            "
+					 class="image" />
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+<script>
+	import {
+		mapGetters
+	} from "vuex";
+	export default {
+		name: "Home",
+		props: {},
+		data: function() {
+			return {
+				top: "",
+				bottom: ""
+			};
+		},
+		computed: mapGetters(["homeActive"]),
+		methods: {
+			setTouchMove(e) {
+				var that = this;
+				if (e.touches[0].clientY < 545 && e.touches[0].clientY > 66) {
+					that.top = e.touches[0].clientY
+					// that.setData({
+					// 	top: e.touches[0].clientY
+					// })
+				}
+			},
+			open: function() {
+				this.homeActive ?
+					this.$store.commit("CLOSE_HOME") :
+					this.$store.commit("OPEN_HOME");
+			}
+		},
+		created() {
+			this.bottom = "50px";
+		}
+	};
+</script>
+
+<style scoped>
+	.pictrueBox {
+		width: 130rpx;
+		height: 120rpx;
+	}
+
+	/*返回主页按钮*/
+	.home {
+		position: fixed;
+		color: white;
+		text-align: center;
+		z-index: 9999;
+		right: 15rpx;
+		display: flex;
+	}
+
+	.home .homeCon {
+		border-radius: 50rpx;
+		opacity: 0;
+		height: 0;
+		color: #e93323;
+		width: 0;
+	}
+
+	.home .homeCon.on {
+		opacity: 1;
+		animation: bounceInRight 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000);
+		width: 300rpx;
+		height: 86rpx;
+		margin-bottom: 20rpx;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		background: #f44939 !important;
+	}
+
+	.home .homeCon .iconfont {
+		font-size: 48rpx;
+		color: #fff;
+		display: inline-block;
+		margin: 0 auto;
+	}
+
+	.home .pictrue {
+		width: 86rpx;
+		height: 86rpx;
+		border-radius: 50%;
+		margin: 0 auto;
+	}
+
+	.home .pictrue .image {
+		width: 100%;
+		height: 100%;
+		border-radius: 50%;
+		transform: rotate(90deg);
+		ms-transform: rotate(90deg);
+		moz-transform: rotate(90deg);
+		webkit-transform: rotate(90deg);
+		o-transform: rotate(90deg);
+	}
+</style>

+ 630 - 0
components/jyf-parser/jyf-parser.vue

@@ -0,0 +1,630 @@
+<template>
+	<view>
+		<slot v-if="!nodes.length" />
+		<!--#ifdef APP-PLUS-NVUE-->
+		<web-view id="_top" ref="web" :style="'margin-top:-2px;height:'+height+'px'" @onPostMessage="_message" />
+		<!--#endif-->
+		<!--#ifndef APP-PLUS-NVUE-->
+		<view id="_top" :style="showAm+(selectable?';user-select:text;-webkit-user-select:text':'')">
+			<!--#ifdef H5 || MP-360-->
+			<div :id="'rtf'+uid"></div>
+			<!--#endif-->
+			<!--#ifndef H5 || MP-360-->
+			<trees :nodes="nodes" :lazyLoad="lazyLoad" :loading="loadingImg" />
+			<!--#endif-->
+		</view>
+		<!--#endif-->
+	</view>
+</template>
+
+<script>
+	// #ifndef H5 || APP-PLUS-NVUE || MP-360
+	import trees from './libs/trees';
+	var cache = {},
+		// #ifdef MP-WEIXIN || MP-TOUTIAO
+		fs = uni.getFileSystemManager ? uni.getFileSystemManager() : null,
+		// #endif
+		Parser = require('./libs/MpHtmlParser.js');
+	var dom;
+	// 计算 cache 的 key
+	function hash(str) {
+		for (var i = str.length, val = 5381; i--;)
+			val += (val << 5) + str.charCodeAt(i);
+		return val;
+	}
+	// #endif
+	// #ifdef H5 || APP-PLUS-NVUE || MP-360
+	var windowWidth = uni.getSystemInfoSync().windowWidth,
+		cfg = require('./libs/config.js');
+	// #endif
+	// #ifdef APP-PLUS-NVUE
+	var weexDom = weex.requireModule('dom');
+	// #endif
+	/**
+	 * Parser 富文本组件
+	 * @tutorial https://github.com/jin-yufeng/Parser
+	 * @property {String} html 富文本数据
+	 * @property {Boolean} autopause 是否在播放一个视频时自动暂停其他视频
+	 * @property {Boolean} autoscroll 是否自动给所有表格添加一个滚动层
+	 * @property {Boolean} autosetTitle 是否自动将 title 标签中的内容设置到页面标题
+	 * @property {Number} compress 压缩等级
+	 * @property {String} domain 图片、视频等链接的主域名
+	 * @property {Boolean} lazyLoad 是否开启图片懒加载
+	 * @property {String} loadingImg 图片加载完成前的占位图
+	 * @property {Boolean} selectable 是否开启长按复制
+	 * @property {Object} tagStyle 标签的默认样式
+	 * @property {Boolean} showWithAnimation 是否使用渐显动画
+	 * @property {Boolean} useAnchor 是否使用锚点
+	 * @property {Boolean} useCache 是否缓存解析结果
+	 * @event {Function} parse 解析完成事件
+	 * @event {Function} load dom 加载完成事件
+	 * @event {Function} ready 所有图片加载完毕事件
+	 * @event {Function} error 错误事件
+	 * @event {Function} imgtap 图片点击事件
+	 * @event {Function} linkpress 链接点击事件
+	 * @author JinYufeng
+	 * @version 20200728
+	 * @listens MIT
+	 */
+	export default {
+		name: 'parser',
+		data() {
+			return {
+				// #ifdef H5 || MP-360
+				uid: this._uid,
+				// #endif
+				// #ifdef APP-PLUS-NVUE
+				height: 1,
+				// #endif
+				// #ifndef APP-PLUS-NVUE
+				showAm: '',
+				// #endif
+				nodes: []
+			}
+		},
+		// #ifndef H5 || APP-PLUS-NVUE || MP-360
+		components: {
+			trees
+		},
+		// #endif
+		props: {
+			html: String,
+			autopause: {
+				type: Boolean,
+				default: true
+			},
+			autoscroll: Boolean,
+			autosetTitle: {
+				type: Boolean,
+				default: true
+			},
+			// #ifndef H5 || APP-PLUS-NVUE || MP-360
+			compress: Number,
+			loadingImg: String,
+			useCache: Boolean,
+			// #endif
+			domain: String,
+			lazyLoad: Boolean,
+			selectable: Boolean,
+			tagStyle: Object,
+			showWithAnimation: Boolean,
+			useAnchor: Boolean
+		},
+		watch: {
+			html(html) {
+				this.setContent(html);
+			}
+		},
+		created() {
+			// 图片数组
+			this.imgList = [];
+			this.imgList.each = function(f) {
+				for (var i = 0, len = this.length; i < len; i++)
+					this.setItem(i, f(this[i], i, this));
+			}
+			this.imgList.setItem = function(i, src) {
+				if (i == void 0 || !src) return;
+				// #ifndef MP-ALIPAY || APP-PLUS
+				// 去重
+				if (src.indexOf('http') == 0 && this.includes(src)) {
+					var newSrc = src.split('://')[0];
+					for (var j = newSrc.length, c; c = src[j]; j++) {
+						if (c == '/' && src[j - 1] != '/' && src[j + 1] != '/') break;
+						newSrc += Math.random() > 0.5 ? c.toUpperCase() : c;
+					}
+					newSrc += src.substr(j);
+					return this[i] = newSrc;
+				}
+				// #endif
+				this[i] = src;
+				// 暂存 data src
+				if (src.includes('data:image')) {
+					var filePath, info = src.match(/data:image\/(\S+?);(\S+?),(.+)/);
+					if (!info) return;
+					// #ifdef MP-WEIXIN || MP-TOUTIAO
+					filePath = `${wx.env.USER_DATA_PATH}/${Date.now()}.${info[1]}`;
+					fs && fs.writeFile({
+						filePath,
+						data: info[3],
+						encoding: info[2],
+						success: () => this[i] = filePath
+					})
+					// #endif
+					// #ifdef APP-PLUS
+					filePath = `_doc/parser_tmp/${Date.now()}.${info[1]}`;
+					var bitmap = new plus.nativeObj.Bitmap();
+					bitmap.loadBase64Data(src, () => {
+						bitmap.save(filePath, {}, () => {
+							bitmap.clear()
+							this[i] = filePath;
+						})
+					})
+					// #endif
+				}
+			}
+		},
+		mounted() {
+			// #ifdef H5 || MP-360
+			this.document = document.getElementById('rtf' + this._uid);
+			// #endif
+			// #ifndef H5 || APP-PLUS-NVUE || MP-360
+			if (dom) this.document = new dom(this);
+			// #endif
+			// #ifdef APP-PLUS-NVUE
+			this.document = this.$refs.web;
+			setTimeout(() => {
+				// #endif
+				if (this.html) this.setContent(this.html);
+				// #ifdef APP-PLUS-NVUE
+			}, 30)
+			// #endif
+		},
+		beforeDestroy() {
+			// #ifdef H5 || MP-360
+			if (this._observer) this._observer.disconnect();
+			// #endif
+			this.imgList.each(src => {
+				// #ifdef APP-PLUS
+				if (src && src.includes('_doc')) {
+					plus.io.resolveLocalFileSystemURL(src, entry => {
+						entry.remove();
+					});
+				}
+				// #endif
+				// #ifdef MP-WEIXIN || MP-TOUTIAO
+				if (src && src.includes(uni.env.USER_DATA_PATH))
+					fs && fs.unlink({
+						filePath: src
+					})
+				// #endif
+			})
+			clearInterval(this._timer);
+		},
+		methods: {
+			// 设置富文本内容
+			setContent(html, append) {
+				// #ifdef APP-PLUS-NVUE
+				if (!html)
+					return this.height = 1;
+				if (append)
+					this.$refs.web.evalJs("var b=document.createElement('div');b.innerHTML='" + html.replace(/'/g, "\\'") +
+						"';document.getElementById('parser').appendChild(b)");
+				else {
+					html =
+						'<meta charset="utf-8" /><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"><style>html,body{width:100%;height:100%;overflow:hidden}body{margin:0}</style><base href="' +
+						this.domain + '"><div id="parser"' + (this.selectable ? '>' : ' style="user-select:none">') + this._handleHtml(html).replace(/\n/g, '\\n') +
+						'</div><script>"use strict";function e(e){if(window.__dcloud_weex_postMessage||window.__dcloud_weex_){var t={data:[e]};window.__dcloud_weex_postMessage?window.__dcloud_weex_postMessage(t):window.__dcloud_weex_.postMessage(JSON.stringify(t))}}document.body.onclick=function(){e({action:"click"})},' +
+						(this.showWithAnimation ? 'document.body.style.animation="_show .5s",' : '') +
+						'setTimeout(function(){e({action:"load",text:document.body.innerText,height:document.getElementById("parser").scrollHeight})},50);\x3c/script>';
+					this.$refs.web.evalJs("document.write('" + html.replace(/'/g, "\\'") + "');document.close()");
+				}
+				this.$refs.web.evalJs(
+					'var t=document.getElementsByTagName("title");t.length&&e({action:"getTitle",title:t[0].innerText});for(var o,n=document.getElementsByTagName("style"),r=1;o=n[r++];)o.innerHTML=o.innerHTML.replace(/body/g,"#parser");for(var a,c=document.getElementsByTagName("img"),s=[],i=0==c.length,d=0,l=0,g=0;a=c[l];l++)parseInt(a.style.width||a.getAttribute("width"))>' +
+					windowWidth + '&&(a.style.height="auto"),a.onload=function(){++d==c.length&&(i=!0)},a.onerror=function(){++d==c.length&&(i=!0),' + (cfg.errorImg ? 'this.src="' + cfg.errorImg + '",' : '') +
+					'e({action:"error",source:"img",target:this})},a.hasAttribute("ignore")||"A"==a.parentElement.nodeName||(a.i=g++,s.push(a.src),a.onclick=function(){e({action:"preview",img:{i:this.i,src:this.src}})});e({action:"getImgList",imgList:s});for(var u,m=document.getElementsByTagName("a"),f=0;u=m[f];f++)u.onclick=function(){var t,o=this.getAttribute("href");if("#"==o[0]){var n=document.getElementById(o.substr(1));n&&(t=n.offsetTop)}return e({action:"linkpress",href:o,offset:t}),!1};for(var h,y=document.getElementsByTagName("video"),v=0;h=y[v];v++)h.style.maxWidth="100%",h.onerror=function(){e({action:"error",source:"video",target:this})}' +
+					(this.autopause ? ',h.onplay=function(){for(var e,t=0;e=y[t];t++)e!=this&&e.pause()}' : '') +
+					';for(var _,p=document.getElementsByTagName("audio"),w=0;_=p[w];w++)_.onerror=function(){e({action:"error",source:"audio",target:this})};' +
+					(this.autoscroll ? 'for(var T,E=document.getElementsByTagName("table"),B=0;T=E[B];B++){var N=document.createElement("div");N.style.overflow="scroll",T.parentNode.replaceChild(N,T),N.appendChild(T)}' : '') +
+					'var x=document.getElementById("parser");clearInterval(window.timer),window.timer=setInterval(function(){i&&clearInterval(window.timer),e({action:"ready",ready:i,height:x.scrollHeight})},350)'
+				)
+				this.nodes = [1];
+				// #endif
+				// #ifdef H5 || MP-360
+				if (!html) {
+					if (this.rtf && !append) this.rtf.parentNode.removeChild(this.rtf);
+					return;
+				}
+				var div = document.createElement('div');
+				if (!append) {
+					if (this.rtf) this.rtf.parentNode.removeChild(this.rtf);
+					this.rtf = div;
+				} else {
+					if (!this.rtf) this.rtf = div;
+					else this.rtf.appendChild(div);
+				}
+				div.innerHTML = this._handleHtml(html, append);
+				for (var styles = this.rtf.getElementsByTagName('style'), i = 0, style; style = styles[i++];) {
+					style.innerHTML = style.innerHTML.replace(/body/g, '#rtf' + this._uid);
+					style.setAttribute('scoped', 'true');
+				}
+				// 懒加载
+				if (!this._observer && this.lazyLoad && IntersectionObserver) {
+					this._observer = new IntersectionObserver(changes => {
+						for (let item, i = 0; item = changes[i++];) {
+							if (item.isIntersecting) {
+								item.target.src = item.target.getAttribute('data-src');
+								item.target.removeAttribute('data-src');
+								this._observer.unobserve(item.target);
+							}
+						}
+					}, {
+						rootMargin: '500px 0px 500px 0px'
+					})
+				}
+				var _ts = this;
+				// 获取标题
+				var title = this.rtf.getElementsByTagName('title');
+				if (title.length && this.autosetTitle)
+					uni.setNavigationBarTitle({
+						title: title[0].innerText
+					})
+				// 图片处理
+				this.imgList.length = 0;
+				var imgs = this.rtf.getElementsByTagName('img');
+				for (let i = 0, j = 0, img; img = imgs[i]; i++) {
+					if (parseInt(img.style.width || img.getAttribute('width')) > windowWidth)
+						img.style.height = 'auto';
+					var src = img.getAttribute('src');
+					if (this.domain && src) {
+						if (src[0] == '/') {
+							if (src[1] == '/')
+								img.src = (this.domain.includes('://') ? this.domain.split('://')[0] : '') + ':' + src;
+							else img.src = this.domain + src;
+						} else if (!src.includes('://')) img.src = this.domain + '/' + src;
+					}
+					if (!img.hasAttribute('ignore') && img.parentElement.nodeName != 'A') {
+						img.i = j++;
+						_ts.imgList.push(img.src || img.getAttribute('data-src'));
+						img.onclick = function() {
+							var preview = true;
+							this.ignore = () => preview = false;
+							_ts.$emit('imgtap', this);
+							if (preview) {
+								uni.previewImage({
+									current: this.i,
+									urls: _ts.imgList
+								});
+							}
+						}
+					}
+					img.onerror = function() {
+						if (cfg.errorImg)
+							_ts.imgList[this.i] = this.src = cfg.errorImg;
+						_ts.$emit('error', {
+							source: 'img',
+							target: this
+						});
+					}
+					if (_ts.lazyLoad && this._observer && img.src && img.i != 0) {
+						img.setAttribute('data-src', img.src);
+						img.removeAttribute('src');
+						this._observer.observe(img);
+					}
+				}
+				// 链接处理
+				var links = this.rtf.getElementsByTagName('a');
+				for (var link of links) {
+					link.onclick = function() {
+						var jump = true,
+							href = this.getAttribute('href');
+						_ts.$emit('linkpress', {
+							href,
+							ignore: () => jump = false
+						});
+						if (jump && href) {
+							if (href[0] == '#') {
+								if (_ts.useAnchor) {
+									_ts.navigateTo({
+										id: href.substr(1)
+									})
+								}
+							} else if (href.indexOf('http') == 0 || href.indexOf('//') == 0)
+								return true;
+							else
+								uni.navigateTo({
+									url: href
+								})
+						}
+						return false;
+					}
+				}
+				// 视频处理
+				var videos = this.rtf.getElementsByTagName('video');
+				_ts.videoContexts = videos;
+				for (let video, i = 0; video = videos[i++];) {
+					video.style.maxWidth = '100%';
+					video.onerror = function() {
+						_ts.$emit('error', {
+							source: 'video',
+							target: this
+						});
+					}
+					video.onplay = function() {
+						if (_ts.autopause)
+							for (let item, i = 0; item = _ts.videoContexts[i++];)
+								if (item != this) item.pause();
+					}
+				}
+				// 音频处理
+				var audios = this.rtf.getElementsByTagName('audio');
+				for (var audio of audios)
+					audio.onerror = function() {
+						_ts.$emit('error', {
+							source: 'audio',
+							target: this
+						});
+					}
+				// 表格处理
+				if (this.autoscroll) {
+					var tables = this.rtf.getElementsByTagName('table');
+					for (var table of tables) {
+						let div = document.createElement('div');
+						div.style.overflow = 'scroll';
+						table.parentNode.replaceChild(div, table);
+						div.appendChild(table);
+					}
+				}
+				if (!append) this.document.appendChild(this.rtf);
+				this.$nextTick(() => {
+					this.nodes = [1];
+					this.$emit('load');
+				});
+				setTimeout(() => this.showAm = '', 500);
+				// #endif
+				// #ifndef APP-PLUS-NVUE
+				// #ifndef H5 || MP-360
+				var nodes;
+				if (!html) return this.nodes = [];
+				var parser = new Parser(html, this);
+				// 缓存读取
+				if (this.useCache) {
+					var hashVal = hash(html);
+					if (cache[hashVal])
+						nodes = cache[hashVal];
+					else {
+						nodes = parser.parse();
+						cache[hashVal] = nodes;
+					}
+				} else nodes = parser.parse();
+				this.$emit('parse', nodes);
+				if (append) this.nodes = this.nodes.concat(nodes);
+				else this.nodes = nodes;
+				if (nodes.length && nodes.title && this.autosetTitle)
+					uni.setNavigationBarTitle({
+						title: nodes.title
+					})
+				if (this.imgList) this.imgList.length = 0;
+				this.videoContexts = [];
+				this.$nextTick(() => {
+					(function f(cs) {
+						for (var i = cs.length; i--;) {
+							if (cs[i].top) {
+								cs[i].controls = [];
+								cs[i].init();
+								f(cs[i].$children);
+							}
+						}
+					})(this.$children)
+					this.$emit('load');
+				})
+				// #endif
+				var height;
+				clearInterval(this._timer);
+				this._timer = setInterval(() => {
+					// #ifdef H5 || MP-360
+					this.rect = this.rtf.getBoundingClientRect();
+					// #endif
+					// #ifndef H5 || MP-360
+					uni.createSelectorQuery().in(this)
+						.select('#_top').boundingClientRect().exec(res => {
+							if (!res) return;
+							this.rect = res[0];
+							// #endif
+							if (this.rect.height == height) {
+								this.$emit('ready', this.rect)
+								clearInterval(this._timer);
+							}
+							height = this.rect.height;
+							// #ifndef H5 || MP-360
+						});
+					// #endif
+				}, 350);
+				if (this.showWithAnimation && !append) this.showAm = 'animation:_show .5s';
+				// #endif
+			},
+			// 获取文本内容
+			getText(ns = this.nodes) {
+				var txt = '';
+				// #ifdef APP-PLUS-NVUE
+				txt = this._text;
+				// #endif
+				// #ifdef H5 || MP-360
+				txt = this.rtf.innerText;
+				// #endif
+				// #ifndef H5 || APP-PLUS-NVUE || MP-360
+				for (var i = 0, n; n = ns[i++];) {
+					if (n.type == 'text') txt += n.text.replace(/&nbsp;/g, '\u00A0').replace(/&lt;/g, '<').replace(/&gt;/g, '>')
+						.replace(/&amp;/g, '&');
+					else if (n.type == 'br') txt += '\n';
+					else {
+						// 块级标签前后加换行
+						var block = n.name == 'p' || n.name == 'div' || n.name == 'tr' || n.name == 'li' || (n.name[0] == 'h' && n.name[1] >
+							'0' && n.name[1] < '7');
+						if (block && txt && txt[txt.length - 1] != '\n') txt += '\n';
+						if (n.children) txt += this.getText(n.children);
+						if (block && txt[txt.length - 1] != '\n') txt += '\n';
+						else if (n.name == 'td' || n.name == 'th') txt += '\t';
+					}
+				}
+				// #endif
+				return txt;
+			},
+			// 锚点跳转
+			in (obj) {
+				if (obj.page && obj.selector && obj.scrollTop) this._in = obj;
+			},
+			navigateTo(obj) {
+				if (!this.useAnchor) return obj.fail && obj.fail('Anchor is disabled');
+				// #ifdef APP-PLUS-NVUE
+				if (!obj.id)
+					weexDom.scrollToElement(this.$refs.web);
+				else
+					this.$refs.web.evalJs('var pos=document.getElementById("' + obj.id +
+						'");if(pos)post({action:"linkpress",href:"#",offset:pos.offsetTop+' + (obj.offset || 0) + '})');
+				obj.success && obj.success();
+				// #endif
+				// #ifndef APP-PLUS-NVUE
+				var d = ' ';
+				// #ifdef MP-WEIXIN || MP-QQ || MP-TOUTIAO
+				d = '>>>';
+				// #endif
+				var selector = uni.createSelectorQuery().in(this._in ? this._in.page : this).select((this._in ? this._in.selector :
+					'#_top') + (obj.id ? `${d}#${obj.id},${this._in?this._in.selector:'#_top'}${d}.${obj.id}` : '')).boundingClientRect();
+				if (this._in) selector.select(this._in.selector).scrollOffset().select(this._in.selector).boundingClientRect();
+				else selector.selectViewport().scrollOffset();
+				selector.exec(res => {
+					if (!res[0]) return obj.fail && obj.fail('Label not found')
+					var scrollTop = res[1].scrollTop + res[0].top - (res[2] ? res[2].top : 0) + (obj.offset || 0);
+					if (this._in) this._in.page[this._in.scrollTop] = scrollTop;
+					else uni.pageScrollTo({
+						scrollTop,
+						duration: 300
+					})
+					obj.success && obj.success();
+				})
+				// #endif
+			},
+			// 获取视频对象
+			getVideoContext(id) {
+				// #ifndef APP-PLUS-NVUE
+				if (!id) return this.videoContexts;
+				else
+					for (var i = this.videoContexts.length; i--;)
+						if (this.videoContexts[i].id == id) return this.videoContexts[i];
+				// #endif
+			},
+			// #ifdef H5 || APP-PLUS-NVUE || MP-360
+			_handleHtml(html, append) {
+				if (!append) {
+					// 处理 tag-style 和 userAgentStyles
+					var style = '<style>@keyframes _show{0%{opacity:0}100%{opacity:1}}img{max-width:100%}';
+					for (var item in cfg.userAgentStyles)
+						style += `${item}{${cfg.userAgentStyles[item]}}`;
+					for (item in this.tagStyle)
+						style += `${item}{${this.tagStyle[item]}}`;
+					style += '</style>';
+					html = style + html;
+				}
+				// 处理 rpx
+				if (html.includes('rpx'))
+					html = html.replace(/[0-9.]+\s*rpx/g, $ => (parseFloat($) * windowWidth / 750) + 'px');
+				return html;
+			},
+			// #endif
+			// #ifdef APP-PLUS-NVUE
+			_message(e) {
+				// 接收 web-view 消息
+				var d = e.detail.data[0];
+				switch (d.action) {
+					case 'load':
+						this.$emit('load');
+						this.height = d.height;
+						this._text = d.text;
+						break;
+					case 'getTitle':
+						if (this.autosetTitle)
+							uni.setNavigationBarTitle({
+								title: d.title
+							})
+						break;
+					case 'getImgList':
+						this.imgList.length = 0;
+						for (var i = d.imgList.length; i--;)
+							this.imgList.setItem(i, d.imgList[i]);
+						break;
+					case 'preview':
+						var preview = true;
+						d.img.ignore = () => preview = false;
+						this.$emit('imgtap', d.img);
+						if (preview)
+							uni.previewImage({
+								current: d.img.i,
+								urls: this.imgList
+							})
+						break;
+					case 'linkpress':
+						var jump = true,
+							href = d.href;
+						this.$emit('linkpress', {
+							href,
+							ignore: () => jump = false
+						})
+						if (jump && href) {
+							if (href[0] == '#') {
+								if (this.useAnchor)
+									weexDom.scrollToElement(this.$refs.web, {
+										offset: d.offset
+									})
+							} else if (href.includes('://'))
+								plus.runtime.openWeb(href);
+							else
+								uni.navigateTo({
+									url: href
+								})
+						}
+						break;
+					case 'error':
+						if (d.source == 'img' && cfg.errorImg)
+							this.imgList.setItem(d.target.i, cfg.errorImg);
+						this.$emit('error', {
+							source: d.source,
+							target: d.target
+						})
+						break;
+					case 'ready':
+						this.height = d.height;
+						if (d.ready) uni.createSelectorQuery().in(this).select('#_top').boundingClientRect().exec(res => {
+							this.rect = res[0];
+							this.$emit('ready', res[0]);
+						})
+						break;
+					case 'click':
+						this.$emit('click');
+						this.$emit('tap');
+				}
+			},
+			// #endif
+		}
+	}
+</script>
+
+<style>
+	@keyframes _show {
+		0% {
+			opacity: 0;
+		}
+
+		100% {
+			opacity: 1;
+		}
+	}
+
+	/* #ifdef MP-WEIXIN */
+	:host {
+		display: block;
+		overflow: scroll;
+		-webkit-overflow-scrolling: touch;
+	}
+
+	/* #endif */
+</style>

+ 97 - 0
components/jyf-parser/libs/CssHandler.js

@@ -0,0 +1,97 @@
+const cfg = require('./config.js'),
+	isLetter = c => (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');
+
+function CssHandler(tagStyle) {
+	var styles = Object.assign(Object.create(null), cfg.userAgentStyles);
+	for (var item in tagStyle)
+		styles[item] = (styles[item] ? styles[item] + ';' : '') + tagStyle[item];
+	this.styles = styles;
+}
+CssHandler.prototype.getStyle = function(data) {
+	this.styles = new parser(data, this.styles).parse();
+}
+CssHandler.prototype.match = function(name, attrs) {
+	var tmp, matched = (tmp = this.styles[name]) ? tmp + ';' : '';
+	if (attrs.class) {
+		var items = attrs.class.split(' ');
+		for (var i = 0, item; item = items[i]; i++)
+			if (tmp = this.styles['.' + item])
+				matched += tmp + ';';
+	}
+	if (tmp = this.styles['#' + attrs.id])
+		matched += tmp + ';';
+	return matched;
+}
+module.exports = CssHandler;
+
+function parser(data, init) {
+	this.data = data;
+	this.floor = 0;
+	this.i = 0;
+	this.list = [];
+	this.res = init;
+	this.state = this.Space;
+}
+parser.prototype.parse = function() {
+	for (var c; c = this.data[this.i]; this.i++)
+		this.state(c);
+	return this.res;
+}
+parser.prototype.section = function() {
+	return this.data.substring(this.start, this.i);
+}
+// 状态机
+parser.prototype.Space = function(c) {
+	if (c == '.' || c == '#' || isLetter(c)) {
+		this.start = this.i;
+		this.state = this.Name;
+	} else if (c == '/' && this.data[this.i + 1] == '*')
+		this.Comment();
+	else if (!cfg.blankChar[c] && c != ';')
+		this.state = this.Ignore;
+}
+parser.prototype.Comment = function() {
+	this.i = this.data.indexOf('*/', this.i) + 1;
+	if (!this.i) this.i = this.data.length;
+	this.state = this.Space;
+}
+parser.prototype.Ignore = function(c) {
+	if (c == '{') this.floor++;
+	else if (c == '}' && !--this.floor) this.state = this.Space;
+}
+parser.prototype.Name = function(c) {
+	if (cfg.blankChar[c]) {
+		this.list.push(this.section());
+		this.state = this.NameSpace;
+	} else if (c == '{') {
+		this.list.push(this.section());
+		this.Content();
+	} else if (c == ',') {
+		this.list.push(this.section());
+		this.Comma();
+	} else if (!isLetter(c) && (c < '0' || c > '9') && c != '-' && c != '_')
+		this.state = this.Ignore;
+}
+parser.prototype.NameSpace = function(c) {
+	if (c == '{') this.Content();
+	else if (c == ',') this.Comma();
+	else if (!cfg.blankChar[c]) this.state = this.Ignore;
+}
+parser.prototype.Comma = function() {
+	while (cfg.blankChar[this.data[++this.i]]);
+	if (this.data[this.i] == '{') this.Content();
+	else {
+		this.start = this.i--;
+		this.state = this.Name;
+	}
+}
+parser.prototype.Content = function() {
+	this.start = ++this.i;
+	if ((this.i = this.data.indexOf('}', this.i)) == -1) this.i = this.data.length;
+	var content = this.section();
+	for (var i = 0, item; item = this.list[i++];)
+		if (this.res[item]) this.res[item] += ';' + content;
+		else this.res[item] = content;
+	this.list = [];
+	this.state = this.Space;
+}

+ 535 - 0
components/jyf-parser/libs/MpHtmlParser.js

@@ -0,0 +1,535 @@
+/**
+ * html 解析器
+ * @tutorial https://github.com/jin-yufeng/Parser
+ * @version 20200728
+ * @author JinYufeng
+ * @listens MIT
+ */
+const cfg = require('./config.js'),
+	blankChar = cfg.blankChar,
+	CssHandler = require('./CssHandler.js'),
+	windowWidth = uni.getSystemInfoSync().windowWidth;
+var emoji;
+
+function MpHtmlParser(data, options = {}) {
+	this.attrs = {};
+	this.CssHandler = new CssHandler(options.tagStyle, windowWidth);
+	this.data = data;
+	this.domain = options.domain;
+	this.DOM = [];
+	this.i = this.start = this.audioNum = this.imgNum = this.videoNum = 0;
+	options.prot = (this.domain || '').includes('://') ? this.domain.split('://')[0] : 'http';
+	this.options = options;
+	this.state = this.Text;
+	this.STACK = [];
+	// 工具函数
+	this.bubble = () => {
+		for (var i = this.STACK.length, item; item = this.STACK[--i];) {
+			if (cfg.richOnlyTags[item.name]) {
+				if (item.name == 'table' && !Object.hasOwnProperty.call(item, 'c')) item.c = 1;
+				return false;
+			}
+			item.c = 1;
+		}
+		return true;
+	}
+	this.decode = (val, amp) => {
+		var i = -1,
+			j, en;
+		while (1) {
+			if ((i = val.indexOf('&', i + 1)) == -1) break;
+			if ((j = val.indexOf(';', i + 2)) == -1) break;
+			if (val[i + 1] == '#') {
+				en = parseInt((val[i + 2] == 'x' ? '0' : '') + val.substring(i + 2, j));
+				if (!isNaN(en)) val = val.substr(0, i) + String.fromCharCode(en) + val.substr(j + 1);
+			} else {
+				en = val.substring(i + 1, j);
+				if (cfg.entities[en] || en == amp)
+					val = val.substr(0, i) + (cfg.entities[en] || '&') + val.substr(j + 1);
+			}
+		}
+		return val;
+	}
+	this.getUrl = url => {
+		if (url[0] == '/') {
+			if (url[1] == '/') url = this.options.prot + ':' + url;
+			else if (this.domain) url = this.domain + url;
+		} else if (this.domain && url.indexOf('data:') != 0 && !url.includes('://'))
+			url = this.domain + '/' + url;
+		return url;
+	}
+	this.isClose = () => this.data[this.i] == '>' || (this.data[this.i] == '/' && this.data[this.i + 1] == '>');
+	this.section = () => this.data.substring(this.start, this.i);
+	this.parent = () => this.STACK[this.STACK.length - 1];
+	this.siblings = () => this.STACK.length ? this.parent().children : this.DOM;
+}
+MpHtmlParser.prototype.parse = function() {
+	if (emoji) this.data = emoji.parseEmoji(this.data);
+	for (var c; c = this.data[this.i]; this.i++)
+		this.state(c);
+	if (this.state == this.Text) this.setText();
+	while (this.STACK.length) this.popNode(this.STACK.pop());
+	return this.DOM;
+}
+// 设置属性
+MpHtmlParser.prototype.setAttr = function() {
+	var name = this.attrName.toLowerCase(),
+		val = this.attrVal;
+	if (cfg.boolAttrs[name]) this.attrs[name] = 'T';
+	else if (val) {
+		if (name == 'src' || (name == 'data-src' && !this.attrs.src)) this.attrs.src = this.getUrl(this.decode(val, 'amp'));
+		else if (name == 'href' || name == 'style') this.attrs[name] = this.decode(val, 'amp');
+		else if (name.substr(0, 5) != 'data-') this.attrs[name] = val;
+	}
+	this.attrVal = '';
+	while (blankChar[this.data[this.i]]) this.i++;
+	if (this.isClose()) this.setNode();
+	else {
+		this.start = this.i;
+		this.state = this.AttrName;
+	}
+}
+// 设置文本节点
+MpHtmlParser.prototype.setText = function() {
+	var back, text = this.section();
+	if (!text) return;
+	text = (cfg.onText && cfg.onText(text, () => back = true)) || text;
+	if (back) {
+		this.data = this.data.substr(0, this.start) + text + this.data.substr(this.i);
+		let j = this.start + text.length;
+		for (this.i = this.start; this.i < j; this.i++) this.state(this.data[this.i]);
+		return;
+	}
+	if (!this.pre) {
+		// 合并空白符
+		var flag, tmp = [];
+		for (let i = text.length, c; c = text[--i];)
+			if (!blankChar[c]) {
+				tmp.unshift(c);
+				if (!flag) flag = 1;
+			} else {
+				if (tmp[0] != ' ') tmp.unshift(' ');
+				if (c == '\n' && flag == void 0) flag = 0;
+			}
+		if (flag == 0) return;
+		text = tmp.join('');
+	}
+	this.siblings().push({
+		type: 'text',
+		text: this.decode(text)
+	});
+}
+// 设置元素节点
+MpHtmlParser.prototype.setNode = function() {
+	var node = {
+			name: this.tagName.toLowerCase(),
+			attrs: this.attrs
+		},
+		close = cfg.selfClosingTags[node.name];
+	if (this.options.nodes.length) node.type = 'node';
+	this.attrs = {};
+	if (!cfg.ignoreTags[node.name]) {
+		// 处理属性
+		var attrs = node.attrs,
+			style = this.CssHandler.match(node.name, attrs, node) + (attrs.style || ''),
+			styleObj = {};
+		if (attrs.id) {
+			if (this.options.compress & 1) attrs.id = void 0;
+			else if (this.options.useAnchor) this.bubble();
+		}
+		if ((this.options.compress & 2) && attrs.class) attrs.class = void 0;
+		switch (node.name) {
+			case 'a':
+			case 'ad': // #ifdef APP-PLUS
+			case 'iframe':
+				// #endif
+				this.bubble();
+				break;
+			case 'font':
+				if (attrs.color) {
+					styleObj['color'] = attrs.color;
+					attrs.color = void 0;
+				}
+				if (attrs.face) {
+					styleObj['font-family'] = attrs.face;
+					attrs.face = void 0;
+				}
+				if (attrs.size) {
+					var size = parseInt(attrs.size);
+					if (size < 1) size = 1;
+					else if (size > 7) size = 7;
+					var map = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'];
+					styleObj['font-size'] = map[size - 1];
+					attrs.size = void 0;
+				}
+				break;
+			case 'embed':
+				// #ifndef APP-PLUS
+				var src = node.attrs.src || '',
+					type = node.attrs.type || '';
+				if (type.includes('video') || src.includes('.mp4') || src.includes('.3gp') || src.includes('.m3u8'))
+					node.name = 'video';
+				else if (type.includes('audio') || src.includes('.m4a') || src.includes('.wav') || src.includes('.mp3') || src.includes(
+						'.aac'))
+					node.name = 'audio';
+				else break;
+				if (node.attrs.autostart)
+					node.attrs.autoplay = 'T';
+				node.attrs.controls = 'T';
+				// #endif
+				// #ifdef APP-PLUS
+				this.bubble();
+				break;
+				// #endif
+			case 'video':
+			case 'audio':
+				if (!attrs.id) attrs.id = node.name + (++this[`${node.name}Num`]);
+				else this[`${node.name}Num`]++;
+				if (node.name == 'video') {
+					if (this.videoNum > 3)
+						node.lazyLoad = 1;
+					if (attrs.width) {
+						styleObj.width = parseFloat(attrs.width) + (attrs.width.includes('%') ? '%' : 'px');
+						attrs.width = void 0;
+					}
+					if (attrs.height) {
+						styleObj.height = parseFloat(attrs.height) + (attrs.height.includes('%') ? '%' : 'px');
+						attrs.height = void 0;
+					}
+				}
+				if (!attrs.controls && !attrs.autoplay) attrs.controls = 'T';
+				attrs.source = [];
+				if (attrs.src) {
+					attrs.source.push(attrs.src);
+					attrs.src = void 0;
+				}
+				this.bubble();
+				break;
+			case 'td':
+			case 'th':
+				if (attrs.colspan || attrs.rowspan)
+					for (var k = this.STACK.length, item; item = this.STACK[--k];)
+						if (item.name == 'table') {
+							item.c = void 0;
+							break;
+						}
+		}
+		if (attrs.align) {
+			styleObj['text-align'] = attrs.align;
+			attrs.align = void 0;
+		}
+		// 压缩 style
+		var styles = style.split(';');
+		style = '';
+		for (var i = 0, len = styles.length; i < len; i++) {
+			var info = styles[i].split(':');
+			if (info.length < 2) continue;
+			let key = info[0].trim().toLowerCase(),
+				value = info.slice(1).join(':').trim();
+			if (value[0] == '-' || value.includes('safe'))
+				style += `;${key}:${value}`;
+			else if (!styleObj[key] || value.includes('import') || !styleObj[key].includes('import'))
+				styleObj[key] = value;
+		}
+		if (node.name == 'img') {
+			if (attrs.src && !attrs.ignore) {
+				if (this.bubble())
+					attrs.i = (this.imgNum++).toString();
+				else attrs.ignore = 'T';
+			}
+			if (attrs.ignore) {
+				style += ';-webkit-touch-callout:none';
+				styleObj['max-width'] = '100%';
+			}
+			var width;
+			if (styleObj.width) width = styleObj.width;
+			else if (attrs.width) width = attrs.width.includes('%') ? attrs.width : attrs.width + 'px';
+			if (width) {
+				styleObj.width = width;
+				attrs.width = '100%';
+				if (parseInt(width) > windowWidth) {
+					styleObj.height = '';
+					if (attrs.height) attrs.height = void 0;
+				}
+			}
+			if (styleObj.height) {
+				attrs.height = styleObj.height;
+				styleObj.height = '';
+			} else if (attrs.height && !attrs.height.includes('%'))
+				attrs.height += 'px';
+		}
+		for (var key in styleObj) {
+			var value = styleObj[key];
+			if (!value) continue;
+			if (key.includes('flex') || key == 'order' || key == 'self-align') node.c = 1;
+			// 填充链接
+			if (value.includes('url')) {
+				var j = value.indexOf('(');
+				if (j++ != -1) {
+					while (value[j] == '"' || value[j] == "'" || blankChar[value[j]]) j++;
+					value = value.substr(0, j) + this.getUrl(value.substr(j));
+				}
+			}
+			// 转换 rpx
+			else if (value.includes('rpx'))
+				value = value.replace(/[0-9.]+\s*rpx/g, $ => parseFloat($) * windowWidth / 750 + 'px');
+			else if (key == 'white-space' && value.includes('pre') && !close)
+				this.pre = node.pre = true;
+			style += `;${key}:${value}`;
+		}
+		style = style.substr(1);
+		if (style) attrs.style = style;
+		if (!close) {
+			node.children = [];
+			if (node.name == 'pre' && cfg.highlight) {
+				this.remove(node);
+				this.pre = node.pre = true;
+			}
+			this.siblings().push(node);
+			this.STACK.push(node);
+		} else if (!cfg.filter || cfg.filter(node, this) != false)
+			this.siblings().push(node);
+	} else {
+		if (!close) this.remove(node);
+		else if (node.name == 'source') {
+			var parent = this.parent();
+			if (parent && (parent.name == 'video' || parent.name == 'audio') && node.attrs.src)
+				parent.attrs.source.push(node.attrs.src);
+		} else if (node.name == 'base' && !this.domain) this.domain = node.attrs.href;
+	}
+	if (this.data[this.i] == '/') this.i++;
+	this.start = this.i + 1;
+	this.state = this.Text;
+}
+// 移除标签
+MpHtmlParser.prototype.remove = function(node) {
+	var name = node.name,
+		j = this.i;
+	// 处理 svg
+	var handleSvg = () => {
+		var src = this.data.substring(j, this.i + 1);
+		if (!node.attrs.xmlns) src = ' xmlns="http://www.w3.org/2000/svg"' + src;
+		var i = j;
+		while (this.data[j] != '<') j--;
+		src = this.data.substring(j, i).replace("viewbox", "viewBox") + src;
+		var parent = this.parent();
+		if (node.attrs.width == '100%' && parent && (parent.attrs.style || '').includes('inline'))
+			parent.attrs.style = 'width:300px;max-width:100%;' + parent.attrs.style;
+		this.siblings().push({
+			name: 'img',
+			attrs: {
+				src: 'data:image/svg+xml;utf8,' + src.replace(/#/g, '%23'),
+				style: (/vertical[^;]+/.exec(node.attrs.style) || []).shift(),
+				ignore: 'T'
+			}
+		})
+	}
+	if (node.name == 'svg' && this.data[j] == '/') return handleSvg(this.i++);
+	while (1) {
+		if ((this.i = this.data.indexOf('</', this.i + 1)) == -1) {
+			if (name == 'pre' || name == 'svg') this.i = j;
+			else this.i = this.data.length;
+			return;
+		}
+		this.start = (this.i += 2);
+		while (!blankChar[this.data[this.i]] && !this.isClose()) this.i++;
+		if (this.section().toLowerCase() == name) {
+			// 代码块高亮
+			if (name == 'pre') {
+				this.data = this.data.substr(0, j + 1) + cfg.highlight(this.data.substring(j + 1, this.i - 5), node.attrs) + this.data
+					.substr(this.i - 5);
+				return this.i = j;
+			} else if (name == 'style')
+				this.CssHandler.getStyle(this.data.substring(j + 1, this.i - 7));
+			else if (name == 'title')
+				this.DOM.title = this.data.substring(j + 1, this.i - 7);
+			if ((this.i = this.data.indexOf('>', this.i)) == -1) this.i = this.data.length;
+			if (name == 'svg') handleSvg();
+			return;
+		}
+	}
+}
+// 节点出栈处理
+MpHtmlParser.prototype.popNode = function(node) {
+	// 空白符处理
+	if (node.pre) {
+		node.pre = this.pre = void 0;
+		for (let i = this.STACK.length; i--;)
+			if (this.STACK[i].pre)
+				this.pre = true;
+	}
+	var siblings = this.siblings(),
+		len = siblings.length,
+		childs = node.children;
+	if (node.name == 'head' || (cfg.filter && cfg.filter(node, this) == false))
+		return siblings.pop();
+	var attrs = node.attrs;
+	// 替换一些标签名
+	if (cfg.blockTags[node.name]) node.name = 'div';
+	else if (!cfg.trustTags[node.name]) node.name = 'span';
+	// 处理列表
+	if (node.c && (node.name == 'ul' || node.name == 'ol')) {
+		if ((node.attrs.style || '').includes('list-style:none')) {
+			for (let i = 0, child; child = childs[i++];)
+				if (child.name == 'li')
+					child.name = 'div';
+		} else if (node.name == 'ul') {
+			var floor = 1;
+			for (let i = this.STACK.length; i--;)
+				if (this.STACK[i].name == 'ul') floor++;
+			if (floor != 1)
+				for (let i = childs.length; i--;)
+					childs[i].floor = floor;
+		} else {
+			for (let i = 0, num = 1, child; child = childs[i++];)
+				if (child.name == 'li') {
+					child.type = 'ol';
+					child.num = ((num, type) => {
+						if (type == 'a') return String.fromCharCode(97 + (num - 1) % 26);
+						if (type == 'A') return String.fromCharCode(65 + (num - 1) % 26);
+						if (type == 'i' || type == 'I') {
+							num = (num - 1) % 99 + 1;
+							var one = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX'],
+								ten = ['X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC'],
+								res = (ten[Math.floor(num / 10) - 1] || '') + (one[num % 10 - 1] || '');
+							if (type == 'i') return res.toLowerCase();
+							return res;
+						}
+						return num;
+					})(num++, attrs.type) + '.';
+				}
+		}
+	}
+	// 处理表格的边框
+	if (node.name == 'table') {
+		var padding = attrs.cellpadding,
+			spacing = attrs.cellspacing,
+			border = attrs.border;
+		if (node.c) {
+			this.bubble();
+			attrs.style = (attrs.style || '') + ';display:table';
+			if (!padding) padding = 2;
+			if (!spacing) spacing = 2;
+		}
+		if (border) attrs.style = `border:${border}px solid gray;${attrs.style || ''}`;
+		if (spacing) attrs.style = `border-spacing:${spacing}px;${attrs.style || ''}`;
+		if (border || padding || node.c)
+			(function f(ns) {
+				for (var i = 0, n; n = ns[i]; i++) {
+					if (n.type == 'text') continue;
+					var style = n.attrs.style || '';
+					if (node.c && n.name[0] == 't') {
+						n.c = 1;
+						style += ';display:table-' + (n.name == 'th' || n.name == 'td' ? 'cell' : (n.name == 'tr' ? 'row' : 'row-group'));
+					}
+					if (n.name == 'th' || n.name == 'td') {
+						if (border) style = `border:${border}px solid gray;${style}`;
+						if (padding) style = `padding:${padding}px;${style}`;
+					} else f(n.children || []);
+					if (style) n.attrs.style = style;
+				}
+			})(childs)
+		if (this.options.autoscroll) {
+			var table = Object.assign({}, node);
+			node.name = 'div';
+			node.attrs = {
+				style: 'overflow:scroll'
+			}
+			node.children = [table];
+		}
+	}
+	this.CssHandler.pop && this.CssHandler.pop(node);
+	// 自动压缩
+	if (node.name == 'div' && !Object.keys(attrs).length && childs.length == 1 && childs[0].name == 'div')
+		siblings[len - 1] = childs[0];
+}
+// 状态机
+MpHtmlParser.prototype.Text = function(c) {
+	if (c == '<') {
+		var next = this.data[this.i + 1],
+			isLetter = c => (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');
+		if (isLetter(next)) {
+			this.setText();
+			this.start = this.i + 1;
+			this.state = this.TagName;
+		} else if (next == '/') {
+			this.setText();
+			if (isLetter(this.data[++this.i + 1])) {
+				this.start = this.i + 1;
+				this.state = this.EndTag;
+			} else this.Comment();
+		} else if (next == '!' || next == '?') {
+			this.setText();
+			this.Comment();
+		}
+	}
+}
+MpHtmlParser.prototype.Comment = function() {
+	var key;
+	if (this.data.substring(this.i + 2, this.i + 4) == '--') key = '-->';
+	else if (this.data.substring(this.i + 2, this.i + 9) == '[CDATA[') key = ']]>';
+	else key = '>';
+	if ((this.i = this.data.indexOf(key, this.i + 2)) == -1) this.i = this.data.length;
+	else this.i += key.length - 1;
+	this.start = this.i + 1;
+	this.state = this.Text;
+}
+MpHtmlParser.prototype.TagName = function(c) {
+	if (blankChar[c]) {
+		this.tagName = this.section();
+		while (blankChar[this.data[this.i]]) this.i++;
+		if (this.isClose()) this.setNode();
+		else {
+			this.start = this.i;
+			this.state = this.AttrName;
+		}
+	} else if (this.isClose()) {
+		this.tagName = this.section();
+		this.setNode();
+	}
+}
+MpHtmlParser.prototype.AttrName = function(c) {
+	if (c == '=' || blankChar[c] || this.isClose()) {
+		this.attrName = this.section();
+		if (blankChar[c])
+			while (blankChar[this.data[++this.i]]);
+		if (this.data[this.i] == '=') {
+			while (blankChar[this.data[++this.i]]);
+			this.start = this.i--;
+			this.state = this.AttrValue;
+		} else this.setAttr();
+	}
+}
+MpHtmlParser.prototype.AttrValue = function(c) {
+	if (c == '"' || c == "'") {
+		this.start++;
+		if ((this.i = this.data.indexOf(c, this.i + 1)) == -1) return this.i = this.data.length;
+		this.attrVal = this.section();
+		this.i++;
+	} else {
+		for (; !blankChar[this.data[this.i]] && !this.isClose(); this.i++);
+		this.attrVal = this.section();
+	}
+	this.setAttr();
+}
+MpHtmlParser.prototype.EndTag = function(c) {
+	if (blankChar[c] || c == '>' || c == '/') {
+		var name = this.section().toLowerCase();
+		for (var i = this.STACK.length; i--;)
+			if (this.STACK[i].name == name) break;
+		if (i != -1) {
+			var node;
+			while ((node = this.STACK.pop()).name != name) this.popNode(node);
+			this.popNode(node);
+		} else if (name == 'p' || name == 'br')
+			this.siblings().push({
+				name,
+				attrs: {}
+			});
+		this.i = this.data.indexOf('>', this.i);
+		this.start = this.i + 1;
+		if (this.i == -1) this.i = this.data.length;
+		else this.state = this.Text;
+	}
+}
+module.exports = MpHtmlParser;

+ 80 - 0
components/jyf-parser/libs/config.js

@@ -0,0 +1,80 @@
+/* 配置文件 */
+var cfg = {
+	// 出错占位图
+	errorImg: null,
+	// 过滤器函数
+	filter: null,
+	// 代码高亮函数
+	highlight: null,
+	// 文本处理函数
+	onText: null,
+	// 实体编码列表
+	entities: {
+		quot: '"',
+		apos: "'",
+		semi: ';',
+		nbsp: '\xA0',
+		ensp: '\u2002',
+		emsp: '\u2003',
+		ndash: '–',
+		mdash: '—',
+		middot: '·',
+		lsquo: '‘',
+		rsquo: '’',
+		ldquo: '“',
+		rdquo: '”',
+		bull: '•',
+		hellip: '…'
+	},
+	blankChar: makeMap(' ,\xA0,\t,\r,\n,\f'),
+	boolAttrs: makeMap('allowfullscreen,autoplay,autostart,controls,ignore,loop,muted'),
+	// 块级标签,将被转为 div
+	blockTags: makeMap('address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section'),
+	// 将被移除的标签
+	ignoreTags: makeMap('area,base,canvas,frame,iframe,input,link,map,meta,param,script,source,style,svg,textarea,title,track,wbr'),
+	// 只能被 rich-text 显示的标签
+	richOnlyTags: makeMap('a,colgroup,fieldset,legend,table'),
+	// 自闭合的标签
+	selfClosingTags: makeMap('area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr'),
+	// 信任的标签
+	trustTags: makeMap('a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video'),
+	// 默认的标签样式
+	userAgentStyles: {
+		address: 'font-style:italic',
+		big: 'display:inline;font-size:1.2em',
+		blockquote: 'background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px',
+		caption: 'display:table-caption;text-align:center',
+		center: 'text-align:center',
+		cite: 'font-style:italic',
+		dd: 'margin-left:40px',
+		mark: 'background-color:yellow',
+		pre: 'font-family:monospace;white-space:pre;overflow:scroll',
+		s: 'text-decoration:line-through',
+		small: 'display:inline;font-size:0.8em',
+		u: 'text-decoration:underline'
+	}
+}
+
+function makeMap(str) {
+	var map = Object.create(null),
+		list = str.split(',');
+	for (var i = list.length; i--;)
+		map[list[i]] = true;
+	return map;
+}
+
+// #ifdef MP-WEIXIN
+if (wx.canIUse('editor')) {
+	cfg.blockTags.pre = void 0;
+	cfg.ignoreTags.rp = true;
+	Object.assign(cfg.richOnlyTags, makeMap('bdi,bdo,caption,rt,ruby'));
+	Object.assign(cfg.trustTags, makeMap('bdi,bdo,caption,pre,rt,ruby'));
+}
+// #endif
+
+// #ifdef APP-PLUS
+cfg.ignoreTags.iframe = void 0;
+Object.assign(cfg.trustTags, makeMap('embed,iframe'));
+// #endif
+
+module.exports = cfg;

+ 22 - 0
components/jyf-parser/libs/handler.wxs

@@ -0,0 +1,22 @@
+var inline = {
+	abbr: 1,
+	b: 1,
+	big: 1,
+	code: 1,
+	del: 1,
+	em: 1,
+	i: 1,
+	ins: 1,
+	label: 1,
+	q: 1,
+	small: 1,
+	span: 1,
+	strong: 1,
+	sub: 1,
+	sup: 1
+}
+module.exports = {
+	use: function(item) {
+		return !item.c && !inline[item.name] && (item.attrs.style || '').indexOf('display:inline') == -1
+	}
+}

+ 501 - 0
components/jyf-parser/libs/trees.vue

@@ -0,0 +1,501 @@
+<template>
+	<view :class="'interlayer '+(c||'')" :style="s">
+		<block v-for="(n, i) in nodes" v-bind:key="i">
+			<!--图片-->
+			<view v-if="n.name=='img'" :class="'_img '+n.attrs.class" :style="n.attrs.style" :data-attrs="n.attrs" @tap="imgtap">
+				<rich-text v-if="ctrl[i]!=0" :nodes="[{attrs:{src:loading&&(ctrl[i]||0)<2?loading:(lazyLoad&&!ctrl[i]?placeholder:(ctrl[i]==3?errorImg:n.attrs.src||'')),alt:n.attrs.alt||'',width:n.attrs.width||'',style:'-webkit-touch-callout:none;max-width:100%;display:block'+(n.attrs.height?';height:'+n.attrs.height:'')},name:'img'}]" />
+				<image class="_image" :src="lazyLoad&&!ctrl[i]?placeholder:n.attrs.src" :lazy-load="lazyLoad"
+				 :show-menu-by-longpress="!n.attrs.ignore" :data-i="i" :data-index="n.attrs.i" data-source="img" @load="loadImg"
+				 @error="error" />
+			</view>
+			<!--文本-->
+			<text v-else-if="n.type=='text'" decode>{{n.text}}</text>
+			<!--#ifndef MP-BAIDU-->
+			<text v-else-if="n.name=='br'">\n</text>
+			<!--#endif-->
+			<!--视频-->
+			<view v-else-if="((n.lazyLoad&&!n.attrs.autoplay)||(n.name=='video'&&!loadVideo))&&ctrl[i]==undefined" :id="n.attrs.id" :class="'_video '+(n.attrs.class||'')"
+			 :style="n.attrs.style" :data-i="i" @tap="_loadVideo" />
+			<video v-else-if="n.name=='video'" :id="n.attrs.id" :class="n.attrs.class" :style="n.attrs.style" :autoplay="n.attrs.autoplay||ctrl[i]==0"
+			 :controls="n.attrs.controls" :loop="n.attrs.loop" :muted="n.attrs.muted" :poster="n.attrs.poster" :src="n.attrs.source[ctrl[i]||0]"
+			 :unit-id="n.attrs['unit-id']" :data-id="n.attrs.id" :data-i="i" data-source="video" @error="error" @play="play" />
+			<!--音频-->
+			<audio v-else-if="n.name=='audio'" :ref="n.attrs.id" :class="n.attrs.class" :style="n.attrs.style" :author="n.attrs.author"
+			 :autoplay="n.attrs.autoplay" :controls="n.attrs.controls" :loop="n.attrs.loop" :name="n.attrs.name" :poster="n.attrs.poster"
+			 :src="n.attrs.source[ctrl[i]||0]" :data-i="i" :data-id="n.attrs.id" data-source="audio"
+			 @error.native="error" @play.native="play" />
+			<!--链接-->
+			<view v-else-if="n.name=='a'" :id="n.attrs.id" :class="'_a '+(n.attrs.class||'')" hover-class="_hover" :style="n.attrs.style"
+			 :data-attrs="n.attrs" @tap="linkpress">
+				<trees class="_span" c="_span" :nodes="n.children" />
+			</view>
+			<!--广告-->
+			<!--<ad v-else-if="n.name=='ad'" :class="n.attrs.class" :style="n.attrs.style" :unit-id="n.attrs['unit-id']" :appid="n.attrs.appid" :apid="n.attrs.apid" :type="n.attrs.type" :adpid="n.attrs.adpid" data-source="ad" @error="error" />-->
+			<!--列表-->
+			<view v-else-if="n.name=='li'" :id="n.attrs.id" :class="n.attrs.class" :style="(n.attrs.style||'')+';display:flex;flex-direction:row'">
+				<view v-if="n.type=='ol'" class="_ol-bef">{{n.num}}</view>
+				<view v-else class="_ul-bef">
+					<view v-if="n.floor%3==0" class="_ul-p1">█</view>
+					<view v-else-if="n.floor%3==2" class="_ul-p2" />
+					<view v-else class="_ul-p1" style="border-radius:50%">█</view>
+				</view>
+				<trees class="_li" c="_li" :nodes="n.children" :lazyLoad="lazyLoad" :loading="loading" />
+			</view>
+			<!--表格-->
+			<view v-else-if="n.name=='table'&&n.c" :id="n.attrs.id" :class="n.attrs.class" :style="(n.attrs.style||'')+';display:table'">
+				<view v-for="(tbody, o) in n.children" v-bind:key="o" :class="tbody.attrs.class" :style="(tbody.attrs.style||'')+(tbody.name[0]=='t'?';display:table-'+(tbody.name=='tr'?'row':'row-group'):'')">
+					<view v-for="(tr, p) in tbody.children" v-bind:key="p" :class="tr.attrs.class" :style="(tr.attrs.style||'')+(tr.name[0]=='t'?';display:table-'+(tr.name=='tr'?'row':'cell'):'')">
+						<trees v-if="tr.name=='td'" :nodes="tr.children" />
+						<trees v-else v-for="(td, q) in tr.children" v-bind:key="q" :class="td.attrs.class" :c="td.attrs.class" :style="(td.attrs.style||'')+(td.name[0]=='t'?';display:table-'+(td.name=='tr'?'row':'cell'):'')"
+						 :s="(td.attrs.style||'')+(td.name[0]=='t'?';display:table-'+(td.name=='tr'?'row':'cell'):'')" :nodes="td.children" />
+					</view>
+				</view>
+			</view>
+			<!--#ifdef APP-PLUS-->
+			<iframe v-else-if="n.name=='iframe'" :style="n.attrs.style" :allowfullscreen="n.attrs.allowfullscreen" :frameborder="n.attrs.frameborder"
+			 :width="n.attrs.width" :height="n.attrs.height" :src="n.attrs.src" />
+			<embed v-else-if="n.name=='embed'" :style="n.attrs.style" :width="n.attrs.width" :height="n.attrs.height" :src="n.attrs.src" />
+			<!--#endif-->
+			<!--富文本-->
+			<!--#ifdef MP-WEIXIN || MP-QQ || APP-PLUS-->
+			<rich-text v-else-if="handler.use(n)" :id="n.attrs.id" :class="'_p __'+n.name" :nodes="[n]" />
+			<!--#endif-->
+			<!--#ifndef MP-WEIXIN || MP-QQ || APP-PLUS-->
+			<rich-text v-else-if="!n.c" :id="n.attrs.id" :nodes="[n]" style="display:inline" />
+			<!--#endif-->
+			<trees v-else :class="(n.attrs.id||'')+' _'+n.name+' '+(n.attrs.class||'')" :c="(n.attrs.id||'')+' _'+n.name+' '+(n.attrs.class||'')"
+			 :style="n.attrs.style" :s="n.attrs.style" :nodes="n.children" :lazyLoad="lazyLoad" :loading="loading" />
+		</block>
+	</view>
+</template>
+<script module="handler" lang="wxs" src="./handler.wxs"></script>
+<script>
+	global.Parser = {};
+	import trees from './trees'
+	const errorImg = require('../libs/config.js').errorImg;
+	export default {
+		components: {
+			trees
+		},
+		name: 'trees',
+		data() {
+			return {
+				ctrl: [],
+				placeholder: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="225"/>',
+				errorImg,
+				loadVideo: typeof plus == 'undefined',
+				// #ifndef MP-ALIPAY
+				c: '',
+				s: ''
+				// #endif
+			}
+		},
+		props: {
+			nodes: Array,
+			lazyLoad: Boolean,
+			loading: String,
+			// #ifdef MP-ALIPAY
+			c: String,
+			s: String
+			// #endif
+		},
+		mounted() {
+			for (this.top = this.$parent; this.top.$options.name != 'parser'; this.top = this.top.$parent);
+			this.init();
+		},
+		// #ifdef APP-PLUS
+		beforeDestroy() {
+			this.observer && this.observer.disconnect();
+		},
+		// #endif
+		methods: {
+			init() {
+				for (var i = this.nodes.length, n; n = this.nodes[--i];) {
+					if (n.name == 'img') {
+						this.top.imgList.setItem(n.attrs.i, n.attrs.src);
+						// #ifdef APP-PLUS
+						if (this.lazyLoad && !this.observer) {
+							this.observer = uni.createIntersectionObserver(this).relativeToViewport({
+								top: 500,
+								bottom: 500
+							});
+							setTimeout(() => {
+								this.observer.observe('._img', res => {
+									if (res.intersectionRatio) {
+										for (var j = this.nodes.length; j--;)
+											if (this.nodes[j].name == 'img')
+												this.$set(this.ctrl, j, 1);
+										this.observer.disconnect();
+									}
+								})
+							}, 0)
+						}
+						// #endif
+					} else if (n.name == 'video' || n.name == 'audio') {
+						var ctx;
+						if (n.name == 'video') {
+							ctx = uni.createVideoContext(n.attrs.id
+								// #ifndef MP-BAIDU
+								, this
+								// #endif
+							);
+						} else if (this.$refs[n.attrs.id])
+							ctx = this.$refs[n.attrs.id][0];
+						if (ctx) {
+							ctx.id = n.attrs.id;
+							this.top.videoContexts.push(ctx);
+						}
+					}
+				}
+				// #ifdef APP-PLUS
+				// APP 上避免 video 错位需要延时渲染
+				setTimeout(() => {
+					this.loadVideo = true;
+				}, 1000)
+				// #endif
+			},
+			play(e) {
+				var contexts = this.top.videoContexts;
+				if (contexts.length > 1 && this.top.autopause)
+					for (var i = contexts.length; i--;)
+						if (contexts[i].id != e.currentTarget.dataset.id)
+							contexts[i].pause();
+			},
+			imgtap(e) {
+				var attrs = e.currentTarget.dataset.attrs;
+				if (!attrs.ignore) {
+					var preview = true,
+						data = {
+							id: e.target.id,
+							src: attrs.src,
+							ignore: () => preview = false
+						};
+					global.Parser.onImgtap && global.Parser.onImgtap(data);
+					this.top.$emit('imgtap', data);
+					if (preview) {
+						var urls = this.top.imgList,
+							current = urls[attrs.i] ? parseInt(attrs.i) : (urls = [attrs.src], 0);
+						uni.previewImage({
+							current,
+							urls
+						})
+					}
+				}
+			},
+			loadImg(e) {
+				var i = e.currentTarget.dataset.i;
+				if (this.lazyLoad && !this.ctrl[i]) {
+					// #ifdef QUICKAPP-WEBVIEW
+					this.$set(this.ctrl, i, 0);
+					this.$nextTick(function() {
+						// #endif
+						// #ifndef APP-PLUS
+						this.$set(this.ctrl, i, 1);
+						// #endif
+						// #ifdef QUICKAPP-WEBVIEW
+					})
+					// #endif
+				} else if (this.loading && this.ctrl[i] != 2) {
+					// #ifdef QUICKAPP-WEBVIEW
+					this.$set(this.ctrl, i, 0);
+					this.$nextTick(function() {
+						// #endif
+						this.$set(this.ctrl, i, 2);
+						// #ifdef QUICKAPP-WEBVIEW
+					})
+					// #endif
+				}
+			},
+			linkpress(e) {
+				var jump = true,
+					attrs = e.currentTarget.dataset.attrs;
+				attrs.ignore = () => jump = false;
+				global.Parser.onLinkpress && global.Parser.onLinkpress(attrs);
+				this.top.$emit('linkpress', attrs);
+				if (jump) {
+					// #ifdef MP
+					if (attrs['app-id']) {
+						return uni.navigateToMiniProgram({
+							appId: attrs['app-id'],
+							path: attrs.path
+						})
+					}
+					// #endif
+					if (attrs.href) {
+						if (attrs.href[0] == '#') {
+							if (this.top.useAnchor)
+								this.top.navigateTo({
+									id: attrs.href.substring(1)
+								})
+						} else if (attrs.href.indexOf('http') == 0 || attrs.href.indexOf('//') == 0) {
+							// #ifdef APP-PLUS
+							plus.runtime.openWeb(attrs.href);
+							// #endif
+							// #ifndef APP-PLUS
+							uni.setClipboardData({
+								data: attrs.href,
+								success: () =>
+									uni.showToast({
+										title: '链接已复制'
+									})
+							})
+							// #endif
+						} else
+							uni.navigateTo({
+								url: attrs.href,
+								fail() {
+									uni.switchTab({
+										url: attrs.href,
+									})
+								}
+							})
+					}
+				}
+			},
+			error(e) {
+				var target = e.currentTarget,
+					source = target.dataset.source,
+					i = target.dataset.i;
+				if (source == 'video' || source == 'audio') {
+					// 加载其他 source
+					var index = this.ctrl[i] ? this.ctrl[i].i + 1 : 1;
+					if (index < this.nodes[i].attrs.source.length)
+						this.$set(this.ctrl, i, index);
+					if (e.detail.__args__)
+						e.detail = e.detail.__args__[0];
+				} else if (errorImg && source == 'img') {
+					this.top.imgList.setItem(target.dataset.index, errorImg);
+					this.$set(this.ctrl, i, 3);
+				}
+				this.top && this.top.$emit('error', {
+					source,
+					target,
+					errMsg: e.detail.errMsg
+				});
+			},
+			_loadVideo(e) {
+				this.$set(this.ctrl, e.target.dataset.i, 0);
+			}
+		}
+	}
+</script>
+
+<style>
+	/* 在这里引入自定义样式 */
+
+	/* 链接和图片效果 */
+	._a {
+		display: inline;
+		padding: 1.5px 0 1.5px 0;
+		color: #366092;
+		word-break: break-all;
+	}
+
+	._hover {
+		text-decoration: underline;
+		opacity: 0.7;
+	}
+
+	._img {
+		display: inline-block;
+		max-width: 100%;
+		overflow: hidden;
+	}
+
+	/* #ifdef MP-WEIXIN */
+	:host {
+		display: inline;
+	}
+
+	/* #endif */
+
+	/* #ifndef MP-ALIPAY || APP-PLUS */
+	.interlayer {
+		display: inherit;
+		flex-direction: inherit;
+		flex-wrap: inherit;
+		align-content: inherit;
+		align-items: inherit;
+		justify-content: inherit;
+		width: 100%;
+		white-space: inherit;
+	}
+
+	/* #endif */
+
+	._b,
+	._strong {
+		font-weight: bold;
+	}
+
+	/* #ifndef MP-ALIPAY */
+	._blockquote,
+	._div,
+	._p,
+	._ol,
+	._ul,
+	._li {
+		display: block;
+	}
+	
+	/* #endif */
+
+	._code {
+		font-family: monospace;
+	}
+
+	._del {
+		text-decoration: line-through;
+	}
+
+	._em,
+	._i {
+		font-style: italic;
+	}
+
+	._h1 {
+		font-size: 2em;
+	}
+
+	._h2 {
+		font-size: 1.5em;
+	}
+
+	._h3 {
+		font-size: 1.17em;
+	}
+
+	._h5 {
+		font-size: 0.83em;
+	}
+
+	._h6 {
+		font-size: 0.67em;
+	}
+
+	._h1,
+	._h2,
+	._h3,
+	._h4,
+	._h5,
+	._h6 {
+		display: block;
+		font-weight: bold;
+	}
+
+	._image {
+		display: block;
+		width: 100%;
+		height: 360px;
+		margin-top: -360px;
+		opacity: 0;
+	}
+
+	._ins {
+		text-decoration: underline;
+	}
+
+	._li {
+		flex: 1;
+		width: 0;
+	}
+
+	._ol-bef {
+		width: 36px;
+		margin-right: 5px;
+		text-align: right;
+	}
+
+	._ul-bef {
+		display: block;
+		margin: 0 12px 0 23px;
+		line-height: normal;
+	}
+
+	._ol-bef,
+	._ul-bef {
+		flex: none;
+		user-select: none;
+	}
+
+	._ul-p1 {
+		display: inline-block;
+		width: 0.3em;
+		height: 0.3em;
+		overflow: hidden;
+		line-height: 0.3em;
+	}
+
+	._ul-p2 {
+		display: inline-block;
+		width: 0.23em;
+		height: 0.23em;
+		border: 0.05em solid black;
+		border-radius: 50%;
+	}
+
+	._q::before {
+		content: '"';
+	}
+
+	._q::after {
+		content: '"';
+	}
+
+	._sub {
+		font-size: smaller;
+		vertical-align: sub;
+	}
+
+	._sup {
+		font-size: smaller;
+		vertical-align: super;
+	}
+
+	/* #ifdef MP-ALIPAY || APP-PLUS || QUICKAPP-WEBVIEW */
+	._abbr,
+	._b,
+	._code,
+	._del,
+	._em,
+	._i,
+	._ins,
+	._label,
+	._q,
+	._span,
+	._strong,
+	._sub,
+	._sup {
+		display: inline;
+	}
+
+	/* #endif */
+
+	/* #ifdef MP-WEIXIN || MP-QQ */
+	.__bdo,
+	.__bdi,
+	.__ruby,
+	.__rt {
+		display: inline-block;
+	}
+
+	/* #endif */
+	._video {
+		position: relative;
+		display: inline-block;
+		width: 300px;
+		height: 225px;
+		background-color: black;
+	}
+
+	._video::after {
+		position: absolute;
+		top: 50%;
+		left: 50%;
+		margin: -15px 0 0 -15px;
+		content: '';
+		border-color: transparent transparent transparent white;
+		border-style: solid;
+		border-width: 15px 0 15px 30px;
+	}
+</style>

+ 421 - 0
components/newlist/nowList.vue

@@ -0,0 +1,421 @@
+<template>
+	<view class="other">
+		<view class="other-1">大家还在拼</view>
+		
+		<view class="preferred_item" v-for="item in recommendedlist" @click.stop="ToKaiTuan(item)">
+			<view class="flex_item" style="overflow: hidden;">
+				<view class="tlist-img">
+					<view class="leftImgIcon">AA团</view>
+					<!-- <view class="leftImgIcon" v-if="sid == 129">达人团</view> -->
+					<view class="img"><image :src="item.image" mode="scaleToFill"></image></view>
+				</view>
+				<view class="tlist-img " v-for="imgItem in item.images">
+					<view class="img"><image :src="imgItem" mode="scaleToFill"></image></view>
+				</view>
+			</view>
+			<view class="goods_name">
+				<view class="goods_title flex_item">
+					<view class="text">{{ item.min_people }}人团</view>
+					<view class="title">{{ item.title }}</view>
+				</view>
+				<view class="goods-height">
+					<!-- <view class="goods_num clamp">{{ item.info }}</view> -->
+					<view class="flex goods-peplo">
+						<view class="goods-tip flex_item">
+							<view class="peplo">库存剩{{ item.percent | parseIntTo }}%</view>
+							<view class="make">{{ item.mark }}</view>
+						</view>
+						<view class="right flex_item">
+							<image src="/static/icon/hot.png" mode="aspectFill"></image>
+							<text>已拼{{ item.sales }}份</text>
+						</view>
+					</view>
+				</view>
+				<view class="price flex">
+					<view class="price_list">
+						<view class="price-red">
+							<text>单人仅付:</text>
+							<text class="moneyIcon">¥</text>
+							<text class="money">{{ item.price }}</text>
+							<text class="moneyType">/{{ item.unit_name }}</text>
+							<!-- <text class="outMoney">¥{{ item.product_price }}</text> -->
+						</view>
+					</view>
+					<view class="img position-relative" @click.stop="ToKaiTuan(item)">去开团</view>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+export default {
+	props: {
+		recommendedlist: {
+			type: Array,
+			default: function() {
+				return {
+				};
+			}
+		}
+	},
+	data() {
+		return {};
+	},
+	filters: {
+		parseIntTo(percent) {
+			percent = +percent * 100;
+			if (percent % 1 === 0) {
+				return percent;
+			} else {
+				percent = percent.toFixed(1);
+				return percent;
+			}
+		}
+	},
+	methods: {
+		// 去开团
+		ToKaiTuan(item) {
+			console.log(8754847)
+			let id = item.id;
+			uni.navigateTo({
+				url: '/pages/product/productGroup?id=' + id
+			});
+		},
+	}
+};
+</script>
+
+<style lang="scss">
+.other{
+		.other-1{
+			font-size:27rpx;
+			color:#333333;
+			line-height: 55rpx;
+		}
+		
+		.preferred_item {
+			width: 100%;
+			height: 100%;
+			padding: 25rpx 25rpx;
+			position: relative;
+			background-color: #FFFFFF;
+			border-radius: 15rpx;
+			margin-bottom: 15rpx;
+			.tlist-img {
+				width: 225rpx;
+				position: relative;
+				margin-right: 15rpx;
+				.leftImgIcon {
+					position: absolute;
+					top: 0;
+					left: 0;
+					font-size: 22rpx;
+					font-family: PingFangSC;
+					color: rgba(148, 71, 34, 1);
+					background: rgba(254, 242, 111, 1);
+					z-index: 99;
+					border-radius: 5rpx;
+					padding: 5rpx 10rpx;
+				}
+				.img {
+					width: 210rpx;
+					height: 210rpx;
+					image {
+						width: 100%;
+						height: 100%;
+						border-radius: 20rpx;
+					}
+				}
+				.stock {
+					margin-top: 13rpx;
+					font-size: 26rpx;
+					background: #fff1ee;
+					width: 100%;
+					color: #fb4912;
+					padding: 6rpx 0;
+					border-radius: 5rpx;
+					justify-content: center;
+					align-items: center;
+					position: absolute;
+					left: 0;
+					bottom: 0;
+					.img {
+						width: 20rpx;
+						height: 20rpx;
+						flex-shrink: 0;
+					}
+					.stock-num {
+						padding-left: 7rpx;
+						font-size: 22rpx;
+						border-radius: 5rpx;
+						height: 32rpx;
+						line-height: 32rpx;
+					}
+				}
+			}
+			.goods_name {
+				.goods_title {
+					padding-top: 15rpx;
+					color:rgba(0,0,0,1);
+					// white-space: nowrap;
+					// overflow: hidden;
+					// text-overflow: ellipsis;
+					font-size:32rpx;
+					color: $font-color-dark;
+					// height: 70rpx;
+					align-items: baseline;
+					.text{
+						border-radius: 8rpx;
+						border: 2rpx solid #FF1A27;
+						color: #FF1A27;
+						padding:0rpx 10rpx;
+						font-size: 26rpx !important;
+						margin-right: 15rpx;
+						
+					}
+					.title {
+						width: 80%;
+						overflow : hidden;
+						text-overflow: ellipsis;
+						display: -webkit-box;
+						-webkit-line-clamp: 2;
+						-webkit-box-orient: vertical;
+					}
+				}
+				.goods-height {
+					min-height: 60rpx;
+				}
+				.goods_num {
+					font-size: 26rpx;
+					color: #8f8f97;
+					padding-bottom: 15rpx;
+				}
+				.goods-peplo {
+					height: 45rpx;
+					margin-top: 15rpx;
+					.right {
+						color:#8e8e8e;
+						font-size: 24rpx;
+						width:195rpx;
+						image {
+							width: 30rpx;
+							height: 33rpx;
+							margin-right: 15rpx;
+						}
+					}
+					.goods-tip {
+						.peplo {
+							background:linear-gradient(14deg,rgba(255,116,37,1),rgba(255,30,41,1));
+							padding: 5rpx 10rpx;
+							color: #ffffff;
+							border-top-left-radius:8rpx;
+							border-bottom-left-radius: 8rpx;
+						}
+						.make {
+							background-color: #fef26f;
+							color: #944722;
+							border-top-right-radius: 8rpx;
+							border-bottom-right-radius: 8rpx;
+						}
+						.make,
+						.peplo {
+							font-size: $font-sm;
+							padding: 5rpx 10rpx;
+						}
+					}
+				}
+				.price {
+					font-size: 28rpx;
+					position: relative;
+					padding-top: 15rpx;
+					.price_list {
+						.price-red {
+							font-size: 30rpx !important;
+							font-family: Source Han Sans CN;
+							color: rgba(253, 27, 42, 1);
+							font-size: $font-base;
+							font-weight: bold;
+							.moneyIcon {
+								font-weight: normal !important; 
+							}
+							.money {
+								font-size: 58rpx;
+							}
+							.moneyType {
+								font-weight: 400;
+							}
+							.outMoney {
+								font-weight: 400;
+								text-decoration: line-through;
+								color: rgba(142, 142, 142, 1);
+							}
+						}
+						.price-green {
+							color: #2dbd59;
+							font-size: 26rpx !important;
+							font-weight: bold;
+							text {
+								background: linear-gradient(45deg, rgba(21, 197, 52, 1), rgba(21, 197, 52, 1));
+								color: #ffffff;
+								padding: 0rpx 10rpx;
+								border-radius: 7rpx;
+								font-size: 24rpx !important;
+								margin-left: 15rpx;
+							}
+						}
+					}
+					.img {
+						width: 265rpx;
+						height: 74rpx;
+						line-height: 74rpx;
+						// background:linear-gradient(14deg,rgba(255,116,37,1),rgba(255,30,41,1));
+						background: linear-gradient(270deg, rgba(181,116,242, 1) 0%, rgba(139,86,254, 1) 100%);
+						border-radius: 99rpx;
+						color: #ffffff;
+						font-size: $font-lg;
+						text-align: center;
+					}
+					.img1{
+						background-color: #D3D3D3;
+						width: 265rpx;
+						height: 74rpx;
+						line-height: 74rpx;
+						border-radius: 99rpx;
+						color: #ffffff;
+						font-size: $font-lg;
+						text-align: center;
+					}
+					.tomorrow {
+						background: #29a66e;
+						color: #ffffff;
+						border-radius: 25rpx;
+						padding: 10rpx 25rpx;
+					}
+				}
+			}
+		}
+		
+		
+		.other-2{
+			width: 100%;
+			background:#ffffff;
+			padding: 10rpx 15rpx ;
+			border-radius: 20rpx;
+			.content-row{
+				padding: 10rpx 0;
+				.row-1{
+					width: 210rpx;
+					position: relative;
+					margin-right: 20rpx;
+					text-align: center;
+					.row-1-1{
+						text-align: center;
+						height:40rpx;
+						background:#fff1ee;
+						border-radius:6rpx;
+						font-size:22rpx;
+						font-weight:500;
+						color:#fb4912;
+						line-height:40rpx;
+						image{
+							width: 23rpx;
+							height: 23rpx;
+							margin-right: 5rpx;
+						}
+					}
+					.img1{
+						width:170rpx;
+						height:170rpx;
+						border-radius:10rpx;
+					}
+					.img2{
+						position: absolute;
+						top: 0;
+						left: 16rpx;
+						width:80rpx;
+						height:32rpx;
+						border-radius:5px;
+					}
+				}
+				.row-2{
+					padding: 20rpx 0 20rpx 0;
+					width:calc(100% - 210rpx);
+					position: relative;
+					
+					border-bottom: 1px solid #EAEAEA;
+					.word-1{
+						font-size:32rpx;
+						font-weight:bold;
+						color:#141821;
+						margin-left: 10rpx;
+						overflow: hidden;
+						text-overflow: ellipsis;
+						white-space: nowrap;
+					}
+					.word-2{
+						margin-top: 10rpx;
+						font-size:24rpx;
+						color:#979797;
+					}
+					.word-3{
+						margin-top: 10rpx;
+						position: relative;
+						font-size:20rpx;
+						color:#ffffff;
+						image{
+							width: 235rpx;
+							height: 50rpx;
+						}
+						.word-3-1{
+							position: absolute;
+							top:8px;
+							left:2px;
+							width: 230rpx;
+							text-align: center;
+							.word-3-1-1{
+								display: inline-block;
+								color:#FD1B2A;
+								width: 50%;
+							}
+							
+						}
+					}
+					.word-4{
+						margin-top: 15rpx;
+						font-size:23rpx;
+						color:#fd1b2a;
+						margin-left: 10rpx;
+						text{
+							font-size:23rpx;
+							font-weight:bold;
+						}
+						.word-4-1{
+							font-size:36rpx;
+						}
+					}
+					.word-5{
+						margin-top: 15rpx;
+						font-size:21rpx;
+						color:#868686;
+					}
+					.button{
+						width:145rpx;
+						height:60rpx;
+						background:linear-gradient(14deg,#ff7425,#ff1e29);
+						border-radius:30rpx;
+						font-size:27rpx;
+						font-weight:bold;
+						color:#ffffff;
+						line-height:60rpx;
+						text-align: center;
+						
+						position: absolute;
+						bottom: 20rpx;
+						right: 0;
+					}
+				}
+			}
+		}
+	}
+</style>

+ 71 - 0
components/returnButton.vue

@@ -0,0 +1,71 @@
+<template>
+	<view class="content" :style="{'bottom': btmSize + 'rpx'}">
+		<view class="retun-Box" @click="navTo('/pages/order/order?state=0')">
+			<image class="return-img" src=".././static/tabBar/dingdan.png"></image>
+			<view class="return-text">订单</view>
+		</view>
+		<view class="retun-Box" @click="GoHome">
+			<image class="return-img" src=".././static/tabBar/home.png" ></image>
+			<view class="return-text">首页</view>
+		</view>
+	</view>
+</template>
+
+<script>
+export default {
+	props: {
+		btmSize: {
+			type: Number,
+			default: 330
+		}
+	},
+	data() {
+		return {
+			
+		}
+	},
+	methods: {
+		navTo(url) {
+			uni.navigateTo({
+				url: url
+			})
+		},
+		GoHome() {
+			// uni.navigateTo({
+			// 	url: '/pages/groupBooking/index'
+			// })
+			uni.switchTab({
+				url: '/pages/index/index'
+			})
+		}
+	}
+}
+</script>
+
+<style lang="scss">
+.content {
+	position: fixed;
+	right: 0;
+	// bottom: 330rpx;
+	.retun-Box {
+		border-radius: 50%;
+		background: #FFFFFF;
+		width: 100rpx;
+		height: 100rpx;
+		margin-top: 30rpx;
+		display: flex;
+		flex-direction: column;
+		align-items: center;
+		justify-content: center;
+		box-shadow: 0 6rpx 20rpx #888888;
+		.return-img {
+			width: 40rpx;
+			height: 40rpx;
+		}
+		.return-text {
+			font-size: $font-sm;
+			margin-top: 8rpx;
+		}
+	}
+}
+</style>

+ 246 - 0
components/seckill/seckill.vue

@@ -0,0 +1,246 @@
+<template>
+	<view class="seckill-section m-t" v-if="show">
+		<view class="s-header">
+			<view class="f-left-icon"></view>
+			<view class="tit-box"><text class="tit">限时秒杀</text></view>
+			<view class="tip-box">
+				<text class="tip" v-if="status == 1">{{ showTime }}点场结束</text>
+				<text class="tip" v-if="status == 2">距离下场开始</text>
+				<text class="tip" v-if="status == 0">当天活动已结束</text>
+				<uni-countdown v-if="status == 1 || status == 2" :show-day="false" :hour="stopTimeH" :minute="stopTimeM" :second="stopTimeS"></uni-countdown>
+			</view>
+			<view class="textNav iconfont iconenter" @click="navTo('/pages/product/seckill')">更多</view>
+		</view>
+		<scroll-view class="floor-list" scroll-x>
+			<view class="scoll-wrapper position-relative" @click="navTo('/pages/product/seckill')">
+				<view v-for="(item, index) in list" :key="index" class="floor-item">
+					<image class="list-image" :src="item.image" mode="aspectFill"></image>
+					<text class="title clamp">{{ item.title }}</text>
+					<text class="price">¥{{ item.price }}</text>
+				</view>
+				<view v-if="list.length == 0" class="floor-item ">
+					<image class="list-image" mode="aspectFill"></image>
+					<text class="title clamp"></text>
+					<text class="price"></text>
+				</view>
+				<view v-if="list.length == 0" class="noGoodsBg"><view>敬请期待</view></view>
+			</view>
+		</scroll-view>
+	</view>
+</template>
+
+<script>
+import uniCountdown from '@/components/uni-countdown/uni-countdown.vue';
+import { getSeckillList, getSeckillClass } from '@/api/product.js';
+import { timeComputed } from '@/utils/rocessor.js';
+export default {
+	components: {
+		uniCountdown
+	},
+	data() {
+		return {
+			list: [],
+			page: 1,
+			limit: 10,
+			showTime: '', //显示的时间
+			showTImeId: '', //显示时间id用于查询数据
+			stopTimeH: 0,
+			stopTimeM: 0,
+			stopTimeS: 0,
+			// 判断是否所有活动已经结束
+			stop: false, //活动是否已经结束
+			show: false, //是否显示活动
+			status: 0 //获取状态值1为有活动开始中 2为活动未开始 0为活动已经结束
+		};
+	},
+	created: function(e) {
+		// 载入分类
+		this.getClass();
+	},
+	methods: {
+		navTo(url) {
+			uni.navigateTo({
+				url
+			});
+		},
+		getList() {
+			getSeckillList(
+				{
+					page: this.page,
+					limit: this.limit
+				},
+				this.showTImeId
+			)
+				.then(e => {
+					this.list = e.data;
+				})
+				.catch(e => {
+					console.log(e);
+				});
+		},
+		getClass() {
+			let obj = this;
+			getSeckillClass({})
+				.then(({ data }) => {
+					let arr = data.seckillTime;
+					// 用于判断是否有数据
+					let showDate = false;
+					for (var i = 0; i < arr.length; i++) {
+						let ar = arr[i];
+						if (ar.status === 1 || ar.status === 2) {
+							obj.status = ar.status;
+							// 保存要显示的场次时间
+							obj.showTime = ar.time;
+							// 保存要显示活动商品的id
+							obj.showTImeId = ar.id;
+							// 保存当前状态值
+							// 计算倒计时时间
+							if (ar.status === 1) {
+								obj.timeComputed(ar.stop * 1000);
+							} else {
+								// 获取需要开始
+								let arTime = ar.time.split(':');
+								let h = arTime[0];
+								let m = arTime[1];
+								let time = new Date();
+								// 设置时间
+								time.setHours(h, m, 0);
+								obj.timeComputed(time.getTime());
+							}
+							// 获取商品列表
+							obj.getList();
+							// 保存当前有活动在举行
+							showDate = true;
+							// 任务查询结束跳出循环
+							break;
+						}
+					}
+					// 判断是否有活动
+					if (arr.length > 0) {
+						obj.show = true;
+					}
+					// 判断今天活动是否已经全部结束
+					if (!showDate) {
+						// 保存活动结束最后一个小时的活动商品
+						obj.showTImeId = arr[arr.length - 1].id;
+						// 活动已经结束
+						obj.status = 0;
+						// 获取结束时的商品
+						obj.getList();
+						console.log(obj.status);
+					}
+					// 如果所有场次均已经结束
+				})
+				.catch(e => {
+					uni.showModal({
+						title: JSON.stringify(e)
+					});
+				});
+		},
+		// 计算倒计时时间
+		timeComputed(da) {
+			let obj = this;
+			let stopTime = timeComputed(da)
+			obj.stopTimeH =stopTime.hours;
+			obj.stopTimeM = stopTime.minutes;
+			obj.stopTimeS =stopTime.seconds;
+		}
+	}
+};
+</script>
+
+<style lang="scss">
+/* 秒杀专区 */
+.seckill-section {
+	padding: 4rpx 30rpx 24rpx;
+	.s-header {
+		display: flex;
+		align-items: center;
+		height: 92rpx;
+		line-height: 1;
+		.tit-box {
+			flex-shrink: 0;
+		}
+		.tit {
+			@extend %font-title;
+		}
+		.f-left-icon {
+			@extend %f-left-icon;
+		}
+		.textNav {
+			line-height: 1;
+			padding: 15rpx 0;
+			flex-shrink: 0;
+			flex-grow: 1;
+			min-width: 100rpx;
+		}
+		.tip-box {
+			flex-grow: 1;
+			display: flex;
+			justify-content: flex-start;
+			align-items: center;
+		}
+		.tip {
+			font-size: $font-sm;
+			color: $font-color-light;
+			padding-left: 10rpx;
+			padding-right: 10rpx;
+		}
+		.timer {
+			display: inline-block;
+			width: 40rpx;
+			height: 36rpx;
+			text-align: center;
+			line-height: 36rpx;
+			margin-right: 14rpx;
+			font-size: $font-sm + 2rpx;
+			color: #fff;
+			border-radius: 2px;
+			background: rgba(0, 0, 0, 0.8);
+		}
+		.iconenter {
+			font-size: $font-sm;
+			color: $font-color-light;
+			flex: 1;
+			text-align: right;
+		}
+	}
+	.floor-list {
+		white-space: nowrap;
+		background-color: white;
+		padding: 20rpx;
+		border-radius: 5rpx;
+		box-shadow: $box-shadow;
+	}
+	.scoll-wrapper {
+		display: flex;
+		align-items: flex-start;
+		.noGoodsBg {
+			display: flex;
+			align-items: center;
+			justify-content: center;
+			height: 100%;
+			position: absolute;
+			top: 0;
+			left: 0;
+			width: 100%;
+			color: $font-color-light;
+		}
+		.floor-item {
+			width: 150rpx;
+			margin-right: 20rpx;
+			font-size: $font-sm + 2rpx;
+			color: $font-color-dark;
+			line-height: 1.8;
+			.list-image {
+				width: 150rpx;
+				height: 150rpx;
+				border-radius: 6rpx;
+			}
+			.price {
+				color: $color-red;
+			}
+		}
+	}
+}
+</style>

+ 196 - 0
components/share.vue

@@ -0,0 +1,196 @@
+<template>
+	<view v-if="show" class="mask" @click="toggleMask" @touchmove.stop.prevent="stopPrevent" :style="{ backgroundColor: backgroundColor }">
+		<view
+			class="mask-content"
+			@click.stop.prevent="stopPrevent"
+			:style="[
+				{
+					height: config.height,
+					transform: transform
+				}
+			]"
+		>
+			<scroll-view class="view-content" scroll-y>
+				<view class="share-header">分享到</view>
+				<view class="share-list">
+					<view v-for="(item, index) in shareList" :key="index" class="share-item" @click="shareToFriend(item.text)">
+						<image class="itemImage" :src="item.icon" mode=""></image>
+						<text class="itemText">{{ item.text }}</text>
+					</view>
+				</view>
+			</scroll-view>
+			<view class="bottomButtom b-t" @click="toggleMask">取消</view>
+		</view>
+	</view>
+</template>
+
+<script>
+export default {
+	data() {
+		return {
+			transform: 'translateY(50vh)',
+			timer: 0,
+			backgroundColor: 'rgba(0,0,0,0)',
+			show: false,
+			config: {}
+		};
+	},
+	props: {
+		contentHeight: {
+			type: Number,
+			default: 0
+		},
+		//是否是tabbar页面
+		hasTabbar: {
+			type: Boolean,
+			default: false
+		},
+		shareList: {
+			type: Array,
+			default: function() {
+				return [];
+			}
+		}
+	},
+	created() {
+		const height = uni.upx2px(this.contentHeight) + 'px';
+		this.config = {
+			height: height,
+			transform: `translateY(${height})`,
+			backgroundColor: 'rgba(0,0,0,.4)'
+		};
+		this.transform = this.config.transform;
+	},
+	methods: {
+		toggleMask() {
+			//防止高频点击
+			if (this.timer == 1) {
+				return;
+			}
+			this.timer = 1;
+			setTimeout(() => {
+				this.timer = 0;
+			}, 500);
+
+			if (this.show) {
+				this.transform = this.config.transform;
+				this.backgroundColor = 'rgba(0,0,0,0)';
+				setTimeout(() => {
+					this.show = false;
+					this.hasTabbar && uni.showTabBar();
+				}, 200);
+				return;
+			}
+
+			this.show = true;
+			//等待mask重绘完成执行
+			if (this.hasTabbar) {
+				uni.hideTabBar({
+					success: () => {
+						setTimeout(() => {
+							this.backgroundColor = this.config.backgroundColor;
+							this.transform = 'translateY(0px)';
+						}, 10);
+					}
+				});
+			} else {
+				setTimeout(() => {
+					this.backgroundColor = this.config.backgroundColor;
+					this.transform = 'translateY(0px)';
+				}, 10);
+			}
+		},
+		//防止冒泡和滚动穿透
+		stopPrevent() {},
+		//分享操作
+		shareToFriend(type) {
+			this.$api.msg(`分享给${type}`);
+			this.toggleMask();
+		}
+	}
+};
+</script>
+
+<style lang="scss">
+.mask {
+	position: fixed;
+	left: 0;
+	top: 0;
+	right: 0;
+	bottom: 0;
+	display: flex;
+	justify-content: center;
+	align-items: flex-end;
+	z-index: 998;
+	transition: 0.3s;
+	.bottomButtom {
+		position: absolute;
+		left: 0;
+		bottom: 0;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		width: 100%;
+		height: 90rpx;
+		background: #fff;
+		z-index: 9;
+		font-size: $font-base + 2rpx;
+		color: $font-color-dark;
+	}
+}
+.mask-content {
+	width: 100%;
+	height: 580rpx;
+	transition: 0.3s;
+	background: #fff;
+	&.has-bottom {
+		padding-bottom: 90rpx;
+	}
+	.view-content {
+		height: 100%;
+	}
+}
+.share-header {
+	height: 110rpx;
+	font-size: $font-base + 2rpx;
+	color: font-color-dark;
+	display: flex;
+	align-items: center;
+	justify-content: center;
+	padding-top: 10rpx;
+	&:before,
+	&:after {
+		content: '';
+		width: 240rpx;
+		heighg: 0;
+		border-top: 1px solid $border-color-base;
+		transform: scaleY(0.5);
+		margin-right: 30rpx;
+	}
+	&:after {
+		margin-left: 30rpx;
+		margin-right: 0;
+	}
+}
+.share-list {
+	display: flex;
+	flex-wrap: wrap;
+}
+.share-item {
+	min-width: 33.33%;
+	display: flex;
+	flex-direction: column;
+	justify-content: center;
+	align-items: center;
+	height: 180rpx;
+	.itemImage {
+		width: 80rpx;
+		height: 80rpx;
+		margin-bottom: 16rpx;
+	}
+	.itemText {
+		font-size: $font-base;
+		color: $font-color-base;
+	}
+}
+</style>

+ 218 - 0
components/ss-calendar/ss-calendar.vue

@@ -0,0 +1,218 @@
+<template>
+	<view class="calendar__wrap">
+		<view class="header">
+			<view class="current-date">{{ currentDate }}</view>
+		</view>
+		<view class="body">
+			<view class="weeks">
+				<view class="week__item" v-for="week in weeks" :key="week">{{ week }}</view>
+			</view>
+			<view class="day__list">
+				<view class="day__item" v-for="(item, index) in dateData" :key="index">
+					<view class="checked-box" :class="[checksClass]" v-if="item === 'checked'">
+						<text class="checked iconfont iconfavor" v-if="!checksIcon"></text>
+						<image v-else :src="checksIcon" mode="aspectFit"></image>
+						<view class="check_text" v-if="checkTextShow">{{ dayLoad(index) }}</view>
+					</view>
+					<text class="current-box" :class="[item === day ? (actionClass ? actionClass : 'current') : '']" v-else>{{ item }}</text>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+export default {
+	props: {
+		//选中的日期数据
+		checks: {
+			type: Array,
+			default() {
+				// 例子[1,2,3,4],表示本月1,2,3,4号4天被选中
+				return [];
+			}
+		},
+		// 选中物品的样式类
+		checksClass: {
+			type: String,
+			default: ''
+		},
+		// 选中时图标
+		checksIcon: {
+			type: String
+		},
+		// 选中时是否显示文字
+		checkTextShow: {
+			type: Boolean, 
+			default: false
+		},
+		// 表示当前日期的样式
+		actionClass: {
+			type: String,
+			default: ''
+		}
+	},
+	data() {
+		const { year, month, day } = this.getDate();
+		const dateData = this.getDateData(year, month);
+		const noDay = ( new Date(year,month-1,1)).getDay();
+		return {
+			year,
+			month,
+			day,
+			dateData,
+			noDay,//本月1号是星期几
+			weeks: ['日', '一', '二', '三', '四', '五', '六'],
+		};
+	},
+	computed: {
+		// 获取当前日期
+		currentDate() {
+			return `${this.year}-${this.format(this.month)}`;
+		}
+	},
+	watch: {
+		checks(val) {
+			const { year, month } = this.getDate();
+			const dateData = this.getDateData(year, month);
+			// 保存当前月份信息
+			this.dateData = dateData;
+		},
+	},
+	methods: {
+		// 重新计算时间
+		dayLoad: function(value) {
+			return value + 1 - this.noDay;
+		},
+		// 获取当前日期
+		getDate(current) {
+			const date = current ? new Date(current) : new Date();
+			const year = date.getFullYear();
+			// 月份值默认从0开始
+			const month = date.getMonth() + 1;
+			const day = date.getDate();
+			return {
+				year,
+				month,
+				day
+			};
+		},
+		// 日期处理
+		getDateData(year, month) {
+			// 新增月份时需要减少1个月
+			const date = new Date(year,month-1,1);
+			const firstDayWeek = date.getDay();
+			const data = [...this.getEmptys(firstDayWeek), ...this.getDays(firstDayWeek)];
+			return data;
+		},
+		// 查询日期列表有几个空格
+		getEmptys(count) {
+			let arr = [];
+			if (count) {
+				for (let i = 0; i < count; i++) {
+					arr.push('');
+				}
+			}
+			return arr;
+		},
+		getLastDay() {
+			let { year, month } = this.getDate();
+			month += 1;
+			if (month > 11) {
+				year += 1;
+				month = 1;
+			}
+			let firstDayTimeStamp = new Date(`${year}/${month}/1`).getTime();
+			let oneDayTimeStamp = 24 * 60 * 60 * 1000;
+			let lastDay = new Date(firstDayTimeStamp - oneDayTimeStamp).getDate();
+			return lastDay;
+		},
+		getDays() {
+			const lastDay = this.getLastDay();
+			const days = [];
+			for (let i = 1; i <= lastDay; i++) {
+				days.push(this.checks.includes(i) ? 'checked' : i);
+			}
+			return days;
+		},
+		format(num) {
+			return num < 10 ? `0${num}` : num;
+		}
+	}
+};
+</script>
+
+<style lang="scss" scoped>
+.calendar__wrap {
+	background-color: #fff;
+	color: $uni-text-color;
+	.header {
+		padding: 0 24rpx;
+		.current-date {
+			text-align: center;
+			font-size: $font-lg + 2rpx;
+			// border-bottom: 2rpx solid #eee;
+			padding: 32rpx 0;
+		}
+	}
+	.body {
+		.weeks {
+			display: flex;
+			font-size: $font-lg;
+			padding: 10rpx 0;
+			background-color: #f4f7ff;
+			.week__item {
+				flex: 1;
+				text-align: center;
+			}
+		}
+		.day__list {
+			display: flex;
+			flex-wrap: wrap;
+			.day__item {
+				display: flex;
+				justify-content: center;
+				width: 14.285%;
+				text-align: center;
+				padding: 30rpx 0;
+				font-size: 34rpx;
+				color: $font-color-light;
+				.checked-box,
+				.current-box {
+					display: flex;
+					align-items: center;
+					justify-content: center;
+					border-radius: 100%;
+					box-sizing: border-box;
+					position: relative;
+				}
+				image,
+				.checked-box,
+				.current-box,
+				.check_text {
+					width: 56rpx;
+					height: 56rpx;
+					line-height: 56rpx;
+				}
+				image,
+				.check_text {
+					position: absolute;
+					top: 0;
+					left: 0;
+				}
+				.checked {
+					font-size: 40rpx;
+					background-color: #3f9dff;
+					color: #fff;
+				}
+				.current {
+					padding: 12rpx;
+					background-color: $background-color;
+					color: #fff;
+					font-size: 28rpx;
+				}
+			}
+		}
+	}
+}
+</style>

+ 1201 - 0
components/tki-qrcode/qrcode.js

@@ -0,0 +1,1201 @@
+let QRCode = {};
+(function () {
+    /**
+     * 获取单个字符的utf8编码
+     * unicode BMP平面约65535个字符
+     * @param {num} code
+     * return {array}
+     */
+    function unicodeFormat8(code) {
+        // 1 byte
+        var c0, c1, c2;
+        if (code < 128) {
+            return [code];
+            // 2 bytes
+        } else if (code < 2048) {
+            c0 = 192 + (code >> 6);
+            c1 = 128 + (code & 63);
+            return [c0, c1];
+            // 3 bytes
+        } else {
+            c0 = 224 + (code >> 12);
+            c1 = 128 + (code >> 6 & 63);
+            c2 = 128 + (code & 63);
+            return [c0, c1, c2];
+        }
+    }
+    /**
+     * 获取字符串的utf8编码字节串
+     * @param {string} string
+     * @return {array}
+     */
+    function getUTF8Bytes(string) {
+        var utf8codes = [];
+        for (var i = 0; i < string.length; i++) {
+            var code = string.charCodeAt(i);
+            var utf8 = unicodeFormat8(code);
+            for (var j = 0; j < utf8.length; j++) {
+                utf8codes.push(utf8[j]);
+            }
+        }
+        return utf8codes;
+    }
+    /**
+     * 二维码算法实现
+     * @param {string} data              要编码的信息字符串
+     * @param {num} errorCorrectLevel 纠错等级
+     */
+    function QRCodeAlg(data, errorCorrectLevel) {
+        this.typeNumber = -1; //版本
+        this.errorCorrectLevel = errorCorrectLevel;
+        this.modules = null; //二维矩阵,存放最终结果
+        this.moduleCount = 0; //矩阵大小
+        this.dataCache = null; //数据缓存
+        this.rsBlocks = null; //版本数据信息
+        this.totalDataCount = -1; //可使用的数据量
+        this.data = data;
+        this.utf8bytes = getUTF8Bytes(data);
+        this.make();
+    }
+    QRCodeAlg.prototype = {
+        constructor: QRCodeAlg,
+        /**
+         * 获取二维码矩阵大小
+         * @return {num} 矩阵大小
+         */
+        getModuleCount: function () {
+            return this.moduleCount;
+        },
+        /**
+         * 编码
+         */
+        make: function () {
+            this.getRightType();
+            this.dataCache = this.createData();
+            this.createQrcode();
+        },
+        /**
+         * 设置二位矩阵功能图形
+         * @param  {bool} test 表示是否在寻找最好掩膜阶段
+         * @param  {num} maskPattern 掩膜的版本
+         */
+        makeImpl: function (maskPattern) {
+            this.moduleCount = this.typeNumber * 4 + 17;
+            this.modules = new Array(this.moduleCount);
+            for (var row = 0; row < this.moduleCount; row++) {
+                this.modules[row] = new Array(this.moduleCount);
+            }
+            this.setupPositionProbePattern(0, 0);
+            this.setupPositionProbePattern(this.moduleCount - 7, 0);
+            this.setupPositionProbePattern(0, this.moduleCount - 7);
+            this.setupPositionAdjustPattern();
+            this.setupTimingPattern();
+            this.setupTypeInfo(true, maskPattern);
+            if (this.typeNumber >= 7) {
+                this.setupTypeNumber(true);
+            }
+            this.mapData(this.dataCache, maskPattern);
+        },
+        /**
+         * 设置二维码的位置探测图形
+         * @param  {num} row 探测图形的中心横坐标
+         * @param  {num} col 探测图形的中心纵坐标
+         */
+        setupPositionProbePattern: function (row, col) {
+            for (var r = -1; r <= 7; r++) {
+                if (row + r <= -1 || this.moduleCount <= row + r) continue;
+                for (var c = -1; c <= 7; c++) {
+                    if (col + c <= -1 || this.moduleCount <= col + c) continue;
+                    if ((0 <= r && r <= 6 && (c == 0 || c == 6)) || (0 <= c && c <= 6 && (r == 0 || r == 6)) || (2 <= r && r <= 4 && 2 <= c && c <= 4)) {
+                        this.modules[row + r][col + c] = true;
+                    } else {
+                        this.modules[row + r][col + c] = false;
+                    }
+                }
+            }
+        },
+        /**
+         * 创建二维码
+         * @return {[type]} [description]
+         */
+        createQrcode: function () {
+            var minLostPoint = 0;
+            var pattern = 0;
+            var bestModules = null;
+            for (var i = 0; i < 8; i++) {
+                this.makeImpl(i);
+                var lostPoint = QRUtil.getLostPoint(this);
+                if (i == 0 || minLostPoint > lostPoint) {
+                    minLostPoint = lostPoint;
+                    pattern = i;
+                    bestModules = this.modules;
+                }
+            }
+            this.modules = bestModules;
+            this.setupTypeInfo(false, pattern);
+            if (this.typeNumber >= 7) {
+                this.setupTypeNumber(false);
+            }
+        },
+        /**
+         * 设置定位图形
+         * @return {[type]} [description]
+         */
+        setupTimingPattern: function () {
+            for (var r = 8; r < this.moduleCount - 8; r++) {
+                if (this.modules[r][6] != null) {
+                    continue;
+                }
+                this.modules[r][6] = (r % 2 == 0);
+                if (this.modules[6][r] != null) {
+                    continue;
+                }
+                this.modules[6][r] = (r % 2 == 0);
+            }
+        },
+        /**
+         * 设置矫正图形
+         * @return {[type]} [description]
+         */
+        setupPositionAdjustPattern: function () {
+            var pos = QRUtil.getPatternPosition(this.typeNumber);
+            for (var i = 0; i < pos.length; i++) {
+                for (var j = 0; j < pos.length; j++) {
+                    var row = pos[i];
+                    var col = pos[j];
+                    if (this.modules[row][col] != null) {
+                        continue;
+                    }
+                    for (var r = -2; r <= 2; r++) {
+                        for (var c = -2; c <= 2; c++) {
+                            if (r == -2 || r == 2 || c == -2 || c == 2 || (r == 0 && c == 0)) {
+                                this.modules[row + r][col + c] = true;
+                            } else {
+                                this.modules[row + r][col + c] = false;
+                            }
+                        }
+                    }
+                }
+            }
+        },
+        /**
+         * 设置版本信息(7以上版本才有)
+         * @param  {bool} test 是否处于判断最佳掩膜阶段
+         * @return {[type]}      [description]
+         */
+        setupTypeNumber: function (test) {
+            var bits = QRUtil.getBCHTypeNumber(this.typeNumber);
+            for (var i = 0; i < 18; i++) {
+                var mod = (!test && ((bits >> i) & 1) == 1);
+                this.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = mod;
+                this.modules[i % 3 + this.moduleCount - 8 - 3][Math.floor(i / 3)] = mod;
+            }
+        },
+        /**
+         * 设置格式信息(纠错等级和掩膜版本)
+         * @param  {bool} test
+         * @param  {num} maskPattern 掩膜版本
+         * @return {}
+         */
+        setupTypeInfo: function (test, maskPattern) {
+            var data = (QRErrorCorrectLevel[this.errorCorrectLevel] << 3) | maskPattern;
+            var bits = QRUtil.getBCHTypeInfo(data);
+            // vertical
+            for (var i = 0; i < 15; i++) {
+                var mod = (!test && ((bits >> i) & 1) == 1);
+                if (i < 6) {
+                    this.modules[i][8] = mod;
+                } else if (i < 8) {
+                    this.modules[i + 1][8] = mod;
+                } else {
+                    this.modules[this.moduleCount - 15 + i][8] = mod;
+                }
+                // horizontal
+                var mod = (!test && ((bits >> i) & 1) == 1);
+                if (i < 8) {
+                    this.modules[8][this.moduleCount - i - 1] = mod;
+                } else if (i < 9) {
+                    this.modules[8][15 - i - 1 + 1] = mod;
+                } else {
+                    this.modules[8][15 - i - 1] = mod;
+                }
+            }
+            // fixed module
+            this.modules[this.moduleCount - 8][8] = (!test);
+        },
+        /**
+         * 数据编码
+         * @return {[type]} [description]
+         */
+        createData: function () {
+            var buffer = new QRBitBuffer();
+            var lengthBits = this.typeNumber > 9 ? 16 : 8;
+            buffer.put(4, 4); //添加模式
+            buffer.put(this.utf8bytes.length, lengthBits);
+            for (var i = 0, l = this.utf8bytes.length; i < l; i++) {
+                buffer.put(this.utf8bytes[i], 8);
+            }
+            if (buffer.length + 4 <= this.totalDataCount * 8) {
+                buffer.put(0, 4);
+            }
+            // padding
+            while (buffer.length % 8 != 0) {
+                buffer.putBit(false);
+            }
+            // padding
+            while (true) {
+                if (buffer.length >= this.totalDataCount * 8) {
+                    break;
+                }
+                buffer.put(QRCodeAlg.PAD0, 8);
+                if (buffer.length >= this.totalDataCount * 8) {
+                    break;
+                }
+                buffer.put(QRCodeAlg.PAD1, 8);
+            }
+            return this.createBytes(buffer);
+        },
+        /**
+         * 纠错码编码
+         * @param  {buffer} buffer 数据编码
+         * @return {[type]}
+         */
+        createBytes: function (buffer) {
+            var offset = 0;
+            var maxDcCount = 0;
+            var maxEcCount = 0;
+            var length = this.rsBlock.length / 3;
+            var rsBlocks = new Array();
+            for (var i = 0; i < length; i++) {
+                var count = this.rsBlock[i * 3 + 0];
+                var totalCount = this.rsBlock[i * 3 + 1];
+                var dataCount = this.rsBlock[i * 3 + 2];
+                for (var j = 0; j < count; j++) {
+                    rsBlocks.push([dataCount, totalCount]);
+                }
+            }
+            var dcdata = new Array(rsBlocks.length);
+            var ecdata = new Array(rsBlocks.length);
+            for (var r = 0; r < rsBlocks.length; r++) {
+                var dcCount = rsBlocks[r][0];
+                var ecCount = rsBlocks[r][1] - dcCount;
+                maxDcCount = Math.max(maxDcCount, dcCount);
+                maxEcCount = Math.max(maxEcCount, ecCount);
+                dcdata[r] = new Array(dcCount);
+                for (var i = 0; i < dcdata[r].length; i++) {
+                    dcdata[r][i] = 0xff & buffer.buffer[i + offset];
+                }
+                offset += dcCount;
+                var rsPoly = QRUtil.getErrorCorrectPolynomial(ecCount);
+                var rawPoly = new QRPolynomial(dcdata[r], rsPoly.getLength() - 1);
+                var modPoly = rawPoly.mod(rsPoly);
+                ecdata[r] = new Array(rsPoly.getLength() - 1);
+                for (var i = 0; i < ecdata[r].length; i++) {
+                    var modIndex = i + modPoly.getLength() - ecdata[r].length;
+                    ecdata[r][i] = (modIndex >= 0) ? modPoly.get(modIndex) : 0;
+                }
+            }
+            var data = new Array(this.totalDataCount);
+            var index = 0;
+            for (var i = 0; i < maxDcCount; i++) {
+                for (var r = 0; r < rsBlocks.length; r++) {
+                    if (i < dcdata[r].length) {
+                        data[index++] = dcdata[r][i];
+                    }
+                }
+            }
+            for (var i = 0; i < maxEcCount; i++) {
+                for (var r = 0; r < rsBlocks.length; r++) {
+                    if (i < ecdata[r].length) {
+                        data[index++] = ecdata[r][i];
+                    }
+                }
+            }
+            return data;
+
+        },
+        /**
+         * 布置模块,构建最终信息
+         * @param  {} data
+         * @param  {} maskPattern
+         * @return {}
+         */
+        mapData: function (data, maskPattern) {
+            var inc = -1;
+            var row = this.moduleCount - 1;
+            var bitIndex = 7;
+            var byteIndex = 0;
+            for (var col = this.moduleCount - 1; col > 0; col -= 2) {
+                if (col == 6) col--;
+                while (true) {
+                    for (var c = 0; c < 2; c++) {
+                        if (this.modules[row][col - c] == null) {
+                            var dark = false;
+                            if (byteIndex < data.length) {
+                                dark = (((data[byteIndex] >>> bitIndex) & 1) == 1);
+                            }
+                            var mask = QRUtil.getMask(maskPattern, row, col - c);
+                            if (mask) {
+                                dark = !dark;
+                            }
+                            this.modules[row][col - c] = dark;
+                            bitIndex--;
+                            if (bitIndex == -1) {
+                                byteIndex++;
+                                bitIndex = 7;
+                            }
+                        }
+                    }
+                    row += inc;
+                    if (row < 0 || this.moduleCount <= row) {
+                        row -= inc;
+                        inc = -inc;
+                        break;
+                    }
+                }
+            }
+        }
+    };
+    /**
+     * 填充字段
+     */
+    QRCodeAlg.PAD0 = 0xEC;
+    QRCodeAlg.PAD1 = 0x11;
+    //---------------------------------------------------------------------
+    // 纠错等级对应的编码
+    //---------------------------------------------------------------------
+    var QRErrorCorrectLevel = [1, 0, 3, 2];
+    //---------------------------------------------------------------------
+    // 掩膜版本
+    //---------------------------------------------------------------------
+    var QRMaskPattern = {
+        PATTERN000: 0,
+        PATTERN001: 1,
+        PATTERN010: 2,
+        PATTERN011: 3,
+        PATTERN100: 4,
+        PATTERN101: 5,
+        PATTERN110: 6,
+        PATTERN111: 7
+    };
+    //---------------------------------------------------------------------
+    // 工具类
+    //---------------------------------------------------------------------
+    var QRUtil = {
+        /*
+        每个版本矫正图形的位置
+         */
+        PATTERN_POSITION_TABLE: [
+            [],
+            [6, 18],
+            [6, 22],
+            [6, 26],
+            [6, 30],
+            [6, 34],
+            [6, 22, 38],
+            [6, 24, 42],
+            [6, 26, 46],
+            [6, 28, 50],
+            [6, 30, 54],
+            [6, 32, 58],
+            [6, 34, 62],
+            [6, 26, 46, 66],
+            [6, 26, 48, 70],
+            [6, 26, 50, 74],
+            [6, 30, 54, 78],
+            [6, 30, 56, 82],
+            [6, 30, 58, 86],
+            [6, 34, 62, 90],
+            [6, 28, 50, 72, 94],
+            [6, 26, 50, 74, 98],
+            [6, 30, 54, 78, 102],
+            [6, 28, 54, 80, 106],
+            [6, 32, 58, 84, 110],
+            [6, 30, 58, 86, 114],
+            [6, 34, 62, 90, 118],
+            [6, 26, 50, 74, 98, 122],
+            [6, 30, 54, 78, 102, 126],
+            [6, 26, 52, 78, 104, 130],
+            [6, 30, 56, 82, 108, 134],
+            [6, 34, 60, 86, 112, 138],
+            [6, 30, 58, 86, 114, 142],
+            [6, 34, 62, 90, 118, 146],
+            [6, 30, 54, 78, 102, 126, 150],
+            [6, 24, 50, 76, 102, 128, 154],
+            [6, 28, 54, 80, 106, 132, 158],
+            [6, 32, 58, 84, 110, 136, 162],
+            [6, 26, 54, 82, 110, 138, 166],
+            [6, 30, 58, 86, 114, 142, 170]
+        ],
+        G15: (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0),
+        G18: (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0),
+        G15_MASK: (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1),
+        /*
+        BCH编码格式信息
+         */
+        getBCHTypeInfo: function (data) {
+            var d = data << 10;
+            while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15) >= 0) {
+                d ^= (QRUtil.G15 << (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15)));
+            }
+            return ((data << 10) | d) ^ QRUtil.G15_MASK;
+        },
+        /*
+        BCH编码版本信息
+         */
+        getBCHTypeNumber: function (data) {
+            var d = data << 12;
+            while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18) >= 0) {
+                d ^= (QRUtil.G18 << (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18)));
+            }
+            return (data << 12) | d;
+        },
+        /*
+        获取BCH位信息
+         */
+        getBCHDigit: function (data) {
+            var digit = 0;
+            while (data != 0) {
+                digit++;
+                data >>>= 1;
+            }
+            return digit;
+        },
+        /*
+        获取版本对应的矫正图形位置
+         */
+        getPatternPosition: function (typeNumber) {
+            return QRUtil.PATTERN_POSITION_TABLE[typeNumber - 1];
+        },
+        /*
+        掩膜算法
+         */
+        getMask: function (maskPattern, i, j) {
+            switch (maskPattern) {
+                case QRMaskPattern.PATTERN000:
+                    return (i + j) % 2 == 0;
+                case QRMaskPattern.PATTERN001:
+                    return i % 2 == 0;
+                case QRMaskPattern.PATTERN010:
+                    return j % 3 == 0;
+                case QRMaskPattern.PATTERN011:
+                    return (i + j) % 3 == 0;
+                case QRMaskPattern.PATTERN100:
+                    return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 == 0;
+                case QRMaskPattern.PATTERN101:
+                    return (i * j) % 2 + (i * j) % 3 == 0;
+                case QRMaskPattern.PATTERN110:
+                    return ((i * j) % 2 + (i * j) % 3) % 2 == 0;
+                case QRMaskPattern.PATTERN111:
+                    return ((i * j) % 3 + (i + j) % 2) % 2 == 0;
+                default:
+                    throw new Error("bad maskPattern:" + maskPattern);
+            }
+        },
+        /*
+        获取RS的纠错多项式
+         */
+        getErrorCorrectPolynomial: function (errorCorrectLength) {
+            var a = new QRPolynomial([1], 0);
+            for (var i = 0; i < errorCorrectLength; i++) {
+                a = a.multiply(new QRPolynomial([1, QRMath.gexp(i)], 0));
+            }
+            return a;
+        },
+        /*
+        获取评价
+         */
+        getLostPoint: function (qrCode) {
+            var moduleCount = qrCode.getModuleCount(),
+                lostPoint = 0,
+                darkCount = 0;
+            for (var row = 0; row < moduleCount; row++) {
+                var sameCount = 0;
+                var head = qrCode.modules[row][0];
+                for (var col = 0; col < moduleCount; col++) {
+                    var current = qrCode.modules[row][col];
+                    //level 3 评价
+                    if (col < moduleCount - 6) {
+                        if (current && !qrCode.modules[row][col + 1] && qrCode.modules[row][col + 2] && qrCode.modules[row][col + 3] && qrCode.modules[row][col + 4] && !qrCode.modules[row][col + 5] && qrCode.modules[row][col + 6]) {
+                            if (col < moduleCount - 10) {
+                                if (qrCode.modules[row][col + 7] && qrCode.modules[row][col + 8] && qrCode.modules[row][col + 9] && qrCode.modules[row][col + 10]) {
+                                    lostPoint += 40;
+                                }
+                            } else if (col > 3) {
+                                if (qrCode.modules[row][col - 1] && qrCode.modules[row][col - 2] && qrCode.modules[row][col - 3] && qrCode.modules[row][col - 4]) {
+                                    lostPoint += 40;
+                                }
+                            }
+                        }
+                    }
+                    //level 2 评价
+                    if ((row < moduleCount - 1) && (col < moduleCount - 1)) {
+                        var count = 0;
+                        if (current) count++;
+                        if (qrCode.modules[row + 1][col]) count++;
+                        if (qrCode.modules[row][col + 1]) count++;
+                        if (qrCode.modules[row + 1][col + 1]) count++;
+                        if (count == 0 || count == 4) {
+                            lostPoint += 3;
+                        }
+                    }
+                    //level 1 评价
+                    if (head ^ current) {
+                        sameCount++;
+                    } else {
+                        head = current;
+                        if (sameCount >= 5) {
+                            lostPoint += (3 + sameCount - 5);
+                        }
+                        sameCount = 1;
+                    }
+                    //level 4 评价
+                    if (current) {
+                        darkCount++;
+                    }
+                }
+            }
+            for (var col = 0; col < moduleCount; col++) {
+                var sameCount = 0;
+                var head = qrCode.modules[0][col];
+                for (var row = 0; row < moduleCount; row++) {
+                    var current = qrCode.modules[row][col];
+                    //level 3 评价
+                    if (row < moduleCount - 6) {
+                        if (current && !qrCode.modules[row + 1][col] && qrCode.modules[row + 2][col] && qrCode.modules[row + 3][col] && qrCode.modules[row + 4][col] && !qrCode.modules[row + 5][col] && qrCode.modules[row + 6][col]) {
+                            if (row < moduleCount - 10) {
+                                if (qrCode.modules[row + 7][col] && qrCode.modules[row + 8][col] && qrCode.modules[row + 9][col] && qrCode.modules[row + 10][col]) {
+                                    lostPoint += 40;
+                                }
+                            } else if (row > 3) {
+                                if (qrCode.modules[row - 1][col] && qrCode.modules[row - 2][col] && qrCode.modules[row - 3][col] && qrCode.modules[row - 4][col]) {
+                                    lostPoint += 40;
+                                }
+                            }
+                        }
+                    }
+                    //level 1 评价
+                    if (head ^ current) {
+                        sameCount++;
+                    } else {
+                        head = current;
+                        if (sameCount >= 5) {
+                            lostPoint += (3 + sameCount - 5);
+                        }
+                        sameCount = 1;
+                    }
+                }
+            }
+            // LEVEL4
+            var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5;
+            lostPoint += ratio * 10;
+            return lostPoint;
+        }
+
+    };
+    //---------------------------------------------------------------------
+    // QRMath使用的数学工具
+    //---------------------------------------------------------------------
+    var QRMath = {
+        /*
+        将n转化为a^m
+         */
+        glog: function (n) {
+            if (n < 1) {
+                throw new Error("glog(" + n + ")");
+            }
+            return QRMath.LOG_TABLE[n];
+        },
+        /*
+        将a^m转化为n
+         */
+        gexp: function (n) {
+            while (n < 0) {
+                n += 255;
+            }
+            while (n >= 256) {
+                n -= 255;
+            }
+            return QRMath.EXP_TABLE[n];
+        },
+        EXP_TABLE: new Array(256),
+        LOG_TABLE: new Array(256)
+
+    };
+    for (var i = 0; i < 8; i++) {
+        QRMath.EXP_TABLE[i] = 1 << i;
+    }
+    for (var i = 8; i < 256; i++) {
+        QRMath.EXP_TABLE[i] = QRMath.EXP_TABLE[i - 4] ^ QRMath.EXP_TABLE[i - 5] ^ QRMath.EXP_TABLE[i - 6] ^ QRMath.EXP_TABLE[i - 8];
+    }
+    for (var i = 0; i < 255; i++) {
+        QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]] = i;
+    }
+    //---------------------------------------------------------------------
+    // QRPolynomial 多项式
+    //---------------------------------------------------------------------
+    /**
+     * 多项式类
+     * @param {Array} num   系数
+     * @param {num} shift a^shift
+     */
+    function QRPolynomial(num, shift) {
+        if (num.length == undefined) {
+            throw new Error(num.length + "/" + shift);
+        }
+        var offset = 0;
+        while (offset < num.length && num[offset] == 0) {
+            offset++;
+        }
+        this.num = new Array(num.length - offset + shift);
+        for (var i = 0; i < num.length - offset; i++) {
+            this.num[i] = num[i + offset];
+        }
+    }
+    QRPolynomial.prototype = {
+        get: function (index) {
+            return this.num[index];
+        },
+        getLength: function () {
+            return this.num.length;
+        },
+        /**
+         * 多项式乘法
+         * @param  {QRPolynomial} e 被乘多项式
+         * @return {[type]}   [description]
+         */
+        multiply: function (e) {
+            var num = new Array(this.getLength() + e.getLength() - 1);
+            for (var i = 0; i < this.getLength(); i++) {
+                for (var j = 0; j < e.getLength(); j++) {
+                    num[i + j] ^= QRMath.gexp(QRMath.glog(this.get(i)) + QRMath.glog(e.get(j)));
+                }
+            }
+            return new QRPolynomial(num, 0);
+        },
+        /**
+         * 多项式模运算
+         * @param  {QRPolynomial} e 模多项式
+         * @return {}
+         */
+        mod: function (e) {
+            var tl = this.getLength(),
+                el = e.getLength();
+            if (tl - el < 0) {
+                return this;
+            }
+            var num = new Array(tl);
+            for (var i = 0; i < tl; i++) {
+                num[i] = this.get(i);
+            }
+            while (num.length >= el) {
+                var ratio = QRMath.glog(num[0]) - QRMath.glog(e.get(0));
+
+                for (var i = 0; i < e.getLength(); i++) {
+                    num[i] ^= QRMath.gexp(QRMath.glog(e.get(i)) + ratio);
+                }
+                while (num[0] == 0) {
+                    num.shift();
+                }
+            }
+            return new QRPolynomial(num, 0);
+        }
+    };
+
+    //---------------------------------------------------------------------
+    // RS_BLOCK_TABLE
+    //---------------------------------------------------------------------
+    /*
+    二维码各个版本信息[块数, 每块中的数据块数, 每块中的信息块数]
+     */
+    var RS_BLOCK_TABLE = [
+        // L
+        // M
+        // Q
+        // H
+        // 1
+        [1, 26, 19],
+        [1, 26, 16],
+        [1, 26, 13],
+        [1, 26, 9],
+
+        // 2
+        [1, 44, 34],
+        [1, 44, 28],
+        [1, 44, 22],
+        [1, 44, 16],
+
+        // 3
+        [1, 70, 55],
+        [1, 70, 44],
+        [2, 35, 17],
+        [2, 35, 13],
+
+        // 4
+        [1, 100, 80],
+        [2, 50, 32],
+        [2, 50, 24],
+        [4, 25, 9],
+
+        // 5
+        [1, 134, 108],
+        [2, 67, 43],
+        [2, 33, 15, 2, 34, 16],
+        [2, 33, 11, 2, 34, 12],
+
+        // 6
+        [2, 86, 68],
+        [4, 43, 27],
+        [4, 43, 19],
+        [4, 43, 15],
+
+        // 7
+        [2, 98, 78],
+        [4, 49, 31],
+        [2, 32, 14, 4, 33, 15],
+        [4, 39, 13, 1, 40, 14],
+
+        // 8
+        [2, 121, 97],
+        [2, 60, 38, 2, 61, 39],
+        [4, 40, 18, 2, 41, 19],
+        [4, 40, 14, 2, 41, 15],
+
+        // 9
+        [2, 146, 116],
+        [3, 58, 36, 2, 59, 37],
+        [4, 36, 16, 4, 37, 17],
+        [4, 36, 12, 4, 37, 13],
+
+        // 10
+        [2, 86, 68, 2, 87, 69],
+        [4, 69, 43, 1, 70, 44],
+        [6, 43, 19, 2, 44, 20],
+        [6, 43, 15, 2, 44, 16],
+
+        // 11
+        [4, 101, 81],
+        [1, 80, 50, 4, 81, 51],
+        [4, 50, 22, 4, 51, 23],
+        [3, 36, 12, 8, 37, 13],
+
+        // 12
+        [2, 116, 92, 2, 117, 93],
+        [6, 58, 36, 2, 59, 37],
+        [4, 46, 20, 6, 47, 21],
+        [7, 42, 14, 4, 43, 15],
+
+        // 13
+        [4, 133, 107],
+        [8, 59, 37, 1, 60, 38],
+        [8, 44, 20, 4, 45, 21],
+        [12, 33, 11, 4, 34, 12],
+
+        // 14
+        [3, 145, 115, 1, 146, 116],
+        [4, 64, 40, 5, 65, 41],
+        [11, 36, 16, 5, 37, 17],
+        [11, 36, 12, 5, 37, 13],
+
+        // 15
+        [5, 109, 87, 1, 110, 88],
+        [5, 65, 41, 5, 66, 42],
+        [5, 54, 24, 7, 55, 25],
+        [11, 36, 12],
+
+        // 16
+        [5, 122, 98, 1, 123, 99],
+        [7, 73, 45, 3, 74, 46],
+        [15, 43, 19, 2, 44, 20],
+        [3, 45, 15, 13, 46, 16],
+
+        // 17
+        [1, 135, 107, 5, 136, 108],
+        [10, 74, 46, 1, 75, 47],
+        [1, 50, 22, 15, 51, 23],
+        [2, 42, 14, 17, 43, 15],
+
+        // 18
+        [5, 150, 120, 1, 151, 121],
+        [9, 69, 43, 4, 70, 44],
+        [17, 50, 22, 1, 51, 23],
+        [2, 42, 14, 19, 43, 15],
+
+        // 19
+        [3, 141, 113, 4, 142, 114],
+        [3, 70, 44, 11, 71, 45],
+        [17, 47, 21, 4, 48, 22],
+        [9, 39, 13, 16, 40, 14],
+
+        // 20
+        [3, 135, 107, 5, 136, 108],
+        [3, 67, 41, 13, 68, 42],
+        [15, 54, 24, 5, 55, 25],
+        [15, 43, 15, 10, 44, 16],
+
+        // 21
+        [4, 144, 116, 4, 145, 117],
+        [17, 68, 42],
+        [17, 50, 22, 6, 51, 23],
+        [19, 46, 16, 6, 47, 17],
+
+        // 22
+        [2, 139, 111, 7, 140, 112],
+        [17, 74, 46],
+        [7, 54, 24, 16, 55, 25],
+        [34, 37, 13],
+
+        // 23
+        [4, 151, 121, 5, 152, 122],
+        [4, 75, 47, 14, 76, 48],
+        [11, 54, 24, 14, 55, 25],
+        [16, 45, 15, 14, 46, 16],
+
+        // 24
+        [6, 147, 117, 4, 148, 118],
+        [6, 73, 45, 14, 74, 46],
+        [11, 54, 24, 16, 55, 25],
+        [30, 46, 16, 2, 47, 17],
+
+        // 25
+        [8, 132, 106, 4, 133, 107],
+        [8, 75, 47, 13, 76, 48],
+        [7, 54, 24, 22, 55, 25],
+        [22, 45, 15, 13, 46, 16],
+
+        // 26
+        [10, 142, 114, 2, 143, 115],
+        [19, 74, 46, 4, 75, 47],
+        [28, 50, 22, 6, 51, 23],
+        [33, 46, 16, 4, 47, 17],
+
+        // 27
+        [8, 152, 122, 4, 153, 123],
+        [22, 73, 45, 3, 74, 46],
+        [8, 53, 23, 26, 54, 24],
+        [12, 45, 15, 28, 46, 16],
+
+        // 28
+        [3, 147, 117, 10, 148, 118],
+        [3, 73, 45, 23, 74, 46],
+        [4, 54, 24, 31, 55, 25],
+        [11, 45, 15, 31, 46, 16],
+
+        // 29
+        [7, 146, 116, 7, 147, 117],
+        [21, 73, 45, 7, 74, 46],
+        [1, 53, 23, 37, 54, 24],
+        [19, 45, 15, 26, 46, 16],
+
+        // 30
+        [5, 145, 115, 10, 146, 116],
+        [19, 75, 47, 10, 76, 48],
+        [15, 54, 24, 25, 55, 25],
+        [23, 45, 15, 25, 46, 16],
+
+        // 31
+        [13, 145, 115, 3, 146, 116],
+        [2, 74, 46, 29, 75, 47],
+        [42, 54, 24, 1, 55, 25],
+        [23, 45, 15, 28, 46, 16],
+
+        // 32
+        [17, 145, 115],
+        [10, 74, 46, 23, 75, 47],
+        [10, 54, 24, 35, 55, 25],
+        [19, 45, 15, 35, 46, 16],
+
+        // 33
+        [17, 145, 115, 1, 146, 116],
+        [14, 74, 46, 21, 75, 47],
+        [29, 54, 24, 19, 55, 25],
+        [11, 45, 15, 46, 46, 16],
+
+        // 34
+        [13, 145, 115, 6, 146, 116],
+        [14, 74, 46, 23, 75, 47],
+        [44, 54, 24, 7, 55, 25],
+        [59, 46, 16, 1, 47, 17],
+
+        // 35
+        [12, 151, 121, 7, 152, 122],
+        [12, 75, 47, 26, 76, 48],
+        [39, 54, 24, 14, 55, 25],
+        [22, 45, 15, 41, 46, 16],
+
+        // 36
+        [6, 151, 121, 14, 152, 122],
+        [6, 75, 47, 34, 76, 48],
+        [46, 54, 24, 10, 55, 25],
+        [2, 45, 15, 64, 46, 16],
+
+        // 37
+        [17, 152, 122, 4, 153, 123],
+        [29, 74, 46, 14, 75, 47],
+        [49, 54, 24, 10, 55, 25],
+        [24, 45, 15, 46, 46, 16],
+
+        // 38
+        [4, 152, 122, 18, 153, 123],
+        [13, 74, 46, 32, 75, 47],
+        [48, 54, 24, 14, 55, 25],
+        [42, 45, 15, 32, 46, 16],
+
+        // 39
+        [20, 147, 117, 4, 148, 118],
+        [40, 75, 47, 7, 76, 48],
+        [43, 54, 24, 22, 55, 25],
+        [10, 45, 15, 67, 46, 16],
+
+        // 40
+        [19, 148, 118, 6, 149, 119],
+        [18, 75, 47, 31, 76, 48],
+        [34, 54, 24, 34, 55, 25],
+        [20, 45, 15, 61, 46, 16]
+    ];
+
+    /**
+     * 根据数据获取对应版本
+     * @return {[type]} [description]
+     */
+    QRCodeAlg.prototype.getRightType = function () {
+        for (var typeNumber = 1; typeNumber < 41; typeNumber++) {
+            var rsBlock = RS_BLOCK_TABLE[(typeNumber - 1) * 4 + this.errorCorrectLevel];
+            if (rsBlock == undefined) {
+                throw new Error("bad rs block @ typeNumber:" + typeNumber + "/errorCorrectLevel:" + this.errorCorrectLevel);
+            }
+            var length = rsBlock.length / 3;
+            var totalDataCount = 0;
+            for (var i = 0; i < length; i++) {
+                var count = rsBlock[i * 3 + 0];
+                var dataCount = rsBlock[i * 3 + 2];
+                totalDataCount += dataCount * count;
+            }
+            var lengthBytes = typeNumber > 9 ? 2 : 1;
+            if (this.utf8bytes.length + lengthBytes < totalDataCount || typeNumber == 40) {
+                this.typeNumber = typeNumber;
+                this.rsBlock = rsBlock;
+                this.totalDataCount = totalDataCount;
+                break;
+            }
+        }
+    };
+
+    //---------------------------------------------------------------------
+    // QRBitBuffer
+    //---------------------------------------------------------------------
+    function QRBitBuffer() {
+        this.buffer = new Array();
+        this.length = 0;
+    }
+    QRBitBuffer.prototype = {
+        get: function (index) {
+            var bufIndex = Math.floor(index / 8);
+            return ((this.buffer[bufIndex] >>> (7 - index % 8)) & 1);
+        },
+        put: function (num, length) {
+            for (var i = 0; i < length; i++) {
+                this.putBit(((num >>> (length - i - 1)) & 1));
+            }
+        },
+        putBit: function (bit) {
+            var bufIndex = Math.floor(this.length / 8);
+            if (this.buffer.length <= bufIndex) {
+                this.buffer.push(0);
+            }
+            if (bit) {
+                this.buffer[bufIndex] |= (0x80 >>> (this.length % 8));
+            }
+            this.length++;
+        }
+    };
+
+
+
+    // xzedit
+    let qrcodeAlgObjCache = [];
+    /**
+     * 二维码构造函数,主要用于绘制
+     * @param  {参数列表} opt 传递参数
+     * @return {}
+     */
+    QRCode = function (opt) {
+        //设置默认参数
+        this.options = {
+            text: '',
+            size: 256,
+            correctLevel: 3,
+            background: '#ffffff',
+            foreground: '#000000',
+            pdground: '#000000',
+            image: '',
+            imageSize: 30,
+            canvasId: opt.canvasId,
+            context: opt.context,
+            usingComponents: opt.usingComponents,
+            showLoading: opt.showLoading,
+            loadingText: opt.loadingText,
+        };
+        if (typeof opt === 'string') { // 只编码ASCII字符串
+            opt = {
+                text: opt
+            };
+        }
+        if (opt) {
+            for (var i in opt) {
+                this.options[i] = opt[i];
+            }
+        }
+        //使用QRCodeAlg创建二维码结构
+        var qrCodeAlg = null;
+        for (var i = 0, l = qrcodeAlgObjCache.length; i < l; i++) {
+            if (qrcodeAlgObjCache[i].text == this.options.text && qrcodeAlgObjCache[i].text.correctLevel == this.options.correctLevel) {
+                qrCodeAlg = qrcodeAlgObjCache[i].obj;
+                break;
+            }
+        }
+        if (i == l) {
+            qrCodeAlg = new QRCodeAlg(this.options.text, this.options.correctLevel);
+            qrcodeAlgObjCache.push({
+                text: this.options.text,
+                correctLevel: this.options.correctLevel,
+                obj: qrCodeAlg
+            });
+        }
+        /**
+         * 计算矩阵点的前景色
+         * @param {Obj} config
+         * @param {Number} config.row 点x坐标
+         * @param {Number} config.col 点y坐标
+         * @param {Number} config.count 矩阵大小
+         * @param {Number} config.options 组件的options
+         * @return {String}
+         */
+        let getForeGround = function (config) {
+            var options = config.options;
+            if (options.pdground && (
+                (config.row > 1 && config.row < 5 && config.col > 1 && config.col < 5) ||
+                (config.row > (config.count - 6) && config.row < (config.count - 2) && config.col > 1 && config.col < 5) ||
+                (config.row > 1 && config.row < 5 && config.col > (config.count - 6) && config.col < (config.count - 2))
+            )) {
+                return options.pdground;
+            }
+            return options.foreground;
+        }
+        // 创建canvas
+        let createCanvas = function (options) {
+            if (options.showLoading) {
+                uni.showLoading({
+                    title: options.loadingText,
+                    mask: true
+                });
+            }
+            var ctx = uni.createCanvasContext(options.canvasId, options.context);
+            var count = qrCodeAlg.getModuleCount();
+            var ratioSize = options.size;
+            var ratioImgSize = options.imageSize;
+            //计算每个点的长宽
+            var tileW = (ratioSize / count).toPrecision(4);
+            var tileH = (ratioSize / count).toPrecision(4);
+            //绘制
+            for (var row = 0; row < count; row++) {
+                for (var col = 0; col < count; col++) {
+                    var w = (Math.ceil((col + 1) * tileW) - Math.floor(col * tileW));
+                    var h = (Math.ceil((row + 1) * tileW) - Math.floor(row * tileW));
+                    var foreground = getForeGround({
+                        row: row,
+                        col: col,
+                        count: count,
+                        options: options
+                    });
+                    ctx.setFillStyle(qrCodeAlg.modules[row][col] ? foreground : options.background);
+                    ctx.fillRect(Math.round(col * tileW), Math.round(row * tileH), w, h);
+                }
+            }
+            if (options.image) {
+                var x = Number(((ratioSize - ratioImgSize) / 2).toFixed(2));
+                var y = Number(((ratioSize - ratioImgSize) / 2).toFixed(2));
+                drawRoundedRect(ctx, x, y, ratioImgSize, ratioImgSize, 2, 6, true, true)
+                ctx.drawImage(options.image, x, y, ratioImgSize, ratioImgSize);
+                // 画圆角矩形
+                function drawRoundedRect(ctxi, x, y, width, height, r, lineWidth, fill, stroke) {
+                    ctxi.setLineWidth(lineWidth);
+                    ctxi.setFillStyle(options.background);
+                    ctxi.setStrokeStyle(options.background);
+                    ctxi.beginPath(); // draw top and top right corner 
+                    ctxi.moveTo(x + r, y);
+                    ctxi.arcTo(x + width, y, x + width, y + r, r); // draw right side and bottom right corner 
+                    ctxi.arcTo(x + width, y + height, x + width - r, y + height, r); // draw bottom and bottom left corner 
+                    ctxi.arcTo(x, y + height, x, y + height - r, r); // draw left and top left corner 
+                    ctxi.arcTo(x, y, x + r, y, r);
+                    ctxi.closePath();
+                    if (fill) {
+                        ctxi.fill();
+                    }
+                    if (stroke) {
+                        ctxi.stroke();
+                    }
+                }
+            }
+            setTimeout(() => {
+                ctx.draw(true, () => {
+                    // 保存到临时区域
+                    setTimeout(() => {
+                        uni.canvasToTempFilePath({
+                            width: options.width,
+                            height: options.height,
+                            destWidth: options.width,
+                            destHeight: options.height,
+                            canvasId: options.canvasId,
+                            quality: Number(1),
+                            success: function (res) {
+                                if (options.cbResult) {
+                                    options.cbResult(res.tempFilePath)
+                                }
+                            },
+                            fail: function (res) {
+                                if (options.cbResult) {
+                                    options.cbResult(res)
+                                }
+                            },
+                            complete: function () {
+                                if (options.showLoading){
+                                    uni.hideLoading();
+                                }
+                            },
+                        }, options.context);
+                    }, options.text.length + 100);
+                });
+            }, options.usingComponents ? 0 : 150);
+        }
+        createCanvas(this.options);
+        // 空判定
+        let empty = function (v) {
+            let tp = typeof v,
+                rt = false;
+            if (tp == "number" && String(v) == "") {
+                rt = true
+            } else if (tp == "undefined") {
+                rt = true
+            } else if (tp == "object") {
+                if (JSON.stringify(v) == "{}" || JSON.stringify(v) == "[]" || v == null) rt = true
+            } else if (tp == "string") {
+                if (v == "" || v == "undefined" || v == "null" || v == "{}" || v == "[]") rt = true
+            } else if (tp == "function") {
+                rt = false
+            }
+            return rt
+        }
+    };
+    QRCode.prototype.clear = function (fn) {
+        var ctx = uni.createCanvasContext(this.options.canvasId, this.options.context)
+        ctx.clearRect(0, 0, this.options.size, this.options.size)
+        ctx.draw(false, () => {
+            if (fn) {
+                fn()
+            }
+        })
+    };
+})()
+
+export default QRCode

+ 210 - 0
components/tki-qrcode/tki-qrcode.vue

@@ -0,0 +1,210 @@
+<template xlang="wxml" minapp="mpvue">
+	<view class="tki-qrcode">
+		<!-- #ifndef MP-ALIPAY -->
+		<canvas class="tki-qrcode-canvas" :canvas-id="cid" :style="{width:cpSize+'px',height:cpSize+'px'}" />
+		<!-- #endif -->
+		<!-- #ifdef MP-ALIPAY -->
+		<canvas :id="cid" :width="cpSize" :height="cpSize" class="tki-qrcode-canvas" />
+		<!-- #endif -->
+		<image v-show="show" :src="result" :style="{width:cpSize+'px',height:cpSize+'px'}" />
+	</view>
+</template>
+
+<script>
+import QRCode from "./qrcode.js"
+let qrcode
+export default {
+	name: "tki-qrcode",
+	props: {
+		cid: {
+			type: String,
+			default: 'tki-qrcode-canvas'
+		},
+		size: {
+			type: Number,
+			default: 200
+		},
+		unit: {
+			type: String,
+			default: 'upx'
+		},
+		show: {
+			type: Boolean,
+			default: true
+		},
+		val: {
+			type: String,
+			default: ''
+		},
+		background: {
+			type: String,
+			default: '#ffffff'
+		},
+		foreground: {
+			type: String,
+			default: '#000000'
+		},
+		pdground: {
+			type: String,
+			default: '#000000'
+		},
+		icon: {
+			type: String,
+			default: ''
+		},
+		iconSize: {
+			type: Number,
+			default: 40
+		},
+		lv: {
+			type: Number,
+			default: 3
+		},
+		onval: {
+			type: Boolean,
+			default: false
+		},
+		loadMake: {
+			type: Boolean,
+			default: false
+		},
+		usingComponents: {
+			type: Boolean,
+			default: true
+		},
+		showLoading: {
+			type: Boolean,
+			default: true
+		},
+		loadingText: {
+			type: String,
+			default: '二维码生成中'
+		},
+	},
+	data() {
+		return {
+			result: '',
+		}
+	},
+	methods: {
+		_makeCode() {
+			let that = this
+			if (!this._empty(this.val)) {
+				qrcode = new QRCode({
+					context: that, // 上下文环境
+					canvasId:that.cid, // canvas-id
+					usingComponents: that.usingComponents, // 是否是自定义组件
+					showLoading: that.showLoading, // 是否显示loading
+					loadingText: that.loadingText, // loading文字
+					text: that.val, // 生成内容
+					size: that.cpSize, // 二维码大小
+					background: that.background, // 背景色
+					foreground: that.foreground, // 前景色
+					pdground: that.pdground, // 定位角点颜色
+					correctLevel: that.lv, // 容错级别
+					image: that.icon, // 二维码图标
+					imageSize: that.iconSize,// 二维码图标大小
+					cbResult: function (res) { // 生成二维码的回调
+						that._result(res)
+					},
+				});
+			} else {
+				uni.showToast({
+					title: '二维码内容不能为空',
+					icon: 'none',
+					duration: 2000
+				});
+			}
+		},
+		_clearCode() {
+			this._result('')
+			qrcode.clear()
+		},
+		_saveCode() {
+			let that = this;
+			if (this.result != "") {
+				uni.saveImageToPhotosAlbum({
+					filePath: that.result,
+					success: function () {
+						uni.showToast({
+							title: '二维码保存成功',
+							icon: 'success',
+							duration: 2000
+						});
+					}
+				});
+			}
+		},
+		_result(res) {
+			this.result = res;
+			this.$emit('result', res)
+		},
+		_empty(v) {
+			let tp = typeof v,
+				rt = false;
+			if (tp == "number" && String(v) == "") {
+				rt = true
+			} else if (tp == "undefined") {
+				rt = true
+			} else if (tp == "object") {
+				if (JSON.stringify(v) == "{}" || JSON.stringify(v) == "[]" || v == null) rt = true
+			} else if (tp == "string") {
+				if (v == "" || v == "undefined" || v == "null" || v == "{}" || v == "[]") rt = true
+			} else if (tp == "function") {
+				rt = false
+			}
+			return rt
+		}
+	},
+	watch: {
+		size: function (n, o) {
+			if (n != o && !this._empty(n)) {
+				this.cSize = n
+				if (!this._empty(this.val)) {
+					setTimeout(() => {
+						this._makeCode()
+					}, 100);
+				}
+			}
+		},
+		val: function (n, o) {
+			if (this.onval) {
+				if (n != o && !this._empty(n)) {
+					setTimeout(() => {
+						this._makeCode()
+					}, 0);
+				}
+			}
+		}
+	},
+	computed: {
+		cpSize() {
+			if(this.unit == "upx"){
+				return uni.upx2px(this.size)
+			}else{
+				return this.size
+			}
+		}
+	},
+	mounted: function () {
+		if (this.loadMake) {
+			if (!this._empty(this.val)) {
+				setTimeout(() => {
+					this._makeCode()
+				}, 0);
+			}
+		}
+	},
+}
+</script>
+<style>
+.tki-qrcode {
+  position: relative;
+}
+.tki-qrcode-canvas {
+  position: fixed;
+  top: -99999upx;
+  left: -99999upx;
+  z-index: -99999;
+}
+</style>

+ 122 - 0
components/uni-badge/uni-badge.vue

@@ -0,0 +1,122 @@
+<template>
+	<text v-if="text" :class="inverted ? 'uni-badge--' + type + ' uni-badge--' + size + ' uni-badge--' + type + '-inverted' : 'uni-badge--' + type + ' uni-badge--' + size"
+	 class="uni-badge" :style="width" @click="onClick()">{{ text }}</text>
+</template>
+
+<script>
+	export default {
+		name: 'UniBadge',
+		props: {
+			type: {
+				type: String,
+				default: 'default'
+			},
+			inverted: {
+				type: Boolean,
+				default: false
+			},
+			text: {
+				type: [String,Number],
+				default: ''
+			},
+			size: {
+				// small.normal
+				type: String,
+				default: 'normal'
+			}
+		},
+		data() {
+			return {
+				width: `display: inline-block;width: ${String(this.text).length * 15 + 25}rpx`
+			};
+		},
+		methods: {
+			onClick() {
+				this.$emit('click');
+			}
+		}
+	};
+</script>
+
+<style lang="scss" scoped>
+	$bage-size: 12px;
+	$bage-small: scale(0.8);
+	$bage-height: 40rpx;
+
+	.uni-badge {
+		/* #ifndef APP-PLUS */
+		display: flex;
+		/* #endif */
+		flex-direction: row;
+		height: $bage-height;
+		line-height: $bage-height;
+		color: $uni-text-color;
+		border-radius: 100px;
+		background-color: $uni-bg-color-hover;
+		background-color: transparent;
+		text-align: center;
+		font-family: 'Helvetica Neue', Helvetica, sans-serif;
+		font-size: $bage-size;
+		padding: 0;
+	}
+
+	.uni-badge--inverted {
+		padding: 0 5px 0 0;
+		color: $uni-bg-color-hover;
+	}
+
+	.uni-badge--default {
+		color: $uni-text-color;
+		background-color: $uni-bg-color-hover;
+	}
+
+	.uni-badge--default-inverted {
+		color: $uni-text-color-grey;
+		background-color: transparent;
+	}
+
+	.uni-badge--primary {
+		color: $uni-text-color-inverse;
+		background-color: $uni-color-primary;
+	}
+
+	.uni-badge--primary-inverted {
+		color: $uni-color-primary;
+		background-color: transparent;
+	}
+
+	.uni-badge--success {
+		color: $uni-text-color-inverse;
+		background-color: $uni-color-success;
+	}
+
+	.uni-badge--success-inverted {
+		color: $uni-color-success;
+		background-color: transparent;
+	}
+
+	.uni-badge--warning {
+		color: $uni-text-color-inverse;
+		background-color: $uni-color-warning;
+	}
+
+	.uni-badge--warning-inverted {
+		color: $uni-color-warning;
+		background-color: transparent;
+	}
+
+	.uni-badge--error {
+		color: $uni-text-color-inverse;
+		background-color: $uni-color-error;
+	}
+
+	.uni-badge--error-inverted {
+		color: $uni-color-error;
+		background-color: transparent;
+	}
+
+	.uni-badge--small {
+		transform: $bage-small;
+		transform-origin: center center;
+	}
+</style>

+ 181 - 0
components/uni-countdown/uni-countdown.vue

@@ -0,0 +1,181 @@
+<template>
+	<view class="uni-countdown">
+		<text v-if="showDay" :style="{ borderColor: borderColor, color: color, backgroundColor: backgroundColor }" class="uni-countdown__number">{{ d }}</text>
+		<text v-if="showDay" :style="{ color: splitorColor }" class="uni-countdown__splitor">天</text>
+		<text :style="{ borderColor: borderColor, color: color, backgroundColor: backgroundColor }" class="uni-countdown__number">{{ h }}</text>
+		<text :style="{ color: splitorColor }" class="uni-countdown__splitor">{{ showColon ? ':' : '时' }}</text>
+		<text :style="{ borderColor: borderColor, color: color, backgroundColor: backgroundColor }" class="uni-countdown__number">{{ i }}</text>
+		<text :style="{ color: splitorColor }" class="uni-countdown__splitor">{{ showColon ? ':' : '分' }}</text>
+		<text :style="{ borderColor: borderColor, color: color, backgroundColor: backgroundColor }" class="uni-countdown__number">{{ s }}</text>
+		<text v-if="!showColon" :style="{ color: splitorColor }" class="uni-countdown__splitor">秒</text>
+	</view>
+</template>
+<script>
+	export default {
+		name: 'UniCountdown',
+		props: {
+			showDay: {
+				type: Boolean,
+				default: true
+			},
+			showColon: {
+				type: Boolean,
+				default: true
+			},
+			backgroundColor: {
+				type: String,
+				default: '#FFFFFF'
+			},
+			borderColor: {
+				type: String,
+				default: '#000000'
+			},
+			color: {
+				type: String,
+				default: '#000000'
+			},
+			splitorColor: {
+				type: String,
+				default: '#000000'
+			},
+			day:0,
+			hour:0,
+			minute:0,
+			second:0
+		},
+		data() {
+			return {
+				timer: null,
+				syncFlag: false,
+				d: '00',
+				h: '00',
+				i: '00',
+				s: '00',
+				leftTime: 0,
+				seconds: 0
+			}
+		},
+		watch: {
+			day(val) {
+				this.changeFlag()
+			},
+			hour(val) {
+				this.changeFlag()
+			},
+			minute(val) {
+				this.changeFlag()
+			},
+			second(val) {
+				this.changeFlag()
+			}
+		},
+		created: function(e) {
+			this.startData();
+		},
+		beforeDestroy() {
+			clearInterval(this.timer)
+		},
+		methods: {
+			toSeconds(day, hours, minutes, seconds) {
+				return day * 60 * 60 * 24 + hours * 60 * 60 + minutes * 60 + seconds
+			},
+			timeUp() {
+				clearInterval(this.timer)
+				this.$emit('timeup')
+			},
+			countDown() {
+				let seconds = this.seconds
+				let [day, hour, minute, second] = [0, 0, 0, 0]
+				if (seconds > 0) {
+					day = Math.floor(seconds / (60 * 60 * 24))
+					hour = Math.floor(seconds / (60 * 60)) - (day * 24)
+					minute = Math.floor(seconds / 60) - (day * 24 * 60) - (hour * 60)
+					second = Math.floor(seconds) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60)
+				} else {
+					this.timeUp()
+				}
+				hour = hour + (day*24)
+				if (day < 10) {
+					day = '0' + day
+				}
+				if (hour < 10) {
+					hour = '0' + hour
+				}
+				if (minute < 10) {
+					minute = '0' + minute
+				}
+				if (second < 10) {
+					second = '0' + second
+				}
+				this.d = day
+				this.h = hour
+				this.i = minute
+				this.s = second
+			},
+			startData() {
+				this.seconds = this.toSeconds(this.day, this.hour, this.minute, this.second)
+				if (this.seconds <= 0) {
+					return
+				}
+				this.countDown()
+				this.timer = setInterval(() => {
+					this.seconds--
+					if (this.seconds < 0) {
+						this.timeUp()
+						return
+					}
+					this.countDown()
+				}, 1000)
+			},
+			changeFlag() {
+				if (!this.syncFlag) {
+					this.seconds = this.toSeconds(this.day, this.hour, this.minute, this.second)
+					console.log(this.seconds)
+					this.startData();
+					this.syncFlag = true;
+				}
+			}
+		}
+	}
+</script>
+<style lang="scss" scoped>
+	@import '~@/uni.scss';
+	$countdown-height: 40rpx;
+	$countdown-width: 40rpx;
+
+	.uni-countdown {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex-direction: row;
+		justify-content: flex-start;
+		position: relative;
+		top: 5rpx;
+		left: 15rpx;
+	}
+
+	.uni-countdown__splitor {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		justify-content: center;
+		line-height: $countdown-height;
+		padding: 5rpx;
+		font-size: $uni-font-size-sm;
+	}
+
+	.uni-countdown__number {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		justify-content: center;
+		align-items: center;
+		width: $countdown-width;
+		height: $countdown-height;
+		line-height: $countdown-height;
+		// margin: 5rpx;
+		text-align: center;
+		font-size: $uni-font-size-sm;
+		border-radius: 8rpx;
+	}
+</style>

+ 188 - 0
components/uni-countdown/uni-countdowns.vue

@@ -0,0 +1,188 @@
+<template>
+	<view class="uni-countdown">
+		<text v-if="showDay" :style="{ borderColor: borderColor, color: color, backgroundColor: backgroundColor }" class="uni-countdown__number">{{ d }}</text>
+		<text v-if="showDay" :style="{ color: splitorColor }" class="uni-countdown__splitor">天</text>
+		<text :style="{ borderColor: borderColor, color: color, backgroundColor: backgroundColor }" class="uni-countdown__number">{{ h }}</text>
+		<text :style="{ color: splitorColor }" class="uni-countdown__splitor">{{ showColon ? ':' : '时' }}</text>
+		<text :style="{ borderColor: borderColor, color: color, backgroundColor: backgroundColor }" class="uni-countdown__number">{{ i }}</text>
+		<text :style="{ color: splitorColor }" class="uni-countdown__splitor">{{ showColon ? ':' : '分' }}</text>
+		<text :style="{ borderColor: borderColor, color: color, backgroundColor: backgroundColor }" class="uni-countdown__number">{{ s }}</text>
+		<text v-if="!showColon" :style="{ color: splitorColor }" class="uni-countdown__splitor">秒</text>
+	</view>
+</template>
+<script>
+	export default {
+		name: 'UniCountdown',
+		props: {
+			showDay: {
+				type: Boolean,
+				default: true
+			},
+			showColon: {
+				type: Boolean,
+				default: true
+			},
+			backgroundColor: {
+				type: String,
+				default: '#FFFFFF'
+			},
+			borderColor: {
+				type: String,
+				default: '#000000'
+			},
+			color: {
+				type: String,
+				default: '#000000'
+			},
+			splitorColor: {
+				type: String,
+				default: '#000000'
+			},
+			day: {
+				type: Number,
+				default: 0
+			},
+			hour: {
+				type: Number,
+				default: 0
+			},
+			minute: {
+				type: Number,
+				default: 0
+			},
+			second: {
+				type: Number,
+				default: 0
+			}
+		},
+		data() {
+			return {
+				timer: null,
+				syncFlag: false,
+				d: '00',
+				h: '00',
+				i: '00',
+				s: '00',
+				leftTime: 0,
+				seconds: 0
+			}
+		},
+		watch: {
+			day(val) {
+				this.changeFlag()
+			},
+			hour(val) {
+				this.changeFlag()
+			},
+			minute(val) {
+				this.changeFlag()
+			},
+			second(val) {
+				this.changeFlag()
+			}
+		},
+		created: function(e) {
+			this.startData();
+		},
+		beforeDestroy() {
+			clearInterval(this.timer)
+		},
+		methods: {
+			toSeconds(day, hours, minutes, seconds) {
+				return day * 60 * 60 * 24 + hours * 60 * 60 + minutes * 60 + seconds
+			},
+			timeUp() {
+				clearInterval(this.timer)
+				this.$emit('timeup')
+			},
+			countDown() {
+				let seconds = this.seconds
+				let [day, hour, minute, second] = [0, 0, 0, 0]
+				if (seconds > 0) {
+					day = Math.floor(seconds / (60 * 60 * 24))
+					hour = Math.floor(seconds / (60 * 60)) - (day * 24)
+					minute = Math.floor(seconds / 60) - (day * 24 * 60) - (hour * 60)
+					second = Math.floor(seconds) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60)
+				} else {
+					this.timeUp()
+				}
+				if (day < 10) {
+					day = '0' + day
+				}
+				if (hour < 10) {
+					hour = '0' + hour
+				}
+				if (minute < 10) {
+					minute = '0' + minute
+				}
+				if (second < 10) {
+					second = '0' + second
+				}
+				this.d = day
+				this.h = hour
+				this.i = minute
+				this.s = second
+			},
+			startData() {
+				this.seconds = this.toSeconds(this.day, this.hour, this.minute, this.second)
+				if (this.seconds <= 0) {
+					return
+				}
+				this.countDown()
+				this.timer = setInterval(() => {
+					this.seconds--
+					if (this.seconds < 0) {
+						this.timeUp()
+						return
+					}
+					this.countDown()
+				}, 1000)
+			},
+			changeFlag() {
+				if (!this.syncFlag) {
+					this.seconds = this.toSeconds(this.day, this.hour, this.minute, this.second)
+					this.startData();
+					this.syncFlag = true;
+				}
+			}
+		}
+	}
+</script>
+<style lang="scss" scoped>
+	@import '~@/uni.scss';
+	$countdown-height: 48rpx;
+	$countdown-width: 52rpx;
+
+	.uni-countdown {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex-direction: row;
+		justify-content: flex-start;
+		padding: 2rpx 0;
+	}
+
+	.uni-countdown__splitor {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		justify-content: center;
+		line-height: $countdown-height;
+		padding: 5rpx;
+		font-size: $uni-font-size-sm;
+	}
+
+	.uni-countdown__number {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		justify-content: center;
+		align-items: center;
+		width: $countdown-width;
+		height: $countdown-height;
+		line-height: $countdown-height;
+		margin: 5rpx;
+		text-align: center;
+		font-size: $uni-font-size-sm;
+	}
+</style>

+ 124 - 0
components/uni-fav/uni-fav.vue

@@ -0,0 +1,124 @@
+<template>
+	<view :class="[circle === true || circle === 'true' ? 'uni-fav--circle' : '']" :style="[{ backgroundColor: checked ? bgColorChecked : bgColor }]"
+	 @click="onClick" class="uni-fav">
+		<!-- #ifdef MP-ALIPAY -->
+		<view class="uni-fav-star" v-if="!checked && (star === true || star === 'true')">
+			<uni-icons :color="fgColor" :style="{color: checked ? fgColorChecked : fgColor}" size="14" type="star-filled" />
+		</view>
+		<!-- #endif -->
+		<!-- #ifndef MP-ALIPAY -->
+		<uni-icons :color="fgColor" :style="{color: checked ? fgColorChecked : fgColor}" class="uni-fav-star" size="14" type="star-filled"
+		 v-if="!checked && (star === true || star === 'true')" />
+		<!-- #endif -->
+		<text :style="{color: checked ? fgColorChecked : fgColor}" class="uni-fav-text">{{ checked ? contentText.contentFav : contentText.contentDefault }}</text>
+	</view>
+</template>
+
+<script>
+	import uniIcons from "../uni-icons/uni-icons.vue";
+	export default {
+		name: "UniFav",
+		components: {
+			uniIcons
+		},
+		props: {
+			star: {
+				type: [Boolean, String],
+				default: true
+			},
+			bgColor: {
+				type: String,
+				default: "#eeeeee"
+			},
+			fgColor: {
+				type: String,
+				default: "#666666"
+			},
+			bgColorChecked: {
+				type: String,
+				default: "#007aff"
+			},
+			fgColorChecked: {
+				type: String,
+				default: "#FFFFFF"
+			},
+			circle: {
+				type: [Boolean, String],
+				default: false
+			},
+			checked: {
+				type: Boolean,
+				default: false
+			},
+			contentText: {
+				type: Object,
+				default () {
+					return {
+						contentDefault: "收藏",
+						contentFav: "已收藏"
+					};
+				}
+			}
+		},
+		watch: {
+			checked() {
+				if (uni.report) {
+					if (this.checked) {
+						uni.report("收藏", "收藏");
+					} else {
+						uni.report("取消收藏", "取消收藏");
+					}
+				}
+			}
+		},
+		methods: {
+			onClick() {
+				this.$emit("click");
+			}
+		}
+	};
+</script>
+
+<style lang="scss" scoped>
+	$fav-height: 25px;
+
+	.uni-fav {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex-direction: row;
+		align-items: center;
+		justify-content: center;
+		width: 60px;
+		height: $fav-height;
+		line-height: $fav-height;
+		text-align: center;
+		border-radius: 3px;
+	}
+
+	.uni-fav--circle {
+		border-radius: 30px;
+	}
+
+	.uni-fav-star {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		height: $fav-height;
+		line-height: 24px;
+		margin-right: 3px;
+		align-items: center;
+		justify-content: center;
+	}
+
+	.uni-fav-text {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		height: $fav-height;
+		line-height: $fav-height;
+		align-items: center;
+		justify-content: center;
+		font-size: $uni-font-size-base;
+	}
+</style>

+ 96 - 0
components/uni-icons/icons.js

@@ -0,0 +1,96 @@
+export default {
+	'contact': '\ue100',
+	'person': '\ue101',
+	'personadd': '\ue102',
+	'contact-filled': '\ue130',
+	'person-filled': '\ue131',
+	'personadd-filled': '\ue132',
+	'phone': '\ue200',
+	'email': '\ue201',
+	'chatbubble': '\ue202',
+	'chatboxes': '\ue203',
+	'phone-filled': '\ue230',
+	'email-filled': '\ue231',
+	'chatbubble-filled': '\ue232',
+	'chatboxes-filled': '\ue233',
+	'weibo': '\ue260',
+	'weixin': '\ue261',
+	'pengyouquan': '\ue262',
+	'chat': '\ue263',
+	'qq': '\ue264',
+	'videocam': '\ue300',
+	'camera': '\ue301',
+	'mic': '\ue302',
+	'location': '\ue303',
+	'mic-filled': '\ue332',
+	'speech': '\ue332',
+	'location-filled': '\ue333',
+	'micoff': '\ue360',
+	'image': '\ue363',
+	'map': '\ue364',
+	'compose': '\ue400',
+	'trash': '\ue401',
+	'upload': '\ue402',
+	'download': '\ue403',
+	'close': '\ue404',
+	'redo': '\ue405',
+	'undo': '\ue406',
+	'refresh': '\ue407',
+	'star': '\ue408',
+	'plus': '\ue409',
+	'minus': '\ue410',
+	'circle': '\ue411',
+	'checkbox': '\ue411',
+	'close-filled': '\ue434',
+	'clear': '\ue434',
+	'refresh-filled': '\ue437',
+	'star-filled': '\ue438',
+	'plus-filled': '\ue439',
+	'minus-filled': '\ue440',
+	'circle-filled': '\ue441',
+	'checkbox-filled': '\ue442',
+	'closeempty': '\ue460',
+	'refreshempty': '\ue461',
+	'reload': '\ue462',
+	'starhalf': '\ue463',
+	'spinner': '\ue464',
+	'spinner-cycle': '\ue465',
+	'search': '\ue466',
+	'plusempty': '\ue468',
+	'forward': '\ue470',
+	'back': '\ue471',
+	'left-nav': '\ue471',
+	'checkmarkempty': '\ue472',
+	'home': '\ue500',
+	'navigate': '\ue501',
+	'gear': '\ue502',
+	'paperplane': '\ue503',
+	'info': '\ue504',
+	'help': '\ue505',
+	'locked': '\ue506',
+	'more': '\ue507',
+	'flag': '\ue508',
+	'home-filled': '\ue530',
+	'gear-filled': '\ue532',
+	'info-filled': '\ue534',
+	'help-filled': '\ue535',
+	'more-filled': '\ue537',
+	'settings': '\ue560',
+	'list': '\ue562',
+	'bars': '\ue563',
+	'loop': '\ue565',
+	'paperclip': '\ue567',
+	'eye': '\ue568',
+	'arrowup': '\ue580',
+	'arrowdown': '\ue581',
+	'arrowleft': '\ue582',
+	'arrowright': '\ue583',
+	'arrowthinup': '\ue584',
+	'arrowthindown': '\ue585',
+	'arrowthinleft': '\ue586',
+	'arrowthinright': '\ue587',
+	'pulldown': '\ue588',
+	'closefill': '\ue589',
+	'sound': '\ue590',
+	'scan': '\ue612'
+}

Plik diff jest za duży
+ 10 - 0
components/uni-icons/uni-icons.vue


+ 230 - 0
components/uni-list-item/uni-list-item.vue

@@ -0,0 +1,230 @@
+<template>
+	<!-- #ifdef APP-NVUE -->
+	<cell>
+	<!-- #endif -->
+	<view :class="disabled ? 'uni-list-item--disabled' : ''" :hover-class="disabled || showSwitch ? '' : 'uni-list-item--hover'"
+	 class="uni-list-item" @click="onClick">
+		<view class="uni-list-item__container" :class="{'uni-list-item--first':isFirstChild}">
+			<view v-if="thumb" class="uni-list-item__icon">
+				<image :src="thumb" mode="aspectFit" class="uni-list-item__icon-img" />
+			</view>
+			<view v-else-if="showExtraIcon" class="uni-list-item__icon">
+				<uni-icons :color="extraIcon.color" :size="extraIcon.size" :type="extraIcon.type" class="uni-icon-wrapper" />
+			</view>
+			<view class="uni-list-item__content">
+				<slot></slot>
+				<text class="uni-list-item__content-title">{{ title }}</text>
+				<text v-if="note" class="uni-list-item__content-note">{{ note }}</text>
+			</view>
+			<view class="uni-list-item__slot">
+				<slot name="right" ></slot>
+			</view>
+			<view v-if="showBadge || showArrow || showSwitch" class="uni-list-item__extra">
+				<uni-badge v-if="showBadge" :type="badgeType" :text="badgeText" />
+				<switch class="itemSwitch" v-if="showSwitch" :color="switchColor" :disabled="disabled" :checked="switchChecked" @change="onSwitchChange" />
+				<uni-icons v-if="showArrow" :size="20" class="uni-icon-wrapper" color="#bbb" type="arrowright" />
+			</view>
+		</view>
+	</view>
+	<!-- #ifdef APP-NVUE -->
+	</cell>
+	<!-- #endif -->
+</template>
+
+<script>
+	import uniIcons from '../uni-icons/uni-icons.vue'
+	import uniBadge from '../uni-badge/uni-badge.vue'
+	export default {
+		name: 'UniListItem',
+		components: {
+			uniIcons,
+			uniBadge
+		},
+		props: {
+			title: {
+				type: String,
+				default: ''
+			}, // 列表标题
+			note: {
+				type: String,
+				default: ''
+			}, // 列表描述
+			disabled: {
+				// 是否禁用
+				type: [Boolean, String],
+				default: false
+			},
+			showArrow: {
+				// 是否显示箭头
+				type: [Boolean, String],
+				default: true
+			},
+			showBadge: {
+				// 是否显示数字角标
+				type: [Boolean, String],
+				default: false
+			},
+			showSwitch: {
+				// 是否显示Switch
+				type: [Boolean, String],
+				default: false
+			},
+			switchChecked: {
+				// Switch是否被选中
+				type: [Boolean, String],
+				default: false
+			},
+			switchColor:{
+				type:String,
+				default:''
+			},
+			badgeText: {
+				// badge内容
+				type: String,
+				default: ''
+			},
+			badgeType: {
+				// badge类型
+				type: String,
+				default: 'success'
+			},
+			thumb: {
+				// 缩略图
+				type: String,
+				default: ''
+			},
+			showExtraIcon: {
+				// 是否显示扩展图标
+				type: [Boolean, String],
+				default: false
+			},
+			extraIcon: {
+				type: Object,
+				default () {
+					return {
+						type: 'contact',
+						color: '#000000',
+						size: 20
+					}
+				}
+			}
+		},
+		inject: ['list'],
+		data() {
+			return {
+				isFirstChild: false
+			}
+		},
+		mounted() {
+			if (!this.list.firstChildAppend) {
+				this.list.firstChildAppend = true
+				this.isFirstChild = true
+			}
+		},
+		methods: {
+			onClick() {
+				this.$emit('click')
+			},
+			onSwitchChange(e) {
+				this.$emit('switchChange', e.detail)
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	@import '~@/uni.scss';
+
+	$list-item-pd: $uni-spacing-col-lg $uni-spacing-row-lg;
+
+	.uni-list-item {
+		font-size: $uni-font-size-lg;
+		position: relative;
+		flex-direction: column;
+		justify-content: space-between;
+		padding-left: $uni-spacing-row-lg;
+	}
+
+	.uni-list-item--disabled {
+		opacity: 0.3;
+	}
+
+	.uni-list-item--hover {
+		background-color: $uni-bg-color-hover;
+	}
+
+	.uni-list-item__container {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex-direction: row;
+		padding: $list-item-pd;
+		padding-left: 0;
+		flex: 1;
+		position: relative;
+		justify-content: space-between;
+		align-items: center;
+		border-top-color: $uni-border-color;
+		border-top-style: solid;
+		border-top-width: 1px;
+	}
+
+	.uni-list-item--first {
+		border-top-width: 0px;
+	}
+
+	.uni-list-item__content {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex: 1;
+		overflow: hidden;
+		flex-direction: column;
+		color: #3b4144;
+
+	}
+
+	.uni-list-item__content-title {
+		font-size: $uni-font-size-base;
+		color: #3b4144;
+		overflow: hidden;
+	}
+
+	.uni-list-item__content-note {
+		margin-top: 6rpx;
+		color: $uni-text-color-grey;
+		font-size: $uni-font-size-sm;
+		overflow: hidden;
+	}
+
+	.uni-list-item__extra {
+		// width: 25%;
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex-direction: row;
+		justify-content: flex-end;
+		align-items: center;
+	}
+
+	.uni-list-item__icon {
+		margin-right: 18rpx;
+		flex-direction: row;
+		justify-content: center;
+		align-items: center;
+		display: flex;
+	}
+
+	.uni-list-item__icon-img {
+		height: $uni-img-size-base;
+		width: $uni-img-size-base;
+	}
+	// 修改switch默认大小
+	.itemSwitch{
+		transform: translateX(16rpx) scale(.84);
+	}
+	.uni-list-item__slot{
+		color: #909399;
+		font-size: 28rpx;
+	}
+</style>

+ 68 - 0
components/uni-list/uni-list.vue

@@ -0,0 +1,68 @@
+<template>
+	<!-- #ifndef APP-NVUE -->
+	<view class="uni-list">
+		<slot />
+	</view>
+	<!-- #endif -->
+	<!-- #ifdef APP-NVUE -->
+	<list class="uni-list" :enableBackToTop="enableBackToTop" loadmoreoffset="15" :scroll-y="scrollY" @loadmore="loadMore">
+		<slot />
+	</list>
+	<!-- #endif -->
+</template>
+
+<script>
+	export default {
+		name: 'UniList',
+		'mp-weixin': {
+			options: {
+				multipleSlots: false
+			}
+		},
+		props: {
+			enableBackToTop: {
+				type: [Boolean, String],
+				default: false
+			},
+			scrollY: {
+				type: [Boolean, String],
+				default: false
+			}
+		},
+		provide() {
+			return {
+				list: this
+			}
+		},
+		created() {
+			this.firstChildAppend = false
+		},
+		methods: {
+			loadMore(e) {
+				this.$emit("scrolltolower");
+			}
+		}
+	}
+</script>
+<style lang="scss" scoped>
+	.uni-list {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		background-color: $uni-bg-color;
+		position: relative;
+		flex-direction: column;
+		// border-bottom-color: $uni-border-color;
+		// border-bottom-style: solid;
+		// border-bottom-width: 1px;
+	}
+	/* #ifndef APP-NVUE */
+	.uni-list:before {
+		height: 0;
+	}
+	.uni-list:after {
+		height: 0;
+	}
+	/* #endif */
+
+</style>

+ 65 - 0
components/uni-list/uni-refresh.vue

@@ -0,0 +1,65 @@
+<template>
+    <!-- #ifdef APP-NVUE -->
+    <refresh :display="display" @refresh="onrefresh" @pullingdown="onpullingdown">
+        <slot />
+    </refresh>
+    <!-- #endif -->
+    <!-- #ifndef APP-NVUE -->
+    <view ref="uni-refresh" class="uni-refresh" v-show="isShow">
+        <slot />
+    </view>
+    <!-- #endif -->
+</template>
+
+<script>
+    export default {
+        name: 'UniRefresh',
+        props: {
+            display: {
+                type: [String],
+                default: "hide"
+            }
+        },
+        data() {
+            return {
+                pulling: false
+            }
+        },
+        computed: {
+            isShow() {
+                if (this.display === "show" || this.pulling === true) {
+                    return true;
+                }
+                return false;
+            }
+        },
+        created() {},
+        methods: {
+            onchange(value) {
+                this.pulling = value;
+            },
+            onrefresh(e) {
+                this.$emit("refresh", e);
+            },
+            onpullingdown(e) {
+                // #ifdef APP-NVUE
+                this.$emit("pullingdown", e);
+                // #endif
+                // #ifndef APP-NVUE
+                var detail = {
+                    viewHeight: 90,
+                    pullingDistance: e.height
+                }
+                this.$emit("pullingdown", detail);
+                // #endif
+            }
+        }
+    }
+</script>
+
+<style>
+    .uni-refresh {
+        height: 0;
+        overflow: hidden;
+    }
+</style>

+ 87 - 0
components/uni-list/uni-refresh.wxs

@@ -0,0 +1,87 @@
+var pullDown = {
+    threshold: 95,
+    maxHeight: 200,
+    callRefresh: 'onrefresh',
+    callPullingDown: 'onpullingdown',
+    refreshSelector: '.uni-refresh'
+};
+
+function ready(newValue, oldValue, ownerInstance, instance) {
+    var state = instance.getState()
+    state.canPullDown = newValue;
+    console.log(newValue);
+}
+
+function touchStart(e, instance) {
+    var state = instance.getState();
+    state.refreshInstance = instance.selectComponent(pullDown.refreshSelector);
+    state.canPullDown = (state.refreshInstance != null && state.refreshInstance != undefined);
+    if (!state.canPullDown) {
+        return
+    }
+
+    console.log("touchStart");
+
+    state.height = 0;
+    state.touchStartY = e.touches[0].pageY || e.changedTouches[0].pageY;
+    state.refreshInstance.setStyle({
+        'height': 0
+    });
+    state.refreshInstance.callMethod("onchange", true);
+}
+
+function touchMove(e, ownerInstance) {
+    var instance = e.instance;
+    var state = instance.getState();
+    if (!state.canPullDown) {
+        return
+    }
+
+    var oldHeight = state.height;
+    var endY = e.touches[0].pageY || e.changedTouches[0].pageY;
+    var height = endY - state.touchStartY;
+    if (height > pullDown.maxHeight) {
+        return;
+    }
+
+    var refreshInstance = state.refreshInstance;
+    refreshInstance.setStyle({
+        'height': height + 'px'
+    });
+
+    height = height < pullDown.maxHeight ? height : pullDown.maxHeight;
+    state.height = height;
+    refreshInstance.callMethod(pullDown.callPullingDown, {
+        height: height
+    });
+}
+
+function touchEnd(e, ownerInstance) {
+    var state = e.instance.getState();
+    if (!state.canPullDown) {
+        return
+    }
+
+    state.refreshInstance.callMethod("onchange", false);
+
+    var refreshInstance = state.refreshInstance;
+    if (state.height > pullDown.threshold) {
+        refreshInstance.callMethod(pullDown.callRefresh);
+        return;
+    }
+
+    refreshInstance.setStyle({
+        'height': 0
+    });
+}
+
+function propObserver(newValue, oldValue, instance) {
+    pullDown = newValue;
+}
+
+module.exports = {
+    touchmove: touchMove,
+    touchstart: touchStart,
+    touchend: touchEnd,
+    propObserver: propObserver
+}

+ 194 - 0
components/uni-load-more/uni-load-more.vue

@@ -0,0 +1,194 @@
+<template>
+	<view class="uni-load-more">
+		<view class="uni-load-more__img" v-show="status === 'loading' && showIcon">
+			<view class="load1 load">
+				<view class="item" :style="{background:color}"></view>
+				<view class="item" :style="{background:color}"></view>
+				<view class="item" :style="{background:color}"></view>
+				<view class="item" :style="{background:color}"></view>
+			</view>
+			<view class="load2 load">
+				<view class="item" :style="{background:color}"></view>
+				<view class="item"  :style="{background:color}"></view>
+				<view class="item" :style="{background:color}"></view>
+				<view class="item" :style="{background:color}"></view>
+			</view>
+			<view class="load3 load">
+				<view class="item" :style="{background:color}"></view>
+				<view class="item" :style="{background:color}"></view>
+				<view class="item" :style="{background:color}"></view>
+				<view class="item" :style="{background:color}"></view>
+			</view>
+		</view>
+		<text class="uni-load-more__text" :style="{color:color}">{{status === 'more' ? contentText.contentdown : (status === 'loading' ? contentText.contentrefresh : contentText.contentnomore)}}</text>
+	</view>
+</template>
+
+<script>
+	export default {
+		name: "uni-load-more",
+		props: {
+			status: {
+				//上拉的状态:more-loading前;loading-loading中;noMore-没有更多了
+				type: String,
+				default: 'more'
+			},
+			showIcon: {
+				type: Boolean,
+				default: true
+			},
+			color: {
+				type: String,
+				default: "#777777"
+			},
+			contentText: {
+				type: Object,
+				default () {
+					return {
+						contentdown: "上拉显示更多",
+						contentrefresh: "正在加载...",
+						contentnomore: "没有更多数据了"
+					};
+				}
+			}
+		},
+		data() {
+			return {}
+		}
+	}
+</script>
+
+<style>
+	@charset "UTF-8";
+
+	.uni-load-more {
+		display: flex;
+		flex-direction: row;
+		height: 80upx;
+		align-items: center;
+		justify-content: center
+	}
+
+	.uni-load-more__text {
+		font-size: 28upx;
+		color: #999
+	}
+
+	.uni-load-more__img {
+		height: 24px;
+		width: 24px;
+		margin-right: 10px
+	}
+
+	.uni-load-more__img>.load {
+		position: absolute
+	}
+
+	.uni-load-more__img>.load .item {
+		width: 6px;
+		height: 2px;
+		border-top-left-radius: 1px;
+		border-bottom-left-radius: 1px;
+		background: #999;
+		position: absolute;
+		opacity: .2;
+		transform-origin: 50%;
+		animation: load 1.56s ease infinite
+	}
+
+	.uni-load-more__img>.load .item:nth-child(1) {
+		transform: rotate(90deg);
+		top: 2px;
+		left: 9px
+	}
+
+	.uni-load-more__img>.load .item:nth-child(2) {
+		transform: rotate(180deg);
+		top: 11px;
+		right: 0
+	}
+
+	.uni-load-more__img>.load .item:nth-child(3) {
+		transform: rotate(270deg);
+		bottom: 2px;
+		left: 9px
+	}
+
+	.uni-load-more__img>.load .item:nth-child(4) {
+		top: 11px;
+		left: 0
+	}
+
+	.load1,
+	.load2,
+	.load3 {
+		height: 24px;
+		width: 24px
+	}
+
+	.load2 {
+		transform: rotate(30deg)
+	}
+
+	.load3 {
+		transform: rotate(60deg)
+	}
+
+	.load1 .item:nth-child(1) {
+		animation-delay: 0s
+	}
+
+	.load2 .item:nth-child(1) {
+		animation-delay: .13s
+	}
+
+	.load3 .item:nth-child(1) {
+		animation-delay: .26s
+	}
+
+	.load1 .item:nth-child(2) {
+		animation-delay: .39s
+	}
+
+	.load2 .item:nth-child(2) {
+		animation-delay: .52s
+	}
+
+	.load3 .item:nth-child(2) {
+		animation-delay: .65s
+	}
+
+	.load1 .item:nth-child(3) {
+		animation-delay: .78s
+	}
+
+	.load2 .item:nth-child(3) {
+		animation-delay: .91s
+	}
+
+	.load3 .item:nth-child(3) {
+		animation-delay: 1.04s
+	}
+
+	.load1 .item:nth-child(4) {
+		animation-delay: 1.17s
+	}
+
+	.load2 .item:nth-child(4) {
+		animation-delay: 1.3s
+	}
+
+	.load3 .item:nth-child(4) {
+		animation-delay: 1.43s
+	}
+
+	@-webkit-keyframes load {
+		0% {
+			opacity: 1
+		}
+
+		100% {
+			opacity: .2
+		}
+	}
+</style>

+ 396 - 0
components/uni-notice-bar/uni-notice-bar.vue

@@ -0,0 +1,396 @@
+<template>
+	<view v-if="show" class="uni-noticebar" :style="{ backgroundColor: backgroundColor }" @click="onClick">
+		<!-- #ifdef MP-ALIPAY -->
+		<view v-if="showClose === true || showClose === 'true'" class="uni-noticebar-close" @click="close">
+			<uni-icons type="closefill" :color="color" size="12" />
+		</view>
+		<view v-if="showIcon === true || showIcon === 'true'" class="uni-noticebar-icon">
+			<uni-icons type="sound" :color="color" size="14" />
+		</view>
+		<!-- #endif -->
+		<!-- #ifndef MP-ALIPAY -->
+		<uni-icons v-if="showClose === true || showClose === 'true'" class="uni-noticebar-close" type="closefill" :color="color"
+		 size="12" @click="close" />
+		<uni-icons v-if="showIcon === true || showIcon === 'true'" class="uni-noticebar-icon" type="sound" :color="color"
+		 size="14" />
+		<!-- #endif -->
+		<view ref="textBox" class="uni-noticebar__content-wrapper" :class="{'uni-noticebar__content-wrapper--scrollable':scrollable, 'uni-noticebar__content-wrapper--single':!scrollable && (single || moreText)}">
+			<view :id="elIdBox" class="uni-noticebar__content" :class="{'uni-noticebar__content--scrollable':scrollable, 'uni-noticebar__content--single':!scrollable && (single || moreText)}">
+				<text :id="elId" ref="animationEle" class="uni-noticebar__content-text" :class="{'uni-noticebar__content-text--scrollable':scrollable,'uni-noticebar__content-text--single':!scrollable && (single || moreText)}"
+				 :style="{color:color, width:wrapWidth+'px', 'animationDuration': animationDuration, '-webkit-animationDuration': animationDuration ,animationPlayState: webviewHide?'paused':animationPlayState,'-webkit-animationPlayState':webviewHide?'paused':animationPlayState, animationDelay: animationDelay, '-webkit-animationDelay':animationDelay}">{{text}}</text>
+			</view>
+		</view>
+		<view v-if="showGetMore === true || showGetMore === 'true'" class="uni-noticebar__more" @click="clickMore">
+			<text v-if="moreText" :style="{ color: moreColor }" class="uni-noticebar__more-text">{{ moreText }}</text>
+			<uni-icons type="arrowright" :color="moreColor" size="14" />
+		</view>
+	</view>
+</template>
+
+<script>
+	import uniIcons from '../uni-icons/uni-icons.vue'
+	// #ifdef APP-NVUE
+	const dom = weex.requireModule('dom');
+	const animation = weex.requireModule('animation');
+	// #endif
+
+	/**
+	 * NoticeBar 自定义导航栏
+	 * @description 通告栏组件
+	 * @tutorial https://ext.dcloud.net.cn/plugin?id=30
+	 * @property {Number} speed 文字滚动的速度,默认100px/秒
+	 * @property {String} text 显示文字
+	 * @property {String} backgroundColor 背景颜色
+	 * @property {String} color 文字颜色
+	 * @property {String} moreColor 查看更多文字的颜色
+	 * @property {String} moreText 设置“查看更多”的文本
+	 * @property {Boolean} single = [true|false] 是否单行
+	 * @property {Boolean} scrollable = [true|false] 是否滚动,为true时,NoticeBar为单行
+	 * @property {Boolean} showIcon = [true|false] 是否显示左侧喇叭图标
+	 * @property {Boolean} showClose = [true|false] 是否显示左侧关闭按钮
+	 * @property {Boolean} showGetMore = [true|false] 是否显示右侧查看更多图标,为true时,NoticeBar为单行
+	 * @event {Function} click 点击 NoticeBar 触发事件
+	 * @event {Function} close 关闭 NoticeBar 触发事件
+	 * @event {Function} getmore 点击”查看更多“时触发事件
+	 */
+
+	export default {
+		name: 'UniNoticeBar',
+		components: {
+			uniIcons
+		},
+		props: {
+			text: {
+				type: String,
+				default: ''
+			},
+			moreText: {
+				type: String,
+				default: ''
+			},
+			backgroundColor: {
+				type: String,
+				default: '#fffbe8'
+			},
+			speed: {
+				// 默认1s滚动100px
+				type: Number,
+				default: 100
+			},
+			color: {
+				type: String,
+				default: '#de8c17'
+			},
+			moreColor: {
+				type: String,
+				default: '#999999'
+			},
+			single: {
+				// 是否单行
+				type: [Boolean, String],
+				default: false
+			},
+			scrollable: {
+				// 是否滚动,添加后控制单行效果取消
+				type: [Boolean, String],
+				default: false
+			},
+			showIcon: {
+				// 是否显示左侧icon
+				type: [Boolean, String],
+				default: false
+			},
+			showGetMore: {
+				// 是否显示右侧查看更多
+				type: [Boolean, String],
+				default: false
+			},
+			showClose: {
+				// 是否显示左侧关闭按钮
+				type: [Boolean, String],
+				default: false
+			}
+		},
+		data() {
+			const elId = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}`
+			const elIdBox = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}`
+			return {
+				textWidth: 0,
+				boxWidth: 0,
+				wrapWidth: '',
+				webviewHide: false,
+				// #ifdef APP-NVUE
+				stopAnimation: false,
+				// #endif
+				elId: elId,
+				elIdBox: elIdBox,
+				show: true,
+				animationDuration: 'none',
+				animationPlayState: 'paused',
+				animationDelay: '0s'
+			}
+		},
+		mounted() {
+			// #ifdef APP-PLUS
+			var pages = getCurrentPages();
+			var page = pages[pages.length - 1];
+			var currentWebview = page.$getAppWebview();
+			currentWebview.addEventListener('hide',()=>{
+				this.webviewHide = true
+			})
+			currentWebview.addEventListener('show',()=>{
+				this.webviewHide = false
+			})
+			// #endif
+			this.$nextTick(() => {
+				this.initSize()
+			})
+		},
+		// #ifdef APP-NVUE
+		beforeDestroy() {
+			this.stopAnimation = true
+		},
+		// #endif
+		methods: {
+			initSize() {
+				if (this.scrollable) {
+					// #ifndef APP-NVUE
+					let query = [],
+						boxWidth = 0,
+						textWidth = 0;
+					let textQuery = new Promise((resolve, reject) => {
+						uni.createSelectorQuery()
+							// #ifndef MP-ALIPAY
+							.in(this)
+							// #endif
+							.select(`#${this.elId}`)
+							.boundingClientRect()
+							.exec(ret => {
+								this.textWidth = ret[0].width
+								resolve()
+							})
+					})
+					let boxQuery = new Promise((resolve, reject) => {
+						uni.createSelectorQuery()
+							// #ifndef MP-ALIPAY
+							.in(this)
+							// #endif
+							.select(`#${this.elIdBox}`)
+							.boundingClientRect()
+							.exec(ret => {
+								this.boxWidth = ret[0].width
+								resolve()
+							})
+					})
+					query.push(textQuery)
+					query.push(boxQuery)
+					Promise.all(query).then(() => {
+						this.animationDuration = `${this.textWidth / this.speed}s`
+						this.animationDelay = `-${this.boxWidth / this.speed}s`
+						setTimeout(() => {
+							this.animationPlayState = 'running'
+						}, 1000)
+					})
+					// #endif
+					// #ifdef APP-NVUE
+					dom.getComponentRect(this.$refs['animationEle'], (res) => {
+						let winWidth = uni.getSystemInfoSync().windowWidth
+						this.textWidth = res.size.width
+						animation.transition(this.$refs['animationEle'], {
+							styles: {
+								transform: `translateX(-${winWidth}px)`
+							},
+							duration: 0,
+							timingFunction: 'linear',
+							delay: 0
+						}, () => {
+							if (!this.stopAnimation) {
+								animation.transition(this.$refs['animationEle'], {
+									styles: {
+										transform: `translateX(-${this.textWidth}px)`
+									},
+									timingFunction: 'linear',
+									duration: (this.textWidth - winWidth) / this.speed * 1000,
+									delay: 1000
+								}, () => {
+									if (!this.stopAnimation) {
+										this.loopAnimation()
+									}
+								});
+							}
+						});
+					})
+					// #endif
+				}
+				// #ifdef APP-NVUE
+				if (!this.scrollable && (this.single || this.moreText)) {
+					dom.getComponentRect(this.$refs['textBox'], (res) => {
+						this.wrapWidth = res.size.width
+					})
+				}
+				// #endif
+			},
+			loopAnimation() {
+				// #ifdef APP-NVUE
+				animation.transition(this.$refs['animationEle'], {
+					styles: {
+						transform: `translateX(0px)`
+					},
+					duration: 0
+				}, () => {
+					if (!this.stopAnimation) {
+						animation.transition(this.$refs['animationEle'], {
+							styles: {
+								transform: `translateX(-${this.textWidth}px)`
+							},
+							duration: this.textWidth / this.speed * 1000,
+							timingFunction: 'linear',
+							delay: 0
+						}, () => {
+							if (!this.stopAnimation) {
+								this.loopAnimation()
+							}
+						});
+					}
+				});
+				// #endif
+			},
+			clickMore() {
+				this.$emit('getmore')
+			},
+			close() {
+				this.show = false;
+				this.$emit('close')
+			},
+			onClick() {
+				this.$emit('click')
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	@import '@/uni.scss';
+
+	.uni-noticebar {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		width: 100%;
+		box-sizing: border-box;
+		/* #endif */
+		flex-direction: row;
+		align-items: center;
+		padding: 6px 12px;
+		margin-bottom: 10px;
+	}
+
+	.uni-noticebar-close {
+		margin-right: 5px;
+	}
+
+	.uni-noticebar-icon {
+		margin-right: 5px;
+	}
+
+	.uni-noticebar__content-wrapper {
+		flex: 1;
+		flex-direction: column;
+		overflow: hidden;
+	}
+
+	.uni-noticebar__content-wrapper--single {
+		/* #ifndef APP-NVUE */
+		line-height: 18px;
+		/* #endif */
+	}
+
+	.uni-noticebar__content-wrapper--single,
+	.uni-noticebar__content-wrapper--scrollable {
+		flex-direction: row;
+	}
+
+	/* #ifndef APP-NVUE */
+	.uni-noticebar__content-wrapper--scrollable {
+		position: relative;
+		height: 18px;
+	}
+	/* #endif */
+
+	.uni-noticebar__content--scrollable {
+		/* #ifdef APP-NVUE */
+		flex: 0;
+		/* #endif */
+		/* #ifndef APP-NVUE */
+		flex: 1;
+		display: block;
+		overflow: hidden;
+		/* #endif */
+	}
+
+	.uni-noticebar__content--single {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		flex: none;
+		width: 100%;
+		justify-content: center;
+		/* #endif */
+	}
+
+	.uni-noticebar__content-text {
+		font-size: 14px;
+		line-height: 18px;
+		/* #ifndef APP-NVUE */
+		word-break: break-all;
+		/* #endif */
+	}
+
+	.uni-noticebar__content-text--single {
+		/* #ifdef APP-NVUE */
+		lines: 1;
+		/* #endif */
+		/* #ifndef APP-NVUE */
+		display: block;
+		width: 100%;
+		white-space: nowrap;
+		/* #endif */
+		overflow: hidden;
+		text-overflow: ellipsis;
+	}
+
+	.uni-noticebar__content-text--scrollable {
+		/* #ifdef APP-NVUE */
+		lines: 1;
+		padding-left: 750rpx;
+		/* #endif */
+		/* #ifndef APP-NVUE */
+		position: absolute;
+		display: block;
+		height: 18px;
+		line-height: 18px;
+		white-space: nowrap;
+		padding-left: 100%;
+		animation: notice 10s 0s linear infinite both;
+		animation-play-state: paused;
+		/* #endif */
+	}
+
+	.uni-noticebar__more {
+		/* #ifndef APP-NVUE */
+		display: inline-flex;
+		/* #endif */
+		flex-direction: row;
+		flex-wrap: nowrap;
+		align-items: center;
+		padding-left: 5px;
+	}
+
+	.uni-noticebar__more-text {
+		font-size: 14px;
+	}
+
+	@keyframes notice {
+		100% {
+			transform: translate3d(-100%, 0, 0);
+		}
+	}
+</style>

+ 198 - 0
components/uni-number-box.vue

@@ -0,0 +1,198 @@
+<template>
+	<view class="uni-numbox">
+		<view class="uni-numbox-minus" 
+			@click="_calcValue('subtract')"
+		>
+			<text class="iconfont iconmove" :class="minDisabled?'uni-numbox-disabled': ''" ></text>
+		</view>
+		<input 
+			class="uni-numbox-value" 
+			type="number"  
+			:disabled="disabled"
+			:value="inputValue" 
+			@blur="_onBlur"
+		>
+		<view 
+			class="uni-numbox-plus" 
+			@click="_calcValue('add')"
+		>
+			<text class="iconfont iconadd" :class="maxDisabled?'uni-numbox-disabled': ''" ></text>
+		</view>
+	</view>
+</template>
+<script>
+	export default {
+		name: 'uni-number-box',
+		props: {
+			isMax: {
+				type: Boolean,
+				default: false
+			},
+			isMin: {
+				type: Boolean,
+				default: false
+			},
+			index: {
+				type: Number,
+				default: 0
+			},
+			value: {
+				type: Number,
+				default: 0
+			},
+			min: {
+				type: Number,
+				default: -Infinity
+			},
+			max: {
+				type: Number,
+				default: Infinity
+			},
+			step: {
+				type: Number,
+				default: 1
+			},
+			disabled: {
+				type: Boolean,
+				default: false
+			}
+		},
+		data() {
+			return {
+				inputValue: this.value,
+				minDisabled: false,
+				maxDisabled: false
+			}
+		},
+		created(){
+			this.maxDisabled = this.isMax;
+			this.minDisabled = this.isMin;
+		},
+		computed: {
+
+		},
+		watch: {
+			inputValue(number) {
+				const data = {
+					number: number,
+					index: this.index
+				}
+				this.$emit('eventChange', data);
+			}
+		},
+		methods: {
+			_calcValue(type) {
+				const scale = this._getDecimalScale();
+				let value = this.inputValue * scale;
+				let newValue = 0;
+				let step = this.step * scale;
+				
+				if(type === 'subtract'){
+					newValue = value - step;
+					if (newValue <= this.min){
+						this.minDisabled = true;
+					}
+					if(newValue < this.min){
+						newValue = this.min
+					}
+					if(newValue < this.max && this.maxDisabled === true){
+						this.maxDisabled = false;
+					}
+				}else if(type === 'add'){
+					newValue = value + step;
+					if (newValue >= this.max){
+						this.maxDisabled = true;
+					}
+					if(newValue > this.max){
+						newValue = this.max
+					}
+					if(newValue > this.min && this.minDisabled === true){
+						this.minDisabled = false;
+					}
+				}
+				if(newValue === value){
+					return;
+				}
+				this.inputValue = newValue / scale;
+			},
+			_getDecimalScale() {
+				let scale = 1;
+				// 浮点型
+				if (~~this.step !== this.step) {
+					scale = Math.pow(10, (this.step + '').split('.')[1].length);
+				}
+				return scale;
+			},
+			_onBlur(event) {
+				let value = event.detail.value;
+				if (!value) {
+					this.inputValue = 0;
+					return
+				}
+				value = +value;
+				if (value > this.max) {
+					value = this.max;
+				} else if (value < this.min) {
+					value = this.min
+				}
+
+				this.inputValue = value
+			}
+		}
+	}
+</script>
+<style>
+	.uni-numbox {
+		/* position:absolute; */
+		/* left: 30rpx; */
+		/* bottom: 0; */
+		display: flex;
+		justify-content: flex-start;
+		align-items: center;
+		width:230rpx;
+		height: 70rpx;
+		background:#f5f5f5;
+	}
+
+	.uni-numbox-minus,
+	.uni-numbox-plus {
+		margin: 0;
+		background-color: #f5f5f5;
+		width: 70rpx;
+		height: 100%;
+		line-height: 70rpx;
+		text-align: center;
+		position: relative;
+	}
+	.uni-numbox-minus .yticon,
+	.uni-numbox-plus .yticon{
+		font-size: 36rpx;
+		color: #555;
+	}
+
+	.uni-numbox-minus {
+		border-right: none;
+		border-top-left-radius: 6rpx;
+		border-bottom-left-radius: 6rpx;
+	}
+
+	.uni-numbox-plus {
+		border-left: none;
+		border-top-right-radius: 6rpx;
+		border-bottom-right-radius: 6rpx;
+	}
+
+	.uni-numbox-value {
+		position: relative;
+		background-color: #f5f5f5;
+		width: 90rpx;
+		height: 50rpx;
+		text-align: center;
+		padding: 0;
+		font-size: 30rpx;
+	}
+
+	.uni-numbox-disabled.iconfont {
+		color: #d6d6d6;
+	}
+</style>

+ 243 - 0
components/uni-popup/uni-popup-dialog.vue

@@ -0,0 +1,243 @@
+<template>
+	<view class="uni-popup-dialog">
+		<view class="uni-dialog-title">
+			<text class="uni-dialog-title-text" :class="['uni-popup__'+dialogType]">{{title}}</text>
+		</view>
+		<view class="uni-dialog-content">
+			<text class="uni-dialog-content-text" v-if="mode === 'base'">{{content}}</text>
+			<input v-else class="uni-dialog-input" v-model="val" type="text" :placeholder="placeholder" :focus="focus" >
+		</view>
+		<view class="uni-dialog-button-group">
+			<view class="uni-dialog-button" @click="close">
+				<text class="uni-dialog-button-text">取消</text>
+			</view>
+			<view class="uni-dialog-button uni-border-left" @click="onOk">
+				<text class="uni-dialog-button-text uni-button-color">确定</text>
+			</view>
+		</view>
+
+	</view>
+</template>
+
+<script>
+	/**
+	 * PopUp 弹出层-对话框样式
+	 * @description 弹出层-对话框样式
+	 * @tutorial https://ext.dcloud.net.cn/plugin?id=329
+	 * @property {String} value input 模式下的默认值
+	 * @property {String} placeholder input 模式下输入提示
+	 * @property {String} type = [success|warning|info|error] 主题样式
+	 *  @value success 成功
+	 * 	@value warning 提示
+	 * 	@value info 消息
+	 * 	@value error 错误
+	 * @property {String} mode = [base|input] 模式、
+	 * 	@value base 基础对话框
+	 * 	@value input 可输入对话框
+	 * @property {String} content 对话框内容
+	 * @property {Boolean} beforeClose 是否拦截取消事件
+	 * @event {Function} confirm 点击确认按钮触发
+	 * @event {Function} close 点击取消按钮触发
+	 */
+
+	export default {
+		name: "uniPopupDialog",
+		props: {
+			value: {
+				type: [String, Number],
+				default: ''
+			},
+			placeholder: {
+				type: [String, Number],
+				default: '请输入内容'
+			},
+			/**
+			 * 对话框主题 success/warning/info/error	  默认 success
+			 */
+			type: {
+				type: String,
+				default: 'error'
+			},
+			/**
+			 * 对话框模式 base/input
+			 */
+			mode: {
+				type: String,
+				default: 'base'
+			},
+			/**
+			 * 对话框标题
+			 */
+			title: {
+				type: String,
+				default: '提示'
+			},
+			/**
+			 * 对话框内容
+			 */
+			content: {
+				type: String,
+				default: ''
+			},
+			/**
+			 * 拦截取消事件 ,如果拦截取消事件,必须监听close事件,执行 done()
+			 */
+			beforeClose: {
+				type: Boolean,
+				default: false
+			}
+		},
+		data() {
+			return {
+				dialogType: 'error',
+				focus: false,
+				val: ""
+			}
+		},
+		inject: ['popup'],
+		watch: {
+			type(val) {
+				this.dialogType = val
+			},
+			mode(val) {
+				if (val === 'input') {
+					this.dialogType = 'info'
+				}
+			},
+			value(val) {
+				this.val = val
+			}
+		},
+		created() {
+			// 对话框遮罩不可点击
+			this.popup.mkclick = false
+			if (this.mode === 'input') {
+				this.dialogType = 'info'
+				this.val = this.value
+			} else {
+				this.dialogType = this.type
+			}
+		},
+		mounted() {
+			this.focus = true
+		},
+		methods: {
+			/**
+			 * 点击确认按钮
+			 */
+			onOk() {
+				this.$emit('confirm', () => {
+					this.popup.close()
+					if (this.mode === 'input') this.val = this.value
+				}, this.mode === 'input' ? this.val : '')
+			},
+			/**
+			 * 点击取消按钮
+			 */
+			close() {
+				if (this.beforeClose) {
+					this.$emit('close', () => {
+						this.popup.close()
+					})
+					return
+				}
+				this.popup.close()
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.uni-popup-dialog {
+		width: 300px;
+		border-radius: 15px;
+		background-color: #fff;
+	}
+
+	.uni-dialog-title {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex-direction: row;
+		justify-content: center;
+		padding-top: 15px;
+		padding-bottom: 5px;
+	}
+
+	.uni-dialog-title-text {
+		font-size: 16px;
+		font-weight: 500;
+	}
+
+	.uni-dialog-content {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex-direction: row;
+		justify-content: center;
+		align-items: center;
+		padding: 5px 15px 15px 15px;
+	}
+
+	.uni-dialog-content-text {
+		font-size: 14px;
+		color: #6e6e6e;
+	}
+
+	.uni-dialog-button-group {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex-direction: row;
+		border-top-color: #f5f5f5;
+		border-top-style: solid;
+		border-top-width: 1px;
+	}
+
+	.uni-dialog-button {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+
+		flex: 1;
+		flex-direction: row;
+		justify-content: center;
+		align-items: center;
+		height: 45px;
+	}
+
+	.uni-border-left {
+		border-left-color: #f0f0f0;
+		border-left-style: solid;
+		border-left-width: 1px;
+	}
+
+	.uni-dialog-button-text {
+		font-size: 14px;
+	}
+
+	.uni-button-color {
+		color: $uni-color-primary;
+	}
+
+	.uni-dialog-input {
+		flex: 1;
+		font-size: 14px;
+	}
+
+	.uni-popup__success {
+		color: $uni-color-success;
+	}
+
+	.uni-popup__warn {
+		color: $uni-color-warning;
+	}
+
+	.uni-popup__error {
+		color: $uni-color-error;
+	}
+
+	.uni-popup__info {
+		color: #909399;
+	}
+</style>

+ 116 - 0
components/uni-popup/uni-popup-message.vue

@@ -0,0 +1,116 @@
+<template>
+	<view class="uni-popup-message" :class="'uni-popup__'+[type]">
+		<text class="uni-popup-message-text" :class="'uni-popup__'+[type]+'-text'">{{message}}</text>
+	</view>
+</template>
+
+<script>
+	
+	/**
+	 * PopUp 弹出层-消息提示
+	 * @description 弹出层-消息提示
+	 * @tutorial https://ext.dcloud.net.cn/plugin?id=329
+	 * @property {String} type = [success|warning|info|error] 主题样式
+	 *  @value success 成功
+	 * 	@value warning 提示
+	 * 	@value info 消息
+	 * 	@value error 错误
+	 * @property {String} message 消息提示文字
+	 * @property {String} duration 显示时间,设置为 0 则不会自动关闭
+	 */
+	
+	export default {
+		name: 'UniPopupMessage',
+		props: {
+			/**
+			 * 主题 success/warning/info/error	  默认 success
+			 */
+			type: {
+				type: String,
+				default: 'success'
+			},
+			/**
+			 * 消息文字
+			 */
+			message: {
+				type: String,
+				default: ''
+			},
+			/**
+			 * 显示时间,设置为 0 则不会自动关闭
+			 */
+			duration: {
+				type: Number,
+				default: 3000
+			}
+		},
+		inject: ['popup'],
+		data() {
+			return {}
+		},
+		created() {
+			this.popup.childrenMsg = this
+		},
+		methods: {
+			open() {
+				if (this.duration === 0) return
+				clearTimeout(this.popuptimer)
+				this.popuptimer = setTimeout(() => {
+					this.popup.close()
+				}, this.duration)
+			},
+			close() {
+				clearTimeout(this.popuptimer)
+			}
+		}
+	}
+</script>
+<style lang="scss" scoped>
+	.uni-popup-message {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex-direction: row;
+		background-color: #e1f3d8;
+		padding: 10px 15px;
+		border-color: #eee;
+		border-style: solid;
+		border-width: 1px;
+	}
+	.uni-popup-message-text {
+		font-size: 14px;
+		padding: 0;
+	}
+
+	.uni-popup__success {
+		background-color: #e1f3d8;
+	}
+
+	.uni-popup__success-text {
+		color: #67C23A;
+	}
+
+	.uni-popup__warn {
+		background-color: #faecd8;
+	}
+
+	.uni-popup__warn-text {
+		color: #E6A23C;
+	}
+
+	.uni-popup__error {
+		background-color: #fde2e2;
+	}
+
+	.uni-popup__error-text {
+		color: #F56C6C;
+	}
+
+	.uni-popup__info {
+		background-color: #F2F6FC;
+	}
+
+	.uni-popup__info-text {
+		color: #909399;
+	}
+</style>

+ 263 - 0
components/uni-popup/uni-popup-ori.vue

@@ -0,0 +1,263 @@
+<template>
+	<view v-if="showPopup" class="uni-popup" @touchmove.stop.prevent="clear">
+		<uni-transition :mode-class="['fade']" :styles="maskClass" :duration="duration" :show="showTrans" @click="onTap" />
+		<uni-transition :mode-class="ani" :styles="transClass" :duration="duration" :show="showTrans" @click="onTap">
+			<view class="uni-popup__wrapper-box" @click.stop="clear">
+				<slot />
+			</view>
+		</uni-transition>
+	</view>
+</template>
+
+<script>
+	import uniTransition from '../uni-transition/uni-transition.vue'
+
+	/**
+	 * PopUp 弹出层
+	 * @description 弹出层组件,为了解决遮罩弹层的问题
+	 * @tutorial https://ext.dcloud.net.cn/plugin?id=329
+	 * @property {String} type = [top|center|bottom] 弹出方式
+	 * 	@value top 顶部弹出
+	 * 	@value center 中间弹出
+	 * 	@value bottom 底部弹出
+	 * @property {Boolean} animation = [ture|false] 是否开启动画
+	 * @property {Boolean} maskClick = [ture|false] 蒙版点击是否关闭弹窗
+	 * @event {Function} change 打开关闭弹窗触发,e={show: false}
+	 */
+
+	export default {
+		name: 'UniPopup',
+		components: {
+			uniTransition
+		},
+		props: {
+			// 开启动画
+			animation: {
+				type: Boolean,
+				default: true
+			},
+			// 弹出层类型,可选值,top: 顶部弹出层;bottom:底部弹出层;center:全屏弹出层
+			type: {
+				type: String,
+				default: 'center'
+			},
+			// maskClick
+			maskClick: {
+				type: Boolean,
+				default: true
+			}
+		},
+		data() {
+			return {
+				duration: 300,
+				ani: [],
+				showPopup: false,
+				showTrans: false,
+				maskClass: {
+					'position': 'fixed',
+					'bottom': 0,
+					'top': 0,
+					'left': 0,
+					'right': 0,
+					'backgroundColor': 'rgba(0, 0, 0, 0.4)'
+				},
+				transClass: {
+					'position': 'fixed',
+					'left': 0,
+					'right': 0,
+				}
+			}
+		},
+		watch: {
+			type: {
+				handler: function(newVal) {
+					switch (this.type) {
+						case 'top':
+							this.ani = ['slide-top']
+							this.transClass = {
+								'position': 'fixed',
+								'left': 0,
+								'right': 0,
+							}
+							break
+						case 'bottom':
+							this.ani = ['slide-bottom']
+							this.transClass = {
+								'position': 'fixed',
+								'left': 0,
+								'right': 0,
+								'bottom': 0
+							}
+							break
+						case 'center':
+							this.ani = ['zoom-out', 'fade']
+							this.transClass = {
+								'position': 'fixed',
+								/* #ifndef APP-NVUE */
+								'display': 'flex',
+								'flexDirection': 'column',
+								/* #endif */
+								'bottom': 0,
+								'left': 0,
+								'right': 0,
+								'top': 0,
+								'justifyContent': 'center',
+								'alignItems': 'center'
+							}
+
+							break
+					}
+				},
+				immediate: true
+			}
+		},
+		created() {
+			if (this.animation) {
+				this.duration = 300
+			} else {
+				this.duration = 0
+			}
+		},
+		methods: {
+			clear(e) {
+				// TODO nvue 取消冒泡
+				e.stopPropagation()
+			},
+			open() {
+				this.showPopup = true
+				this.$nextTick(() => {
+					clearTimeout(this.timer)
+					this.timer = setTimeout(() => {
+						this.showTrans = true
+					}, 50);
+				})
+				this.$emit('change', {
+					show: true
+				})
+			},
+			close(type) {
+				this.showTrans = false
+				this.$nextTick(() => {
+					clearTimeout(this.timer)
+					this.timer = setTimeout(() => {
+						this.$emit('change', {
+							show: false
+						})
+						this.showPopup = false
+					}, 300)
+				})
+			},
+			onTap() {
+				if (!this.maskClick) return
+				this.close()
+			}
+		}
+	}
+</script>
+<style lang="scss" scoped>
+	.uni-popup {
+		position: fixed;
+		/* #ifdef H5 */
+		top: var(--window-top);
+		/* #endif */
+		/* #ifndef H5 */
+		top: 0;
+		/* #endif */
+		bottom: 0;
+		left: 0;
+		right: 0;
+		/* #ifndef APP-NVUE */
+		z-index: 99;
+		/* #endif */
+	}
+
+	.uni-popup__mask {
+		position: absolute;
+		top: 0;
+		bottom: 0;
+		left: 0;
+		right: 0;
+		background-color: $uni-bg-color-mask;
+		opacity: 0;
+	}
+
+	.mask-ani {
+		transition-property: opacity;
+		transition-duration: 0.2s;
+	}
+
+	.uni-top-mask {
+		opacity: 1;
+	}
+
+	.uni-bottom-mask {
+		opacity: 1;
+	}
+
+	.uni-center-mask {
+		opacity: 1;
+	}
+
+	.uni-popup__wrapper {
+		/* #ifndef APP-NVUE */
+		display: block;
+		/* #endif */
+		position: absolute;
+	}
+
+	.top {
+		top: 0;
+		left: 0;
+		right: 0;
+		transform: translateY(-500px);
+	}
+
+	.bottom {
+		bottom: 0;
+		left: 0;
+		right: 0;
+		transform: translateY(500px);
+	}
+
+	.center {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		flex-direction: column;
+		/* #endif */
+		bottom: 0;
+		left: 0;
+		right: 0;
+		top: 0;
+		justify-content: center;
+		align-items: center;
+		transform: scale(1.2);
+		opacity: 0;
+	}
+
+	.uni-popup__wrapper-box {
+		/* #ifndef APP-NVUE */
+		display: block;
+		/* #endif */
+		position: relative;
+	}
+
+	.content-ani {
+		// transition: transform 0.3s;
+		transition-property: transform, opacity;
+		transition-duration: 0.2s;
+	}
+
+
+	.uni-top-content {
+		transform: translateY(0);
+	}
+
+	.uni-bottom-content {
+		transform: translateY(0);
+	}
+
+	.uni-center-content {
+		transform: scale(1);
+		opacity: 1;
+	}
+</style>

+ 282 - 0
components/uni-popup/uni-popup-share.vue

@@ -0,0 +1,282 @@
+<template>
+	<view>
+		<uni-popup-ori ref="showshare" type="bottom">
+			<view class="uni-share">
+				<text class="uni-share-title">分享到</text>
+				<view class="uni-share-content">
+					<view v-for="(item, index) in bottomData" :key="index" class="uni-share-content-box" @click="shareTo(item.name)">
+						<view class="uni-share-content-image"><image :src="item.icon" class="content-image" mode="widthFix" /></view>
+						<text class="uni-share-content-text">{{ item.text }}</text>
+					</view>
+				</view>
+				<text class="uni-share-btn" @click="cancel()">取消分享</text>
+			</view>
+		</uni-popup-ori>
+		<uni-popup-ori ref="showPast" type="center" class="popupPast">
+			<view class="backPop">
+				<view class="popPast">
+					<view class="popTitle">口令已复制</view>
+					<view class="popContent">
+						<view>{{ describe }}</view>
+					</view>
+					<view class="popBtn" @click="goWhere(1)" v-if="popType == 'wx'">
+						<!-- <image src="../../static/spend/wxin.png" mode="widthFix"></image> -->
+						<view>去微信粘贴给好友</view>
+					</view>
+					<view class="popBtn" @click="goWhere(2)" v-if="popType == 'timeline'">
+						<!-- <image src="../../static/spend/wechat.png" mode="widthFix"></image> -->
+						<view>粘贴到朋友圈</view>
+					</view>
+				</view>
+				<icon type="cancel" size="26" color="white" style="margin-top: 40rpx;" @click="cancelPo" />
+			</view>
+		</uni-popup-ori>
+	</view>
+</template>
+
+<script>
+import uniPopupOri from '@/components/uni-popup/uni-popup-ori.vue';
+import { mapState, mapMutations } from 'vuex';
+import { getActionPage } from '@/utils/loginUtils.js';
+export default {
+	name: 'SharePopup',
+	components: {
+		uniPopupOri
+	},
+	props: ['opt', 'type','option'],
+	data() {
+		return {
+			describe: '',
+			shareoption: '',
+			bottomData: [
+				{
+					text: '微信',
+					icon: '../../static/spend/wxin.png',
+					name: 'wx'
+				},
+				{
+					text: '朋友圈',
+					icon: '../../static/spend/wechat.png',
+					name: 'timeline'
+				}
+			],
+			popType: '',
+			uid: ''
+		};
+	},
+	computed: {
+		...mapState(['userInfo', 'baseURL'])
+	},
+	mounted() {},
+	methods: {
+		loadData() {
+			try {
+				let prePage = getActionPage();
+				var path = prePage.route;
+				this.uid = this.userInfo.uid;
+				//获取object转化成
+				var parm = '';
+				var i = 0;
+				var option = this.option; //其他页面传值
+				console.log(option,'option')
+				if(this.type == 4){
+					parm = parm + '?' + 'promo_code=' + option;
+				}else{
+					for (let item in option) {
+						//拼接参数
+						if (i == 0) {
+							parm = '?' + item + '=' + option[item];
+						} else {
+							parm = parm + '&' + item + '=' + option[item];
+						}
+						i++;
+					}
+				}
+				if(this.type == 4){
+					var url = 'pages/index/index' + parm;
+				}else{
+					var url = path + parm;
+				}
+				console.log(path,'path')
+				console.log(parm,'parm')
+				//用后台加密
+				//第一个参数是判断是不是我们的链接
+				//第二个参数是访问地址
+				//第三个参数是,类型,type:0商品,type=1拼团,type=2邀请注册,type=3邀请好友参团,type=4邀请好友助力
+				//第四个参数是share的id
+				console.log(option,'option')
+				if(this.type == 4){
+					this.describe = this.baseURL + '@' + url + '@' + this.type + '@' + this.uid + '@复制这段话进入美美赚,自动打开页面';
+				}else{
+					this.describe = this.baseURL + '@' + url + '@' + this.type + '@' + this.uid + '@复制这段话进入美美赚,自动打开页面';
+				}
+				console.log(this.describe);
+				let obj = this;
+				// #ifndef H5
+				uni.setClipboardData({
+					data: this.describe,
+					  success: function () {
+					        uni.hideToast();
+					    }
+				});
+				// #endif
+			} catch (e) {
+				console.log(e);
+				//TODO handle the exception
+			}
+		},
+		goWhere(type) {
+			this.$api.msg('复制成功');
+		},
+		cancelPo() {
+			this.$nextTick(() => {
+				this.$refs['showPast'].close();
+			});
+		},
+		shareTo(name) {
+			this.popType = name;
+			this.$nextTick(() => {
+				this.$refs.showPast.open();
+				this.$refs['showshare'].close();
+			});
+		},
+		cancel() {
+			this.$nextTick(() => {
+				this.$refs['showshare'].close();
+			});
+		},
+		open() {
+			this.$nextTick(() => {
+				this.$refs['showshare'].open();
+			});
+		}
+	}
+};
+</script>
+<style lang="scss" scoped>
+.backPop {
+	padding: 0rpx 25rpx;
+	display: flex;
+	flex-direction: column;
+	justify-content: center;
+	align-items: center;
+}
+.popupPast {
+	display: flex;
+	flex-direction: column;
+	justify-content: center;
+	align-items: center;
+	text-align: center;
+}
+.popPast {
+	display: flex;
+	flex-direction: column;
+	justify-content: center;
+	padding: 40rpx 30rpx;
+	width: 90%;
+	background-color: white;
+	border-radius: 18rpx;
+	align-items: center;
+	.popTitle {
+		color: #2f2f2f;
+		font-size: 32rpx;
+		font-weight: bold;
+		margin-bottom: 40rpx;
+	}
+	.popContent {
+		background-color: #f4f4f4;
+		padding: 30rpx 24rpx;
+		border-radius: 16rpx;
+		view {
+			font-size: 24rpx;
+			color: #939393;
+		}
+		margin-bottom: 40rpx;
+	}
+	.popBtn {
+		display: flex;
+		align-items: center;
+		padding: 20rpx 40rpx;
+		background-color: #04be02;
+		border-radius: 60rpx;
+		image {
+			width: 36rpx;
+		}
+		view {
+			color: white;
+			font-size: 36rpx;
+			margin-left: 10rpx;
+		}
+	}
+}
+/* 底部分享 */
+.uni-share {
+	/* #ifndef APP-NVUE */
+	display: flex;
+	flex-direction: column;
+	/* #endif */
+	background-color: #fff;
+}
+
+.uni-share-title {
+	line-height: 60rpx;
+	font-size: 24rpx;
+	padding: 15rpx 0;
+	text-align: center;
+}
+
+.uni-share-content {
+	/* #ifndef APP-NVUE */
+	display: flex;
+	/* #endif */
+	flex-direction: row;
+	flex-wrap: wrap;
+	justify-content: center;
+	padding: 15px;
+}
+
+.uni-share-content-box {
+	/* #ifndef APP-NVUE */
+	display: flex;
+	/* #endif */
+	flex-direction: column;
+	align-items: center;
+	width: 200rpx;
+}
+
+.uni-share-content-image {
+	/* #ifndef APP-NVUE */
+	display: flex;
+	/* #endif */
+	flex-direction: row;
+	justify-content: center;
+	align-items: center;
+	width: 60rpx;
+	height: 60rpx;
+	overflow: hidden;
+	border-radius: 10rpx;
+}
+
+.content-image {
+	width: 60rpx;
+	height: 60rpx;
+}
+
+.uni-share-content-text {
+	font-size: 26rpx;
+	color: #333;
+	padding-top: 5px;
+	padding-bottom: 10px;
+}
+
+.uni-share-btn {
+	height: 90rpx;
+	line-height: 90rpx;
+	font-size: 14px;
+	border-top-color: #f5f5f5;
+	border-top-width: 1px;
+	border-top-style: solid;
+	text-align: center;
+	color: #666;
+}
+</style>

+ 263 - 0
components/uni-popup/uni-popup.vue

@@ -0,0 +1,263 @@
+<template>
+	<view v-if="showPopup" class="uni-popup" @touchmove.stop.prevent="clear">
+		<uni-transition :mode-class="['fade']" :styles="maskClass" :duration="duration" :show="showTrans" @click="onTap" />
+		<uni-transition :mode-class="ani" :styles="transClass" :duration="duration" :show="showTrans" @click="onTap">
+			<view class="uni-popup__wrapper-box" @click.stop="clear">
+				<slot />
+			</view>
+		</uni-transition>
+	</view>
+</template>
+
+<script>
+	import uniTransition from '../uni-transition/uni-transition.vue'
+
+	/**
+	 * PopUp 弹出层
+	 * @description 弹出层组件,为了解决遮罩弹层的问题
+	 * @tutorial https://ext.dcloud.net.cn/plugin?id=329
+	 * @property {String} type = [top|center|bottom] 弹出方式
+	 * 	@value top 顶部弹出
+	 * 	@value center 中间弹出
+	 * 	@value bottom 底部弹出
+	 * @property {Boolean} animation = [ture|false] 是否开启动画
+	 * @property {Boolean} maskClick = [ture|false] 蒙版点击是否关闭弹窗
+	 * @event {Function} change 打开关闭弹窗触发,e={show: false}
+	 */
+
+	export default {
+		name: 'UniPopup',
+		components: {
+			uniTransition
+		},
+		props: {
+			// 开启动画
+			animation: {
+				type: Boolean,
+				default: true
+			},
+			// 弹出层类型,可选值,top: 顶部弹出层;bottom:底部弹出层;center:全屏弹出层
+			type: {
+				type: String,
+				default: 'center'
+			},
+			// maskClick
+			maskClick: {
+				type: Boolean,
+				default: true
+			}
+		},
+		data() {
+			return {
+				duration: 300,
+				ani: [],
+				showPopup: false,
+				showTrans: false,
+				maskClass: {
+					'position': 'fixed',
+					'bottom': 0,
+					'top': 0,
+					'left': 0,
+					'right': 0,
+					'backgroundColor': 'rgba(0, 0, 0, 0.4)'
+				},
+				transClass: {
+					'position': 'fixed',
+					'left': 0,
+					'right': 0,
+				}
+			}
+		},
+		watch: {
+			type: {
+				handler: function(newVal) {
+					switch (this.type) {
+						case 'top':
+							this.ani = ['slide-top']
+							this.transClass = {
+								'position': 'fixed',
+								'left': 0,
+								'right': 0,
+							}
+							break
+						case 'bottom':
+							this.ani = ['slide-bottom']
+							this.transClass = {
+								'position': 'fixed',
+								'left': 0,
+								'right': 0,
+								'bottom': 0
+							}
+							break
+						case 'center':
+							this.ani = ['zoom-out', 'fade']
+							this.transClass = {
+								'position': 'fixed',
+								/* #ifndef APP-NVUE */
+								'display': 'flex',
+								'flexDirection': 'column',
+								/* #endif */
+								'bottom': 0,
+								'left': 0,
+								'right': 0,
+								'top': 0,
+								'justifyContent': 'center',
+								'alignItems': 'center'
+							}
+
+							break
+					}
+				},
+				immediate: true
+			}
+		},
+		created() {
+			if (this.animation) {
+				this.duration = 300
+			} else {
+				this.duration = 0
+			}
+		},
+		methods: {
+			clear(e) {
+				// TODO nvue 取消冒泡
+				e.stopPropagation()
+			},
+			open() {
+				this.showPopup = true
+				this.$nextTick(() => {
+					clearTimeout(this.timer)
+					this.timer = setTimeout(() => {
+						this.showTrans = true
+					}, 50);
+				})
+				this.$emit('change', {
+					show: true
+				})
+			},
+			close(type) {
+				this.showTrans = false
+				this.$nextTick(() => {
+					clearTimeout(this.timer)
+					this.timer = setTimeout(() => {
+						this.$emit('change', {
+							show: false
+						})
+						this.showPopup = false
+					}, 300)
+				})
+			},
+			onTap() {
+				if (!this.maskClick) return
+				this.close()
+			}
+		}
+	}
+</script>
+<style lang="scss" scoped>
+	.uni-popup {
+		position: fixed;
+		/* #ifdef H5 */
+		top: var(--window-top);
+		/* #endif */
+		/* #ifndef H5 */
+		top: 0;
+		/* #endif */
+		bottom: 0;
+		left: 0;
+		right: 0;
+		/* #ifndef APP-NVUE */
+		z-index: 99;
+		/* #endif */
+	}
+
+	.uni-popup__mask {
+		position: absolute;
+		top: 0;
+		bottom: 0;
+		left: 0;
+		right: 0;
+		background-color: $uni-bg-color-mask;
+		opacity: 0;
+	}
+
+	.mask-ani {
+		transition-property: opacity;
+		transition-duration: 0.2s;
+	}
+
+	.uni-top-mask {
+		opacity: 1;
+	}
+
+	.uni-bottom-mask {
+		opacity: 1;
+	}
+
+	.uni-center-mask {
+		opacity: 1;
+	}
+
+	.uni-popup__wrapper {
+		/* #ifndef APP-NVUE */
+		display: block;
+		/* #endif */
+		position: absolute;
+	}
+
+	.top {
+		top: 0;
+		left: 0;
+		right: 0;
+		transform: translateY(-500px);
+	}
+
+	.bottom {
+		bottom: 0;
+		left: 0;
+		right: 0;
+		transform: translateY(500px);
+	}
+
+	.center {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		flex-direction: column;
+		/* #endif */
+		bottom: 0;
+		left: 0;
+		right: 0;
+		top: 0;
+		justify-content: center;
+		align-items: center;
+		transform: scale(1.2);
+		opacity: 0;
+	}
+
+	.uni-popup__wrapper-box {
+		/* #ifndef APP-NVUE */
+		display: block;
+		/* #endif */
+		position: relative;
+	}
+
+	.content-ani {
+		// transition: transform 0.3s;
+		transition-property: transform, opacity;
+		transition-duration: 0.2s;
+	}
+
+
+	.uni-top-content {
+		transform: translateY(0);
+	}
+
+	.uni-bottom-content {
+		transform: translateY(0);
+	}
+
+	.uni-center-content {
+		transform: scale(1);
+		opacity: 1;
+	}
+</style>

+ 141 - 0
components/uni-rate/uni-rate.vue

@@ -0,0 +1,141 @@
+<template>
+	<view class="uni-rate">
+		<view :key="index" :style="{ marginLeft: margin + 'px' }" @click="_onClick(index)" class="uni-rate__icon" v-for="(star, index) in stars">
+			<uni-icons :color="color" :size="size" :type="isFill ? 'star-filled' : 'star'" />
+			<!-- #ifdef APP-NVUE -->
+			<view :style="{ width: star.activeWitch.replace('%','')*size/100+'px'}" class="uni-rate__icon-on">
+				<uni-icons style="text-align: left;" :color="activeColor" :size="size" type="star-filled" />
+			</view>
+			<!-- #endif -->
+			<!-- #ifndef APP-NVUE -->
+			<view :style="{ width: star.activeWitch,top:-size/2+'px' }" class="uni-rate__icon-on">
+				<uni-icons :color="activeColor" :size="size" type="star-filled" />
+			</view>
+			<!-- #endif -->
+		</view>
+	</view>
+</template>
+
+<script>
+	import uniIcons from "../uni-icons/uni-icons.vue";
+	export default {
+		name: "UniRate",
+		components: {
+			uniIcons
+		},
+		props: {
+			isFill: {
+				// 星星的类型,是否镂空
+				type: [Boolean, String],
+				default: true
+			},
+			color: {
+				// 星星的颜色
+				type: String,
+				default: "#ececec"
+			},
+			activeColor: {
+				// 星星选中状态颜色
+				type: String,
+				default: "#ffca3e"
+			},
+			size: {
+				// 星星的大小
+				type: [Number, String],
+				default: 24
+			},
+			value: {
+				// 当前评分
+				type: [Number, String],
+				default: 0
+			},
+			max: {
+				// 最大评分
+				type: [Number, String],
+				default: 5
+			},
+			margin: {
+				// 星星的间距
+				type: [Number, String],
+				default: 0
+			},
+			disabled: {
+				// 是否可点击
+				type: [Boolean, String],
+				default: false
+			}
+		},
+		data() {
+			return {
+				valueSync: ""
+			};
+		},
+		computed: {
+			stars() {
+				const value = this.valueSync ? this.valueSync : 0;
+				const starList = [];
+				const floorValue = Math.floor(value);
+				const ceilValue = Math.ceil(value);
+				// console.log("ceilValue: " + ceilValue);
+				// console.log("floorValue: " + floorValue);
+				for (let i = 0; i < this.max; i++) {
+					if (floorValue > i) {
+						starList.push({
+							activeWitch: "100%"
+						});
+					} else if (ceilValue - 1 === i) {
+						starList.push({
+							activeWitch: (value - floorValue) * 100 + "%"
+						});
+					} else {
+						starList.push({
+							activeWitch: "0"
+						});
+					}
+				}
+				console.log("starList[4]: " + starList[4].activeWitch);
+				return starList;
+			}
+		},
+		created() {
+			this.valueSync = Number(this.value);
+		},
+		methods: {
+			_onClick(index) {
+				if (this.disabled) {
+					return;
+				}
+				this.valueSync = index + 1;
+				this.$emit("change", {
+					value: this.valueSync
+				});
+			}
+		}
+	};
+</script>
+
+<style lang="scss" scoped>
+	.uni-rate {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		line-height: 0;
+		font-size: 0;
+		flex-direction: row;
+	}
+
+	.uni-rate__icon {
+		position: relative;
+		line-height: 0;
+		font-size: 0;
+	}
+
+	.uni-rate__icon-on {
+		overflow: hidden;
+		position: absolute;
+		top: 0;
+		left: 0;
+		line-height: 1;
+		text-align: left;
+	}
+</style>

+ 244 - 0
components/uni-steps/uni-steps.vue

@@ -0,0 +1,244 @@
+<template>
+	<view class="uni-steps">
+		<view :class="[direction==='column'?'uni-steps__column':'uni-steps__row']">
+			<view :class="[direction==='column'?'uni-steps__column-text-container':'uni-steps__row-text-container']">
+				<view v-for="(item,index) in options" :key="index" :class="[direction==='column'?'uni-steps__column-text':'uni-steps__row-text']">
+					<text :style="{color:index<=active?activeColor:deactiveColor}" :class="[direction==='column'?'uni-steps__column-title':'uni-steps__row-title']">{{item.status}}</text>
+					<text :style="{color:index<=active?activeColor:deactiveColor}" :class="[direction==='column'?'uni-steps__column-desc':'uni-steps__row-desc']">{{item.context}}</text>
+					<text :style="{color:index<=active?activeColor:deactiveColor}" :class="[direction==='column'?'uni-steps__column-desc':'uni-steps__row-desc']">{{item.time}}</text>
+				</view>
+			</view>
+			<view :class="[direction==='column'?'uni-steps__column-container':'uni-steps__row-container']">
+				<view :class="[direction==='column'?'uni-steps__column-line-item':'uni-steps__row-line-item']" v-for="(item,index) in options"
+				 :key="index">
+					<view :class="[direction==='column'?'uni-steps__column-line':'uni-steps__row-line',direction==='column'?'uni-steps__column-line--before':'uni-steps__row-line--before']"
+					 :style="{backgroundColor:index<=active&&index!==0?activeColor:index===0?'transparent':deactiveColor}"></view>
+					<view :class="[direction==='column'?'uni-steps__column-check':'uni-steps__row-check']" v-if="index === active">
+						<uni-icons :color="activeColor" type="checkbox-filled" size="14"></uni-icons>
+					</view>
+					<view :class="[direction==='column'?'uni-steps__column-circle':'uni-steps__row-circle']" v-else :style="{backgroundColor:index<active?activeColor:deactiveColor}"></view>
+					<view :class="[direction==='column'?'uni-steps__column-line':'uni-steps__row-line',direction==='column'?'uni-steps__column-line--after':'uni-steps__row-line--after']"
+					 :style="{backgroundColor:index<active&&index!==options.length-1?activeColor:index===options.length-1?'transparent':deactiveColor}"></view>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	import uniIcons from '../uni-icons/uni-icons.vue'
+	export default {
+		name: 'UniSteps',
+		components: {
+			uniIcons
+		},
+		props: {
+			direction: {
+				// 排列方向 row column
+				type: String,
+				default: 'row'
+			},
+			activeColor: {
+				// 激活状态颜色
+				type: String,
+				default: '#1aad19'
+			},
+			deactiveColor: {
+				// 未激活状态颜色
+				type: String,
+				default: '#999999'
+			},
+			active: {
+				// 当前步骤
+				type: Number,
+				default: 0
+			},
+			options: {
+				type: Array,
+				default () {
+					return []
+				}
+			} // 数据
+		},
+		data() {
+			return {}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.uni-steps {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		width: 100%;
+		/* #endif */
+		/* #ifdef APP-NVUE */
+		flex: 1;
+		/* #endif */
+		flex-direction: column;
+	}
+
+	.uni-steps__row {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex-direction: column;
+	}
+
+	.uni-steps__column {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex-direction: row-reverse;
+	}
+
+	.uni-steps__row-text-container {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex-direction: row;
+	}
+
+	.uni-steps__column-text-container {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex-direction: column;
+		flex: 1;
+	}
+
+	.uni-steps__row-text {
+		/* #ifndef APP-NVUE */
+		display: inline-flex;
+		/* #endif */
+		flex: 1;
+		flex-direction: column;
+	}
+
+	.uni-steps__column-text {
+		padding: 6px 0px;
+		border-bottom-style: solid;
+		border-bottom-width: 1px;
+		border-bottom-color: $uni-border-color;
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex-direction: column;
+	}
+
+	.uni-steps__row-title {
+		font-size: $uni-font-size-base;
+		line-height: 16px;
+		text-align: center;
+	}
+
+	.uni-steps__column-title {
+		font-size: $uni-font-size-base;
+		text-align: left;
+		line-height: 18px;
+	}
+
+	.uni-steps__row-desc {
+		font-size: 12px;
+		line-height: 14px;
+		text-align: center;
+	}
+
+	.uni-steps__column-desc {
+		font-size: $uni-font-size-sm;
+		text-align: left;
+		line-height: 18px;
+	}
+
+	.uni-steps__row-container {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex-direction: row;
+	}
+
+	.uni-steps__column-container {
+		/* #ifndef APP-NVUE */
+		display: inline-flex;
+		/* #endif */
+		width: 30px;
+		flex-direction: column;
+	}
+
+	.uni-steps__row-line-item {
+		/* #ifndef APP-NVUE */
+		display: inline-flex;
+		/* #endif */
+		flex-direction: row;
+		flex: 1;
+		height: 14px;
+		line-height: 14px;
+		align-items: center;
+		justify-content: center;
+	}
+
+	.uni-steps__column-line-item {
+		/* #ifndef APP-NVUE */
+		display: flex;
+		/* #endif */
+		flex-direction: column;
+		flex: 1;
+		align-items: center;
+		justify-content: center;
+	}
+
+	.uni-steps__row-line {
+		flex: 1;
+		height: 1px;
+		background-color: $uni-text-color-grey;
+	}
+
+	.uni-steps__column-line {
+		width: 1px;
+		background-color: $uni-text-color-grey;
+	}
+
+	.uni-steps__row-line--after {
+		transform: translateX(1px);
+	}
+
+	.uni-steps__column-line--after {
+		flex: 1;
+		transform: translate(0px, 1px);
+	}
+
+	.uni-steps__row-line--before {
+		transform: translateX(-1px);
+	}
+
+	.uni-steps__column-line--before {
+		height: 6px;
+		transform: translate(0px, -1px);
+	}
+
+	.uni-steps__row-circle {
+		width: 5px;
+		height: 5px;
+		border-radius: 100px;
+		background-color: $uni-text-color-grey;
+		margin: 0px 3px;
+	}
+
+	.uni-steps__column-circle {
+		width: 5px;
+		height: 5px;
+		border-radius: 100px;
+		background-color: $uni-text-color-grey;
+		margin: 4px 0px 5px 0px;
+	}
+
+	.uni-steps__row-check {
+		margin: 0px 6px;
+	}
+
+	.uni-steps__column-check {
+		height: 14px;
+		line-height: 14px;
+		margin: 2px 0px;
+	}
+</style>

+ 279 - 0
components/uni-transition/uni-transition.vue

@@ -0,0 +1,279 @@
+<template>
+	<view v-if="isShow" ref="ani" class="uni-transition" :class="[ani.in]" :style="'transform:' +transform+';'+stylesObject"
+	 @click="change">
+		 <slot></slot>
+	</view>
+</template>
+
+<script>
+	// #ifdef APP-NVUE
+	const animation = uni.requireNativePlugin('animation');
+	// #endif
+	/**
+	 * Transition 过渡动画
+	 * @description 简单过渡动画组件
+	 * @tutorial https://ext.dcloud.net.cn/plugin?id=985
+	 * @property {Boolean} show = [false|true] 控制组件显示或隐藏
+     * @property {Array} modeClass = [fade|slide-top|slide-right|slide-bottom|slide-left|zoom-in|zoom-out] 过渡动画类型
+     *  @value fade 渐隐渐出过渡
+     *  @value slide-top 由上至下过渡
+     *  @value slide-right 由右至左过渡
+     *  @value slide-bottom 由下至上过渡
+     *  @value slide-left 由左至右过渡
+     *  @value zoom-in 由小到大过渡
+     *  @value zoom-out 由大到小过渡
+	 * @property {Number} duration 过渡动画持续时间
+	 * @property {Object} styles 组件样式,同 css 样式,注意带’-‘连接符的属性需要使用小驼峰写法如:`backgroundColor:red`
+	 */
+	export default {
+		name: 'uniTransition',
+		props: {
+			show: {
+				type: Boolean,
+				default: false
+			},
+			modeClass: {
+				type: Array,
+				default () {
+					return []
+				}
+			},
+			duration: {
+				type: Number,
+				default: 300
+			},
+			styles: {
+				type: Object,
+				default () {
+					return {}
+				}
+			}
+		},
+		data() {
+			return {
+				isShow: false,
+				transform: '',
+				ani: { in: '',
+					active: ''
+				}
+			};
+		},
+		watch: {
+			show: {
+				handler(newVal) {
+					if (newVal) {
+						this.open()
+					} else {
+						this.close()
+					}
+				},
+				immediate: true
+			}
+		},
+		computed: {
+			stylesObject() {
+				let styles = {
+					...this.styles,
+					'transition-duration': this.duration / 1000 + 's'
+				}
+				let transfrom = ''
+				for (let i in styles) {
+					let line = this.toLine(i)
+					transfrom += line + ':' + styles[i] + ';'
+				}
+				return transfrom
+			}
+		},
+		created() {
+			// this.timer = null
+			// this.nextTick = (time = 50) => new Promise(resolve => {
+			// 	clearTimeout(this.timer)
+			// 	this.timer = setTimeout(resolve, time)
+			// 	return this.timer
+			// });
+		},
+		methods: {
+			change() {
+				this.$emit('click', {
+					detail: this.isShow
+				})
+			},
+			open() {
+				clearTimeout(this.timer)
+				this.isShow = true
+				this.transform = ''
+				this.ani.in = ''
+				for (let i in this.getTranfrom(false)) {
+					if (i === 'opacity') {
+						this.ani.in = 'fade-in'
+					} else {
+						this.transform += `${this.getTranfrom(false)[i]} `
+					}
+				}
+				this.$nextTick(() => {
+					setTimeout(() => {
+						this._animation(true)
+					}, 50)
+				})
+
+			},
+			close(type) {
+				clearTimeout(this.timer)
+				this._animation(false)
+			},
+			_animation(type) {
+				let styles = this.getTranfrom(type)
+				// #ifdef APP-NVUE
+				if(!this.$refs['ani']) return
+				animation.transition(this.$refs['ani'].ref, {
+					styles,
+					duration: this.duration, //ms
+					timingFunction: 'ease',
+					needLayout: false,
+					delay: 0 //ms
+				}, () => {
+					if (!type) {
+						this.isShow = false
+					}
+					this.$emit('change', {
+						detail: this.isShow
+					})
+				})
+				// #endif
+				// #ifndef APP-NVUE
+				this.transform = ''
+				for (let i in styles) {
+					if (i === 'opacity') {
+						this.ani.in = `fade-${type?'out':'in'}`
+					} else {
+						this.transform += `${styles[i]} `
+					}
+				}
+				this.timer = setTimeout(() => {
+					if (!type) {
+						this.isShow = false
+					}
+					this.$emit('change', {
+						detail: this.isShow
+					})
+
+				}, this.duration)
+				// #endif
+
+			},
+			getTranfrom(type) {
+				let styles = {
+					transform: ''
+				}
+				this.modeClass.forEach((mode) => {
+					switch (mode) {
+						case 'fade':
+							styles.opacity = type ? 1 : 0
+							break;
+						case 'slide-top':
+							styles.transform += `translateY(${type?'0':'-100%'}) `
+							break;
+						case 'slide-right':
+							styles.transform += `translateX(${type?'0':'100%'}) `
+							break;
+						case 'slide-bottom':
+							styles.transform += `translateY(${type?'0':'100%'}) `
+							break;
+						case 'slide-left':
+							styles.transform += `translateX(${type?'0':'-100%'}) `
+							break;
+						case 'zoom-in':
+							styles.transform += `scale(${type?1:0.8}) `
+							break;
+						case 'zoom-out':
+							styles.transform += `scale(${type?1:1.2}) `
+							break;
+					}
+				})
+				return styles
+			},
+			_modeClassArr(type) {
+				let mode = this.modeClass
+				if (typeof(mode) !== "string") {
+					let modestr = ''
+					mode.forEach((item) => {
+						modestr += (item + '-' + type + ',')
+					})
+					return modestr.substr(0, modestr.length - 1)
+				} else {
+					return mode + '-' + type
+				}
+			},
+			// getEl(el) {
+			// 	console.log(el || el.ref || null);
+			// 	return el || el.ref || null
+			// },
+			toLine(name) {
+				return name.replace(/([A-Z])/g, "-$1").toLowerCase();
+			}
+		}
+	}
+</script>
+
+<style>
+	.uni-transition {
+		transition-timing-function: ease;
+		transition-duration: 0.3s;
+		transition-property: transform, opacity;
+	}
+
+	.fade-in {
+		opacity: 0;
+	}
+
+	.fade-active {
+		opacity: 1;
+	}
+
+	.slide-top-in {
+		/* transition-property: transform, opacity; */
+		transform: translateY(-100%);
+	}
+
+	.slide-top-active {
+		transform: translateY(0);
+		/* opacity: 1; */
+	}
+
+	.slide-right-in {
+		transform: translateX(100%);
+	}
+
+	.slide-right-active {
+		transform: translateX(0);
+	}
+
+	.slide-bottom-in {
+		transform: translateY(100%);
+	}
+
+	.slide-bottom-active {
+		transform: translateY(0);
+	}
+
+	.slide-left-in {
+		transform: translateX(-100%);
+	}
+
+	.slide-left-active {
+		transform: translateX(0);
+		opacity: 1;
+	}
+
+	.zoom-in-in {
+		transform: scale(0.8);
+	}
+
+	.zoom-out-active {
+		transform: scale(1);
+	}
+
+	.zoom-out-in {
+		transform: scale(1.2);
+	}
+</style>

+ 226 - 0
components/upload-images.vue

@@ -0,0 +1,226 @@
+<template>
+	<view class="upload-content">
+		<block v-for="(item, index) in imageList" :key="index">
+			<view class="upload-item">
+				<image class="upload-img" :src="item.filePath" mode="aspectFill" @click="previewImage(index)"></image>
+				<image class="upload-del-btn" 
+					@click="delImage(index)" 
+					src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjNBODgzQjUwNDM5MTFFOUJDMjlGN0UwRTJGMjVCNjQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjNBODgzQjYwNDM5MTFFOUJDMjlGN0UwRTJGMjVCNjQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpGM0E4ODNCMzA0MzkxMUU5QkMyOUY3RTBFMkYyNUI2NCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpGM0E4ODNCNDA0MzkxMUU5QkMyOUY3RTBFMkYyNUI2NCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuYQTIAAAAHNSURBVHjazJgxasMwFIbjnsD4BDmCLxDQDZrNQ5bcILlBvXvpDRLIWmiHFkyH2t0LyVbwEkPpbE/eYlUCGYQax096UuIffkIgij7ryU/vyZuYy2e+Z56K70R8lsJcOfPn5AriMCvmZ2YKdMW8EQ/hRA9iEorwXlpZtObMRySQ6kysvrFWloHUEIcmUBuHUDLccmxQskErt7wyVLdy00tQ4Q2g5De2V9kNwWjffiNDA33f/42i6E13Qj5uNptlwJD+SyODuaqqqi/KVBTFOxSKA7VtW/NxSZI8AcbE2nuraZpvKgSBk6G4drsdBOwogz1CwAghH/JEl+BUKJ1VltPHHjoIAoeE4l53YFqb+RKcBSgqyqXhtxEKZwkKB3YOThYCqjPuCDoHZwGK3mGLtdPp5LmqTI1Dqe4p26EkNqA4iE6eg2z+iQ0okyQMATvYgLIIt9Y6knTyFBIudHqIq3BpmkL60VJ9O0sXZY8MBwSLtdNGEAQ/i8XiVXcz83EcEPDbuq/fzMdYWt+6GTmMsX2rh9q3TtsxNrzXhKt1rwg6rR1Dhdjqo7QMlWOvoWTF4imxQMRF7eaL8L5ohmwrLgDB8pCQc8DlcG7y538CDABJNGPqfaJgfgAAAABJRU5ErkJggg==" 
+					mode="scaleToFill">
+				</image>
+				<view class="upload-progress" v-if="item.progress < 100">{{item.progress}}%</view>
+			</view>
+		</block>
+		<view class="upload-add-btn" v-if="rduLength > 0" @click="chooseImage"></view>
+	</view>
+</template>
+
+<script>
+export default {
+	data() {
+		return {
+			imageList: []
+		};
+	},
+	props: {
+		url: {
+			type: String,
+			value: '' //上传接口地址
+		},
+		count: {
+			type: Number,
+			value: 4 //单次可选择的图片数量
+		},
+		length: {
+			type: Number,
+			value: 50 //可上传总数量
+		}
+	},
+	computed: {
+		rduLength(){
+			return this.length - this.imageList.length;
+		}
+	},
+	methods: {
+		//选择图片
+		chooseImage: function(){
+			uni.chooseImage({
+				count: this.rduLength < this.count ? this.rduLength : this.count, //最多可以选择的图片张数,默认9
+				sizeType: ['original', 'compressed'], //original 原图,compressed 压缩图,默认二者都有
+				sourceType: ['album'], //album 从相册选图,camera 使用相机,默认二者都有
+				success: (res)=> {
+					const images = res.tempFilePaths;
+					this.uploadFiles(images);
+				}
+			});
+		},
+		//上传图片
+		async uploadFiles(images){
+			this.imageList.push({
+				filePath: images[0],
+				progress: 0
+			});
+			uni.showLoading({
+				title: '请稍后..',
+				mask: true,
+			})
+			try{
+				const uploadUrl = await this.uploadImage(images[0]);
+			}catch(err){
+				console.log(err);
+				return;
+			}
+			
+			if(uploadUrl !== false){
+				images.splice(0, 1);
+				this.imageList[this.imageList.length - 1].src = uploadUrl;
+
+				//判断是否需要继续上传
+				if(images.length > 0 && this.rduLength > 0){
+					this.uploadFiles(images);
+				}else{
+					uni.hideLoading();
+				}
+			}else{
+				//上传失败处理
+				this.imageList.pop();
+				uni.hideLoading();
+				uni.showToast({
+					title: '上传中出现问题,已终止上传',
+					icon: 'none',
+					mask: true,
+					duration: 2000
+				});
+			}
+		},
+		uploadImage: function(file){
+			return new Promise((resolve, reject)=> {
+				//发送给后端的附加参数
+				const formData = {
+					thumb_mode: 1,  
+				};
+				this.uploadTask = uni.uploadFile({
+					url: this.url, 
+					filePath: file,
+					name: 'file',
+					formData: formData,
+					success(uploadFileResult){
+						const uploadFileRes = JSON.parse(uploadFileResult.data) || {};
+						if(uploadFileRes.status === 1 && uploadFileRes.data){
+							resolve(uploadFileRes.data);
+						}else{
+							reject('接口返回错误');
+						}
+					}, 
+					fail(){
+						reject('网络链接错误');
+					}
+				});
+				//上传进度
+				this.uploadTask.onProgressUpdate((progressRes)=> {
+					this.imageList[this.imageList.length - 1].progress = progressRes.progress;
+				});
+			});
+		},
+		//删除图片
+		delImage: function(index){
+			uni.showModal({
+				content: '确定要放弃这张图片么?',
+				success: (confirmRes)=> {
+					if (confirmRes.confirm) {
+						this.imageList.splice(index, 1);
+					} 
+				}
+			});
+		},
+		//预览图片
+		previewImage: function(index){
+			const urls = [];
+			this.imageList.forEach((item)=> {
+				urls.push(item.filePath);
+			})
+			uni.previewImage({
+				current: urls[index],
+				urls: urls,
+				indicator: "number"
+			})
+		}
+	}
+}
+</script>
+
+<style lang="scss">
+	.upload-content{
+		padding:24upx 0 0 28upx;
+		background-color: #fff;
+		overflow:hidden;
+	}
+	.upload-item{
+		position: relative;
+		float:left;
+		width:150upx;
+		height:150upx;
+		margin-right:30upx;
+		margin-bottom:30upx;
+		&:nth-child(4n){
+			margin-right:0;
+		}
+		.upload-img{
+			width:100%;
+			height:100%;
+			border-radius:8upx;
+		}
+		.upload-del-btn{
+			position: absolute;
+			right:-16upx;
+			top:-14upx;
+			width:36upx;
+			height:36upx;
+			border: 4upx solid #fff;
+			border-radius: 100px;
+		}
+		.upload-progress{
+			position: absolute;
+			left:0;
+			top:0;
+			display:flex;
+			align-items:center;
+			justify-content: center;
+			width:100%;
+			height:100%;
+			background-color: rgba(0,0,0,.4);
+			color:#fff;
+			font-size:24upx;
+			border-radius:8upx;
+		}
+	}
+	.upload-add-btn {
+		position: relative;
+		float:left;
+		width: 150upx;
+		height: 150upx;
+		z-index: 99;
+		border-radius:8upx;
+		background:#f9f9f9;
+		&:before,
+		&:after {
+			content: " ";
+			position: absolute;
+			top: 50%;
+			left: 50%;
+			-webkit-transform: translate(-50%, -50%);
+			transform: translate(-50%, -50%);
+			width: 4upx;
+			height: 60upx;
+			background-color: #d6d6d6;
+		}
+		&:after {
+			width: 60upx;
+			height: 4upx;
+		}
+		&:active {
+			background-color: #f7f7f7;
+		}
+	}
+
+</style>

+ 7076 - 0
components/wangding-pickerAddress/data.js

@@ -0,0 +1,7076 @@
+export default [{
+    "value": "北京市", "label": "北京市", "children": [{
+        "value": "北京市",
+        "label": "北京市",
+        "children": [{"value": "东城区", "label": "东城区"}, {
+            "value": "西城区",
+            "label": "西城区"
+        }, {"value": "朝阳区", "label": "朝阳区"}, {
+            "value": "丰台区",
+            "label": "丰台区"
+        }, {"value": "石景山区", "label": "石景山区"}, {
+            "value": "海淀区",
+            "label": "海淀区"
+        }, {"value": "门头沟区", "label": "门头沟区"}, {
+            "value": "房山区",
+            "label": "房山区"
+        }, {"value": "通州区", "label": "通州区"}, {
+            "value": "顺义区",
+            "label": "顺义区"
+        }, {"value": "昌平区", "label": "昌平区"}, {
+            "value": "大兴区",
+            "label": "大兴区"
+        }, {"value": "怀柔区", "label": "怀柔区"}, {
+            "value": "平谷区",
+            "label": "平谷区"
+        }, {"value": "密云区", "label": "密云区"}, {
+            "value": "延庆区",
+            "label": "延庆区"
+        }]
+    }]
+}, {
+    "value": "天津市", "label": "天津市", "children": [{
+        "value": "天津市",
+        "label": "天津市",
+        "children": [{"value": "和平区", "label": "和平区"}, {
+            "value": "河东区",
+            "label": "河东区"
+        }, {"value": "河西区", "label": "河西区"}, {
+            "value": "南开区",
+            "label": "南开区"
+        }, {"value": "河北区", "label": "河北区"}, {
+            "value": "红桥区",
+            "label": "红桥区"
+        }, {"value": "东丽区", "label": "东丽区"}, {
+            "value": "西青区",
+            "label": "西青区"
+        }, {"value": "津南区", "label": "津南区"}, {
+            "value": "北辰区",
+            "label": "北辰区"
+        }, {"value": "武清区", "label": "武清区"}, {
+            "value": "宝坻区",
+            "label": "宝坻区"
+        }, {"value": "滨海新区", "label": "滨海新区"}, {
+            "value": "宁河区",
+            "label": "宁河区"
+        }, {"value": "静海区", "label": "静海区"}, {
+            "value": "蓟州区",
+            "label": "蓟州区"
+        }]
+    }]
+}, {
+    "value": "河北省", "label": "河北省", "children": [{
+        "value": "石家庄市",
+        "label": "石家庄市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "长安区",
+            "label": "长安区"
+        }, {"value": "桥西区", "label": "桥西区"}, {
+            "value": "新华区",
+            "label": "新华区"
+        }, {"value": "井陉矿区", "label": "井陉矿区"}, {
+            "value": "裕华区",
+            "label": "裕华区"
+        }, {"value": "藁城区", "label": "藁城区"}, {
+            "value": "鹿泉区",
+            "label": "鹿泉区"
+        }, {"value": "栾城区", "label": "栾城区"}, {
+            "value": "井陉县",
+            "label": "井陉县"
+        }, {"value": "正定县", "label": "正定县"}, {
+            "value": "行唐县",
+            "label": "行唐县"
+        }, {"value": "灵寿县", "label": "灵寿县"}, {
+            "value": "高邑县",
+            "label": "高邑县"
+        }, {"value": "深泽县", "label": "深泽县"}, {
+            "value": "赞皇县",
+            "label": "赞皇县"
+        }, {"value": "无极县", "label": "无极县"}, {
+            "value": "平山县",
+            "label": "平山县"
+        }, {"value": "元氏县", "label": "元氏县"}, {
+            "value": "赵县",
+            "label": "赵县"
+        }, {"value": "晋州市", "label": "晋州市"}, {
+            "value": "新乐市",
+            "label": "新乐市"
+        }]
+    }, {
+        "value": "唐山市",
+        "label": "唐山市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "路南区",
+            "label": "路南区"
+        }, {"value": "路北区", "label": "路北区"}, {
+            "value": "古冶区",
+            "label": "古冶区"
+        }, {"value": "开平区", "label": "开平区"}, {
+            "value": "丰南区",
+            "label": "丰南区"
+        }, {"value": "丰润区", "label": "丰润区"}, {
+            "value": "曹妃甸区",
+            "label": "曹妃甸区"
+        }, {"value": "滦县", "label": "滦县"}, {
+            "value": "滦南县",
+            "label": "滦南县"
+        }, {"value": "乐亭县", "label": "乐亭县"}, {
+            "value": "迁西县",
+            "label": "迁西县"
+        }, {"value": "玉田县", "label": "玉田县"}, {
+            "value": "遵化市",
+            "label": "遵化市"
+        }, {"value": "迁安市", "label": "迁安市"}]
+    }, {
+        "value": "秦皇岛市",
+        "label": "秦皇岛市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "海港区",
+            "label": "海港区"
+        }, {
+            "value": "山海关区",
+            "label": "山海关区"
+        }, {"value": "北戴河区", "label": "北戴河区"}, {
+            "value": "抚宁区",
+            "label": "抚宁区"
+        }, {
+            "value": "青龙满族自治县",
+            "label": "青龙满族自治县"
+        }, {"value": "昌黎县", "label": "昌黎县"}, {
+            "value": "卢龙县",
+            "label": "卢龙县"
+        }]
+    }, {
+        "value": "邯郸市",
+        "label": "邯郸市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "邯山区",
+            "label": "邯山区"
+        }, {"value": "丛台区", "label": "丛台区"}, {
+            "value": "复兴区",
+            "label": "复兴区"
+        }, {"value": "峰峰矿区", "label": "峰峰矿区"}, {
+            "value": "邯郸县",
+            "label": "邯郸县"
+        }, {"value": "临漳县", "label": "临漳县"}, {
+            "value": "成安县",
+            "label": "成安县"
+        }, {"value": "大名县", "label": "大名县"}, {
+            "value": "涉县",
+            "label": "涉县"
+        }, {"value": "磁县", "label": "磁县"}, {
+            "value": "肥乡县",
+            "label": "肥乡县"
+        }, {"value": "永年县", "label": "永年县"}, {
+            "value": "邱县",
+            "label": "邱县"
+        }, {"value": "鸡泽县", "label": "鸡泽县"}, {
+            "value": "广平县",
+            "label": "广平县"
+        }, {"value": "馆陶县", "label": "馆陶县"}, {
+            "value": "魏县",
+            "label": "魏县"
+        }, {"value": "曲周县", "label": "曲周县"}, {
+            "value": "武安市",
+            "label": "武安市"
+        }]
+    }, {
+        "value": "邢台市",
+        "label": "邢台市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "桥东区",
+            "label": "桥东区"
+        }, {"value": "桥西区", "label": "桥西区"}, {
+            "value": "邢台县",
+            "label": "邢台县"
+        }, {"value": "临城县", "label": "临城县"}, {
+            "value": "内丘县",
+            "label": "内丘县"
+        }, {"value": "柏乡县", "label": "柏乡县"}, {
+            "value": "隆尧县",
+            "label": "隆尧县"
+        }, {"value": "任县", "label": "任县"}, {
+            "value": "南和县",
+            "label": "南和县"
+        }, {"value": "宁晋县", "label": "宁晋县"}, {
+            "value": "巨鹿县",
+            "label": "巨鹿县"
+        }, {"value": "新河县", "label": "新河县"}, {
+            "value": "广宗县",
+            "label": "广宗县"
+        }, {"value": "平乡县", "label": "平乡县"}, {
+            "value": "威县",
+            "label": "威县"
+        }, {"value": "清河县", "label": "清河县"}, {
+            "value": "临西县",
+            "label": "临西县"
+        }, {"value": "南宫市", "label": "南宫市"}, {
+            "value": "沙河市",
+            "label": "沙河市"
+        }]
+    }, {
+        "value": "保定市",
+        "label": "保定市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "竞秀区",
+            "label": "竞秀区"
+        }, {"value": "莲池区", "label": "莲池区"}, {
+            "value": "满城区",
+            "label": "满城区"
+        }, {"value": "清苑区", "label": "清苑区"}, {
+            "value": "徐水区",
+            "label": "徐水区"
+        }, {"value": "涞水县", "label": "涞水县"}, {
+            "value": "阜平县",
+            "label": "阜平县"
+        }, {"value": "定兴县", "label": "定兴县"}, {
+            "value": "唐县",
+            "label": "唐县"
+        }, {"value": "高阳县", "label": "高阳县"}, {
+            "value": "容城县",
+            "label": "容城县"
+        }, {"value": "涞源县", "label": "涞源县"}, {
+            "value": "望都县",
+            "label": "望都县"
+        }, {"value": "安新县", "label": "安新县"}, {
+            "value": "易县",
+            "label": "易县"
+        }, {"value": "曲阳县", "label": "曲阳县"}, {
+            "value": "蠡县",
+            "label": "蠡县"
+        }, {"value": "顺平县", "label": "顺平县"}, {
+            "value": "博野县",
+            "label": "博野县"
+        }, {"value": "雄县", "label": "雄县"}, {
+            "value": "涿州市",
+            "label": "涿州市"
+        }, {"value": "安国市", "label": "安国市"}, {
+            "value": "高碑店市",
+            "label": "高碑店市"
+        }]
+    }, {
+        "value": "张家口市",
+        "label": "张家口市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "桥东区",
+            "label": "桥东区"
+        }, {"value": "桥西区", "label": "桥西区"}, {
+            "value": "宣化区",
+            "label": "宣化区"
+        }, {"value": "下花园区", "label": "下花园区"}, {
+            "value": "万全区",
+            "label": "万全区"
+        }, {"value": "崇礼区", "label": "崇礼区"}, {
+            "value": "张北县",
+            "label": "张北县"
+        }, {"value": "康保县", "label": "康保县"}, {
+            "value": "沽源县",
+            "label": "沽源县"
+        }, {"value": "尚义县", "label": "尚义县"}, {
+            "value": "蔚县",
+            "label": "蔚县"
+        }, {"value": "阳原县", "label": "阳原县"}, {
+            "value": "怀安县",
+            "label": "怀安县"
+        }, {"value": "怀来县", "label": "怀来县"}, {
+            "value": "涿鹿县",
+            "label": "涿鹿县"
+        }, {"value": "赤城县", "label": "赤城县"}]
+    }, {
+        "value": "承德市",
+        "label": "承德市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "双桥区",
+            "label": "双桥区"
+        }, {
+            "value": "双滦区",
+            "label": "双滦区"
+        }, {
+            "value": "鹰手营子矿区",
+            "label": "鹰手营子矿区"
+        }, {"value": "承德县", "label": "承德县"}, {
+            "value": "兴隆县",
+            "label": "兴隆县"
+        }, {"value": "平泉县", "label": "平泉县"}, {
+            "value": "滦平县",
+            "label": "滦平县"
+        }, {
+            "value": "隆化县",
+            "label": "隆化县"
+        }, {
+            "value": "丰宁满族自治县",
+            "label": "丰宁满族自治县"
+        }, {
+            "value": "宽城满族自治县",
+            "label": "宽城满族自治县"
+        }, {
+            "value": "围场满族蒙古族自治县",
+            "label": "围场满族蒙古族自治县"
+        }]
+    }, {
+        "value": "沧州市",
+        "label": "沧州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "新华区",
+            "label": "新华区"
+        }, {"value": "运河区", "label": "运河区"}, {
+            "value": "沧县",
+            "label": "沧县"
+        }, {"value": "青县", "label": "青县"}, {
+            "value": "东光县",
+            "label": "东光县"
+        }, {"value": "海兴县", "label": "海兴县"}, {
+            "value": "盐山县",
+            "label": "盐山县"
+        }, {"value": "肃宁县", "label": "肃宁县"}, {
+            "value": "南皮县",
+            "label": "南皮县"
+        }, {"value": "吴桥县", "label": "吴桥县"}, {
+            "value": "献县",
+            "label": "献县"
+        }, {
+            "value": "孟村回族自治县",
+            "label": "孟村回族自治县"
+        }, {"value": "泊头市", "label": "泊头市"}, {
+            "value": "任丘市",
+            "label": "任丘市"
+        }, {"value": "黄骅市", "label": "黄骅市"}, {
+            "value": "河间市",
+            "label": "河间市"
+        }]
+    }, {
+        "value": "廊坊市",
+        "label": "廊坊市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "安次区",
+            "label": "安次区"
+        }, {"value": "广阳区", "label": "广阳区"}, {
+            "value": "固安县",
+            "label": "固安县"
+        }, {"value": "永清县", "label": "永清县"}, {
+            "value": "香河县",
+            "label": "香河县"
+        }, {"value": "大城县", "label": "大城县"}, {
+            "value": "文安县",
+            "label": "文安县"
+        }, {
+            "value": "大厂回族自治县",
+            "label": "大厂回族自治县"
+        }, {"value": "霸州市", "label": "霸州市"}, {
+            "value": "三河市",
+            "label": "三河市"
+        }]
+    }, {
+        "value": "衡水市",
+        "label": "衡水市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "桃城区",
+            "label": "桃城区"
+        }, {"value": "冀州区", "label": "冀州区"}, {
+            "value": "枣强县",
+            "label": "枣强县"
+        }, {"value": "武邑县", "label": "武邑县"}, {
+            "value": "武强县",
+            "label": "武强县"
+        }, {"value": "饶阳县", "label": "饶阳县"}, {
+            "value": "安平县",
+            "label": "安平县"
+        }, {"value": "故城县", "label": "故城县"}, {
+            "value": "景县",
+            "label": "景县"
+        }, {"value": "阜城县", "label": "阜城县"}, {
+            "value": "深州市",
+            "label": "深州市"
+        }]
+    }, {
+        "value": "直辖县",
+        "label": "直辖县",
+        "children": [{"value": "定州市", "label": "定州市"}, {
+            "value": "辛集市",
+            "label": "辛集市"
+        }]
+    }]
+}, {
+    "value": "山西省",
+    "label": "山西省",
+    "children": [{
+        "value": "太原市",
+        "label": "太原市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "小店区",
+            "label": "小店区"
+        }, {"value": "迎泽区", "label": "迎泽区"}, {
+            "value": "杏花岭区",
+            "label": "杏花岭区"
+        }, {
+            "value": "尖草坪区",
+            "label": "尖草坪区"
+        }, {"value": "万柏林区", "label": "万柏林区"}, {
+            "value": "晋源区",
+            "label": "晋源区"
+        }, {"value": "清徐县", "label": "清徐县"}, {
+            "value": "阳曲县",
+            "label": "阳曲县"
+        }, {"value": "娄烦县", "label": "娄烦县"}, {
+            "value": "古交市",
+            "label": "古交市"
+        }]
+    }, {
+        "value": "大同市",
+        "label": "大同市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "城区",
+            "label": "城区"
+        }, {"value": "矿区", "label": "矿区"}, {
+            "value": "南郊区",
+            "label": "南郊区"
+        }, {"value": "新荣区", "label": "新荣区"}, {
+            "value": "阳高县",
+            "label": "阳高县"
+        }, {"value": "天镇县", "label": "天镇县"}, {
+            "value": "广灵县",
+            "label": "广灵县"
+        }, {"value": "灵丘县", "label": "灵丘县"}, {
+            "value": "浑源县",
+            "label": "浑源县"
+        }, {"value": "左云县", "label": "左云县"}, {
+            "value": "大同县",
+            "label": "大同县"
+        }]
+    }, {
+        "value": "阳泉市",
+        "label": "阳泉市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "城区",
+            "label": "城区"
+        }, {"value": "矿区", "label": "矿区"}, {
+            "value": "郊区",
+            "label": "郊区"
+        }, {"value": "平定县", "label": "平定县"}, {
+            "value": "盂县",
+            "label": "盂县"
+        }]
+    }, {
+        "value": "长治市",
+        "label": "长治市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "城区",
+            "label": "城区"
+        }, {"value": "郊区", "label": "郊区"}, {
+            "value": "长治县",
+            "label": "长治县"
+        }, {"value": "襄垣县", "label": "襄垣县"}, {
+            "value": "屯留县",
+            "label": "屯留县"
+        }, {"value": "平顺县", "label": "平顺县"}, {
+            "value": "黎城县",
+            "label": "黎城县"
+        }, {"value": "壶关县", "label": "壶关县"}, {
+            "value": "长子县",
+            "label": "长子县"
+        }, {"value": "武乡县", "label": "武乡县"}, {
+            "value": "沁县",
+            "label": "沁县"
+        }, {"value": "沁源县", "label": "沁源县"}, {
+            "value": "潞城市",
+            "label": "潞城市"
+        }]
+    }, {
+        "value": "晋城市",
+        "label": "晋城市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "城区",
+            "label": "城区"
+        }, {"value": "沁水县", "label": "沁水县"}, {
+            "value": "阳城县",
+            "label": "阳城县"
+        }, {"value": "陵川县", "label": "陵川县"}, {
+            "value": "泽州县",
+            "label": "泽州县"
+        }, {"value": "高平市", "label": "高平市"}]
+    }, {
+        "value": "朔州市",
+        "label": "朔州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "朔城区",
+            "label": "朔城区"
+        }, {"value": "平鲁区", "label": "平鲁区"}, {
+            "value": "山阴县",
+            "label": "山阴县"
+        }, {"value": "应县", "label": "应县"}, {
+            "value": "右玉县",
+            "label": "右玉县"
+        }, {"value": "怀仁县", "label": "怀仁县"}]
+    }, {
+        "value": "晋中市",
+        "label": "晋中市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "榆次区",
+            "label": "榆次区"
+        }, {"value": "榆社县", "label": "榆社县"}, {
+            "value": "左权县",
+            "label": "左权县"
+        }, {"value": "和顺县", "label": "和顺县"}, {
+            "value": "昔阳县",
+            "label": "昔阳县"
+        }, {"value": "寿阳县", "label": "寿阳县"}, {
+            "value": "太谷县",
+            "label": "太谷县"
+        }, {"value": "祁县", "label": "祁县"}, {
+            "value": "平遥县",
+            "label": "平遥县"
+        }, {"value": "灵石县", "label": "灵石县"}, {
+            "value": "介休市",
+            "label": "介休市"
+        }]
+    }, {
+        "value": "运城市",
+        "label": "运城市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "盐湖区",
+            "label": "盐湖区"
+        }, {"value": "临猗县", "label": "临猗县"}, {
+            "value": "万荣县",
+            "label": "万荣县"
+        }, {"value": "闻喜县", "label": "闻喜县"}, {
+            "value": "稷山县",
+            "label": "稷山县"
+        }, {"value": "新绛县", "label": "新绛县"}, {
+            "value": "绛县",
+            "label": "绛县"
+        }, {"value": "垣曲县", "label": "垣曲县"}, {
+            "value": "夏县",
+            "label": "夏县"
+        }, {"value": "平陆县", "label": "平陆县"}, {
+            "value": "芮城县",
+            "label": "芮城县"
+        }, {"value": "永济市", "label": "永济市"}, {
+            "value": "河津市",
+            "label": "河津市"
+        }]
+    }, {
+        "value": "忻州市",
+        "label": "忻州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "忻府区",
+            "label": "忻府区"
+        }, {"value": "定襄县", "label": "定襄县"}, {
+            "value": "五台县",
+            "label": "五台县"
+        }, {"value": "代县", "label": "代县"}, {
+            "value": "繁峙县",
+            "label": "繁峙县"
+        }, {"value": "宁武县", "label": "宁武县"}, {
+            "value": "静乐县",
+            "label": "静乐县"
+        }, {"value": "神池县", "label": "神池县"}, {
+            "value": "五寨县",
+            "label": "五寨县"
+        }, {"value": "岢岚县", "label": "岢岚县"}, {
+            "value": "河曲县",
+            "label": "河曲县"
+        }, {"value": "保德县", "label": "保德县"}, {
+            "value": "偏关县",
+            "label": "偏关县"
+        }, {"value": "原平市", "label": "原平市"}]
+    }, {
+        "value": "临汾市",
+        "label": "临汾市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "尧都区",
+            "label": "尧都区"
+        }, {"value": "曲沃县", "label": "曲沃县"}, {
+            "value": "翼城县",
+            "label": "翼城县"
+        }, {"value": "襄汾县", "label": "襄汾县"}, {
+            "value": "洪洞县",
+            "label": "洪洞县"
+        }, {"value": "古县", "label": "古县"}, {
+            "value": "安泽县",
+            "label": "安泽县"
+        }, {"value": "浮山县", "label": "浮山县"}, {
+            "value": "吉县",
+            "label": "吉县"
+        }, {"value": "乡宁县", "label": "乡宁县"}, {
+            "value": "大宁县",
+            "label": "大宁县"
+        }, {"value": "隰县", "label": "隰县"}, {
+            "value": "永和县",
+            "label": "永和县"
+        }, {"value": "蒲县", "label": "蒲县"}, {
+            "value": "汾西县",
+            "label": "汾西县"
+        }, {"value": "侯马市", "label": "侯马市"}, {
+            "value": "霍州市",
+            "label": "霍州市"
+        }]
+    }, {
+        "value": "吕梁市",
+        "label": "吕梁市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "离石区",
+            "label": "离石区"
+        }, {"value": "文水县", "label": "文水县"}, {
+            "value": "交城县",
+            "label": "交城县"
+        }, {"value": "兴县", "label": "兴县"}, {
+            "value": "临县",
+            "label": "临县"
+        }, {"value": "柳林县", "label": "柳林县"}, {
+            "value": "石楼县",
+            "label": "石楼县"
+        }, {"value": "岚县", "label": "岚县"}, {
+            "value": "方山县",
+            "label": "方山县"
+        }, {"value": "中阳县", "label": "中阳县"}, {
+            "value": "交口县",
+            "label": "交口县"
+        }, {"value": "孝义市", "label": "孝义市"}, {
+            "value": "汾阳市",
+            "label": "汾阳市"
+        }]
+    }]
+}, {
+    "value": "内蒙古自治区",
+    "label": "内蒙古自治区",
+    "children": [{
+        "value": "呼和浩特市",
+        "label": "呼和浩特市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "新城区",
+            "label": "新城区"
+        }, {"value": "回民区", "label": "回民区"}, {
+            "value": "玉泉区",
+            "label": "玉泉区"
+        }, {"value": "赛罕区", "label": "赛罕区"}, {
+            "value": "土默特左旗",
+            "label": "土默特左旗"
+        }, {
+            "value": "托克托县",
+            "label": "托克托县"
+        }, {
+            "value": "和林格尔县",
+            "label": "和林格尔县"
+        }, {"value": "清水河县", "label": "清水河县"}, {
+            "value": "武川县",
+            "label": "武川县"
+        }]
+    }, {
+        "value": "包头市",
+        "label": "包头市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "东河区",
+            "label": "东河区"
+        }, {"value": "昆都仑区", "label": "昆都仑区"}, {
+            "value": "青山区",
+            "label": "青山区"
+        }, {
+            "value": "石拐区",
+            "label": "石拐区"
+        }, {
+            "value": "白云鄂博矿区",
+            "label": "白云鄂博矿区"
+        }, {"value": "九原区", "label": "九原区"}, {
+            "value": "土默特右旗",
+            "label": "土默特右旗"
+        }, {
+            "value": "固阳县",
+            "label": "固阳县"
+        }, {
+            "value": "达尔罕茂明安联合旗",
+            "label": "达尔罕茂明安联合旗"
+        }]
+    }, {
+        "value": "乌海市",
+        "label": "乌海市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {"value": "海勃湾区", "label": "海勃湾区"}, {
+            "value": "海南区",
+            "label": "海南区"
+        }, {"value": "乌达区", "label": "乌达区"}]
+    }, {
+        "value": "赤峰市",
+        "label": "赤峰市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "红山区",
+            "label": "红山区"
+        }, {"value": "元宝山区", "label": "元宝山区"}, {
+            "value": "松山区",
+            "label": "松山区"
+        }, {
+            "value": "阿鲁科尔沁旗",
+            "label": "阿鲁科尔沁旗"
+        }, {
+            "value": "巴林左旗",
+            "label": "巴林左旗"
+        }, {"value": "巴林右旗", "label": "巴林右旗"}, {
+            "value": "林西县",
+            "label": "林西县"
+        }, {
+            "value": "克什克腾旗",
+            "label": "克什克腾旗"
+        }, {
+            "value": "翁牛特旗",
+            "label": "翁牛特旗"
+        }, {"value": "喀喇沁旗", "label": "喀喇沁旗"}, {
+            "value": "宁城县",
+            "label": "宁城县"
+        }, {"value": "敖汉旗", "label": "敖汉旗"}]
+    }, {
+        "value": "通辽市",
+        "label": "通辽市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {
+            "value": "科尔沁区",
+            "label": "科尔沁区"
+        }, {
+            "value": "科尔沁左翼中旗",
+            "label": "科尔沁左翼中旗"
+        }, {
+            "value": "科尔沁左翼后旗",
+            "label": "科尔沁左翼后旗"
+        }, {"value": "开鲁县", "label": "开鲁县"}, {
+            "value": "库伦旗",
+            "label": "库伦旗"
+        }, {"value": "奈曼旗", "label": "奈曼旗"}, {
+            "value": "扎鲁特旗",
+            "label": "扎鲁特旗"
+        }, {"value": "霍林郭勒市", "label": "霍林郭勒市"}]
+    }, {
+        "value": "鄂尔多斯市",
+        "label": "鄂尔多斯市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "东胜区",
+            "label": "东胜区"
+        }, {
+            "value": "康巴什区",
+            "label": "康巴什区"
+        }, {
+            "value": "达拉特旗",
+            "label": "达拉特旗"
+        }, {
+            "value": "准格尔旗",
+            "label": "准格尔旗"
+        }, {
+            "value": "鄂托克前旗",
+            "label": "鄂托克前旗"
+        }, {"value": "鄂托克旗", "label": "鄂托克旗"}, {
+            "value": "杭锦旗",
+            "label": "杭锦旗"
+        }, {"value": "乌审旗", "label": "乌审旗"}, {
+            "value": "伊金霍洛旗",
+            "label": "伊金霍洛旗"
+        }]
+    }, {
+        "value": "呼伦贝尔市",
+        "label": "呼伦贝尔市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {
+            "value": "海拉尔区",
+            "label": "海拉尔区"
+        }, {
+            "value": "扎赉诺尔区",
+            "label": "扎赉诺尔区"
+        }, {
+            "value": "阿荣旗",
+            "label": "阿荣旗"
+        }, {
+            "value": "莫力达瓦达斡尔族自治旗",
+            "label": "莫力达瓦达斡尔族自治旗"
+        }, {
+            "value": "鄂伦春自治旗",
+            "label": "鄂伦春自治旗"
+        }, {
+            "value": "鄂温克族自治旗",
+            "label": "鄂温克族自治旗"
+        }, {
+            "value": "陈巴尔虎旗",
+            "label": "陈巴尔虎旗"
+        }, {
+            "value": "新巴尔虎左旗",
+            "label": "新巴尔虎左旗"
+        }, {
+            "value": "新巴尔虎右旗",
+            "label": "新巴尔虎右旗"
+        }, {
+            "value": "满洲里市",
+            "label": "满洲里市"
+        }, {
+            "value": "牙克石市",
+            "label": "牙克石市"
+        }, {
+            "value": "扎兰屯市",
+            "label": "扎兰屯市"
+        }, {
+            "value": "额尔古纳市",
+            "label": "额尔古纳市"
+        }, {"value": "根河市", "label": "根河市"}]
+    }, {
+        "value": "巴彦淖尔市",
+        "label": "巴彦淖尔市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "临河区",
+            "label": "临河区"
+        }, {"value": "五原县", "label": "五原县"}, {
+            "value": "磴口县",
+            "label": "磴口县"
+        }, {
+            "value": "乌拉特前旗",
+            "label": "乌拉特前旗"
+        }, {
+            "value": "乌拉特中旗",
+            "label": "乌拉特中旗"
+        }, {
+            "value": "乌拉特后旗",
+            "label": "乌拉特后旗"
+        }, {"value": "杭锦后旗", "label": "杭锦后旗"}]
+    }, {
+        "value": "乌兰察布市",
+        "label": "乌兰察布市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "集宁区",
+            "label": "集宁区"
+        }, {"value": "卓资县", "label": "卓资县"}, {
+            "value": "化德县",
+            "label": "化德县"
+        }, {"value": "商都县", "label": "商都县"}, {
+            "value": "兴和县",
+            "label": "兴和县"
+        }, {
+            "value": "凉城县",
+            "label": "凉城县"
+        }, {
+            "value": "察哈尔右翼前旗",
+            "label": "察哈尔右翼前旗"
+        }, {
+            "value": "察哈尔右翼中旗",
+            "label": "察哈尔右翼中旗"
+        }, {
+            "value": "察哈尔右翼后旗",
+            "label": "察哈尔右翼后旗"
+        }, {"value": "四子王旗", "label": "四子王旗"}, {
+            "value": "丰镇市",
+            "label": "丰镇市"
+        }]
+    }, {
+        "value": "兴安盟",
+        "label": "兴安盟",
+        "children": [{
+            "value": "乌兰浩特市",
+            "label": "乌兰浩特市"
+        }, {
+            "value": "阿尔山市",
+            "label": "阿尔山市"
+        }, {
+            "value": "科尔沁右翼前旗",
+            "label": "科尔沁右翼前旗"
+        }, {
+            "value": "科尔沁右翼中旗",
+            "label": "科尔沁右翼中旗"
+        }, {"value": "扎赉特旗", "label": "扎赉特旗"}, {
+            "value": "突泉县",
+            "label": "突泉县"
+        }]
+    }, {
+        "value": "锡林郭勒盟",
+        "label": "锡林郭勒盟",
+        "children": [{
+            "value": "二连浩特市",
+            "label": "二连浩特市"
+        }, {
+            "value": "锡林浩特市",
+            "label": "锡林浩特市"
+        }, {
+            "value": "阿巴嘎旗",
+            "label": "阿巴嘎旗"
+        }, {
+            "value": "苏尼特左旗",
+            "label": "苏尼特左旗"
+        }, {
+            "value": "苏尼特右旗",
+            "label": "苏尼特右旗"
+        }, {
+            "value": "东乌珠穆沁旗",
+            "label": "东乌珠穆沁旗"
+        }, {
+            "value": "西乌珠穆沁旗",
+            "label": "西乌珠穆沁旗"
+        }, {"value": "太仆寺旗", "label": "太仆寺旗"}, {
+            "value": "镶黄旗",
+            "label": "镶黄旗"
+        }, {"value": "正镶白旗", "label": "正镶白旗"}, {
+            "value": "正蓝旗",
+            "label": "正蓝旗"
+        }, {"value": "多伦县", "label": "多伦县"}]
+    }, {
+        "value": "阿拉善盟",
+        "label": "阿拉善盟",
+        "children": [{
+            "value": "阿拉善左旗",
+            "label": "阿拉善左旗"
+        }, {
+            "value": "阿拉善右旗",
+            "label": "阿拉善右旗"
+        }, {"value": "额济纳旗", "label": "额济纳旗"}]
+    }]
+}, {
+    "value": "辽宁省",
+    "label": "辽宁省",
+    "children": [{
+        "value": "沈阳市",
+        "label": "沈阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "和平区",
+            "label": "和平区"
+        }, {"value": "沈河区", "label": "沈河区"}, {
+            "value": "大东区",
+            "label": "大东区"
+        }, {"value": "皇姑区", "label": "皇姑区"}, {
+            "value": "铁西区",
+            "label": "铁西区"
+        }, {"value": "苏家屯区", "label": "苏家屯区"}, {
+            "value": "浑南区",
+            "label": "浑南区"
+        }, {"value": "沈北新区", "label": "沈北新区"}, {
+            "value": "于洪区",
+            "label": "于洪区"
+        }, {"value": "辽中区", "label": "辽中区"}, {
+            "value": "康平县",
+            "label": "康平县"
+        }, {"value": "法库县", "label": "法库县"}, {
+            "value": "新民市",
+            "label": "新民市"
+        }]
+    }, {
+        "value": "大连市",
+        "label": "大连市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "中山区",
+            "label": "中山区"
+        }, {"value": "西岗区", "label": "西岗区"}, {
+            "value": "沙河口区",
+            "label": "沙河口区"
+        }, {
+            "value": "甘井子区",
+            "label": "甘井子区"
+        }, {"value": "旅顺口区", "label": "旅顺口区"}, {
+            "value": "金州区",
+            "label": "金州区"
+        }, {"value": "普兰店区", "label": "普兰店区"}, {
+            "value": "长海县",
+            "label": "长海县"
+        }, {"value": "瓦房店市", "label": "瓦房店市"}, {
+            "value": "庄河市",
+            "label": "庄河市"
+        }]
+    }, {
+        "value": "鞍山市",
+        "label": "鞍山市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "铁东区",
+            "label": "铁东区"
+        }, {"value": "铁西区", "label": "铁西区"}, {
+            "value": "立山区",
+            "label": "立山区"
+        }, {"value": "千山区", "label": "千山区"}, {
+            "value": "台安县",
+            "label": "台安县"
+        }, {
+            "value": "岫岩满族自治县",
+            "label": "岫岩满族自治县"
+        }, {"value": "海城市", "label": "海城市"}]
+    }, {
+        "value": "抚顺市",
+        "label": "抚顺市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "新抚区",
+            "label": "新抚区"
+        }, {"value": "东洲区", "label": "东洲区"}, {
+            "value": "望花区",
+            "label": "望花区"
+        }, {"value": "顺城区", "label": "顺城区"}, {
+            "value": "抚顺县",
+            "label": "抚顺县"
+        }, {
+            "value": "新宾满族自治县",
+            "label": "新宾满族自治县"
+        }, {
+            "value": "清原满族自治县",
+            "label": "清原满族自治县"
+        }]
+    }, {
+        "value": "本溪市",
+        "label": "本溪市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "平山区",
+            "label": "平山区"
+        }, {"value": "溪湖区", "label": "溪湖区"}, {
+            "value": "明山区",
+            "label": "明山区"
+        }, {
+            "value": "南芬区",
+            "label": "南芬区"
+        }, {
+            "value": "本溪满族自治县",
+            "label": "本溪满族自治县"
+        }, {
+            "value": "桓仁满族自治县",
+            "label": "桓仁满族自治县"
+        }]
+    }, {
+        "value": "丹东市",
+        "label": "丹东市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "元宝区",
+            "label": "元宝区"
+        }, {"value": "振兴区", "label": "振兴区"}, {
+            "value": "振安区",
+            "label": "振安区"
+        }, {
+            "value": "宽甸满族自治县",
+            "label": "宽甸满族自治县"
+        }, {"value": "东港市", "label": "东港市"}, {
+            "value": "凤城市",
+            "label": "凤城市"
+        }]
+    }, {
+        "value": "锦州市",
+        "label": "锦州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "古塔区",
+            "label": "古塔区"
+        }, {"value": "凌河区", "label": "凌河区"}, {
+            "value": "太和区",
+            "label": "太和区"
+        }, {"value": "黑山县", "label": "黑山县"}, {
+            "value": "义县",
+            "label": "义县"
+        }, {"value": "凌海市", "label": "凌海市"}, {
+            "value": "北镇市",
+            "label": "北镇市"
+        }]
+    }, {
+        "value": "营口市",
+        "label": "营口市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "站前区",
+            "label": "站前区"
+        }, {"value": "西市区", "label": "西市区"}, {
+            "value": "鲅鱼圈区",
+            "label": "鲅鱼圈区"
+        }, {"value": "老边区", "label": "老边区"}, {
+            "value": "盖州市",
+            "label": "盖州市"
+        }, {"value": "大石桥市", "label": "大石桥市"}]
+    }, {
+        "value": "阜新市",
+        "label": "阜新市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "海州区",
+            "label": "海州区"
+        }, {"value": "新邱区", "label": "新邱区"}, {
+            "value": "太平区",
+            "label": "太平区"
+        }, {"value": "清河门区", "label": "清河门区"}, {
+            "value": "细河区",
+            "label": "细河区"
+        }, {
+            "value": "阜新蒙古族自治县",
+            "label": "阜新蒙古族自治县"
+        }, {"value": "彰武县", "label": "彰武县"}]
+    }, {
+        "value": "辽阳市",
+        "label": "辽阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "白塔区",
+            "label": "白塔区"
+        }, {"value": "文圣区", "label": "文圣区"}, {
+            "value": "宏伟区",
+            "label": "宏伟区"
+        }, {
+            "value": "弓长岭区",
+            "label": "弓长岭区"
+        }, {"value": "太子河区", "label": "太子河区"}, {
+            "value": "辽阳县",
+            "label": "辽阳县"
+        }, {"value": "灯塔市", "label": "灯塔市"}]
+    }, {
+        "value": "盘锦市",
+        "label": "盘锦市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {
+            "value": "双台子区",
+            "label": "双台子区"
+        }, {"value": "兴隆台区", "label": "兴隆台区"}, {
+            "value": "大洼区",
+            "label": "大洼区"
+        }, {"value": "盘山县", "label": "盘山县"}]
+    }, {
+        "value": "铁岭市",
+        "label": "铁岭市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "银州区",
+            "label": "银州区"
+        }, {"value": "清河区", "label": "清河区"}, {
+            "value": "铁岭县",
+            "label": "铁岭县"
+        }, {"value": "西丰县", "label": "西丰县"}, {
+            "value": "昌图县",
+            "label": "昌图县"
+        }, {"value": "调兵山市", "label": "调兵山市"}, {
+            "value": "开原市",
+            "label": "开原市"
+        }]
+    }, {
+        "value": "朝阳市",
+        "label": "朝阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "双塔区",
+            "label": "双塔区"
+        }, {"value": "龙城区", "label": "龙城区"}, {
+            "value": "朝阳县",
+            "label": "朝阳县"
+        }, {
+            "value": "建平县",
+            "label": "建平县"
+        }, {
+            "value": "喀喇沁左翼蒙古族自治县",
+            "label": "喀喇沁左翼蒙古族自治县"
+        }, {"value": "北票市", "label": "北票市"}, {
+            "value": "凌源市",
+            "label": "凌源市"
+        }]
+    }, {
+        "value": "葫芦岛市",
+        "label": "葫芦岛市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "连山区",
+            "label": "连山区"
+        }, {"value": "龙港区", "label": "龙港区"}, {
+            "value": "南票区",
+            "label": "南票区"
+        }, {"value": "绥中县", "label": "绥中县"}, {
+            "value": "建昌县",
+            "label": "建昌县"
+        }, {"value": "兴城市", "label": "兴城市"}]
+    }]
+}, {
+    "value": "吉林省",
+    "label": "吉林省",
+    "children": [{
+        "value": "长春市",
+        "label": "长春市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "南关区",
+            "label": "南关区"
+        }, {"value": "宽城区", "label": "宽城区"}, {
+            "value": "朝阳区",
+            "label": "朝阳区"
+        }, {"value": "二道区", "label": "二道区"}, {
+            "value": "绿园区",
+            "label": "绿园区"
+        }, {"value": "双阳区", "label": "双阳区"}, {
+            "value": "九台区",
+            "label": "九台区"
+        }, {"value": "农安县", "label": "农安县"}, {
+            "value": "榆树市",
+            "label": "榆树市"
+        }, {"value": "德惠市", "label": "德惠市"}]
+    }, {
+        "value": "吉林市",
+        "label": "吉林市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "昌邑区",
+            "label": "昌邑区"
+        }, {"value": "龙潭区", "label": "龙潭区"}, {
+            "value": "船营区",
+            "label": "船营区"
+        }, {"value": "丰满区", "label": "丰满区"}, {
+            "value": "永吉县",
+            "label": "永吉县"
+        }, {"value": "蛟河市", "label": "蛟河市"}, {
+            "value": "桦甸市",
+            "label": "桦甸市"
+        }, {"value": "舒兰市", "label": "舒兰市"}, {
+            "value": "磐石市",
+            "label": "磐石市"
+        }]
+    }, {
+        "value": "四平市",
+        "label": "四平市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "铁西区",
+            "label": "铁西区"
+        }, {"value": "铁东区", "label": "铁东区"}, {
+            "value": "梨树县",
+            "label": "梨树县"
+        }, {
+            "value": "伊通满族自治县",
+            "label": "伊通满族自治县"
+        }, {"value": "公主岭市", "label": "公主岭市"}, {
+            "value": "双辽市",
+            "label": "双辽市"
+        }]
+    }, {
+        "value": "辽源市",
+        "label": "辽源市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "龙山区",
+            "label": "龙山区"
+        }, {"value": "西安区", "label": "西安区"}, {
+            "value": "东丰县",
+            "label": "东丰县"
+        }, {"value": "东辽县", "label": "东辽县"}]
+    }, {
+        "value": "通化市",
+        "label": "通化市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "东昌区",
+            "label": "东昌区"
+        }, {"value": "二道江区", "label": "二道江区"}, {
+            "value": "通化县",
+            "label": "通化县"
+        }, {"value": "辉南县", "label": "辉南县"}, {
+            "value": "柳河县",
+            "label": "柳河县"
+        }, {"value": "梅河口市", "label": "梅河口市"}, {
+            "value": "集安市",
+            "label": "集安市"
+        }]
+    }, {
+        "value": "白山市",
+        "label": "白山市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "浑江区",
+            "label": "浑江区"
+        }, {"value": "江源区", "label": "江源区"}, {
+            "value": "抚松县",
+            "label": "抚松县"
+        }, {
+            "value": "靖宇县",
+            "label": "靖宇县"
+        }, {
+            "value": "长白朝鲜族自治县",
+            "label": "长白朝鲜族自治县"
+        }, {"value": "临江市", "label": "临江市"}]
+    }, {
+        "value": "松原市",
+        "label": "松原市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "宁江区",
+            "label": "宁江区"
+        }, {
+            "value": "前郭尔罗斯蒙古族自治县",
+            "label": "前郭尔罗斯蒙古族自治县"
+        }, {"value": "长岭县", "label": "长岭县"}, {
+            "value": "乾安县",
+            "label": "乾安县"
+        }, {"value": "扶余市", "label": "扶余市"}]
+    }, {
+        "value": "白城市",
+        "label": "白城市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "洮北区",
+            "label": "洮北区"
+        }, {"value": "镇赉县", "label": "镇赉县"}, {
+            "value": "通榆县",
+            "label": "通榆县"
+        }, {"value": "洮南市", "label": "洮南市"}, {
+            "value": "大安市",
+            "label": "大安市"
+        }]
+    }, {
+        "value": "延边朝鲜族自治州",
+        "label": "延边朝鲜族自治州",
+        "children": [{"value": "延吉市", "label": "延吉市"}, {
+            "value": "图们市",
+            "label": "图们市"
+        }, {"value": "敦化市", "label": "敦化市"}, {
+            "value": "珲春市",
+            "label": "珲春市"
+        }, {"value": "龙井市", "label": "龙井市"}, {
+            "value": "和龙市",
+            "label": "和龙市"
+        }, {"value": "汪清县", "label": "汪清县"}, {
+            "value": "安图县",
+            "label": "安图县"
+        }]
+    }]
+}, {
+    "value": "黑龙江省", "label": "黑龙江省", "children": [{
+        "value": "哈尔滨市",
+        "label": "哈尔滨市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "道里区",
+            "label": "道里区"
+        }, {"value": "南岗区", "label": "南岗区"}, {
+            "value": "道外区",
+            "label": "道外区"
+        }, {"value": "平房区", "label": "平房区"}, {
+            "value": "松北区",
+            "label": "松北区"
+        }, {"value": "香坊区", "label": "香坊区"}, {
+            "value": "呼兰区",
+            "label": "呼兰区"
+        }, {"value": "阿城区", "label": "阿城区"}, {
+            "value": "双城区",
+            "label": "双城区"
+        }, {"value": "依兰县", "label": "依兰县"}, {
+            "value": "方正县",
+            "label": "方正县"
+        }, {"value": "宾县", "label": "宾县"}, {
+            "value": "巴彦县",
+            "label": "巴彦县"
+        }, {"value": "木兰县", "label": "木兰县"}, {
+            "value": "通河县",
+            "label": "通河县"
+        }, {"value": "延寿县", "label": "延寿县"}, {
+            "value": "尚志市",
+            "label": "尚志市"
+        }, {"value": "五常市", "label": "五常市"}]
+    }, {
+        "value": "齐齐哈尔市",
+        "label": "齐齐哈尔市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "龙沙区",
+            "label": "龙沙区"
+        }, {"value": "建华区", "label": "建华区"}, {
+            "value": "铁锋区",
+            "label": "铁锋区"
+        }, {
+            "value": "昂昂溪区",
+            "label": "昂昂溪区"
+        }, {
+            "value": "富拉尔基区",
+            "label": "富拉尔基区"
+        }, {
+            "value": "碾子山区",
+            "label": "碾子山区"
+        }, {
+            "value": "梅里斯达斡尔族区",
+            "label": "梅里斯达斡尔族区"
+        }, {"value": "龙江县", "label": "龙江县"}, {
+            "value": "依安县",
+            "label": "依安县"
+        }, {"value": "泰来县", "label": "泰来县"}, {
+            "value": "甘南县",
+            "label": "甘南县"
+        }, {"value": "富裕县", "label": "富裕县"}, {
+            "value": "克山县",
+            "label": "克山县"
+        }, {"value": "克东县", "label": "克东县"}, {
+            "value": "拜泉县",
+            "label": "拜泉县"
+        }, {"value": "讷河市", "label": "讷河市"}]
+    }, {
+        "value": "鸡西市",
+        "label": "鸡西市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "鸡冠区",
+            "label": "鸡冠区"
+        }, {"value": "恒山区", "label": "恒山区"}, {
+            "value": "滴道区",
+            "label": "滴道区"
+        }, {"value": "梨树区", "label": "梨树区"}, {
+            "value": "城子河区",
+            "label": "城子河区"
+        }, {"value": "麻山区", "label": "麻山区"}, {
+            "value": "鸡东县",
+            "label": "鸡东县"
+        }, {"value": "虎林市", "label": "虎林市"}, {
+            "value": "密山市",
+            "label": "密山市"
+        }]
+    }, {
+        "value": "鹤岗市",
+        "label": "鹤岗市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "向阳区",
+            "label": "向阳区"
+        }, {"value": "工农区", "label": "工农区"}, {
+            "value": "南山区",
+            "label": "南山区"
+        }, {"value": "兴安区", "label": "兴安区"}, {
+            "value": "东山区",
+            "label": "东山区"
+        }, {"value": "兴山区", "label": "兴山区"}, {
+            "value": "萝北县",
+            "label": "萝北县"
+        }, {"value": "绥滨县", "label": "绥滨县"}]
+    }, {
+        "value": "双鸭山市",
+        "label": "双鸭山市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "尖山区",
+            "label": "尖山区"
+        }, {"value": "岭东区", "label": "岭东区"}, {
+            "value": "四方台区",
+            "label": "四方台区"
+        }, {"value": "宝山区", "label": "宝山区"}, {
+            "value": "集贤县",
+            "label": "集贤县"
+        }, {"value": "友谊县", "label": "友谊县"}, {
+            "value": "宝清县",
+            "label": "宝清县"
+        }, {"value": "饶河县", "label": "饶河县"}]
+    }, {
+        "value": "大庆市",
+        "label": "大庆市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {"value": "萨尔图区", "label": "萨尔图区"}, {
+            "value": "龙凤区",
+            "label": "龙凤区"
+        }, {"value": "让胡路区", "label": "让胡路区"}, {
+            "value": "红岗区",
+            "label": "红岗区"
+        }, {"value": "大同区", "label": "大同区"}, {
+            "value": "肇州县",
+            "label": "肇州县"
+        }, {"value": "肇源县", "label": "肇源县"}, {
+            "value": "林甸县",
+            "label": "林甸县"
+        }, {
+            "value": "杜尔伯特蒙古族自治县",
+            "label": "杜尔伯特蒙古族自治县"
+        }]
+    }, {
+        "value": "伊春市",
+        "label": "伊春市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "伊春区",
+            "label": "伊春区"
+        }, {"value": "南岔区", "label": "南岔区"}, {
+            "value": "友好区",
+            "label": "友好区"
+        }, {"value": "西林区", "label": "西林区"}, {
+            "value": "翠峦区",
+            "label": "翠峦区"
+        }, {"value": "新青区", "label": "新青区"}, {
+            "value": "美溪区",
+            "label": "美溪区"
+        }, {"value": "金山屯区", "label": "金山屯区"}, {
+            "value": "五营区",
+            "label": "五营区"
+        }, {
+            "value": "乌马河区",
+            "label": "乌马河区"
+        }, {"value": "汤旺河区", "label": "汤旺河区"}, {
+            "value": "带岭区",
+            "label": "带岭区"
+        }, {"value": "乌伊岭区", "label": "乌伊岭区"}, {
+            "value": "红星区",
+            "label": "红星区"
+        }, {"value": "上甘岭区", "label": "上甘岭区"}, {
+            "value": "嘉荫县",
+            "label": "嘉荫县"
+        }, {"value": "铁力市", "label": "铁力市"}]
+    }, {
+        "value": "佳木斯市",
+        "label": "佳木斯市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "向阳区",
+            "label": "向阳区"
+        }, {"value": "前进区", "label": "前进区"}, {
+            "value": "东风区",
+            "label": "东风区"
+        }, {"value": "郊区", "label": "郊区"}, {
+            "value": "桦南县",
+            "label": "桦南县"
+        }, {"value": "桦川县", "label": "桦川县"}, {
+            "value": "汤原县",
+            "label": "汤原县"
+        }, {"value": "同江市", "label": "同江市"}, {
+            "value": "富锦市",
+            "label": "富锦市"
+        }, {"value": "抚远市", "label": "抚远市"}]
+    }, {
+        "value": "七台河市",
+        "label": "七台河市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "新兴区",
+            "label": "新兴区"
+        }, {"value": "桃山区", "label": "桃山区"}, {
+            "value": "茄子河区",
+            "label": "茄子河区"
+        }, {"value": "勃利县", "label": "勃利县"}]
+    }, {
+        "value": "牡丹江市",
+        "label": "牡丹江市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "东安区",
+            "label": "东安区"
+        }, {"value": "阳明区", "label": "阳明区"}, {
+            "value": "爱民区",
+            "label": "爱民区"
+        }, {"value": "西安区", "label": "西安区"}, {
+            "value": "林口县",
+            "label": "林口县"
+        }, {"value": "绥芬河市", "label": "绥芬河市"}, {
+            "value": "海林市",
+            "label": "海林市"
+        }, {"value": "宁安市", "label": "宁安市"}, {
+            "value": "穆棱市",
+            "label": "穆棱市"
+        }, {"value": "东宁市", "label": "东宁市"}]
+    }, {
+        "value": "黑河市",
+        "label": "黑河市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "爱辉区",
+            "label": "爱辉区"
+        }, {"value": "嫩江县", "label": "嫩江县"}, {
+            "value": "逊克县",
+            "label": "逊克县"
+        }, {"value": "孙吴县", "label": "孙吴县"}, {
+            "value": "北安市",
+            "label": "北安市"
+        }, {"value": "五大连池市", "label": "五大连池市"}]
+    }, {
+        "value": "绥化市",
+        "label": "绥化市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "北林区",
+            "label": "北林区"
+        }, {"value": "望奎县", "label": "望奎县"}, {
+            "value": "兰西县",
+            "label": "兰西县"
+        }, {"value": "青冈县", "label": "青冈县"}, {
+            "value": "庆安县",
+            "label": "庆安县"
+        }, {"value": "明水县", "label": "明水县"}, {
+            "value": "绥棱县",
+            "label": "绥棱县"
+        }, {"value": "安达市", "label": "安达市"}, {
+            "value": "肇东市",
+            "label": "肇东市"
+        }, {"value": "海伦市", "label": "海伦市"}]
+    }, {
+        "value": "大兴安岭地区",
+        "label": "大兴安岭地区",
+        "children": [{"value": "呼玛县", "label": "呼玛县"}, {
+            "value": "塔河县",
+            "label": "塔河县"
+        }, {"value": "漠河县", "label": "漠河县"}]
+    }]
+}, {
+    "value": "上海市", "label": "上海市", "children": [{
+        "value": "上海市",
+        "label": "上海市",
+        "children": [{"value": "黄浦区", "label": "黄浦区"}, {
+            "value": "徐汇区",
+            "label": "徐汇区"
+        }, {"value": "长宁区", "label": "长宁区"}, {
+            "value": "静安区",
+            "label": "静安区"
+        }, {"value": "普陀区", "label": "普陀区"}, {
+            "value": "虹口区",
+            "label": "虹口区"
+        }, {"value": "杨浦区", "label": "杨浦区"}, {
+            "value": "闵行区",
+            "label": "闵行区"
+        }, {"value": "宝山区", "label": "宝山区"}, {
+            "value": "嘉定区",
+            "label": "嘉定区"
+        }, {"value": "浦东新区", "label": "浦东新区"}, {
+            "value": "金山区",
+            "label": "金山区"
+        }, {"value": "松江区", "label": "松江区"}, {
+            "value": "青浦区",
+            "label": "青浦区"
+        }, {"value": "奉贤区", "label": "奉贤区"}, {
+            "value": "崇明区",
+            "label": "崇明区"
+        }]
+    }]
+}, {
+    "value": "江苏省",
+    "label": "江苏省",
+    "children": [{
+        "value": "南京市",
+        "label": "南京市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "玄武区",
+            "label": "玄武区"
+        }, {"value": "秦淮区", "label": "秦淮区"}, {
+            "value": "建邺区",
+            "label": "建邺区"
+        }, {"value": "鼓楼区", "label": "鼓楼区"}, {
+            "value": "浦口区",
+            "label": "浦口区"
+        }, {"value": "栖霞区", "label": "栖霞区"}, {
+            "value": "雨花台区",
+            "label": "雨花台区"
+        }, {"value": "江宁区", "label": "江宁区"}, {
+            "value": "六合区",
+            "label": "六合区"
+        }, {"value": "溧水区", "label": "溧水区"}, {
+            "value": "高淳区",
+            "label": "高淳区"
+        }]
+    }, {
+        "value": "无锡市",
+        "label": "无锡市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "锡山区",
+            "label": "锡山区"
+        }, {"value": "惠山区", "label": "惠山区"}, {
+            "value": "滨湖区",
+            "label": "滨湖区"
+        }, {"value": "梁溪区", "label": "梁溪区"}, {
+            "value": "新吴区",
+            "label": "新吴区"
+        }, {"value": "江阴市", "label": "江阴市"}, {
+            "value": "宜兴市",
+            "label": "宜兴市"
+        }]
+    }, {
+        "value": "徐州市",
+        "label": "徐州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "鼓楼区",
+            "label": "鼓楼区"
+        }, {"value": "云龙区", "label": "云龙区"}, {
+            "value": "贾汪区",
+            "label": "贾汪区"
+        }, {"value": "泉山区", "label": "泉山区"}, {
+            "value": "铜山区",
+            "label": "铜山区"
+        }, {"value": "丰县", "label": "丰县"}, {
+            "value": "沛县",
+            "label": "沛县"
+        }, {"value": "睢宁县", "label": "睢宁县"}, {
+            "value": "新沂市",
+            "label": "新沂市"
+        }, {"value": "邳州市", "label": "邳州市"}]
+    }, {
+        "value": "常州市",
+        "label": "常州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "天宁区",
+            "label": "天宁区"
+        }, {"value": "钟楼区", "label": "钟楼区"}, {
+            "value": "新北区",
+            "label": "新北区"
+        }, {"value": "武进区", "label": "武进区"}, {
+            "value": "金坛区",
+            "label": "金坛区"
+        }, {"value": "溧阳市", "label": "溧阳市"}]
+    }, {
+        "value": "苏州市",
+        "label": "苏州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "虎丘区",
+            "label": "虎丘区"
+        }, {"value": "吴中区", "label": "吴中区"}, {
+            "value": "相城区",
+            "label": "相城区"
+        }, {"value": "姑苏区", "label": "姑苏区"}, {
+            "value": "吴江区",
+            "label": "吴江区"
+        }, {"value": "常熟市", "label": "常熟市"}, {
+            "value": "张家港市",
+            "label": "张家港市"
+        }, {"value": "昆山市", "label": "昆山市"}, {
+            "value": "太仓市",
+            "label": "太仓市"
+        }]
+    }, {
+        "value": "南通市",
+        "label": "南通市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "崇川区",
+            "label": "崇川区"
+        }, {"value": "港闸区", "label": "港闸区"}, {
+            "value": "通州区",
+            "label": "通州区"
+        }, {"value": "海安县", "label": "海安县"}, {
+            "value": "如东县",
+            "label": "如东县"
+        }, {"value": "启东市", "label": "启东市"}, {
+            "value": "如皋市",
+            "label": "如皋市"
+        }, {"value": "海门市", "label": "海门市"}]
+    }, {
+        "value": "连云港市",
+        "label": "连云港市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "连云区",
+            "label": "连云区"
+        }, {"value": "海州区", "label": "海州区"}, {
+            "value": "赣榆区",
+            "label": "赣榆区"
+        }, {"value": "东海县", "label": "东海县"}, {
+            "value": "灌云县",
+            "label": "灌云县"
+        }, {"value": "灌南县", "label": "灌南县"}]
+    }, {
+        "value": "淮安市",
+        "label": "淮安市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "淮安区",
+            "label": "淮安区"
+        }, {"value": "淮阴区", "label": "淮阴区"}, {
+            "value": "清江浦区",
+            "label": "清江浦区"
+        }, {"value": "洪泽区", "label": "洪泽区"}, {
+            "value": "涟水县",
+            "label": "涟水县"
+        }, {"value": "盱眙县", "label": "盱眙县"}, {
+            "value": "金湖县",
+            "label": "金湖县"
+        }]
+    }, {
+        "value": "盐城市",
+        "label": "盐城市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "亭湖区",
+            "label": "亭湖区"
+        }, {"value": "盐都区", "label": "盐都区"}, {
+            "value": "大丰区",
+            "label": "大丰区"
+        }, {"value": "响水县", "label": "响水县"}, {
+            "value": "滨海县",
+            "label": "滨海县"
+        }, {"value": "阜宁县", "label": "阜宁县"}, {
+            "value": "射阳县",
+            "label": "射阳县"
+        }, {"value": "建湖县", "label": "建湖县"}, {
+            "value": "东台市",
+            "label": "东台市"
+        }]
+    }, {
+        "value": "扬州市",
+        "label": "扬州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "广陵区",
+            "label": "广陵区"
+        }, {"value": "邗江区", "label": "邗江区"}, {
+            "value": "江都区",
+            "label": "江都区"
+        }, {"value": "宝应县", "label": "宝应县"}, {
+            "value": "仪征市",
+            "label": "仪征市"
+        }, {"value": "高邮市", "label": "高邮市"}]
+    }, {
+        "value": "镇江市",
+        "label": "镇江市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "京口区",
+            "label": "京口区"
+        }, {"value": "润州区", "label": "润州区"}, {
+            "value": "丹徒区",
+            "label": "丹徒区"
+        }, {"value": "丹阳市", "label": "丹阳市"}, {
+            "value": "扬中市",
+            "label": "扬中市"
+        }, {"value": "句容市", "label": "句容市"}]
+    }, {
+        "value": "泰州市",
+        "label": "泰州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "海陵区",
+            "label": "海陵区"
+        }, {"value": "高港区", "label": "高港区"}, {
+            "value": "姜堰区",
+            "label": "姜堰区"
+        }, {"value": "兴化市", "label": "兴化市"}, {
+            "value": "靖江市",
+            "label": "靖江市"
+        }, {"value": "泰兴市", "label": "泰兴市"}]
+    }, {
+        "value": "宿迁市",
+        "label": "宿迁市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "宿城区",
+            "label": "宿城区"
+        }, {"value": "宿豫区", "label": "宿豫区"}, {
+            "value": "沭阳县",
+            "label": "沭阳县"
+        }, {"value": "泗阳县", "label": "泗阳县"}, {
+            "value": "泗洪县",
+            "label": "泗洪县"
+        }]
+    }]
+}, {
+    "value": "浙江省",
+    "label": "浙江省",
+    "children": [{
+        "value": "杭州市",
+        "label": "杭州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "上城区",
+            "label": "上城区"
+        }, {"value": "下城区", "label": "下城区"}, {
+            "value": "江干区",
+            "label": "江干区"
+        }, {"value": "拱墅区", "label": "拱墅区"}, {
+            "value": "西湖区",
+            "label": "西湖区"
+        }, {"value": "滨江区", "label": "滨江区"}, {
+            "value": "萧山区",
+            "label": "萧山区"
+        }, {"value": "余杭区", "label": "余杭区"}, {
+            "value": "富阳区",
+            "label": "富阳区"
+        }, {"value": "桐庐县", "label": "桐庐县"}, {
+            "value": "淳安县",
+            "label": "淳安县"
+        }, {"value": "建德市", "label": "建德市"}, {
+            "value": "临安市",
+            "label": "临安市"
+        }]
+    }, {
+        "value": "宁波市",
+        "label": "宁波市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "海曙区",
+            "label": "海曙区"
+        }, {"value": "江东区", "label": "江东区"}, {
+            "value": "江北区",
+            "label": "江北区"
+        }, {"value": "北仑区", "label": "北仑区"}, {
+            "value": "镇海区",
+            "label": "镇海区"
+        }, {"value": "鄞州区", "label": "鄞州区"}, {
+            "value": "象山县",
+            "label": "象山县"
+        }, {"value": "宁海县", "label": "宁海县"}, {
+            "value": "余姚市",
+            "label": "余姚市"
+        }, {"value": "慈溪市", "label": "慈溪市"}, {
+            "value": "奉化市",
+            "label": "奉化市"
+        }]
+    }, {
+        "value": "温州市",
+        "label": "温州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "鹿城区",
+            "label": "鹿城区"
+        }, {"value": "龙湾区", "label": "龙湾区"}, {
+            "value": "瓯海区",
+            "label": "瓯海区"
+        }, {"value": "洞头区", "label": "洞头区"}, {
+            "value": "永嘉县",
+            "label": "永嘉县"
+        }, {"value": "平阳县", "label": "平阳县"}, {
+            "value": "苍南县",
+            "label": "苍南县"
+        }, {"value": "文成县", "label": "文成县"}, {
+            "value": "泰顺县",
+            "label": "泰顺县"
+        }, {"value": "瑞安市", "label": "瑞安市"}, {
+            "value": "乐清市",
+            "label": "乐清市"
+        }]
+    }, {
+        "value": "嘉兴市",
+        "label": "嘉兴市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "南湖区",
+            "label": "南湖区"
+        }, {"value": "秀洲区", "label": "秀洲区"}, {
+            "value": "嘉善县",
+            "label": "嘉善县"
+        }, {"value": "海盐县", "label": "海盐县"}, {
+            "value": "海宁市",
+            "label": "海宁市"
+        }, {"value": "平湖市", "label": "平湖市"}, {
+            "value": "桐乡市",
+            "label": "桐乡市"
+        }]
+    }, {
+        "value": "湖州市",
+        "label": "湖州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "吴兴区",
+            "label": "吴兴区"
+        }, {"value": "南浔区", "label": "南浔区"}, {
+            "value": "德清县",
+            "label": "德清县"
+        }, {"value": "长兴县", "label": "长兴县"}, {
+            "value": "安吉县",
+            "label": "安吉县"
+        }]
+    }, {
+        "value": "绍兴市",
+        "label": "绍兴市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "越城区",
+            "label": "越城区"
+        }, {"value": "柯桥区", "label": "柯桥区"}, {
+            "value": "上虞区",
+            "label": "上虞区"
+        }, {"value": "新昌县", "label": "新昌县"}, {
+            "value": "诸暨市",
+            "label": "诸暨市"
+        }, {"value": "嵊州市", "label": "嵊州市"}]
+    }, {
+        "value": "金华市",
+        "label": "金华市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "婺城区",
+            "label": "婺城区"
+        }, {"value": "金东区", "label": "金东区"}, {
+            "value": "武义县",
+            "label": "武义县"
+        }, {"value": "浦江县", "label": "浦江县"}, {
+            "value": "磐安县",
+            "label": "磐安县"
+        }, {"value": "兰溪市", "label": "兰溪市"}, {
+            "value": "义乌市",
+            "label": "义乌市"
+        }, {"value": "东阳市", "label": "东阳市"}, {
+            "value": "永康市",
+            "label": "永康市"
+        }]
+    }, {
+        "value": "衢州市",
+        "label": "衢州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "柯城区",
+            "label": "柯城区"
+        }, {"value": "衢江区", "label": "衢江区"}, {
+            "value": "常山县",
+            "label": "常山县"
+        }, {"value": "开化县", "label": "开化县"}, {
+            "value": "龙游县",
+            "label": "龙游县"
+        }, {"value": "江山市", "label": "江山市"}]
+    }, {
+        "value": "舟山市",
+        "label": "舟山市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "定海区",
+            "label": "定海区"
+        }, {"value": "普陀区", "label": "普陀区"}, {
+            "value": "岱山县",
+            "label": "岱山县"
+        }, {"value": "嵊泗县", "label": "嵊泗县"}]
+    }, {
+        "value": "台州市",
+        "label": "台州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "椒江区",
+            "label": "椒江区"
+        }, {"value": "黄岩区", "label": "黄岩区"}, {
+            "value": "路桥区",
+            "label": "路桥区"
+        }, {"value": "玉环县", "label": "玉环县"}, {
+            "value": "三门县",
+            "label": "三门县"
+        }, {"value": "天台县", "label": "天台县"}, {
+            "value": "仙居县",
+            "label": "仙居县"
+        }, {"value": "温岭市", "label": "温岭市"}, {
+            "value": "临海市",
+            "label": "临海市"
+        }]
+    }, {
+        "value": "丽水市",
+        "label": "丽水市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "莲都区",
+            "label": "莲都区"
+        }, {"value": "青田县", "label": "青田县"}, {
+            "value": "缙云县",
+            "label": "缙云县"
+        }, {"value": "遂昌县", "label": "遂昌县"}, {
+            "value": "松阳县",
+            "label": "松阳县"
+        }, {"value": "云和县", "label": "云和县"}, {
+            "value": "庆元县",
+            "label": "庆元县"
+        }, {
+            "value": "景宁畲族自治县",
+            "label": "景宁畲族自治县"
+        }, {"value": "龙泉市", "label": "龙泉市"}]
+    }]
+}, {
+    "value": "安徽省",
+    "label": "安徽省",
+    "children": [{
+        "value": "合肥市",
+        "label": "合肥市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "瑶海区",
+            "label": "瑶海区"
+        }, {"value": "庐阳区", "label": "庐阳区"}, {
+            "value": "蜀山区",
+            "label": "蜀山区"
+        }, {"value": "包河区", "label": "包河区"}, {
+            "value": "长丰县",
+            "label": "长丰县"
+        }, {"value": "肥东县", "label": "肥东县"}, {
+            "value": "肥西县",
+            "label": "肥西县"
+        }, {"value": "庐江县", "label": "庐江县"}, {
+            "value": "巢湖市",
+            "label": "巢湖市"
+        }]
+    }, {
+        "value": "芜湖市",
+        "label": "芜湖市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "镜湖区",
+            "label": "镜湖区"
+        }, {"value": "弋江区", "label": "弋江区"}, {
+            "value": "鸠江区",
+            "label": "鸠江区"
+        }, {"value": "三山区", "label": "三山区"}, {
+            "value": "芜湖县",
+            "label": "芜湖县"
+        }, {"value": "繁昌县", "label": "繁昌县"}, {
+            "value": "南陵县",
+            "label": "南陵县"
+        }, {"value": "无为县", "label": "无为县"}]
+    }, {
+        "value": "蚌埠市",
+        "label": "蚌埠市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {"value": "龙子湖区", "label": "龙子湖区"}, {
+            "value": "蚌山区",
+            "label": "蚌山区"
+        }, {"value": "禹会区", "label": "禹会区"}, {
+            "value": "淮上区",
+            "label": "淮上区"
+        }, {"value": "怀远县", "label": "怀远县"}, {
+            "value": "五河县",
+            "label": "五河县"
+        }, {"value": "固镇县", "label": "固镇县"}]
+    }, {
+        "value": "淮南市",
+        "label": "淮南市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "大通区",
+            "label": "大通区"
+        }, {
+            "value": "田家庵区",
+            "label": "田家庵区"
+        }, {
+            "value": "谢家集区",
+            "label": "谢家集区"
+        }, {"value": "八公山区", "label": "八公山区"}, {
+            "value": "潘集区",
+            "label": "潘集区"
+        }, {"value": "凤台县", "label": "凤台县"}, {
+            "value": "寿县",
+            "label": "寿县"
+        }]
+    }, {
+        "value": "马鞍山市",
+        "label": "马鞍山市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "花山区",
+            "label": "花山区"
+        }, {"value": "雨山区", "label": "雨山区"}, {
+            "value": "博望区",
+            "label": "博望区"
+        }, {"value": "当涂县", "label": "当涂县"}, {
+            "value": "含山县",
+            "label": "含山县"
+        }, {"value": "和县", "label": "和县"}]
+    }, {
+        "value": "淮北市",
+        "label": "淮北市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "杜集区",
+            "label": "杜集区"
+        }, {"value": "相山区", "label": "相山区"}, {
+            "value": "烈山区",
+            "label": "烈山区"
+        }, {"value": "濉溪县", "label": "濉溪县"}]
+    }, {
+        "value": "铜陵市",
+        "label": "铜陵市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "铜官区",
+            "label": "铜官区"
+        }, {"value": "义安区", "label": "义安区"}, {
+            "value": "郊区",
+            "label": "郊区"
+        }, {"value": "枞阳县", "label": "枞阳县"}]
+    }, {
+        "value": "安庆市",
+        "label": "安庆市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "迎江区",
+            "label": "迎江区"
+        }, {"value": "大观区", "label": "大观区"}, {
+            "value": "宜秀区",
+            "label": "宜秀区"
+        }, {"value": "怀宁县", "label": "怀宁县"}, {
+            "value": "潜山县",
+            "label": "潜山县"
+        }, {"value": "太湖县", "label": "太湖县"}, {
+            "value": "宿松县",
+            "label": "宿松县"
+        }, {"value": "望江县", "label": "望江县"}, {
+            "value": "岳西县",
+            "label": "岳西县"
+        }, {"value": "桐城市", "label": "桐城市"}]
+    }, {
+        "value": "黄山市",
+        "label": "黄山市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "屯溪区",
+            "label": "屯溪区"
+        }, {"value": "黄山区", "label": "黄山区"}, {
+            "value": "徽州区",
+            "label": "徽州区"
+        }, {"value": "歙县", "label": "歙县"}, {
+            "value": "休宁县",
+            "label": "休宁县"
+        }, {"value": "黟县", "label": "黟县"}, {
+            "value": "祁门县",
+            "label": "祁门县"
+        }]
+    }, {
+        "value": "滁州市",
+        "label": "滁州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "琅琊区",
+            "label": "琅琊区"
+        }, {"value": "南谯区", "label": "南谯区"}, {
+            "value": "来安县",
+            "label": "来安县"
+        }, {"value": "全椒县", "label": "全椒县"}, {
+            "value": "定远县",
+            "label": "定远县"
+        }, {"value": "凤阳县", "label": "凤阳县"}, {
+            "value": "天长市",
+            "label": "天长市"
+        }, {"value": "明光市", "label": "明光市"}]
+    }, {
+        "value": "阜阳市",
+        "label": "阜阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "颍州区",
+            "label": "颍州区"
+        }, {"value": "颍东区", "label": "颍东区"}, {
+            "value": "颍泉区",
+            "label": "颍泉区"
+        }, {"value": "临泉县", "label": "临泉县"}, {
+            "value": "太和县",
+            "label": "太和县"
+        }, {"value": "阜南县", "label": "阜南县"}, {
+            "value": "颍上县",
+            "label": "颍上县"
+        }, {"value": "界首市", "label": "界首市"}]
+    }, {
+        "value": "宿州市",
+        "label": "宿州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "埇桥区",
+            "label": "埇桥区"
+        }, {"value": "砀山县", "label": "砀山县"}, {
+            "value": "萧县",
+            "label": "萧县"
+        }, {"value": "灵璧县", "label": "灵璧县"}, {
+            "value": "泗县",
+            "label": "泗县"
+        }]
+    }, {
+        "value": "六安市",
+        "label": "六安市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "金安区",
+            "label": "金安区"
+        }, {"value": "裕安区", "label": "裕安区"}, {
+            "value": "叶集区",
+            "label": "叶集区"
+        }, {"value": "霍邱县", "label": "霍邱县"}, {
+            "value": "舒城县",
+            "label": "舒城县"
+        }, {"value": "金寨县", "label": "金寨县"}, {
+            "value": "霍山县",
+            "label": "霍山县"
+        }]
+    }, {
+        "value": "亳州市",
+        "label": "亳州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "谯城区",
+            "label": "谯城区"
+        }, {"value": "涡阳县", "label": "涡阳县"}, {
+            "value": "蒙城县",
+            "label": "蒙城县"
+        }, {"value": "利辛县", "label": "利辛县"}]
+    }, {
+        "value": "池州市",
+        "label": "池州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "贵池区",
+            "label": "贵池区"
+        }, {"value": "东至县", "label": "东至县"}, {
+            "value": "石台县",
+            "label": "石台县"
+        }, {"value": "青阳县", "label": "青阳县"}]
+    }, {
+        "value": "宣城市",
+        "label": "宣城市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "宣州区",
+            "label": "宣州区"
+        }, {"value": "郎溪县", "label": "郎溪县"}, {
+            "value": "广德县",
+            "label": "广德县"
+        }, {"value": "泾县", "label": "泾县"}, {
+            "value": "绩溪县",
+            "label": "绩溪县"
+        }, {"value": "旌德县", "label": "旌德县"}, {
+            "value": "宁国市",
+            "label": "宁国市"
+        }]
+    }]
+}, {
+    "value": "福建省",
+    "label": "福建省",
+    "children": [{
+        "value": "福州市",
+        "label": "福州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "鼓楼区",
+            "label": "鼓楼区"
+        }, {"value": "台江区", "label": "台江区"}, {
+            "value": "仓山区",
+            "label": "仓山区"
+        }, {"value": "马尾区", "label": "马尾区"}, {
+            "value": "晋安区",
+            "label": "晋安区"
+        }, {"value": "闽侯县", "label": "闽侯县"}, {
+            "value": "连江县",
+            "label": "连江县"
+        }, {"value": "罗源县", "label": "罗源县"}, {
+            "value": "闽清县",
+            "label": "闽清县"
+        }, {"value": "永泰县", "label": "永泰县"}, {
+            "value": "平潭县",
+            "label": "平潭县"
+        }, {"value": "福清市", "label": "福清市"}, {
+            "value": "长乐市",
+            "label": "长乐市"
+        }]
+    }, {
+        "value": "厦门市",
+        "label": "厦门市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "思明区",
+            "label": "思明区"
+        }, {"value": "海沧区", "label": "海沧区"}, {
+            "value": "湖里区",
+            "label": "湖里区"
+        }, {"value": "集美区", "label": "集美区"}, {
+            "value": "同安区",
+            "label": "同安区"
+        }, {"value": "翔安区", "label": "翔安区"}]
+    }, {
+        "value": "莆田市",
+        "label": "莆田市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "城厢区",
+            "label": "城厢区"
+        }, {"value": "涵江区", "label": "涵江区"}, {
+            "value": "荔城区",
+            "label": "荔城区"
+        }, {"value": "秀屿区", "label": "秀屿区"}, {
+            "value": "仙游县",
+            "label": "仙游县"
+        }]
+    }, {
+        "value": "三明市",
+        "label": "三明市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "梅列区",
+            "label": "梅列区"
+        }, {"value": "三元区", "label": "三元区"}, {
+            "value": "明溪县",
+            "label": "明溪县"
+        }, {"value": "清流县", "label": "清流县"}, {
+            "value": "宁化县",
+            "label": "宁化县"
+        }, {"value": "大田县", "label": "大田县"}, {
+            "value": "尤溪县",
+            "label": "尤溪县"
+        }, {"value": "沙县", "label": "沙县"}, {
+            "value": "将乐县",
+            "label": "将乐县"
+        }, {"value": "泰宁县", "label": "泰宁县"}, {
+            "value": "建宁县",
+            "label": "建宁县"
+        }, {"value": "永安市", "label": "永安市"}]
+    }, {
+        "value": "泉州市",
+        "label": "泉州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "鲤城区",
+            "label": "鲤城区"
+        }, {"value": "丰泽区", "label": "丰泽区"}, {
+            "value": "洛江区",
+            "label": "洛江区"
+        }, {"value": "泉港区", "label": "泉港区"}, {
+            "value": "惠安县",
+            "label": "惠安县"
+        }, {"value": "安溪县", "label": "安溪县"}, {
+            "value": "永春县",
+            "label": "永春县"
+        }, {"value": "德化县", "label": "德化县"}, {
+            "value": "金门县",
+            "label": "金门县"
+        }, {"value": "石狮市", "label": "石狮市"}, {
+            "value": "晋江市",
+            "label": "晋江市"
+        }, {"value": "南安市", "label": "南安市"}]
+    }, {
+        "value": "漳州市",
+        "label": "漳州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "芗城区",
+            "label": "芗城区"
+        }, {"value": "龙文区", "label": "龙文区"}, {
+            "value": "云霄县",
+            "label": "云霄县"
+        }, {"value": "漳浦县", "label": "漳浦县"}, {
+            "value": "诏安县",
+            "label": "诏安县"
+        }, {"value": "长泰县", "label": "长泰县"}, {
+            "value": "东山县",
+            "label": "东山县"
+        }, {"value": "南靖县", "label": "南靖县"}, {
+            "value": "平和县",
+            "label": "平和县"
+        }, {"value": "华安县", "label": "华安县"}, {
+            "value": "龙海市",
+            "label": "龙海市"
+        }]
+    }, {
+        "value": "南平市",
+        "label": "南平市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "延平区",
+            "label": "延平区"
+        }, {"value": "建阳区", "label": "建阳区"}, {
+            "value": "顺昌县",
+            "label": "顺昌县"
+        }, {"value": "浦城县", "label": "浦城县"}, {
+            "value": "光泽县",
+            "label": "光泽县"
+        }, {"value": "松溪县", "label": "松溪县"}, {
+            "value": "政和县",
+            "label": "政和县"
+        }, {"value": "邵武市", "label": "邵武市"}, {
+            "value": "武夷山市",
+            "label": "武夷山市"
+        }, {"value": "建瓯市", "label": "建瓯市"}]
+    }, {
+        "value": "龙岩市",
+        "label": "龙岩市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "新罗区",
+            "label": "新罗区"
+        }, {"value": "永定区", "label": "永定区"}, {
+            "value": "长汀县",
+            "label": "长汀县"
+        }, {"value": "上杭县", "label": "上杭县"}, {
+            "value": "武平县",
+            "label": "武平县"
+        }, {"value": "连城县", "label": "连城县"}, {
+            "value": "漳平市",
+            "label": "漳平市"
+        }]
+    }, {
+        "value": "宁德市",
+        "label": "宁德市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "蕉城区",
+            "label": "蕉城区"
+        }, {"value": "霞浦县", "label": "霞浦县"}, {
+            "value": "古田县",
+            "label": "古田县"
+        }, {"value": "屏南县", "label": "屏南县"}, {
+            "value": "寿宁县",
+            "label": "寿宁县"
+        }, {"value": "周宁县", "label": "周宁县"}, {
+            "value": "柘荣县",
+            "label": "柘荣县"
+        }, {"value": "福安市", "label": "福安市"}, {
+            "value": "福鼎市",
+            "label": "福鼎市"
+        }]
+    }]
+}, {
+    "value": "江西省",
+    "label": "江西省",
+    "children": [{
+        "value": "南昌市",
+        "label": "南昌市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "东湖区",
+            "label": "东湖区"
+        }, {"value": "西湖区", "label": "西湖区"}, {
+            "value": "青云谱区",
+            "label": "青云谱区"
+        }, {"value": "湾里区", "label": "湾里区"}, {
+            "value": "青山湖区",
+            "label": "青山湖区"
+        }, {"value": "新建区", "label": "新建区"}, {
+            "value": "南昌县",
+            "label": "南昌县"
+        }, {"value": "安义县", "label": "安义县"}, {
+            "value": "进贤县",
+            "label": "进贤县"
+        }]
+    }, {
+        "value": "景德镇市",
+        "label": "景德镇市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "昌江区",
+            "label": "昌江区"
+        }, {"value": "珠山区", "label": "珠山区"}, {
+            "value": "浮梁县",
+            "label": "浮梁县"
+        }, {"value": "乐平市", "label": "乐平市"}]
+    }, {
+        "value": "萍乡市",
+        "label": "萍乡市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "安源区",
+            "label": "安源区"
+        }, {"value": "湘东区", "label": "湘东区"}, {
+            "value": "莲花县",
+            "label": "莲花县"
+        }, {"value": "上栗县", "label": "上栗县"}, {
+            "value": "芦溪县",
+            "label": "芦溪县"
+        }]
+    }, {
+        "value": "九江市",
+        "label": "九江市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "濂溪区",
+            "label": "濂溪区"
+        }, {"value": "浔阳区", "label": "浔阳区"}, {
+            "value": "九江县",
+            "label": "九江县"
+        }, {"value": "武宁县", "label": "武宁县"}, {
+            "value": "修水县",
+            "label": "修水县"
+        }, {"value": "永修县", "label": "永修县"}, {
+            "value": "德安县",
+            "label": "德安县"
+        }, {"value": "都昌县", "label": "都昌县"}, {
+            "value": "湖口县",
+            "label": "湖口县"
+        }, {"value": "彭泽县", "label": "彭泽县"}, {
+            "value": "瑞昌市",
+            "label": "瑞昌市"
+        }, {"value": "共青城市", "label": "共青城市"}, {
+            "value": "庐山市",
+            "label": "庐山市"
+        }]
+    }, {
+        "value": "新余市",
+        "label": "新余市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "渝水区",
+            "label": "渝水区"
+        }, {"value": "分宜县", "label": "分宜县"}]
+    }, {
+        "value": "鹰潭市",
+        "label": "鹰潭市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "月湖区",
+            "label": "月湖区"
+        }, {"value": "余江县", "label": "余江县"}, {
+            "value": "贵溪市",
+            "label": "贵溪市"
+        }]
+    }, {
+        "value": "赣州市",
+        "label": "赣州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "章贡区",
+            "label": "章贡区"
+        }, {"value": "南康区", "label": "南康区"}, {
+            "value": "赣县",
+            "label": "赣县"
+        }, {"value": "信丰县", "label": "信丰县"}, {
+            "value": "大余县",
+            "label": "大余县"
+        }, {"value": "上犹县", "label": "上犹县"}, {
+            "value": "崇义县",
+            "label": "崇义县"
+        }, {"value": "安远县", "label": "安远县"}, {
+            "value": "龙南县",
+            "label": "龙南县"
+        }, {"value": "定南县", "label": "定南县"}, {
+            "value": "全南县",
+            "label": "全南县"
+        }, {"value": "宁都县", "label": "宁都县"}, {
+            "value": "于都县",
+            "label": "于都县"
+        }, {"value": "兴国县", "label": "兴国县"}, {
+            "value": "会昌县",
+            "label": "会昌县"
+        }, {"value": "寻乌县", "label": "寻乌县"}, {
+            "value": "石城县",
+            "label": "石城县"
+        }, {"value": "瑞金市", "label": "瑞金市"}]
+    }, {
+        "value": "吉安市",
+        "label": "吉安市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "吉州区",
+            "label": "吉州区"
+        }, {"value": "青原区", "label": "青原区"}, {
+            "value": "吉安县",
+            "label": "吉安县"
+        }, {"value": "吉水县", "label": "吉水县"}, {
+            "value": "峡江县",
+            "label": "峡江县"
+        }, {"value": "新干县", "label": "新干县"}, {
+            "value": "永丰县",
+            "label": "永丰县"
+        }, {"value": "泰和县", "label": "泰和县"}, {
+            "value": "遂川县",
+            "label": "遂川县"
+        }, {"value": "万安县", "label": "万安县"}, {
+            "value": "安福县",
+            "label": "安福县"
+        }, {"value": "永新县", "label": "永新县"}, {
+            "value": "井冈山市",
+            "label": "井冈山市"
+        }]
+    }, {
+        "value": "宜春市",
+        "label": "宜春市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "袁州区",
+            "label": "袁州区"
+        }, {"value": "奉新县", "label": "奉新县"}, {
+            "value": "万载县",
+            "label": "万载县"
+        }, {"value": "上高县", "label": "上高县"}, {
+            "value": "宜丰县",
+            "label": "宜丰县"
+        }, {"value": "靖安县", "label": "靖安县"}, {
+            "value": "铜鼓县",
+            "label": "铜鼓县"
+        }, {"value": "丰城市", "label": "丰城市"}, {
+            "value": "樟树市",
+            "label": "樟树市"
+        }, {"value": "高安市", "label": "高安市"}]
+    }, {
+        "value": "抚州市",
+        "label": "抚州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "临川区",
+            "label": "临川区"
+        }, {"value": "南城县", "label": "南城县"}, {
+            "value": "黎川县",
+            "label": "黎川县"
+        }, {"value": "南丰县", "label": "南丰县"}, {
+            "value": "崇仁县",
+            "label": "崇仁县"
+        }, {"value": "乐安县", "label": "乐安县"}, {
+            "value": "宜黄县",
+            "label": "宜黄县"
+        }, {"value": "金溪县", "label": "金溪县"}, {
+            "value": "资溪县",
+            "label": "资溪县"
+        }, {"value": "东乡县", "label": "东乡县"}, {
+            "value": "广昌县",
+            "label": "广昌县"
+        }]
+    }, {
+        "value": "上饶市",
+        "label": "上饶市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "信州区",
+            "label": "信州区"
+        }, {"value": "广丰区", "label": "广丰区"}, {
+            "value": "上饶县",
+            "label": "上饶县"
+        }, {"value": "玉山县", "label": "玉山县"}, {
+            "value": "铅山县",
+            "label": "铅山县"
+        }, {"value": "横峰县", "label": "横峰县"}, {
+            "value": "弋阳县",
+            "label": "弋阳县"
+        }, {"value": "余干县", "label": "余干县"}, {
+            "value": "鄱阳县",
+            "label": "鄱阳县"
+        }, {"value": "万年县", "label": "万年县"}, {
+            "value": "婺源县",
+            "label": "婺源县"
+        }, {"value": "德兴市", "label": "德兴市"}]
+    }]
+}, {
+    "value": "山东省",
+    "label": "山东省",
+    "children": [{
+        "value": "济南市",
+        "label": "济南市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "历下区",
+            "label": "历下区"
+        }, {"value": "市中区", "label": "市中区"}, {
+            "value": "槐荫区",
+            "label": "槐荫区"
+        }, {"value": "天桥区", "label": "天桥区"}, {
+            "value": "历城区",
+            "label": "历城区"
+        }, {"value": "长清区", "label": "长清区"}, {
+            "value": "平阴县",
+            "label": "平阴县"
+        }, {"value": "济阳县", "label": "济阳县"}, {
+            "value": "商河县",
+            "label": "商河县"
+        }, {"value": "章丘市", "label": "章丘市"}]
+    }, {
+        "value": "青岛市",
+        "label": "青岛市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "市南区",
+            "label": "市南区"
+        }, {"value": "市北区", "label": "市北区"}, {
+            "value": "黄岛区",
+            "label": "黄岛区"
+        }, {"value": "崂山区", "label": "崂山区"}, {
+            "value": "李沧区",
+            "label": "李沧区"
+        }, {"value": "城阳区", "label": "城阳区"}, {
+            "value": "胶州市",
+            "label": "胶州市"
+        }, {"value": "即墨市", "label": "即墨市"}, {
+            "value": "平度市",
+            "label": "平度市"
+        }, {"value": "莱西市", "label": "莱西市"}]
+    }, {
+        "value": "淄博市",
+        "label": "淄博市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "淄川区",
+            "label": "淄川区"
+        }, {"value": "张店区", "label": "张店区"}, {
+            "value": "博山区",
+            "label": "博山区"
+        }, {"value": "临淄区", "label": "临淄区"}, {
+            "value": "周村区",
+            "label": "周村区"
+        }, {"value": "桓台县", "label": "桓台县"}, {
+            "value": "高青县",
+            "label": "高青县"
+        }, {"value": "沂源县", "label": "沂源县"}]
+    }, {
+        "value": "枣庄市",
+        "label": "枣庄市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "市中区",
+            "label": "市中区"
+        }, {"value": "薛城区", "label": "薛城区"}, {
+            "value": "峄城区",
+            "label": "峄城区"
+        }, {"value": "台儿庄区", "label": "台儿庄区"}, {
+            "value": "山亭区",
+            "label": "山亭区"
+        }, {"value": "滕州市", "label": "滕州市"}]
+    }, {
+        "value": "东营市",
+        "label": "东营市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "东营区",
+            "label": "东营区"
+        }, {"value": "河口区", "label": "河口区"}, {
+            "value": "垦利区",
+            "label": "垦利区"
+        }, {"value": "利津县", "label": "利津县"}, {
+            "value": "广饶县",
+            "label": "广饶县"
+        }]
+    }, {
+        "value": "烟台市",
+        "label": "烟台市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "芝罘区",
+            "label": "芝罘区"
+        }, {"value": "福山区", "label": "福山区"}, {
+            "value": "牟平区",
+            "label": "牟平区"
+        }, {"value": "莱山区", "label": "莱山区"}, {
+            "value": "长岛县",
+            "label": "长岛县"
+        }, {"value": "龙口市", "label": "龙口市"}, {
+            "value": "莱阳市",
+            "label": "莱阳市"
+        }, {"value": "莱州市", "label": "莱州市"}, {
+            "value": "蓬莱市",
+            "label": "蓬莱市"
+        }, {"value": "招远市", "label": "招远市"}, {
+            "value": "栖霞市",
+            "label": "栖霞市"
+        }, {"value": "海阳市", "label": "海阳市"}]
+    }, {
+        "value": "潍坊市",
+        "label": "潍坊市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "潍城区",
+            "label": "潍城区"
+        }, {"value": "寒亭区", "label": "寒亭区"}, {
+            "value": "坊子区",
+            "label": "坊子区"
+        }, {"value": "奎文区", "label": "奎文区"}, {
+            "value": "临朐县",
+            "label": "临朐县"
+        }, {"value": "昌乐县", "label": "昌乐县"}, {
+            "value": "青州市",
+            "label": "青州市"
+        }, {"value": "诸城市", "label": "诸城市"}, {
+            "value": "寿光市",
+            "label": "寿光市"
+        }, {"value": "安丘市", "label": "安丘市"}, {
+            "value": "高密市",
+            "label": "高密市"
+        }, {"value": "昌邑市", "label": "昌邑市"}]
+    }, {
+        "value": "济宁市",
+        "label": "济宁市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "任城区",
+            "label": "任城区"
+        }, {"value": "兖州区", "label": "兖州区"}, {
+            "value": "微山县",
+            "label": "微山县"
+        }, {"value": "鱼台县", "label": "鱼台县"}, {
+            "value": "金乡县",
+            "label": "金乡县"
+        }, {"value": "嘉祥县", "label": "嘉祥县"}, {
+            "value": "汶上县",
+            "label": "汶上县"
+        }, {"value": "泗水县", "label": "泗水县"}, {
+            "value": "梁山县",
+            "label": "梁山县"
+        }, {"value": "曲阜市", "label": "曲阜市"}, {
+            "value": "邹城市",
+            "label": "邹城市"
+        }]
+    }, {
+        "value": "泰安市",
+        "label": "泰安市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "泰山区",
+            "label": "泰山区"
+        }, {"value": "岱岳区", "label": "岱岳区"}, {
+            "value": "宁阳县",
+            "label": "宁阳县"
+        }, {"value": "东平县", "label": "东平县"}, {
+            "value": "新泰市",
+            "label": "新泰市"
+        }, {"value": "肥城市", "label": "肥城市"}]
+    }, {
+        "value": "威海市",
+        "label": "威海市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "环翠区",
+            "label": "环翠区"
+        }, {"value": "文登区", "label": "文登区"}, {
+            "value": "荣成市",
+            "label": "荣成市"
+        }, {"value": "乳山市", "label": "乳山市"}]
+    }, {
+        "value": "日照市",
+        "label": "日照市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "东港区",
+            "label": "东港区"
+        }, {"value": "岚山区", "label": "岚山区"}, {
+            "value": "五莲县",
+            "label": "五莲县"
+        }, {"value": "莒县", "label": "莒县"}]
+    }, {
+        "value": "莱芜市",
+        "label": "莱芜市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "莱城区",
+            "label": "莱城区"
+        }, {"value": "钢城区", "label": "钢城区"}]
+    }, {
+        "value": "临沂市",
+        "label": "临沂市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "兰山区",
+            "label": "兰山区"
+        }, {"value": "罗庄区", "label": "罗庄区"}, {
+            "value": "河东区",
+            "label": "河东区"
+        }, {"value": "沂南县", "label": "沂南县"}, {
+            "value": "郯城县",
+            "label": "郯城县"
+        }, {"value": "沂水县", "label": "沂水县"}, {
+            "value": "兰陵县",
+            "label": "兰陵县"
+        }, {"value": "费县", "label": "费县"}, {
+            "value": "平邑县",
+            "label": "平邑县"
+        }, {"value": "莒南县", "label": "莒南县"}, {
+            "value": "蒙阴县",
+            "label": "蒙阴县"
+        }, {"value": "临沭县", "label": "临沭县"}]
+    }, {
+        "value": "德州市",
+        "label": "德州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "德城区",
+            "label": "德城区"
+        }, {"value": "陵城区", "label": "陵城区"}, {
+            "value": "宁津县",
+            "label": "宁津县"
+        }, {"value": "庆云县", "label": "庆云县"}, {
+            "value": "临邑县",
+            "label": "临邑县"
+        }, {"value": "齐河县", "label": "齐河县"}, {
+            "value": "平原县",
+            "label": "平原县"
+        }, {"value": "夏津县", "label": "夏津县"}, {
+            "value": "武城县",
+            "label": "武城县"
+        }, {"value": "乐陵市", "label": "乐陵市"}, {
+            "value": "禹城市",
+            "label": "禹城市"
+        }]
+    }, {
+        "value": "聊城市",
+        "label": "聊城市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {"value": "东昌府区", "label": "东昌府区"}, {
+            "value": "阳谷县",
+            "label": "阳谷县"
+        }, {"value": "莘县", "label": "莘县"}, {
+            "value": "茌平县",
+            "label": "茌平县"
+        }, {"value": "东阿县", "label": "东阿县"}, {
+            "value": "冠县",
+            "label": "冠县"
+        }, {"value": "高唐县", "label": "高唐县"}, {
+            "value": "临清市",
+            "label": "临清市"
+        }]
+    }, {
+        "value": "滨州市",
+        "label": "滨州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "滨城区",
+            "label": "滨城区"
+        }, {"value": "沾化区", "label": "沾化区"}, {
+            "value": "惠民县",
+            "label": "惠民县"
+        }, {"value": "阳信县", "label": "阳信县"}, {
+            "value": "无棣县",
+            "label": "无棣县"
+        }, {"value": "博兴县", "label": "博兴县"}, {
+            "value": "邹平县",
+            "label": "邹平县"
+        }]
+    }, {
+        "value": "菏泽市",
+        "label": "菏泽市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "牡丹区",
+            "label": "牡丹区"
+        }, {"value": "定陶区", "label": "定陶区"}, {
+            "value": "曹县",
+            "label": "曹县"
+        }, {"value": "单县", "label": "单县"}, {
+            "value": "成武县",
+            "label": "成武县"
+        }, {"value": "巨野县", "label": "巨野县"}, {
+            "value": "郓城县",
+            "label": "郓城县"
+        }, {"value": "鄄城县", "label": "鄄城县"}, {
+            "value": "东明县",
+            "label": "东明县"
+        }]
+    }]
+}, {
+    "value": "河南省",
+    "label": "河南省",
+    "children": [{
+        "value": "郑州市",
+        "label": "郑州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "中原区",
+            "label": "中原区"
+        }, {"value": "二七区", "label": "二七区"}, {
+            "value": "管城回族区",
+            "label": "管城回族区"
+        }, {"value": "金水区", "label": "金水区"}, {
+            "value": "上街区",
+            "label": "上街区"
+        }, {"value": "惠济区", "label": "惠济区"}, {
+            "value": "中牟县",
+            "label": "中牟县"
+        }, {"value": "巩义市", "label": "巩义市"}, {
+            "value": "荥阳市",
+            "label": "荥阳市"
+        }, {"value": "新密市", "label": "新密市"}, {
+            "value": "新郑市",
+            "label": "新郑市"
+        }, {"value": "登封市", "label": "登封市"}]
+    }, {
+        "value": "开封市",
+        "label": "开封市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "龙亭区",
+            "label": "龙亭区"
+        }, {
+            "value": "顺河回族区",
+            "label": "顺河回族区"
+        }, {"value": "鼓楼区", "label": "鼓楼区"}, {
+            "value": "禹王台区",
+            "label": "禹王台区"
+        }, {"value": "金明区", "label": "金明区"}, {
+            "value": "祥符区",
+            "label": "祥符区"
+        }, {"value": "杞县", "label": "杞县"}, {
+            "value": "通许县",
+            "label": "通许县"
+        }, {"value": "尉氏县", "label": "尉氏县"}, {
+            "value": "兰考县",
+            "label": "兰考县"
+        }]
+    }, {
+        "value": "洛阳市",
+        "label": "洛阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "老城区",
+            "label": "老城区"
+        }, {"value": "西工区", "label": "西工区"}, {
+            "value": "瀍河回族区",
+            "label": "瀍河回族区"
+        }, {"value": "涧西区", "label": "涧西区"}, {
+            "value": "吉利区",
+            "label": "吉利区"
+        }, {"value": "洛龙区", "label": "洛龙区"}, {
+            "value": "孟津县",
+            "label": "孟津县"
+        }, {"value": "新安县", "label": "新安县"}, {
+            "value": "栾川县",
+            "label": "栾川县"
+        }, {"value": "嵩县", "label": "嵩县"}, {
+            "value": "汝阳县",
+            "label": "汝阳县"
+        }, {"value": "宜阳县", "label": "宜阳县"}, {
+            "value": "洛宁县",
+            "label": "洛宁县"
+        }, {"value": "伊川县", "label": "伊川县"}, {
+            "value": "偃师市",
+            "label": "偃师市"
+        }]
+    }, {
+        "value": "平顶山市",
+        "label": "平顶山市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "新华区",
+            "label": "新华区"
+        }, {"value": "卫东区", "label": "卫东区"}, {
+            "value": "石龙区",
+            "label": "石龙区"
+        }, {"value": "湛河区", "label": "湛河区"}, {
+            "value": "宝丰县",
+            "label": "宝丰县"
+        }, {"value": "叶县", "label": "叶县"}, {
+            "value": "鲁山县",
+            "label": "鲁山县"
+        }, {"value": "郏县", "label": "郏县"}, {
+            "value": "舞钢市",
+            "label": "舞钢市"
+        }, {"value": "汝州市", "label": "汝州市"}]
+    }, {
+        "value": "安阳市",
+        "label": "安阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "文峰区",
+            "label": "文峰区"
+        }, {"value": "北关区", "label": "北关区"}, {
+            "value": "殷都区",
+            "label": "殷都区"
+        }, {"value": "龙安区", "label": "龙安区"}, {
+            "value": "安阳县",
+            "label": "安阳县"
+        }, {"value": "汤阴县", "label": "汤阴县"}, {
+            "value": "滑县",
+            "label": "滑县"
+        }, {"value": "内黄县", "label": "内黄县"}, {
+            "value": "林州市",
+            "label": "林州市"
+        }]
+    }, {
+        "value": "鹤壁市",
+        "label": "鹤壁市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "鹤山区",
+            "label": "鹤山区"
+        }, {"value": "山城区", "label": "山城区"}, {
+            "value": "淇滨区",
+            "label": "淇滨区"
+        }, {"value": "浚县", "label": "浚县"}, {"value": "淇县", "label": "淇县"}]
+    }, {
+        "value": "新乡市",
+        "label": "新乡市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "红旗区",
+            "label": "红旗区"
+        }, {"value": "卫滨区", "label": "卫滨区"}, {
+            "value": "凤泉区",
+            "label": "凤泉区"
+        }, {"value": "牧野区", "label": "牧野区"}, {
+            "value": "新乡县",
+            "label": "新乡县"
+        }, {"value": "获嘉县", "label": "获嘉县"}, {
+            "value": "原阳县",
+            "label": "原阳县"
+        }, {"value": "延津县", "label": "延津县"}, {
+            "value": "封丘县",
+            "label": "封丘县"
+        }, {"value": "长垣县", "label": "长垣县"}, {
+            "value": "卫辉市",
+            "label": "卫辉市"
+        }, {"value": "辉县市", "label": "辉县市"}]
+    }, {
+        "value": "焦作市",
+        "label": "焦作市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "解放区",
+            "label": "解放区"
+        }, {"value": "中站区", "label": "中站区"}, {
+            "value": "马村区",
+            "label": "马村区"
+        }, {"value": "山阳区", "label": "山阳区"}, {
+            "value": "修武县",
+            "label": "修武县"
+        }, {"value": "博爱县", "label": "博爱县"}, {
+            "value": "武陟县",
+            "label": "武陟县"
+        }, {"value": "温县", "label": "温县"}, {
+            "value": "沁阳市",
+            "label": "沁阳市"
+        }, {"value": "孟州市", "label": "孟州市"}]
+    }, {
+        "value": "濮阳市",
+        "label": "濮阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "华龙区",
+            "label": "华龙区"
+        }, {"value": "清丰县", "label": "清丰县"}, {
+            "value": "南乐县",
+            "label": "南乐县"
+        }, {"value": "范县", "label": "范县"}, {
+            "value": "台前县",
+            "label": "台前县"
+        }, {"value": "濮阳县", "label": "濮阳县"}]
+    }, {
+        "value": "许昌市",
+        "label": "许昌市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "魏都区",
+            "label": "魏都区"
+        }, {"value": "许昌县", "label": "许昌县"}, {
+            "value": "鄢陵县",
+            "label": "鄢陵县"
+        }, {"value": "襄城县", "label": "襄城县"}, {
+            "value": "禹州市",
+            "label": "禹州市"
+        }, {"value": "长葛市", "label": "长葛市"}]
+    }, {
+        "value": "漯河市",
+        "label": "漯河市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "源汇区",
+            "label": "源汇区"
+        }, {"value": "郾城区", "label": "郾城区"}, {
+            "value": "召陵区",
+            "label": "召陵区"
+        }, {"value": "舞阳县", "label": "舞阳县"}, {
+            "value": "临颍县",
+            "label": "临颍县"
+        }]
+    }, {
+        "value": "三门峡市",
+        "label": "三门峡市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "湖滨区",
+            "label": "湖滨区"
+        }, {"value": "陕州区", "label": "陕州区"}, {
+            "value": "渑池县",
+            "label": "渑池县"
+        }, {"value": "卢氏县", "label": "卢氏县"}, {
+            "value": "义马市",
+            "label": "义马市"
+        }, {"value": "灵宝市", "label": "灵宝市"}]
+    }, {
+        "value": "南阳市",
+        "label": "南阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "宛城区",
+            "label": "宛城区"
+        }, {"value": "卧龙区", "label": "卧龙区"}, {
+            "value": "南召县",
+            "label": "南召县"
+        }, {"value": "方城县", "label": "方城县"}, {
+            "value": "西峡县",
+            "label": "西峡县"
+        }, {"value": "镇平县", "label": "镇平县"}, {
+            "value": "内乡县",
+            "label": "内乡县"
+        }, {"value": "淅川县", "label": "淅川县"}, {
+            "value": "社旗县",
+            "label": "社旗县"
+        }, {"value": "唐河县", "label": "唐河县"}, {
+            "value": "新野县",
+            "label": "新野县"
+        }, {"value": "桐柏县", "label": "桐柏县"}, {
+            "value": "邓州市",
+            "label": "邓州市"
+        }]
+    }, {
+        "value": "商丘市",
+        "label": "商丘市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "梁园区",
+            "label": "梁园区"
+        }, {"value": "睢阳区", "label": "睢阳区"}, {
+            "value": "民权县",
+            "label": "民权县"
+        }, {"value": "睢县", "label": "睢县"}, {
+            "value": "宁陵县",
+            "label": "宁陵县"
+        }, {"value": "柘城县", "label": "柘城县"}, {
+            "value": "虞城县",
+            "label": "虞城县"
+        }, {"value": "夏邑县", "label": "夏邑县"}, {
+            "value": "永城市",
+            "label": "永城市"
+        }]
+    }, {
+        "value": "信阳市",
+        "label": "信阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "浉河区",
+            "label": "浉河区"
+        }, {"value": "平桥区", "label": "平桥区"}, {
+            "value": "罗山县",
+            "label": "罗山县"
+        }, {"value": "光山县", "label": "光山县"}, {
+            "value": "新县",
+            "label": "新县"
+        }, {"value": "商城县", "label": "商城县"}, {
+            "value": "固始县",
+            "label": "固始县"
+        }, {"value": "潢川县", "label": "潢川县"}, {
+            "value": "淮滨县",
+            "label": "淮滨县"
+        }, {"value": "息县", "label": "息县"}]
+    }, {
+        "value": "周口市",
+        "label": "周口市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "川汇区",
+            "label": "川汇区"
+        }, {"value": "扶沟县", "label": "扶沟县"}, {
+            "value": "西华县",
+            "label": "西华县"
+        }, {"value": "商水县", "label": "商水县"}, {
+            "value": "沈丘县",
+            "label": "沈丘县"
+        }, {"value": "郸城县", "label": "郸城县"}, {
+            "value": "淮阳县",
+            "label": "淮阳县"
+        }, {"value": "太康县", "label": "太康县"}, {
+            "value": "鹿邑县",
+            "label": "鹿邑县"
+        }, {"value": "项城市", "label": "项城市"}]
+    }, {
+        "value": "驻马店市",
+        "label": "驻马店市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "驿城区",
+            "label": "驿城区"
+        }, {"value": "西平县", "label": "西平县"}, {
+            "value": "上蔡县",
+            "label": "上蔡县"
+        }, {"value": "平舆县", "label": "平舆县"}, {
+            "value": "正阳县",
+            "label": "正阳县"
+        }, {"value": "确山县", "label": "确山县"}, {
+            "value": "泌阳县",
+            "label": "泌阳县"
+        }, {"value": "汝南县", "label": "汝南县"}, {
+            "value": "遂平县",
+            "label": "遂平县"
+        }, {"value": "新蔡县", "label": "新蔡县"}]
+    }, {
+        "value": "直辖县",
+        "label": "直辖县",
+        "children": [{"value": "济源市", "label": "济源市"}]
+    }]
+}, {
+    "value": "湖北省",
+    "label": "湖北省",
+    "children": [{
+        "value": "武汉市",
+        "label": "武汉市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "江岸区",
+            "label": "江岸区"
+        }, {"value": "江汉区", "label": "江汉区"}, {
+            "value": "硚口区",
+            "label": "硚口区"
+        }, {"value": "汉阳区", "label": "汉阳区"}, {
+            "value": "武昌区",
+            "label": "武昌区"
+        }, {"value": "青山区", "label": "青山区"}, {
+            "value": "洪山区",
+            "label": "洪山区"
+        }, {"value": "东西湖区", "label": "东西湖区"}, {
+            "value": "汉南区",
+            "label": "汉南区"
+        }, {"value": "蔡甸区", "label": "蔡甸区"}, {
+            "value": "江夏区",
+            "label": "江夏区"
+        }, {"value": "黄陂区", "label": "黄陂区"}, {
+            "value": "新洲区",
+            "label": "新洲区"
+        }]
+    }, {
+        "value": "黄石市",
+        "label": "黄石市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {
+            "value": "黄石港区",
+            "label": "黄石港区"
+        }, {"value": "西塞山区", "label": "西塞山区"}, {
+            "value": "下陆区",
+            "label": "下陆区"
+        }, {"value": "铁山区", "label": "铁山区"}, {
+            "value": "阳新县",
+            "label": "阳新县"
+        }, {"value": "大冶市", "label": "大冶市"}]
+    }, {
+        "value": "十堰市",
+        "label": "十堰市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "茅箭区",
+            "label": "茅箭区"
+        }, {"value": "张湾区", "label": "张湾区"}, {
+            "value": "郧阳区",
+            "label": "郧阳区"
+        }, {"value": "郧西县", "label": "郧西县"}, {
+            "value": "竹山县",
+            "label": "竹山县"
+        }, {"value": "竹溪县", "label": "竹溪县"}, {
+            "value": "房县",
+            "label": "房县"
+        }, {"value": "丹江口市", "label": "丹江口市"}]
+    }, {
+        "value": "宜昌市",
+        "label": "宜昌市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "西陵区",
+            "label": "西陵区"
+        }, {"value": "伍家岗区", "label": "伍家岗区"}, {
+            "value": "点军区",
+            "label": "点军区"
+        }, {"value": "猇亭区", "label": "猇亭区"}, {
+            "value": "夷陵区",
+            "label": "夷陵区"
+        }, {"value": "远安县", "label": "远安县"}, {
+            "value": "兴山县",
+            "label": "兴山县"
+        }, {
+            "value": "秭归县",
+            "label": "秭归县"
+        }, {
+            "value": "长阳土家族自治县",
+            "label": "长阳土家族自治县"
+        }, {
+            "value": "五峰土家族自治县",
+            "label": "五峰土家族自治县"
+        }, {"value": "宜都市", "label": "宜都市"}, {
+            "value": "当阳市",
+            "label": "当阳市"
+        }, {"value": "枝江市", "label": "枝江市"}]
+    }, {
+        "value": "襄阳市",
+        "label": "襄阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "襄城区",
+            "label": "襄城区"
+        }, {"value": "樊城区", "label": "樊城区"}, {
+            "value": "襄州区",
+            "label": "襄州区"
+        }, {"value": "南漳县", "label": "南漳县"}, {
+            "value": "谷城县",
+            "label": "谷城县"
+        }, {"value": "保康县", "label": "保康县"}, {
+            "value": "老河口市",
+            "label": "老河口市"
+        }, {"value": "枣阳市", "label": "枣阳市"}, {
+            "value": "宜城市",
+            "label": "宜城市"
+        }]
+    }, {
+        "value": "鄂州市",
+        "label": "鄂州市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {"value": "梁子湖区", "label": "梁子湖区"}, {
+            "value": "华容区",
+            "label": "华容区"
+        }, {"value": "鄂城区", "label": "鄂城区"}]
+    }, {
+        "value": "荆门市",
+        "label": "荆门市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "东宝区",
+            "label": "东宝区"
+        }, {"value": "掇刀区", "label": "掇刀区"}, {
+            "value": "京山县",
+            "label": "京山县"
+        }, {"value": "沙洋县", "label": "沙洋县"}, {
+            "value": "钟祥市",
+            "label": "钟祥市"
+        }]
+    }, {
+        "value": "孝感市",
+        "label": "孝感市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "孝南区",
+            "label": "孝南区"
+        }, {"value": "孝昌县", "label": "孝昌县"}, {
+            "value": "大悟县",
+            "label": "大悟县"
+        }, {"value": "云梦县", "label": "云梦县"}, {
+            "value": "应城市",
+            "label": "应城市"
+        }, {"value": "安陆市", "label": "安陆市"}, {
+            "value": "汉川市",
+            "label": "汉川市"
+        }]
+    }, {
+        "value": "荆州市",
+        "label": "荆州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "沙市区",
+            "label": "沙市区"
+        }, {"value": "荆州区", "label": "荆州区"}, {
+            "value": "公安县",
+            "label": "公安县"
+        }, {"value": "监利县", "label": "监利县"}, {
+            "value": "江陵县",
+            "label": "江陵县"
+        }, {"value": "石首市", "label": "石首市"}, {
+            "value": "洪湖市",
+            "label": "洪湖市"
+        }, {"value": "松滋市", "label": "松滋市"}]
+    }, {
+        "value": "黄冈市",
+        "label": "黄冈市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "黄州区",
+            "label": "黄州区"
+        }, {"value": "团风县", "label": "团风县"}, {
+            "value": "红安县",
+            "label": "红安县"
+        }, {"value": "罗田县", "label": "罗田县"}, {
+            "value": "英山县",
+            "label": "英山县"
+        }, {"value": "浠水县", "label": "浠水县"}, {
+            "value": "蕲春县",
+            "label": "蕲春县"
+        }, {"value": "黄梅县", "label": "黄梅县"}, {
+            "value": "麻城市",
+            "label": "麻城市"
+        }, {"value": "武穴市", "label": "武穴市"}]
+    }, {
+        "value": "咸宁市",
+        "label": "咸宁市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "咸安区",
+            "label": "咸安区"
+        }, {"value": "嘉鱼县", "label": "嘉鱼县"}, {
+            "value": "通城县",
+            "label": "通城县"
+        }, {"value": "崇阳县", "label": "崇阳县"}, {
+            "value": "通山县",
+            "label": "通山县"
+        }, {"value": "赤壁市", "label": "赤壁市"}]
+    }, {
+        "value": "随州市",
+        "label": "随州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "曾都区",
+            "label": "曾都区"
+        }, {"value": "随县", "label": "随县"}, {
+            "value": "广水市",
+            "label": "广水市"
+        }]
+    }, {
+        "value": "恩施土家族苗族自治州",
+        "label": "恩施土家族苗族自治州",
+        "children": [{"value": "恩施市", "label": "恩施市"}, {
+            "value": "利川市",
+            "label": "利川市"
+        }, {"value": "建始县", "label": "建始县"}, {
+            "value": "巴东县",
+            "label": "巴东县"
+        }, {"value": "宣恩县", "label": "宣恩县"}, {
+            "value": "咸丰县",
+            "label": "咸丰县"
+        }, {"value": "来凤县", "label": "来凤县"}, {
+            "value": "鹤峰县",
+            "label": "鹤峰县"
+        }]
+    }, {
+        "value": "直辖县",
+        "label": "直辖县",
+        "children": [{"value": "仙桃市", "label": "仙桃市"}, {
+            "value": "潜江市",
+            "label": "潜江市"
+        }, {"value": "天门市", "label": "天门市"}, {
+            "value": "神农架林区",
+            "label": "神农架林区"
+        }]
+    }]
+}, {
+    "value": "湖南省",
+    "label": "湖南省",
+    "children": [{
+        "value": "长沙市",
+        "label": "长沙市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "芙蓉区",
+            "label": "芙蓉区"
+        }, {"value": "天心区", "label": "天心区"}, {
+            "value": "岳麓区",
+            "label": "岳麓区"
+        }, {"value": "开福区", "label": "开福区"}, {
+            "value": "雨花区",
+            "label": "雨花区"
+        }, {"value": "望城区", "label": "望城区"}, {
+            "value": "长沙县",
+            "label": "长沙县"
+        }, {"value": "宁乡县", "label": "宁乡县"}, {
+            "value": "浏阳市",
+            "label": "浏阳市"
+        }]
+    }, {
+        "value": "株洲市",
+        "label": "株洲市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "荷塘区",
+            "label": "荷塘区"
+        }, {"value": "芦淞区", "label": "芦淞区"}, {
+            "value": "石峰区",
+            "label": "石峰区"
+        }, {"value": "天元区", "label": "天元区"}, {
+            "value": "株洲县",
+            "label": "株洲县"
+        }, {"value": "攸县", "label": "攸县"}, {
+            "value": "茶陵县",
+            "label": "茶陵县"
+        }, {"value": "炎陵县", "label": "炎陵县"}, {
+            "value": "醴陵市",
+            "label": "醴陵市"
+        }]
+    }, {
+        "value": "湘潭市",
+        "label": "湘潭市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "雨湖区",
+            "label": "雨湖区"
+        }, {"value": "岳塘区", "label": "岳塘区"}, {
+            "value": "湘潭县",
+            "label": "湘潭县"
+        }, {"value": "湘乡市", "label": "湘乡市"}, {
+            "value": "韶山市",
+            "label": "韶山市"
+        }]
+    }, {
+        "value": "衡阳市",
+        "label": "衡阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "珠晖区",
+            "label": "珠晖区"
+        }, {"value": "雁峰区", "label": "雁峰区"}, {
+            "value": "石鼓区",
+            "label": "石鼓区"
+        }, {"value": "蒸湘区", "label": "蒸湘区"}, {
+            "value": "南岳区",
+            "label": "南岳区"
+        }, {"value": "衡阳县", "label": "衡阳县"}, {
+            "value": "衡南县",
+            "label": "衡南县"
+        }, {"value": "衡山县", "label": "衡山县"}, {
+            "value": "衡东县",
+            "label": "衡东县"
+        }, {"value": "祁东县", "label": "祁东县"}, {
+            "value": "耒阳市",
+            "label": "耒阳市"
+        }, {"value": "常宁市", "label": "常宁市"}]
+    }, {
+        "value": "邵阳市",
+        "label": "邵阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "双清区",
+            "label": "双清区"
+        }, {"value": "大祥区", "label": "大祥区"}, {
+            "value": "北塔区",
+            "label": "北塔区"
+        }, {"value": "邵东县", "label": "邵东县"}, {
+            "value": "新邵县",
+            "label": "新邵县"
+        }, {"value": "邵阳县", "label": "邵阳县"}, {
+            "value": "隆回县",
+            "label": "隆回县"
+        }, {"value": "洞口县", "label": "洞口县"}, {
+            "value": "绥宁县",
+            "label": "绥宁县"
+        }, {
+            "value": "新宁县",
+            "label": "新宁县"
+        }, {
+            "value": "城步苗族自治县",
+            "label": "城步苗族自治县"
+        }, {"value": "武冈市", "label": "武冈市"}]
+    }, {
+        "value": "岳阳市",
+        "label": "岳阳市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {"value": "岳阳楼区", "label": "岳阳楼区"}, {
+            "value": "云溪区",
+            "label": "云溪区"
+        }, {"value": "君山区", "label": "君山区"}, {
+            "value": "岳阳县",
+            "label": "岳阳县"
+        }, {"value": "华容县", "label": "华容县"}, {
+            "value": "湘阴县",
+            "label": "湘阴县"
+        }, {"value": "平江县", "label": "平江县"}, {
+            "value": "汨罗市",
+            "label": "汨罗市"
+        }, {"value": "临湘市", "label": "临湘市"}]
+    }, {
+        "value": "常德市",
+        "label": "常德市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "武陵区",
+            "label": "武陵区"
+        }, {"value": "鼎城区", "label": "鼎城区"}, {
+            "value": "安乡县",
+            "label": "安乡县"
+        }, {"value": "汉寿县", "label": "汉寿县"}, {
+            "value": "澧县",
+            "label": "澧县"
+        }, {"value": "临澧县", "label": "临澧县"}, {
+            "value": "桃源县",
+            "label": "桃源县"
+        }, {"value": "石门县", "label": "石门县"}, {
+            "value": "津市市",
+            "label": "津市市"
+        }]
+    }, {
+        "value": "张家界市",
+        "label": "张家界市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "永定区",
+            "label": "永定区"
+        }, {"value": "武陵源区", "label": "武陵源区"}, {
+            "value": "慈利县",
+            "label": "慈利县"
+        }, {"value": "桑植县", "label": "桑植县"}]
+    }, {
+        "value": "益阳市",
+        "label": "益阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "资阳区",
+            "label": "资阳区"
+        }, {"value": "赫山区", "label": "赫山区"}, {
+            "value": "南县",
+            "label": "南县"
+        }, {"value": "桃江县", "label": "桃江县"}, {
+            "value": "安化县",
+            "label": "安化县"
+        }, {"value": "沅江市", "label": "沅江市"}]
+    }, {
+        "value": "郴州市",
+        "label": "郴州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "北湖区",
+            "label": "北湖区"
+        }, {"value": "苏仙区", "label": "苏仙区"}, {
+            "value": "桂阳县",
+            "label": "桂阳县"
+        }, {"value": "宜章县", "label": "宜章县"}, {
+            "value": "永兴县",
+            "label": "永兴县"
+        }, {"value": "嘉禾县", "label": "嘉禾县"}, {
+            "value": "临武县",
+            "label": "临武县"
+        }, {"value": "汝城县", "label": "汝城县"}, {
+            "value": "桂东县",
+            "label": "桂东县"
+        }, {"value": "安仁县", "label": "安仁县"}, {
+            "value": "资兴市",
+            "label": "资兴市"
+        }]
+    }, {
+        "value": "永州市",
+        "label": "永州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "零陵区",
+            "label": "零陵区"
+        }, {"value": "冷水滩区", "label": "冷水滩区"}, {
+            "value": "祁阳县",
+            "label": "祁阳县"
+        }, {"value": "东安县", "label": "东安县"}, {
+            "value": "双牌县",
+            "label": "双牌县"
+        }, {"value": "道县", "label": "道县"}, {
+            "value": "江永县",
+            "label": "江永县"
+        }, {"value": "宁远县", "label": "宁远县"}, {
+            "value": "蓝山县",
+            "label": "蓝山县"
+        }, {
+            "value": "新田县",
+            "label": "新田县"
+        }, {
+            "value": "江华瑶族自治县",
+            "label": "江华瑶族自治县"
+        }]
+    }, {
+        "value": "怀化市",
+        "label": "怀化市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "鹤城区",
+            "label": "鹤城区"
+        }, {"value": "中方县", "label": "中方县"}, {
+            "value": "沅陵县",
+            "label": "沅陵县"
+        }, {"value": "辰溪县", "label": "辰溪县"}, {
+            "value": "溆浦县",
+            "label": "溆浦县"
+        }, {
+            "value": "会同县",
+            "label": "会同县"
+        }, {
+            "value": "麻阳苗族自治县",
+            "label": "麻阳苗族自治县"
+        }, {
+            "value": "新晃侗族自治县",
+            "label": "新晃侗族自治县"
+        }, {
+            "value": "芷江侗族自治县",
+            "label": "芷江侗族自治县"
+        }, {
+            "value": "靖州苗族侗族自治县",
+            "label": "靖州苗族侗族自治县"
+        }, {
+            "value": "通道侗族自治县",
+            "label": "通道侗族自治县"
+        }, {"value": "洪江市", "label": "洪江市"}]
+    }, {
+        "value": "娄底市",
+        "label": "娄底市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "娄星区",
+            "label": "娄星区"
+        }, {"value": "双峰县", "label": "双峰县"}, {
+            "value": "新化县",
+            "label": "新化县"
+        }, {"value": "冷水江市", "label": "冷水江市"}, {
+            "value": "涟源市",
+            "label": "涟源市"
+        }]
+    }, {
+        "value": "湘西土家族苗族自治州",
+        "label": "湘西土家族苗族自治州",
+        "children": [{"value": "吉首市", "label": "吉首市"}, {
+            "value": "泸溪县",
+            "label": "泸溪县"
+        }, {"value": "凤凰县", "label": "凤凰县"}, {
+            "value": "花垣县",
+            "label": "花垣县"
+        }, {"value": "保靖县", "label": "保靖县"}, {
+            "value": "古丈县",
+            "label": "古丈县"
+        }, {"value": "永顺县", "label": "永顺县"}, {
+            "value": "龙山县",
+            "label": "龙山县"
+        }]
+    }]
+}, {
+    "value": "广东省",
+    "label": "广东省",
+    "children": [{
+        "value": "广州市",
+        "label": "广州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "荔湾区",
+            "label": "荔湾区"
+        }, {"value": "越秀区", "label": "越秀区"}, {
+            "value": "海珠区",
+            "label": "海珠区"
+        }, {"value": "天河区", "label": "天河区"}, {
+            "value": "白云区",
+            "label": "白云区"
+        }, {"value": "黄埔区", "label": "黄埔区"}, {
+            "value": "番禺区",
+            "label": "番禺区"
+        }, {"value": "花都区", "label": "花都区"}, {
+            "value": "南沙区",
+            "label": "南沙区"
+        }, {"value": "从化区", "label": "从化区"}, {
+            "value": "增城区",
+            "label": "增城区"
+        }]
+    }, {
+        "value": "韶关市",
+        "label": "韶关市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "武江区",
+            "label": "武江区"
+        }, {"value": "浈江区", "label": "浈江区"}, {
+            "value": "曲江区",
+            "label": "曲江区"
+        }, {"value": "始兴县", "label": "始兴县"}, {
+            "value": "仁化县",
+            "label": "仁化县"
+        }, {
+            "value": "翁源县",
+            "label": "翁源县"
+        }, {
+            "value": "乳源瑶族自治县",
+            "label": "乳源瑶族自治县"
+        }, {"value": "新丰县", "label": "新丰县"}, {
+            "value": "乐昌市",
+            "label": "乐昌市"
+        }, {"value": "南雄市", "label": "南雄市"}]
+    }, {
+        "value": "深圳市",
+        "label": "深圳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "罗湖区",
+            "label": "罗湖区"
+        }, {"value": "福田区", "label": "福田区"}, {
+            "value": "南山区",
+            "label": "南山区"
+        }, {"value": "宝安区", "label": "宝安区"}, {
+            "value": "龙岗区",
+            "label": "龙岗区"
+        }, {"value": "盐田区", "label": "盐田区"}]
+    }, {
+        "value": "珠海市",
+        "label": "珠海市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "香洲区",
+            "label": "香洲区"
+        }, {"value": "斗门区", "label": "斗门区"}, {
+            "value": "金湾区",
+            "label": "金湾区"
+        }]
+    }, {
+        "value": "汕头市",
+        "label": "汕头市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "龙湖区",
+            "label": "龙湖区"
+        }, {"value": "金平区", "label": "金平区"}, {
+            "value": "濠江区",
+            "label": "濠江区"
+        }, {"value": "潮阳区", "label": "潮阳区"}, {
+            "value": "潮南区",
+            "label": "潮南区"
+        }, {"value": "澄海区", "label": "澄海区"}, {
+            "value": "南澳县",
+            "label": "南澳县"
+        }]
+    }, {
+        "value": "佛山市",
+        "label": "佛山市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "禅城区",
+            "label": "禅城区"
+        }, {"value": "南海区", "label": "南海区"}, {
+            "value": "顺德区",
+            "label": "顺德区"
+        }, {"value": "三水区", "label": "三水区"}, {
+            "value": "高明区",
+            "label": "高明区"
+        }]
+    }, {
+        "value": "江门市",
+        "label": "江门市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "蓬江区",
+            "label": "蓬江区"
+        }, {"value": "江海区", "label": "江海区"}, {
+            "value": "新会区",
+            "label": "新会区"
+        }, {"value": "台山市", "label": "台山市"}, {
+            "value": "开平市",
+            "label": "开平市"
+        }, {"value": "鹤山市", "label": "鹤山市"}, {
+            "value": "恩平市",
+            "label": "恩平市"
+        }]
+    }, {
+        "value": "湛江市",
+        "label": "湛江市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "赤坎区",
+            "label": "赤坎区"
+        }, {"value": "霞山区", "label": "霞山区"}, {
+            "value": "坡头区",
+            "label": "坡头区"
+        }, {"value": "麻章区", "label": "麻章区"}, {
+            "value": "遂溪县",
+            "label": "遂溪县"
+        }, {"value": "徐闻县", "label": "徐闻县"}, {
+            "value": "廉江市",
+            "label": "廉江市"
+        }, {"value": "雷州市", "label": "雷州市"}, {
+            "value": "吴川市",
+            "label": "吴川市"
+        }]
+    }, {
+        "value": "茂名市",
+        "label": "茂名市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "茂南区",
+            "label": "茂南区"
+        }, {"value": "电白区", "label": "电白区"}, {
+            "value": "高州市",
+            "label": "高州市"
+        }, {"value": "化州市", "label": "化州市"}, {
+            "value": "信宜市",
+            "label": "信宜市"
+        }]
+    }, {
+        "value": "肇庆市",
+        "label": "肇庆市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "端州区",
+            "label": "端州区"
+        }, {"value": "鼎湖区", "label": "鼎湖区"}, {
+            "value": "高要区",
+            "label": "高要区"
+        }, {"value": "广宁县", "label": "广宁县"}, {
+            "value": "怀集县",
+            "label": "怀集县"
+        }, {"value": "封开县", "label": "封开县"}, {
+            "value": "德庆县",
+            "label": "德庆县"
+        }, {"value": "四会市", "label": "四会市"}]
+    }, {
+        "value": "惠州市",
+        "label": "惠州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "惠城区",
+            "label": "惠城区"
+        }, {"value": "惠阳区", "label": "惠阳区"}, {
+            "value": "博罗县",
+            "label": "博罗县"
+        }, {"value": "惠东县", "label": "惠东县"}, {
+            "value": "龙门县",
+            "label": "龙门县"
+        }]
+    }, {
+        "value": "梅州市",
+        "label": "梅州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "梅江区",
+            "label": "梅江区"
+        }, {"value": "梅县区", "label": "梅县区"}, {
+            "value": "大埔县",
+            "label": "大埔县"
+        }, {"value": "丰顺县", "label": "丰顺县"}, {
+            "value": "五华县",
+            "label": "五华县"
+        }, {"value": "平远县", "label": "平远县"}, {
+            "value": "蕉岭县",
+            "label": "蕉岭县"
+        }, {"value": "兴宁市", "label": "兴宁市"}]
+    }, {
+        "value": "汕尾市",
+        "label": "汕尾市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "城区",
+            "label": "城区"
+        }, {"value": "海丰县", "label": "海丰县"}, {
+            "value": "陆河县",
+            "label": "陆河县"
+        }, {"value": "陆丰市", "label": "陆丰市"}]
+    }, {
+        "value": "河源市",
+        "label": "河源市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "源城区",
+            "label": "源城区"
+        }, {"value": "紫金县", "label": "紫金县"}, {
+            "value": "龙川县",
+            "label": "龙川县"
+        }, {"value": "连平县", "label": "连平县"}, {
+            "value": "和平县",
+            "label": "和平县"
+        }, {"value": "东源县", "label": "东源县"}]
+    }, {
+        "value": "阳江市",
+        "label": "阳江市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "江城区",
+            "label": "江城区"
+        }, {"value": "阳东区", "label": "阳东区"}, {
+            "value": "阳西县",
+            "label": "阳西县"
+        }, {"value": "阳春市", "label": "阳春市"}]
+    }, {
+        "value": "清远市",
+        "label": "清远市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "清城区",
+            "label": "清城区"
+        }, {"value": "清新区", "label": "清新区"}, {
+            "value": "佛冈县",
+            "label": "佛冈县"
+        }, {
+            "value": "阳山县",
+            "label": "阳山县"
+        }, {
+            "value": "连山壮族瑶族自治县",
+            "label": "连山壮族瑶族自治县"
+        }, {
+            "value": "连南瑶族自治县",
+            "label": "连南瑶族自治县"
+        }, {"value": "英德市", "label": "英德市"}, {
+            "value": "连州市",
+            "label": "连州市"
+        }]
+    }, {
+        "value": "东莞市",
+        "label": "东莞市",
+        "children": [{
+            "value": "东城街道办事处",
+            "label": "东城街道办事处"
+        }, {
+            "value": "南城街道办事处",
+            "label": "南城街道办事处"
+        }, {
+            "value": "万江街道办事处",
+            "label": "万江街道办事处"
+        }, {
+            "value": "莞城街道办事处",
+            "label": "莞城街道办事处"
+        }, {"value": "石碣镇", "label": "石碣镇"}, {
+            "value": "石龙镇",
+            "label": "石龙镇"
+        }, {"value": "茶山镇", "label": "茶山镇"}, {
+            "value": "石排镇",
+            "label": "石排镇"
+        }, {"value": "企石镇", "label": "企石镇"}, {
+            "value": "横沥镇",
+            "label": "横沥镇"
+        }, {"value": "桥头镇", "label": "桥头镇"}, {
+            "value": "谢岗镇",
+            "label": "谢岗镇"
+        }, {"value": "东坑镇", "label": "东坑镇"}, {
+            "value": "常平镇",
+            "label": "常平镇"
+        }, {"value": "寮步镇", "label": "寮步镇"}, {
+            "value": "樟木头镇",
+            "label": "樟木头镇"
+        }, {"value": "大朗镇", "label": "大朗镇"}, {
+            "value": "黄江镇",
+            "label": "黄江镇"
+        }, {"value": "清溪镇", "label": "清溪镇"}, {
+            "value": "塘厦镇",
+            "label": "塘厦镇"
+        }, {"value": "凤岗镇", "label": "凤岗镇"}, {
+            "value": "大岭山镇",
+            "label": "大岭山镇"
+        }, {"value": "长安镇", "label": "长安镇"}, {
+            "value": "虎门镇",
+            "label": "虎门镇"
+        }, {"value": "厚街镇", "label": "厚街镇"}, {
+            "value": "沙田镇",
+            "label": "沙田镇"
+        }, {"value": "道滘镇", "label": "道滘镇"}, {
+            "value": "洪梅镇",
+            "label": "洪梅镇"
+        }, {"value": "麻涌镇", "label": "麻涌镇"}, {
+            "value": "望牛墩镇",
+            "label": "望牛墩镇"
+        }, {"value": "中堂镇", "label": "中堂镇"}, {
+            "value": "高埗镇",
+            "label": "高埗镇"
+        }, {
+            "value": "松山湖管委会",
+            "label": "松山湖管委会"
+        }, {
+            "value": "虎门港管委会",
+            "label": "虎门港管委会"
+        }, {"value": "东莞生态园", "label": "东莞生态园"}]
+    }, {
+        "value": "中山市",
+        "label": "中山市",
+        "children": [{
+            "value": "石岐区街道办事处",
+            "label": "石岐区街道办事处"
+        }, {
+            "value": "东区街道办事处",
+            "label": "东区街道办事处"
+        }, {
+            "value": "火炬开发区街道办事处",
+            "label": "火炬开发区街道办事处"
+        }, {
+            "value": "西区街道办事处",
+            "label": "西区街道办事处"
+        }, {
+            "value": "南区街道办事处",
+            "label": "南区街道办事处"
+        }, {
+            "value": "五桂山街道办事处",
+            "label": "五桂山街道办事处"
+        }, {"value": "小榄镇", "label": "小榄镇"}, {
+            "value": "黄圃镇",
+            "label": "黄圃镇"
+        }, {"value": "民众镇", "label": "民众镇"}, {
+            "value": "东凤镇",
+            "label": "东凤镇"
+        }, {"value": "东升镇", "label": "东升镇"}, {
+            "value": "古镇镇",
+            "label": "古镇镇"
+        }, {"value": "沙溪镇", "label": "沙溪镇"}, {
+            "value": "坦洲镇",
+            "label": "坦洲镇"
+        }, {"value": "港口镇", "label": "港口镇"}, {
+            "value": "三角镇",
+            "label": "三角镇"
+        }, {"value": "横栏镇", "label": "横栏镇"}, {
+            "value": "南头镇",
+            "label": "南头镇"
+        }, {"value": "阜沙镇", "label": "阜沙镇"}, {
+            "value": "南朗镇",
+            "label": "南朗镇"
+        }, {"value": "三乡镇", "label": "三乡镇"}, {
+            "value": "板芙镇",
+            "label": "板芙镇"
+        }, {"value": "大涌镇", "label": "大涌镇"}, {
+            "value": "神湾镇",
+            "label": "神湾镇"
+        }]
+    }, {
+        "value": "潮州市",
+        "label": "潮州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "湘桥区",
+            "label": "湘桥区"
+        }, {"value": "潮安区", "label": "潮安区"}, {
+            "value": "饶平县",
+            "label": "饶平县"
+        }]
+    }, {
+        "value": "揭阳市",
+        "label": "揭阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "榕城区",
+            "label": "榕城区"
+        }, {"value": "揭东区", "label": "揭东区"}, {
+            "value": "揭西县",
+            "label": "揭西县"
+        }, {"value": "惠来县", "label": "惠来县"}, {
+            "value": "普宁市",
+            "label": "普宁市"
+        }]
+    }, {
+        "value": "云浮市",
+        "label": "云浮市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "云城区",
+            "label": "云城区"
+        }, {"value": "云安区", "label": "云安区"}, {
+            "value": "新兴县",
+            "label": "新兴县"
+        }, {"value": "郁南县", "label": "郁南县"}, {
+            "value": "罗定市",
+            "label": "罗定市"
+        }]
+    }]
+}, {
+    "value": "广西壮族自治区",
+    "label": "广西壮族自治区",
+    "children": [{
+        "value": "南宁市",
+        "label": "南宁市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "兴宁区",
+            "label": "兴宁区"
+        }, {"value": "青秀区", "label": "青秀区"}, {
+            "value": "江南区",
+            "label": "江南区"
+        }, {"value": "西乡塘区", "label": "西乡塘区"}, {
+            "value": "良庆区",
+            "label": "良庆区"
+        }, {"value": "邕宁区", "label": "邕宁区"}, {
+            "value": "武鸣区",
+            "label": "武鸣区"
+        }, {"value": "隆安县", "label": "隆安县"}, {
+            "value": "马山县",
+            "label": "马山县"
+        }, {"value": "上林县", "label": "上林县"}, {
+            "value": "宾阳县",
+            "label": "宾阳县"
+        }, {"value": "横县", "label": "横县"}]
+    }, {
+        "value": "柳州市",
+        "label": "柳州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "城中区",
+            "label": "城中区"
+        }, {"value": "鱼峰区", "label": "鱼峰区"}, {
+            "value": "柳南区",
+            "label": "柳南区"
+        }, {"value": "柳北区", "label": "柳北区"}, {
+            "value": "柳江区",
+            "label": "柳江区"
+        }, {"value": "柳城县", "label": "柳城县"}, {
+            "value": "鹿寨县",
+            "label": "鹿寨县"
+        }, {
+            "value": "融安县",
+            "label": "融安县"
+        }, {
+            "value": "融水苗族自治县",
+            "label": "融水苗族自治县"
+        }, {
+            "value": "三江侗族自治县",
+            "label": "三江侗族自治县"
+        }]
+    }, {
+        "value": "桂林市",
+        "label": "桂林市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "秀峰区",
+            "label": "秀峰区"
+        }, {"value": "叠彩区", "label": "叠彩区"}, {
+            "value": "象山区",
+            "label": "象山区"
+        }, {"value": "七星区", "label": "七星区"}, {
+            "value": "雁山区",
+            "label": "雁山区"
+        }, {"value": "临桂区", "label": "临桂区"}, {
+            "value": "阳朔县",
+            "label": "阳朔县"
+        }, {"value": "灵川县", "label": "灵川县"}, {
+            "value": "全州县",
+            "label": "全州县"
+        }, {"value": "兴安县", "label": "兴安县"}, {
+            "value": "永福县",
+            "label": "永福县"
+        }, {
+            "value": "灌阳县",
+            "label": "灌阳县"
+        }, {
+            "value": "龙胜各族自治县",
+            "label": "龙胜各族自治县"
+        }, {"value": "资源县", "label": "资源县"}, {
+            "value": "平乐县",
+            "label": "平乐县"
+        }, {
+            "value": "荔浦县",
+            "label": "荔浦县"
+        }, {
+            "value": "恭城瑶族自治县",
+            "label": "恭城瑶族自治县"
+        }]
+    }, {
+        "value": "梧州市",
+        "label": "梧州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "万秀区",
+            "label": "万秀区"
+        }, {"value": "长洲区", "label": "长洲区"}, {
+            "value": "龙圩区",
+            "label": "龙圩区"
+        }, {"value": "苍梧县", "label": "苍梧县"}, {
+            "value": "藤县",
+            "label": "藤县"
+        }, {"value": "蒙山县", "label": "蒙山县"}, {
+            "value": "岑溪市",
+            "label": "岑溪市"
+        }]
+    }, {
+        "value": "北海市",
+        "label": "北海市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "海城区",
+            "label": "海城区"
+        }, {"value": "银海区", "label": "银海区"}, {
+            "value": "铁山港区",
+            "label": "铁山港区"
+        }, {"value": "合浦县", "label": "合浦县"}]
+    }, {
+        "value": "防城港市",
+        "label": "防城港市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "港口区",
+            "label": "港口区"
+        }, {"value": "防城区", "label": "防城区"}, {
+            "value": "上思县",
+            "label": "上思县"
+        }, {"value": "东兴市", "label": "东兴市"}]
+    }, {
+        "value": "钦州市",
+        "label": "钦州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "钦南区",
+            "label": "钦南区"
+        }, {"value": "钦北区", "label": "钦北区"}, {
+            "value": "灵山县",
+            "label": "灵山县"
+        }, {"value": "浦北县", "label": "浦北县"}]
+    }, {
+        "value": "贵港市",
+        "label": "贵港市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "港北区",
+            "label": "港北区"
+        }, {"value": "港南区", "label": "港南区"}, {
+            "value": "覃塘区",
+            "label": "覃塘区"
+        }, {"value": "平南县", "label": "平南县"}, {
+            "value": "桂平市",
+            "label": "桂平市"
+        }]
+    }, {
+        "value": "玉林市",
+        "label": "玉林市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "玉州区",
+            "label": "玉州区"
+        }, {"value": "福绵区", "label": "福绵区"}, {
+            "value": "容县",
+            "label": "容县"
+        }, {"value": "陆川县", "label": "陆川县"}, {
+            "value": "博白县",
+            "label": "博白县"
+        }, {"value": "兴业县", "label": "兴业县"}, {
+            "value": "北流市",
+            "label": "北流市"
+        }]
+    }, {
+        "value": "百色市",
+        "label": "百色市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "右江区",
+            "label": "右江区"
+        }, {"value": "田阳县", "label": "田阳县"}, {
+            "value": "田东县",
+            "label": "田东县"
+        }, {"value": "平果县", "label": "平果县"}, {
+            "value": "德保县",
+            "label": "德保县"
+        }, {"value": "那坡县", "label": "那坡县"}, {
+            "value": "凌云县",
+            "label": "凌云县"
+        }, {"value": "乐业县", "label": "乐业县"}, {
+            "value": "田林县",
+            "label": "田林县"
+        }, {
+            "value": "西林县",
+            "label": "西林县"
+        }, {
+            "value": "隆林各族自治县",
+            "label": "隆林各族自治县"
+        }, {"value": "靖西市", "label": "靖西市"}]
+    }, {
+        "value": "贺州市",
+        "label": "贺州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "八步区",
+            "label": "八步区"
+        }, {"value": "平桂区", "label": "平桂区"}, {
+            "value": "昭平县",
+            "label": "昭平县"
+        }, {
+            "value": "钟山县",
+            "label": "钟山县"
+        }, {
+            "value": "富川瑶族自治县",
+            "label": "富川瑶族自治县"
+        }]
+    }, {
+        "value": "河池市",
+        "label": "河池市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {"value": "金城江区", "label": "金城江区"}, {
+            "value": "南丹县",
+            "label": "南丹县"
+        }, {"value": "天峨县", "label": "天峨县"}, {
+            "value": "凤山县",
+            "label": "凤山县"
+        }, {
+            "value": "东兰县",
+            "label": "东兰县"
+        }, {
+            "value": "罗城仫佬族自治县",
+            "label": "罗城仫佬族自治县"
+        }, {
+            "value": "环江毛南族自治县",
+            "label": "环江毛南族自治县"
+        }, {
+            "value": "巴马瑶族自治县",
+            "label": "巴马瑶族自治县"
+        }, {
+            "value": "都安瑶族自治县",
+            "label": "都安瑶族自治县"
+        }, {
+            "value": "大化瑶族自治县",
+            "label": "大化瑶族自治县"
+        }, {"value": "宜州市", "label": "宜州市"}]
+    }, {
+        "value": "来宾市",
+        "label": "来宾市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "兴宾区",
+            "label": "兴宾区"
+        }, {"value": "忻城县", "label": "忻城县"}, {
+            "value": "象州县",
+            "label": "象州县"
+        }, {
+            "value": "武宣县",
+            "label": "武宣县"
+        }, {
+            "value": "金秀瑶族自治县",
+            "label": "金秀瑶族自治县"
+        }, {"value": "合山市", "label": "合山市"}]
+    }, {
+        "value": "崇左市",
+        "label": "崇左市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "江州区",
+            "label": "江州区"
+        }, {"value": "扶绥县", "label": "扶绥县"}, {
+            "value": "宁明县",
+            "label": "宁明县"
+        }, {"value": "龙州县", "label": "龙州县"}, {
+            "value": "大新县",
+            "label": "大新县"
+        }, {"value": "天等县", "label": "天等县"}, {
+            "value": "凭祥市",
+            "label": "凭祥市"
+        }]
+    }]
+}, {
+    "value": "海南省",
+    "label": "海南省",
+    "children": [{
+        "value": "海口市",
+        "label": "海口市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "秀英区",
+            "label": "秀英区"
+        }, {"value": "龙华区", "label": "龙华区"}, {
+            "value": "琼山区",
+            "label": "琼山区"
+        }, {"value": "美兰区", "label": "美兰区"}]
+    }, {
+        "value": "三亚市",
+        "label": "三亚市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "海棠区",
+            "label": "海棠区"
+        }, {"value": "吉阳区", "label": "吉阳区"}, {
+            "value": "天涯区",
+            "label": "天涯区"
+        }, {"value": "崖州区", "label": "崖州区"}]
+    }, {
+        "value": "三沙市",
+        "label": "三沙市",
+        "children": [{
+            "value": "西沙群岛",
+            "label": "西沙群岛"
+        }, {
+            "value": "南沙群岛",
+            "label": "南沙群岛"
+        }, {
+            "value": "中沙群岛的岛礁及其海域",
+            "label": "中沙群岛的岛礁及其海域"
+        }]
+    }, {
+        "value": "儋州市",
+        "label": "儋州市",
+        "children": [{"value": "那大镇", "label": "那大镇"}, {
+            "value": "和庆镇",
+            "label": "和庆镇"
+        }, {"value": "南丰镇", "label": "南丰镇"}, {
+            "value": "大成镇",
+            "label": "大成镇"
+        }, {"value": "雅星镇", "label": "雅星镇"}, {
+            "value": "兰洋镇",
+            "label": "兰洋镇"
+        }, {"value": "光村镇", "label": "光村镇"}, {
+            "value": "木棠镇",
+            "label": "木棠镇"
+        }, {"value": "海头镇", "label": "海头镇"}, {
+            "value": "峨蔓镇",
+            "label": "峨蔓镇"
+        }, {"value": "三都镇", "label": "三都镇"}, {
+            "value": "王五镇",
+            "label": "王五镇"
+        }, {"value": "白马井镇", "label": "白马井镇"}, {
+            "value": "中和镇",
+            "label": "中和镇"
+        }, {"value": "排浦镇", "label": "排浦镇"}, {
+            "value": "东成镇",
+            "label": "东成镇"
+        }, {
+            "value": "新州镇",
+            "label": "新州镇"
+        }, {
+            "value": "国营西培农场",
+            "label": "国营西培农场"
+        }, {
+            "value": "国营西联农场",
+            "label": "国营西联农场"
+        }, {
+            "value": "国营蓝洋农场",
+            "label": "国营蓝洋农场"
+        }, {
+            "value": "国营八一农场",
+            "label": "国营八一农场"
+        }, {
+            "value": "洋浦经济开发区",
+            "label": "洋浦经济开发区"
+        }, {"value": "华南热作学院", "label": "华南热作学院"}]
+    }, {
+        "value": "省直辖县级行政区域",
+        "label": "省直辖县级行政区域",
+        "children": [{
+            "value": "五指山市",
+            "label": "五指山市"
+        }, {"value": "琼海市", "label": "琼海市"}, {
+            "value": "文昌市",
+            "label": "文昌市"
+        }, {"value": "万宁市", "label": "万宁市"}, {
+            "value": "东方市",
+            "label": "东方市"
+        }, {"value": "定安县", "label": "定安县"}, {
+            "value": "屯昌县",
+            "label": "屯昌县"
+        }, {"value": "澄迈县", "label": "澄迈县"}, {
+            "value": "临高县",
+            "label": "临高县"
+        }, {
+            "value": "白沙黎族自治县",
+            "label": "白沙黎族自治县"
+        }, {
+            "value": "昌江黎族自治县",
+            "label": "昌江黎族自治县"
+        }, {
+            "value": "乐东黎族自治县",
+            "label": "乐东黎族自治县"
+        }, {
+            "value": "陵水黎族自治县",
+            "label": "陵水黎族自治县"
+        }, {
+            "value": "保亭黎族苗族自治县",
+            "label": "保亭黎族苗族自治县"
+        }, {
+            "value": "琼中黎族苗族自治县",
+            "label": "琼中黎族苗族自治县"
+        }]
+    }]
+}, {
+    "value": "重庆市", "label": "重庆市", "children": [{
+        "value": "重庆市",
+        "label": "重庆市",
+        "children": [{"value": "万州区", "label": "万州区"}, {
+            "value": "涪陵区",
+            "label": "涪陵区"
+        }, {"value": "渝中区", "label": "渝中区"}, {
+            "value": "大渡口区",
+            "label": "大渡口区"
+        }, {"value": "江北区", "label": "江北区"}, {
+            "value": "沙坪坝区",
+            "label": "沙坪坝区"
+        }, {"value": "九龙坡区", "label": "九龙坡区"}, {
+            "value": "南岸区",
+            "label": "南岸区"
+        }, {"value": "北碚区", "label": "北碚区"}, {
+            "value": "綦江区",
+            "label": "綦江区"
+        }, {"value": "大足区", "label": "大足区"}, {
+            "value": "渝北区",
+            "label": "渝北区"
+        }, {"value": "巴南区", "label": "巴南区"}, {
+            "value": "黔江区",
+            "label": "黔江区"
+        }, {"value": "长寿区", "label": "长寿区"}, {
+            "value": "江津区",
+            "label": "江津区"
+        }, {"value": "合川区", "label": "合川区"}, {
+            "value": "永川区",
+            "label": "永川区"
+        }, {"value": "南川区", "label": "南川区"}, {
+            "value": "璧山区",
+            "label": "璧山区"
+        }, {"value": "铜梁区", "label": "铜梁区"}, {
+            "value": "潼南区",
+            "label": "潼南区"
+        }, {"value": "荣昌区", "label": "荣昌区"}, {
+            "value": "开州区",
+            "label": "开州区"
+        }]
+    }, {
+        "value": "县",
+        "label": "县",
+        "children": [{"value": "梁平县", "label": "梁平县"}, {
+            "value": "城口县",
+            "label": "城口县"
+        }, {"value": "丰都县", "label": "丰都县"}, {
+            "value": "垫江县",
+            "label": "垫江县"
+        }, {"value": "武隆县", "label": "武隆县"}, {
+            "value": "忠县",
+            "label": "忠县"
+        }, {"value": "云阳县", "label": "云阳县"}, {
+            "value": "奉节县",
+            "label": "奉节县"
+        }, {"value": "巫山县", "label": "巫山县"}, {
+            "value": "巫溪县",
+            "label": "巫溪县"
+        }, {
+            "value": "石柱土家族自治县",
+            "label": "石柱土家族自治县"
+        }, {
+            "value": "秀山土家族苗族自治县",
+            "label": "秀山土家族苗族自治县"
+        }, {
+            "value": "酉阳土家族苗族自治县",
+            "label": "酉阳土家族苗族自治县"
+        }, {
+            "value": "彭水苗族土家族自治县",
+            "label": "彭水苗族土家族自治县"
+        }]
+    }]
+}, {
+    "value": "四川省", "label": "四川省", "children": [{
+        "value": "成都市",
+        "label": "成都市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "锦江区",
+            "label": "锦江区"
+        }, {"value": "青羊区", "label": "青羊区"}, {
+            "value": "金牛区",
+            "label": "金牛区"
+        }, {"value": "武侯区", "label": "武侯区"}, {
+            "value": "成华区",
+            "label": "成华区"
+        }, {
+            "value": "龙泉驿区",
+            "label": "龙泉驿区"
+        }, {"value": "青白江区", "label": "青白江区"}, {
+            "value": "新都区",
+            "label": "新都区"
+        }, {"value": "温江区", "label": "温江区"}, {
+            "value": "双流区",
+            "label": "双流区"
+        }, {"value": "金堂县", "label": "金堂县"}, {
+            "value": "郫县",
+            "label": "郫县"
+        }, {"value": "大邑县", "label": "大邑县"}, {
+            "value": "蒲江县",
+            "label": "蒲江县"
+        }, {"value": "新津县", "label": "新津县"}, {
+            "value": "都江堰市",
+            "label": "都江堰市"
+        }, {"value": "彭州市", "label": "彭州市"}, {
+            "value": "邛崃市",
+            "label": "邛崃市"
+        }, {"value": "崇州市", "label": "崇州市"}, {
+            "value": "简阳市",
+            "label": "简阳市"
+        }]
+    }, {
+        "value": "自贡市",
+        "label": "自贡市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {"value": "自流井区", "label": "自流井区"}, {
+            "value": "贡井区",
+            "label": "贡井区"
+        }, {"value": "大安区", "label": "大安区"}, {
+            "value": "沿滩区",
+            "label": "沿滩区"
+        }, {"value": "荣县", "label": "荣县"}, {
+            "value": "富顺县",
+            "label": "富顺县"
+        }]
+    }, {
+        "value": "攀枝花市",
+        "label": "攀枝花市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "东区",
+            "label": "东区"
+        }, {"value": "西区", "label": "西区"}, {
+            "value": "仁和区",
+            "label": "仁和区"
+        }, {"value": "米易县", "label": "米易县"}, {
+            "value": "盐边县",
+            "label": "盐边县"
+        }]
+    }, {
+        "value": "泸州市",
+        "label": "泸州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "江阳区",
+            "label": "江阳区"
+        }, {"value": "纳溪区", "label": "纳溪区"}, {
+            "value": "龙马潭区",
+            "label": "龙马潭区"
+        }, {"value": "泸县", "label": "泸县"}, {
+            "value": "合江县",
+            "label": "合江县"
+        }, {"value": "叙永县", "label": "叙永县"}, {
+            "value": "古蔺县",
+            "label": "古蔺县"
+        }]
+    }, {
+        "value": "德阳市",
+        "label": "德阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "旌阳区",
+            "label": "旌阳区"
+        }, {"value": "中江县", "label": "中江县"}, {
+            "value": "罗江县",
+            "label": "罗江县"
+        }, {"value": "广汉市", "label": "广汉市"}, {
+            "value": "什邡市",
+            "label": "什邡市"
+        }, {"value": "绵竹市", "label": "绵竹市"}]
+    }, {
+        "value": "绵阳市",
+        "label": "绵阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "涪城区",
+            "label": "涪城区"
+        }, {"value": "游仙区", "label": "游仙区"}, {
+            "value": "安州区",
+            "label": "安州区"
+        }, {"value": "三台县", "label": "三台县"}, {
+            "value": "盐亭县",
+            "label": "盐亭县"
+        }, {
+            "value": "梓潼县",
+            "label": "梓潼县"
+        }, {
+            "value": "北川羌族自治县",
+            "label": "北川羌族自治县"
+        }, {"value": "平武县", "label": "平武县"}, {
+            "value": "江油市",
+            "label": "江油市"
+        }]
+    }, {
+        "value": "广元市",
+        "label": "广元市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "利州区",
+            "label": "利州区"
+        }, {"value": "昭化区", "label": "昭化区"}, {
+            "value": "朝天区",
+            "label": "朝天区"
+        }, {"value": "旺苍县", "label": "旺苍县"}, {
+            "value": "青川县",
+            "label": "青川县"
+        }, {"value": "剑阁县", "label": "剑阁县"}, {
+            "value": "苍溪县",
+            "label": "苍溪县"
+        }]
+    }, {
+        "value": "遂宁市",
+        "label": "遂宁市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "船山区",
+            "label": "船山区"
+        }, {"value": "安居区", "label": "安居区"}, {
+            "value": "蓬溪县",
+            "label": "蓬溪县"
+        }, {"value": "射洪县", "label": "射洪县"}, {
+            "value": "大英县",
+            "label": "大英县"
+        }]
+    }, {
+        "value": "内江市",
+        "label": "内江市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "市中区",
+            "label": "市中区"
+        }, {"value": "东兴区", "label": "东兴区"}, {
+            "value": "威远县",
+            "label": "威远县"
+        }, {"value": "资中县", "label": "资中县"}, {
+            "value": "隆昌县",
+            "label": "隆昌县"
+        }]
+    }, {
+        "value": "乐山市",
+        "label": "乐山市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "市中区",
+            "label": "市中区"
+        }, {"value": "沙湾区", "label": "沙湾区"}, {
+            "value": "五通桥区",
+            "label": "五通桥区"
+        }, {"value": "金口河区", "label": "金口河区"}, {
+            "value": "犍为县",
+            "label": "犍为县"
+        }, {"value": "井研县", "label": "井研县"}, {
+            "value": "夹江县",
+            "label": "夹江县"
+        }, {
+            "value": "沐川县",
+            "label": "沐川县"
+        }, {
+            "value": "峨边彝族自治县",
+            "label": "峨边彝族自治县"
+        }, {
+            "value": "马边彝族自治县",
+            "label": "马边彝族自治县"
+        }, {"value": "峨眉山市", "label": "峨眉山市"}]
+    }, {
+        "value": "南充市",
+        "label": "南充市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "顺庆区",
+            "label": "顺庆区"
+        }, {"value": "高坪区", "label": "高坪区"}, {
+            "value": "嘉陵区",
+            "label": "嘉陵区"
+        }, {"value": "南部县", "label": "南部县"}, {
+            "value": "营山县",
+            "label": "营山县"
+        }, {"value": "蓬安县", "label": "蓬安县"}, {
+            "value": "仪陇县",
+            "label": "仪陇县"
+        }, {"value": "西充县", "label": "西充县"}, {
+            "value": "阆中市",
+            "label": "阆中市"
+        }]
+    }, {
+        "value": "眉山市",
+        "label": "眉山市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "东坡区",
+            "label": "东坡区"
+        }, {"value": "彭山区", "label": "彭山区"}, {
+            "value": "仁寿县",
+            "label": "仁寿县"
+        }, {"value": "洪雅县", "label": "洪雅县"}, {
+            "value": "丹棱县",
+            "label": "丹棱县"
+        }, {"value": "青神县", "label": "青神县"}]
+    }, {
+        "value": "宜宾市",
+        "label": "宜宾市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "翠屏区",
+            "label": "翠屏区"
+        }, {"value": "南溪区", "label": "南溪区"}, {
+            "value": "宜宾县",
+            "label": "宜宾县"
+        }, {"value": "江安县", "label": "江安县"}, {
+            "value": "长宁县",
+            "label": "长宁县"
+        }, {"value": "高县", "label": "高县"}, {
+            "value": "珙县",
+            "label": "珙县"
+        }, {"value": "筠连县", "label": "筠连县"}, {
+            "value": "兴文县",
+            "label": "兴文县"
+        }, {"value": "屏山县", "label": "屏山县"}]
+    }, {
+        "value": "广安市",
+        "label": "广安市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "广安区",
+            "label": "广安区"
+        }, {"value": "前锋区", "label": "前锋区"}, {
+            "value": "岳池县",
+            "label": "岳池县"
+        }, {"value": "武胜县", "label": "武胜县"}, {
+            "value": "邻水县",
+            "label": "邻水县"
+        }, {"value": "华蓥市", "label": "华蓥市"}]
+    }, {
+        "value": "达州市",
+        "label": "达州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "通川区",
+            "label": "通川区"
+        }, {"value": "达川区", "label": "达川区"}, {
+            "value": "宣汉县",
+            "label": "宣汉县"
+        }, {"value": "开江县", "label": "开江县"}, {
+            "value": "大竹县",
+            "label": "大竹县"
+        }, {"value": "渠县", "label": "渠县"}, {
+            "value": "万源市",
+            "label": "万源市"
+        }]
+    }, {
+        "value": "雅安市",
+        "label": "雅安市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "雨城区",
+            "label": "雨城区"
+        }, {"value": "名山区", "label": "名山区"}, {
+            "value": "荥经县",
+            "label": "荥经县"
+        }, {"value": "汉源县", "label": "汉源县"}, {
+            "value": "石棉县",
+            "label": "石棉县"
+        }, {"value": "天全县", "label": "天全县"}, {
+            "value": "芦山县",
+            "label": "芦山县"
+        }, {"value": "宝兴县", "label": "宝兴县"}]
+    }, {
+        "value": "巴中市",
+        "label": "巴中市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "巴州区",
+            "label": "巴州区"
+        }, {"value": "恩阳区", "label": "恩阳区"}, {
+            "value": "通江县",
+            "label": "通江县"
+        }, {"value": "南江县", "label": "南江县"}, {
+            "value": "平昌县",
+            "label": "平昌县"
+        }]
+    }, {
+        "value": "资阳市",
+        "label": "资阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "雁江区",
+            "label": "雁江区"
+        }, {"value": "安岳县", "label": "安岳县"}, {
+            "value": "乐至县",
+            "label": "乐至县"
+        }]
+    }, {
+        "value": "阿坝藏族羌族自治州",
+        "label": "阿坝藏族羌族自治州",
+        "children": [{
+            "value": "马尔康市",
+            "label": "马尔康市"
+        }, {"value": "汶川县", "label": "汶川县"}, {
+            "value": "理县",
+            "label": "理县"
+        }, {"value": "茂县", "label": "茂县"}, {
+            "value": "松潘县",
+            "label": "松潘县"
+        }, {"value": "九寨沟县", "label": "九寨沟县"}, {
+            "value": "金川县",
+            "label": "金川县"
+        }, {"value": "小金县", "label": "小金县"}, {
+            "value": "黑水县",
+            "label": "黑水县"
+        }, {"value": "壤塘县", "label": "壤塘县"}, {
+            "value": "阿坝县",
+            "label": "阿坝县"
+        }, {"value": "若尔盖县", "label": "若尔盖县"}, {
+            "value": "红原县",
+            "label": "红原县"
+        }]
+    }, {
+        "value": "甘孜藏族自治州",
+        "label": "甘孜藏族自治州",
+        "children": [{"value": "康定市", "label": "康定市"}, {
+            "value": "泸定县",
+            "label": "泸定县"
+        }, {"value": "丹巴县", "label": "丹巴县"}, {
+            "value": "九龙县",
+            "label": "九龙县"
+        }, {"value": "雅江县", "label": "雅江县"}, {
+            "value": "道孚县",
+            "label": "道孚县"
+        }, {"value": "炉霍县", "label": "炉霍县"}, {
+            "value": "甘孜县",
+            "label": "甘孜县"
+        }, {"value": "新龙县", "label": "新龙县"}, {
+            "value": "德格县",
+            "label": "德格县"
+        }, {"value": "白玉县", "label": "白玉县"}, {
+            "value": "石渠县",
+            "label": "石渠县"
+        }, {"value": "色达县", "label": "色达县"}, {
+            "value": "理塘县",
+            "label": "理塘县"
+        }, {"value": "巴塘县", "label": "巴塘县"}, {
+            "value": "乡城县",
+            "label": "乡城县"
+        }, {"value": "稻城县", "label": "稻城县"}, {
+            "value": "得荣县",
+            "label": "得荣县"
+        }]
+    }, {
+        "value": "凉山彝族自治州",
+        "label": "凉山彝族自治州",
+        "children": [{
+            "value": "西昌市",
+            "label": "西昌市"
+        }, {
+            "value": "木里藏族自治县",
+            "label": "木里藏族自治县"
+        }, {"value": "盐源县", "label": "盐源县"}, {
+            "value": "德昌县",
+            "label": "德昌县"
+        }, {"value": "会理县", "label": "会理县"}, {
+            "value": "会东县",
+            "label": "会东县"
+        }, {"value": "宁南县", "label": "宁南县"}, {
+            "value": "普格县",
+            "label": "普格县"
+        }, {"value": "布拖县", "label": "布拖县"}, {
+            "value": "金阳县",
+            "label": "金阳县"
+        }, {"value": "昭觉县", "label": "昭觉县"}, {
+            "value": "喜德县",
+            "label": "喜德县"
+        }, {"value": "冕宁县", "label": "冕宁县"}, {
+            "value": "越西县",
+            "label": "越西县"
+        }, {"value": "甘洛县", "label": "甘洛县"}, {
+            "value": "美姑县",
+            "label": "美姑县"
+        }, {"value": "雷波县", "label": "雷波县"}]
+    }]
+}, {
+    "value": "贵州省",
+    "label": "贵州省",
+    "children": [{
+        "value": "贵阳市",
+        "label": "贵阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "南明区",
+            "label": "南明区"
+        }, {"value": "云岩区", "label": "云岩区"}, {
+            "value": "花溪区",
+            "label": "花溪区"
+        }, {"value": "乌当区", "label": "乌当区"}, {
+            "value": "白云区",
+            "label": "白云区"
+        }, {"value": "观山湖区", "label": "观山湖区"}, {
+            "value": "开阳县",
+            "label": "开阳县"
+        }, {"value": "息烽县", "label": "息烽县"}, {
+            "value": "修文县",
+            "label": "修文县"
+        }, {"value": "清镇市", "label": "清镇市"}]
+    }, {
+        "value": "六盘水市",
+        "label": "六盘水市",
+        "children": [{
+            "value": "钟山区",
+            "label": "钟山区"
+        }, {"value": "六枝特区", "label": "六枝特区"}, {
+            "value": "水城县",
+            "label": "水城县"
+        }, {"value": "盘县", "label": "盘县"}]
+    }, {
+        "value": "遵义市",
+        "label": "遵义市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {"value": "红花岗区", "label": "红花岗区"}, {
+            "value": "汇川区",
+            "label": "汇川区"
+        }, {"value": "播州区", "label": "播州区"}, {
+            "value": "桐梓县",
+            "label": "桐梓县"
+        }, {"value": "绥阳县", "label": "绥阳县"}, {
+            "value": "正安县",
+            "label": "正安县"
+        }, {
+            "value": "道真仡佬族苗族自治县",
+            "label": "道真仡佬族苗族自治县"
+        }, {
+            "value": "务川仡佬族苗族自治县",
+            "label": "务川仡佬族苗族自治县"
+        }, {"value": "凤冈县", "label": "凤冈县"}, {
+            "value": "湄潭县",
+            "label": "湄潭县"
+        }, {"value": "余庆县", "label": "余庆县"}, {
+            "value": "习水县",
+            "label": "习水县"
+        }, {"value": "赤水市", "label": "赤水市"}, {
+            "value": "仁怀市",
+            "label": "仁怀市"
+        }]
+    }, {
+        "value": "安顺市",
+        "label": "安顺市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "西秀区",
+            "label": "西秀区"
+        }, {"value": "平坝区", "label": "平坝区"}, {
+            "value": "普定县",
+            "label": "普定县"
+        }, {
+            "value": "镇宁布依族苗族自治县",
+            "label": "镇宁布依族苗族自治县"
+        }, {
+            "value": "关岭布依族苗族自治县",
+            "label": "关岭布依族苗族自治县"
+        }, {
+            "value": "紫云苗族布依族自治县",
+            "label": "紫云苗族布依族自治县"
+        }]
+    }, {
+        "value": "毕节市",
+        "label": "毕节市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {"value": "七星关区", "label": "七星关区"}, {
+            "value": "大方县",
+            "label": "大方县"
+        }, {"value": "黔西县", "label": "黔西县"}, {
+            "value": "金沙县",
+            "label": "金沙县"
+        }, {"value": "织金县", "label": "织金县"}, {
+            "value": "纳雍县",
+            "label": "纳雍县"
+        }, {
+            "value": "威宁彝族回族苗族自治县",
+            "label": "威宁彝族回族苗族自治县"
+        }, {"value": "赫章县", "label": "赫章县"}]
+    }, {
+        "value": "铜仁市",
+        "label": "铜仁市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "碧江区",
+            "label": "碧江区"
+        }, {"value": "万山区", "label": "万山区"}, {
+            "value": "江口县",
+            "label": "江口县"
+        }, {
+            "value": "玉屏侗族自治县",
+            "label": "玉屏侗族自治县"
+        }, {"value": "石阡县", "label": "石阡县"}, {
+            "value": "思南县",
+            "label": "思南县"
+        }, {
+            "value": "印江土家族苗族自治县",
+            "label": "印江土家族苗族自治县"
+        }, {
+            "value": "德江县",
+            "label": "德江县"
+        }, {
+            "value": "沿河土家族自治县",
+            "label": "沿河土家族自治县"
+        }, {
+            "value": "松桃苗族自治县",
+            "label": "松桃苗族自治县"
+        }]
+    }, {
+        "value": "黔西南布依族苗族自治州",
+        "label": "黔西南布依族苗族自治州",
+        "children": [{"value": "兴义市", "label": "兴义市"}, {
+            "value": "兴仁县",
+            "label": "兴仁县"
+        }, {"value": "普安县", "label": "普安县"}, {
+            "value": "晴隆县",
+            "label": "晴隆县"
+        }, {"value": "贞丰县", "label": "贞丰县"}, {
+            "value": "望谟县",
+            "label": "望谟县"
+        }, {"value": "册亨县", "label": "册亨县"}, {
+            "value": "安龙县",
+            "label": "安龙县"
+        }]
+    }, {
+        "value": "黔东南苗族侗族自治州",
+        "label": "黔东南苗族侗族自治州",
+        "children": [{"value": "凯里市", "label": "凯里市"}, {
+            "value": "黄平县",
+            "label": "黄平县"
+        }, {"value": "施秉县", "label": "施秉县"}, {
+            "value": "三穗县",
+            "label": "三穗县"
+        }, {"value": "镇远县", "label": "镇远县"}, {
+            "value": "岑巩县",
+            "label": "岑巩县"
+        }, {"value": "天柱县", "label": "天柱县"}, {
+            "value": "锦屏县",
+            "label": "锦屏县"
+        }, {"value": "剑河县", "label": "剑河县"}, {
+            "value": "台江县",
+            "label": "台江县"
+        }, {"value": "黎平县", "label": "黎平县"}, {
+            "value": "榕江县",
+            "label": "榕江县"
+        }, {"value": "从江县", "label": "从江县"}, {
+            "value": "雷山县",
+            "label": "雷山县"
+        }, {"value": "麻江县", "label": "麻江县"}, {
+            "value": "丹寨县",
+            "label": "丹寨县"
+        }]
+    }, {
+        "value": "黔南布依族苗族自治州",
+        "label": "黔南布依族苗族自治州",
+        "children": [{"value": "都匀市", "label": "都匀市"}, {
+            "value": "福泉市",
+            "label": "福泉市"
+        }, {"value": "荔波县", "label": "荔波县"}, {
+            "value": "贵定县",
+            "label": "贵定县"
+        }, {"value": "瓮安县", "label": "瓮安县"}, {
+            "value": "独山县",
+            "label": "独山县"
+        }, {"value": "平塘县", "label": "平塘县"}, {
+            "value": "罗甸县",
+            "label": "罗甸县"
+        }, {"value": "长顺县", "label": "长顺县"}, {
+            "value": "龙里县",
+            "label": "龙里县"
+        }, {
+            "value": "惠水县",
+            "label": "惠水县"
+        }, {
+            "value": "三都水族自治县",
+            "label": "三都水族自治县"
+        }]
+    }]
+}, {
+    "value": "云南省", "label": "云南省", "children": [{
+        "value": "昆明市",
+        "label": "昆明市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "五华区",
+            "label": "五华区"
+        }, {"value": "盘龙区", "label": "盘龙区"}, {
+            "value": "官渡区",
+            "label": "官渡区"
+        }, {"value": "西山区", "label": "西山区"}, {
+            "value": "东川区",
+            "label": "东川区"
+        }, {"value": "呈贡区", "label": "呈贡区"}, {
+            "value": "晋宁县",
+            "label": "晋宁县"
+        }, {"value": "富民县", "label": "富民县"}, {
+            "value": "宜良县",
+            "label": "宜良县"
+        }, {
+            "value": "石林彝族自治县",
+            "label": "石林彝族自治县"
+        }, {
+            "value": "嵩明县",
+            "label": "嵩明县"
+        }, {
+            "value": "禄劝彝族苗族自治县",
+            "label": "禄劝彝族苗族自治县"
+        }, {
+            "value": "寻甸回族彝族自治县",
+            "label": "寻甸回族彝族自治县"
+        }, {"value": "安宁市", "label": "安宁市"}]
+    }, {
+        "value": "曲靖市",
+        "label": "曲靖市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "麒麟区",
+            "label": "麒麟区"
+        }, {"value": "沾益区", "label": "沾益区"}, {
+            "value": "马龙县",
+            "label": "马龙县"
+        }, {"value": "陆良县", "label": "陆良县"}, {
+            "value": "师宗县",
+            "label": "师宗县"
+        }, {"value": "罗平县", "label": "罗平县"}, {
+            "value": "富源县",
+            "label": "富源县"
+        }, {"value": "会泽县", "label": "会泽县"}, {
+            "value": "宣威市",
+            "label": "宣威市"
+        }]
+    }, {
+        "value": "玉溪市",
+        "label": "玉溪市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "红塔区",
+            "label": "红塔区"
+        }, {"value": "江川区", "label": "江川区"}, {
+            "value": "澄江县",
+            "label": "澄江县"
+        }, {"value": "通海县", "label": "通海县"}, {
+            "value": "华宁县",
+            "label": "华宁县"
+        }, {
+            "value": "易门县",
+            "label": "易门县"
+        }, {
+            "value": "峨山彝族自治县",
+            "label": "峨山彝族自治县"
+        }, {
+            "value": "新平彝族傣族自治县",
+            "label": "新平彝族傣族自治县"
+        }, {
+            "value": "元江哈尼族彝族傣族自治县",
+            "label": "元江哈尼族彝族傣族自治县"
+        }]
+    }, {
+        "value": "保山市",
+        "label": "保山市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "隆阳区",
+            "label": "隆阳区"
+        }, {"value": "施甸县", "label": "施甸县"}, {
+            "value": "龙陵县",
+            "label": "龙陵县"
+        }, {"value": "昌宁县", "label": "昌宁县"}, {
+            "value": "腾冲市",
+            "label": "腾冲市"
+        }]
+    }, {
+        "value": "昭通市",
+        "label": "昭通市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "昭阳区",
+            "label": "昭阳区"
+        }, {"value": "鲁甸县", "label": "鲁甸县"}, {
+            "value": "巧家县",
+            "label": "巧家县"
+        }, {"value": "盐津县", "label": "盐津县"}, {
+            "value": "大关县",
+            "label": "大关县"
+        }, {"value": "永善县", "label": "永善县"}, {
+            "value": "绥江县",
+            "label": "绥江县"
+        }, {"value": "镇雄县", "label": "镇雄县"}, {
+            "value": "彝良县",
+            "label": "彝良县"
+        }, {"value": "威信县", "label": "威信县"}, {
+            "value": "水富县",
+            "label": "水富县"
+        }]
+    }, {
+        "value": "丽江市",
+        "label": "丽江市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "古城区",
+            "label": "古城区"
+        }, {
+            "value": "玉龙纳西族自治县",
+            "label": "玉龙纳西族自治县"
+        }, {"value": "永胜县", "label": "永胜县"}, {
+            "value": "华坪县",
+            "label": "华坪县"
+        }, {
+            "value": "宁蒗彝族自治县",
+            "label": "宁蒗彝族自治县"
+        }]
+    }, {
+        "value": "普洱市",
+        "label": "普洱市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "思茅区",
+            "label": "思茅区"
+        }, {
+            "value": "宁洱哈尼族彝族自治县",
+            "label": "宁洱哈尼族彝族自治县"
+        }, {
+            "value": "墨江哈尼族自治县",
+            "label": "墨江哈尼族自治县"
+        }, {
+            "value": "景东彝族自治县",
+            "label": "景东彝族自治县"
+        }, {
+            "value": "景谷傣族彝族自治县",
+            "label": "景谷傣族彝族自治县"
+        }, {
+            "value": "镇沅彝族哈尼族拉祜族自治县",
+            "label": "镇沅彝族哈尼族拉祜族自治县"
+        }, {
+            "value": "江城哈尼族彝族自治县",
+            "label": "江城哈尼族彝族自治县"
+        }, {
+            "value": "孟连傣族拉祜族佤族自治县",
+            "label": "孟连傣族拉祜族佤族自治县"
+        }, {
+            "value": "澜沧拉祜族自治县",
+            "label": "澜沧拉祜族自治县"
+        }, {
+            "value": "西盟佤族自治县",
+            "label": "西盟佤族自治县"
+        }]
+    }, {
+        "value": "临沧市",
+        "label": "临沧市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "临翔区",
+            "label": "临翔区"
+        }, {"value": "凤庆县", "label": "凤庆县"}, {
+            "value": "云县",
+            "label": "云县"
+        }, {"value": "永德县", "label": "永德县"}, {
+            "value": "镇康县",
+            "label": "镇康县"
+        }, {
+            "value": "双江拉祜族佤族布朗族傣族自治县",
+            "label": "双江拉祜族佤族布朗族傣族自治县"
+        }, {
+            "value": "耿马傣族佤族自治县",
+            "label": "耿马傣族佤族自治县"
+        }, {
+            "value": "沧源佤族自治县",
+            "label": "沧源佤族自治县"
+        }]
+    }, {
+        "value": "楚雄彝族自治州",
+        "label": "楚雄彝族自治州",
+        "children": [{"value": "楚雄市", "label": "楚雄市"}, {
+            "value": "双柏县",
+            "label": "双柏县"
+        }, {"value": "牟定县", "label": "牟定县"}, {
+            "value": "南华县",
+            "label": "南华县"
+        }, {"value": "姚安县", "label": "姚安县"}, {
+            "value": "大姚县",
+            "label": "大姚县"
+        }, {"value": "永仁县", "label": "永仁县"}, {
+            "value": "元谋县",
+            "label": "元谋县"
+        }, {"value": "武定县", "label": "武定县"}, {
+            "value": "禄丰县",
+            "label": "禄丰县"
+        }]
+    }, {
+        "value": "红河哈尼族彝族自治州",
+        "label": "红河哈尼族彝族自治州",
+        "children": [{"value": "个旧市", "label": "个旧市"}, {
+            "value": "开远市",
+            "label": "开远市"
+        }, {"value": "蒙自市", "label": "蒙自市"}, {
+            "value": "弥勒市",
+            "label": "弥勒市"
+        }, {
+            "value": "屏边苗族自治县",
+            "label": "屏边苗族自治县"
+        }, {"value": "建水县", "label": "建水县"}, {
+            "value": "石屏县",
+            "label": "石屏县"
+        }, {"value": "泸西县", "label": "泸西县"}, {
+            "value": "元阳县",
+            "label": "元阳县"
+        }, {
+            "value": "红河县",
+            "label": "红河县"
+        }, {
+            "value": "金平苗族瑶族傣族自治县",
+            "label": "金平苗族瑶族傣族自治县"
+        }, {
+            "value": "绿春县",
+            "label": "绿春县"
+        }, {
+            "value": "河口瑶族自治县",
+            "label": "河口瑶族自治县"
+        }]
+    }, {
+        "value": "文山壮族苗族自治州",
+        "label": "文山壮族苗族自治州",
+        "children": [{"value": "文山市", "label": "文山市"}, {
+            "value": "砚山县",
+            "label": "砚山县"
+        }, {"value": "西畴县", "label": "西畴县"}, {
+            "value": "麻栗坡县",
+            "label": "麻栗坡县"
+        }, {"value": "马关县", "label": "马关县"}, {
+            "value": "丘北县",
+            "label": "丘北县"
+        }, {"value": "广南县", "label": "广南县"}, {
+            "value": "富宁县",
+            "label": "富宁县"
+        }]
+    }, {
+        "value": "西双版纳傣族自治州",
+        "label": "西双版纳傣族自治州",
+        "children": [{"value": "景洪市", "label": "景洪市"}, {
+            "value": "勐海县",
+            "label": "勐海县"
+        }, {"value": "勐腊县", "label": "勐腊县"}]
+    }, {
+        "value": "大理白族自治州",
+        "label": "大理白族自治州",
+        "children": [{
+            "value": "大理市",
+            "label": "大理市"
+        }, {
+            "value": "漾濞彝族自治县",
+            "label": "漾濞彝族自治县"
+        }, {"value": "祥云县", "label": "祥云县"}, {
+            "value": "宾川县",
+            "label": "宾川县"
+        }, {
+            "value": "弥渡县",
+            "label": "弥渡县"
+        }, {
+            "value": "南涧彝族自治县",
+            "label": "南涧彝族自治县"
+        }, {
+            "value": "巍山彝族回族自治县",
+            "label": "巍山彝族回族自治县"
+        }, {"value": "永平县", "label": "永平县"}, {
+            "value": "云龙县",
+            "label": "云龙县"
+        }, {"value": "洱源县", "label": "洱源县"}, {
+            "value": "剑川县",
+            "label": "剑川县"
+        }, {"value": "鹤庆县", "label": "鹤庆县"}]
+    }, {
+        "value": "德宏傣族景颇族自治州",
+        "label": "德宏傣族景颇族自治州",
+        "children": [{"value": "瑞丽市", "label": "瑞丽市"}, {
+            "value": "芒市",
+            "label": "芒市"
+        }, {"value": "梁河县", "label": "梁河县"}, {
+            "value": "盈江县",
+            "label": "盈江县"
+        }, {"value": "陇川县", "label": "陇川县"}]
+    }, {
+        "value": "怒江傈僳族自治州",
+        "label": "怒江傈僳族自治州",
+        "children": [{"value": "泸水市", "label": "泸水市"}, {
+            "value": "福贡县",
+            "label": "福贡县"
+        }, {
+            "value": "贡山独龙族怒族自治县",
+            "label": "贡山独龙族怒族自治县"
+        }, {
+            "value": "兰坪白族普米族自治县",
+            "label": "兰坪白族普米族自治县"
+        }]
+    }, {
+        "value": "迪庆藏族自治州",
+        "label": "迪庆藏族自治州",
+        "children": [{
+            "value": "香格里拉市",
+            "label": "香格里拉市"
+        }, {
+            "value": "德钦县",
+            "label": "德钦县"
+        }, {
+            "value": "维西傈僳族自治县",
+            "label": "维西傈僳族自治县"
+        }]
+    }]
+}, {
+    "value": "西藏自治区",
+    "label": "西藏自治区",
+    "children": [{
+        "value": "拉萨市",
+        "label": "拉萨市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "城关区",
+            "label": "城关区"
+        }, {
+            "value": "堆龙德庆区",
+            "label": "堆龙德庆区"
+        }, {"value": "林周县", "label": "林周县"}, {
+            "value": "当雄县",
+            "label": "当雄县"
+        }, {"value": "尼木县", "label": "尼木县"}, {
+            "value": "曲水县",
+            "label": "曲水县"
+        }, {"value": "达孜县", "label": "达孜县"}, {
+            "value": "墨竹工卡县",
+            "label": "墨竹工卡县"
+        }]
+    }, {
+        "value": "日喀则市",
+        "label": "日喀则市",
+        "children": [{
+            "value": "桑珠孜区",
+            "label": "桑珠孜区"
+        }, {"value": "南木林县", "label": "南木林县"}, {
+            "value": "江孜县",
+            "label": "江孜县"
+        }, {"value": "定日县", "label": "定日县"}, {
+            "value": "萨迦县",
+            "label": "萨迦县"
+        }, {"value": "拉孜县", "label": "拉孜县"}, {
+            "value": "昂仁县",
+            "label": "昂仁县"
+        }, {"value": "谢通门县", "label": "谢通门县"}, {
+            "value": "白朗县",
+            "label": "白朗县"
+        }, {"value": "仁布县", "label": "仁布县"}, {
+            "value": "康马县",
+            "label": "康马县"
+        }, {"value": "定结县", "label": "定结县"}, {
+            "value": "仲巴县",
+            "label": "仲巴县"
+        }, {"value": "亚东县", "label": "亚东县"}, {
+            "value": "吉隆县",
+            "label": "吉隆县"
+        }, {"value": "聂拉木县", "label": "聂拉木县"}, {
+            "value": "萨嘎县",
+            "label": "萨嘎县"
+        }, {"value": "岗巴县", "label": "岗巴县"}]
+    }, {
+        "value": "昌都市",
+        "label": "昌都市",
+        "children": [{"value": "卡若区", "label": "卡若区"}, {
+            "value": "江达县",
+            "label": "江达县"
+        }, {"value": "贡觉县", "label": "贡觉县"}, {
+            "value": "类乌齐县",
+            "label": "类乌齐县"
+        }, {"value": "丁青县", "label": "丁青县"}, {
+            "value": "察雅县",
+            "label": "察雅县"
+        }, {"value": "八宿县", "label": "八宿县"}, {
+            "value": "左贡县",
+            "label": "左贡县"
+        }, {"value": "芒康县", "label": "芒康县"}, {
+            "value": "洛隆县",
+            "label": "洛隆县"
+        }, {"value": "边坝县", "label": "边坝县"}]
+    }, {
+        "value": "林芝市",
+        "label": "林芝市",
+        "children": [{
+            "value": "巴宜区",
+            "label": "巴宜区"
+        }, {
+            "value": "工布江达县",
+            "label": "工布江达县"
+        }, {"value": "米林县", "label": "米林县"}, {
+            "value": "墨脱县",
+            "label": "墨脱县"
+        }, {"value": "波密县", "label": "波密县"}, {
+            "value": "察隅县",
+            "label": "察隅县"
+        }, {"value": "朗县", "label": "朗县"}]
+    }, {
+        "value": "山南市",
+        "label": "山南市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "乃东区",
+            "label": "乃东区"
+        }, {"value": "扎囊县", "label": "扎囊县"}, {
+            "value": "贡嘎县",
+            "label": "贡嘎县"
+        }, {"value": "桑日县", "label": "桑日县"}, {
+            "value": "琼结县",
+            "label": "琼结县"
+        }, {"value": "曲松县", "label": "曲松县"}, {
+            "value": "措美县",
+            "label": "措美县"
+        }, {"value": "洛扎县", "label": "洛扎县"}, {
+            "value": "加查县",
+            "label": "加查县"
+        }, {"value": "隆子县", "label": "隆子县"}, {
+            "value": "错那县",
+            "label": "错那县"
+        }, {"value": "浪卡子县", "label": "浪卡子县"}]
+    }, {
+        "value": "那曲地区",
+        "label": "那曲地区",
+        "children": [{"value": "那曲县", "label": "那曲县"}, {
+            "value": "嘉黎县",
+            "label": "嘉黎县"
+        }, {"value": "比如县", "label": "比如县"}, {
+            "value": "聂荣县",
+            "label": "聂荣县"
+        }, {"value": "安多县", "label": "安多县"}, {
+            "value": "申扎县",
+            "label": "申扎县"
+        }, {"value": "索县", "label": "索县"}, {
+            "value": "班戈县",
+            "label": "班戈县"
+        }, {"value": "巴青县", "label": "巴青县"}, {
+            "value": "尼玛县",
+            "label": "尼玛县"
+        }, {"value": "双湖县", "label": "双湖县"}]
+    }, {
+        "value": "阿里地区",
+        "label": "阿里地区",
+        "children": [{"value": "普兰县", "label": "普兰县"}, {
+            "value": "札达县",
+            "label": "札达县"
+        }, {"value": "噶尔县", "label": "噶尔县"}, {
+            "value": "日土县",
+            "label": "日土县"
+        }, {"value": "革吉县", "label": "革吉县"}, {
+            "value": "改则县",
+            "label": "改则县"
+        }, {"value": "措勤县", "label": "措勤县"}]
+    }]
+}, {
+    "value": "陕西省",
+    "label": "陕西省",
+    "children": [{
+        "value": "西安市",
+        "label": "西安市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "新城区",
+            "label": "新城区"
+        }, {"value": "碑林区", "label": "碑林区"}, {
+            "value": "莲湖区",
+            "label": "莲湖区"
+        }, {"value": "灞桥区", "label": "灞桥区"}, {
+            "value": "未央区",
+            "label": "未央区"
+        }, {"value": "雁塔区", "label": "雁塔区"}, {
+            "value": "阎良区",
+            "label": "阎良区"
+        }, {"value": "临潼区", "label": "临潼区"}, {
+            "value": "长安区",
+            "label": "长安区"
+        }, {"value": "高陵区", "label": "高陵区"}, {
+            "value": "蓝田县",
+            "label": "蓝田县"
+        }, {"value": "周至县", "label": "周至县"}, {
+            "value": "户县",
+            "label": "户县"
+        }]
+    }, {
+        "value": "铜川市",
+        "label": "铜川市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "王益区",
+            "label": "王益区"
+        }, {"value": "印台区", "label": "印台区"}, {
+            "value": "耀州区",
+            "label": "耀州区"
+        }, {"value": "宜君县", "label": "宜君县"}]
+    }, {
+        "value": "宝鸡市",
+        "label": "宝鸡市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "渭滨区",
+            "label": "渭滨区"
+        }, {"value": "金台区", "label": "金台区"}, {
+            "value": "陈仓区",
+            "label": "陈仓区"
+        }, {"value": "凤翔县", "label": "凤翔县"}, {
+            "value": "岐山县",
+            "label": "岐山县"
+        }, {"value": "扶风县", "label": "扶风县"}, {
+            "value": "眉县",
+            "label": "眉县"
+        }, {"value": "陇县", "label": "陇县"}, {
+            "value": "千阳县",
+            "label": "千阳县"
+        }, {"value": "麟游县", "label": "麟游县"}, {
+            "value": "凤县",
+            "label": "凤县"
+        }, {"value": "太白县", "label": "太白县"}]
+    }, {
+        "value": "咸阳市",
+        "label": "咸阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "秦都区",
+            "label": "秦都区"
+        }, {"value": "杨陵区", "label": "杨陵区"}, {
+            "value": "渭城区",
+            "label": "渭城区"
+        }, {"value": "三原县", "label": "三原县"}, {
+            "value": "泾阳县",
+            "label": "泾阳县"
+        }, {"value": "乾县", "label": "乾县"}, {
+            "value": "礼泉县",
+            "label": "礼泉县"
+        }, {"value": "永寿县", "label": "永寿县"}, {
+            "value": "彬县",
+            "label": "彬县"
+        }, {"value": "长武县", "label": "长武县"}, {
+            "value": "旬邑县",
+            "label": "旬邑县"
+        }, {"value": "淳化县", "label": "淳化县"}, {
+            "value": "武功县",
+            "label": "武功县"
+        }, {"value": "兴平市", "label": "兴平市"}]
+    }, {
+        "value": "渭南市",
+        "label": "渭南市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "临渭区",
+            "label": "临渭区"
+        }, {"value": "华州区", "label": "华州区"}, {
+            "value": "潼关县",
+            "label": "潼关县"
+        }, {"value": "大荔县", "label": "大荔县"}, {
+            "value": "合阳县",
+            "label": "合阳县"
+        }, {"value": "澄城县", "label": "澄城县"}, {
+            "value": "蒲城县",
+            "label": "蒲城县"
+        }, {"value": "白水县", "label": "白水县"}, {
+            "value": "富平县",
+            "label": "富平县"
+        }, {"value": "韩城市", "label": "韩城市"}, {
+            "value": "华阴市",
+            "label": "华阴市"
+        }]
+    }, {
+        "value": "延安市",
+        "label": "延安市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "宝塔区",
+            "label": "宝塔区"
+        }, {"value": "安塞区", "label": "安塞区"}, {
+            "value": "延长县",
+            "label": "延长县"
+        }, {"value": "延川县", "label": "延川县"}, {
+            "value": "子长县",
+            "label": "子长县"
+        }, {"value": "志丹县", "label": "志丹县"}, {
+            "value": "吴起县",
+            "label": "吴起县"
+        }, {"value": "甘泉县", "label": "甘泉县"}, {
+            "value": "富县",
+            "label": "富县"
+        }, {"value": "洛川县", "label": "洛川县"}, {
+            "value": "宜川县",
+            "label": "宜川县"
+        }, {"value": "黄龙县", "label": "黄龙县"}, {
+            "value": "黄陵县",
+            "label": "黄陵县"
+        }]
+    }, {
+        "value": "汉中市",
+        "label": "汉中市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "汉台区",
+            "label": "汉台区"
+        }, {"value": "南郑县", "label": "南郑县"}, {
+            "value": "城固县",
+            "label": "城固县"
+        }, {"value": "洋县", "label": "洋县"}, {
+            "value": "西乡县",
+            "label": "西乡县"
+        }, {"value": "勉县", "label": "勉县"}, {
+            "value": "宁强县",
+            "label": "宁强县"
+        }, {"value": "略阳县", "label": "略阳县"}, {
+            "value": "镇巴县",
+            "label": "镇巴县"
+        }, {"value": "留坝县", "label": "留坝县"}, {
+            "value": "佛坪县",
+            "label": "佛坪县"
+        }]
+    }, {
+        "value": "榆林市",
+        "label": "榆林市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "榆阳区",
+            "label": "榆阳区"
+        }, {"value": "横山区", "label": "横山区"}, {
+            "value": "神木县",
+            "label": "神木县"
+        }, {"value": "府谷县", "label": "府谷县"}, {
+            "value": "靖边县",
+            "label": "靖边县"
+        }, {"value": "定边县", "label": "定边县"}, {
+            "value": "绥德县",
+            "label": "绥德县"
+        }, {"value": "米脂县", "label": "米脂县"}, {
+            "value": "佳县",
+            "label": "佳县"
+        }, {"value": "吴堡县", "label": "吴堡县"}, {
+            "value": "清涧县",
+            "label": "清涧县"
+        }, {"value": "子洲县", "label": "子洲县"}]
+    }, {
+        "value": "安康市",
+        "label": "安康市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "汉滨区",
+            "label": "汉滨区"
+        }, {"value": "汉阴县", "label": "汉阴县"}, {
+            "value": "石泉县",
+            "label": "石泉县"
+        }, {"value": "宁陕县", "label": "宁陕县"}, {
+            "value": "紫阳县",
+            "label": "紫阳县"
+        }, {"value": "岚皋县", "label": "岚皋县"}, {
+            "value": "平利县",
+            "label": "平利县"
+        }, {"value": "镇坪县", "label": "镇坪县"}, {
+            "value": "旬阳县",
+            "label": "旬阳县"
+        }, {"value": "白河县", "label": "白河县"}]
+    }, {
+        "value": "商洛市",
+        "label": "商洛市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "商州区",
+            "label": "商州区"
+        }, {"value": "洛南县", "label": "洛南县"}, {
+            "value": "丹凤县",
+            "label": "丹凤县"
+        }, {"value": "商南县", "label": "商南县"}, {
+            "value": "山阳县",
+            "label": "山阳县"
+        }, {"value": "镇安县", "label": "镇安县"}, {
+            "value": "柞水县",
+            "label": "柞水县"
+        }]
+    }]
+}, {
+    "value": "甘肃省",
+    "label": "甘肃省",
+    "children": [{
+        "value": "兰州市",
+        "label": "兰州市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "城关区",
+            "label": "城关区"
+        }, {"value": "七里河区", "label": "七里河区"}, {
+            "value": "西固区",
+            "label": "西固区"
+        }, {"value": "安宁区", "label": "安宁区"}, {
+            "value": "红古区",
+            "label": "红古区"
+        }, {"value": "永登县", "label": "永登县"}, {
+            "value": "皋兰县",
+            "label": "皋兰县"
+        }, {"value": "榆中县", "label": "榆中县"}]
+    }, {
+        "value": "嘉峪关市",
+        "label": "嘉峪关市",
+        "children": [{"value": "市辖区", "label": "市辖区"}]
+    }, {
+        "value": "金昌市",
+        "label": "金昌市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "金川区",
+            "label": "金川区"
+        }, {"value": "永昌县", "label": "永昌县"}]
+    }, {
+        "value": "白银市",
+        "label": "白银市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "白银区",
+            "label": "白银区"
+        }, {"value": "平川区", "label": "平川区"}, {
+            "value": "靖远县",
+            "label": "靖远县"
+        }, {"value": "会宁县", "label": "会宁县"}, {
+            "value": "景泰县",
+            "label": "景泰县"
+        }]
+    }, {
+        "value": "天水市",
+        "label": "天水市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "秦州区",
+            "label": "秦州区"
+        }, {"value": "麦积区", "label": "麦积区"}, {
+            "value": "清水县",
+            "label": "清水县"
+        }, {"value": "秦安县", "label": "秦安县"}, {
+            "value": "甘谷县",
+            "label": "甘谷县"
+        }, {
+            "value": "武山县",
+            "label": "武山县"
+        }, {
+            "value": "张家川回族自治县",
+            "label": "张家川回族自治县"
+        }]
+    }, {
+        "value": "武威市",
+        "label": "武威市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "凉州区",
+            "label": "凉州区"
+        }, {"value": "民勤县", "label": "民勤县"}, {
+            "value": "古浪县",
+            "label": "古浪县"
+        }, {
+            "value": "天祝藏族自治县",
+            "label": "天祝藏族自治县"
+        }]
+    }, {
+        "value": "张掖市",
+        "label": "张掖市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "甘州区",
+            "label": "甘州区"
+        }, {
+            "value": "肃南裕固族自治县",
+            "label": "肃南裕固族自治县"
+        }, {"value": "民乐县", "label": "民乐县"}, {
+            "value": "临泽县",
+            "label": "临泽县"
+        }, {"value": "高台县", "label": "高台县"}, {
+            "value": "山丹县",
+            "label": "山丹县"
+        }]
+    }, {
+        "value": "平凉市",
+        "label": "平凉市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "崆峒区",
+            "label": "崆峒区"
+        }, {"value": "泾川县", "label": "泾川县"}, {
+            "value": "灵台县",
+            "label": "灵台县"
+        }, {"value": "崇信县", "label": "崇信县"}, {
+            "value": "华亭县",
+            "label": "华亭县"
+        }, {"value": "庄浪县", "label": "庄浪县"}, {
+            "value": "静宁县",
+            "label": "静宁县"
+        }]
+    }, {
+        "value": "酒泉市",
+        "label": "酒泉市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "肃州区",
+            "label": "肃州区"
+        }, {"value": "金塔县", "label": "金塔县"}, {
+            "value": "瓜州县",
+            "label": "瓜州县"
+        }, {
+            "value": "肃北蒙古族自治县",
+            "label": "肃北蒙古族自治县"
+        }, {
+            "value": "阿克塞哈萨克族自治县",
+            "label": "阿克塞哈萨克族自治县"
+        }, {"value": "玉门市", "label": "玉门市"}, {
+            "value": "敦煌市",
+            "label": "敦煌市"
+        }]
+    }, {
+        "value": "庆阳市",
+        "label": "庆阳市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "西峰区",
+            "label": "西峰区"
+        }, {"value": "庆城县", "label": "庆城县"}, {
+            "value": "环县",
+            "label": "环县"
+        }, {"value": "华池县", "label": "华池县"}, {
+            "value": "合水县",
+            "label": "合水县"
+        }, {"value": "正宁县", "label": "正宁县"}, {
+            "value": "宁县",
+            "label": "宁县"
+        }, {"value": "镇原县", "label": "镇原县"}]
+    }, {
+        "value": "定西市",
+        "label": "定西市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "安定区",
+            "label": "安定区"
+        }, {"value": "通渭县", "label": "通渭县"}, {
+            "value": "陇西县",
+            "label": "陇西县"
+        }, {"value": "渭源县", "label": "渭源县"}, {
+            "value": "临洮县",
+            "label": "临洮县"
+        }, {"value": "漳县", "label": "漳县"}, {"value": "岷县", "label": "岷县"}]
+    }, {
+        "value": "陇南市",
+        "label": "陇南市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "武都区",
+            "label": "武都区"
+        }, {"value": "成县", "label": "成县"}, {
+            "value": "文县",
+            "label": "文县"
+        }, {"value": "宕昌县", "label": "宕昌县"}, {
+            "value": "康县",
+            "label": "康县"
+        }, {"value": "西和县", "label": "西和县"}, {
+            "value": "礼县",
+            "label": "礼县"
+        }, {"value": "徽县", "label": "徽县"}, {
+            "value": "两当县",
+            "label": "两当县"
+        }]
+    }, {
+        "value": "临夏回族自治州",
+        "label": "临夏回族自治州",
+        "children": [{"value": "临夏市", "label": "临夏市"}, {
+            "value": "临夏县",
+            "label": "临夏县"
+        }, {"value": "康乐县", "label": "康乐县"}, {
+            "value": "永靖县",
+            "label": "永靖县"
+        }, {"value": "广河县", "label": "广河县"}, {
+            "value": "和政县",
+            "label": "和政县"
+        }, {
+            "value": "东乡族自治县",
+            "label": "东乡族自治县"
+        }, {
+            "value": "积石山保安族东乡族撒拉族自治县",
+            "label": "积石山保安族东乡族撒拉族自治县"
+        }]
+    }, {
+        "value": "甘南藏族自治州",
+        "label": "甘南藏族自治州",
+        "children": [{"value": "合作市", "label": "合作市"}, {
+            "value": "临潭县",
+            "label": "临潭县"
+        }, {"value": "卓尼县", "label": "卓尼县"}, {
+            "value": "舟曲县",
+            "label": "舟曲县"
+        }, {"value": "迭部县", "label": "迭部县"}, {
+            "value": "玛曲县",
+            "label": "玛曲县"
+        }, {"value": "碌曲县", "label": "碌曲县"}, {
+            "value": "夏河县",
+            "label": "夏河县"
+        }]
+    }]
+}, {
+    "value": "青海省",
+    "label": "青海省",
+    "children": [{
+        "value": "西宁市",
+        "label": "西宁市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "城东区",
+            "label": "城东区"
+        }, {"value": "城中区", "label": "城中区"}, {
+            "value": "城西区",
+            "label": "城西区"
+        }, {
+            "value": "城北区",
+            "label": "城北区"
+        }, {
+            "value": "大通回族土族自治县",
+            "label": "大通回族土族自治县"
+        }, {"value": "湟中县", "label": "湟中县"}, {
+            "value": "湟源县",
+            "label": "湟源县"
+        }]
+    }, {
+        "value": "海东市",
+        "label": "海东市",
+        "children": [{"value": "乐都区", "label": "乐都区"}, {
+            "value": "平安区",
+            "label": "平安区"
+        }, {
+            "value": "民和回族土族自治县",
+            "label": "民和回族土族自治县"
+        }, {
+            "value": "互助土族自治县",
+            "label": "互助土族自治县"
+        }, {
+            "value": "化隆回族自治县",
+            "label": "化隆回族自治县"
+        }, {
+            "value": "循化撒拉族自治县",
+            "label": "循化撒拉族自治县"
+        }]
+    }, {
+        "value": "海北藏族自治州",
+        "label": "海北藏族自治州",
+        "children": [{
+            "value": "门源回族自治县",
+            "label": "门源回族自治县"
+        }, {"value": "祁连县", "label": "祁连县"}, {
+            "value": "海晏县",
+            "label": "海晏县"
+        }, {"value": "刚察县", "label": "刚察县"}]
+    }, {
+        "value": "黄南藏族自治州",
+        "label": "黄南藏族自治州",
+        "children": [{"value": "同仁县", "label": "同仁县"}, {
+            "value": "尖扎县",
+            "label": "尖扎县"
+        }, {
+            "value": "泽库县",
+            "label": "泽库县"
+        }, {
+            "value": "河南蒙古族自治县",
+            "label": "河南蒙古族自治县"
+        }]
+    }, {
+        "value": "海南藏族自治州",
+        "label": "海南藏族自治州",
+        "children": [{"value": "共和县", "label": "共和县"}, {
+            "value": "同德县",
+            "label": "同德县"
+        }, {"value": "贵德县", "label": "贵德县"}, {
+            "value": "兴海县",
+            "label": "兴海县"
+        }, {"value": "贵南县", "label": "贵南县"}]
+    }, {
+        "value": "果洛藏族自治州",
+        "label": "果洛藏族自治州",
+        "children": [{"value": "玛沁县", "label": "玛沁县"}, {
+            "value": "班玛县",
+            "label": "班玛县"
+        }, {"value": "甘德县", "label": "甘德县"}, {
+            "value": "达日县",
+            "label": "达日县"
+        }, {"value": "久治县", "label": "久治县"}, {
+            "value": "玛多县",
+            "label": "玛多县"
+        }]
+    }, {
+        "value": "玉树藏族自治州",
+        "label": "玉树藏族自治州",
+        "children": [{"value": "玉树市", "label": "玉树市"}, {
+            "value": "杂多县",
+            "label": "杂多县"
+        }, {"value": "称多县", "label": "称多县"}, {
+            "value": "治多县",
+            "label": "治多县"
+        }, {"value": "囊谦县", "label": "囊谦县"}, {
+            "value": "曲麻莱县",
+            "label": "曲麻莱县"
+        }]
+    }, {
+        "value": "海西蒙古族藏族自治州",
+        "label": "海西蒙古族藏族自治州",
+        "children": [{
+            "value": "格尔木市",
+            "label": "格尔木市"
+        }, {"value": "德令哈市", "label": "德令哈市"}, {
+            "value": "乌兰县",
+            "label": "乌兰县"
+        }, {"value": "都兰县", "label": "都兰县"}, {
+            "value": "天峻县",
+            "label": "天峻县"
+        }]
+    }]
+}, {
+    "value": "宁夏回族自治区",
+    "label": "宁夏回族自治区",
+    "children": [{
+        "value": "银川市",
+        "label": "银川市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "兴庆区",
+            "label": "兴庆区"
+        }, {"value": "西夏区", "label": "西夏区"}, {
+            "value": "金凤区",
+            "label": "金凤区"
+        }, {"value": "永宁县", "label": "永宁县"}, {
+            "value": "贺兰县",
+            "label": "贺兰县"
+        }, {"value": "灵武市", "label": "灵武市"}]
+    }, {
+        "value": "石嘴山市",
+        "label": "石嘴山市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {"value": "大武口区", "label": "大武口区"}, {
+            "value": "惠农区",
+            "label": "惠农区"
+        }, {"value": "平罗县", "label": "平罗县"}]
+    }, {
+        "value": "吴忠市",
+        "label": "吴忠市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "利通区",
+            "label": "利通区"
+        }, {"value": "红寺堡区", "label": "红寺堡区"}, {
+            "value": "盐池县",
+            "label": "盐池县"
+        }, {"value": "同心县", "label": "同心县"}, {
+            "value": "青铜峡市",
+            "label": "青铜峡市"
+        }]
+    }, {
+        "value": "固原市",
+        "label": "固原市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "原州区",
+            "label": "原州区"
+        }, {"value": "西吉县", "label": "西吉县"}, {
+            "value": "隆德县",
+            "label": "隆德县"
+        }, {"value": "泾源县", "label": "泾源县"}, {
+            "value": "彭阳县",
+            "label": "彭阳县"
+        }]
+    }, {
+        "value": "中卫市",
+        "label": "中卫市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {"value": "沙坡头区", "label": "沙坡头区"}, {
+            "value": "中宁县",
+            "label": "中宁县"
+        }, {"value": "海原县", "label": "海原县"}]
+    }]
+}, {
+    "value": "新疆维吾尔自治区",
+    "label": "新疆维吾尔自治区",
+    "children": [{
+        "value": "乌鲁木齐市",
+        "label": "乌鲁木齐市",
+        "children": [{"value": "市辖区", "label": "市辖区"}, {
+            "value": "天山区",
+            "label": "天山区"
+        }, {
+            "value": "沙依巴克区",
+            "label": "沙依巴克区"
+        }, {"value": "新市区", "label": "新市区"}, {
+            "value": "水磨沟区",
+            "label": "水磨沟区"
+        }, {
+            "value": "头屯河区",
+            "label": "头屯河区"
+        }, {"value": "达坂城区", "label": "达坂城区"}, {
+            "value": "米东区",
+            "label": "米东区"
+        }, {"value": "乌鲁木齐县", "label": "乌鲁木齐县"}]
+    }, {
+        "value": "克拉玛依市",
+        "label": "克拉玛依市",
+        "children": [{
+            "value": "市辖区",
+            "label": "市辖区"
+        }, {
+            "value": "独山子区",
+            "label": "独山子区"
+        }, {
+            "value": "克拉玛依区",
+            "label": "克拉玛依区"
+        }, {
+            "value": "白碱滩区",
+            "label": "白碱滩区"
+        }, {"value": "乌尔禾区", "label": "乌尔禾区"}]
+    }, {
+        "value": "吐鲁番市",
+        "label": "吐鲁番市",
+        "children": [{"value": "高昌区", "label": "高昌区"}, {
+            "value": "鄯善县",
+            "label": "鄯善县"
+        }, {"value": "托克逊县", "label": "托克逊县"}]
+    }, {
+        "value": "哈密市",
+        "label": "哈密市",
+        "children": [{
+            "value": "伊州区",
+            "label": "伊州区"
+        }, {
+            "value": "巴里坤哈萨克自治县",
+            "label": "巴里坤哈萨克自治县"
+        }, {"value": "伊吾县", "label": "伊吾县"}]
+    }, {
+        "value": "昌吉回族自治州",
+        "label": "昌吉回族自治州",
+        "children": [{"value": "昌吉市", "label": "昌吉市"}, {
+            "value": "阜康市",
+            "label": "阜康市"
+        }, {
+            "value": "呼图壁县",
+            "label": "呼图壁县"
+        }, {"value": "玛纳斯县", "label": "玛纳斯县"}, {
+            "value": "奇台县",
+            "label": "奇台县"
+        }, {
+            "value": "吉木萨尔县",
+            "label": "吉木萨尔县"
+        }, {
+            "value": "木垒哈萨克自治县",
+            "label": "木垒哈萨克自治县"
+        }]
+    }, {
+        "value": "博尔塔拉蒙古自治州",
+        "label": "博尔塔拉蒙古自治州",
+        "children": [{
+            "value": "博乐市",
+            "label": "博乐市"
+        }, {
+            "value": "阿拉山口市",
+            "label": "阿拉山口市"
+        }, {"value": "精河县", "label": "精河县"}, {
+            "value": "温泉县",
+            "label": "温泉县"
+        }]
+    }, {
+        "value": "巴音郭楞蒙古自治州",
+        "label": "巴音郭楞蒙古自治州",
+        "children": [{
+            "value": "库尔勒市",
+            "label": "库尔勒市"
+        }, {"value": "轮台县", "label": "轮台县"}, {
+            "value": "尉犁县",
+            "label": "尉犁县"
+        }, {"value": "若羌县", "label": "若羌县"}, {
+            "value": "且末县",
+            "label": "且末县"
+        }, {
+            "value": "焉耆回族自治县",
+            "label": "焉耆回族自治县"
+        }, {"value": "和静县", "label": "和静县"}, {
+            "value": "和硕县",
+            "label": "和硕县"
+        }, {"value": "博湖县", "label": "博湖县"}]
+    }, {
+        "value": "阿克苏地区",
+        "label": "阿克苏地区",
+        "children": [{
+            "value": "阿克苏市",
+            "label": "阿克苏市"
+        }, {"value": "温宿县", "label": "温宿县"}, {
+            "value": "库车县",
+            "label": "库车县"
+        }, {"value": "沙雅县", "label": "沙雅县"}, {
+            "value": "新和县",
+            "label": "新和县"
+        }, {"value": "拜城县", "label": "拜城县"}, {
+            "value": "乌什县",
+            "label": "乌什县"
+        }, {"value": "阿瓦提县", "label": "阿瓦提县"}, {
+            "value": "柯坪县",
+            "label": "柯坪县"
+        }]
+    }, {
+        "value": "克孜勒苏柯尔克孜自治州",
+        "label": "克孜勒苏柯尔克孜自治州",
+        "children": [{
+            "value": "阿图什市",
+            "label": "阿图什市"
+        }, {
+            "value": "阿克陶县",
+            "label": "阿克陶县"
+        }, {"value": "阿合奇县", "label": "阿合奇县"}, {
+            "value": "乌恰县",
+            "label": "乌恰县"
+        }]
+    }, {
+        "value": "喀什地区",
+        "label": "喀什地区",
+        "children": [{"value": "喀什市", "label": "喀什市"}, {
+            "value": "疏附县",
+            "label": "疏附县"
+        }, {"value": "疏勒县", "label": "疏勒县"}, {
+            "value": "英吉沙县",
+            "label": "英吉沙县"
+        }, {"value": "泽普县", "label": "泽普县"}, {
+            "value": "莎车县",
+            "label": "莎车县"
+        }, {"value": "叶城县", "label": "叶城县"}, {
+            "value": "麦盖提县",
+            "label": "麦盖提县"
+        }, {"value": "岳普湖县", "label": "岳普湖县"}, {
+            "value": "伽师县",
+            "label": "伽师县"
+        }, {
+            "value": "巴楚县",
+            "label": "巴楚县"
+        }, {
+            "value": "塔什库尔干塔吉克自治县",
+            "label": "塔什库尔干塔吉克自治县"
+        }]
+    }, {
+        "value": "和田地区",
+        "label": "和田地区",
+        "children": [{"value": "和田市", "label": "和田市"}, {
+            "value": "和田县",
+            "label": "和田县"
+        }, {"value": "墨玉县", "label": "墨玉县"}, {
+            "value": "皮山县",
+            "label": "皮山县"
+        }, {"value": "洛浦县", "label": "洛浦县"}, {
+            "value": "策勒县",
+            "label": "策勒县"
+        }, {"value": "于田县", "label": "于田县"}, {
+            "value": "民丰县",
+            "label": "民丰县"
+        }]
+    }, {
+        "value": "伊犁哈萨克自治州",
+        "label": "伊犁哈萨克自治州",
+        "children": [{"value": "伊宁市", "label": "伊宁市"}, {
+            "value": "奎屯市",
+            "label": "奎屯市"
+        }, {
+            "value": "霍尔果斯市",
+            "label": "霍尔果斯市"
+        }, {
+            "value": "伊宁县",
+            "label": "伊宁县"
+        }, {
+            "value": "察布查尔锡伯自治县",
+            "label": "察布查尔锡伯自治县"
+        }, {"value": "霍城县", "label": "霍城县"}, {
+            "value": "巩留县",
+            "label": "巩留县"
+        }, {"value": "新源县", "label": "新源县"}, {
+            "value": "昭苏县",
+            "label": "昭苏县"
+        }, {
+            "value": "特克斯县",
+            "label": "特克斯县"
+        }, {"value": "尼勒克县", "label": "尼勒克县"}]
+    }, {
+        "value": "塔城地区",
+        "label": "塔城地区",
+        "children": [{"value": "塔城市", "label": "塔城市"}, {
+            "value": "乌苏市",
+            "label": "乌苏市"
+        }, {"value": "额敏县", "label": "额敏县"}, {
+            "value": "沙湾县",
+            "label": "沙湾县"
+        }, {"value": "托里县", "label": "托里县"}, {
+            "value": "裕民县",
+            "label": "裕民县"
+        }, {
+            "value": "和布克赛尔蒙古自治县",
+            "label": "和布克赛尔蒙古自治县"
+        }]
+    }, {
+        "value": "阿勒泰地区",
+        "label": "阿勒泰地区",
+        "children": [{
+            "value": "阿勒泰市",
+            "label": "阿勒泰市"
+        }, {"value": "布尔津县", "label": "布尔津县"}, {
+            "value": "富蕴县",
+            "label": "富蕴县"
+        }, {"value": "福海县", "label": "福海县"}, {
+            "value": "哈巴河县",
+            "label": "哈巴河县"
+        }, {"value": "青河县", "label": "青河县"}, {
+            "value": "吉木乃县",
+            "label": "吉木乃县"
+        }]
+    }, {
+        "value": "直辖县",
+        "label": "直辖县",
+        "children": [{
+            "value": "石河子市",
+            "label": "石河子市"
+        }, {
+            "value": "阿拉尔市",
+            "label": "阿拉尔市"
+        }, {
+            "value": "图木舒克市",
+            "label": "图木舒克市"
+        }, {
+            "value": "五家渠市",
+            "label": "五家渠市"
+        }, {"value": "铁门关市", "label": "铁门关市"}]
+    }]
+}, {
+    "value": "香港特别行政区",
+    "label": "香港特别行政区",
+    "children": [{
+        "value": "香港特别行政区",
+        "label": "香港特别行政区",
+        "children": [{"value": "中西区", "label": "中西区"}, {
+            "value": "东区",
+            "label": "东区"
+        }, {"value": "九龙城区", "label": "九龙城区"}, {
+            "value": "观塘区",
+            "label": "观塘区"
+        }, {"value": "南区", "label": "南区"}, {
+            "value": "深水埗区",
+            "label": "深水埗区"
+        }, {"value": "湾仔区", "label": "湾仔区"}, {
+            "value": "黄大仙区",
+            "label": "黄大仙区"
+        }, {"value": "油尖旺区", "label": "油尖旺区"}, {
+            "value": "离岛区",
+            "label": "离岛区"
+        }, {"value": "葵青区", "label": "葵青区"}, {
+            "value": "北区",
+            "label": "北区"
+        }, {"value": "西贡区", "label": "西贡区"}, {
+            "value": "沙田区",
+            "label": "沙田区"
+        }, {"value": "屯门区", "label": "屯门区"}, {
+            "value": "大埔区",
+            "label": "大埔区"
+        }, {"value": "荃湾区", "label": "荃湾区"}, {
+            "value": "元朗区",
+            "label": "元朗区"
+        }]
+    }]
+}, {
+    "value": "澳门特别行政区",
+    "label": "澳门特别行政区",
+    "children": [{
+        "value": "澳门特别行政区",
+        "label": "澳门特别行政区",
+        "children": [{
+            "value": "澳门半岛",
+            "label": "澳门半岛"
+        }, {"value": "凼仔", "label": "凼仔"}, {
+            "value": "路凼城",
+            "label": "路凼城"
+        }, {"value": "路环", "label": "路环"}]
+    }]
+}, {
+    "value": "台湾", "label": "台湾", "children": [{
+        "value": "彰化县",
+        "label": "彰化县",
+        "children": [{"value": "芳苑乡", "label": "芳苑乡"}, {
+            "value": "芬园乡",
+            "label": "芬园乡"
+        }, {"value": "福兴乡", "label": "福兴乡"}, {
+            "value": "和美镇",
+            "label": "和美镇"
+        }, {"value": "花坛乡", "label": "花坛乡"}, {
+            "value": "鹿港镇",
+            "label": "鹿港镇"
+        }, {"value": "埤头乡", "label": "埤头乡"}, {
+            "value": "埔心乡",
+            "label": "埔心乡"
+        }, {"value": "埔盐乡", "label": "埔盐乡"}, {
+            "value": "伸港乡",
+            "label": "伸港乡"
+        }, {"value": "社头乡", "label": "社头乡"}, {
+            "value": "田尾乡",
+            "label": "田尾乡"
+        }, {"value": "田中镇", "label": "田中镇"}, {
+            "value": "线西乡",
+            "label": "线西乡"
+        }, {"value": "溪湖镇", "label": "溪湖镇"}, {
+            "value": "秀水乡",
+            "label": "秀水乡"
+        }, {"value": "溪州乡", "label": "溪州乡"}, {
+            "value": "永靖乡",
+            "label": "永靖乡"
+        }, {"value": "员林市", "label": "员林市"}, {
+            "value": "竹塘乡",
+            "label": "竹塘乡"
+        }]
+    }, {
+        "value": "新北市",
+        "label": "新北市",
+        "children": [{"value": "八里区", "label": "八里区"}, {
+            "value": "板桥区",
+            "label": "板桥区"
+        }, {"value": "贡寮区", "label": "贡寮区"}, {
+            "value": "金山区",
+            "label": "金山区"
+        }, {"value": "林口区", "label": "林口区"}, {
+            "value": "芦洲区",
+            "label": "芦洲区"
+        }, {"value": "坪林区", "label": "坪林区"}, {
+            "value": "平溪区",
+            "label": "平溪区"
+        }, {"value": "瑞芳区", "label": "瑞芳区"}, {
+            "value": "三重区",
+            "label": "三重区"
+        }, {"value": "三峡区", "label": "三峡区"}, {
+            "value": "三芝区",
+            "label": "三芝区"
+        }, {"value": "深坑区", "label": "深坑区"}, {
+            "value": "石碇区",
+            "label": "石碇区"
+        }, {"value": "石门区", "label": "石门区"}, {
+            "value": "双溪区",
+            "label": "双溪区"
+        }, {"value": "树林区", "label": "树林区"}, {
+            "value": "泰山区",
+            "label": "泰山区"
+        }, {"value": "淡水区", "label": "淡水区"}, {
+            "value": "土城区",
+            "label": "土城区"
+        }]
+    }, {
+        "value": "澎湖县",
+        "label": "澎湖县",
+        "children": [{"value": "白沙乡", "label": "白沙乡"}, {
+            "value": "湖西乡",
+            "label": "湖西乡"
+        }, {"value": "马公市", "label": "马公市"}, {
+            "value": "七美乡",
+            "label": "七美乡"
+        }, {"value": "望安乡", "label": "望安乡"}, {
+            "value": "西屿乡",
+            "label": "西屿乡"
+        }]
+    }, {
+        "value": "屏东县",
+        "label": "屏东县",
+        "children": [{
+            "value": "三地门乡",
+            "label": "三地门乡"
+        }, {"value": "狮子乡", "label": "狮子乡"}, {
+            "value": "泰武乡",
+            "label": "泰武乡"
+        }, {"value": "万丹乡", "label": "万丹乡"}, {
+            "value": "万峦乡",
+            "label": "万峦乡"
+        }, {"value": "雾臺乡", "label": "雾臺乡"}, {
+            "value": "新埤乡",
+            "label": "新埤乡"
+        }, {"value": "新园乡", "label": "新园乡"}, {
+            "value": "盐埔乡",
+            "label": "盐埔乡"
+        }, {"value": "竹田乡", "label": "竹田乡"}, {
+            "value": "长治乡",
+            "label": "长治乡"
+        }, {"value": "潮州镇", "label": "潮州镇"}, {
+            "value": "车城乡",
+            "label": "车城乡"
+        }, {"value": "春日乡", "label": "春日乡"}, {
+            "value": "东港镇",
+            "label": "东港镇"
+        }, {"value": "枋寮乡", "label": "枋寮乡"}, {
+            "value": "枋山乡",
+            "label": "枋山乡"
+        }, {"value": "高树乡", "label": "高树乡"}, {
+            "value": "恆春镇",
+            "label": "恆春镇"
+        }, {"value": "佳冬乡", "label": "佳冬乡"}]
+    }, {
+        "value": "臺中市",
+        "label": "臺中市",
+        "children": [{"value": "梧栖区", "label": "梧栖区"}, {
+            "value": "乌日区",
+            "label": "乌日区"
+        }, {"value": "新社区", "label": "新社区"}, {
+            "value": "西屯区",
+            "label": "西屯区"
+        }, {"value": "北屯区", "label": "北屯区"}, {
+            "value": "中区",
+            "label": "中区"
+        }, {"value": "大肚区", "label": "大肚区"}, {
+            "value": "大甲区",
+            "label": "大甲区"
+        }, {"value": "大里区", "label": "大里区"}, {
+            "value": "大雅区",
+            "label": "大雅区"
+        }, {"value": "大安区", "label": "大安区"}, {
+            "value": "东势区",
+            "label": "东势区"
+        }, {"value": "东区", "label": "东区"}, {
+            "value": "丰原区",
+            "label": "丰原区"
+        }, {"value": "和平区", "label": "和平区"}, {
+            "value": "后里区",
+            "label": "后里区"
+        }, {"value": "龙井区", "label": "龙井区"}, {
+            "value": "南屯区",
+            "label": "南屯区"
+        }, {"value": "北区", "label": "北区"}, {
+            "value": "清水区",
+            "label": "清水区"
+        }]
+    }, {
+        "value": "臺南市",
+        "label": "臺南市",
+        "children": [{"value": "佳里区", "label": "佳里区"}, {
+            "value": "将军区",
+            "label": "将军区"
+        }, {"value": "六甲区", "label": "六甲区"}, {
+            "value": "柳营区",
+            "label": "柳营区"
+        }, {"value": "龙崎区", "label": "龙崎区"}, {
+            "value": "麻豆区",
+            "label": "麻豆区"
+        }, {"value": "南化区", "label": "南化区"}, {
+            "value": "楠西区",
+            "label": "楠西区"
+        }, {"value": "北区", "label": "北区"}, {
+            "value": "七股区",
+            "label": "七股区"
+        }, {"value": "仁德区", "label": "仁德区"}, {
+            "value": "善化区",
+            "label": "善化区"
+        }, {"value": "山上区", "label": "山上区"}, {
+            "value": "南区",
+            "label": "南区"
+        }, {"value": "中西区", "label": "中西区"}, {
+            "value": "下营区",
+            "label": "下营区"
+        }, {"value": "西港区", "label": "西港区"}, {
+            "value": "新化区",
+            "label": "新化区"
+        }, {"value": "新市区", "label": "新市区"}, {
+            "value": "新营区",
+            "label": "新营区"
+        }]
+    }, {
+        "value": "臺北市",
+        "label": "臺北市",
+        "children": [{"value": "北投区", "label": "北投区"}, {
+            "value": "大同区",
+            "label": "大同区"
+        }, {"value": "大安区", "label": "大安区"}, {
+            "value": "南港区",
+            "label": "南港区"
+        }, {"value": "内湖区", "label": "内湖区"}, {
+            "value": "士林区",
+            "label": "士林区"
+        }, {"value": "松山区", "label": "松山区"}, {
+            "value": "万华区",
+            "label": "万华区"
+        }, {"value": "文山区", "label": "文山区"}, {
+            "value": "信义区",
+            "label": "信义区"
+        }, {"value": "中山区", "label": "中山区"}, {
+            "value": "中正区",
+            "label": "中正区"
+        }]
+    }, {
+        "value": "臺东县",
+        "label": "臺东县",
+        "children": [{"value": "卑南乡", "label": "卑南乡"}, {
+            "value": "长滨乡",
+            "label": "长滨乡"
+        }, {"value": "成功镇", "label": "成功镇"}, {
+            "value": "池上乡",
+            "label": "池上乡"
+        }, {"value": "达仁乡", "label": "达仁乡"}, {
+            "value": "大武乡",
+            "label": "大武乡"
+        }, {"value": "东河乡", "label": "东河乡"}, {
+            "value": "关山镇",
+            "label": "关山镇"
+        }, {"value": "海端乡", "label": "海端乡"}, {
+            "value": "金峰乡",
+            "label": "金峰乡"
+        }, {"value": "兰屿乡", "label": "兰屿乡"}, {
+            "value": "绿岛乡",
+            "label": "绿岛乡"
+        }, {"value": "鹿野乡", "label": "鹿野乡"}, {
+            "value": "太麻里乡",
+            "label": "太麻里乡"
+        }, {"value": "臺东市", "label": "臺东市"}, {
+            "value": "延平乡",
+            "label": "延平乡"
+        }]
+    }, {
+        "value": "桃园市",
+        "label": "桃园市",
+        "children": [{"value": "八德区", "label": "八德区"}, {
+            "value": "大溪区",
+            "label": "大溪区"
+        }, {"value": "大园区", "label": "大园区"}, {
+            "value": "復兴区",
+            "label": "復兴区"
+        }, {"value": "观音区", "label": "观音区"}, {
+            "value": "龟山区",
+            "label": "龟山区"
+        }, {"value": "龙潭区", "label": "龙潭区"}, {
+            "value": "芦竹区",
+            "label": "芦竹区"
+        }, {"value": "平镇区", "label": "平镇区"}, {
+            "value": "桃园区",
+            "label": "桃园区"
+        }, {"value": "新屋区", "label": "新屋区"}, {
+            "value": "杨梅区",
+            "label": "杨梅区"
+        }, {"value": "中坜区", "label": "中坜区"}]
+    }, {
+        "value": "宜兰县",
+        "label": "宜兰县",
+        "children": [{"value": "大同乡", "label": "大同乡"}, {
+            "value": "钓鱼臺",
+            "label": "钓鱼臺"
+        }, {"value": "冬山乡", "label": "冬山乡"}, {
+            "value": "礁溪乡",
+            "label": "礁溪乡"
+        }, {"value": "罗东镇", "label": "罗东镇"}, {
+            "value": "南澳乡",
+            "label": "南澳乡"
+        }, {"value": "三星乡", "label": "三星乡"}, {
+            "value": "苏澳镇",
+            "label": "苏澳镇"
+        }, {"value": "头城镇", "label": "头城镇"}, {
+            "value": "五结乡",
+            "label": "五结乡"
+        }, {"value": "宜兰市", "label": "宜兰市"}, {
+            "value": "员山乡",
+            "label": "员山乡"
+        }, {"value": "壮围乡", "label": "壮围乡"}]
+    }, {
+        "value": "南投县",
+        "label": "南投县",
+        "children": [{"value": "草屯镇", "label": "草屯镇"}, {
+            "value": "国姓乡",
+            "label": "国姓乡"
+        }, {"value": "集集镇", "label": "集集镇"}, {
+            "value": "鹿谷乡",
+            "label": "鹿谷乡"
+        }, {"value": "名间乡", "label": "名间乡"}, {
+            "value": "南投市",
+            "label": "南投市"
+        }, {"value": "埔里镇", "label": "埔里镇"}, {
+            "value": "仁爱乡",
+            "label": "仁爱乡"
+        }, {"value": "水里乡", "label": "水里乡"}, {
+            "value": "信义乡",
+            "label": "信义乡"
+        }, {"value": "鱼池乡", "label": "鱼池乡"}, {
+            "value": "中寮乡",
+            "label": "中寮乡"
+        }, {"value": "竹山镇", "label": "竹山镇"}]
+    }, {
+        "value": "南海岛",
+        "label": "南海岛",
+        "children": [{
+            "value": "东沙群岛",
+            "label": "东沙群岛"
+        }, {"value": "南沙群岛", "label": "南沙群岛"}]
+    }, {
+        "value": "苗栗县",
+        "label": "苗栗县",
+        "children": [{"value": "头屋乡", "label": "头屋乡"}, {
+            "value": "西湖乡",
+            "label": "西湖乡"
+        }, {"value": "苑里镇", "label": "苑里镇"}, {
+            "value": "造桥乡",
+            "label": "造桥乡"
+        }, {"value": "竹南镇", "label": "竹南镇"}, {
+            "value": "卓兰镇",
+            "label": "卓兰镇"
+        }, {"value": "大湖乡", "label": "大湖乡"}, {
+            "value": "公馆乡",
+            "label": "公馆乡"
+        }, {"value": "后龙镇", "label": "后龙镇"}, {
+            "value": "苗栗市",
+            "label": "苗栗市"
+        }, {"value": "南庄乡", "label": "南庄乡"}, {
+            "value": "三湾乡",
+            "label": "三湾乡"
+        }, {"value": "三义乡", "label": "三义乡"}, {
+            "value": "狮潭乡",
+            "label": "狮潭乡"
+        }, {"value": "泰安乡", "label": "泰安乡"}, {
+            "value": "铜锣乡",
+            "label": "铜锣乡"
+        }, {"value": "通霄镇", "label": "通霄镇"}, {
+            "value": "头份市",
+            "label": "头份市"
+        }]
+    }, {
+        "value": "嘉义市",
+        "label": "嘉义市",
+        "children": [{"value": "东区", "label": "东区"}, {
+            "value": "西区",
+            "label": "西区"
+        }]
+    }, {
+        "value": "嘉义县",
+        "label": "嘉义县",
+        "children": [{
+            "value": "阿里山乡",
+            "label": "阿里山乡"
+        }, {"value": "布袋镇", "label": "布袋镇"}, {
+            "value": "大林镇",
+            "label": "大林镇"
+        }, {"value": "大埔乡", "label": "大埔乡"}, {
+            "value": "东石乡",
+            "label": "东石乡"
+        }, {"value": "番路乡", "label": "番路乡"}, {
+            "value": "六脚乡",
+            "label": "六脚乡"
+        }, {"value": "鹿草乡", "label": "鹿草乡"}, {
+            "value": "梅山乡",
+            "label": "梅山乡"
+        }, {"value": "民雄乡", "label": "民雄乡"}, {
+            "value": "朴子市",
+            "label": "朴子市"
+        }, {"value": "水上乡", "label": "水上乡"}, {
+            "value": "太保市",
+            "label": "太保市"
+        }, {"value": "溪口乡", "label": "溪口乡"}, {
+            "value": "新港乡",
+            "label": "新港乡"
+        }, {"value": "义竹乡", "label": "义竹乡"}, {
+            "value": "中埔乡",
+            "label": "中埔乡"
+        }, {"value": "竹崎乡", "label": "竹崎乡"}]
+    }, {
+        "value": "新竹市",
+        "label": "新竹市",
+        "children": [{"value": "东区", "label": "东区"}, {
+            "value": "北区",
+            "label": "北区"
+        }]
+    }, {
+        "value": "新竹县",
+        "label": "新竹县",
+        "children": [{"value": "峨眉乡", "label": "峨眉乡"}, {
+            "value": "关西镇",
+            "label": "关西镇"
+        }, {"value": "横山乡", "label": "横山乡"}, {
+            "value": "湖口乡",
+            "label": "湖口乡"
+        }, {"value": "尖石乡", "label": "尖石乡"}, {
+            "value": "芎林乡",
+            "label": "芎林乡"
+        }, {"value": "五峰乡", "label": "五峰乡"}, {
+            "value": "新丰乡",
+            "label": "新丰乡"
+        }, {"value": "新埔镇", "label": "新埔镇"}, {
+            "value": "竹北市",
+            "label": "竹北市"
+        }, {"value": "竹东镇", "label": "竹东镇"}, {
+            "value": "宝山乡",
+            "label": "宝山乡"
+        }, {"value": "北埔乡", "label": "北埔乡"}]
+    }, {
+        "value": "花莲县",
+        "label": "花莲县",
+        "children": [{"value": "卓溪乡", "label": "卓溪乡"}, {
+            "value": "丰滨乡",
+            "label": "丰滨乡"
+        }, {"value": "凤林镇", "label": "凤林镇"}, {
+            "value": "富里乡",
+            "label": "富里乡"
+        }, {"value": "光復乡", "label": "光復乡"}, {
+            "value": "花莲市",
+            "label": "花莲市"
+        }, {"value": "吉安乡", "label": "吉安乡"}, {
+            "value": "瑞穗乡",
+            "label": "瑞穗乡"
+        }, {"value": "寿丰乡", "label": "寿丰乡"}, {
+            "value": "万荣乡",
+            "label": "万荣乡"
+        }, {"value": "新城乡", "label": "新城乡"}, {
+            "value": "秀林乡",
+            "label": "秀林乡"
+        }, {"value": "玉里镇", "label": "玉里镇"}]
+    }, {
+        "value": "高雄市",
+        "label": "高雄市",
+        "children": [{"value": "阿莲区", "label": "阿莲区"}, {
+            "value": "大寮区",
+            "label": "大寮区"
+        }, {"value": "大社区", "label": "大社区"}, {
+            "value": "大树区",
+            "label": "大树区"
+        }, {"value": "凤山区", "label": "凤山区"}, {
+            "value": "冈山区",
+            "label": "冈山区"
+        }, {"value": "鼓山区", "label": "鼓山区"}, {
+            "value": "湖内区",
+            "label": "湖内区"
+        }, {"value": "甲仙区", "label": "甲仙区"}, {
+            "value": "苓雅区",
+            "label": "苓雅区"
+        }, {"value": "林园区", "label": "林园区"}, {
+            "value": "六龟区",
+            "label": "六龟区"
+        }, {"value": "路竹区", "label": "路竹区"}, {
+            "value": "茂林区",
+            "label": "茂林区"
+        }, {"value": "美浓区", "label": "美浓区"}, {
+            "value": "弥陀区",
+            "label": "弥陀区"
+        }, {"value": "那玛夏区", "label": "那玛夏区"}, {
+            "value": "楠梓区",
+            "label": "楠梓区"
+        }, {"value": "内门区", "label": "内门区"}, {
+            "value": "鸟松区",
+            "label": "鸟松区"
+        }]
+    }, {
+        "value": "基隆市",
+        "label": "基隆市",
+        "children": [{"value": "安乐区", "label": "安乐区"}, {
+            "value": "暖暖区",
+            "label": "暖暖区"
+        }, {"value": "七堵区", "label": "七堵区"}, {
+            "value": "仁爱区",
+            "label": "仁爱区"
+        }, {"value": "信义区", "label": "信义区"}, {
+            "value": "中山区",
+            "label": "中山区"
+        }, {"value": "中正区", "label": "中正区"}]
+    }, {
+        "value": "金门县",
+        "label": "金门县",
+        "children": [{"value": "金城镇", "label": "金城镇"}, {
+            "value": "金湖镇",
+            "label": "金湖镇"
+        }, {"value": "金宁乡", "label": "金宁乡"}, {
+            "value": "金沙镇",
+            "label": "金沙镇"
+        }, {"value": "烈屿乡", "label": "烈屿乡"}, {
+            "value": "乌坵乡",
+            "label": "乌坵乡"
+        }]
+    }, {
+        "value": "连江县",
+        "label": "连江县",
+        "children": [{"value": "北竿乡", "label": "北竿乡"}, {
+            "value": "东引乡",
+            "label": "东引乡"
+        }, {"value": "莒光乡", "label": "莒光乡"}, {
+            "value": "南竿乡",
+            "label": "南竿乡"
+        }]
+    }, {
+        "value": "云林县",
+        "label": "云林县",
+        "children": [{"value": "褒忠乡", "label": "褒忠乡"}, {
+            "value": "北港镇",
+            "label": "北港镇"
+        }, {"value": "莿桐乡", "label": "莿桐乡"}, {
+            "value": "大埤乡",
+            "label": "大埤乡"
+        }, {"value": "东势乡", "label": "东势乡"}, {
+            "value": "斗六市",
+            "label": "斗六市"
+        }, {"value": "斗南镇", "label": "斗南镇"}, {
+            "value": "二崙乡",
+            "label": "二崙乡"
+        }, {"value": "古坑乡", "label": "古坑乡"}, {
+            "value": "虎尾镇",
+            "label": "虎尾镇"
+        }, {"value": "口湖乡", "label": "口湖乡"}, {
+            "value": "林内乡",
+            "label": "林内乡"
+        }, {"value": "崙背乡", "label": "崙背乡"}, {
+            "value": "麦寮乡",
+            "label": "麦寮乡"
+        }, {"value": "水林乡", "label": "水林乡"}, {
+            "value": "四湖乡",
+            "label": "四湖乡"
+        }, {"value": "臺西乡", "label": "臺西乡"}, {
+            "value": "土库镇",
+            "label": "土库镇"
+        }, {"value": "西螺镇", "label": "西螺镇"}, {
+            "value": "元长乡",
+            "label": "元长乡"
+        }]
+    }]
+}]

+ 103 - 0
components/wangding-pickerAddress/wangding-pickerAddress.vue

@@ -0,0 +1,103 @@
+<template>
+	<picker @change="bindPickerChange" @columnchange="columnchange" :range="array" range-key="name" :value="value" mode="multiSelector">
+		<slot></slot>
+	</picker>
+</template>
+
+<script>
+	import AllAddress from './data.js'
+	let selectVal = ['','',''];
+	
+	export default {
+		data() {
+			return{
+				value: [0,0,0],
+				array: [],
+				index: 0
+			}
+		},
+		created() {
+			this.initSelect()
+		},
+		methods:{
+			// 初始化地址选项
+			initSelect() {
+				this.updateSourceDate() // 更新源数据
+				.updateAddressDate() // 更新结果数据
+				.$forceUpdate()  // 触发双向绑定
+			},
+			// 地址控件改变控件
+			columnchange(d) {
+				this.updateSelectIndex(d.detail.column, d.detail.value) // 更新选择索引
+				.updateSourceDate() // 更新源数据
+				.updateAddressDate() // 更新结果数据
+				.$forceUpdate()  // 触发双向绑定
+			},
+			
+			/**
+			 * 更新源数据
+			 * */
+			updateSourceDate() {
+				this.array = []
+				this.array[0] = AllAddress.map(obj => {
+					return {
+						name: obj.value
+					}
+				})
+				this.array[1] = AllAddress[this.value[0]].children.map(obj => {
+					return {
+						name: obj.value
+					}
+				})
+				this.array[2] = AllAddress[this.value[0]].children[this.value[1]].children.map(obj => { 
+					return {
+						name: obj.value
+					}
+				})
+				return this
+			},
+			
+			/**
+			 * 更新索引
+			 * */
+			updateSelectIndex(column, value){
+				let arr = JSON.parse(JSON.stringify(this.value)) 
+				arr[column] = value
+				if(column === 0 ) {
+					arr[1] = 0
+					arr[2] = 0
+				}
+				if(column === 1 ) {
+					arr[2] = 0
+				}
+				this.value = arr
+				return this
+			},
+			
+			/**
+			 * 更新结果数据 
+			 * */
+			updateAddressDate() {
+				selectVal[0] = this.array[0][this.value[0]].name
+				selectVal[1] = this.array[1][this.value[1]].name 
+				selectVal[2] = this.array[2][this.value[2]].name 
+				return this
+			},
+			
+			/**
+			 * 点击确定
+			 * */
+			bindPickerChange(e) {
+				this.$emit('change', {
+					index: this.value,
+					data: selectVal
+				})
+				return this
+			}
+			
+		}
+	}
+</script>
+
+<style>
+</style>

+ 18 - 0
config/app.js

@@ -0,0 +1,18 @@
+module.exports = {
+	// 请求域名 格式: https://您的域名
+	
+	HTTP_REQUEST_URL:'http://base.liuniu946.com',
+
+	
+	
+	// #ifdef H5
+	// HTTP_REQUEST_URL: window.location.protocol+"//"+window.location.host,
+	// #endif
+	HEADER:{
+		'content-type': 'application/json'
+	},
+	// 回话密钥名称 请勿修改此配置
+	TOKENNAME: 'Authori-zation',
+	// 缓存时间 0 永久
+	EXPIRE:0,
+};

+ 32 - 0
config/cache.js

@@ -0,0 +1,32 @@
+module.exports = {
+	//token
+	LOGIN_STATUS: 'LOGIN_STATUS_TOKEN',
+	// uid
+	UID:'UID',
+	//�û�
+	USER_INFO: 'USER_INFO',
+	//token�����¼�
+	EXPIRES_TIME: 'EXPIRES_TIME',
+	//�Ƿ���Ȩ
+	WX_AUTH: 'WX_AUTH',
+	//���ں���Ȩcode
+	STATE_KEY: 'wx_authorize_state',
+	//�û�����
+	LOGINTYPE: 'loginType',
+	//���ں���ת����
+	BACK_URL: 'login_back_url',
+	// ����code
+	STATE_R_KEY: 'roution_authorize_state',
+	//��ȨlogoС����
+	LOGO_URL: 'LOGO_URL',
+	//模板缓存
+	SUBSCRIBE_MESSAGE: 'SUBSCRIBE_MESSAGE',
+
+	TIPS_KEY: 'TIPS_KEY',
+
+	SPREAD: 'spread',
+	//缓存经度
+	CACHE_LONGITUDE: 'LONGITUDE',
+	//缓存纬度
+	CACHE_LATITUDE: 'LATITUDE',
+}

+ 33 - 0
js_sdk/xb-copy/uni-copy.js

@@ -0,0 +1,33 @@
+export default function uniCopy(content) {
+	/**
+	 * 小程序端 和 app端的复制逻辑
+	 */
+	//#ifndef H5
+	uni.setClipboardData({
+		data: content,
+		success: function() {
+			console.log('success');
+			return true
+		}
+	});
+	//#endif
+	
+	/**
+	 * H5端的复制逻辑
+	 */
+	// #ifdef H5
+	if (!document.queryCommandSupported('copy')) { //为了兼容有些浏览器 queryCommandSupported 的判断
+		// 不支持
+		return false
+	}
+	let textarea = document.createElement("textarea")
+	textarea.value = content
+	textarea.readOnly = "readOnly"
+	document.body.appendChild(textarea)
+	textarea.select() // 选择对象
+	textarea.setSelectionRange(0, content.length) //核心
+	let result = document.execCommand("copy") // 执行浏览器复制命令
+	textarea.remove()
+	return result
+	// #endif
+}

+ 39 - 0
libs/log.js

@@ -0,0 +1,39 @@
+
+const logLength=100;//缓存存储上限
+const name = 'log';//缓存名字
+export function addLog (data,content='') {
+	let log = uni.getStorageSync(name)||[];
+	log.unshift({
+		title:data,
+		content:content
+	});
+	uni.setStorageSync(name,log);
+	initLog(log);
+}
+
+
+export function delLog () {
+	return uni.setStorageSync(name,'');
+}
+
+export function getLog () {
+	return uni.getStorageSync(name);
+}
+
+export function initLog (log) {
+	if(log.length>logLength){
+		const newarr = log.slice(log.length-logLength);
+		uni.setStorageSync(name,newarr);
+	}
+}
+export function showLog (log) {
+	
+	let str = '';
+	uni.getStorageSync(name).forEach((e) => {
+		str+=e.title+':'+JSON.stringify(e.content)
+	})
+	uni.showModal({
+		title:"日志",
+		content:str
+	})
+}

+ 84 - 0
libs/login.js

@@ -0,0 +1,84 @@
+import store from "../store";
+import Cache from '../utils/cache';
+// #ifdef H5 || APP-PLUS
+import {
+	isWeixin
+} from "../utils";
+import auth from './wechat';
+// #endif
+
+import {
+	LOGIN_STATUS,
+	USER_INFO,
+	EXPIRES_TIME,
+	STATE_R_KEY
+} from './../config/cache';
+
+function prePage() {
+	let pages = getCurrentPages();
+	let prePage = pages[pages.length - 2];
+	// #ifdef H5
+	return prePage;
+	// #endif
+	return prePage.$vm;
+}
+
+export function toLogin(push, pathLogin) {
+	// store.commit("LOGOUT");
+	let path = prePage();
+	if (path) {
+		path = path.router;
+		if (path == undefined) {
+			path = location.pathname;
+		}
+	}
+	// #ifdef H5
+	else {
+		path = location.pathname;
+	}
+	// #endif
+
+	if (!pathLogin)
+		pathLogin = '/page/users/login/index'
+	Cache.set('login_back_url', path);
+	// #ifdef H5 || APP-PLUS
+	if (isWeixin()) {
+		auth.oAuth();
+	} else {
+		if (path !== pathLogin) {
+			push ? uni.navigateTo({
+				url: '/pages/users/login/index'
+			}) : uni.reLaunch({
+				url: '/pages/users/login/index'
+			});
+		}
+	}
+	// #endif
+
+	// #ifdef MP 
+
+
+	// #endif
+}
+
+
+export function checkLogin() {
+	let token = Cache.get(LOGIN_STATUS);
+	let expiresTime = Cache.get(EXPIRES_TIME);
+	let newTime = Math.round(new Date() / 1000);
+	if (expiresTime < newTime || !token) {
+		Cache.clear(LOGIN_STATUS);
+		Cache.clear(EXPIRES_TIME);
+		Cache.clear(USER_INFO);
+		Cache.clear(STATE_R_KEY);
+		return false;
+	} else {
+		store.commit('UPDATE_LOGIN', token);
+		let userInfo = Cache.get(USER_INFO, true);
+		if (userInfo) {
+			store.commit('UPDATE_USERINFO', userInfo);
+		}
+		return true;
+	}
+
+}

+ 253 - 0
libs/wechat.js

@@ -0,0 +1,253 @@
+// #ifdef H5
+import WechatJSSDK from "@/plugin/jweixin-module/index.js";
+// #endif
+
+import {
+	wechatConfig,
+	wechatAuth
+} from "@/api/wx.js";
+import {
+	WX_AUTH,
+	STATE_KEY,
+	LOGINTYPE,
+	BACK_URL
+} from '@/config/cache';
+import {
+	parseQuery
+} from '@/utils';
+import store from '@/store';
+import Cache from '@/utils/cache';
+
+class AuthWechat {
+	// #ifdef H5
+	constructor() {
+		//微信实例化对象
+		this.instance = WechatJSSDK;
+		//是否实例化
+		this.status = false;
+
+		this.initConfig = {};
+
+	}
+	// #endif
+	
+	isAndroid(){
+		let u = navigator.userAgent;
+		return u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;
+	}
+
+	/**
+	 * 初始化wechat(分享配置)
+	 */
+	wechat() {
+		return new Promise((resolve, reject) => {
+			// if (this.status && !this.isAndroid()) return resolve(this.instance);
+			wechatConfig()
+				.then(res => {
+					this.instance.config(res.data);
+					this.initConfig = res.data;
+					this.status = true;
+					this.instance.ready(() => {
+						resolve(this.instance);
+					})
+				}).catch(err => {
+					console.log(err);
+					this.status = false;
+					reject(err);
+				});
+		});
+	}
+
+	/**
+	 * 验证是否初始化
+	 */
+	verifyInstance() {
+		let that = this;
+		return new Promise((resolve, reject) => {
+			if (that.instance === null && !that.status) {
+				that.wechat().then(res => {
+					resolve(that.instance);
+				}).catch(() => {
+					return reject();
+				})
+			} else {
+				return resolve(that.instance);
+			}
+		})
+	}
+	// 微信公众号的共享地址
+	openAddress() {
+		return new Promise((resolve, reject) => {
+			this.wechat().then(wx => {
+				this.toPromise(wx.openAddress).then(res => {
+					resolve(res);
+				}).catch(err => {
+					reject(err);
+				});
+			}).catch(err => {
+				reject(err);
+			})
+		});
+	}
+
+	/**
+	 * 微信支付
+	 * @param {Object} config
+	 */
+	pay(config) {
+		return new Promise((resolve, reject) => {
+			this.wechat().then((wx) => {
+				this.toPromise(wx.chooseWXPay, config).then(res => {
+					resolve(res);
+				}).catch(res => {
+					reject(res);
+				});
+			}).catch(res => {
+				reject(res);
+			});
+		});
+	}
+
+	toPromise(fn, config = {}) {
+		return new Promise((resolve, reject) => {
+			fn({
+				...config,
+				success(res) {
+					resolve(res);
+				},
+				fail(err) {
+					reject(err);
+				},
+				complete(err) {
+					reject(err);
+				},
+				cancel(err) {
+					reject(err);
+				}
+			});
+		});
+	}
+
+	/**
+	 * 自动去授权
+	 */
+	oAuth() {
+		if (uni.getStorageSync(WX_AUTH) && store.state.app.token) return;
+		const {
+			code
+		} = parseQuery();
+		if (!code) return this.toAuth();
+	}
+
+	clearAuthStatus() {
+
+	}
+
+	/**
+	 * 授权登陆获取token
+	 * @param {Object} code
+	 */
+	auth(code) {
+		return new Promise((resolve, reject) => {
+			let loginType = Cache.get(LOGINTYPE);
+			wechatAuth(code, parseInt(Cache.get("spread")), loginType)
+				.then(({
+					data
+				}) => {
+					let expires_time = data.expires_time.substring(0, 19);
+					expires_time = expires_time.replace(/-/g, '/');
+					expires_time = new Date(expires_time).getTime();
+					let newTime = Math.round(new Date() / 1000);
+					store.commit("LOGIN", {
+						token: data.token,
+						time: expires_time - newTime
+					});
+					Cache.set(WX_AUTH, code);
+					Cache.clear(STATE_KEY);
+					loginType && Cache.clear(LOGINTYPE);
+					resolve();
+				})
+				.catch(reject);
+		});
+	}
+
+	/**
+	 * 获取跳转授权后的地址
+	 * @param {Object} appId
+	 */
+	getAuthUrl(appId) {
+		const redirect_uri = encodeURIComponent(
+			`${location.origin}/pages/auth/index?back_url=` +
+			encodeURIComponent(
+				encodeURIComponent(
+					uni.getStorageSync(BACK_URL) ?
+					uni.getStorageSync(BACK_URL) :
+					location.pathname + location.search
+				)
+			)
+		);
+		uni.removeStorageSync(BACK_URL);
+		const state = encodeURIComponent(
+			("" + Math.random()).split(".")[1] + "authorizestate"
+		);
+		uni.setStorageSync(STATE_KEY, state);
+		return `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appId}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_userinfo&state=${state}#wechat_redirect`;
+	}
+
+	/**
+	 * 跳转自动登陆
+	 */
+	toAuth() {
+		let that = this;
+		this.wechat().then(wx => {
+			location.href = this.getAuthUrl(that.initConfig.appId);
+		})
+	}
+
+	/**
+	 * 绑定事件
+	 * @param {Object} name 事件名
+	 * @param {Object} config 参数
+	 */
+	wechatEvevt(name, config) {
+		let that = this;
+		return new Promise((resolve, reject) => {
+			let configDefault = {
+				fail(res) {
+					console.log(res,11111);
+					if (that.instance) return reject({
+						is_ready: true,
+						wx: that.instance
+					});
+					that.verifyInstance().then(wx => {
+						return reject({
+							is_ready: true,
+							wx: wx
+						});
+					})
+				},
+				success(res) {
+					return resolve(res,2222);
+				}
+			};
+			Object.assign(configDefault, config);
+			that.wechat().then(wx => {
+				if (typeof name === 'object') {
+					name.forEach(item => {
+						wx[item] && wx[item](configDefault)
+					})
+				} else {
+					wx[name] && wx[name](configDefault)
+				}
+			})
+		});
+	}
+
+	isWeixin() {
+		return navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1;
+	}
+
+}
+
+export default new AuthWechat();
+

+ 46 - 0
main.js

@@ -0,0 +1,46 @@
+import Vue from 'vue'
+import store from './store'
+import App from './App'
+import uView from 'uview-ui'
+Vue.use(uView)
+/**
+ *  所有测试用数据均存放于根目录json.js
+ *  
+ *  css部分使用了App.vue下的全局样式和iconfont图标,有需要图标库的可以留言。
+ *  示例使用了uni.scss下的变量, 除变量外已尽量移除特有语法,可直接替换为其他预处理器使用
+ */
+const msg = (title, duration=1500, mask=false, icon='none')=>{
+	//统一提示方便全局修改
+	if(Boolean(title) === false){
+		return;
+	}
+	uni.showToast({
+		title,
+		duration,
+		mask,
+		icon
+	});
+}
+
+const prePage = ()=>{
+	// 获取当前页面
+	let pages = getCurrentPages();
+	let prePage = pages[pages.length - 2];
+	// #ifdef H5
+	return prePage;
+	// #endif
+	return prePage.$vm;
+}
+
+
+Vue.config.productionTip = false
+Vue.prototype.$fire = new Vue();
+Vue.prototype.$store = store;
+Vue.prototype.$api = {msg, prePage};
+
+App.mpType = 'app'
+
+const app = new Vue({
+    ...App
+})
+app.$mount()

+ 93 - 0
manifest.json

@@ -0,0 +1,93 @@
+{
+    "name" : "皓月瓷肌",
+    "appid" : "__UNI__F0EBD91",
+    "description" : "",
+    "versionName" : "1.0.0",
+    "versionCode" : "100",
+    "transformPx" : false,
+    "app-plus" : {
+        /* 5+App特有相关 */
+        "usingComponents" : true,
+        "splashscreen" : {
+            "alwaysShowBeforeRender" : true,
+            "waiting" : true,
+            "autoclose" : true,
+            "delay" : 0
+        },
+        "modules" : {},
+        /* 模块配置 */
+        "distribute" : {
+            /* 应用发布信息 */
+            "android" : {
+                /* android打包配置 */
+                "permissions" : [
+                    "<uses-feature android:name=\"android.hardware.camera\"/>",
+                    "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
+                    "<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
+                    "<uses-permission android:name=\"android.permission.CAMERA\"/>",
+                    "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
+                    "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
+                    "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
+                    "<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
+                    "<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
+                    "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
+                    "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
+                    "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>"
+                ],
+                "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
+            },
+            "ios" : {
+                "idfa" : false
+            },
+            /* ios打包配置 */
+            "sdkConfigs" : {
+                "maps" : {},
+                "oauth" : {
+                    "weixin" : {
+                        "appid" : "",
+                        "appsecret" : "",
+                        "UniversalLinks" : ""
+                    }
+                }
+            }
+        }
+    },
+    /* SDK配置 */
+    "quickapp" : {},
+    /* 快应用特有相关 */
+    "mp-weixin" : {
+        /* 小程序特有相关 */
+        "usingComponents" : true,
+        "appid" : "",
+        "setting" : {
+            "urlCheck" : true
+        }
+    },
+    "h5" : {
+        "title" : "响亮商城",
+        "domain" : "",
+        "router" : {
+            "base" : "/index/",
+            "mode" : "hash"
+        },
+        "devServer" : {
+            "proxy" : {
+                "/api" : {
+                    // "target" : "http://lnpt.frp.liuniu946.com/api",
+                    "target" : "https://xl.liuniu946.com/api",
+                    // "changeOrigin": true,
+                    "pathRewrite" : {
+                        "/api" : "" // rewrite path
+                    }
+                }
+            }
+        },
+        "sdkConfigs" : {
+            "maps" : {
+                "qqmap" : {
+                    "key" : "VYZBZ-P2TRG-RMIQ3-ITAIN-2DKBK-CKFQQ"
+                }
+            }
+        }
+    }
+}

+ 34 - 0
node_modules/.package-lock.json

@@ -0,0 +1,34 @@
+{
+  "name": "appBase",
+  "lockfileVersion": 2,
+  "requires": true,
+  "packages": {
+    "node_modules/axios": {
+      "version": "0.26.0",
+      "resolved": "https://registry.npmjs.org/axios/-/axios-0.26.0.tgz",
+      "integrity": "sha512-lKoGLMYtHvFrPVt3r+RBMp9nh34N0M8zEfCWqdWZx6phynIEhQqAdydpyBAAG211zlhX9Rgu08cOamy6XjE5Og==",
+      "dependencies": {
+        "follow-redirects": "^1.14.8"
+      }
+    },
+    "node_modules/follow-redirects": {
+      "version": "1.14.9",
+      "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.9.tgz",
+      "integrity": "sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==",
+      "funding": [
+        {
+          "type": "individual",
+          "url": "https://github.com/sponsors/RubenVerborgh"
+        }
+      ],
+      "engines": {
+        "node": ">=4.0"
+      },
+      "peerDependenciesMeta": {
+        "debug": {
+          "optional": true
+        }
+      }
+    }
+  }
+}

+ 901 - 0
node_modules/axios/CHANGELOG.md

@@ -0,0 +1,901 @@
+# Changelog
+
+### 0.26.0 (February 13, 2022)
+
+Fixes and Functionality:
+- Fixed The timeoutErrorMessage property in config not work with Node.js ([#3581](https://github.com/axios/axios/pull/3581))
+- Added errors to be displayed when the query parsing process itself fails ([#3961](https://github.com/axios/axios/pull/3961))
+- Fix/remove url required ([#4426](https://github.com/axios/axios/pull/4426))
+- Update follow-redirects dependency due to Vurnerbility ([#4462](https://github.com/axios/axios/pull/4462))
+- Bump karma from 6.3.11 to 6.3.14 ([#4461](https://github.com/axios/axios/pull/4461))
+- Bump follow-redirects from 1.14.7 to 1.14.8 ([#4473](https://github.com/axios/axios/pull/4473))
+
+### 0.25.0 (January 18, 2022)
+
+Breaking changes:
+- Fixing maxBodyLength enforcement ([#3786](https://github.com/axios/axios/pull/3786))
+- Don't rely on strict mode behaviour for arguments ([#3470](https://github.com/axios/axios/pull/3470))
+- Adding error handling when missing url ([#3791](https://github.com/axios/axios/pull/3791))
+- Update isAbsoluteURL.js removing escaping of non-special characters ([#3809](https://github.com/axios/axios/pull/3809))
+- Use native Array.isArray() in utils.js ([#3836](https://github.com/axios/axios/pull/3836))
+- Adding error handling inside stream end callback ([#3967](https://github.com/axios/axios/pull/3967))
+
+Fixes and Functionality:
+- Added aborted even handler ([#3916](https://github.com/axios/axios/pull/3916))
+- Header types expanded allowing `boolean` and `number` types ([#4144](https://github.com/axios/axios/pull/4144))
+- Fix cancel signature allowing cancel message to be `undefined` ([#3153](https://github.com/axios/axios/pull/3153))
+- Updated type checks to be formulated better ([#3342](https://github.com/axios/axios/pull/3342))
+- Avoid unnecessary buffer allocations ([#3321](https://github.com/axios/axios/pull/3321))
+- Adding a socket handler to keep TCP connection live when processing long living requests ([#3422](https://github.com/axios/axios/pull/3422))
+- Added toFormData helper function ([#3757](https://github.com/axios/axios/pull/3757))
+- Adding responseEncoding prop type in AxiosRequestConfig ([#3918](https://github.com/axios/axios/pull/3918))
+
+Internal and Tests:
+- Adding axios-test-instance to ecosystem ([#3786](https://github.com/axios/axios/pull/3786))
+- Optimize the logic of isAxiosError ([#3546](https://github.com/axios/axios/pull/3546))
+- Add tests and documentation to display how multiple inceptors work ([#3564](https://github.com/axios/axios/pull/3564))
+- Updating follow-redirects to version 1.14.7 ([#4379](https://github.com/axios/axios/pull/4379))
+
+
+Documentation:
+- Fixing changelog to show corrext pull request ([#4219](https://github.com/axios/axios/pull/4219))
+- Update upgrade guide for https proxy setting ([#3604](https://github.com/axios/axios/pull/3604))
+
+Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
+
+- [Jay](mailto:jasonsaayman@gmail.com)
+- [Rijk van Zanten](https://github.com/rijkvanzanten)
+- [Kohta Ito](https://github.com/koh110)
+- [Brandon Faulkner](https://github.com/bfaulk96)
+- [Stefano Magni](https://github.com/NoriSte)
+- [enofan](https://github.com/fanguangyi)
+- [Andrey Pechkurov](https://github.com/puzpuzpuz)
+- [Doowonee](https://github.com/doowonee)
+- [Emil Broman](https://github.com/emilbroman-eqt)
+- [Remco Haszing](https://github.com/remcohaszing)
+- [Black-Hole](https://github.com/BlackHole1)
+- [Wolfram Kriesing](https://github.com/wolframkriesing)
+- [Andrew Ovens](https://github.com/repl-andrew-ovens)
+- [Paulo Renato](https://github.com/PauloRSF)
+- [Ben Carp](https://github.com/carpben)
+- [Hirotaka Tagawa](https://github.com/wafuwafu13)
+- [狼族小狈](https://github.com/lzxb)
+- [C. Lewis](https://github.com/ctjlewis)
+- [Felipe Carvalho](https://github.com/FCarvalhoVII)
+- [Daniel](https://github.com/djs113)
+- [Gustavo Sales](https://github.com/gussalesdev)
+
+### 0.24.0 (October 25, 2021)
+
+Breaking changes:
+- Revert: change type of AxiosResponse to any, please read lengthy discussion here: ([#4141](https://github.com/axios/axios/issues/4141)) pull request: ([#4186](https://github.com/axios/axios/pull/4186))
+
+Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
+
+- [Jay](mailto:jasonsaayman@gmail.com)
+- [Rodry](https://github.com/ImRodry)
+- [Remco Haszing](https://github.com/remcohaszing)
+- [Isaiah Thomason](https://github.com/ITenthusiasm)
+
+### 0.23.0 (October 12, 2021)
+
+Breaking changes:
+- Distinguish request and response data types ([#4116](https://github.com/axios/axios/pull/4116))
+- Change never type to unknown ([#4142](https://github.com/axios/axios/pull/4142))
+- Fixed TransitionalOptions typings ([#4147](https://github.com/axios/axios/pull/4147))
+
+Fixes and Functionality:
+- Adding globalObject: 'this' to webpack config ([#3176](https://github.com/axios/axios/pull/3176))
+- Adding insecureHTTPParser type to AxiosRequestConfig ([#4066](https://github.com/axios/axios/pull/4066))
+- Fix missing semicolon in typings ([#4115](https://github.com/axios/axios/pull/4115))
+- Fix response headers types ([#4136](https://github.com/axios/axios/pull/4136))
+
+Internal and Tests:
+- Improve timeout error when timeout is browser default ([#3209](https://github.com/axios/axios/pull/3209))
+- Fix node version on CI ([#4069](https://github.com/axios/axios/pull/4069))
+- Added testing to TypeScript portion of project ([#4140](https://github.com/axios/axios/pull/4140))
+
+Documentation:
+- Rename Angular to AngularJS ([#4114](https://github.com/axios/axios/pull/4114))
+
+Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
+
+- [Jay](mailto:jasonsaayman@gmail.com)
+- [Evan-Finkelstein](https://github.com/Evan-Finkelstein)
+- [Paweł Szymański](https://github.com/Jezorko)
+- [Dobes Vandermeer](https://github.com/dobesv)
+- [Claas Augner](https://github.com/caugner)
+- [Remco Haszing](https://github.com/remcohaszing)
+- [Evgeniy](https://github.com/egmen)
+- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
+
+### 0.22.0 (October 01, 2021)
+
+Fixes and Functionality:
+- Caseless header comparing in HTTP adapter ([#2880](https://github.com/axios/axios/pull/2880))
+- Avoid package.json import fixing issues and warnings related to this ([#4041](https://github.com/axios/axios/pull/4041)), ([#4065](https://github.com/axios/axios/pull/4065))
+- Fixed cancelToken leakage and added AbortController support ([#3305](https://github.com/axios/axios/pull/3305))
+- Updating CI to run on release branches
+- Bump follow redirects version
+- Fixed default transitional config for custom Axios instance; ([#4052](https://github.com/axios/axios/pull/4052))
+
+Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
+
+- [Jay](mailto:jasonsaayman@gmail.com)
+- [Matt R. Wilson](https://github.com/mastermatt)
+- [Xianming Zhong](https://github.com/chinesedfan)
+- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
+
+### 0.21.4 (September 6, 2021)
+
+Fixes and Functionality:
+- Fixing JSON transform when data is stringified. Providing backward compatability and complying to the JSON RFC standard ([#4020](https://github.com/axios/axios/pull/4020))
+
+Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
+
+- [Jay](mailto:jasonsaayman@gmail.com)
+- [Guillaume Fortaine](https://github.com/gfortaine)
+- [Yusuke Kawasaki](https://github.com/kawanet)
+- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
+
+### 0.21.3 (September 4, 2021)
+
+Fixes and Functionality:
+- Fixing response interceptor not being called when request interceptor is attached ([#4013](https://github.com/axios/axios/pull/4013))
+
+Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
+
+- [Jay](mailto:jasonsaayman@gmail.com)
+- [Julian Hollmann](https://github.com/nerdbeere)
+
+### 0.21.2 (September 4, 2021)
+
+Fixes and Functionality:
+
+- Updating axios requests to be delayed by pre-emptive promise creation ([#2702](https://github.com/axios/axios/pull/2702))
+- Adding "synchronous" and "runWhen" options to interceptors api ([#2702](https://github.com/axios/axios/pull/2702))
+- Updating of transformResponse ([#3377](https://github.com/axios/axios/pull/3377))
+- Adding ability to omit User-Agent header ([#3703](https://github.com/axios/axios/pull/3703))
+- Adding multiple JSON improvements ([#3688](https://github.com/axios/axios/pull/3688), [#3763](https://github.com/axios/axios/pull/3763))
+- Fixing quadratic runtime and extra memory usage when setting a maxContentLength ([#3738](https://github.com/axios/axios/pull/3738))
+- Adding parseInt to config.timeout ([#3781](https://github.com/axios/axios/pull/3781))
+- Adding custom return type support to interceptor ([#3783](https://github.com/axios/axios/pull/3783))
+- Adding security fix for ReDoS vulnerability ([#3980](https://github.com/axios/axios/pull/3980))
+
+Internal and Tests:
+
+- Updating build dev dependancies ([#3401](https://github.com/axios/axios/pull/3401))
+- Fixing builds running on Travis CI ([#3538](https://github.com/axios/axios/pull/3538))
+- Updating follow rediect version ([#3694](https://github.com/axios/axios/pull/3694), [#3771](https://github.com/axios/axios/pull/3771))
+- Updating karma sauce launcher to fix failing sauce tests ([#3712](https://github.com/axios/axios/pull/3712), [#3717](https://github.com/axios/axios/pull/3717))
+- Updating content-type header for application/json to not contain charset field, according do RFC 8259 ([#2154](https://github.com/axios/axios/pull/2154))
+- Fixing tests by bumping karma-sauce-launcher version ([#3813](https://github.com/axios/axios/pull/3813))
+- Changing testing process from Travis CI to GitHub Actions ([#3938](https://github.com/axios/axios/pull/3938))
+
+Documentation:
+
+- Updating documentation around the use of `AUTH_TOKEN` with multiple domain endpoints ([#3539](https://github.com/axios/axios/pull/3539))
+- Remove duplication of item in changelog ([#3523](https://github.com/axios/axios/pull/3523))
+- Fixing gramatical errors ([#2642](https://github.com/axios/axios/pull/2642))
+- Fixing spelling error ([#3567](https://github.com/axios/axios/pull/3567))
+- Moving gitpod metion ([#2637](https://github.com/axios/axios/pull/2637))
+- Adding new axios documentation website link ([#3681](https://github.com/axios/axios/pull/3681), [#3707](https://github.com/axios/axios/pull/3707))
+- Updating documentation around dispatching requests ([#3772](https://github.com/axios/axios/pull/3772))
+- Adding documentation for the type guard isAxiosError ([#3767](https://github.com/axios/axios/pull/3767))
+- Adding explanation of cancel token ([#3803](https://github.com/axios/axios/pull/3803))
+- Updating CI status badge ([#3953](https://github.com/axios/axios/pull/3953))
+- Fixing errors with JSON documentation ([#3936](https://github.com/axios/axios/pull/3936))
+- Fixing README typo under Request Config ([#3825](https://github.com/axios/axios/pull/3825))
+- Adding axios-multi-api to the ecosystem file ([#3817](https://github.com/axios/axios/pull/3817))
+- Adding SECURITY.md to properly disclose security vulnerabilities ([#3981](https://github.com/axios/axios/pull/3981))
+
+Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
+
+- [Jay](mailto:jasonsaayman@gmail.com)
+- [Sasha Korotkov](https://github.com/SashaKoro)
+- [Daniel Lopretto](https://github.com/timemachine3030)
+- [Mike Bishop](https://github.com/MikeBishop)
+- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
+- [Mark](https://github.com/bimbiltu)
+- [Philipe Gouveia Paixão](https://github.com/piiih)
+- [hippo](https://github.com/hippo2cat)
+- [ready-research](https://github.com/ready-research)
+- [Xianming Zhong](https://github.com/chinesedfan)
+- [Christopher Chrapka](https://github.com/OJezu)
+- [Brian Anglin](https://github.com/anglinb)
+- [Kohta Ito](https://github.com/koh110)
+- [Ali Clark](https://github.com/aliclark)
+- [caikan](https://github.com/caikan)
+- [Elina Gorshkova](https://github.com/elinagorshkova)
+- [Ryota Ikezawa](https://github.com/paveg)
+- [Nisar Hassan Naqvi](https://github.com/nisarhassan12)
+- [Jake](https://github.com/codemaster138)
+- [TagawaHirotaka](https://github.com/wafuwafu13)
+- [Johannes Jarbratt](https://github.com/johachi)
+- [Mo Sattler](https://github.com/MoSattler)
+- [Sam Carlton](https://github.com/ThatGuySam)
+- [Matt Czapliński](https://github.com/MattCCC)
+- [Ziding Zhang](https://github.com/zidingz)
+
+### 0.21.1 (December 21, 2020)
+
+Fixes and Functionality:
+
+- Hotfix: Prevent SSRF ([#3410](https://github.com/axios/axios/pull/3410))
+- Protocol not parsed when setting proxy config from env vars ([#3070](https://github.com/axios/axios/pull/3070))
+- Updating axios in types to be lower case ([#2797](https://github.com/axios/axios/pull/2797))
+- Adding a type guard for `AxiosError` ([#2949](https://github.com/axios/axios/pull/2949))
+
+Internal and Tests:
+
+- Remove the skipping of the `socket` http test ([#3364](https://github.com/axios/axios/pull/3364))
+- Use different socket for Win32 test ([#3375](https://github.com/axios/axios/pull/3375))
+
+Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
+
+- Daniel Lopretto <timemachine3030@users.noreply.github.com>
+- Jason Kwok <JasonHK@users.noreply.github.com>
+- Jay <jasonsaayman@gmail.com>
+- Jonathan Foster <jonathan@jonathanfoster.io>
+- Remco Haszing <remcohaszing@gmail.com>
+- Xianming Zhong <chinesedfan@qq.com>
+
+### 0.21.0 (October 23, 2020)
+
+Fixes and Functionality:
+
+- Fixing requestHeaders.Authorization ([#3287](https://github.com/axios/axios/pull/3287))
+- Fixing node types ([#3237](https://github.com/axios/axios/pull/3237))
+- Fixing axios.delete ignores config.data ([#3282](https://github.com/axios/axios/pull/3282))
+- Revert "Fixing overwrite Blob/File type as Content-Type in browser. (#1773)" ([#3289](https://github.com/axios/axios/pull/3289))
+- Fixing an issue that type 'null' and 'undefined' is not assignable to validateStatus when typescript strict option is enabled ([#3200](https://github.com/axios/axios/pull/3200))
+
+Internal and Tests:
+
+- Lock travis to not use node v15 ([#3361](https://github.com/axios/axios/pull/3361))
+
+Documentation:
+
+- Fixing simple typo, existant -> existent ([#3252](https://github.com/axios/axios/pull/3252))
+- Fixing typos ([#3309](https://github.com/axios/axios/pull/3309))
+
+Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
+
+- Allan Cruz <57270969+Allanbcruz@users.noreply.github.com>
+- George Cheng <Gerhut@GMail.com>
+- Jay <jasonsaayman@gmail.com>
+- Kevin Kirsche <Kev.Kirsche+GitHub@gmail.com>
+- Remco Haszing <remcohaszing@gmail.com>
+- Taemin Shin <cprayer13@gmail.com>
+- Tim Gates <tim.gates@iress.com>
+- Xianming Zhong <chinesedfan@qq.com>
+
+### 0.20.0 (August 20, 2020)
+
+Release of 0.20.0-pre as a full release with no other changes.
+
+### 0.20.0-pre (July 15, 2020)
+
+Fixes and Functionality:
+
+- Fixing response with utf-8 BOM can not parse to json ([#2419](https://github.com/axios/axios/pull/2419))
+  - fix: remove byte order marker (UTF-8 BOM) when transform response
+  - fix: remove BOM only utf-8
+  - test: utf-8 BOM
+  - fix: incorrect param name
+- Refactor mergeConfig without utils.deepMerge ([#2844](https://github.com/axios/axios/pull/2844))
+  - Adding failing test
+  - Fixing #2587 default custom config persisting
+  - Adding Concat keys and filter duplicates
+  - Fixed value from CPE
+  - update for review feedbacks
+  - no deepMerge
+  - only merge between plain objects
+  - fix rename
+  - always merge config by mergeConfig
+  - extract function mergeDeepProperties
+  - refactor mergeConfig with all keys, and add special logic for validateStatus
+  - add test for resetting headers
+  - add lots of tests and fix a bug
+  - should not inherit `data`
+  - use simple toString
+- Fixing overwrite Blob/File type as Content-Type in browser. ([#1773](https://github.com/axios/axios/pull/1773))
+- Fixing an issue that type 'null' is not assignable to validateStatus ([#2773](https://github.com/axios/axios/pull/2773))
+- Fixing special char encoding ([#1671](https://github.com/axios/axios/pull/1671))
+  - removing @ character from replacement list since it is a reserved character
+  - Updating buildURL test to not include the @ character
+  - Removing console logs
+- Fixing password encoding with special characters in basic authentication ([#1492](https://github.com/axios/axios/pull/1492))
+  - Fixing password encoding with special characters in basic authentication
+  - Adding test to check if password with non-Latin1 characters pass
+- Fixing 'Network Error' in react native android ([#1487](https://github.com/axios/axios/pull/1487))
+  There is a bug in react native Android platform when using get method. It will trigger a 'Network Error' when passing the requestData which is an empty string to request.send function. So if the requestData is an empty string we can set it to null as well to fix the bug.
+- Fixing Cookie Helper with Async Components ([#1105](https://github.com/axios/axios/pull/1105)) ([#1107](https://github.com/axios/axios/pull/1107))
+- Fixing 'progressEvent' type ([#2851](https://github.com/axios/axios/pull/2851))
+  - Fix 'progressEvent' type
+  - Update axios.ts
+- Fixing getting local files (file://) failed ([#2470](https://github.com/axios/axios/pull/2470))
+  - fix issue #2416, #2396
+  - fix Eslint warn
+  - Modify judgment conditions
+  - add unit test
+  - update unit test
+  - update unit test
+- Allow PURGE method in typings ([#2191](https://github.com/axios/axios/pull/2191))
+- Adding option to disable automatic decompression ([#2661](https://github.com/axios/axios/pull/2661))
+  - Adding ability to disable auto decompression
+  - Updating decompress documentation in README
+  - Fixing test\unit\adapters\http.js lint errors
+  - Adding test for disabling auto decompression
+  - Removing changes that fixed lint errors in tests
+  - Removing formatting change to unit test
+- Add independent `maxBodyLength` option ([#2781](https://github.com/axios/axios/pull/2781))
+  - Add independent option to set the maximum size of the request body
+  - Remove maxBodyLength check
+  - Update README
+  - Assert for error code and message
+- Adding responseEncoding to mergeConfig ([#1745](https://github.com/axios/axios/pull/1745))
+- Compatible with follow-redirect aborts the request ([#2689](https://github.com/axios/axios/pull/2689))
+  - Compatible with follow-redirect aborts the request
+  - Use the error code
+- Fix merging of params ([#2656](https://github.com/axios/axios/pull/2656))
+  - Name function to avoid ESLint func-names warning
+  - Switch params config to merge list and update tests
+  - Restore testing of both false and null
+  - Restore test cases for keys without defaults
+  - Include test for non-object values that aren't false-y.
+- Revert `finally` as `then` ([#2683](https://github.com/axios/axios/pull/2683))
+
+Internal and Tests:
+
+- Fix stale bot config ([#3049](https://github.com/axios/axios/pull/3049))
+  - fix stale bot config
+  - fix multiple lines
+- Add days and change name to work ([#3035](https://github.com/axios/axios/pull/3035))
+- Update close-issues.yml ([#3031](https://github.com/axios/axios/pull/3031))
+  - Update close-issues.yml
+    Update close message to read better 😄
+  - Fix use of quotations
+    Use single quotes as per other .yml files
+  - Remove user name form message
+- Add GitHub actions to close stale issues/prs ([#3029](https://github.com/axios/axios/pull/3029))
+  - prepare stale actions
+  - update messages
+  - Add exempt labels and lighten up comments
+- Add GitHub actions to close invalid issues ([#3022](https://github.com/axios/axios/pull/3022))
+  - add close actions
+  - fix with checkout
+  - update issue templates
+  - add reminder
+  - update close message
+- Add test with Node.js 12 ([#2860](https://github.com/axios/axios/pull/2860))
+  - test with Node.js 12
+  - test with latest
+- Adding console log on sandbox server startup ([#2210](https://github.com/axios/axios/pull/2210))
+  - Adding console log on sandbox server startup
+  - Update server.js
+    Add server error handling
+  - Update server.js
+    Better error message, remove retry.
+- Adding tests for method `options` type definitions ([#1996](https://github.com/axios/axios/pull/1996))
+  Update tests.
+- Add test for redirecting with too large response ([#2695](https://github.com/axios/axios/pull/2695))
+- Fixing unit test failure in Windows OS ([#2601](https://github.com/axios/axios/pull/2601))
+- Fixing issue for HEAD method and gzipped response ([#2666](https://github.com/axios/axios/pull/2666))
+- Fix tests in browsers ([#2748](https://github.com/axios/axios/pull/2748))
+- chore: add `jsdelivr` and `unpkg` support ([#2443](https://github.com/axios/axios/pull/2443))
+
+Documentation:
+
+- Adding support for URLSearchParams in node ([#1900](https://github.com/axios/axios/pull/1900))
+  - Adding support for URLSearchParams in node
+  - Remove un-needed code
+  - Update utils.js
+  - Make changes as suggested
+- Adding table of content (preview) ([#3050](https://github.com/axios/axios/pull/3050))
+  - add toc (preview)
+  - remove toc in toc
+    Signed-off-by: Moni <usmoni@gmail.com>
+  - fix sublinks
+  - fix indentation
+  - remove redundant table links
+  - update caps and indent
+  - remove axios
+- Replace 'blacklist' with 'blocklist' ([#3006](https://github.com/axios/axios/pull/3006))
+- docs(): Detailed config options environment. ([#2088](https://github.com/axios/axios/pull/2088))
+  - docs(): Detailed config options environment.
+  - Update README.md
+- Include axios-data-unpacker in ECOSYSTEM.md ([#2080](https://github.com/axios/axios/pull/2080))
+- Allow opening examples in Gitpod ([#1958](https://github.com/axios/axios/pull/1958))
+- Remove axios.all() and axios.spread() from Readme.md ([#2727](https://github.com/axios/axios/pull/2727))
+  - remove axios.all(), axios.spread()
+  - replace example
+  - axios.all() -> Promise.all()
+  - axios.spread(function (acct, perms)) -> function (acct, perms)
+  - add deprecated mark
+- Update README.md ([#2887](https://github.com/axios/axios/pull/2887))
+  Small change to the data attribute doc of the config. A request body can also be set for DELETE methods but this wasn't mentioned in the documentation (it only mentioned POST, PUT and PATCH). Took my some 10-20 minutes until I realized that I don't need to manipulate the request body with transformRequest in the case of DELETE.
+- Include swagger-taxos-codegen in ECOSYSTEM.md ([#2162](https://github.com/axios/axios/pull/2162))
+- Add CDNJS version badge in README.md ([#878](https://github.com/axios/axios/pull/878))
+  This badge will show the version on CDNJS!
+- Documentation update to clear up ambiguity in code examples ([#2928](https://github.com/axios/axios/pull/2928))
+  - Made an adjustment to the documentation to clear up any ambiguity around the use of "fs". This should help clear up that the code examples with "fs" cannot be used on the client side.
+- Update README.md about validateStatus ([#2912](https://github.com/axios/axios/pull/2912))
+  Rewrote the comment from "Reject only if the status code is greater than or equal to 500" to "Resolve only if the status code is less than 500"
+- Updating documentation for usage form-data ([#2805](https://github.com/axios/axios/pull/2805))
+  Closes #2049
+- Fixing CHANGELOG.md issue link ([#2784](https://github.com/axios/axios/pull/2784))
+- Include axios-hooks in ECOSYSTEM.md ([#2003](https://github.com/axios/axios/pull/2003))
+- Added Response header access instructions ([#1901](https://github.com/axios/axios/pull/1901))
+  - Added Response header access instructions
+  - Added note about using bracket notation
+- Add `onUploadProgress` and `onDownloadProgress` are browser only ([#2763](https://github.com/axios/axios/pull/2763))
+  Saw in #928 and #1966 that `onUploadProgress` and `onDownloadProgress` only work in the browser and was missing that from the README.
+- Update ' sign to ` in proxy spec ([#2778](https://github.com/axios/axios/pull/2778))
+- Adding jsDelivr link in README ([#1110](https://github.com/axios/axios/pull/1110))
+  - Adding jsDelivr link
+  - Add SRI
+  - Remove SRI
+
+Huge thanks to everyone who contributed to this release via code (authors listed
+below) or via reviews and triaging on GitHub:
+
+- Alan Wang <wp_scut@163.com>
+- Alexandru Ungureanu <khakcarot@gmail.com>
+- Anubhav Srivastava <anubhav.srivastava00@gmail.com>
+- Benny Neugebauer <bn@bennyn.de>
+- Cr <631807682@qq.com>
+- David <cygnidavid@gmail.com>
+- David Ko <david.ko@pvtmethod.com>
+- David Tanner <david.tanner@lifeomic.com>
+- Emily Morehouse <emilyemorehouse@gmail.com>
+- Felipe Martins <felipewmartins@gmail.com>
+- Fonger <5862369+Fonger@users.noreply.github.com>
+- Frostack <soulburn007@gmail.com>
+- George Cheng <Gerhut@GMail.com>
+- grumblerchester <grumblerchester@users.noreply.github.com>
+- Gustavo López <gualopezb@gmail.com>
+- hexaez <45806662+hexaez@users.noreply.github.com>
+- huangzuizui <huangzuizui@gmail.com>
+- Ian Wijma <ian@wij.ma>
+- Jay <jasonsaayman@gmail.com>
+- jeffjing <zgayjjf@qq.com>
+- jennynju <46782518+jennynju@users.noreply.github.com>
+- Jimmy Liao <52391190+jimmy-liao-gogoro@users.noreply.github.com>
+- Jonathan Sharpe <j.r.sharpe@gmail.com>
+- JounQin <admin@1stg.me>
+- Justin Beckwith <justin.beckwith@gmail.com>
+- Kamil Posiadała <3dcreator.pl@gmail.com>
+- Lukas Drgon <lukas.drgon@gmail.com>
+- marcinx <mail@marcinx.com>
+- Martti Laine <martti@codeclown.net>
+- Michał Zarach <michal.m.zarach@gmail.com>
+- Moni <usmoni@gmail.com>
+- Motonori Iwata <121048+iwata@users.noreply.github.com>
+- Nikita Galkin <nikita@galk.in>
+- Petr Mares <petr@mares.tw>
+- Philippe Recto <precto1285@gmal.com>
+- Remco Haszing <remcohaszing@gmail.com>
+- rockcs1992 <chengshi1219@gmail.com>
+- Ryan Bown <rbown@niftee.com.au>
+- Samina Fu <sufuf3@gmail.com>
+- Simone Busoli <simone.busoli@gmail.com>
+- Spencer von der Ohe <s.vonderohe40@gmail.com>
+- Sven Efftinge <sven.efftinge@typefox.io>
+- Taegyeoung Oh <otk1090@naver.com>
+- Taemin Shin <cprayer13@gmail.com>
+- Thibault Ehrhart <1208424+ehrhart@users.noreply.github.com>
+- Xianming Zhong <chinesedfan@qq.com>
+- Yasu Flores <carlosyasu91@gmail.com>
+- Zac Delventhal <delventhalz@gmail.com>
+
+### 0.19.2 (Jan 20, 2020)
+
+- Remove unnecessary XSS check ([#2679](https://github.com/axios/axios/pull/2679)) (see ([#2646](https://github.com/axios/axios/issues/2646)) for discussion)
+
+### 0.19.1 (Jan 7, 2020)
+
+Fixes and Functionality:
+
+- Fixing invalid agent issue ([#1904](https://github.com/axios/axios/pull/1904))
+- Fix ignore set withCredentials false ([#2582](https://github.com/axios/axios/pull/2582))
+- Delete useless default to hash ([#2458](https://github.com/axios/axios/pull/2458))
+- Fix HTTP/HTTPs agents passing to follow-redirect ([#1904](https://github.com/axios/axios/pull/1904))
+- Fix ignore set withCredentials false ([#2582](https://github.com/axios/axios/pull/2582))
+- Fix CI build failure ([#2570](https://github.com/axios/axios/pull/2570))
+- Remove dependency on is-buffer from package.json ([#1816](https://github.com/axios/axios/pull/1816))
+- Adding options typings ([#2341](https://github.com/axios/axios/pull/2341))
+- Adding Typescript HTTP method definition for LINK and UNLINK. ([#2444](https://github.com/axios/axios/pull/2444))
+- Update dist with newest changes, fixes Custom Attributes issue
+- Change syntax to see if build passes ([#2488](https://github.com/axios/axios/pull/2488))
+- Update Webpack + deps, remove now unnecessary polyfills ([#2410](https://github.com/axios/axios/pull/2410))
+- Fix to prevent XSS, throw an error when the URL contains a JS script ([#2464](https://github.com/axios/axios/pull/2464))
+- Add custom timeout error copy in config ([#2275](https://github.com/axios/axios/pull/2275))
+- Add error toJSON example ([#2466](https://github.com/axios/axios/pull/2466))
+- Fixing Vulnerability A Fortify Scan finds a critical Cross-Site Scrip… ([#2451](https://github.com/axios/axios/pull/2451))
+- Fixing subdomain handling on no_proxy ([#2442](https://github.com/axios/axios/pull/2442))
+- Make redirection from HTTP to HTTPS work ([#2426](https://github.com/axios/axios/pull/2426)) and ([#2547](https://github.com/axios/axios/pull/2547))
+- Add toJSON property to AxiosError type ([#2427](https://github.com/axios/axios/pull/2427))
+- Fixing socket hang up error on node side for slow response. ([#1752](https://github.com/axios/axios/pull/1752))
+- Alternative syntax to send data into the body ([#2317](https://github.com/axios/axios/pull/2317))
+- Fixing custom config options ([#2207](https://github.com/axios/axios/pull/2207))
+- Fixing set `config.method` after mergeConfig for Axios.prototype.request ([#2383](https://github.com/axios/axios/pull/2383))
+- Axios create url bug ([#2290](https://github.com/axios/axios/pull/2290))
+- Do not modify config.url when using a relative baseURL (resolves [#1628](https://github.com/axios/axios/issues/1098)) ([#2391](https://github.com/axios/axios/pull/2391))
+
+Internal:
+
+- Revert "Update Webpack + deps, remove now unnecessary polyfills" ([#2479](https://github.com/axios/axios/pull/2479))
+- Order of if/else blocks is causing unit tests mocking XHR. ([#2201](https://github.com/axios/axios/pull/2201))
+- Add license badge ([#2446](https://github.com/axios/axios/pull/2446))
+- Fix travis CI build [#2386](https://github.com/axios/axios/pull/2386)
+- Fix cancellation error on build master. #2290 #2207 ([#2407](https://github.com/axios/axios/pull/2407))
+
+Documentation:
+
+- Fixing typo in CHANGELOG.md: s/Functionallity/Functionality ([#2639](https://github.com/axios/axios/pull/2639))
+- Fix badge, use master branch ([#2538](https://github.com/axios/axios/pull/2538))
+- Fix typo in changelog [#2193](https://github.com/axios/axios/pull/2193)
+- Document fix ([#2514](https://github.com/axios/axios/pull/2514))
+- Update docs with no_proxy change, issue #2484 ([#2513](https://github.com/axios/axios/pull/2513))
+- Fixing missing words in docs template ([#2259](https://github.com/axios/axios/pull/2259))
+- 🐛Fix request finally documentation in README ([#2189](https://github.com/axios/axios/pull/2189))
+- updating spelling and adding link to docs ([#2212](https://github.com/axios/axios/pull/2212))
+- docs: minor tweak ([#2404](https://github.com/axios/axios/pull/2404))
+- Update response interceptor docs ([#2399](https://github.com/axios/axios/pull/2399))
+- Update README.md ([#2504](https://github.com/axios/axios/pull/2504))
+- Fix word 'sintaxe' to 'syntax' in README.md ([#2432](https://github.com/axios/axios/pull/2432))
+- updating README: notes on CommonJS autocomplete ([#2256](https://github.com/axios/axios/pull/2256))
+- Fix grammar in README.md ([#2271](https://github.com/axios/axios/pull/2271))
+- Doc fixes, minor examples cleanup ([#2198](https://github.com/axios/axios/pull/2198))
+
+### 0.19.0 (May 30, 2019)
+
+Fixes and Functionality:
+
+- Added support for no_proxy env variable ([#1693](https://github.com/axios/axios/pull/1693/files)) - Chance Dickson
+- Unzip response body only for statuses != 204 ([#1129](https://github.com/axios/axios/pull/1129)) - drawski
+- Destroy stream on exceeding maxContentLength (fixes [#1098](https://github.com/axios/axios/issues/1098)) ([#1485](https://github.com/axios/axios/pull/1485)) - Gadzhi Gadzhiev
+- Makes Axios error generic to use AxiosResponse ([#1738](https://github.com/axios/axios/pull/1738)) - Suman Lama
+- Fixing Mocha tests by locking follow-redirects version to 1.5.10 ([#1993](https://github.com/axios/axios/pull/1993)) - grumblerchester
+- Allow uppercase methods in typings. ([#1781](https://github.com/axios/axios/pull/1781)) - Ken Powers
+- Fixing building url with hash mark ([#1771](https://github.com/axios/axios/pull/1771)) - Anatoly Ryabov
+- This commit fix building url with hash map (fragment identifier) when parameters are present: they must not be added after `#`, because client cut everything after `#`
+- Preserve HTTP method when following redirect ([#1758](https://github.com/axios/axios/pull/1758)) - Rikki Gibson
+- Add `getUri` signature to TypeScript definition. ([#1736](https://github.com/axios/axios/pull/1736)) - Alexander Trauzzi
+- Adding isAxiosError flag to errors thrown by axios ([#1419](https://github.com/axios/axios/pull/1419)) - Ayush Gupta
+
+Internal:
+
+- Fixing .eslintrc without extension ([#1789](https://github.com/axios/axios/pull/1789)) - Manoel
+- Fix failing SauceLabs tests by updating configuration - Emily Morehouse
+- Add issue templates - Emily Morehouse
+
+Documentation:
+
+- Consistent coding style in README ([#1787](https://github.com/axios/axios/pull/1787)) - Ali Servet Donmez
+- Add information about auth parameter to README ([#2166](https://github.com/axios/axios/pull/2166)) - xlaguna
+- Add DELETE to list of methods that allow data as a config option ([#2169](https://github.com/axios/axios/pull/2169)) - Daniela Borges Matos de Carvalho
+- Update ECOSYSTEM.md - Add Axios Endpoints ([#2176](https://github.com/axios/axios/pull/2176)) - Renan
+- Add r2curl in ECOSYSTEM ([#2141](https://github.com/axios/axios/pull/2141)) - 유용우 / CX
+- Update README.md - Add instructions for installing with yarn ([#2036](https://github.com/axios/axios/pull/2036)) - Victor Hermes
+- Fixing spacing for README.md ([#2066](https://github.com/axios/axios/pull/2066)) - Josh McCarty
+- Update README.md. - Change `.then` to `.finally` in example code ([#2090](https://github.com/axios/axios/pull/2090)) - Omar Cai
+- Clarify what values responseType can have in Node ([#2121](https://github.com/axios/axios/pull/2121)) - Tyler Breisacher
+- docs(ECOSYSTEM): add axios-api-versioning ([#2020](https://github.com/axios/axios/pull/2020)) - Weffe
+- It seems that `responseType: 'blob'` doesn't actually work in Node (when I tried using it, response.data was a string, not a Blob, since Node doesn't have Blobs), so this clarifies that this option should only be used in the browser
+- Update README.md. - Add Querystring library note ([#1896](https://github.com/axios/axios/pull/1896)) - Dmitriy Eroshenko
+- Add react-hooks-axios to Libraries section of ECOSYSTEM.md ([#1925](https://github.com/axios/axios/pull/1925)) - Cody Chan
+- Clarify in README that default timeout is 0 (no timeout) ([#1750](https://github.com/axios/axios/pull/1750)) - Ben Standefer
+
+### 0.19.0-beta.1 (Aug 9, 2018)
+
+**NOTE:** This is a beta version of this release. There may be functionality that is broken in
+certain browsers, though we suspect that builds are hanging and not erroring. See
+https://saucelabs.com/u/axios for the most up-to-date information.
+
+New Functionality:
+
+- Add getUri method ([#1712](https://github.com/axios/axios/issues/1712))
+- Add support for no_proxy env variable ([#1693](https://github.com/axios/axios/issues/1693))
+- Add toJSON to decorated Axios errors to facilitate serialization ([#1625](https://github.com/axios/axios/issues/1625))
+- Add second then on axios call ([#1623](https://github.com/axios/axios/issues/1623))
+- Typings: allow custom return types
+- Add option to specify character set in responses (with http adapter)
+
+Fixes:
+
+- Fix Keep defaults local to instance ([#385](https://github.com/axios/axios/issues/385))
+- Correctly catch exception in http test ([#1475](https://github.com/axios/axios/issues/1475))
+- Fix accept header normalization ([#1698](https://github.com/axios/axios/issues/1698))
+- Fix http adapter to allow HTTPS connections via HTTP ([#959](https://github.com/axios/axios/issues/959))
+- Fix Removes usage of deprecated Buffer constructor. ([#1555](https://github.com/axios/axios/issues/1555), [#1622](https://github.com/axios/axios/issues/1622))
+- Fix defaults to use httpAdapter if available ([#1285](https://github.com/axios/axios/issues/1285))
+  - Fixing defaults to use httpAdapter if available
+  - Use a safer, cross-platform method to detect the Node environment
+- Fix Reject promise if request is cancelled by the browser ([#537](https://github.com/axios/axios/issues/537))
+- [Typescript] Fix missing type parameters on delete/head methods
+- [NS]: Send `false` flag isStandardBrowserEnv for Nativescript
+- Fix missing type parameters on delete/head
+- Fix Default method for an instance always overwritten by get
+- Fix type error when socketPath option in AxiosRequestConfig
+- Capture errors on request data streams
+- Decorate resolve and reject to clear timeout in all cases
+
+Huge thanks to everyone who contributed to this release via code (authors listed
+below) or via reviews and triaging on GitHub:
+
+- Andrew Scott <ascott18@gmail.com>
+- Anthony Gauthier <antho325@hotmail.com>
+- arpit <arpit2438735@gmail.com>
+- ascott18
+- Benedikt Rötsch <axe312ger@users.noreply.github.com>
+- Chance Dickson <me@chancedickson.com>
+- Dave Stewart <info@davestewart.co.uk>
+- Deric Cain <deric.cain@gmail.com>
+- Guillaume Briday <guillaumebriday@gmail.com>
+- Jacob Wejendorp <jacob@wejendorp.dk>
+- Jim Lynch <mrdotjim@gmail.com>
+- johntron
+- Justin Beckwith <beckwith@google.com>
+- Justin Beckwith <justin.beckwith@gmail.com>
+- Khaled Garbaya <khaledgarbaya@gmail.com>
+- Lim Jing Rong <jjingrong@users.noreply.github.com>
+- Mark van den Broek <mvdnbrk@gmail.com>
+- Martti Laine <martti@codeclown.net>
+- mattridley
+- mattridley <matt.r@joinblink.com>
+- Nicolas Del Valle <nicolas.delvalle@gmail.com>
+- Nilegfx
+- pbarbiero
+- Rikki Gibson <rikkigibson@gmail.com>
+- Sako Hartounian <sakohartounian@yahoo.com>
+- Shane Fitzpatrick <fitzpasd@gmail.com>
+- Stephan Schneider <stephanschndr@gmail.com>
+- Steven <steven@ceriously.com>
+- Tim Garthwaite <tim.garthwaite@jibo.com>
+- Tim Johns <timjohns@yahoo.com>
+- Yutaro Miyazaki <yutaro@studio-rubbish.com>
+
+### 0.18.0 (Feb 19, 2018)
+
+- Adding support for UNIX Sockets when running with Node.js ([#1070](https://github.com/axios/axios/pull/1070))
+- Fixing typings ([#1177](https://github.com/axios/axios/pull/1177)):
+  - AxiosRequestConfig.proxy: allows type false
+  - AxiosProxyConfig: added auth field
+- Adding function signature in AxiosInstance interface so AxiosInstance can be invoked ([#1192](https://github.com/axios/axios/pull/1192), [#1254](https://github.com/axios/axios/pull/1254))
+- Allowing maxContentLength to pass through to redirected calls as maxBodyLength in follow-redirects config ([#1287](https://github.com/axios/axios/pull/1287))
+- Fixing configuration when using an instance - method can now be set ([#1342](https://github.com/axios/axios/pull/1342))
+
+### 0.17.1 (Nov 11, 2017)
+
+- Fixing issue with web workers ([#1160](https://github.com/axios/axios/pull/1160))
+- Allowing overriding transport ([#1080](https://github.com/axios/axios/pull/1080))
+- Updating TypeScript typings ([#1165](https://github.com/axios/axios/pull/1165), [#1125](https://github.com/axios/axios/pull/1125), [#1131](https://github.com/axios/axios/pull/1131))
+
+### 0.17.0 (Oct 21, 2017)
+
+- **BREAKING** Fixing issue with `baseURL` and interceptors ([#950](https://github.com/axios/axios/pull/950))
+- **BREAKING** Improving handing of duplicate headers ([#874](https://github.com/axios/axios/pull/874))
+- Adding support for disabling proxies ([#691](https://github.com/axios/axios/pull/691))
+- Updating TypeScript typings with generic type parameters ([#1061](https://github.com/axios/axios/pull/1061))
+
+### 0.16.2 (Jun 3, 2017)
+
+- Fixing issue with including `buffer` in bundle ([#887](https://github.com/axios/axios/pull/887))
+- Including underlying request in errors ([#830](https://github.com/axios/axios/pull/830))
+- Convert `method` to lowercase ([#930](https://github.com/axios/axios/pull/930))
+
+### 0.16.1 (Apr 8, 2017)
+
+- Improving HTTP adapter to return last request in case of redirects ([#828](https://github.com/axios/axios/pull/828))
+- Updating `follow-redirects` dependency ([#829](https://github.com/axios/axios/pull/829))
+- Adding support for passing `Buffer` in node ([#773](https://github.com/axios/axios/pull/773))
+
+### 0.16.0 (Mar 31, 2017)
+
+- **BREAKING** Removing `Promise` from axios typings in favor of built-in type declarations ([#480](https://github.com/axios/axios/issues/480))
+- Adding `options` shortcut method ([#461](https://github.com/axios/axios/pull/461))
+- Fixing issue with using `responseType: 'json'` in browsers incompatible with XHR Level 2 ([#654](https://github.com/axios/axios/pull/654))
+- Improving React Native detection ([#731](https://github.com/axios/axios/pull/731))
+- Fixing `combineURLs` to support empty `relativeURL` ([#581](https://github.com/axios/axios/pull/581))
+- Removing `PROTECTION_PREFIX` support ([#561](https://github.com/axios/axios/pull/561))
+
+### 0.15.3 (Nov 27, 2016)
+
+- Fixing issue with custom instances and global defaults ([#443](https://github.com/axios/axios/issues/443))
+- Renaming `axios.d.ts` to `index.d.ts` ([#519](https://github.com/axios/axios/issues/519))
+- Adding `get`, `head`, and `delete` to `defaults.headers` ([#509](https://github.com/axios/axios/issues/509))
+- Fixing issue with `btoa` and IE ([#507](https://github.com/axios/axios/issues/507))
+- Adding support for proxy authentication ([#483](https://github.com/axios/axios/pull/483))
+- Improving HTTP adapter to use `http` protocol by default ([#493](https://github.com/axios/axios/pull/493))
+- Fixing proxy issues ([#491](https://github.com/axios/axios/pull/491))
+
+### 0.15.2 (Oct 17, 2016)
+
+- Fixing issue with calling `cancel` after response has been received ([#482](https://github.com/axios/axios/issues/482))
+
+### 0.15.1 (Oct 14, 2016)
+
+- Fixing issue with UMD ([#485](https://github.com/axios/axios/issues/485))
+
+### 0.15.0 (Oct 10, 2016)
+
+- Adding cancellation support ([#452](https://github.com/axios/axios/pull/452))
+- Moving default adapter to global defaults ([#437](https://github.com/axios/axios/pull/437))
+- Fixing issue with `file` URI scheme ([#440](https://github.com/axios/axios/pull/440))
+- Fixing issue with `params` objects that have no prototype ([#445](https://github.com/axios/axios/pull/445))
+
+### 0.14.0 (Aug 27, 2016)
+
+- **BREAKING** Updating TypeScript definitions ([#419](https://github.com/axios/axios/pull/419))
+- **BREAKING** Replacing `agent` option with `httpAgent` and `httpsAgent` ([#387](https://github.com/axios/axios/pull/387))
+- **BREAKING** Splitting `progress` event handlers into `onUploadProgress` and `onDownloadProgress` ([#423](https://github.com/axios/axios/pull/423))
+- Adding support for `http_proxy` and `https_proxy` environment variables ([#366](https://github.com/axios/axios/pull/366))
+- Fixing issue with `auth` config option and `Authorization` header ([#397](https://github.com/axios/axios/pull/397))
+- Don't set XSRF header if `xsrfCookieName` is `null` ([#406](https://github.com/axios/axios/pull/406))
+
+### 0.13.1 (Jul 16, 2016)
+
+- Fixing issue with response data not being transformed on error ([#378](https://github.com/axios/axios/issues/378))
+
+### 0.13.0 (Jul 13, 2016)
+
+- **BREAKING** Improved error handling ([#345](https://github.com/axios/axios/pull/345))
+- **BREAKING** Response transformer now invoked in dispatcher not adapter ([10eb238](https://github.com/axios/axios/commit/10eb23865101f9347570552c04e9d6211376e25e))
+- **BREAKING** Request adapters now return a `Promise` ([157efd5](https://github.com/axios/axios/commit/157efd5615890301824e3121cc6c9d2f9b21f94a))
+- Fixing issue with `withCredentials` not being overwritten ([#343](https://github.com/axios/axios/issues/343))
+- Fixing regression with request transformer being called before request interceptor ([#352](https://github.com/axios/axios/issues/352))
+- Fixing custom instance defaults ([#341](https://github.com/axios/axios/issues/341))
+- Fixing instances created from `axios.create` to have same API as default axios ([#217](https://github.com/axios/axios/issues/217))
+
+### 0.12.0 (May 31, 2016)
+
+- Adding support for `URLSearchParams` ([#317](https://github.com/axios/axios/pull/317))
+- Adding `maxRedirects` option ([#307](https://github.com/axios/axios/pull/307))
+
+### 0.11.1 (May 17, 2016)
+
+- Fixing IE CORS support ([#313](https://github.com/axios/axios/pull/313))
+- Fixing detection of `FormData` ([#325](https://github.com/axios/axios/pull/325))
+- Adding `Axios` class to exports ([#321](https://github.com/axios/axios/pull/321))
+
+### 0.11.0 (Apr 26, 2016)
+
+- Adding support for Stream with HTTP adapter ([#296](https://github.com/axios/axios/pull/296))
+- Adding support for custom HTTP status code error ranges ([#308](https://github.com/axios/axios/pull/308))
+- Fixing issue with ArrayBuffer ([#299](https://github.com/axios/axios/pull/299))
+
+### 0.10.0 (Apr 20, 2016)
+
+- Fixing issue with some requests sending `undefined` instead of `null` ([#250](https://github.com/axios/axios/pull/250))
+- Fixing basic auth for HTTP adapter ([#252](https://github.com/axios/axios/pull/252))
+- Fixing request timeout for XHR adapter ([#227](https://github.com/axios/axios/pull/227))
+- Fixing IE8 support by using `onreadystatechange` instead of `onload` ([#249](https://github.com/axios/axios/pull/249))
+- Fixing IE9 cross domain requests ([#251](https://github.com/axios/axios/pull/251))
+- Adding `maxContentLength` option ([#275](https://github.com/axios/axios/pull/275))
+- Fixing XHR support for WebWorker environment ([#279](https://github.com/axios/axios/pull/279))
+- Adding request instance to response ([#200](https://github.com/axios/axios/pull/200))
+
+### 0.9.1 (Jan 24, 2016)
+
+- Improving handling of request timeout in node ([#124](https://github.com/axios/axios/issues/124))
+- Fixing network errors not rejecting ([#205](https://github.com/axios/axios/pull/205))
+- Fixing issue with IE rejecting on HTTP 204 ([#201](https://github.com/axios/axios/issues/201))
+- Fixing host/port when following redirects ([#198](https://github.com/axios/axios/pull/198))
+
+### 0.9.0 (Jan 18, 2016)
+
+- Adding support for custom adapters
+- Fixing Content-Type header being removed when data is false ([#195](https://github.com/axios/axios/pull/195))
+- Improving XDomainRequest implementation ([#185](https://github.com/axios/axios/pull/185))
+- Improving config merging and order of precedence ([#183](https://github.com/axios/axios/pull/183))
+- Fixing XDomainRequest support for only <= IE9 ([#182](https://github.com/axios/axios/pull/182))
+
+### 0.8.1 (Dec 14, 2015)
+
+- Adding support for passing XSRF token for cross domain requests when using `withCredentials` ([#168](https://github.com/axios/axios/pull/168))
+- Fixing error with format of basic auth header ([#178](https://github.com/axios/axios/pull/173))
+- Fixing error with JSON payloads throwing `InvalidStateError` in some cases ([#174](https://github.com/axios/axios/pull/174))
+
+### 0.8.0 (Dec 11, 2015)
+
+- Adding support for creating instances of axios ([#123](https://github.com/axios/axios/pull/123))
+- Fixing http adapter to use `Buffer` instead of `String` in case of `responseType === 'arraybuffer'` ([#128](https://github.com/axios/axios/pull/128))
+- Adding support for using custom parameter serializer with `paramsSerializer` option ([#121](https://github.com/axios/axios/pull/121))
+- Fixing issue in IE8 caused by `forEach` on `arguments` ([#127](https://github.com/axios/axios/pull/127))
+- Adding support for following redirects in node ([#146](https://github.com/axios/axios/pull/146))
+- Adding support for transparent decompression if `content-encoding` is set ([#149](https://github.com/axios/axios/pull/149))
+- Adding support for transparent XDomainRequest to handle cross domain requests in IE9 ([#140](https://github.com/axios/axios/pull/140))
+- Adding support for HTTP basic auth via Authorization header ([#167](https://github.com/axios/axios/pull/167))
+- Adding support for baseURL option ([#160](https://github.com/axios/axios/pull/160))
+
+### 0.7.0 (Sep 29, 2015)
+
+- Fixing issue with minified bundle in IE8 ([#87](https://github.com/axios/axios/pull/87))
+- Adding support for passing agent in node ([#102](https://github.com/axios/axios/pull/102))
+- Adding support for returning result from `axios.spread` for chaining ([#106](https://github.com/axios/axios/pull/106))
+- Fixing typescript definition ([#105](https://github.com/axios/axios/pull/105))
+- Fixing default timeout config for node ([#112](https://github.com/axios/axios/pull/112))
+- Adding support for use in web workers, and react-native ([#70](https://github.com/axios/axios/issue/70)), ([#98](https://github.com/axios/axios/pull/98))
+- Adding support for fetch like API `axios(url[, config])` ([#116](https://github.com/axios/axios/issues/116))
+
+### 0.6.0 (Sep 21, 2015)
+
+- Removing deprecated success/error aliases
+- Fixing issue with array params not being properly encoded ([#49](https://github.com/axios/axios/pull/49))
+- Fixing issue with User-Agent getting overridden ([#69](https://github.com/axios/axios/issues/69))
+- Adding support for timeout config ([#56](https://github.com/axios/axios/issues/56))
+- Removing es6-promise dependency
+- Fixing issue preventing `length` to be used as a parameter ([#91](https://github.com/axios/axios/pull/91))
+- Fixing issue with IE8 ([#85](https://github.com/axios/axios/pull/85))
+- Converting build to UMD
+
+### 0.5.4 (Apr 08, 2015)
+
+- Fixing issue with FormData not being sent ([#53](https://github.com/axios/axios/issues/53))
+
+### 0.5.3 (Apr 07, 2015)
+
+- Using JSON.parse unconditionally when transforming response string ([#55](https://github.com/axios/axios/issues/55))
+
+### 0.5.2 (Mar 13, 2015)
+
+- Adding support for `statusText` in response ([#46](https://github.com/axios/axios/issues/46))
+
+### 0.5.1 (Mar 10, 2015)
+
+- Fixing issue using strict mode ([#45](https://github.com/axios/axios/issues/45))
+- Fixing issue with standalone build ([#47](https://github.com/axios/axios/issues/47))
+
+### 0.5.0 (Jan 23, 2015)
+
+- Adding support for intercepetors ([#14](https://github.com/axios/axios/issues/14))
+- Updating es6-promise dependency
+
+### 0.4.2 (Dec 10, 2014)
+
+- Fixing issue with `Content-Type` when using `FormData` ([#22](https://github.com/axios/axios/issues/22))
+- Adding support for TypeScript ([#25](https://github.com/axios/axios/issues/25))
+- Fixing issue with standalone build ([#29](https://github.com/axios/axios/issues/29))
+- Fixing issue with verbs needing to be capitalized in some browsers ([#30](https://github.com/axios/axios/issues/30))
+
+### 0.4.1 (Oct 15, 2014)
+
+- Adding error handling to request for node.js ([#18](https://github.com/axios/axios/issues/18))
+
+### 0.4.0 (Oct 03, 2014)
+
+- Adding support for `ArrayBuffer` and `ArrayBufferView` ([#10](https://github.com/axios/axios/issues/10))
+- Adding support for utf-8 for node.js ([#13](https://github.com/axios/axios/issues/13))
+- Adding support for SSL for node.js ([#12](https://github.com/axios/axios/issues/12))
+- Fixing incorrect `Content-Type` header ([#9](https://github.com/axios/axios/issues/9))
+- Adding standalone build without bundled es6-promise ([#11](https://github.com/axios/axios/issues/11))
+- Deprecating `success`/`error` in favor of `then`/`catch`
+
+### 0.3.1 (Sep 16, 2014)
+
+- Fixing missing post body when using node.js ([#3](https://github.com/axios/axios/issues/3))
+
+### 0.3.0 (Sep 16, 2014)
+
+- Fixing `success` and `error` to properly receive response data as individual arguments ([#8](https://github.com/axios/axios/issues/8))
+- Updating `then` and `catch` to receive response data as a single object ([#6](https://github.com/axios/axios/issues/6))
+- Fixing issue with `all` not working ([#7](https://github.com/axios/axios/issues/7))
+
+### 0.2.2 (Sep 14, 2014)
+
+- Fixing bundling with browserify ([#4](https://github.com/axios/axios/issues/4))
+
+### 0.2.1 (Sep 12, 2014)
+
+- Fixing build problem causing ridiculous file sizes
+
+### 0.2.0 (Sep 12, 2014)
+
+- Adding support for `all` and `spread`
+- Adding support for node.js ([#1](https://github.com/axios/axios/issues/1))
+
+### 0.1.0 (Aug 29, 2014)
+
+- Initial release

+ 19 - 0
node_modules/axios/LICENSE

@@ -0,0 +1,19 @@
+Copyright (c) 2014-present Matt Zabriskie
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.

+ 909 - 0
node_modules/axios/README.md

@@ -0,0 +1,909 @@
+# axios
+
+[![npm version](https://img.shields.io/npm/v/axios.svg?style=flat-square)](https://www.npmjs.org/package/axios)
+[![CDNJS](https://img.shields.io/cdnjs/v/axios.svg?style=flat-square)](https://cdnjs.com/libraries/axios)
+![Build status](https://github.com/axios/axios/actions/workflows/ci.yml/badge.svg)
+[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/axios/axios) 
+[![code coverage](https://img.shields.io/coveralls/mzabriskie/axios.svg?style=flat-square)](https://coveralls.io/r/mzabriskie/axios)
+[![install size](https://packagephobia.now.sh/badge?p=axios)](https://packagephobia.now.sh/result?p=axios)
+[![npm downloads](https://img.shields.io/npm/dm/axios.svg?style=flat-square)](http://npm-stat.com/charts.html?package=axios)
+[![gitter chat](https://img.shields.io/gitter/room/mzabriskie/axios.svg?style=flat-square)](https://gitter.im/mzabriskie/axios)
+[![code helpers](https://www.codetriage.com/axios/axios/badges/users.svg)](https://www.codetriage.com/axios/axios)
+[![Known Vulnerabilities](https://snyk.io/test/npm/axios/badge.svg)](https://snyk.io/test/npm/axios)
+
+Promise based HTTP client for the browser and node.js
+
+> New axios docs website: [click here](https://axios-http.com/)
+
+## Table of Contents
+
+  - [Features](#features)
+  - [Browser Support](#browser-support)
+  - [Installing](#installing)
+  - [Example](#example)
+  - [Axios API](#axios-api)
+  - [Request method aliases](#request-method-aliases)
+  - [Concurrency (Deprecated)](#concurrency-deprecated)
+  - [Creating an instance](#creating-an-instance)
+  - [Instance methods](#instance-methods)
+  - [Request Config](#request-config)
+  - [Response Schema](#response-schema)
+  - [Config Defaults](#config-defaults)
+    - [Global axios defaults](#global-axios-defaults)
+    - [Custom instance defaults](#custom-instance-defaults)
+    - [Config order of precedence](#config-order-of-precedence)
+  - [Interceptors](#interceptors)
+    - [Multiple Interceptors](#multiple-interceptors)
+  - [Handling Errors](#handling-errors)
+  - [Cancellation](#cancellation)
+  - [Using application/x-www-form-urlencoded format](#using-applicationx-www-form-urlencoded-format)
+    - [Browser](#browser)
+    - [Node.js](#nodejs)
+      - [Query string](#query-string)
+      - [Form data](#form-data)
+  - [Semver](#semver)
+  - [Promises](#promises)
+  - [TypeScript](#typescript)
+  - [Resources](#resources)
+  - [Credits](#credits)
+  - [License](#license)
+
+## Features
+
+- Make [XMLHttpRequests](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) from the browser
+- Make [http](http://nodejs.org/api/http.html) requests from node.js
+- Supports the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) API
+- Intercept request and response
+- Transform request and response data
+- Cancel requests
+- Automatic transforms for JSON data
+- Client side support for protecting against [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery)
+
+## Browser Support
+
+![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |
+--- | --- | --- | --- | --- | --- |
+Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
+
+[![Browser Matrix](https://saucelabs.com/open_sauce/build_matrix/axios.svg)](https://saucelabs.com/u/axios)
+
+## Installing
+
+Using npm:
+
+```bash
+$ npm install axios
+```
+
+Using bower:
+
+```bash
+$ bower install axios
+```
+
+Using yarn:
+
+```bash
+$ yarn add axios
+```
+
+Using jsDelivr CDN:
+
+```html
+<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
+```
+
+Using unpkg CDN:
+
+```html
+<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
+```
+
+## Example
+
+### note: CommonJS usage
+In order to gain the TypeScript typings (for intellisense / autocomplete) while using CommonJS imports with `require()` use the following approach:
+
+```js
+const axios = require('axios').default;
+
+// axios.<method> will now provide autocomplete and parameter typings
+```
+
+Performing a `GET` request
+
+```js
+const axios = require('axios');
+
+// Make a request for a user with a given ID
+axios.get('/user?ID=12345')
+  .then(function (response) {
+    // handle success
+    console.log(response);
+  })
+  .catch(function (error) {
+    // handle error
+    console.log(error);
+  })
+  .then(function () {
+    // always executed
+  });
+
+// Optionally the request above could also be done as
+axios.get('/user', {
+    params: {
+      ID: 12345
+    }
+  })
+  .then(function (response) {
+    console.log(response);
+  })
+  .catch(function (error) {
+    console.log(error);
+  })
+  .then(function () {
+    // always executed
+  });  
+
+// Want to use async/await? Add the `async` keyword to your outer function/method.
+async function getUser() {
+  try {
+    const response = await axios.get('/user?ID=12345');
+    console.log(response);
+  } catch (error) {
+    console.error(error);
+  }
+}
+```
+
+> **NOTE:** `async/await` is part of ECMAScript 2017 and is not supported in Internet
+> Explorer and older browsers, so use with caution.
+
+Performing a `POST` request
+
+```js
+axios.post('/user', {
+    firstName: 'Fred',
+    lastName: 'Flintstone'
+  })
+  .then(function (response) {
+    console.log(response);
+  })
+  .catch(function (error) {
+    console.log(error);
+  });
+```
+
+Performing multiple concurrent requests
+
+```js
+function getUserAccount() {
+  return axios.get('/user/12345');
+}
+
+function getUserPermissions() {
+  return axios.get('/user/12345/permissions');
+}
+
+Promise.all([getUserAccount(), getUserPermissions()])
+  .then(function (results) {
+    const acct = results[0];
+    const perm = results[1];
+  });
+```
+
+## axios API
+
+Requests can be made by passing the relevant config to `axios`.
+
+##### axios(config)
+
+```js
+// Send a POST request
+axios({
+  method: 'post',
+  url: '/user/12345',
+  data: {
+    firstName: 'Fred',
+    lastName: 'Flintstone'
+  }
+});
+```
+
+```js
+// GET request for remote image in node.js
+axios({
+  method: 'get',
+  url: 'http://bit.ly/2mTM3nY',
+  responseType: 'stream'
+})
+  .then(function (response) {
+    response.data.pipe(fs.createWriteStream('ada_lovelace.jpg'))
+  });
+```
+
+##### axios(url[, config])
+
+```js
+// Send a GET request (default method)
+axios('/user/12345');
+```
+
+### Request method aliases
+
+For convenience aliases have been provided for all supported request methods.
+
+##### axios.request(config)
+##### axios.get(url[, config])
+##### axios.delete(url[, config])
+##### axios.head(url[, config])
+##### axios.options(url[, config])
+##### axios.post(url[, data[, config]])
+##### axios.put(url[, data[, config]])
+##### axios.patch(url[, data[, config]])
+
+###### NOTE
+When using the alias methods `url`, `method`, and `data` properties don't need to be specified in config.
+
+### Concurrency (Deprecated)
+Please use `Promise.all` to replace the below functions.
+
+Helper functions for dealing with concurrent requests.
+
+axios.all(iterable)
+axios.spread(callback)
+
+### Creating an instance
+
+You can create a new instance of axios with a custom config.
+
+##### axios.create([config])
+
+```js
+const instance = axios.create({
+  baseURL: 'https://some-domain.com/api/',
+  timeout: 1000,
+  headers: {'X-Custom-Header': 'foobar'}
+});
+```
+
+### Instance methods
+
+The available instance methods are listed below. The specified config will be merged with the instance config.
+
+##### axios#request(config)
+##### axios#get(url[, config])
+##### axios#delete(url[, config])
+##### axios#head(url[, config])
+##### axios#options(url[, config])
+##### axios#post(url[, data[, config]])
+##### axios#put(url[, data[, config]])
+##### axios#patch(url[, data[, config]])
+##### axios#getUri([config])
+
+## Request Config
+
+These are the available config options for making requests. Only the `url` is required. Requests will default to `GET` if `method` is not specified.
+
+```js
+{
+  // `url` is the server URL that will be used for the request
+  url: '/user',
+
+  // `method` is the request method to be used when making the request
+  method: 'get', // default
+
+  // `baseURL` will be prepended to `url` unless `url` is absolute.
+  // It can be convenient to set `baseURL` for an instance of axios to pass relative URLs
+  // to methods of that instance.
+  baseURL: 'https://some-domain.com/api/',
+
+  // `transformRequest` allows changes to the request data before it is sent to the server
+  // This is only applicable for request methods 'PUT', 'POST', 'PATCH' and 'DELETE'
+  // The last function in the array must return a string or an instance of Buffer, ArrayBuffer,
+  // FormData or Stream
+  // You may modify the headers object.
+  transformRequest: [function (data, headers) {
+    // Do whatever you want to transform the data
+
+    return data;
+  }],
+
+  // `transformResponse` allows changes to the response data to be made before
+  // it is passed to then/catch
+  transformResponse: [function (data) {
+    // Do whatever you want to transform the data
+
+    return data;
+  }],
+
+  // `headers` are custom headers to be sent
+  headers: {'X-Requested-With': 'XMLHttpRequest'},
+
+  // `params` are the URL parameters to be sent with the request
+  // Must be a plain object or a URLSearchParams object
+  params: {
+    ID: 12345
+  },
+
+  // `paramsSerializer` is an optional function in charge of serializing `params`
+  // (e.g. https://www.npmjs.com/package/qs, http://api.jquery.com/jquery.param/)
+  paramsSerializer: function (params) {
+    return Qs.stringify(params, {arrayFormat: 'brackets'})
+  },
+
+  // `data` is the data to be sent as the request body
+  // Only applicable for request methods 'PUT', 'POST', 'DELETE , and 'PATCH'
+  // When no `transformRequest` is set, must be of one of the following types:
+  // - string, plain object, ArrayBuffer, ArrayBufferView, URLSearchParams
+  // - Browser only: FormData, File, Blob
+  // - Node only: Stream, Buffer
+  data: {
+    firstName: 'Fred'
+  },
+  
+  // syntax alternative to send data into the body
+  // method post
+  // only the value is sent, not the key
+  data: 'Country=Brasil&City=Belo Horizonte',
+
+  // `timeout` specifies the number of milliseconds before the request times out.
+  // If the request takes longer than `timeout`, the request will be aborted.
+  timeout: 1000, // default is `0` (no timeout)
+
+  // `withCredentials` indicates whether or not cross-site Access-Control requests
+  // should be made using credentials
+  withCredentials: false, // default
+
+  // `adapter` allows custom handling of requests which makes testing easier.
+  // Return a promise and supply a valid response (see lib/adapters/README.md).
+  adapter: function (config) {
+    /* ... */
+  },
+
+  // `auth` indicates that HTTP Basic auth should be used, and supplies credentials.
+  // This will set an `Authorization` header, overwriting any existing
+  // `Authorization` custom headers you have set using `headers`.
+  // Please note that only HTTP Basic auth is configurable through this parameter.
+  // For Bearer tokens and such, use `Authorization` custom headers instead.
+  auth: {
+    username: 'janedoe',
+    password: 's00pers3cret'
+  },
+
+  // `responseType` indicates the type of data that the server will respond with
+  // options are: 'arraybuffer', 'document', 'json', 'text', 'stream'
+  //   browser only: 'blob'
+  responseType: 'json', // default
+
+  // `responseEncoding` indicates encoding to use for decoding responses (Node.js only)
+  // Note: Ignored for `responseType` of 'stream' or client-side requests
+  responseEncoding: 'utf8', // default
+
+  // `xsrfCookieName` is the name of the cookie to use as a value for xsrf token
+  xsrfCookieName: 'XSRF-TOKEN', // default
+
+  // `xsrfHeaderName` is the name of the http header that carries the xsrf token value
+  xsrfHeaderName: 'X-XSRF-TOKEN', // default
+
+  // `onUploadProgress` allows handling of progress events for uploads
+  // browser only
+  onUploadProgress: function (progressEvent) {
+    // Do whatever you want with the native progress event
+  },
+
+  // `onDownloadProgress` allows handling of progress events for downloads
+  // browser only
+  onDownloadProgress: function (progressEvent) {
+    // Do whatever you want with the native progress event
+  },
+
+  // `maxContentLength` defines the max size of the http response content in bytes allowed in node.js
+  maxContentLength: 2000,
+
+  // `maxBodyLength` (Node only option) defines the max size of the http request content in bytes allowed
+  maxBodyLength: 2000,
+
+  // `validateStatus` defines whether to resolve or reject the promise for a given
+  // HTTP response status code. If `validateStatus` returns `true` (or is set to `null`
+  // or `undefined`), the promise will be resolved; otherwise, the promise will be
+  // rejected.
+  validateStatus: function (status) {
+    return status >= 200 && status < 300; // default
+  },
+
+  // `maxRedirects` defines the maximum number of redirects to follow in node.js.
+  // If set to 0, no redirects will be followed.
+  maxRedirects: 5, // default
+
+  // `socketPath` defines a UNIX Socket to be used in node.js.
+  // e.g. '/var/run/docker.sock' to send requests to the docker daemon.
+  // Only either `socketPath` or `proxy` can be specified.
+  // If both are specified, `socketPath` is used.
+  socketPath: null, // default
+
+  // `httpAgent` and `httpsAgent` define a custom agent to be used when performing http
+  // and https requests, respectively, in node.js. This allows options to be added like
+  // `keepAlive` that are not enabled by default.
+  httpAgent: new http.Agent({ keepAlive: true }),
+  httpsAgent: new https.Agent({ keepAlive: true }),
+
+  // `proxy` defines the hostname, port, and protocol of the proxy server.
+  // You can also define your proxy using the conventional `http_proxy` and
+  // `https_proxy` environment variables. If you are using environment variables
+  // for your proxy configuration, you can also define a `no_proxy` environment
+  // variable as a comma-separated list of domains that should not be proxied.
+  // Use `false` to disable proxies, ignoring environment variables.
+  // `auth` indicates that HTTP Basic auth should be used to connect to the proxy, and
+  // supplies credentials.
+  // This will set an `Proxy-Authorization` header, overwriting any existing
+  // `Proxy-Authorization` custom headers you have set using `headers`.
+  // If the proxy server uses HTTPS, then you must set the protocol to `https`. 
+  proxy: {
+    protocol: 'https',
+    host: '127.0.0.1',
+    port: 9000,
+    auth: {
+      username: 'mikeymike',
+      password: 'rapunz3l'
+    }
+  },
+
+  // `cancelToken` specifies a cancel token that can be used to cancel the request
+  // (see Cancellation section below for details)
+  cancelToken: new CancelToken(function (cancel) {
+  }),
+
+  // an alternative way to cancel Axios requests using AbortController
+  signal: new AbortController().signal,
+
+  // `decompress` indicates whether or not the response body should be decompressed 
+  // automatically. If set to `true` will also remove the 'content-encoding' header 
+  // from the responses objects of all decompressed responses
+  // - Node only (XHR cannot turn off decompression)
+  decompress: true // default
+
+  // `insecureHTTPParser` boolean.
+  // Indicates where to use an insecure HTTP parser that accepts invalid HTTP headers.
+  // This may allow interoperability with non-conformant HTTP implementations.
+  // Using the insecure parser should be avoided.
+  // see options https://nodejs.org/dist/latest-v12.x/docs/api/http.html#http_http_request_url_options_callback
+  // see also https://nodejs.org/en/blog/vulnerability/february-2020-security-releases/#strict-http-header-parsing-none
+  insecureHTTPParser: undefined // default
+
+  // transitional options for backward compatibility that may be removed in the newer versions
+  transitional: {
+    // silent JSON parsing mode
+    // `true`  - ignore JSON parsing errors and set response.data to null if parsing failed (old behaviour)
+    // `false` - throw SyntaxError if JSON parsing failed (Note: responseType must be set to 'json')
+    silentJSONParsing: true, // default value for the current Axios version
+
+    // try to parse the response string as JSON even if `responseType` is not 'json'
+    forcedJSONParsing: true,
+    
+    // throw ETIMEDOUT error instead of generic ECONNABORTED on request timeouts
+    clarifyTimeoutError: false,
+  }
+}
+```
+
+## Response Schema
+
+The response for a request contains the following information.
+
+```js
+{
+  // `data` is the response that was provided by the server
+  data: {},
+
+  // `status` is the HTTP status code from the server response
+  status: 200,
+
+  // `statusText` is the HTTP status message from the server response
+  statusText: 'OK',
+
+  // `headers` the HTTP headers that the server responded with
+  // All header names are lower cased and can be accessed using the bracket notation.
+  // Example: `response.headers['content-type']`
+  headers: {},
+
+  // `config` is the config that was provided to `axios` for the request
+  config: {},
+
+  // `request` is the request that generated this response
+  // It is the last ClientRequest instance in node.js (in redirects)
+  // and an XMLHttpRequest instance in the browser
+  request: {}
+}
+```
+
+When using `then`, you will receive the response as follows:
+
+```js
+axios.get('/user/12345')
+  .then(function (response) {
+    console.log(response.data);
+    console.log(response.status);
+    console.log(response.statusText);
+    console.log(response.headers);
+    console.log(response.config);
+  });
+```
+
+When using `catch`, or passing a [rejection callback](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then) as second parameter of `then`, the response will be available through the `error` object as explained in the [Handling Errors](#handling-errors) section.
+
+## Config Defaults
+
+You can specify config defaults that will be applied to every request.
+
+### Global axios defaults
+
+```js
+axios.defaults.baseURL = 'https://api.example.com';
+
+// Important: If axios is used with multiple domains, the AUTH_TOKEN will be sent to all of them.
+// See below for an example using Custom instance defaults instead.
+axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
+
+axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
+```
+
+### Custom instance defaults
+
+```js
+// Set config defaults when creating the instance
+const instance = axios.create({
+  baseURL: 'https://api.example.com'
+});
+
+// Alter defaults after instance has been created
+instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
+```
+
+### Config order of precedence
+
+Config will be merged with an order of precedence. The order is library defaults found in [lib/defaults.js](https://github.com/axios/axios/blob/master/lib/defaults.js#L28), then `defaults` property of the instance, and finally `config` argument for the request. The latter will take precedence over the former. Here's an example.
+
+```js
+// Create an instance using the config defaults provided by the library
+// At this point the timeout config value is `0` as is the default for the library
+const instance = axios.create();
+
+// Override timeout default for the library
+// Now all requests using this instance will wait 2.5 seconds before timing out
+instance.defaults.timeout = 2500;
+
+// Override timeout for this request as it's known to take a long time
+instance.get('/longRequest', {
+  timeout: 5000
+});
+```
+
+## Interceptors
+
+You can intercept requests or responses before they are handled by `then` or `catch`.
+
+```js
+// Add a request interceptor
+axios.interceptors.request.use(function (config) {
+    // Do something before request is sent
+    return config;
+  }, function (error) {
+    // Do something with request error
+    return Promise.reject(error);
+  });
+
+// Add a response interceptor
+axios.interceptors.response.use(function (response) {
+    // Any status code that lie within the range of 2xx cause this function to trigger
+    // Do something with response data
+    return response;
+  }, function (error) {
+    // Any status codes that falls outside the range of 2xx cause this function to trigger
+    // Do something with response error
+    return Promise.reject(error);
+  });
+```
+
+If you need to remove an interceptor later you can.
+
+```js
+const myInterceptor = axios.interceptors.request.use(function () {/*...*/});
+axios.interceptors.request.eject(myInterceptor);
+```
+
+You can add interceptors to a custom instance of axios.
+
+```js
+const instance = axios.create();
+instance.interceptors.request.use(function () {/*...*/});
+```
+
+When you add request interceptors, they are presumed to be asynchronous by default. This can cause a delay
+in the execution of your axios request when the main thread is blocked (a promise is created under the hood for 
+the interceptor and your request gets put on the bottom of the call stack). If your request interceptors are synchronous you can add a flag
+to the options object that will tell axios to run the code synchronously and avoid any delays in request execution.
+
+```js
+axios.interceptors.request.use(function (config) {
+  config.headers.test = 'I am only a header!';
+  return config;
+}, null, { synchronous: true });
+```
+
+If you want to execute a particular interceptor based on a runtime check, 
+you can add a `runWhen` function to the options object. The interceptor will not be executed **if and only if** the return
+of `runWhen` is `false`. The function will be called with the config
+object (don't forget that you can bind your own arguments to it as well.) This can be handy when you have an
+asynchronous request interceptor that only needs to run at certain times.
+
+```js
+function onGetCall(config) {
+  return config.method === 'get';
+}
+axios.interceptors.request.use(function (config) {
+  config.headers.test = 'special get headers';
+  return config;
+}, null, { runWhen: onGetCall });
+```
+
+### Multiple Interceptors
+
+Given you add multiple response interceptors
+and when the response was fulfilled
+- then each interceptor is executed
+- then they are executed in the order they were added
+- then only the last interceptor's result is returned
+- then every interceptor receives the result of it's predecessor
+- and when the fulfillment-interceptor throws
+    - then the following fulfillment-interceptor is not called
+    - then the following rejection-interceptor is called
+    - once caught, another following fulfill-interceptor is called again (just like in a promise chain).
+    
+Read [the interceptor tests](./test/specs/interceptors.spec.js) for seeing all this in code.
+
+## Handling Errors
+
+```js
+axios.get('/user/12345')
+  .catch(function (error) {
+    if (error.response) {
+      // The request was made and the server responded with a status code
+      // that falls out of the range of 2xx
+      console.log(error.response.data);
+      console.log(error.response.status);
+      console.log(error.response.headers);
+    } else if (error.request) {
+      // The request was made but no response was received
+      // `error.request` is an instance of XMLHttpRequest in the browser and an instance of
+      // http.ClientRequest in node.js
+      console.log(error.request);
+    } else {
+      // Something happened in setting up the request that triggered an Error
+      console.log('Error', error.message);
+    }
+    console.log(error.config);
+  });
+```
+
+Using the `validateStatus` config option, you can define HTTP code(s) that should throw an error.
+
+```js
+axios.get('/user/12345', {
+  validateStatus: function (status) {
+    return status < 500; // Resolve only if the status code is less than 500
+  }
+})
+```
+
+Using `toJSON` you get an object with more information about the HTTP error.
+
+```js
+axios.get('/user/12345')
+  .catch(function (error) {
+    console.log(error.toJSON());
+  });
+```
+
+## Cancellation
+
+You can cancel a request using a *cancel token*.
+
+> The axios cancel token API is based on the withdrawn [cancelable promises proposal](https://github.com/tc39/proposal-cancelable-promises).
+
+You can create a cancel token using the `CancelToken.source` factory as shown below:
+
+```js
+const CancelToken = axios.CancelToken;
+const source = CancelToken.source();
+
+axios.get('/user/12345', {
+  cancelToken: source.token
+}).catch(function (thrown) {
+  if (axios.isCancel(thrown)) {
+    console.log('Request canceled', thrown.message);
+  } else {
+    // handle error
+  }
+});
+
+axios.post('/user/12345', {
+  name: 'new name'
+}, {
+  cancelToken: source.token
+})
+
+// cancel the request (the message parameter is optional)
+source.cancel('Operation canceled by the user.');
+```
+
+You can also create a cancel token by passing an executor function to the `CancelToken` constructor:
+
+```js
+const CancelToken = axios.CancelToken;
+let cancel;
+
+axios.get('/user/12345', {
+  cancelToken: new CancelToken(function executor(c) {
+    // An executor function receives a cancel function as a parameter
+    cancel = c;
+  })
+});
+
+// cancel the request
+cancel();
+```
+
+Axios supports AbortController to abort requests in [`fetch API`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API#aborting_a_fetch) way:
+```js
+const controller = new AbortController();
+
+axios.get('/foo/bar', {
+   signal: controller.signal
+}).then(function(response) {
+   //...
+});
+// cancel the request
+controller.abort()
+```
+
+> Note: you can cancel several requests with the same cancel token/abort controller.
+> If a cancellation token is already cancelled at the moment of starting an Axios request, then the request is cancelled immediately, without any attempts to make real request.
+
+## Using application/x-www-form-urlencoded format
+
+By default, axios serializes JavaScript objects to `JSON`. To send data in the `application/x-www-form-urlencoded` format instead, you can use one of the following options.
+
+### Browser
+
+In a browser, you can use the [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) API as follows:
+
+```js
+const params = new URLSearchParams();
+params.append('param1', 'value1');
+params.append('param2', 'value2');
+axios.post('/foo', params);
+```
+
+> Note that `URLSearchParams` is not supported by all browsers (see [caniuse.com](http://www.caniuse.com/#feat=urlsearchparams)), but there is a [polyfill](https://github.com/WebReflection/url-search-params) available (make sure to polyfill the global environment).
+
+Alternatively, you can encode data using the [`qs`](https://github.com/ljharb/qs) library:
+
+```js
+const qs = require('qs');
+axios.post('/foo', qs.stringify({ 'bar': 123 }));
+```
+
+Or in another way (ES6),
+
+```js
+import qs from 'qs';
+const data = { 'bar': 123 };
+const options = {
+  method: 'POST',
+  headers: { 'content-type': 'application/x-www-form-urlencoded' },
+  data: qs.stringify(data),
+  url,
+};
+axios(options);
+```
+
+### Node.js
+
+#### Query string
+
+In node.js, you can use the [`querystring`](https://nodejs.org/api/querystring.html) module as follows:
+
+```js
+const querystring = require('querystring');
+axios.post('http://something.com/', querystring.stringify({ foo: 'bar' }));
+```
+
+or ['URLSearchParams'](https://nodejs.org/api/url.html#url_class_urlsearchparams) from ['url module'](https://nodejs.org/api/url.html) as follows:
+
+```js
+const url = require('url');
+const params = new url.URLSearchParams({ foo: 'bar' });
+axios.post('http://something.com/', params.toString());
+```
+
+You can also use the [`qs`](https://github.com/ljharb/qs) library.
+
+###### NOTE
+The `qs` library is preferable if you need to stringify nested objects, as the `querystring` method has known issues with that use case (https://github.com/nodejs/node-v0.x-archive/issues/1665).
+
+#### Form data
+
+In node.js, you can use the [`form-data`](https://github.com/form-data/form-data) library as follows:
+
+```js
+const FormData = require('form-data');
+ 
+const form = new FormData();
+form.append('my_field', 'my value');
+form.append('my_buffer', new Buffer(10));
+form.append('my_file', fs.createReadStream('/foo/bar.jpg'));
+
+axios.post('https://example.com', form, { headers: form.getHeaders() })
+```
+
+Alternatively, use an interceptor:
+
+```js
+axios.interceptors.request.use(config => {
+  if (config.data instanceof FormData) {
+    Object.assign(config.headers, config.data.getHeaders());
+  }
+  return config;
+});
+```
+
+## Semver
+
+Until axios reaches a `1.0` release, breaking changes will be released with a new minor version. For example `0.5.1`, and `0.5.4` will have the same API, but `0.6.0` will have breaking changes.
+
+## Promises
+
+axios depends on a native ES6 Promise implementation to be [supported](http://caniuse.com/promises).
+If your environment doesn't support ES6 Promises, you can [polyfill](https://github.com/jakearchibald/es6-promise).
+
+## TypeScript
+
+axios includes [TypeScript](http://typescriptlang.org) definitions and a type guard for axios errors.
+
+```typescript
+let user: User = null;
+try {
+  const { data } = await axios.get('/user?ID=12345');
+  user = data.userDetails;
+} catch (error) {
+  if (axios.isAxiosError(error)) {
+    handleAxiosError(error);
+  } else {
+    handleUnexpectedError(error);
+  }
+}
+```
+
+## Online one-click setup
+
+You can use Gitpod an online IDE(which is free for Open Source) for contributing or running the examples online.
+
+[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/axios/axios/blob/master/examples/server.js)
+
+
+## Resources
+
+* [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
+* [Upgrade Guide](https://github.com/axios/axios/blob/master/UPGRADE_GUIDE.md)
+* [Ecosystem](https://github.com/axios/axios/blob/master/ECOSYSTEM.md)
+* [Contributing Guide](https://github.com/axios/axios/blob/master/CONTRIBUTING.md)
+* [Code of Conduct](https://github.com/axios/axios/blob/master/CODE_OF_CONDUCT.md)
+
+## Credits
+
+axios is heavily inspired by the [$http service](https://docs.angularjs.org/api/ng/service/$http) provided in [AngularJS](https://angularjs.org/). Ultimately axios is an effort to provide a standalone `$http`-like service for use outside of AngularJS.
+
+## License
+
+[MIT](LICENSE)

+ 5 - 0
node_modules/axios/SECURITY.md

@@ -0,0 +1,5 @@
+# Security Policy
+
+## Reporting a Vulnerability
+
+Please report security issues to jasonsaayman@gmail.com

+ 168 - 0
node_modules/axios/UPGRADE_GUIDE.md

@@ -0,0 +1,168 @@
+# Upgrade Guide
+
+### 0.18.x -> 0.19.0
+
+#### HTTPS Proxies
+
+Routing through an https proxy now requires setting the `protocol` attribute of the proxy configuration to `https`
+
+### 0.15.x -> 0.16.0
+
+#### `Promise` Type Declarations
+
+The `Promise` type declarations have been removed from the axios typings in favor of the built-in type declarations. If you use axios in a TypeScript project that targets `ES5`, please make sure to include the `es2015.promise` lib. Please see [this post](https://blog.mariusschulz.com/2016/11/25/typescript-2-0-built-in-type-declarations) for details.
+
+### 0.13.x -> 0.14.0
+
+#### TypeScript Definitions
+
+The axios TypeScript definitions have been updated to match the axios API and use the ES2015 module syntax.
+
+Please use the following `import` statement to import axios in TypeScript:
+
+```typescript
+import axios from 'axios';
+
+axios.get('/foo')
+  .then(response => console.log(response))
+  .catch(error => console.log(error));
+```
+
+#### `agent` Config Option
+
+The `agent` config option has been replaced with two new options: `httpAgent` and `httpsAgent`. Please use them instead.
+
+```js
+{
+  // Define a custom agent for HTTP
+  httpAgent: new http.Agent({ keepAlive: true }),
+  // Define a custom agent for HTTPS
+  httpsAgent: new https.Agent({ keepAlive: true })
+}
+```
+
+#### `progress` Config Option
+
+The `progress` config option has been replaced with the `onUploadProgress` and `onDownloadProgress` options.
+
+```js
+{
+  // Define a handler for upload progress events
+  onUploadProgress: function (progressEvent) {
+    // ...
+  },
+
+  // Define a handler for download progress events
+  onDownloadProgress: function (progressEvent) {
+    // ...
+  }
+}
+```
+
+### 0.12.x -> 0.13.0
+
+The `0.13.0` release contains several changes to custom adapters and error handling.
+
+#### Error Handling
+
+Previous to this release an error could either be a server response with bad status code or an actual `Error`. With this release Promise will always reject with an `Error`. In the case that a response was received, the `Error` will also include the response.
+
+```js
+axios.get('/user/12345')
+  .catch((error) => {
+    console.log(error.message);
+    console.log(error.code); // Not always specified
+    console.log(error.config); // The config that was used to make the request
+    console.log(error.response); // Only available if response was received from the server
+  });
+```
+
+#### Request Adapters
+
+This release changes a few things about how request adapters work. Please take note if you are using your own custom adapter.
+
+1. Response transformer is now called outside of adapter.
+2. Request adapter returns a `Promise`.
+
+This means that you no longer need to invoke `transformData` on response data. You will also no longer receive `resolve` and `reject` as arguments in your adapter.
+
+Previous code:
+
+```js
+function myAdapter(resolve, reject, config) {
+  var response = {
+    data: transformData(
+      responseData,
+      responseHeaders,
+      config.transformResponse
+    ),
+    status: request.status,
+    statusText: request.statusText,
+    headers: responseHeaders
+  };
+  settle(resolve, reject, response);
+}
+```
+
+New code:
+
+```js
+function myAdapter(config) {
+  return new Promise(function (resolve, reject) {
+    var response = {
+      data: responseData,
+      status: request.status,
+      statusText: request.statusText,
+      headers: responseHeaders
+    };
+    settle(resolve, reject, response);
+  });
+}
+```
+
+See the related commits for more details:
+- [Response transformers](https://github.com/axios/axios/commit/10eb23865101f9347570552c04e9d6211376e25e)
+- [Request adapter Promise](https://github.com/axios/axios/commit/157efd5615890301824e3121cc6c9d2f9b21f94a)
+
+### 0.5.x -> 0.6.0
+
+The `0.6.0` release contains mostly bug fixes, but there are a couple things to be aware of when upgrading.
+
+#### ES6 Promise Polyfill
+
+Up until the `0.6.0` release ES6 `Promise` was being polyfilled using [es6-promise](https://github.com/jakearchibald/es6-promise). With this release, the polyfill has been removed, and you will need to supply it yourself if your environment needs it.
+
+```js
+require('es6-promise').polyfill();
+var axios = require('axios');
+```
+
+This will polyfill the global environment, and only needs to be done once.
+
+#### `axios.success`/`axios.error`
+
+The `success`, and `error` aliases were deprecated in [0.4.0](https://github.com/axios/axios/blob/master/CHANGELOG.md#040-oct-03-2014). As of this release they have been removed entirely. Instead please use `axios.then`, and `axios.catch` respectively.
+
+```js
+axios.get('some/url')
+  .then(function (res) {
+    /* ... */
+  })
+  .catch(function (err) {
+    /* ... */
+  });
+```
+
+#### UMD
+
+Previous versions of axios shipped with an AMD, CommonJS, and Global build. This has all been rolled into a single UMD build.
+
+```js
+// AMD
+require(['bower_components/axios/dist/axios'], function (axios) {
+  /* ... */
+});
+
+// CommonJS
+var axios = require('axios/dist/axios');
+```

+ 2277 - 0
node_modules/axios/dist/axios.js

@@ -0,0 +1,2277 @@
+(function webpackUniversalModuleDefinition(root, factory) {
+	if(typeof exports === 'object' && typeof module === 'object')
+		module.exports = factory();
+	else if(typeof define === 'function' && define.amd)
+		define([], factory);
+	else if(typeof exports === 'object')
+		exports["axios"] = factory();
+	else
+		root["axios"] = factory();
+})(this, function() {
+return /******/ (function(modules) { // webpackBootstrap
+/******/ 	// The module cache
+/******/ 	var installedModules = {};
+/******/
+/******/ 	// The require function
+/******/ 	function __webpack_require__(moduleId) {
+/******/
+/******/ 		// Check if module is in cache
+/******/ 		if(installedModules[moduleId]) {
+/******/ 			return installedModules[moduleId].exports;
+/******/ 		}
+/******/ 		// Create a new module (and put it into the cache)
+/******/ 		var module = installedModules[moduleId] = {
+/******/ 			i: moduleId,
+/******/ 			l: false,
+/******/ 			exports: {}
+/******/ 		};
+/******/
+/******/ 		// Execute the module function
+/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
+/******/
+/******/ 		// Flag the module as loaded
+/******/ 		module.l = true;
+/******/
+/******/ 		// Return the exports of the module
+/******/ 		return module.exports;
+/******/ 	}
+/******/
+/******/
+/******/ 	// expose the modules object (__webpack_modules__)
+/******/ 	__webpack_require__.m = modules;
+/******/
+/******/ 	// expose the module cache
+/******/ 	__webpack_require__.c = installedModules;
+/******/
+/******/ 	// define getter function for harmony exports
+/******/ 	__webpack_require__.d = function(exports, name, getter) {
+/******/ 		if(!__webpack_require__.o(exports, name)) {
+/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
+/******/ 		}
+/******/ 	};
+/******/
+/******/ 	// define __esModule on exports
+/******/ 	__webpack_require__.r = function(exports) {
+/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
+/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
+/******/ 		}
+/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
+/******/ 	};
+/******/
+/******/ 	// create a fake namespace object
+/******/ 	// mode & 1: value is a module id, require it
+/******/ 	// mode & 2: merge all properties of value into the ns
+/******/ 	// mode & 4: return value when already ns object
+/******/ 	// mode & 8|1: behave like require
+/******/ 	__webpack_require__.t = function(value, mode) {
+/******/ 		if(mode & 1) value = __webpack_require__(value);
+/******/ 		if(mode & 8) return value;
+/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
+/******/ 		var ns = Object.create(null);
+/******/ 		__webpack_require__.r(ns);
+/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
+/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
+/******/ 		return ns;
+/******/ 	};
+/******/
+/******/ 	// getDefaultExport function for compatibility with non-harmony modules
+/******/ 	__webpack_require__.n = function(module) {
+/******/ 		var getter = module && module.__esModule ?
+/******/ 			function getDefault() { return module['default']; } :
+/******/ 			function getModuleExports() { return module; };
+/******/ 		__webpack_require__.d(getter, 'a', getter);
+/******/ 		return getter;
+/******/ 	};
+/******/
+/******/ 	// Object.prototype.hasOwnProperty.call
+/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
+/******/
+/******/ 	// __webpack_public_path__
+/******/ 	__webpack_require__.p = "";
+/******/
+/******/
+/******/ 	// Load entry module and return exports
+/******/ 	return __webpack_require__(__webpack_require__.s = "./index.js");
+/******/ })
+/************************************************************************/
+/******/ ({
+
+/***/ "./index.js":
+/*!******************!*\
+  !*** ./index.js ***!
+  \******************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+module.exports = __webpack_require__(/*! ./lib/axios */ "./lib/axios.js");
+
+/***/ }),
+
+/***/ "./lib/adapters/xhr.js":
+/*!*****************************!*\
+  !*** ./lib/adapters/xhr.js ***!
+  \*****************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./../utils */ "./lib/utils.js");
+var settle = __webpack_require__(/*! ./../core/settle */ "./lib/core/settle.js");
+var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./lib/helpers/cookies.js");
+var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./lib/helpers/buildURL.js");
+var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./lib/core/buildFullPath.js");
+var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./lib/helpers/parseHeaders.js");
+var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./lib/helpers/isURLSameOrigin.js");
+var createError = __webpack_require__(/*! ../core/createError */ "./lib/core/createError.js");
+var defaults = __webpack_require__(/*! ../defaults */ "./lib/defaults.js");
+var Cancel = __webpack_require__(/*! ../cancel/Cancel */ "./lib/cancel/Cancel.js");
+
+module.exports = function xhrAdapter(config) {
+  return new Promise(function dispatchXhrRequest(resolve, reject) {
+    var requestData = config.data;
+    var requestHeaders = config.headers;
+    var responseType = config.responseType;
+    var onCanceled;
+    function done() {
+      if (config.cancelToken) {
+        config.cancelToken.unsubscribe(onCanceled);
+      }
+
+      if (config.signal) {
+        config.signal.removeEventListener('abort', onCanceled);
+      }
+    }
+
+    if (utils.isFormData(requestData)) {
+      delete requestHeaders['Content-Type']; // Let the browser set it
+    }
+
+    var request = new XMLHttpRequest();
+
+    // HTTP basic authentication
+    if (config.auth) {
+      var username = config.auth.username || '';
+      var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
+      requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
+    }
+
+    var fullPath = buildFullPath(config.baseURL, config.url);
+    request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
+
+    // Set the request timeout in MS
+    request.timeout = config.timeout;
+
+    function onloadend() {
+      if (!request) {
+        return;
+      }
+      // Prepare the response
+      var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
+      var responseData = !responseType || responseType === 'text' ||  responseType === 'json' ?
+        request.responseText : request.response;
+      var response = {
+        data: responseData,
+        status: request.status,
+        statusText: request.statusText,
+        headers: responseHeaders,
+        config: config,
+        request: request
+      };
+
+      settle(function _resolve(value) {
+        resolve(value);
+        done();
+      }, function _reject(err) {
+        reject(err);
+        done();
+      }, response);
+
+      // Clean up request
+      request = null;
+    }
+
+    if ('onloadend' in request) {
+      // Use onloadend if available
+      request.onloadend = onloadend;
+    } else {
+      // Listen for ready state to emulate onloadend
+      request.onreadystatechange = function handleLoad() {
+        if (!request || request.readyState !== 4) {
+          return;
+        }
+
+        // The request errored out and we didn't get a response, this will be
+        // handled by onerror instead
+        // With one exception: request that using file: protocol, most browsers
+        // will return status as 0 even though it's a successful request
+        if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
+          return;
+        }
+        // readystate handler is calling before onerror or ontimeout handlers,
+        // so we should call onloadend on the next 'tick'
+        setTimeout(onloadend);
+      };
+    }
+
+    // Handle browser request cancellation (as opposed to a manual cancellation)
+    request.onabort = function handleAbort() {
+      if (!request) {
+        return;
+      }
+
+      reject(createError('Request aborted', config, 'ECONNABORTED', request));
+
+      // Clean up request
+      request = null;
+    };
+
+    // Handle low level network errors
+    request.onerror = function handleError() {
+      // Real errors are hidden from us by the browser
+      // onerror should only fire if it's a network error
+      reject(createError('Network Error', config, null, request));
+
+      // Clean up request
+      request = null;
+    };
+
+    // Handle timeout
+    request.ontimeout = function handleTimeout() {
+      var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
+      var transitional = config.transitional || defaults.transitional;
+      if (config.timeoutErrorMessage) {
+        timeoutErrorMessage = config.timeoutErrorMessage;
+      }
+      reject(createError(
+        timeoutErrorMessage,
+        config,
+        transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
+        request));
+
+      // Clean up request
+      request = null;
+    };
+
+    // Add xsrf header
+    // This is only done if running in a standard browser environment.
+    // Specifically not if we're in a web worker, or react-native.
+    if (utils.isStandardBrowserEnv()) {
+      // Add xsrf header
+      var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
+        cookies.read(config.xsrfCookieName) :
+        undefined;
+
+      if (xsrfValue) {
+        requestHeaders[config.xsrfHeaderName] = xsrfValue;
+      }
+    }
+
+    // Add headers to the request
+    if ('setRequestHeader' in request) {
+      utils.forEach(requestHeaders, function setRequestHeader(val, key) {
+        if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
+          // Remove Content-Type if data is undefined
+          delete requestHeaders[key];
+        } else {
+          // Otherwise add header to the request
+          request.setRequestHeader(key, val);
+        }
+      });
+    }
+
+    // Add withCredentials to request if needed
+    if (!utils.isUndefined(config.withCredentials)) {
+      request.withCredentials = !!config.withCredentials;
+    }
+
+    // Add responseType to request if needed
+    if (responseType && responseType !== 'json') {
+      request.responseType = config.responseType;
+    }
+
+    // Handle progress if needed
+    if (typeof config.onDownloadProgress === 'function') {
+      request.addEventListener('progress', config.onDownloadProgress);
+    }
+
+    // Not all browsers support upload events
+    if (typeof config.onUploadProgress === 'function' && request.upload) {
+      request.upload.addEventListener('progress', config.onUploadProgress);
+    }
+
+    if (config.cancelToken || config.signal) {
+      // Handle cancellation
+      // eslint-disable-next-line func-names
+      onCanceled = function(cancel) {
+        if (!request) {
+          return;
+        }
+        reject(!cancel || (cancel && cancel.type) ? new Cancel('canceled') : cancel);
+        request.abort();
+        request = null;
+      };
+
+      config.cancelToken && config.cancelToken.subscribe(onCanceled);
+      if (config.signal) {
+        config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
+      }
+    }
+
+    if (!requestData) {
+      requestData = null;
+    }
+
+    // Send the request
+    request.send(requestData);
+  });
+};
+
+
+/***/ }),
+
+/***/ "./lib/axios.js":
+/*!**********************!*\
+  !*** ./lib/axios.js ***!
+  \**********************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./utils */ "./lib/utils.js");
+var bind = __webpack_require__(/*! ./helpers/bind */ "./lib/helpers/bind.js");
+var Axios = __webpack_require__(/*! ./core/Axios */ "./lib/core/Axios.js");
+var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./lib/core/mergeConfig.js");
+var defaults = __webpack_require__(/*! ./defaults */ "./lib/defaults.js");
+
+/**
+ * Create an instance of Axios
+ *
+ * @param {Object} defaultConfig The default config for the instance
+ * @return {Axios} A new instance of Axios
+ */
+function createInstance(defaultConfig) {
+  var context = new Axios(defaultConfig);
+  var instance = bind(Axios.prototype.request, context);
+
+  // Copy axios.prototype to instance
+  utils.extend(instance, Axios.prototype, context);
+
+  // Copy context to instance
+  utils.extend(instance, context);
+
+  // Factory for creating new instances
+  instance.create = function create(instanceConfig) {
+    return createInstance(mergeConfig(defaultConfig, instanceConfig));
+  };
+
+  return instance;
+}
+
+// Create the default instance to be exported
+var axios = createInstance(defaults);
+
+// Expose Axios class to allow class inheritance
+axios.Axios = Axios;
+
+// Expose Cancel & CancelToken
+axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./lib/cancel/Cancel.js");
+axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./lib/cancel/CancelToken.js");
+axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./lib/cancel/isCancel.js");
+axios.VERSION = __webpack_require__(/*! ./env/data */ "./lib/env/data.js").version;
+
+// Expose all/spread
+axios.all = function all(promises) {
+  return Promise.all(promises);
+};
+axios.spread = __webpack_require__(/*! ./helpers/spread */ "./lib/helpers/spread.js");
+
+// Expose isAxiosError
+axios.isAxiosError = __webpack_require__(/*! ./helpers/isAxiosError */ "./lib/helpers/isAxiosError.js");
+
+module.exports = axios;
+
+// Allow use of default import syntax in TypeScript
+module.exports.default = axios;
+
+
+/***/ }),
+
+/***/ "./lib/cancel/Cancel.js":
+/*!******************************!*\
+  !*** ./lib/cancel/Cancel.js ***!
+  \******************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+/**
+ * A `Cancel` is an object that is thrown when an operation is canceled.
+ *
+ * @class
+ * @param {string=} message The message.
+ */
+function Cancel(message) {
+  this.message = message;
+}
+
+Cancel.prototype.toString = function toString() {
+  return 'Cancel' + (this.message ? ': ' + this.message : '');
+};
+
+Cancel.prototype.__CANCEL__ = true;
+
+module.exports = Cancel;
+
+
+/***/ }),
+
+/***/ "./lib/cancel/CancelToken.js":
+/*!***********************************!*\
+  !*** ./lib/cancel/CancelToken.js ***!
+  \***********************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var Cancel = __webpack_require__(/*! ./Cancel */ "./lib/cancel/Cancel.js");
+
+/**
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
+ *
+ * @class
+ * @param {Function} executor The executor function.
+ */
+function CancelToken(executor) {
+  if (typeof executor !== 'function') {
+    throw new TypeError('executor must be a function.');
+  }
+
+  var resolvePromise;
+
+  this.promise = new Promise(function promiseExecutor(resolve) {
+    resolvePromise = resolve;
+  });
+
+  var token = this;
+
+  // eslint-disable-next-line func-names
+  this.promise.then(function(cancel) {
+    if (!token._listeners) return;
+
+    var i;
+    var l = token._listeners.length;
+
+    for (i = 0; i < l; i++) {
+      token._listeners[i](cancel);
+    }
+    token._listeners = null;
+  });
+
+  // eslint-disable-next-line func-names
+  this.promise.then = function(onfulfilled) {
+    var _resolve;
+    // eslint-disable-next-line func-names
+    var promise = new Promise(function(resolve) {
+      token.subscribe(resolve);
+      _resolve = resolve;
+    }).then(onfulfilled);
+
+    promise.cancel = function reject() {
+      token.unsubscribe(_resolve);
+    };
+
+    return promise;
+  };
+
+  executor(function cancel(message) {
+    if (token.reason) {
+      // Cancellation has already been requested
+      return;
+    }
+
+    token.reason = new Cancel(message);
+    resolvePromise(token.reason);
+  });
+}
+
+/**
+ * Throws a `Cancel` if cancellation has been requested.
+ */
+CancelToken.prototype.throwIfRequested = function throwIfRequested() {
+  if (this.reason) {
+    throw this.reason;
+  }
+};
+
+/**
+ * Subscribe to the cancel signal
+ */
+
+CancelToken.prototype.subscribe = function subscribe(listener) {
+  if (this.reason) {
+    listener(this.reason);
+    return;
+  }
+
+  if (this._listeners) {
+    this._listeners.push(listener);
+  } else {
+    this._listeners = [listener];
+  }
+};
+
+/**
+ * Unsubscribe from the cancel signal
+ */
+
+CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
+  if (!this._listeners) {
+    return;
+  }
+  var index = this._listeners.indexOf(listener);
+  if (index !== -1) {
+    this._listeners.splice(index, 1);
+  }
+};
+
+/**
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
+ * cancels the `CancelToken`.
+ */
+CancelToken.source = function source() {
+  var cancel;
+  var token = new CancelToken(function executor(c) {
+    cancel = c;
+  });
+  return {
+    token: token,
+    cancel: cancel
+  };
+};
+
+module.exports = CancelToken;
+
+
+/***/ }),
+
+/***/ "./lib/cancel/isCancel.js":
+/*!********************************!*\
+  !*** ./lib/cancel/isCancel.js ***!
+  \********************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+module.exports = function isCancel(value) {
+  return !!(value && value.__CANCEL__);
+};
+
+
+/***/ }),
+
+/***/ "./lib/core/Axios.js":
+/*!***************************!*\
+  !*** ./lib/core/Axios.js ***!
+  \***************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./../utils */ "./lib/utils.js");
+var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./lib/helpers/buildURL.js");
+var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./lib/core/InterceptorManager.js");
+var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./lib/core/dispatchRequest.js");
+var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./lib/core/mergeConfig.js");
+var validator = __webpack_require__(/*! ../helpers/validator */ "./lib/helpers/validator.js");
+
+var validators = validator.validators;
+/**
+ * Create a new instance of Axios
+ *
+ * @param {Object} instanceConfig The default config for the instance
+ */
+function Axios(instanceConfig) {
+  this.defaults = instanceConfig;
+  this.interceptors = {
+    request: new InterceptorManager(),
+    response: new InterceptorManager()
+  };
+}
+
+/**
+ * Dispatch a request
+ *
+ * @param {Object} config The config specific for this request (merged with this.defaults)
+ */
+Axios.prototype.request = function request(configOrUrl, config) {
+  /*eslint no-param-reassign:0*/
+  // Allow for axios('example/url'[, config]) a la fetch API
+  if (typeof configOrUrl === 'string') {
+    config = config || {};
+    config.url = configOrUrl;
+  } else {
+    config = configOrUrl || {};
+  }
+
+  config = mergeConfig(this.defaults, config);
+
+  // Set config.method
+  if (config.method) {
+    config.method = config.method.toLowerCase();
+  } else if (this.defaults.method) {
+    config.method = this.defaults.method.toLowerCase();
+  } else {
+    config.method = 'get';
+  }
+
+  var transitional = config.transitional;
+
+  if (transitional !== undefined) {
+    validator.assertOptions(transitional, {
+      silentJSONParsing: validators.transitional(validators.boolean),
+      forcedJSONParsing: validators.transitional(validators.boolean),
+      clarifyTimeoutError: validators.transitional(validators.boolean)
+    }, false);
+  }
+
+  // filter out skipped interceptors
+  var requestInterceptorChain = [];
+  var synchronousRequestInterceptors = true;
+  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
+    if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
+      return;
+    }
+
+    synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
+
+    requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
+  });
+
+  var responseInterceptorChain = [];
+  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
+    responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
+  });
+
+  var promise;
+
+  if (!synchronousRequestInterceptors) {
+    var chain = [dispatchRequest, undefined];
+
+    Array.prototype.unshift.apply(chain, requestInterceptorChain);
+    chain = chain.concat(responseInterceptorChain);
+
+    promise = Promise.resolve(config);
+    while (chain.length) {
+      promise = promise.then(chain.shift(), chain.shift());
+    }
+
+    return promise;
+  }
+
+
+  var newConfig = config;
+  while (requestInterceptorChain.length) {
+    var onFulfilled = requestInterceptorChain.shift();
+    var onRejected = requestInterceptorChain.shift();
+    try {
+      newConfig = onFulfilled(newConfig);
+    } catch (error) {
+      onRejected(error);
+      break;
+    }
+  }
+
+  try {
+    promise = dispatchRequest(newConfig);
+  } catch (error) {
+    return Promise.reject(error);
+  }
+
+  while (responseInterceptorChain.length) {
+    promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
+  }
+
+  return promise;
+};
+
+Axios.prototype.getUri = function getUri(config) {
+  config = mergeConfig(this.defaults, config);
+  return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
+};
+
+// Provide aliases for supported request methods
+utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
+  /*eslint func-names:0*/
+  Axios.prototype[method] = function(url, config) {
+    return this.request(mergeConfig(config || {}, {
+      method: method,
+      url: url,
+      data: (config || {}).data
+    }));
+  };
+});
+
+utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
+  /*eslint func-names:0*/
+  Axios.prototype[method] = function(url, data, config) {
+    return this.request(mergeConfig(config || {}, {
+      method: method,
+      url: url,
+      data: data
+    }));
+  };
+});
+
+module.exports = Axios;
+
+
+/***/ }),
+
+/***/ "./lib/core/InterceptorManager.js":
+/*!****************************************!*\
+  !*** ./lib/core/InterceptorManager.js ***!
+  \****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./../utils */ "./lib/utils.js");
+
+function InterceptorManager() {
+  this.handlers = [];
+}
+
+/**
+ * Add a new interceptor to the stack
+ *
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
+ *
+ * @return {Number} An ID used to remove interceptor later
+ */
+InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
+  this.handlers.push({
+    fulfilled: fulfilled,
+    rejected: rejected,
+    synchronous: options ? options.synchronous : false,
+    runWhen: options ? options.runWhen : null
+  });
+  return this.handlers.length - 1;
+};
+
+/**
+ * Remove an interceptor from the stack
+ *
+ * @param {Number} id The ID that was returned by `use`
+ */
+InterceptorManager.prototype.eject = function eject(id) {
+  if (this.handlers[id]) {
+    this.handlers[id] = null;
+  }
+};
+
+/**
+ * Iterate over all the registered interceptors
+ *
+ * This method is particularly useful for skipping over any
+ * interceptors that may have become `null` calling `eject`.
+ *
+ * @param {Function} fn The function to call for each interceptor
+ */
+InterceptorManager.prototype.forEach = function forEach(fn) {
+  utils.forEach(this.handlers, function forEachHandler(h) {
+    if (h !== null) {
+      fn(h);
+    }
+  });
+};
+
+module.exports = InterceptorManager;
+
+
+/***/ }),
+
+/***/ "./lib/core/buildFullPath.js":
+/*!***********************************!*\
+  !*** ./lib/core/buildFullPath.js ***!
+  \***********************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./lib/helpers/isAbsoluteURL.js");
+var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./lib/helpers/combineURLs.js");
+
+/**
+ * Creates a new URL by combining the baseURL with the requestedURL,
+ * only when the requestedURL is not already an absolute URL.
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
+ *
+ * @param {string} baseURL The base URL
+ * @param {string} requestedURL Absolute or relative URL to combine
+ * @returns {string} The combined full path
+ */
+module.exports = function buildFullPath(baseURL, requestedURL) {
+  if (baseURL && !isAbsoluteURL(requestedURL)) {
+    return combineURLs(baseURL, requestedURL);
+  }
+  return requestedURL;
+};
+
+
+/***/ }),
+
+/***/ "./lib/core/createError.js":
+/*!*********************************!*\
+  !*** ./lib/core/createError.js ***!
+  \*********************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var enhanceError = __webpack_require__(/*! ./enhanceError */ "./lib/core/enhanceError.js");
+
+/**
+ * Create an Error with the specified message, config, error code, request and response.
+ *
+ * @param {string} message The error message.
+ * @param {Object} config The config.
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
+ * @param {Object} [request] The request.
+ * @param {Object} [response] The response.
+ * @returns {Error} The created error.
+ */
+module.exports = function createError(message, config, code, request, response) {
+  var error = new Error(message);
+  return enhanceError(error, config, code, request, response);
+};
+
+
+/***/ }),
+
+/***/ "./lib/core/dispatchRequest.js":
+/*!*************************************!*\
+  !*** ./lib/core/dispatchRequest.js ***!
+  \*************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./../utils */ "./lib/utils.js");
+var transformData = __webpack_require__(/*! ./transformData */ "./lib/core/transformData.js");
+var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./lib/cancel/isCancel.js");
+var defaults = __webpack_require__(/*! ../defaults */ "./lib/defaults.js");
+var Cancel = __webpack_require__(/*! ../cancel/Cancel */ "./lib/cancel/Cancel.js");
+
+/**
+ * Throws a `Cancel` if cancellation has been requested.
+ */
+function throwIfCancellationRequested(config) {
+  if (config.cancelToken) {
+    config.cancelToken.throwIfRequested();
+  }
+
+  if (config.signal && config.signal.aborted) {
+    throw new Cancel('canceled');
+  }
+}
+
+/**
+ * Dispatch a request to the server using the configured adapter.
+ *
+ * @param {object} config The config that is to be used for the request
+ * @returns {Promise} The Promise to be fulfilled
+ */
+module.exports = function dispatchRequest(config) {
+  throwIfCancellationRequested(config);
+
+  // Ensure headers exist
+  config.headers = config.headers || {};
+
+  // Transform request data
+  config.data = transformData.call(
+    config,
+    config.data,
+    config.headers,
+    config.transformRequest
+  );
+
+  // Flatten headers
+  config.headers = utils.merge(
+    config.headers.common || {},
+    config.headers[config.method] || {},
+    config.headers
+  );
+
+  utils.forEach(
+    ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
+    function cleanHeaderConfig(method) {
+      delete config.headers[method];
+    }
+  );
+
+  var adapter = config.adapter || defaults.adapter;
+
+  return adapter(config).then(function onAdapterResolution(response) {
+    throwIfCancellationRequested(config);
+
+    // Transform response data
+    response.data = transformData.call(
+      config,
+      response.data,
+      response.headers,
+      config.transformResponse
+    );
+
+    return response;
+  }, function onAdapterRejection(reason) {
+    if (!isCancel(reason)) {
+      throwIfCancellationRequested(config);
+
+      // Transform response data
+      if (reason && reason.response) {
+        reason.response.data = transformData.call(
+          config,
+          reason.response.data,
+          reason.response.headers,
+          config.transformResponse
+        );
+      }
+    }
+
+    return Promise.reject(reason);
+  });
+};
+
+
+/***/ }),
+
+/***/ "./lib/core/enhanceError.js":
+/*!**********************************!*\
+  !*** ./lib/core/enhanceError.js ***!
+  \**********************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+/**
+ * Update an Error with the specified config, error code, and response.
+ *
+ * @param {Error} error The error to update.
+ * @param {Object} config The config.
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
+ * @param {Object} [request] The request.
+ * @param {Object} [response] The response.
+ * @returns {Error} The error.
+ */
+module.exports = function enhanceError(error, config, code, request, response) {
+  error.config = config;
+  if (code) {
+    error.code = code;
+  }
+
+  error.request = request;
+  error.response = response;
+  error.isAxiosError = true;
+
+  error.toJSON = function toJSON() {
+    return {
+      // Standard
+      message: this.message,
+      name: this.name,
+      // Microsoft
+      description: this.description,
+      number: this.number,
+      // Mozilla
+      fileName: this.fileName,
+      lineNumber: this.lineNumber,
+      columnNumber: this.columnNumber,
+      stack: this.stack,
+      // Axios
+      config: this.config,
+      code: this.code,
+      status: this.response && this.response.status ? this.response.status : null
+    };
+  };
+  return error;
+};
+
+
+/***/ }),
+
+/***/ "./lib/core/mergeConfig.js":
+/*!*********************************!*\
+  !*** ./lib/core/mergeConfig.js ***!
+  \*********************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ../utils */ "./lib/utils.js");
+
+/**
+ * Config-specific merge-function which creates a new config-object
+ * by merging two configuration objects together.
+ *
+ * @param {Object} config1
+ * @param {Object} config2
+ * @returns {Object} New object resulting from merging config2 to config1
+ */
+module.exports = function mergeConfig(config1, config2) {
+  // eslint-disable-next-line no-param-reassign
+  config2 = config2 || {};
+  var config = {};
+
+  function getMergedValue(target, source) {
+    if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
+      return utils.merge(target, source);
+    } else if (utils.isPlainObject(source)) {
+      return utils.merge({}, source);
+    } else if (utils.isArray(source)) {
+      return source.slice();
+    }
+    return source;
+  }
+
+  // eslint-disable-next-line consistent-return
+  function mergeDeepProperties(prop) {
+    if (!utils.isUndefined(config2[prop])) {
+      return getMergedValue(config1[prop], config2[prop]);
+    } else if (!utils.isUndefined(config1[prop])) {
+      return getMergedValue(undefined, config1[prop]);
+    }
+  }
+
+  // eslint-disable-next-line consistent-return
+  function valueFromConfig2(prop) {
+    if (!utils.isUndefined(config2[prop])) {
+      return getMergedValue(undefined, config2[prop]);
+    }
+  }
+
+  // eslint-disable-next-line consistent-return
+  function defaultToConfig2(prop) {
+    if (!utils.isUndefined(config2[prop])) {
+      return getMergedValue(undefined, config2[prop]);
+    } else if (!utils.isUndefined(config1[prop])) {
+      return getMergedValue(undefined, config1[prop]);
+    }
+  }
+
+  // eslint-disable-next-line consistent-return
+  function mergeDirectKeys(prop) {
+    if (prop in config2) {
+      return getMergedValue(config1[prop], config2[prop]);
+    } else if (prop in config1) {
+      return getMergedValue(undefined, config1[prop]);
+    }
+  }
+
+  var mergeMap = {
+    'url': valueFromConfig2,
+    'method': valueFromConfig2,
+    'data': valueFromConfig2,
+    'baseURL': defaultToConfig2,
+    'transformRequest': defaultToConfig2,
+    'transformResponse': defaultToConfig2,
+    'paramsSerializer': defaultToConfig2,
+    'timeout': defaultToConfig2,
+    'timeoutMessage': defaultToConfig2,
+    'withCredentials': defaultToConfig2,
+    'adapter': defaultToConfig2,
+    'responseType': defaultToConfig2,
+    'xsrfCookieName': defaultToConfig2,
+    'xsrfHeaderName': defaultToConfig2,
+    'onUploadProgress': defaultToConfig2,
+    'onDownloadProgress': defaultToConfig2,
+    'decompress': defaultToConfig2,
+    'maxContentLength': defaultToConfig2,
+    'maxBodyLength': defaultToConfig2,
+    'transport': defaultToConfig2,
+    'httpAgent': defaultToConfig2,
+    'httpsAgent': defaultToConfig2,
+    'cancelToken': defaultToConfig2,
+    'socketPath': defaultToConfig2,
+    'responseEncoding': defaultToConfig2,
+    'validateStatus': mergeDirectKeys
+  };
+
+  utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
+    var merge = mergeMap[prop] || mergeDeepProperties;
+    var configValue = merge(prop);
+    (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
+  });
+
+  return config;
+};
+
+
+/***/ }),
+
+/***/ "./lib/core/settle.js":
+/*!****************************!*\
+  !*** ./lib/core/settle.js ***!
+  \****************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var createError = __webpack_require__(/*! ./createError */ "./lib/core/createError.js");
+
+/**
+ * Resolve or reject a Promise based on response status.
+ *
+ * @param {Function} resolve A function that resolves the promise.
+ * @param {Function} reject A function that rejects the promise.
+ * @param {object} response The response.
+ */
+module.exports = function settle(resolve, reject, response) {
+  var validateStatus = response.config.validateStatus;
+  if (!response.status || !validateStatus || validateStatus(response.status)) {
+    resolve(response);
+  } else {
+    reject(createError(
+      'Request failed with status code ' + response.status,
+      response.config,
+      null,
+      response.request,
+      response
+    ));
+  }
+};
+
+
+/***/ }),
+
+/***/ "./lib/core/transformData.js":
+/*!***********************************!*\
+  !*** ./lib/core/transformData.js ***!
+  \***********************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./../utils */ "./lib/utils.js");
+var defaults = __webpack_require__(/*! ./../defaults */ "./lib/defaults.js");
+
+/**
+ * Transform the data for a request or a response
+ *
+ * @param {Object|String} data The data to be transformed
+ * @param {Array} headers The headers for the request or response
+ * @param {Array|Function} fns A single function or Array of functions
+ * @returns {*} The resulting transformed data
+ */
+module.exports = function transformData(data, headers, fns) {
+  var context = this || defaults;
+  /*eslint no-param-reassign:0*/
+  utils.forEach(fns, function transform(fn) {
+    data = fn.call(context, data, headers);
+  });
+
+  return data;
+};
+
+
+/***/ }),
+
+/***/ "./lib/defaults.js":
+/*!*************************!*\
+  !*** ./lib/defaults.js ***!
+  \*************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./utils */ "./lib/utils.js");
+var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./lib/helpers/normalizeHeaderName.js");
+var enhanceError = __webpack_require__(/*! ./core/enhanceError */ "./lib/core/enhanceError.js");
+
+var DEFAULT_CONTENT_TYPE = {
+  'Content-Type': 'application/x-www-form-urlencoded'
+};
+
+function setContentTypeIfUnset(headers, value) {
+  if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
+    headers['Content-Type'] = value;
+  }
+}
+
+function getDefaultAdapter() {
+  var adapter;
+  if (typeof XMLHttpRequest !== 'undefined') {
+    // For browsers use XHR adapter
+    adapter = __webpack_require__(/*! ./adapters/xhr */ "./lib/adapters/xhr.js");
+  } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
+    // For node use HTTP adapter
+    adapter = __webpack_require__(/*! ./adapters/http */ "./lib/adapters/xhr.js");
+  }
+  return adapter;
+}
+
+function stringifySafely(rawValue, parser, encoder) {
+  if (utils.isString(rawValue)) {
+    try {
+      (parser || JSON.parse)(rawValue);
+      return utils.trim(rawValue);
+    } catch (e) {
+      if (e.name !== 'SyntaxError') {
+        throw e;
+      }
+    }
+  }
+
+  return (encoder || JSON.stringify)(rawValue);
+}
+
+var defaults = {
+
+  transitional: {
+    silentJSONParsing: true,
+    forcedJSONParsing: true,
+    clarifyTimeoutError: false
+  },
+
+  adapter: getDefaultAdapter(),
+
+  transformRequest: [function transformRequest(data, headers) {
+    normalizeHeaderName(headers, 'Accept');
+    normalizeHeaderName(headers, 'Content-Type');
+
+    if (utils.isFormData(data) ||
+      utils.isArrayBuffer(data) ||
+      utils.isBuffer(data) ||
+      utils.isStream(data) ||
+      utils.isFile(data) ||
+      utils.isBlob(data)
+    ) {
+      return data;
+    }
+    if (utils.isArrayBufferView(data)) {
+      return data.buffer;
+    }
+    if (utils.isURLSearchParams(data)) {
+      setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
+      return data.toString();
+    }
+    if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
+      setContentTypeIfUnset(headers, 'application/json');
+      return stringifySafely(data);
+    }
+    return data;
+  }],
+
+  transformResponse: [function transformResponse(data) {
+    var transitional = this.transitional || defaults.transitional;
+    var silentJSONParsing = transitional && transitional.silentJSONParsing;
+    var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
+    var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
+
+    if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {
+      try {
+        return JSON.parse(data);
+      } catch (e) {
+        if (strictJSONParsing) {
+          if (e.name === 'SyntaxError') {
+            throw enhanceError(e, this, 'E_JSON_PARSE');
+          }
+          throw e;
+        }
+      }
+    }
+
+    return data;
+  }],
+
+  /**
+   * A timeout in milliseconds to abort a request. If set to 0 (default) a
+   * timeout is not created.
+   */
+  timeout: 0,
+
+  xsrfCookieName: 'XSRF-TOKEN',
+  xsrfHeaderName: 'X-XSRF-TOKEN',
+
+  maxContentLength: -1,
+  maxBodyLength: -1,
+
+  validateStatus: function validateStatus(status) {
+    return status >= 200 && status < 300;
+  },
+
+  headers: {
+    common: {
+      'Accept': 'application/json, text/plain, */*'
+    }
+  }
+};
+
+utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
+  defaults.headers[method] = {};
+});
+
+utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
+  defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
+});
+
+module.exports = defaults;
+
+
+/***/ }),
+
+/***/ "./lib/env/data.js":
+/*!*************************!*\
+  !*** ./lib/env/data.js ***!
+  \*************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
+
+module.exports = {
+  "version": "0.26.0"
+};
+
+/***/ }),
+
+/***/ "./lib/helpers/bind.js":
+/*!*****************************!*\
+  !*** ./lib/helpers/bind.js ***!
+  \*****************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+module.exports = function bind(fn, thisArg) {
+  return function wrap() {
+    var args = new Array(arguments.length);
+    for (var i = 0; i < args.length; i++) {
+      args[i] = arguments[i];
+    }
+    return fn.apply(thisArg, args);
+  };
+};
+
+
+/***/ }),
+
+/***/ "./lib/helpers/buildURL.js":
+/*!*********************************!*\
+  !*** ./lib/helpers/buildURL.js ***!
+  \*********************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./../utils */ "./lib/utils.js");
+
+function encode(val) {
+  return encodeURIComponent(val).
+    replace(/%3A/gi, ':').
+    replace(/%24/g, '$').
+    replace(/%2C/gi, ',').
+    replace(/%20/g, '+').
+    replace(/%5B/gi, '[').
+    replace(/%5D/gi, ']');
+}
+
+/**
+ * Build a URL by appending params to the end
+ *
+ * @param {string} url The base of the url (e.g., http://www.google.com)
+ * @param {object} [params] The params to be appended
+ * @returns {string} The formatted url
+ */
+module.exports = function buildURL(url, params, paramsSerializer) {
+  /*eslint no-param-reassign:0*/
+  if (!params) {
+    return url;
+  }
+
+  var serializedParams;
+  if (paramsSerializer) {
+    serializedParams = paramsSerializer(params);
+  } else if (utils.isURLSearchParams(params)) {
+    serializedParams = params.toString();
+  } else {
+    var parts = [];
+
+    utils.forEach(params, function serialize(val, key) {
+      if (val === null || typeof val === 'undefined') {
+        return;
+      }
+
+      if (utils.isArray(val)) {
+        key = key + '[]';
+      } else {
+        val = [val];
+      }
+
+      utils.forEach(val, function parseValue(v) {
+        if (utils.isDate(v)) {
+          v = v.toISOString();
+        } else if (utils.isObject(v)) {
+          v = JSON.stringify(v);
+        }
+        parts.push(encode(key) + '=' + encode(v));
+      });
+    });
+
+    serializedParams = parts.join('&');
+  }
+
+  if (serializedParams) {
+    var hashmarkIndex = url.indexOf('#');
+    if (hashmarkIndex !== -1) {
+      url = url.slice(0, hashmarkIndex);
+    }
+
+    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
+  }
+
+  return url;
+};
+
+
+/***/ }),
+
+/***/ "./lib/helpers/combineURLs.js":
+/*!************************************!*\
+  !*** ./lib/helpers/combineURLs.js ***!
+  \************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+/**
+ * Creates a new URL by combining the specified URLs
+ *
+ * @param {string} baseURL The base URL
+ * @param {string} relativeURL The relative URL
+ * @returns {string} The combined URL
+ */
+module.exports = function combineURLs(baseURL, relativeURL) {
+  return relativeURL
+    ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
+    : baseURL;
+};
+
+
+/***/ }),
+
+/***/ "./lib/helpers/cookies.js":
+/*!********************************!*\
+  !*** ./lib/helpers/cookies.js ***!
+  \********************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./../utils */ "./lib/utils.js");
+
+module.exports = (
+  utils.isStandardBrowserEnv() ?
+
+  // Standard browser envs support document.cookie
+    (function standardBrowserEnv() {
+      return {
+        write: function write(name, value, expires, path, domain, secure) {
+          var cookie = [];
+          cookie.push(name + '=' + encodeURIComponent(value));
+
+          if (utils.isNumber(expires)) {
+            cookie.push('expires=' + new Date(expires).toGMTString());
+          }
+
+          if (utils.isString(path)) {
+            cookie.push('path=' + path);
+          }
+
+          if (utils.isString(domain)) {
+            cookie.push('domain=' + domain);
+          }
+
+          if (secure === true) {
+            cookie.push('secure');
+          }
+
+          document.cookie = cookie.join('; ');
+        },
+
+        read: function read(name) {
+          var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
+          return (match ? decodeURIComponent(match[3]) : null);
+        },
+
+        remove: function remove(name) {
+          this.write(name, '', Date.now() - 86400000);
+        }
+      };
+    })() :
+
+  // Non standard browser env (web workers, react-native) lack needed support.
+    (function nonStandardBrowserEnv() {
+      return {
+        write: function write() {},
+        read: function read() { return null; },
+        remove: function remove() {}
+      };
+    })()
+);
+
+
+/***/ }),
+
+/***/ "./lib/helpers/isAbsoluteURL.js":
+/*!**************************************!*\
+  !*** ./lib/helpers/isAbsoluteURL.js ***!
+  \**************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+/**
+ * Determines whether the specified URL is absolute
+ *
+ * @param {string} url The URL to test
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
+ */
+module.exports = function isAbsoluteURL(url) {
+  // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
+  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
+  // by any combination of letters, digits, plus, period, or hyphen.
+  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
+};
+
+
+/***/ }),
+
+/***/ "./lib/helpers/isAxiosError.js":
+/*!*************************************!*\
+  !*** ./lib/helpers/isAxiosError.js ***!
+  \*************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./../utils */ "./lib/utils.js");
+
+/**
+ * Determines whether the payload is an error thrown by Axios
+ *
+ * @param {*} payload The value to test
+ * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
+ */
+module.exports = function isAxiosError(payload) {
+  return utils.isObject(payload) && (payload.isAxiosError === true);
+};
+
+
+/***/ }),
+
+/***/ "./lib/helpers/isURLSameOrigin.js":
+/*!****************************************!*\
+  !*** ./lib/helpers/isURLSameOrigin.js ***!
+  \****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./../utils */ "./lib/utils.js");
+
+module.exports = (
+  utils.isStandardBrowserEnv() ?
+
+  // Standard browser envs have full support of the APIs needed to test
+  // whether the request URL is of the same origin as current location.
+    (function standardBrowserEnv() {
+      var msie = /(msie|trident)/i.test(navigator.userAgent);
+      var urlParsingNode = document.createElement('a');
+      var originURL;
+
+      /**
+    * Parse a URL to discover it's components
+    *
+    * @param {String} url The URL to be parsed
+    * @returns {Object}
+    */
+      function resolveURL(url) {
+        var href = url;
+
+        if (msie) {
+        // IE needs attribute set twice to normalize properties
+          urlParsingNode.setAttribute('href', href);
+          href = urlParsingNode.href;
+        }
+
+        urlParsingNode.setAttribute('href', href);
+
+        // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
+        return {
+          href: urlParsingNode.href,
+          protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
+          host: urlParsingNode.host,
+          search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
+          hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
+          hostname: urlParsingNode.hostname,
+          port: urlParsingNode.port,
+          pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
+            urlParsingNode.pathname :
+            '/' + urlParsingNode.pathname
+        };
+      }
+
+      originURL = resolveURL(window.location.href);
+
+      /**
+    * Determine if a URL shares the same origin as the current location
+    *
+    * @param {String} requestURL The URL to test
+    * @returns {boolean} True if URL shares the same origin, otherwise false
+    */
+      return function isURLSameOrigin(requestURL) {
+        var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
+        return (parsed.protocol === originURL.protocol &&
+            parsed.host === originURL.host);
+      };
+    })() :
+
+  // Non standard browser envs (web workers, react-native) lack needed support.
+    (function nonStandardBrowserEnv() {
+      return function isURLSameOrigin() {
+        return true;
+      };
+    })()
+);
+
+
+/***/ }),
+
+/***/ "./lib/helpers/normalizeHeaderName.js":
+/*!********************************************!*\
+  !*** ./lib/helpers/normalizeHeaderName.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ../utils */ "./lib/utils.js");
+
+module.exports = function normalizeHeaderName(headers, normalizedName) {
+  utils.forEach(headers, function processHeader(value, name) {
+    if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
+      headers[normalizedName] = value;
+      delete headers[name];
+    }
+  });
+};
+
+
+/***/ }),
+
+/***/ "./lib/helpers/parseHeaders.js":
+/*!*************************************!*\
+  !*** ./lib/helpers/parseHeaders.js ***!
+  \*************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./../utils */ "./lib/utils.js");
+
+// Headers whose duplicates are ignored by node
+// c.f. https://nodejs.org/api/http.html#http_message_headers
+var ignoreDuplicateOf = [
+  'age', 'authorization', 'content-length', 'content-type', 'etag',
+  'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
+  'last-modified', 'location', 'max-forwards', 'proxy-authorization',
+  'referer', 'retry-after', 'user-agent'
+];
+
+/**
+ * Parse headers into an object
+ *
+ * ```
+ * Date: Wed, 27 Aug 2014 08:58:49 GMT
+ * Content-Type: application/json
+ * Connection: keep-alive
+ * Transfer-Encoding: chunked
+ * ```
+ *
+ * @param {String} headers Headers needing to be parsed
+ * @returns {Object} Headers parsed into an object
+ */
+module.exports = function parseHeaders(headers) {
+  var parsed = {};
+  var key;
+  var val;
+  var i;
+
+  if (!headers) { return parsed; }
+
+  utils.forEach(headers.split('\n'), function parser(line) {
+    i = line.indexOf(':');
+    key = utils.trim(line.substr(0, i)).toLowerCase();
+    val = utils.trim(line.substr(i + 1));
+
+    if (key) {
+      if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
+        return;
+      }
+      if (key === 'set-cookie') {
+        parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
+      } else {
+        parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
+      }
+    }
+  });
+
+  return parsed;
+};
+
+
+/***/ }),
+
+/***/ "./lib/helpers/spread.js":
+/*!*******************************!*\
+  !*** ./lib/helpers/spread.js ***!
+  \*******************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+/**
+ * Syntactic sugar for invoking a function and expanding an array for arguments.
+ *
+ * Common use case would be to use `Function.prototype.apply`.
+ *
+ *  ```js
+ *  function f(x, y, z) {}
+ *  var args = [1, 2, 3];
+ *  f.apply(null, args);
+ *  ```
+ *
+ * With `spread` this example can be re-written.
+ *
+ *  ```js
+ *  spread(function(x, y, z) {})([1, 2, 3]);
+ *  ```
+ *
+ * @param {Function} callback
+ * @returns {Function}
+ */
+module.exports = function spread(callback) {
+  return function wrap(arr) {
+    return callback.apply(null, arr);
+  };
+};
+
+
+/***/ }),
+
+/***/ "./lib/helpers/validator.js":
+/*!**********************************!*\
+  !*** ./lib/helpers/validator.js ***!
+  \**********************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var VERSION = __webpack_require__(/*! ../env/data */ "./lib/env/data.js").version;
+
+var validators = {};
+
+// eslint-disable-next-line func-names
+['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
+  validators[type] = function validator(thing) {
+    return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
+  };
+});
+
+var deprecatedWarnings = {};
+
+/**
+ * Transitional option validator
+ * @param {function|boolean?} validator - set to false if the transitional option has been removed
+ * @param {string?} version - deprecated version / removed since version
+ * @param {string?} message - some message with additional info
+ * @returns {function}
+ */
+validators.transitional = function transitional(validator, version, message) {
+  function formatMessage(opt, desc) {
+    return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
+  }
+
+  // eslint-disable-next-line func-names
+  return function(value, opt, opts) {
+    if (validator === false) {
+      throw new Error(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')));
+    }
+
+    if (version && !deprecatedWarnings[opt]) {
+      deprecatedWarnings[opt] = true;
+      // eslint-disable-next-line no-console
+      console.warn(
+        formatMessage(
+          opt,
+          ' has been deprecated since v' + version + ' and will be removed in the near future'
+        )
+      );
+    }
+
+    return validator ? validator(value, opt, opts) : true;
+  };
+};
+
+/**
+ * Assert object's properties type
+ * @param {object} options
+ * @param {object} schema
+ * @param {boolean?} allowUnknown
+ */
+
+function assertOptions(options, schema, allowUnknown) {
+  if (typeof options !== 'object') {
+    throw new TypeError('options must be an object');
+  }
+  var keys = Object.keys(options);
+  var i = keys.length;
+  while (i-- > 0) {
+    var opt = keys[i];
+    var validator = schema[opt];
+    if (validator) {
+      var value = options[opt];
+      var result = value === undefined || validator(value, opt, options);
+      if (result !== true) {
+        throw new TypeError('option ' + opt + ' must be ' + result);
+      }
+      continue;
+    }
+    if (allowUnknown !== true) {
+      throw Error('Unknown option ' + opt);
+    }
+  }
+}
+
+module.exports = {
+  assertOptions: assertOptions,
+  validators: validators
+};
+
+
+/***/ }),
+
+/***/ "./lib/utils.js":
+/*!**********************!*\
+  !*** ./lib/utils.js ***!
+  \**********************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var bind = __webpack_require__(/*! ./helpers/bind */ "./lib/helpers/bind.js");
+
+// utils is a library of generic helper functions non-specific to axios
+
+var toString = Object.prototype.toString;
+
+/**
+ * Determine if a value is an Array
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is an Array, otherwise false
+ */
+function isArray(val) {
+  return Array.isArray(val);
+}
+
+/**
+ * Determine if a value is undefined
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if the value is undefined, otherwise false
+ */
+function isUndefined(val) {
+  return typeof val === 'undefined';
+}
+
+/**
+ * Determine if a value is a Buffer
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a Buffer, otherwise false
+ */
+function isBuffer(val) {
+  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
+    && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
+}
+
+/**
+ * Determine if a value is an ArrayBuffer
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is an ArrayBuffer, otherwise false
+ */
+function isArrayBuffer(val) {
+  return toString.call(val) === '[object ArrayBuffer]';
+}
+
+/**
+ * Determine if a value is a FormData
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is an FormData, otherwise false
+ */
+function isFormData(val) {
+  return toString.call(val) === '[object FormData]';
+}
+
+/**
+ * Determine if a value is a view on an ArrayBuffer
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
+ */
+function isArrayBufferView(val) {
+  var result;
+  if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
+    result = ArrayBuffer.isView(val);
+  } else {
+    result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
+  }
+  return result;
+}
+
+/**
+ * Determine if a value is a String
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a String, otherwise false
+ */
+function isString(val) {
+  return typeof val === 'string';
+}
+
+/**
+ * Determine if a value is a Number
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a Number, otherwise false
+ */
+function isNumber(val) {
+  return typeof val === 'number';
+}
+
+/**
+ * Determine if a value is an Object
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is an Object, otherwise false
+ */
+function isObject(val) {
+  return val !== null && typeof val === 'object';
+}
+
+/**
+ * Determine if a value is a plain Object
+ *
+ * @param {Object} val The value to test
+ * @return {boolean} True if value is a plain Object, otherwise false
+ */
+function isPlainObject(val) {
+  if (toString.call(val) !== '[object Object]') {
+    return false;
+  }
+
+  var prototype = Object.getPrototypeOf(val);
+  return prototype === null || prototype === Object.prototype;
+}
+
+/**
+ * Determine if a value is a Date
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a Date, otherwise false
+ */
+function isDate(val) {
+  return toString.call(val) === '[object Date]';
+}
+
+/**
+ * Determine if a value is a File
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a File, otherwise false
+ */
+function isFile(val) {
+  return toString.call(val) === '[object File]';
+}
+
+/**
+ * Determine if a value is a Blob
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a Blob, otherwise false
+ */
+function isBlob(val) {
+  return toString.call(val) === '[object Blob]';
+}
+
+/**
+ * Determine if a value is a Function
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a Function, otherwise false
+ */
+function isFunction(val) {
+  return toString.call(val) === '[object Function]';
+}
+
+/**
+ * Determine if a value is a Stream
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a Stream, otherwise false
+ */
+function isStream(val) {
+  return isObject(val) && isFunction(val.pipe);
+}
+
+/**
+ * Determine if a value is a URLSearchParams object
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a URLSearchParams object, otherwise false
+ */
+function isURLSearchParams(val) {
+  return toString.call(val) === '[object URLSearchParams]';
+}
+
+/**
+ * Trim excess whitespace off the beginning and end of a string
+ *
+ * @param {String} str The String to trim
+ * @returns {String} The String freed of excess whitespace
+ */
+function trim(str) {
+  return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
+}
+
+/**
+ * Determine if we're running in a standard browser environment
+ *
+ * This allows axios to run in a web worker, and react-native.
+ * Both environments support XMLHttpRequest, but not fully standard globals.
+ *
+ * web workers:
+ *  typeof window -> undefined
+ *  typeof document -> undefined
+ *
+ * react-native:
+ *  navigator.product -> 'ReactNative'
+ * nativescript
+ *  navigator.product -> 'NativeScript' or 'NS'
+ */
+function isStandardBrowserEnv() {
+  if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
+                                           navigator.product === 'NativeScript' ||
+                                           navigator.product === 'NS')) {
+    return false;
+  }
+  return (
+    typeof window !== 'undefined' &&
+    typeof document !== 'undefined'
+  );
+}
+
+/**
+ * Iterate over an Array or an Object invoking a function for each item.
+ *
+ * If `obj` is an Array callback will be called passing
+ * the value, index, and complete array for each item.
+ *
+ * If 'obj' is an Object callback will be called passing
+ * the value, key, and complete object for each property.
+ *
+ * @param {Object|Array} obj The object to iterate
+ * @param {Function} fn The callback to invoke for each item
+ */
+function forEach(obj, fn) {
+  // Don't bother if no value provided
+  if (obj === null || typeof obj === 'undefined') {
+    return;
+  }
+
+  // Force an array if not already something iterable
+  if (typeof obj !== 'object') {
+    /*eslint no-param-reassign:0*/
+    obj = [obj];
+  }
+
+  if (isArray(obj)) {
+    // Iterate over array values
+    for (var i = 0, l = obj.length; i < l; i++) {
+      fn.call(null, obj[i], i, obj);
+    }
+  } else {
+    // Iterate over object keys
+    for (var key in obj) {
+      if (Object.prototype.hasOwnProperty.call(obj, key)) {
+        fn.call(null, obj[key], key, obj);
+      }
+    }
+  }
+}
+
+/**
+ * Accepts varargs expecting each argument to be an object, then
+ * immutably merges the properties of each object and returns result.
+ *
+ * When multiple objects contain the same key the later object in
+ * the arguments list will take precedence.
+ *
+ * Example:
+ *
+ * ```js
+ * var result = merge({foo: 123}, {foo: 456});
+ * console.log(result.foo); // outputs 456
+ * ```
+ *
+ * @param {Object} obj1 Object to merge
+ * @returns {Object} Result of all merge properties
+ */
+function merge(/* obj1, obj2, obj3, ... */) {
+  var result = {};
+  function assignValue(val, key) {
+    if (isPlainObject(result[key]) && isPlainObject(val)) {
+      result[key] = merge(result[key], val);
+    } else if (isPlainObject(val)) {
+      result[key] = merge({}, val);
+    } else if (isArray(val)) {
+      result[key] = val.slice();
+    } else {
+      result[key] = val;
+    }
+  }
+
+  for (var i = 0, l = arguments.length; i < l; i++) {
+    forEach(arguments[i], assignValue);
+  }
+  return result;
+}
+
+/**
+ * Extends object a by mutably adding to it the properties of object b.
+ *
+ * @param {Object} a The object to be extended
+ * @param {Object} b The object to copy properties from
+ * @param {Object} thisArg The object to bind function to
+ * @return {Object} The resulting value of object a
+ */
+function extend(a, b, thisArg) {
+  forEach(b, function assignValue(val, key) {
+    if (thisArg && typeof val === 'function') {
+      a[key] = bind(val, thisArg);
+    } else {
+      a[key] = val;
+    }
+  });
+  return a;
+}
+
+/**
+ * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
+ *
+ * @param {string} content with BOM
+ * @return {string} content value without BOM
+ */
+function stripBOM(content) {
+  if (content.charCodeAt(0) === 0xFEFF) {
+    content = content.slice(1);
+  }
+  return content;
+}
+
+module.exports = {
+  isArray: isArray,
+  isArrayBuffer: isArrayBuffer,
+  isBuffer: isBuffer,
+  isFormData: isFormData,
+  isArrayBufferView: isArrayBufferView,
+  isString: isString,
+  isNumber: isNumber,
+  isObject: isObject,
+  isPlainObject: isPlainObject,
+  isUndefined: isUndefined,
+  isDate: isDate,
+  isFile: isFile,
+  isBlob: isBlob,
+  isFunction: isFunction,
+  isStream: isStream,
+  isURLSearchParams: isURLSearchParams,
+  isStandardBrowserEnv: isStandardBrowserEnv,
+  forEach: forEach,
+  merge: merge,
+  extend: extend,
+  trim: trim,
+  stripBOM: stripBOM
+};
+
+
+/***/ })
+
+/******/ });
+});
+//# sourceMappingURL=axios.map

Plik diff jest za duży
+ 0 - 0
node_modules/axios/dist/axios.map


Plik diff jest za duży
+ 0 - 0
node_modules/axios/dist/axios.min.js


Plik diff jest za duży
+ 0 - 0
node_modules/axios/dist/axios.min.map


+ 221 - 0
node_modules/axios/index.d.ts

@@ -0,0 +1,221 @@
+// TypeScript Version: 3.0
+
+export type AxiosRequestHeaders = Record<string, string | number | boolean>;
+
+export type AxiosResponseHeaders = Record<string, string> & {
+  "set-cookie"?: string[]
+};
+
+export interface AxiosRequestTransformer {
+  (data: any, headers?: AxiosRequestHeaders): any;
+}
+
+export interface AxiosResponseTransformer {
+  (data: any, headers?: AxiosResponseHeaders): any;
+}
+
+export interface AxiosAdapter {
+  (config: AxiosRequestConfig): AxiosPromise;
+}
+
+export interface AxiosBasicCredentials {
+  username: string;
+  password: string;
+}
+
+export interface AxiosProxyConfig {
+  host: string;
+  port: number;
+  auth?: {
+    username: string;
+    password: string;
+  };
+  protocol?: string;
+}
+
+export type Method =
+  | 'get' | 'GET'
+  | 'delete' | 'DELETE'
+  | 'head' | 'HEAD'
+  | 'options' | 'OPTIONS'
+  | 'post' | 'POST'
+  | 'put' | 'PUT'
+  | 'patch' | 'PATCH'
+  | 'purge' | 'PURGE'
+  | 'link' | 'LINK'
+  | 'unlink' | 'UNLINK';
+
+export type ResponseType =
+  | 'arraybuffer'
+  | 'blob'
+  | 'document'
+  | 'json'
+  | 'text'
+  | 'stream';
+
+  export type responseEncoding =
+  | 'ascii' | 'ASCII'
+  | 'ansi' | 'ANSI'
+  | 'binary' | 'BINARY'
+  | 'base64' | 'BASE64'
+  | 'base64url' | 'BASE64URL'
+  | 'hex' | 'HEX'
+  | 'latin1' | 'LATIN1'
+  | 'ucs-2' | 'UCS-2'
+  | 'ucs2' | 'UCS2'
+  | 'utf-8' | 'UTF-8'
+  | 'utf8' | 'UTF8'
+  | 'utf16le' | 'UTF16LE';
+
+export interface TransitionalOptions {
+  silentJSONParsing?: boolean;
+  forcedJSONParsing?: boolean;
+  clarifyTimeoutError?: boolean;
+}
+
+export interface AxiosRequestConfig<D = any> {
+  url?: string;
+  method?: Method;
+  baseURL?: string;
+  transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
+  transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
+  headers?: AxiosRequestHeaders;
+  params?: any;
+  paramsSerializer?: (params: any) => string;
+  data?: D;
+  timeout?: number;
+  timeoutErrorMessage?: string;
+  withCredentials?: boolean;
+  adapter?: AxiosAdapter;
+  auth?: AxiosBasicCredentials;
+  responseType?: ResponseType;
+  responseEncoding?: responseEncoding | string;
+  xsrfCookieName?: string;
+  xsrfHeaderName?: string;
+  onUploadProgress?: (progressEvent: any) => void;
+  onDownloadProgress?: (progressEvent: any) => void;
+  maxContentLength?: number;
+  validateStatus?: ((status: number) => boolean) | null;
+  maxBodyLength?: number;
+  maxRedirects?: number;
+  socketPath?: string | null;
+  httpAgent?: any;
+  httpsAgent?: any;
+  proxy?: AxiosProxyConfig | false;
+  cancelToken?: CancelToken;
+  decompress?: boolean;
+  transitional?: TransitionalOptions;
+  signal?: AbortSignal;
+  insecureHTTPParser?: boolean;
+}
+
+export interface HeadersDefaults {
+  common: AxiosRequestHeaders;
+  delete: AxiosRequestHeaders;
+  get: AxiosRequestHeaders;
+  head: AxiosRequestHeaders;
+  post: AxiosRequestHeaders;
+  put: AxiosRequestHeaders;
+  patch: AxiosRequestHeaders;
+  options?: AxiosRequestHeaders;
+  purge?: AxiosRequestHeaders;
+  link?: AxiosRequestHeaders;
+  unlink?: AxiosRequestHeaders;
+}
+
+export interface AxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
+  headers: HeadersDefaults;
+}
+
+export interface AxiosResponse<T = any, D = any>  {
+  data: T;
+  status: number;
+  statusText: string;
+  headers: AxiosResponseHeaders;
+  config: AxiosRequestConfig<D>;
+  request?: any;
+}
+
+export interface AxiosError<T = any, D = any> extends Error {
+  config: AxiosRequestConfig<D>;
+  code?: string;
+  request?: any;
+  response?: AxiosResponse<T, D>;
+  isAxiosError: boolean;
+  toJSON: () => object;
+}
+
+export interface AxiosPromise<T = any> extends Promise<AxiosResponse<T>> {
+}
+
+export interface CancelStatic {
+  new (message?: string): Cancel;
+}
+
+export interface Cancel {
+  message: string | undefined;
+}
+
+export interface Canceler {
+  (message?: string): void;
+}
+
+export interface CancelTokenStatic {
+  new (executor: (cancel: Canceler) => void): CancelToken;
+  source(): CancelTokenSource;
+}
+
+export interface CancelToken {
+  promise: Promise<Cancel>;
+  reason?: Cancel;
+  throwIfRequested(): void;
+}
+
+export interface CancelTokenSource {
+  token: CancelToken;
+  cancel: Canceler;
+}
+
+export interface AxiosInterceptorManager<V> {
+  use<T = V>(onFulfilled?: (value: V) => T | Promise<T>, onRejected?: (error: any) => any): number;
+  eject(id: number): void;
+}
+
+export class Axios {
+  constructor(config?: AxiosRequestConfig);
+  defaults: AxiosDefaults;
+  interceptors: {
+    request: AxiosInterceptorManager<AxiosRequestConfig>;
+    response: AxiosInterceptorManager<AxiosResponse>;
+  };
+  getUri(config?: AxiosRequestConfig): string;
+  request<T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
+  get<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
+  delete<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
+  head<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
+  options<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
+  post<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
+  put<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
+  patch<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
+}
+
+export interface AxiosInstance extends Axios {
+  (config: AxiosRequestConfig): AxiosPromise;
+  (url: string, config?: AxiosRequestConfig): AxiosPromise;
+}
+
+export interface AxiosStatic extends AxiosInstance {
+  create(config?: AxiosRequestConfig): AxiosInstance;
+  Cancel: CancelStatic;
+  CancelToken: CancelTokenStatic;
+  Axios: typeof Axios;
+  readonly VERSION: string;
+  isCancel(value: any): boolean;
+  all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
+  spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R;
+  isAxiosError(payload: any): payload is AxiosError;
+}
+
+declare const axios: AxiosStatic;
+
+export default axios;

+ 1 - 0
node_modules/axios/index.js

@@ -0,0 +1 @@
+module.exports = require('./lib/axios');

+ 37 - 0
node_modules/axios/lib/adapters/README.md

@@ -0,0 +1,37 @@
+# axios // adapters
+
+The modules under `adapters/` are modules that handle dispatching a request and settling a returned `Promise` once a response is received.
+
+## Example
+
+```js
+var settle = require('./../core/settle');
+
+module.exports = function myAdapter(config) {
+  // At this point:
+  //  - config has been merged with defaults
+  //  - request transformers have already run
+  //  - request interceptors have already run
+  
+  // Make the request using config provided
+  // Upon response settle the Promise
+
+  return new Promise(function(resolve, reject) {
+  
+    var response = {
+      data: responseData,
+      status: request.status,
+      statusText: request.statusText,
+      headers: responseHeaders,
+      config: config,
+      request: request
+    };
+
+    settle(resolve, reject, response);
+
+    // From here:
+    //  - response transformers will run
+    //  - response interceptors will run
+  });
+}
+```

+ 404 - 0
node_modules/axios/lib/adapters/http.js

@@ -0,0 +1,404 @@
+'use strict';
+
+var utils = require('./../utils');
+var settle = require('./../core/settle');
+var buildFullPath = require('../core/buildFullPath');
+var buildURL = require('./../helpers/buildURL');
+var http = require('http');
+var https = require('https');
+var httpFollow = require('follow-redirects').http;
+var httpsFollow = require('follow-redirects').https;
+var url = require('url');
+var zlib = require('zlib');
+var VERSION = require('./../env/data').version;
+var createError = require('../core/createError');
+var enhanceError = require('../core/enhanceError');
+var defaults = require('../defaults');
+var Cancel = require('../cancel/Cancel');
+
+var isHttps = /https:?/;
+
+/**
+ *
+ * @param {http.ClientRequestArgs} options
+ * @param {AxiosProxyConfig} proxy
+ * @param {string} location
+ */
+function setProxy(options, proxy, location) {
+  options.hostname = proxy.host;
+  options.host = proxy.host;
+  options.port = proxy.port;
+  options.path = location;
+
+  // Basic proxy authorization
+  if (proxy.auth) {
+    var base64 = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64');
+    options.headers['Proxy-Authorization'] = 'Basic ' + base64;
+  }
+
+  // If a proxy is used, any redirects must also pass through the proxy
+  options.beforeRedirect = function beforeRedirect(redirection) {
+    redirection.headers.host = redirection.host;
+    setProxy(redirection, proxy, redirection.href);
+  };
+}
+
+/*eslint consistent-return:0*/
+module.exports = function httpAdapter(config) {
+  return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {
+    var onCanceled;
+    function done() {
+      if (config.cancelToken) {
+        config.cancelToken.unsubscribe(onCanceled);
+      }
+
+      if (config.signal) {
+        config.signal.removeEventListener('abort', onCanceled);
+      }
+    }
+    var resolve = function resolve(value) {
+      done();
+      resolvePromise(value);
+    };
+    var rejected = false;
+    var reject = function reject(value) {
+      done();
+      rejected = true;
+      rejectPromise(value);
+    };
+    var data = config.data;
+    var headers = config.headers;
+    var headerNames = {};
+
+    Object.keys(headers).forEach(function storeLowerName(name) {
+      headerNames[name.toLowerCase()] = name;
+    });
+
+    // Set User-Agent (required by some servers)
+    // See https://github.com/axios/axios/issues/69
+    if ('user-agent' in headerNames) {
+      // User-Agent is specified; handle case where no UA header is desired
+      if (!headers[headerNames['user-agent']]) {
+        delete headers[headerNames['user-agent']];
+      }
+      // Otherwise, use specified value
+    } else {
+      // Only set header if it hasn't been set in config
+      headers['User-Agent'] = 'axios/' + VERSION;
+    }
+
+    if (data && !utils.isStream(data)) {
+      if (Buffer.isBuffer(data)) {
+        // Nothing to do...
+      } else if (utils.isArrayBuffer(data)) {
+        data = Buffer.from(new Uint8Array(data));
+      } else if (utils.isString(data)) {
+        data = Buffer.from(data, 'utf-8');
+      } else {
+        return reject(createError(
+          'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',
+          config
+        ));
+      }
+
+      if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
+        return reject(createError('Request body larger than maxBodyLength limit', config));
+      }
+
+      // Add Content-Length header if data exists
+      if (!headerNames['content-length']) {
+        headers['Content-Length'] = data.length;
+      }
+    }
+
+    // HTTP basic authentication
+    var auth = undefined;
+    if (config.auth) {
+      var username = config.auth.username || '';
+      var password = config.auth.password || '';
+      auth = username + ':' + password;
+    }
+
+    // Parse url
+    var fullPath = buildFullPath(config.baseURL, config.url);
+    var parsed = url.parse(fullPath);
+    var protocol = parsed.protocol || 'http:';
+
+    if (!auth && parsed.auth) {
+      var urlAuth = parsed.auth.split(':');
+      var urlUsername = urlAuth[0] || '';
+      var urlPassword = urlAuth[1] || '';
+      auth = urlUsername + ':' + urlPassword;
+    }
+
+    if (auth && headerNames.authorization) {
+      delete headers[headerNames.authorization];
+    }
+
+    var isHttpsRequest = isHttps.test(protocol);
+    var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
+
+    try {
+      buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\?/, '');
+    } catch (err) {
+      var customErr = new Error(err.message);
+      customErr.config = config;
+      customErr.url = config.url;
+      customErr.exists = true;
+      reject(customErr);
+    }
+
+    var options = {
+      path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\?/, ''),
+      method: config.method.toUpperCase(),
+      headers: headers,
+      agent: agent,
+      agents: { http: config.httpAgent, https: config.httpsAgent },
+      auth: auth
+    };
+
+    if (config.socketPath) {
+      options.socketPath = config.socketPath;
+    } else {
+      options.hostname = parsed.hostname;
+      options.port = parsed.port;
+    }
+
+    var proxy = config.proxy;
+    if (!proxy && proxy !== false) {
+      var proxyEnv = protocol.slice(0, -1) + '_proxy';
+      var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];
+      if (proxyUrl) {
+        var parsedProxyUrl = url.parse(proxyUrl);
+        var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY;
+        var shouldProxy = true;
+
+        if (noProxyEnv) {
+          var noProxy = noProxyEnv.split(',').map(function trim(s) {
+            return s.trim();
+          });
+
+          shouldProxy = !noProxy.some(function proxyMatch(proxyElement) {
+            if (!proxyElement) {
+              return false;
+            }
+            if (proxyElement === '*') {
+              return true;
+            }
+            if (proxyElement[0] === '.' &&
+                parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {
+              return true;
+            }
+
+            return parsed.hostname === proxyElement;
+          });
+        }
+
+        if (shouldProxy) {
+          proxy = {
+            host: parsedProxyUrl.hostname,
+            port: parsedProxyUrl.port,
+            protocol: parsedProxyUrl.protocol
+          };
+
+          if (parsedProxyUrl.auth) {
+            var proxyUrlAuth = parsedProxyUrl.auth.split(':');
+            proxy.auth = {
+              username: proxyUrlAuth[0],
+              password: proxyUrlAuth[1]
+            };
+          }
+        }
+      }
+    }
+
+    if (proxy) {
+      options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : '');
+      setProxy(options, proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);
+    }
+
+    var transport;
+    var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true);
+    if (config.transport) {
+      transport = config.transport;
+    } else if (config.maxRedirects === 0) {
+      transport = isHttpsProxy ? https : http;
+    } else {
+      if (config.maxRedirects) {
+        options.maxRedirects = config.maxRedirects;
+      }
+      transport = isHttpsProxy ? httpsFollow : httpFollow;
+    }
+
+    if (config.maxBodyLength > -1) {
+      options.maxBodyLength = config.maxBodyLength;
+    }
+
+    if (config.insecureHTTPParser) {
+      options.insecureHTTPParser = config.insecureHTTPParser;
+    }
+
+    // Create the request
+    var req = transport.request(options, function handleResponse(res) {
+      if (req.aborted) return;
+
+      // uncompress the response body transparently if required
+      var stream = res;
+
+      // return the last request in case of redirects
+      var lastRequest = res.req || req;
+
+
+      // if no content, is HEAD request or decompress disabled we should not decompress
+      if (res.statusCode !== 204 && lastRequest.method !== 'HEAD' && config.decompress !== false) {
+        switch (res.headers['content-encoding']) {
+        /*eslint default-case:0*/
+        case 'gzip':
+        case 'compress':
+        case 'deflate':
+        // add the unzipper to the body stream processing pipeline
+          stream = stream.pipe(zlib.createUnzip());
+
+          // remove the content-encoding in order to not confuse downstream operations
+          delete res.headers['content-encoding'];
+          break;
+        }
+      }
+
+      var response = {
+        status: res.statusCode,
+        statusText: res.statusMessage,
+        headers: res.headers,
+        config: config,
+        request: lastRequest
+      };
+
+      if (config.responseType === 'stream') {
+        response.data = stream;
+        settle(resolve, reject, response);
+      } else {
+        var responseBuffer = [];
+        var totalResponseBytes = 0;
+        stream.on('data', function handleStreamData(chunk) {
+          responseBuffer.push(chunk);
+          totalResponseBytes += chunk.length;
+
+          // make sure the content length is not over the maxContentLength if specified
+          if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
+            // stream.destoy() emit aborted event before calling reject() on Node.js v16
+            rejected = true;
+            stream.destroy();
+            reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',
+              config, null, lastRequest));
+          }
+        });
+
+        stream.on('aborted', function handlerStreamAborted() {
+          if (rejected) {
+            return;
+          }
+          stream.destroy();
+          reject(createError('error request aborted', config, 'ERR_REQUEST_ABORTED', lastRequest));
+        });
+
+        stream.on('error', function handleStreamError(err) {
+          if (req.aborted) return;
+          reject(enhanceError(err, config, null, lastRequest));
+        });
+
+        stream.on('end', function handleStreamEnd() {
+          try {
+            var responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer);
+            if (config.responseType !== 'arraybuffer') {
+              responseData = responseData.toString(config.responseEncoding);
+              if (!config.responseEncoding || config.responseEncoding === 'utf8') {
+                responseData = utils.stripBOM(responseData);
+              }
+            }
+            response.data = responseData;
+          } catch (err) {
+            reject(enhanceError(err, config, err.code, response.request, response));
+          }
+          settle(resolve, reject, response);
+        });
+      }
+    });
+
+    // Handle errors
+    req.on('error', function handleRequestError(err) {
+      if (req.aborted && err.code !== 'ERR_FR_TOO_MANY_REDIRECTS') return;
+      reject(enhanceError(err, config, null, req));
+    });
+
+    // set tcp keep alive to prevent drop connection by peer
+    req.on('socket', function handleRequestSocket(socket) {
+      // default interval of sending ack packet is 1 minute
+      socket.setKeepAlive(true, 1000 * 60);
+    });
+
+    // Handle request timeout
+    if (config.timeout) {
+      // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.
+      var timeout = parseInt(config.timeout, 10);
+
+      if (isNaN(timeout)) {
+        reject(createError(
+          'error trying to parse `config.timeout` to int',
+          config,
+          'ERR_PARSE_TIMEOUT',
+          req
+        ));
+
+        return;
+      }
+
+      // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.
+      // And timer callback will be fired, and abort() will be invoked before connection, then get "socket hang up" and code ECONNRESET.
+      // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.
+      // And then these socket which be hang up will devoring CPU little by little.
+      // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.
+      req.setTimeout(timeout, function handleRequestTimeout() {
+        req.abort();
+        var timeoutErrorMessage = '';
+        if (config.timeoutErrorMessage) {
+          timeoutErrorMessage = config.timeoutErrorMessage;
+        } else {
+          timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
+        }
+        var transitional = config.transitional || defaults.transitional;
+        reject(createError(
+          timeoutErrorMessage,
+          config,
+          transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
+          req
+        ));
+      });
+    }
+
+    if (config.cancelToken || config.signal) {
+      // Handle cancellation
+      // eslint-disable-next-line func-names
+      onCanceled = function(cancel) {
+        if (req.aborted) return;
+
+        req.abort();
+        reject(!cancel || (cancel && cancel.type) ? new Cancel('canceled') : cancel);
+      };
+
+      config.cancelToken && config.cancelToken.subscribe(onCanceled);
+      if (config.signal) {
+        config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
+      }
+    }
+
+
+    // Send the request
+    if (utils.isStream(data)) {
+      data.on('error', function handleStreamError(err) {
+        reject(enhanceError(err, config, null, req));
+      }).pipe(req);
+    } else {
+      req.end(data);
+    }
+  });
+};

+ 212 - 0
node_modules/axios/lib/adapters/xhr.js

@@ -0,0 +1,212 @@
+'use strict';
+
+var utils = require('./../utils');
+var settle = require('./../core/settle');
+var cookies = require('./../helpers/cookies');
+var buildURL = require('./../helpers/buildURL');
+var buildFullPath = require('../core/buildFullPath');
+var parseHeaders = require('./../helpers/parseHeaders');
+var isURLSameOrigin = require('./../helpers/isURLSameOrigin');
+var createError = require('../core/createError');
+var defaults = require('../defaults');
+var Cancel = require('../cancel/Cancel');
+
+module.exports = function xhrAdapter(config) {
+  return new Promise(function dispatchXhrRequest(resolve, reject) {
+    var requestData = config.data;
+    var requestHeaders = config.headers;
+    var responseType = config.responseType;
+    var onCanceled;
+    function done() {
+      if (config.cancelToken) {
+        config.cancelToken.unsubscribe(onCanceled);
+      }
+
+      if (config.signal) {
+        config.signal.removeEventListener('abort', onCanceled);
+      }
+    }
+
+    if (utils.isFormData(requestData)) {
+      delete requestHeaders['Content-Type']; // Let the browser set it
+    }
+
+    var request = new XMLHttpRequest();
+
+    // HTTP basic authentication
+    if (config.auth) {
+      var username = config.auth.username || '';
+      var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
+      requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
+    }
+
+    var fullPath = buildFullPath(config.baseURL, config.url);
+    request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
+
+    // Set the request timeout in MS
+    request.timeout = config.timeout;
+
+    function onloadend() {
+      if (!request) {
+        return;
+      }
+      // Prepare the response
+      var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
+      var responseData = !responseType || responseType === 'text' ||  responseType === 'json' ?
+        request.responseText : request.response;
+      var response = {
+        data: responseData,
+        status: request.status,
+        statusText: request.statusText,
+        headers: responseHeaders,
+        config: config,
+        request: request
+      };
+
+      settle(function _resolve(value) {
+        resolve(value);
+        done();
+      }, function _reject(err) {
+        reject(err);
+        done();
+      }, response);
+
+      // Clean up request
+      request = null;
+    }
+
+    if ('onloadend' in request) {
+      // Use onloadend if available
+      request.onloadend = onloadend;
+    } else {
+      // Listen for ready state to emulate onloadend
+      request.onreadystatechange = function handleLoad() {
+        if (!request || request.readyState !== 4) {
+          return;
+        }
+
+        // The request errored out and we didn't get a response, this will be
+        // handled by onerror instead
+        // With one exception: request that using file: protocol, most browsers
+        // will return status as 0 even though it's a successful request
+        if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
+          return;
+        }
+        // readystate handler is calling before onerror or ontimeout handlers,
+        // so we should call onloadend on the next 'tick'
+        setTimeout(onloadend);
+      };
+    }
+
+    // Handle browser request cancellation (as opposed to a manual cancellation)
+    request.onabort = function handleAbort() {
+      if (!request) {
+        return;
+      }
+
+      reject(createError('Request aborted', config, 'ECONNABORTED', request));
+
+      // Clean up request
+      request = null;
+    };
+
+    // Handle low level network errors
+    request.onerror = function handleError() {
+      // Real errors are hidden from us by the browser
+      // onerror should only fire if it's a network error
+      reject(createError('Network Error', config, null, request));
+
+      // Clean up request
+      request = null;
+    };
+
+    // Handle timeout
+    request.ontimeout = function handleTimeout() {
+      var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
+      var transitional = config.transitional || defaults.transitional;
+      if (config.timeoutErrorMessage) {
+        timeoutErrorMessage = config.timeoutErrorMessage;
+      }
+      reject(createError(
+        timeoutErrorMessage,
+        config,
+        transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
+        request));
+
+      // Clean up request
+      request = null;
+    };
+
+    // Add xsrf header
+    // This is only done if running in a standard browser environment.
+    // Specifically not if we're in a web worker, or react-native.
+    if (utils.isStandardBrowserEnv()) {
+      // Add xsrf header
+      var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
+        cookies.read(config.xsrfCookieName) :
+        undefined;
+
+      if (xsrfValue) {
+        requestHeaders[config.xsrfHeaderName] = xsrfValue;
+      }
+    }
+
+    // Add headers to the request
+    if ('setRequestHeader' in request) {
+      utils.forEach(requestHeaders, function setRequestHeader(val, key) {
+        if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
+          // Remove Content-Type if data is undefined
+          delete requestHeaders[key];
+        } else {
+          // Otherwise add header to the request
+          request.setRequestHeader(key, val);
+        }
+      });
+    }
+
+    // Add withCredentials to request if needed
+    if (!utils.isUndefined(config.withCredentials)) {
+      request.withCredentials = !!config.withCredentials;
+    }
+
+    // Add responseType to request if needed
+    if (responseType && responseType !== 'json') {
+      request.responseType = config.responseType;
+    }
+
+    // Handle progress if needed
+    if (typeof config.onDownloadProgress === 'function') {
+      request.addEventListener('progress', config.onDownloadProgress);
+    }
+
+    // Not all browsers support upload events
+    if (typeof config.onUploadProgress === 'function' && request.upload) {
+      request.upload.addEventListener('progress', config.onUploadProgress);
+    }
+
+    if (config.cancelToken || config.signal) {
+      // Handle cancellation
+      // eslint-disable-next-line func-names
+      onCanceled = function(cancel) {
+        if (!request) {
+          return;
+        }
+        reject(!cancel || (cancel && cancel.type) ? new Cancel('canceled') : cancel);
+        request.abort();
+        request = null;
+      };
+
+      config.cancelToken && config.cancelToken.subscribe(onCanceled);
+      if (config.signal) {
+        config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
+      }
+    }
+
+    if (!requestData) {
+      requestData = null;
+    }
+
+    // Send the request
+    request.send(requestData);
+  });
+};

+ 57 - 0
node_modules/axios/lib/axios.js

@@ -0,0 +1,57 @@
+'use strict';
+
+var utils = require('./utils');
+var bind = require('./helpers/bind');
+var Axios = require('./core/Axios');
+var mergeConfig = require('./core/mergeConfig');
+var defaults = require('./defaults');
+
+/**
+ * Create an instance of Axios
+ *
+ * @param {Object} defaultConfig The default config for the instance
+ * @return {Axios} A new instance of Axios
+ */
+function createInstance(defaultConfig) {
+  var context = new Axios(defaultConfig);
+  var instance = bind(Axios.prototype.request, context);
+
+  // Copy axios.prototype to instance
+  utils.extend(instance, Axios.prototype, context);
+
+  // Copy context to instance
+  utils.extend(instance, context);
+
+  // Factory for creating new instances
+  instance.create = function create(instanceConfig) {
+    return createInstance(mergeConfig(defaultConfig, instanceConfig));
+  };
+
+  return instance;
+}
+
+// Create the default instance to be exported
+var axios = createInstance(defaults);
+
+// Expose Axios class to allow class inheritance
+axios.Axios = Axios;
+
+// Expose Cancel & CancelToken
+axios.Cancel = require('./cancel/Cancel');
+axios.CancelToken = require('./cancel/CancelToken');
+axios.isCancel = require('./cancel/isCancel');
+axios.VERSION = require('./env/data').version;
+
+// Expose all/spread
+axios.all = function all(promises) {
+  return Promise.all(promises);
+};
+axios.spread = require('./helpers/spread');
+
+// Expose isAxiosError
+axios.isAxiosError = require('./helpers/isAxiosError');
+
+module.exports = axios;
+
+// Allow use of default import syntax in TypeScript
+module.exports.default = axios;

+ 19 - 0
node_modules/axios/lib/cancel/Cancel.js

@@ -0,0 +1,19 @@
+'use strict';
+
+/**
+ * A `Cancel` is an object that is thrown when an operation is canceled.
+ *
+ * @class
+ * @param {string=} message The message.
+ */
+function Cancel(message) {
+  this.message = message;
+}
+
+Cancel.prototype.toString = function toString() {
+  return 'Cancel' + (this.message ? ': ' + this.message : '');
+};
+
+Cancel.prototype.__CANCEL__ = true;
+
+module.exports = Cancel;

+ 119 - 0
node_modules/axios/lib/cancel/CancelToken.js

@@ -0,0 +1,119 @@
+'use strict';
+
+var Cancel = require('./Cancel');
+
+/**
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
+ *
+ * @class
+ * @param {Function} executor The executor function.
+ */
+function CancelToken(executor) {
+  if (typeof executor !== 'function') {
+    throw new TypeError('executor must be a function.');
+  }
+
+  var resolvePromise;
+
+  this.promise = new Promise(function promiseExecutor(resolve) {
+    resolvePromise = resolve;
+  });
+
+  var token = this;
+
+  // eslint-disable-next-line func-names
+  this.promise.then(function(cancel) {
+    if (!token._listeners) return;
+
+    var i;
+    var l = token._listeners.length;
+
+    for (i = 0; i < l; i++) {
+      token._listeners[i](cancel);
+    }
+    token._listeners = null;
+  });
+
+  // eslint-disable-next-line func-names
+  this.promise.then = function(onfulfilled) {
+    var _resolve;
+    // eslint-disable-next-line func-names
+    var promise = new Promise(function(resolve) {
+      token.subscribe(resolve);
+      _resolve = resolve;
+    }).then(onfulfilled);
+
+    promise.cancel = function reject() {
+      token.unsubscribe(_resolve);
+    };
+
+    return promise;
+  };
+
+  executor(function cancel(message) {
+    if (token.reason) {
+      // Cancellation has already been requested
+      return;
+    }
+
+    token.reason = new Cancel(message);
+    resolvePromise(token.reason);
+  });
+}
+
+/**
+ * Throws a `Cancel` if cancellation has been requested.
+ */
+CancelToken.prototype.throwIfRequested = function throwIfRequested() {
+  if (this.reason) {
+    throw this.reason;
+  }
+};
+
+/**
+ * Subscribe to the cancel signal
+ */
+
+CancelToken.prototype.subscribe = function subscribe(listener) {
+  if (this.reason) {
+    listener(this.reason);
+    return;
+  }
+
+  if (this._listeners) {
+    this._listeners.push(listener);
+  } else {
+    this._listeners = [listener];
+  }
+};
+
+/**
+ * Unsubscribe from the cancel signal
+ */
+
+CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
+  if (!this._listeners) {
+    return;
+  }
+  var index = this._listeners.indexOf(listener);
+  if (index !== -1) {
+    this._listeners.splice(index, 1);
+  }
+};
+
+/**
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
+ * cancels the `CancelToken`.
+ */
+CancelToken.source = function source() {
+  var cancel;
+  var token = new CancelToken(function executor(c) {
+    cancel = c;
+  });
+  return {
+    token: token,
+    cancel: cancel
+  };
+};
+
+module.exports = CancelToken;

+ 5 - 0
node_modules/axios/lib/cancel/isCancel.js

@@ -0,0 +1,5 @@
+'use strict';
+
+module.exports = function isCancel(value) {
+  return !!(value && value.__CANCEL__);
+};

+ 148 - 0
node_modules/axios/lib/core/Axios.js

@@ -0,0 +1,148 @@
+'use strict';
+
+var utils = require('./../utils');
+var buildURL = require('../helpers/buildURL');
+var InterceptorManager = require('./InterceptorManager');
+var dispatchRequest = require('./dispatchRequest');
+var mergeConfig = require('./mergeConfig');
+var validator = require('../helpers/validator');
+
+var validators = validator.validators;
+/**
+ * Create a new instance of Axios
+ *
+ * @param {Object} instanceConfig The default config for the instance
+ */
+function Axios(instanceConfig) {
+  this.defaults = instanceConfig;
+  this.interceptors = {
+    request: new InterceptorManager(),
+    response: new InterceptorManager()
+  };
+}
+
+/**
+ * Dispatch a request
+ *
+ * @param {Object} config The config specific for this request (merged with this.defaults)
+ */
+Axios.prototype.request = function request(configOrUrl, config) {
+  /*eslint no-param-reassign:0*/
+  // Allow for axios('example/url'[, config]) a la fetch API
+  if (typeof configOrUrl === 'string') {
+    config = config || {};
+    config.url = configOrUrl;
+  } else {
+    config = configOrUrl || {};
+  }
+
+  config = mergeConfig(this.defaults, config);
+
+  // Set config.method
+  if (config.method) {
+    config.method = config.method.toLowerCase();
+  } else if (this.defaults.method) {
+    config.method = this.defaults.method.toLowerCase();
+  } else {
+    config.method = 'get';
+  }
+
+  var transitional = config.transitional;
+
+  if (transitional !== undefined) {
+    validator.assertOptions(transitional, {
+      silentJSONParsing: validators.transitional(validators.boolean),
+      forcedJSONParsing: validators.transitional(validators.boolean),
+      clarifyTimeoutError: validators.transitional(validators.boolean)
+    }, false);
+  }
+
+  // filter out skipped interceptors
+  var requestInterceptorChain = [];
+  var synchronousRequestInterceptors = true;
+  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
+    if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
+      return;
+    }
+
+    synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
+
+    requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
+  });
+
+  var responseInterceptorChain = [];
+  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
+    responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
+  });
+
+  var promise;
+
+  if (!synchronousRequestInterceptors) {
+    var chain = [dispatchRequest, undefined];
+
+    Array.prototype.unshift.apply(chain, requestInterceptorChain);
+    chain = chain.concat(responseInterceptorChain);
+
+    promise = Promise.resolve(config);
+    while (chain.length) {
+      promise = promise.then(chain.shift(), chain.shift());
+    }
+
+    return promise;
+  }
+
+
+  var newConfig = config;
+  while (requestInterceptorChain.length) {
+    var onFulfilled = requestInterceptorChain.shift();
+    var onRejected = requestInterceptorChain.shift();
+    try {
+      newConfig = onFulfilled(newConfig);
+    } catch (error) {
+      onRejected(error);
+      break;
+    }
+  }
+
+  try {
+    promise = dispatchRequest(newConfig);
+  } catch (error) {
+    return Promise.reject(error);
+  }
+
+  while (responseInterceptorChain.length) {
+    promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
+  }
+
+  return promise;
+};
+
+Axios.prototype.getUri = function getUri(config) {
+  config = mergeConfig(this.defaults, config);
+  return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
+};
+
+// Provide aliases for supported request methods
+utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
+  /*eslint func-names:0*/
+  Axios.prototype[method] = function(url, config) {
+    return this.request(mergeConfig(config || {}, {
+      method: method,
+      url: url,
+      data: (config || {}).data
+    }));
+  };
+});
+
+utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
+  /*eslint func-names:0*/
+  Axios.prototype[method] = function(url, data, config) {
+    return this.request(mergeConfig(config || {}, {
+      method: method,
+      url: url,
+      data: data
+    }));
+  };
+});
+
+module.exports = Axios;

+ 54 - 0
node_modules/axios/lib/core/InterceptorManager.js

@@ -0,0 +1,54 @@
+'use strict';
+
+var utils = require('./../utils');
+
+function InterceptorManager() {
+  this.handlers = [];
+}
+
+/**
+ * Add a new interceptor to the stack
+ *
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
+ *
+ * @return {Number} An ID used to remove interceptor later
+ */
+InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
+  this.handlers.push({
+    fulfilled: fulfilled,
+    rejected: rejected,
+    synchronous: options ? options.synchronous : false,
+    runWhen: options ? options.runWhen : null
+  });
+  return this.handlers.length - 1;
+};
+
+/**
+ * Remove an interceptor from the stack
+ *
+ * @param {Number} id The ID that was returned by `use`
+ */
+InterceptorManager.prototype.eject = function eject(id) {
+  if (this.handlers[id]) {
+    this.handlers[id] = null;
+  }
+};
+
+/**
+ * Iterate over all the registered interceptors
+ *
+ * This method is particularly useful for skipping over any
+ * interceptors that may have become `null` calling `eject`.
+ *
+ * @param {Function} fn The function to call for each interceptor
+ */
+InterceptorManager.prototype.forEach = function forEach(fn) {
+  utils.forEach(this.handlers, function forEachHandler(h) {
+    if (h !== null) {
+      fn(h);
+    }
+  });
+};
+
+module.exports = InterceptorManager;

+ 8 - 0
node_modules/axios/lib/core/README.md

@@ -0,0 +1,8 @@
+# axios // core
+
+The modules found in `core/` should be modules that are specific to the domain logic of axios. These modules would most likely not make sense to be consumed outside of the axios module, as their logic is too specific. Some examples of core modules are:
+
+- Dispatching requests
+  - Requests sent via `adapters/` (see lib/adapters/README.md)
+- Managing interceptors
+- Handling config

+ 20 - 0
node_modules/axios/lib/core/buildFullPath.js

@@ -0,0 +1,20 @@
+'use strict';
+
+var isAbsoluteURL = require('../helpers/isAbsoluteURL');
+var combineURLs = require('../helpers/combineURLs');
+
+/**
+ * Creates a new URL by combining the baseURL with the requestedURL,
+ * only when the requestedURL is not already an absolute URL.
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
+ *
+ * @param {string} baseURL The base URL
+ * @param {string} requestedURL Absolute or relative URL to combine
+ * @returns {string} The combined full path
+ */
+module.exports = function buildFullPath(baseURL, requestedURL) {
+  if (baseURL && !isAbsoluteURL(requestedURL)) {
+    return combineURLs(baseURL, requestedURL);
+  }
+  return requestedURL;
+};

+ 18 - 0
node_modules/axios/lib/core/createError.js

@@ -0,0 +1,18 @@
+'use strict';
+
+var enhanceError = require('./enhanceError');
+
+/**
+ * Create an Error with the specified message, config, error code, request and response.
+ *
+ * @param {string} message The error message.
+ * @param {Object} config The config.
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
+ * @param {Object} [request] The request.
+ * @param {Object} [response] The response.
+ * @returns {Error} The created error.
+ */
+module.exports = function createError(message, config, code, request, response) {
+  var error = new Error(message);
+  return enhanceError(error, config, code, request, response);
+};

+ 87 - 0
node_modules/axios/lib/core/dispatchRequest.js

@@ -0,0 +1,87 @@
+'use strict';
+
+var utils = require('./../utils');
+var transformData = require('./transformData');
+var isCancel = require('../cancel/isCancel');
+var defaults = require('../defaults');
+var Cancel = require('../cancel/Cancel');
+
+/**
+ * Throws a `Cancel` if cancellation has been requested.
+ */
+function throwIfCancellationRequested(config) {
+  if (config.cancelToken) {
+    config.cancelToken.throwIfRequested();
+  }
+
+  if (config.signal && config.signal.aborted) {
+    throw new Cancel('canceled');
+  }
+}
+
+/**
+ * Dispatch a request to the server using the configured adapter.
+ *
+ * @param {object} config The config that is to be used for the request
+ * @returns {Promise} The Promise to be fulfilled
+ */
+module.exports = function dispatchRequest(config) {
+  throwIfCancellationRequested(config);
+
+  // Ensure headers exist
+  config.headers = config.headers || {};
+
+  // Transform request data
+  config.data = transformData.call(
+    config,
+    config.data,
+    config.headers,
+    config.transformRequest
+  );
+
+  // Flatten headers
+  config.headers = utils.merge(
+    config.headers.common || {},
+    config.headers[config.method] || {},
+    config.headers
+  );
+
+  utils.forEach(
+    ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
+    function cleanHeaderConfig(method) {
+      delete config.headers[method];
+    }
+  );
+
+  var adapter = config.adapter || defaults.adapter;
+
+  return adapter(config).then(function onAdapterResolution(response) {
+    throwIfCancellationRequested(config);
+
+    // Transform response data
+    response.data = transformData.call(
+      config,
+      response.data,
+      response.headers,
+      config.transformResponse
+    );
+
+    return response;
+  }, function onAdapterRejection(reason) {
+    if (!isCancel(reason)) {
+      throwIfCancellationRequested(config);
+
+      // Transform response data
+      if (reason && reason.response) {
+        reason.response.data = transformData.call(
+          config,
+          reason.response.data,
+          reason.response.headers,
+          config.transformResponse
+        );
+      }
+    }
+
+    return Promise.reject(reason);
+  });
+};

+ 43 - 0
node_modules/axios/lib/core/enhanceError.js

@@ -0,0 +1,43 @@
+'use strict';
+
+/**
+ * Update an Error with the specified config, error code, and response.
+ *
+ * @param {Error} error The error to update.
+ * @param {Object} config The config.
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
+ * @param {Object} [request] The request.
+ * @param {Object} [response] The response.
+ * @returns {Error} The error.
+ */
+module.exports = function enhanceError(error, config, code, request, response) {
+  error.config = config;
+  if (code) {
+    error.code = code;
+  }
+
+  error.request = request;
+  error.response = response;
+  error.isAxiosError = true;
+
+  error.toJSON = function toJSON() {
+    return {
+      // Standard
+      message: this.message,
+      name: this.name,
+      // Microsoft
+      description: this.description,
+      number: this.number,
+      // Mozilla
+      fileName: this.fileName,
+      lineNumber: this.lineNumber,
+      columnNumber: this.columnNumber,
+      stack: this.stack,
+      // Axios
+      config: this.config,
+      code: this.code,
+      status: this.response && this.response.status ? this.response.status : null
+    };
+  };
+  return error;
+};

+ 99 - 0
node_modules/axios/lib/core/mergeConfig.js

@@ -0,0 +1,99 @@
+'use strict';
+
+var utils = require('../utils');
+
+/**
+ * Config-specific merge-function which creates a new config-object
+ * by merging two configuration objects together.
+ *
+ * @param {Object} config1
+ * @param {Object} config2
+ * @returns {Object} New object resulting from merging config2 to config1
+ */
+module.exports = function mergeConfig(config1, config2) {
+  // eslint-disable-next-line no-param-reassign
+  config2 = config2 || {};
+  var config = {};
+
+  function getMergedValue(target, source) {
+    if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
+      return utils.merge(target, source);
+    } else if (utils.isPlainObject(source)) {
+      return utils.merge({}, source);
+    } else if (utils.isArray(source)) {
+      return source.slice();
+    }
+    return source;
+  }
+
+  // eslint-disable-next-line consistent-return
+  function mergeDeepProperties(prop) {
+    if (!utils.isUndefined(config2[prop])) {
+      return getMergedValue(config1[prop], config2[prop]);
+    } else if (!utils.isUndefined(config1[prop])) {
+      return getMergedValue(undefined, config1[prop]);
+    }
+  }
+
+  // eslint-disable-next-line consistent-return
+  function valueFromConfig2(prop) {
+    if (!utils.isUndefined(config2[prop])) {
+      return getMergedValue(undefined, config2[prop]);
+    }
+  }
+
+  // eslint-disable-next-line consistent-return
+  function defaultToConfig2(prop) {
+    if (!utils.isUndefined(config2[prop])) {
+      return getMergedValue(undefined, config2[prop]);
+    } else if (!utils.isUndefined(config1[prop])) {
+      return getMergedValue(undefined, config1[prop]);
+    }
+  }
+
+  // eslint-disable-next-line consistent-return
+  function mergeDirectKeys(prop) {
+    if (prop in config2) {
+      return getMergedValue(config1[prop], config2[prop]);
+    } else if (prop in config1) {
+      return getMergedValue(undefined, config1[prop]);
+    }
+  }
+
+  var mergeMap = {
+    'url': valueFromConfig2,
+    'method': valueFromConfig2,
+    'data': valueFromConfig2,
+    'baseURL': defaultToConfig2,
+    'transformRequest': defaultToConfig2,
+    'transformResponse': defaultToConfig2,
+    'paramsSerializer': defaultToConfig2,
+    'timeout': defaultToConfig2,
+    'timeoutMessage': defaultToConfig2,
+    'withCredentials': defaultToConfig2,
+    'adapter': defaultToConfig2,
+    'responseType': defaultToConfig2,
+    'xsrfCookieName': defaultToConfig2,
+    'xsrfHeaderName': defaultToConfig2,
+    'onUploadProgress': defaultToConfig2,
+    'onDownloadProgress': defaultToConfig2,
+    'decompress': defaultToConfig2,
+    'maxContentLength': defaultToConfig2,
+    'maxBodyLength': defaultToConfig2,
+    'transport': defaultToConfig2,
+    'httpAgent': defaultToConfig2,
+    'httpsAgent': defaultToConfig2,
+    'cancelToken': defaultToConfig2,
+    'socketPath': defaultToConfig2,
+    'responseEncoding': defaultToConfig2,
+    'validateStatus': mergeDirectKeys
+  };
+
+  utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
+    var merge = mergeMap[prop] || mergeDeepProperties;
+    var configValue = merge(prop);
+    (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
+  });
+
+  return config;
+};

+ 25 - 0
node_modules/axios/lib/core/settle.js

@@ -0,0 +1,25 @@
+'use strict';
+
+var createError = require('./createError');
+
+/**
+ * Resolve or reject a Promise based on response status.
+ *
+ * @param {Function} resolve A function that resolves the promise.
+ * @param {Function} reject A function that rejects the promise.
+ * @param {object} response The response.
+ */
+module.exports = function settle(resolve, reject, response) {
+  var validateStatus = response.config.validateStatus;
+  if (!response.status || !validateStatus || validateStatus(response.status)) {
+    resolve(response);
+  } else {
+    reject(createError(
+      'Request failed with status code ' + response.status,
+      response.config,
+      null,
+      response.request,
+      response
+    ));
+  }
+};

+ 22 - 0
node_modules/axios/lib/core/transformData.js

@@ -0,0 +1,22 @@
+'use strict';
+
+var utils = require('./../utils');
+var defaults = require('./../defaults');
+
+/**
+ * Transform the data for a request or a response
+ *
+ * @param {Object|String} data The data to be transformed
+ * @param {Array} headers The headers for the request or response
+ * @param {Array|Function} fns A single function or Array of functions
+ * @returns {*} The resulting transformed data
+ */
+module.exports = function transformData(data, headers, fns) {
+  var context = this || defaults;
+  /*eslint no-param-reassign:0*/
+  utils.forEach(fns, function transform(fn) {
+    data = fn.call(context, data, headers);
+  });
+
+  return data;
+};

+ 134 - 0
node_modules/axios/lib/defaults.js

@@ -0,0 +1,134 @@
+'use strict';
+
+var utils = require('./utils');
+var normalizeHeaderName = require('./helpers/normalizeHeaderName');
+var enhanceError = require('./core/enhanceError');
+
+var DEFAULT_CONTENT_TYPE = {
+  'Content-Type': 'application/x-www-form-urlencoded'
+};
+
+function setContentTypeIfUnset(headers, value) {
+  if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
+    headers['Content-Type'] = value;
+  }
+}
+
+function getDefaultAdapter() {
+  var adapter;
+  if (typeof XMLHttpRequest !== 'undefined') {
+    // For browsers use XHR adapter
+    adapter = require('./adapters/xhr');
+  } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
+    // For node use HTTP adapter
+    adapter = require('./adapters/http');
+  }
+  return adapter;
+}
+
+function stringifySafely(rawValue, parser, encoder) {
+  if (utils.isString(rawValue)) {
+    try {
+      (parser || JSON.parse)(rawValue);
+      return utils.trim(rawValue);
+    } catch (e) {
+      if (e.name !== 'SyntaxError') {
+        throw e;
+      }
+    }
+  }
+
+  return (encoder || JSON.stringify)(rawValue);
+}
+
+var defaults = {
+
+  transitional: {
+    silentJSONParsing: true,
+    forcedJSONParsing: true,
+    clarifyTimeoutError: false
+  },
+
+  adapter: getDefaultAdapter(),
+
+  transformRequest: [function transformRequest(data, headers) {
+    normalizeHeaderName(headers, 'Accept');
+    normalizeHeaderName(headers, 'Content-Type');
+
+    if (utils.isFormData(data) ||
+      utils.isArrayBuffer(data) ||
+      utils.isBuffer(data) ||
+      utils.isStream(data) ||
+      utils.isFile(data) ||
+      utils.isBlob(data)
+    ) {
+      return data;
+    }
+    if (utils.isArrayBufferView(data)) {
+      return data.buffer;
+    }
+    if (utils.isURLSearchParams(data)) {
+      setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
+      return data.toString();
+    }
+    if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
+      setContentTypeIfUnset(headers, 'application/json');
+      return stringifySafely(data);
+    }
+    return data;
+  }],
+
+  transformResponse: [function transformResponse(data) {
+    var transitional = this.transitional || defaults.transitional;
+    var silentJSONParsing = transitional && transitional.silentJSONParsing;
+    var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
+    var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
+
+    if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {
+      try {
+        return JSON.parse(data);
+      } catch (e) {
+        if (strictJSONParsing) {
+          if (e.name === 'SyntaxError') {
+            throw enhanceError(e, this, 'E_JSON_PARSE');
+          }
+          throw e;
+        }
+      }
+    }
+
+    return data;
+  }],
+
+  /**
+   * A timeout in milliseconds to abort a request. If set to 0 (default) a
+   * timeout is not created.
+   */
+  timeout: 0,
+
+  xsrfCookieName: 'XSRF-TOKEN',
+  xsrfHeaderName: 'X-XSRF-TOKEN',
+
+  maxContentLength: -1,
+  maxBodyLength: -1,
+
+  validateStatus: function validateStatus(status) {
+    return status >= 200 && status < 300;
+  },
+
+  headers: {
+    common: {
+      'Accept': 'application/json, text/plain, */*'
+    }
+  }
+};
+
+utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
+  defaults.headers[method] = {};
+});
+
+utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
+  defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
+});
+
+module.exports = defaults;

+ 3 - 0
node_modules/axios/lib/env/README.md

@@ -0,0 +1,3 @@
+# axios // env
+
+The `data.js` file is updated automatically when the package version is upgrading. Please do not edit it manually.

+ 3 - 0
node_modules/axios/lib/env/data.js

@@ -0,0 +1,3 @@
+module.exports = {
+  "version": "0.26.0"
+};

+ 7 - 0
node_modules/axios/lib/helpers/README.md

@@ -0,0 +1,7 @@
+# axios // helpers
+
+The modules found in `helpers/` should be generic modules that are _not_ specific to the domain logic of axios. These modules could theoretically be published to npm on their own and consumed by other modules or apps. Some examples of generic modules are things like:
+
+- Browser polyfills
+- Managing cookies
+- Parsing HTTP headers

+ 11 - 0
node_modules/axios/lib/helpers/bind.js

@@ -0,0 +1,11 @@
+'use strict';
+
+module.exports = function bind(fn, thisArg) {
+  return function wrap() {
+    var args = new Array(arguments.length);
+    for (var i = 0; i < args.length; i++) {
+      args[i] = arguments[i];
+    }
+    return fn.apply(thisArg, args);
+  };
+};

+ 70 - 0
node_modules/axios/lib/helpers/buildURL.js

@@ -0,0 +1,70 @@
+'use strict';
+
+var utils = require('./../utils');
+
+function encode(val) {
+  return encodeURIComponent(val).
+    replace(/%3A/gi, ':').
+    replace(/%24/g, '$').
+    replace(/%2C/gi, ',').
+    replace(/%20/g, '+').
+    replace(/%5B/gi, '[').
+    replace(/%5D/gi, ']');
+}
+
+/**
+ * Build a URL by appending params to the end
+ *
+ * @param {string} url The base of the url (e.g., http://www.google.com)
+ * @param {object} [params] The params to be appended
+ * @returns {string} The formatted url
+ */
+module.exports = function buildURL(url, params, paramsSerializer) {
+  /*eslint no-param-reassign:0*/
+  if (!params) {
+    return url;
+  }
+
+  var serializedParams;
+  if (paramsSerializer) {
+    serializedParams = paramsSerializer(params);
+  } else if (utils.isURLSearchParams(params)) {
+    serializedParams = params.toString();
+  } else {
+    var parts = [];
+
+    utils.forEach(params, function serialize(val, key) {
+      if (val === null || typeof val === 'undefined') {
+        return;
+      }
+
+      if (utils.isArray(val)) {
+        key = key + '[]';
+      } else {
+        val = [val];
+      }
+
+      utils.forEach(val, function parseValue(v) {
+        if (utils.isDate(v)) {
+          v = v.toISOString();
+        } else if (utils.isObject(v)) {
+          v = JSON.stringify(v);
+        }
+        parts.push(encode(key) + '=' + encode(v));
+      });
+    });
+
+    serializedParams = parts.join('&');
+  }
+
+  if (serializedParams) {
+    var hashmarkIndex = url.indexOf('#');
+    if (hashmarkIndex !== -1) {
+      url = url.slice(0, hashmarkIndex);
+    }
+
+    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
+  }
+
+  return url;
+};

+ 14 - 0
node_modules/axios/lib/helpers/combineURLs.js

@@ -0,0 +1,14 @@
+'use strict';
+
+/**
+ * Creates a new URL by combining the specified URLs
+ *
+ * @param {string} baseURL The base URL
+ * @param {string} relativeURL The relative URL
+ * @returns {string} The combined URL
+ */
+module.exports = function combineURLs(baseURL, relativeURL) {
+  return relativeURL
+    ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
+    : baseURL;
+};

+ 53 - 0
node_modules/axios/lib/helpers/cookies.js

@@ -0,0 +1,53 @@
+'use strict';
+
+var utils = require('./../utils');
+
+module.exports = (
+  utils.isStandardBrowserEnv() ?
+
+  // Standard browser envs support document.cookie
+    (function standardBrowserEnv() {
+      return {
+        write: function write(name, value, expires, path, domain, secure) {
+          var cookie = [];
+          cookie.push(name + '=' + encodeURIComponent(value));
+
+          if (utils.isNumber(expires)) {
+            cookie.push('expires=' + new Date(expires).toGMTString());
+          }
+
+          if (utils.isString(path)) {
+            cookie.push('path=' + path);
+          }
+
+          if (utils.isString(domain)) {
+            cookie.push('domain=' + domain);
+          }
+
+          if (secure === true) {
+            cookie.push('secure');
+          }
+
+          document.cookie = cookie.join('; ');
+        },
+
+        read: function read(name) {
+          var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
+          return (match ? decodeURIComponent(match[3]) : null);
+        },
+
+        remove: function remove(name) {
+          this.write(name, '', Date.now() - 86400000);
+        }
+      };
+    })() :
+
+  // Non standard browser env (web workers, react-native) lack needed support.
+    (function nonStandardBrowserEnv() {
+      return {
+        write: function write() {},
+        read: function read() { return null; },
+        remove: function remove() {}
+      };
+    })()
+);

+ 24 - 0
node_modules/axios/lib/helpers/deprecatedMethod.js

@@ -0,0 +1,24 @@
+'use strict';
+
+/*eslint no-console:0*/
+
+/**
+ * Supply a warning to the developer that a method they are using
+ * has been deprecated.
+ *
+ * @param {string} method The name of the deprecated method
+ * @param {string} [instead] The alternate method to use if applicable
+ * @param {string} [docs] The documentation URL to get further details
+ */
+module.exports = function deprecatedMethod(method, instead, docs) {
+  try {
+    console.warn(
+      'DEPRECATED method `' + method + '`.' +
+      (instead ? ' Use `' + instead + '` instead.' : '') +
+      ' This method will be removed in a future release.');
+
+    if (docs) {
+      console.warn('For more information about usage see ' + docs);
+    }
+  } catch (e) { /* Ignore */ }
+};

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików