|
|
@@ -1557,7 +1557,7 @@ function initData(vueOptions, context) {
|
|
|
try {
|
|
|
data = data.call(context); // 支持 Vue.prototype 上挂的数据
|
|
|
} catch (e) {
|
|
|
- if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
|
|
|
}
|
|
|
}
|
|
|
@@ -8934,7 +8934,7 @@ function type(obj) {
|
|
|
|
|
|
function flushCallbacks$1(vm) {
|
|
|
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
|
|
|
- if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
var mpInstance = vm.$scope;
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
|
|
']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
|
|
|
@@ -8955,14 +8955,14 @@ function nextTick$1(vm, cb) {
|
|
|
//1.nextTick 之前 已 setData 且 setData 还未回调完成
|
|
|
//2.nextTick 之前存在 render watcher
|
|
|
if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
|
|
|
- if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
+ if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
var mpInstance = vm.$scope;
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
|
|
']:nextVueTick');
|
|
|
}
|
|
|
return nextTick(cb, vm)
|
|
|
}else{
|
|
|
- if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
+ if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
var mpInstance$1 = vm.$scope;
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
|
|
|
']:nextMPTick');
|
|
|
@@ -9058,7 +9058,7 @@ var patch = function(oldVnode, vnode) {
|
|
|
});
|
|
|
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
|
|
|
if (Object.keys(diffData).length) {
|
|
|
- if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
|
|
|
']差量更新',
|
|
|
JSON.stringify(diffData));
|
|
|
@@ -9663,6 +9663,26 @@ exports.default = void 0;
|
|
|
var _request = _interopRequireDefault(__webpack_require__(/*! ../js/request.js */ 35));
|
|
|
// 引用网络请求中间件
|
|
|
var _default = {
|
|
|
+ /**
|
|
|
+ * 微信静默登录
|
|
|
+ */
|
|
|
+ wxAuthLogin: function wxAuthLogin(data) {
|
|
|
+ return (0, _request.default)({
|
|
|
+ url: '/auth/xcxLogin',
|
|
|
+ method: 'POST',
|
|
|
+ data: data
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * 查询电话是否存在
|
|
|
+ */
|
|
|
+ phoneIsExist: function phoneIsExist(data) {
|
|
|
+ return (0, _request.default)({
|
|
|
+ url: '/member/wechat/phoneIsExist',
|
|
|
+ method: 'POST',
|
|
|
+ data: data
|
|
|
+ });
|
|
|
+ },
|
|
|
payTheBill: function payTheBill(data) {
|
|
|
return (0, _request.default)({
|
|
|
url: '/recruit/recruitmsg/payTheBill',
|
|
|
@@ -9750,11 +9770,6 @@ function service() {
|
|
|
// 这里可以做一些状态码判断以及操作
|
|
|
// 返回错误信息
|
|
|
rejected(res);
|
|
|
- if (res.data.code === 401) {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/welcome/index'
|
|
|
- });
|
|
|
- }
|
|
|
} else {
|
|
|
// 请求回来的状态码为200则返回内容
|
|
|
resolved(res);
|
|
|
@@ -9798,7 +9813,7 @@ var _default = {
|
|
|
appid: '__UNI__1EEA945',
|
|
|
// baseUrl: 'https://recruit.gzzzyd.com/api'
|
|
|
// baseUrl: 'http://127.0.0.1:8888',
|
|
|
- baseUrl: 'http://192.168.0.108:8888',
|
|
|
+ baseUrl: 'https://jje.admin.xinyuekj.com.cn',
|
|
|
uploadUrl: '/v1/file/put-file'
|
|
|
};
|
|
|
exports.default = _default;
|
|
|
@@ -19472,14 +19487,7 @@ exports.default = _default;
|
|
|
/* 236 */,
|
|
|
/* 237 */,
|
|
|
/* 238 */,
|
|
|
-/* 239 */,
|
|
|
-/* 240 */,
|
|
|
-/* 241 */,
|
|
|
-/* 242 */,
|
|
|
-/* 243 */,
|
|
|
-/* 244 */,
|
|
|
-/* 245 */,
|
|
|
-/* 246 */
|
|
|
+/* 239 */
|
|
|
/*!*************************************************************************************************************!*\
|
|
|
!*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-icon/icons.js ***!
|
|
|
\*************************************************************************************************************/
|
|
|
@@ -19710,7 +19718,7 @@ var _default = {
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
-/* 247 */
|
|
|
+/* 240 */
|
|
|
/*!*************************************************************************************************************!*\
|
|
|
!*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-icon/props.js ***!
|
|
|
\*************************************************************************************************************/
|
|
|
@@ -19817,6 +19825,13 @@ exports.default = _default;
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
|
|
|
/***/ }),
|
|
|
+/* 241 */,
|
|
|
+/* 242 */,
|
|
|
+/* 243 */,
|
|
|
+/* 244 */,
|
|
|
+/* 245 */,
|
|
|
+/* 246 */,
|
|
|
+/* 247 */,
|
|
|
/* 248 */,
|
|
|
/* 249 */,
|
|
|
/* 250 */,
|
|
|
@@ -19824,7 +19839,149 @@ exports.default = _default;
|
|
|
/* 252 */,
|
|
|
/* 253 */,
|
|
|
/* 254 */,
|
|
|
-/* 255 */,
|
|
|
+/* 255 */
|
|
|
+/*!***************************************************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-swiper/props.js ***!
|
|
|
+ \***************************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
|
|
|
+ list: {
|
|
|
+ type: Array,
|
|
|
+ default: uni.$u.props.swiper.list
|
|
|
+ },
|
|
|
+ // 是否显示面板指示器
|
|
|
+ indicator: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.swiper.indicator
|
|
|
+ },
|
|
|
+ // 指示器非激活颜色
|
|
|
+ indicatorActiveColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiper.indicatorActiveColor
|
|
|
+ },
|
|
|
+ // 指示器的激活颜色
|
|
|
+ indicatorInactiveColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiper.indicatorInactiveColor
|
|
|
+ },
|
|
|
+ // 指示器样式,可通过bottom,left,right进行定位
|
|
|
+ indicatorStyle: {
|
|
|
+ type: [String, Object],
|
|
|
+ default: uni.$u.props.swiper.indicatorStyle
|
|
|
+ },
|
|
|
+ // 指示器模式,line-线型,dot-点型
|
|
|
+ indicatorMode: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiper.indicatorMode
|
|
|
+ },
|
|
|
+ // 是否自动切换
|
|
|
+ autoplay: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.swiper.autoplay
|
|
|
+ },
|
|
|
+ // 当前所在滑块的 index
|
|
|
+ current: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiper.current
|
|
|
+ },
|
|
|
+ // 当前所在滑块的 item-id ,不能与 current 被同时指定
|
|
|
+ currentItemId: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiper.currentItemId
|
|
|
+ },
|
|
|
+ // 滑块自动切换时间间隔
|
|
|
+ interval: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiper.interval
|
|
|
+ },
|
|
|
+ // 滑块切换过程所需时间
|
|
|
+ duration: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiper.duration
|
|
|
+ },
|
|
|
+ // 播放到末尾后是否重新回到开头
|
|
|
+ circular: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.swiper.circular
|
|
|
+ },
|
|
|
+ // 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
|
|
|
+ previousMargin: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiper.previousMargin
|
|
|
+ },
|
|
|
+ // 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
|
|
|
+ nextMargin: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiper.nextMargin
|
|
|
+ },
|
|
|
+ // 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
|
|
|
+ acceleration: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.swiper.acceleration
|
|
|
+ },
|
|
|
+ // 同时显示的滑块数量,nvue、支付宝小程序不支持
|
|
|
+ displayMultipleItems: {
|
|
|
+ type: Number,
|
|
|
+ default: uni.$u.props.swiper.displayMultipleItems
|
|
|
+ },
|
|
|
+ // 指定swiper切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic
|
|
|
+ // 只对微信小程序有效
|
|
|
+ easingFunction: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiper.easingFunction
|
|
|
+ },
|
|
|
+ // list数组中指定对象的目标属性名
|
|
|
+ keyName: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiper.keyName
|
|
|
+ },
|
|
|
+ // 图片的裁剪模式
|
|
|
+ imgMode: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiper.imgMode
|
|
|
+ },
|
|
|
+ // 组件高度
|
|
|
+ height: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiper.height
|
|
|
+ },
|
|
|
+ // 背景颜色
|
|
|
+ bgColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiper.bgColor
|
|
|
+ },
|
|
|
+ // 组件圆角,数值或带单位的字符串
|
|
|
+ radius: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiper.radius
|
|
|
+ },
|
|
|
+ // 是否加载中
|
|
|
+ loading: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.swiper.loading
|
|
|
+ },
|
|
|
+ // 是否显示标题,要求数组对象中有title属性
|
|
|
+ showTitle: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.swiper.showTitle
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
/* 256 */,
|
|
|
/* 257 */,
|
|
|
/* 258 */,
|
|
|
@@ -19832,13 +19989,140 @@ exports.default = _default;
|
|
|
/* 260 */,
|
|
|
/* 261 */,
|
|
|
/* 262 */,
|
|
|
-/* 263 */,
|
|
|
+/* 263 */
|
|
|
+/*!*************************************************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-form/props.js ***!
|
|
|
+ \*************************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 当前form的需要验证字段的集合
|
|
|
+ model: {
|
|
|
+ type: Object,
|
|
|
+ default: uni.$u.props.form.model
|
|
|
+ },
|
|
|
+ // 验证规则
|
|
|
+ rules: {
|
|
|
+ type: [Object, Function, Array],
|
|
|
+ default: uni.$u.props.form.rules
|
|
|
+ },
|
|
|
+ // 有错误时的提示方式,message-提示信息,toast-进行toast提示
|
|
|
+ // border-bottom-下边框呈现红色,none-无提示
|
|
|
+ errorType: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.form.errorType
|
|
|
+ },
|
|
|
+ // 是否显示表单域的下划线边框
|
|
|
+ borderBottom: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.form.borderBottom
|
|
|
+ },
|
|
|
+ // label的位置,left-左边,top-上边
|
|
|
+ labelPosition: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.form.labelPosition
|
|
|
+ },
|
|
|
+ // label的宽度,单位px
|
|
|
+ labelWidth: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.form.labelWidth
|
|
|
+ },
|
|
|
+ // lable字体的对齐方式
|
|
|
+ labelAlign: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.form.labelAlign
|
|
|
+ },
|
|
|
+ // lable的样式,对象形式
|
|
|
+ labelStyle: {
|
|
|
+ type: Object,
|
|
|
+ default: uni.$u.props.form.labelStyle
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
/* 264 */,
|
|
|
/* 265 */,
|
|
|
/* 266 */,
|
|
|
/* 267 */,
|
|
|
/* 268 */,
|
|
|
-/* 269 */,
|
|
|
+/* 269 */
|
|
|
+/*!******************************************************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-form-item/props.js ***!
|
|
|
+ \******************************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // input的label提示语
|
|
|
+ label: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.formItem.label
|
|
|
+ },
|
|
|
+ // 绑定的值
|
|
|
+ prop: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.formItem.prop
|
|
|
+ },
|
|
|
+ // 是否显示表单域的下划线边框
|
|
|
+ borderBottom: {
|
|
|
+ type: [String, Boolean],
|
|
|
+ default: uni.$u.props.formItem.borderBottom
|
|
|
+ },
|
|
|
+ // label的位置,left-左边,top-上边
|
|
|
+ labelPosition: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.formItem.labelPosition
|
|
|
+ },
|
|
|
+ // label的宽度,单位px
|
|
|
+ labelWidth: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.formItem.labelWidth
|
|
|
+ },
|
|
|
+ // 右侧图标
|
|
|
+ rightIcon: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.formItem.rightIcon
|
|
|
+ },
|
|
|
+ // 左侧图标
|
|
|
+ leftIcon: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.formItem.leftIcon
|
|
|
+ },
|
|
|
+ // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
|
|
|
+ required: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.formItem.required
|
|
|
+ },
|
|
|
+ leftIconStyle: {
|
|
|
+ type: [String, Object],
|
|
|
+ default: uni.$u.props.formItem.leftIconStyle
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
/* 270 */,
|
|
|
/* 271 */,
|
|
|
/* 272 */,
|
|
|
@@ -19846,1033 +20130,2693 @@ exports.default = _default;
|
|
|
/* 274 */,
|
|
|
/* 275 */,
|
|
|
/* 276 */,
|
|
|
-/* 277 */,
|
|
|
-/* 278 */,
|
|
|
-/* 279 */,
|
|
|
-/* 280 */,
|
|
|
-/* 281 */,
|
|
|
-/* 282 */,
|
|
|
-/* 283 */,
|
|
|
-/* 284 */,
|
|
|
-/* 285 */
|
|
|
-/*!****************************************************************************************************************!*\
|
|
|
- !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/uni_modules/uni-icons/components/uni-icons/icons.js ***!
|
|
|
- \****************************************************************************************************************/
|
|
|
+/* 277 */
|
|
|
+/*!**************************************************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-input/props.js ***!
|
|
|
+ \**************************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
-
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
var _default = {
|
|
|
- "id": "2852637",
|
|
|
- "name": "uniui图标库",
|
|
|
- "font_family": "uniicons",
|
|
|
- "css_prefix_text": "uniui-",
|
|
|
- "description": "",
|
|
|
- "glyphs": [{
|
|
|
- "icon_id": "25027049",
|
|
|
- "name": "yanse",
|
|
|
- "font_class": "color",
|
|
|
- "unicode": "e6cf",
|
|
|
- "unicode_decimal": 59087
|
|
|
- }, {
|
|
|
- "icon_id": "25027048",
|
|
|
- "name": "wallet",
|
|
|
- "font_class": "wallet",
|
|
|
- "unicode": "e6b1",
|
|
|
- "unicode_decimal": 59057
|
|
|
- }, {
|
|
|
- "icon_id": "25015720",
|
|
|
- "name": "settings-filled",
|
|
|
- "font_class": "settings-filled",
|
|
|
- "unicode": "e6ce",
|
|
|
- "unicode_decimal": 59086
|
|
|
- }, {
|
|
|
- "icon_id": "25015434",
|
|
|
- "name": "shimingrenzheng-filled",
|
|
|
- "font_class": "auth-filled",
|
|
|
- "unicode": "e6cc",
|
|
|
- "unicode_decimal": 59084
|
|
|
- }, {
|
|
|
- "icon_id": "24934246",
|
|
|
- "name": "shop-filled",
|
|
|
- "font_class": "shop-filled",
|
|
|
- "unicode": "e6cd",
|
|
|
- "unicode_decimal": 59085
|
|
|
- }, {
|
|
|
- "icon_id": "24934159",
|
|
|
- "name": "staff-filled-01",
|
|
|
- "font_class": "staff-filled",
|
|
|
- "unicode": "e6cb",
|
|
|
- "unicode_decimal": 59083
|
|
|
- }, {
|
|
|
- "icon_id": "24932461",
|
|
|
- "name": "VIP-filled",
|
|
|
- "font_class": "vip-filled",
|
|
|
- "unicode": "e6c6",
|
|
|
- "unicode_decimal": 59078
|
|
|
- }, {
|
|
|
- "icon_id": "24932462",
|
|
|
- "name": "plus_circle_fill",
|
|
|
- "font_class": "plus-filled",
|
|
|
- "unicode": "e6c7",
|
|
|
- "unicode_decimal": 59079
|
|
|
- }, {
|
|
|
- "icon_id": "24932463",
|
|
|
- "name": "folder_add-filled",
|
|
|
- "font_class": "folder-add-filled",
|
|
|
- "unicode": "e6c8",
|
|
|
- "unicode_decimal": 59080
|
|
|
- }, {
|
|
|
- "icon_id": "24932464",
|
|
|
- "name": "yanse-filled",
|
|
|
- "font_class": "color-filled",
|
|
|
- "unicode": "e6c9",
|
|
|
- "unicode_decimal": 59081
|
|
|
- }, {
|
|
|
- "icon_id": "24932465",
|
|
|
- "name": "tune-filled",
|
|
|
- "font_class": "tune-filled",
|
|
|
- "unicode": "e6ca",
|
|
|
- "unicode_decimal": 59082
|
|
|
- }, {
|
|
|
- "icon_id": "24932455",
|
|
|
- "name": "a-rilidaka-filled",
|
|
|
- "font_class": "calendar-filled",
|
|
|
- "unicode": "e6c0",
|
|
|
- "unicode_decimal": 59072
|
|
|
- }, {
|
|
|
- "icon_id": "24932456",
|
|
|
- "name": "notification-filled",
|
|
|
- "font_class": "notification-filled",
|
|
|
- "unicode": "e6c1",
|
|
|
- "unicode_decimal": 59073
|
|
|
- }, {
|
|
|
- "icon_id": "24932457",
|
|
|
- "name": "wallet-filled",
|
|
|
- "font_class": "wallet-filled",
|
|
|
- "unicode": "e6c2",
|
|
|
- "unicode_decimal": 59074
|
|
|
- }, {
|
|
|
- "icon_id": "24932458",
|
|
|
- "name": "paihangbang-filled",
|
|
|
- "font_class": "medal-filled",
|
|
|
- "unicode": "e6c3",
|
|
|
- "unicode_decimal": 59075
|
|
|
- }, {
|
|
|
- "icon_id": "24932459",
|
|
|
- "name": "gift-filled",
|
|
|
- "font_class": "gift-filled",
|
|
|
- "unicode": "e6c4",
|
|
|
- "unicode_decimal": 59076
|
|
|
- }, {
|
|
|
- "icon_id": "24932460",
|
|
|
- "name": "fire-filled",
|
|
|
- "font_class": "fire-filled",
|
|
|
- "unicode": "e6c5",
|
|
|
- "unicode_decimal": 59077
|
|
|
- }, {
|
|
|
- "icon_id": "24928001",
|
|
|
- "name": "refreshempty",
|
|
|
- "font_class": "refreshempty",
|
|
|
- "unicode": "e6bf",
|
|
|
- "unicode_decimal": 59071
|
|
|
- }, {
|
|
|
- "icon_id": "24926853",
|
|
|
- "name": "location-ellipse",
|
|
|
- "font_class": "location-filled",
|
|
|
- "unicode": "e6af",
|
|
|
- "unicode_decimal": 59055
|
|
|
- }, {
|
|
|
- "icon_id": "24926735",
|
|
|
- "name": "person-filled",
|
|
|
- "font_class": "person-filled",
|
|
|
- "unicode": "e69d",
|
|
|
- "unicode_decimal": 59037
|
|
|
- }, {
|
|
|
- "icon_id": "24926703",
|
|
|
- "name": "personadd-filled",
|
|
|
- "font_class": "personadd-filled",
|
|
|
- "unicode": "e698",
|
|
|
- "unicode_decimal": 59032
|
|
|
- }, {
|
|
|
- "icon_id": "24923351",
|
|
|
- "name": "back",
|
|
|
- "font_class": "back",
|
|
|
- "unicode": "e6b9",
|
|
|
- "unicode_decimal": 59065
|
|
|
- }, {
|
|
|
- "icon_id": "24923352",
|
|
|
- "name": "forward",
|
|
|
- "font_class": "forward",
|
|
|
- "unicode": "e6ba",
|
|
|
- "unicode_decimal": 59066
|
|
|
- }, {
|
|
|
- "icon_id": "24923353",
|
|
|
- "name": "arrowthinright",
|
|
|
- "font_class": "arrow-right",
|
|
|
- "unicode": "e6bb",
|
|
|
- "unicode_decimal": 59067
|
|
|
- }, {
|
|
|
- "icon_id": "24923353",
|
|
|
- "name": "arrowthinright",
|
|
|
- "font_class": "arrowthinright",
|
|
|
- "unicode": "e6bb",
|
|
|
- "unicode_decimal": 59067
|
|
|
- }, {
|
|
|
- "icon_id": "24923354",
|
|
|
- "name": "arrowthinleft",
|
|
|
- "font_class": "arrow-left",
|
|
|
- "unicode": "e6bc",
|
|
|
- "unicode_decimal": 59068
|
|
|
- }, {
|
|
|
- "icon_id": "24923354",
|
|
|
- "name": "arrowthinleft",
|
|
|
- "font_class": "arrowthinleft",
|
|
|
- "unicode": "e6bc",
|
|
|
- "unicode_decimal": 59068
|
|
|
- }, {
|
|
|
- "icon_id": "24923355",
|
|
|
- "name": "arrowthinup",
|
|
|
- "font_class": "arrow-up",
|
|
|
- "unicode": "e6bd",
|
|
|
- "unicode_decimal": 59069
|
|
|
- }, {
|
|
|
- "icon_id": "24923355",
|
|
|
- "name": "arrowthinup",
|
|
|
- "font_class": "arrowthinup",
|
|
|
- "unicode": "e6bd",
|
|
|
- "unicode_decimal": 59069
|
|
|
- }, {
|
|
|
- "icon_id": "24923356",
|
|
|
- "name": "arrowthindown",
|
|
|
- "font_class": "arrow-down",
|
|
|
- "unicode": "e6be",
|
|
|
- "unicode_decimal": 59070
|
|
|
- }, {
|
|
|
- "icon_id": "24923356",
|
|
|
- "name": "arrowthindown",
|
|
|
- "font_class": "arrowthindown",
|
|
|
- "unicode": "e6be",
|
|
|
- "unicode_decimal": 59070
|
|
|
- }, {
|
|
|
- "icon_id": "24923349",
|
|
|
- "name": "arrowdown",
|
|
|
- "font_class": "bottom",
|
|
|
- "unicode": "e6b8",
|
|
|
- "unicode_decimal": 59064
|
|
|
- }, {
|
|
|
- "icon_id": "24923349",
|
|
|
- "name": "arrowdown",
|
|
|
- "font_class": "arrowdown",
|
|
|
- "unicode": "e6b8",
|
|
|
- "unicode_decimal": 59064
|
|
|
- }, {
|
|
|
- "icon_id": "24923346",
|
|
|
- "name": "arrowright",
|
|
|
- "font_class": "right",
|
|
|
- "unicode": "e6b5",
|
|
|
- "unicode_decimal": 59061
|
|
|
- }, {
|
|
|
- "icon_id": "24923346",
|
|
|
- "name": "arrowright",
|
|
|
- "font_class": "arrowright",
|
|
|
- "unicode": "e6b5",
|
|
|
- "unicode_decimal": 59061
|
|
|
- }, {
|
|
|
- "icon_id": "24923347",
|
|
|
- "name": "arrowup",
|
|
|
- "font_class": "top",
|
|
|
- "unicode": "e6b6",
|
|
|
- "unicode_decimal": 59062
|
|
|
- }, {
|
|
|
- "icon_id": "24923347",
|
|
|
- "name": "arrowup",
|
|
|
- "font_class": "arrowup",
|
|
|
- "unicode": "e6b6",
|
|
|
- "unicode_decimal": 59062
|
|
|
- }, {
|
|
|
- "icon_id": "24923348",
|
|
|
- "name": "arrowleft",
|
|
|
- "font_class": "left",
|
|
|
- "unicode": "e6b7",
|
|
|
- "unicode_decimal": 59063
|
|
|
- }, {
|
|
|
- "icon_id": "24923348",
|
|
|
- "name": "arrowleft",
|
|
|
- "font_class": "arrowleft",
|
|
|
- "unicode": "e6b7",
|
|
|
- "unicode_decimal": 59063
|
|
|
- }, {
|
|
|
- "icon_id": "24923334",
|
|
|
- "name": "eye",
|
|
|
- "font_class": "eye",
|
|
|
- "unicode": "e651",
|
|
|
- "unicode_decimal": 58961
|
|
|
- }, {
|
|
|
- "icon_id": "24923335",
|
|
|
- "name": "eye-filled",
|
|
|
- "font_class": "eye-filled",
|
|
|
- "unicode": "e66a",
|
|
|
- "unicode_decimal": 58986
|
|
|
- }, {
|
|
|
- "icon_id": "24923336",
|
|
|
- "name": "eye-slash",
|
|
|
- "font_class": "eye-slash",
|
|
|
- "unicode": "e6b3",
|
|
|
- "unicode_decimal": 59059
|
|
|
- }, {
|
|
|
- "icon_id": "24923337",
|
|
|
- "name": "eye-slash-filled",
|
|
|
- "font_class": "eye-slash-filled",
|
|
|
- "unicode": "e6b4",
|
|
|
- "unicode_decimal": 59060
|
|
|
- }, {
|
|
|
- "icon_id": "24923305",
|
|
|
- "name": "info-filled",
|
|
|
- "font_class": "info-filled",
|
|
|
- "unicode": "e649",
|
|
|
- "unicode_decimal": 58953
|
|
|
- }, {
|
|
|
- "icon_id": "24923299",
|
|
|
- "name": "reload-01",
|
|
|
- "font_class": "reload",
|
|
|
- "unicode": "e6b2",
|
|
|
- "unicode_decimal": 59058
|
|
|
- }, {
|
|
|
- "icon_id": "24923195",
|
|
|
- "name": "mic_slash_fill",
|
|
|
- "font_class": "micoff-filled",
|
|
|
- "unicode": "e6b0",
|
|
|
- "unicode_decimal": 59056
|
|
|
- }, {
|
|
|
- "icon_id": "24923165",
|
|
|
- "name": "map-pin-ellipse",
|
|
|
- "font_class": "map-pin-ellipse",
|
|
|
- "unicode": "e6ac",
|
|
|
- "unicode_decimal": 59052
|
|
|
- }, {
|
|
|
- "icon_id": "24923166",
|
|
|
- "name": "map-pin",
|
|
|
- "font_class": "map-pin",
|
|
|
- "unicode": "e6ad",
|
|
|
- "unicode_decimal": 59053
|
|
|
- }, {
|
|
|
- "icon_id": "24923167",
|
|
|
- "name": "location",
|
|
|
- "font_class": "location",
|
|
|
- "unicode": "e6ae",
|
|
|
- "unicode_decimal": 59054
|
|
|
- }, {
|
|
|
- "icon_id": "24923064",
|
|
|
- "name": "starhalf",
|
|
|
- "font_class": "starhalf",
|
|
|
- "unicode": "e683",
|
|
|
- "unicode_decimal": 59011
|
|
|
- }, {
|
|
|
- "icon_id": "24923065",
|
|
|
- "name": "star",
|
|
|
- "font_class": "star",
|
|
|
- "unicode": "e688",
|
|
|
- "unicode_decimal": 59016
|
|
|
- }, {
|
|
|
- "icon_id": "24923066",
|
|
|
- "name": "star-filled",
|
|
|
- "font_class": "star-filled",
|
|
|
- "unicode": "e68f",
|
|
|
- "unicode_decimal": 59023
|
|
|
- }, {
|
|
|
- "icon_id": "24899646",
|
|
|
- "name": "a-rilidaka",
|
|
|
- "font_class": "calendar",
|
|
|
- "unicode": "e6a0",
|
|
|
- "unicode_decimal": 59040
|
|
|
- }, {
|
|
|
- "icon_id": "24899647",
|
|
|
- "name": "fire",
|
|
|
- "font_class": "fire",
|
|
|
- "unicode": "e6a1",
|
|
|
- "unicode_decimal": 59041
|
|
|
- }, {
|
|
|
- "icon_id": "24899648",
|
|
|
- "name": "paihangbang",
|
|
|
- "font_class": "medal",
|
|
|
- "unicode": "e6a2",
|
|
|
- "unicode_decimal": 59042
|
|
|
- }, {
|
|
|
- "icon_id": "24899649",
|
|
|
- "name": "font",
|
|
|
- "font_class": "font",
|
|
|
- "unicode": "e6a3",
|
|
|
- "unicode_decimal": 59043
|
|
|
- }, {
|
|
|
- "icon_id": "24899650",
|
|
|
- "name": "gift",
|
|
|
- "font_class": "gift",
|
|
|
- "unicode": "e6a4",
|
|
|
- "unicode_decimal": 59044
|
|
|
- }, {
|
|
|
- "icon_id": "24899651",
|
|
|
- "name": "link",
|
|
|
- "font_class": "link",
|
|
|
- "unicode": "e6a5",
|
|
|
- "unicode_decimal": 59045
|
|
|
- }, {
|
|
|
- "icon_id": "24899652",
|
|
|
- "name": "notification",
|
|
|
- "font_class": "notification",
|
|
|
- "unicode": "e6a6",
|
|
|
- "unicode_decimal": 59046
|
|
|
- }, {
|
|
|
- "icon_id": "24899653",
|
|
|
- "name": "staff",
|
|
|
- "font_class": "staff",
|
|
|
- "unicode": "e6a7",
|
|
|
- "unicode_decimal": 59047
|
|
|
- }, {
|
|
|
- "icon_id": "24899654",
|
|
|
- "name": "VIP",
|
|
|
- "font_class": "vip",
|
|
|
- "unicode": "e6a8",
|
|
|
- "unicode_decimal": 59048
|
|
|
- }, {
|
|
|
- "icon_id": "24899655",
|
|
|
- "name": "folder_add",
|
|
|
- "font_class": "folder-add",
|
|
|
- "unicode": "e6a9",
|
|
|
- "unicode_decimal": 59049
|
|
|
- }, {
|
|
|
- "icon_id": "24899656",
|
|
|
- "name": "tune",
|
|
|
- "font_class": "tune",
|
|
|
- "unicode": "e6aa",
|
|
|
- "unicode_decimal": 59050
|
|
|
- }, {
|
|
|
- "icon_id": "24899657",
|
|
|
- "name": "shimingrenzheng",
|
|
|
- "font_class": "auth",
|
|
|
- "unicode": "e6ab",
|
|
|
- "unicode_decimal": 59051
|
|
|
- }, {
|
|
|
- "icon_id": "24899565",
|
|
|
- "name": "person",
|
|
|
- "font_class": "person",
|
|
|
- "unicode": "e699",
|
|
|
- "unicode_decimal": 59033
|
|
|
- }, {
|
|
|
- "icon_id": "24899566",
|
|
|
- "name": "email-filled",
|
|
|
- "font_class": "email-filled",
|
|
|
- "unicode": "e69a",
|
|
|
- "unicode_decimal": 59034
|
|
|
- }, {
|
|
|
- "icon_id": "24899567",
|
|
|
- "name": "phone-filled",
|
|
|
- "font_class": "phone-filled",
|
|
|
- "unicode": "e69b",
|
|
|
- "unicode_decimal": 59035
|
|
|
- }, {
|
|
|
- "icon_id": "24899568",
|
|
|
- "name": "phone",
|
|
|
- "font_class": "phone",
|
|
|
- "unicode": "e69c",
|
|
|
- "unicode_decimal": 59036
|
|
|
- }, {
|
|
|
- "icon_id": "24899570",
|
|
|
- "name": "email",
|
|
|
- "font_class": "email",
|
|
|
- "unicode": "e69e",
|
|
|
- "unicode_decimal": 59038
|
|
|
- }, {
|
|
|
- "icon_id": "24899571",
|
|
|
- "name": "personadd",
|
|
|
- "font_class": "personadd",
|
|
|
- "unicode": "e69f",
|
|
|
- "unicode_decimal": 59039
|
|
|
- }, {
|
|
|
- "icon_id": "24899558",
|
|
|
- "name": "chatboxes-filled",
|
|
|
- "font_class": "chatboxes-filled",
|
|
|
- "unicode": "e692",
|
|
|
- "unicode_decimal": 59026
|
|
|
- }, {
|
|
|
- "icon_id": "24899559",
|
|
|
- "name": "contact",
|
|
|
- "font_class": "contact",
|
|
|
- "unicode": "e693",
|
|
|
- "unicode_decimal": 59027
|
|
|
- }, {
|
|
|
- "icon_id": "24899560",
|
|
|
- "name": "chatbubble-filled",
|
|
|
- "font_class": "chatbubble-filled",
|
|
|
- "unicode": "e694",
|
|
|
- "unicode_decimal": 59028
|
|
|
- }, {
|
|
|
- "icon_id": "24899561",
|
|
|
- "name": "contact-filled",
|
|
|
- "font_class": "contact-filled",
|
|
|
- "unicode": "e695",
|
|
|
- "unicode_decimal": 59029
|
|
|
- }, {
|
|
|
- "icon_id": "24899562",
|
|
|
- "name": "chatboxes",
|
|
|
- "font_class": "chatboxes",
|
|
|
- "unicode": "e696",
|
|
|
- "unicode_decimal": 59030
|
|
|
- }, {
|
|
|
- "icon_id": "24899563",
|
|
|
- "name": "chatbubble",
|
|
|
- "font_class": "chatbubble",
|
|
|
- "unicode": "e697",
|
|
|
- "unicode_decimal": 59031
|
|
|
- }, {
|
|
|
- "icon_id": "24881290",
|
|
|
- "name": "upload-filled",
|
|
|
- "font_class": "upload-filled",
|
|
|
- "unicode": "e68e",
|
|
|
- "unicode_decimal": 59022
|
|
|
- }, {
|
|
|
- "icon_id": "24881292",
|
|
|
- "name": "upload",
|
|
|
- "font_class": "upload",
|
|
|
- "unicode": "e690",
|
|
|
- "unicode_decimal": 59024
|
|
|
- }, {
|
|
|
- "icon_id": "24881293",
|
|
|
- "name": "weixin",
|
|
|
- "font_class": "weixin",
|
|
|
- "unicode": "e691",
|
|
|
- "unicode_decimal": 59025
|
|
|
- }, {
|
|
|
- "icon_id": "24881274",
|
|
|
- "name": "compose",
|
|
|
- "font_class": "compose",
|
|
|
- "unicode": "e67f",
|
|
|
- "unicode_decimal": 59007
|
|
|
- }, {
|
|
|
- "icon_id": "24881275",
|
|
|
- "name": "qq",
|
|
|
- "font_class": "qq",
|
|
|
- "unicode": "e680",
|
|
|
- "unicode_decimal": 59008
|
|
|
- }, {
|
|
|
- "icon_id": "24881276",
|
|
|
- "name": "download-filled",
|
|
|
- "font_class": "download-filled",
|
|
|
- "unicode": "e681",
|
|
|
- "unicode_decimal": 59009
|
|
|
- }, {
|
|
|
- "icon_id": "24881277",
|
|
|
- "name": "pengyouquan",
|
|
|
- "font_class": "pyq",
|
|
|
- "unicode": "e682",
|
|
|
- "unicode_decimal": 59010
|
|
|
- }, {
|
|
|
- "icon_id": "24881279",
|
|
|
- "name": "sound",
|
|
|
- "font_class": "sound",
|
|
|
- "unicode": "e684",
|
|
|
- "unicode_decimal": 59012
|
|
|
- }, {
|
|
|
- "icon_id": "24881280",
|
|
|
- "name": "trash-filled",
|
|
|
- "font_class": "trash-filled",
|
|
|
- "unicode": "e685",
|
|
|
- "unicode_decimal": 59013
|
|
|
- }, {
|
|
|
- "icon_id": "24881281",
|
|
|
- "name": "sound-filled",
|
|
|
- "font_class": "sound-filled",
|
|
|
- "unicode": "e686",
|
|
|
- "unicode_decimal": 59014
|
|
|
- }, {
|
|
|
- "icon_id": "24881282",
|
|
|
- "name": "trash",
|
|
|
- "font_class": "trash",
|
|
|
- "unicode": "e687",
|
|
|
- "unicode_decimal": 59015
|
|
|
- }, {
|
|
|
- "icon_id": "24881284",
|
|
|
- "name": "videocam-filled",
|
|
|
- "font_class": "videocam-filled",
|
|
|
- "unicode": "e689",
|
|
|
- "unicode_decimal": 59017
|
|
|
- }, {
|
|
|
- "icon_id": "24881285",
|
|
|
- "name": "spinner-cycle",
|
|
|
- "font_class": "spinner-cycle",
|
|
|
- "unicode": "e68a",
|
|
|
- "unicode_decimal": 59018
|
|
|
- }, {
|
|
|
- "icon_id": "24881286",
|
|
|
- "name": "weibo",
|
|
|
- "font_class": "weibo",
|
|
|
- "unicode": "e68b",
|
|
|
- "unicode_decimal": 59019
|
|
|
- }, {
|
|
|
- "icon_id": "24881288",
|
|
|
- "name": "videocam",
|
|
|
- "font_class": "videocam",
|
|
|
- "unicode": "e68c",
|
|
|
- "unicode_decimal": 59020
|
|
|
- }, {
|
|
|
- "icon_id": "24881289",
|
|
|
- "name": "download",
|
|
|
- "font_class": "download",
|
|
|
- "unicode": "e68d",
|
|
|
- "unicode_decimal": 59021
|
|
|
- }, {
|
|
|
- "icon_id": "24879601",
|
|
|
- "name": "help",
|
|
|
- "font_class": "help",
|
|
|
- "unicode": "e679",
|
|
|
- "unicode_decimal": 59001
|
|
|
- }, {
|
|
|
- "icon_id": "24879602",
|
|
|
- "name": "navigate-filled",
|
|
|
- "font_class": "navigate-filled",
|
|
|
- "unicode": "e67a",
|
|
|
- "unicode_decimal": 59002
|
|
|
- }, {
|
|
|
- "icon_id": "24879603",
|
|
|
- "name": "plusempty",
|
|
|
- "font_class": "plusempty",
|
|
|
- "unicode": "e67b",
|
|
|
- "unicode_decimal": 59003
|
|
|
- }, {
|
|
|
- "icon_id": "24879604",
|
|
|
- "name": "smallcircle",
|
|
|
- "font_class": "smallcircle",
|
|
|
- "unicode": "e67c",
|
|
|
- "unicode_decimal": 59004
|
|
|
- }, {
|
|
|
- "icon_id": "24879605",
|
|
|
- "name": "minus-filled",
|
|
|
- "font_class": "minus-filled",
|
|
|
- "unicode": "e67d",
|
|
|
- "unicode_decimal": 59005
|
|
|
- }, {
|
|
|
- "icon_id": "24879606",
|
|
|
- "name": "micoff",
|
|
|
- "font_class": "micoff",
|
|
|
- "unicode": "e67e",
|
|
|
- "unicode_decimal": 59006
|
|
|
- }, {
|
|
|
- "icon_id": "24879588",
|
|
|
- "name": "closeempty",
|
|
|
- "font_class": "closeempty",
|
|
|
- "unicode": "e66c",
|
|
|
- "unicode_decimal": 58988
|
|
|
- }, {
|
|
|
- "icon_id": "24879589",
|
|
|
- "name": "clear",
|
|
|
- "font_class": "clear",
|
|
|
- "unicode": "e66d",
|
|
|
- "unicode_decimal": 58989
|
|
|
- }, {
|
|
|
- "icon_id": "24879590",
|
|
|
- "name": "navigate",
|
|
|
- "font_class": "navigate",
|
|
|
- "unicode": "e66e",
|
|
|
- "unicode_decimal": 58990
|
|
|
- }, {
|
|
|
- "icon_id": "24879591",
|
|
|
- "name": "minus",
|
|
|
- "font_class": "minus",
|
|
|
- "unicode": "e66f",
|
|
|
- "unicode_decimal": 58991
|
|
|
- }, {
|
|
|
- "icon_id": "24879592",
|
|
|
- "name": "image",
|
|
|
- "font_class": "image",
|
|
|
- "unicode": "e670",
|
|
|
- "unicode_decimal": 58992
|
|
|
- }, {
|
|
|
- "icon_id": "24879593",
|
|
|
- "name": "mic",
|
|
|
- "font_class": "mic",
|
|
|
- "unicode": "e671",
|
|
|
- "unicode_decimal": 58993
|
|
|
- }, {
|
|
|
- "icon_id": "24879594",
|
|
|
- "name": "paperplane",
|
|
|
- "font_class": "paperplane",
|
|
|
- "unicode": "e672",
|
|
|
- "unicode_decimal": 58994
|
|
|
- }, {
|
|
|
- "icon_id": "24879595",
|
|
|
- "name": "close",
|
|
|
- "font_class": "close",
|
|
|
- "unicode": "e673",
|
|
|
- "unicode_decimal": 58995
|
|
|
- }, {
|
|
|
- "icon_id": "24879596",
|
|
|
- "name": "help-filled",
|
|
|
- "font_class": "help-filled",
|
|
|
- "unicode": "e674",
|
|
|
- "unicode_decimal": 58996
|
|
|
- }, {
|
|
|
- "icon_id": "24879597",
|
|
|
- "name": "plus-filled",
|
|
|
- "font_class": "paperplane-filled",
|
|
|
- "unicode": "e675",
|
|
|
- "unicode_decimal": 58997
|
|
|
- }, {
|
|
|
- "icon_id": "24879598",
|
|
|
- "name": "plus",
|
|
|
- "font_class": "plus",
|
|
|
- "unicode": "e676",
|
|
|
- "unicode_decimal": 58998
|
|
|
- }, {
|
|
|
- "icon_id": "24879599",
|
|
|
- "name": "mic-filled",
|
|
|
- "font_class": "mic-filled",
|
|
|
- "unicode": "e677",
|
|
|
- "unicode_decimal": 58999
|
|
|
- }, {
|
|
|
- "icon_id": "24879600",
|
|
|
- "name": "image-filled",
|
|
|
- "font_class": "image-filled",
|
|
|
- "unicode": "e678",
|
|
|
- "unicode_decimal": 59000
|
|
|
- }, {
|
|
|
- "icon_id": "24855900",
|
|
|
- "name": "locked-filled",
|
|
|
- "font_class": "locked-filled",
|
|
|
- "unicode": "e668",
|
|
|
- "unicode_decimal": 58984
|
|
|
- }, {
|
|
|
- "icon_id": "24855901",
|
|
|
- "name": "info",
|
|
|
- "font_class": "info",
|
|
|
- "unicode": "e669",
|
|
|
- "unicode_decimal": 58985
|
|
|
- }, {
|
|
|
- "icon_id": "24855903",
|
|
|
- "name": "locked",
|
|
|
- "font_class": "locked",
|
|
|
- "unicode": "e66b",
|
|
|
- "unicode_decimal": 58987
|
|
|
- }, {
|
|
|
- "icon_id": "24855884",
|
|
|
- "name": "camera-filled",
|
|
|
- "font_class": "camera-filled",
|
|
|
- "unicode": "e658",
|
|
|
- "unicode_decimal": 58968
|
|
|
- }, {
|
|
|
- "icon_id": "24855885",
|
|
|
- "name": "chat-filled",
|
|
|
- "font_class": "chat-filled",
|
|
|
- "unicode": "e659",
|
|
|
- "unicode_decimal": 58969
|
|
|
- }, {
|
|
|
- "icon_id": "24855886",
|
|
|
- "name": "camera",
|
|
|
- "font_class": "camera",
|
|
|
- "unicode": "e65a",
|
|
|
- "unicode_decimal": 58970
|
|
|
- }, {
|
|
|
- "icon_id": "24855887",
|
|
|
- "name": "circle",
|
|
|
- "font_class": "circle",
|
|
|
- "unicode": "e65b",
|
|
|
- "unicode_decimal": 58971
|
|
|
- }, {
|
|
|
- "icon_id": "24855888",
|
|
|
- "name": "checkmarkempty",
|
|
|
- "font_class": "checkmarkempty",
|
|
|
- "unicode": "e65c",
|
|
|
- "unicode_decimal": 58972
|
|
|
- }, {
|
|
|
- "icon_id": "24855889",
|
|
|
- "name": "chat",
|
|
|
- "font_class": "chat",
|
|
|
- "unicode": "e65d",
|
|
|
- "unicode_decimal": 58973
|
|
|
- }, {
|
|
|
- "icon_id": "24855890",
|
|
|
- "name": "circle-filled",
|
|
|
- "font_class": "circle-filled",
|
|
|
- "unicode": "e65e",
|
|
|
- "unicode_decimal": 58974
|
|
|
- }, {
|
|
|
- "icon_id": "24855891",
|
|
|
- "name": "flag",
|
|
|
- "font_class": "flag",
|
|
|
- "unicode": "e65f",
|
|
|
- "unicode_decimal": 58975
|
|
|
- }, {
|
|
|
- "icon_id": "24855892",
|
|
|
- "name": "flag-filled",
|
|
|
- "font_class": "flag-filled",
|
|
|
- "unicode": "e660",
|
|
|
- "unicode_decimal": 58976
|
|
|
- }, {
|
|
|
- "icon_id": "24855893",
|
|
|
- "name": "gear-filled",
|
|
|
- "font_class": "gear-filled",
|
|
|
- "unicode": "e661",
|
|
|
- "unicode_decimal": 58977
|
|
|
- }, {
|
|
|
- "icon_id": "24855894",
|
|
|
- "name": "home",
|
|
|
- "font_class": "home",
|
|
|
- "unicode": "e662",
|
|
|
- "unicode_decimal": 58978
|
|
|
- }, {
|
|
|
- "icon_id": "24855895",
|
|
|
- "name": "home-filled",
|
|
|
- "font_class": "home-filled",
|
|
|
- "unicode": "e663",
|
|
|
- "unicode_decimal": 58979
|
|
|
- }, {
|
|
|
- "icon_id": "24855896",
|
|
|
- "name": "gear",
|
|
|
- "font_class": "gear",
|
|
|
- "unicode": "e664",
|
|
|
- "unicode_decimal": 58980
|
|
|
- }, {
|
|
|
- "icon_id": "24855897",
|
|
|
- "name": "smallcircle-filled",
|
|
|
- "font_class": "smallcircle-filled",
|
|
|
- "unicode": "e665",
|
|
|
- "unicode_decimal": 58981
|
|
|
- }, {
|
|
|
- "icon_id": "24855898",
|
|
|
- "name": "map-filled",
|
|
|
- "font_class": "map-filled",
|
|
|
- "unicode": "e666",
|
|
|
- "unicode_decimal": 58982
|
|
|
- }, {
|
|
|
- "icon_id": "24855899",
|
|
|
- "name": "map",
|
|
|
- "font_class": "map",
|
|
|
- "unicode": "e667",
|
|
|
- "unicode_decimal": 58983
|
|
|
- }, {
|
|
|
- "icon_id": "24855825",
|
|
|
- "name": "refresh-filled",
|
|
|
- "font_class": "refresh-filled",
|
|
|
- "unicode": "e656",
|
|
|
- "unicode_decimal": 58966
|
|
|
- }, {
|
|
|
- "icon_id": "24855826",
|
|
|
- "name": "refresh",
|
|
|
- "font_class": "refresh",
|
|
|
- "unicode": "e657",
|
|
|
- "unicode_decimal": 58967
|
|
|
- }, {
|
|
|
- "icon_id": "24855808",
|
|
|
- "name": "cloud-upload",
|
|
|
- "font_class": "cloud-upload",
|
|
|
- "unicode": "e645",
|
|
|
- "unicode_decimal": 58949
|
|
|
- }, {
|
|
|
- "icon_id": "24855809",
|
|
|
- "name": "cloud-download-filled",
|
|
|
- "font_class": "cloud-download-filled",
|
|
|
- "unicode": "e646",
|
|
|
- "unicode_decimal": 58950
|
|
|
- }, {
|
|
|
- "icon_id": "24855810",
|
|
|
- "name": "cloud-download",
|
|
|
- "font_class": "cloud-download",
|
|
|
- "unicode": "e647",
|
|
|
- "unicode_decimal": 58951
|
|
|
- }, {
|
|
|
- "icon_id": "24855811",
|
|
|
- "name": "cloud-upload-filled",
|
|
|
- "font_class": "cloud-upload-filled",
|
|
|
- "unicode": "e648",
|
|
|
- "unicode_decimal": 58952
|
|
|
- }, {
|
|
|
- "icon_id": "24855813",
|
|
|
- "name": "redo",
|
|
|
- "font_class": "redo",
|
|
|
- "unicode": "e64a",
|
|
|
- "unicode_decimal": 58954
|
|
|
- }, {
|
|
|
- "icon_id": "24855814",
|
|
|
- "name": "images-filled",
|
|
|
- "font_class": "images-filled",
|
|
|
- "unicode": "e64b",
|
|
|
- "unicode_decimal": 58955
|
|
|
- }, {
|
|
|
- "icon_id": "24855815",
|
|
|
- "name": "undo-filled",
|
|
|
- "font_class": "undo-filled",
|
|
|
- "unicode": "e64c",
|
|
|
- "unicode_decimal": 58956
|
|
|
- }, {
|
|
|
- "icon_id": "24855816",
|
|
|
- "name": "more",
|
|
|
- "font_class": "more",
|
|
|
- "unicode": "e64d",
|
|
|
- "unicode_decimal": 58957
|
|
|
- }, {
|
|
|
- "icon_id": "24855817",
|
|
|
- "name": "more-filled",
|
|
|
- "font_class": "more-filled",
|
|
|
- "unicode": "e64e",
|
|
|
- "unicode_decimal": 58958
|
|
|
- }, {
|
|
|
- "icon_id": "24855818",
|
|
|
- "name": "undo",
|
|
|
- "font_class": "undo",
|
|
|
- "unicode": "e64f",
|
|
|
- "unicode_decimal": 58959
|
|
|
- }, {
|
|
|
- "icon_id": "24855819",
|
|
|
- "name": "images",
|
|
|
- "font_class": "images",
|
|
|
- "unicode": "e650",
|
|
|
- "unicode_decimal": 58960
|
|
|
- }, {
|
|
|
- "icon_id": "24855821",
|
|
|
- "name": "paperclip",
|
|
|
- "font_class": "paperclip",
|
|
|
- "unicode": "e652",
|
|
|
- "unicode_decimal": 58962
|
|
|
- }, {
|
|
|
- "icon_id": "24855822",
|
|
|
- "name": "settings",
|
|
|
- "font_class": "settings",
|
|
|
- "unicode": "e653",
|
|
|
- "unicode_decimal": 58963
|
|
|
- }, {
|
|
|
- "icon_id": "24855823",
|
|
|
- "name": "search",
|
|
|
- "font_class": "search",
|
|
|
- "unicode": "e654",
|
|
|
- "unicode_decimal": 58964
|
|
|
- }, {
|
|
|
- "icon_id": "24855824",
|
|
|
- "name": "redo-filled",
|
|
|
- "font_class": "redo-filled",
|
|
|
- "unicode": "e655",
|
|
|
- "unicode_decimal": 58965
|
|
|
- }, {
|
|
|
- "icon_id": "24841702",
|
|
|
- "name": "list",
|
|
|
- "font_class": "list",
|
|
|
- "unicode": "e644",
|
|
|
- "unicode_decimal": 58948
|
|
|
- }, {
|
|
|
- "icon_id": "24841489",
|
|
|
- "name": "mail-open-filled",
|
|
|
- "font_class": "mail-open-filled",
|
|
|
- "unicode": "e63a",
|
|
|
- "unicode_decimal": 58938
|
|
|
- }, {
|
|
|
- "icon_id": "24841491",
|
|
|
- "name": "hand-thumbsdown-filled",
|
|
|
- "font_class": "hand-down-filled",
|
|
|
- "unicode": "e63c",
|
|
|
- "unicode_decimal": 58940
|
|
|
- }, {
|
|
|
- "icon_id": "24841492",
|
|
|
- "name": "hand-thumbsdown",
|
|
|
- "font_class": "hand-down",
|
|
|
- "unicode": "e63d",
|
|
|
- "unicode_decimal": 58941
|
|
|
- }, {
|
|
|
- "icon_id": "24841493",
|
|
|
- "name": "hand-thumbsup-filled",
|
|
|
- "font_class": "hand-up-filled",
|
|
|
- "unicode": "e63e",
|
|
|
- "unicode_decimal": 58942
|
|
|
- }, {
|
|
|
- "icon_id": "24841494",
|
|
|
- "name": "hand-thumbsup",
|
|
|
- "font_class": "hand-up",
|
|
|
- "unicode": "e63f",
|
|
|
- "unicode_decimal": 58943
|
|
|
- }, {
|
|
|
- "icon_id": "24841496",
|
|
|
- "name": "heart-filled",
|
|
|
- "font_class": "heart-filled",
|
|
|
- "unicode": "e641",
|
|
|
- "unicode_decimal": 58945
|
|
|
- }, {
|
|
|
- "icon_id": "24841498",
|
|
|
- "name": "mail-open",
|
|
|
- "font_class": "mail-open",
|
|
|
- "unicode": "e643",
|
|
|
- "unicode_decimal": 58947
|
|
|
- }, {
|
|
|
- "icon_id": "24841488",
|
|
|
- "name": "heart",
|
|
|
- "font_class": "heart",
|
|
|
- "unicode": "e639",
|
|
|
- "unicode_decimal": 58937
|
|
|
- }, {
|
|
|
- "icon_id": "24839963",
|
|
|
- "name": "loop",
|
|
|
- "font_class": "loop",
|
|
|
- "unicode": "e633",
|
|
|
- "unicode_decimal": 58931
|
|
|
- }, {
|
|
|
- "icon_id": "24839866",
|
|
|
- "name": "pulldown",
|
|
|
- "font_class": "pulldown",
|
|
|
- "unicode": "e632",
|
|
|
- "unicode_decimal": 58930
|
|
|
- }, {
|
|
|
- "icon_id": "24813798",
|
|
|
- "name": "scan",
|
|
|
- "font_class": "scan",
|
|
|
- "unicode": "e62a",
|
|
|
- "unicode_decimal": 58922
|
|
|
- }, {
|
|
|
- "icon_id": "24813786",
|
|
|
- "name": "bars",
|
|
|
- "font_class": "bars",
|
|
|
- "unicode": "e627",
|
|
|
- "unicode_decimal": 58919
|
|
|
- }, {
|
|
|
- "icon_id": "24813788",
|
|
|
- "name": "cart-filled",
|
|
|
- "font_class": "cart-filled",
|
|
|
- "unicode": "e629",
|
|
|
- "unicode_decimal": 58921
|
|
|
- }, {
|
|
|
- "icon_id": "24813790",
|
|
|
- "name": "checkbox",
|
|
|
- "font_class": "checkbox",
|
|
|
- "unicode": "e62b",
|
|
|
- "unicode_decimal": 58923
|
|
|
- }, {
|
|
|
- "icon_id": "24813791",
|
|
|
- "name": "checkbox-filled",
|
|
|
- "font_class": "checkbox-filled",
|
|
|
- "unicode": "e62c",
|
|
|
- "unicode_decimal": 58924
|
|
|
- }, {
|
|
|
- "icon_id": "24813794",
|
|
|
- "name": "shop",
|
|
|
- "font_class": "shop",
|
|
|
- "unicode": "e62f",
|
|
|
- "unicode_decimal": 58927
|
|
|
- }, {
|
|
|
- "icon_id": "24813795",
|
|
|
- "name": "headphones",
|
|
|
- "font_class": "headphones",
|
|
|
- "unicode": "e630",
|
|
|
- "unicode_decimal": 58928
|
|
|
- }, {
|
|
|
- "icon_id": "24813796",
|
|
|
- "name": "cart",
|
|
|
- "font_class": "cart",
|
|
|
- "unicode": "e631",
|
|
|
- "unicode_decimal": 58929
|
|
|
- }]
|
|
|
+ props: {
|
|
|
+ // 输入的值
|
|
|
+ value: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.input.value
|
|
|
+ },
|
|
|
+ // 输入框类型
|
|
|
+ // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
|
|
|
+ // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
|
|
|
+ // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
|
|
|
+ // text-文本输入键盘
|
|
|
+ type: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.type
|
|
|
+ },
|
|
|
+ // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
|
|
|
+ // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
|
|
|
+ fixed: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.fixed
|
|
|
+ },
|
|
|
+ // 是否禁用输入框
|
|
|
+ disabled: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.disabled
|
|
|
+ },
|
|
|
+ // 禁用状态时的背景色
|
|
|
+ disabledColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.disabledColor
|
|
|
+ },
|
|
|
+ // 是否显示清除控件
|
|
|
+ clearable: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.clearable
|
|
|
+ },
|
|
|
+ // 是否密码类型
|
|
|
+ password: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.password
|
|
|
+ },
|
|
|
+ // 最大输入长度,设置为 -1 的时候不限制最大长度
|
|
|
+ maxlength: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.input.maxlength
|
|
|
+ },
|
|
|
+ // 输入框为空时的占位符
|
|
|
+ placeholder: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.placeholder
|
|
|
+ },
|
|
|
+ // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
|
|
|
+ placeholderClass: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.placeholderClass
|
|
|
+ },
|
|
|
+ // 指定placeholder的样式
|
|
|
+ placeholderStyle: {
|
|
|
+ type: [String, Object],
|
|
|
+ default: uni.$u.props.input.placeholderStyle
|
|
|
+ },
|
|
|
+ // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
|
|
|
+ showWordLimit: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.showWordLimit
|
|
|
+ },
|
|
|
+ // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
|
|
|
+ // https://uniapp.dcloud.io/component/input
|
|
|
+ // https://uniapp.dcloud.io/component/textarea
|
|
|
+ confirmType: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.confirmType
|
|
|
+ },
|
|
|
+ // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
|
|
|
+ confirmHold: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.confirmHold
|
|
|
+ },
|
|
|
+ // focus时,点击页面的时候不收起键盘,微信小程序有效
|
|
|
+ holdKeyboard: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.holdKeyboard
|
|
|
+ },
|
|
|
+ // 自动获取焦点
|
|
|
+ // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
|
|
|
+ focus: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.focus
|
|
|
+ },
|
|
|
+ // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
|
|
|
+ autoBlur: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.autoBlur
|
|
|
+ },
|
|
|
+ // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
|
|
|
+ disableDefaultPadding: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.disableDefaultPadding
|
|
|
+ },
|
|
|
+ // 指定focus时光标的位置
|
|
|
+ cursor: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.input.cursor
|
|
|
+ },
|
|
|
+ // 输入框聚焦时底部与键盘的距离
|
|
|
+ cursorSpacing: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.input.cursorSpacing
|
|
|
+ },
|
|
|
+ // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
|
|
|
+ selectionStart: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.input.selectionStart
|
|
|
+ },
|
|
|
+ // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
|
|
|
+ selectionEnd: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.input.selectionEnd
|
|
|
+ },
|
|
|
+ // 键盘弹起时,是否自动上推页面
|
|
|
+ adjustPosition: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.adjustPosition
|
|
|
+ },
|
|
|
+ // 输入框内容对齐方式,可选值为:left|center|right
|
|
|
+ inputAlign: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.inputAlign
|
|
|
+ },
|
|
|
+ // 输入框字体的大小
|
|
|
+ fontSize: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.input.fontSize
|
|
|
+ },
|
|
|
+ // 输入框字体颜色
|
|
|
+ color: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.color
|
|
|
+ },
|
|
|
+ // 输入框前置图标
|
|
|
+ prefixIcon: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.prefixIcon
|
|
|
+ },
|
|
|
+ // 前置图标样式,对象或字符串
|
|
|
+ prefixIconStyle: {
|
|
|
+ type: [String, Object],
|
|
|
+ default: uni.$u.props.input.prefixIconStyle
|
|
|
+ },
|
|
|
+ // 输入框后置图标
|
|
|
+ suffixIcon: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.suffixIcon
|
|
|
+ },
|
|
|
+ // 后置图标样式,对象或字符串
|
|
|
+ suffixIconStyle: {
|
|
|
+ type: [String, Object],
|
|
|
+ default: uni.$u.props.input.suffixIconStyle
|
|
|
+ },
|
|
|
+ // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
|
|
|
+ border: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.border
|
|
|
+ },
|
|
|
+ // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
|
|
|
+ readonly: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.input.readonly
|
|
|
+ },
|
|
|
+ // 输入框形状,circle-圆形,square-方形
|
|
|
+ shape: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.input.shape
|
|
|
+ },
|
|
|
+ // 用于处理或者过滤输入框内容的方法
|
|
|
+ formatter: {
|
|
|
+ type: [Function, null],
|
|
|
+ default: uni.$u.props.input.formatter
|
|
|
+ },
|
|
|
+ // 是否忽略组件内对文本合成系统事件的处理
|
|
|
+ ignoreCompositionEvent: {
|
|
|
+ type: Boolean,
|
|
|
+ default: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 278 */,
|
|
|
+/* 279 */,
|
|
|
+/* 280 */,
|
|
|
+/* 281 */,
|
|
|
+/* 282 */,
|
|
|
+/* 283 */
|
|
|
+/*!*************************************************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-code/props.js ***!
|
|
|
+ \*************************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 倒计时总秒数
|
|
|
+ seconds: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.code.seconds
|
|
|
+ },
|
|
|
+ // 尚未开始时提示
|
|
|
+ startText: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.code.startText
|
|
|
+ },
|
|
|
+ // 正在倒计时中的提示
|
|
|
+ changeText: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.code.changeText
|
|
|
+ },
|
|
|
+ // 倒计时结束时的提示
|
|
|
+ endText: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.code.endText
|
|
|
+ },
|
|
|
+ // 是否在H5刷新或各端返回再进入时继续倒计时
|
|
|
+ keepRunning: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.code.keepRunning
|
|
|
+ },
|
|
|
+ // 为了区分多个页面,或者一个页面多个倒计时组件本地存储的继续倒计时变了
|
|
|
+ uniqueKey: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.code.uniqueKey
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 284 */,
|
|
|
+/* 285 */,
|
|
|
+/* 286 */,
|
|
|
+/* 287 */,
|
|
|
+/* 288 */,
|
|
|
+/* 289 */,
|
|
|
+/* 290 */,
|
|
|
+/* 291 */
|
|
|
+/*!**************************************************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-popup/props.js ***!
|
|
|
+ \**************************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 是否展示弹窗
|
|
|
+ show: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.popup.show
|
|
|
+ },
|
|
|
+ // 是否显示遮罩
|
|
|
+ overlay: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.popup.overlay
|
|
|
+ },
|
|
|
+ // 弹出的方向,可选值为 top bottom right left center
|
|
|
+ mode: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.popup.mode
|
|
|
+ },
|
|
|
+ // 动画时长,单位ms
|
|
|
+ duration: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.popup.duration
|
|
|
+ },
|
|
|
+ // 是否显示关闭图标
|
|
|
+ closeable: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.popup.closeable
|
|
|
+ },
|
|
|
+ // 自定义遮罩的样式
|
|
|
+ overlayStyle: {
|
|
|
+ type: [Object, String],
|
|
|
+ default: uni.$u.props.popup.overlayStyle
|
|
|
+ },
|
|
|
+ // 点击遮罩是否关闭弹窗
|
|
|
+ closeOnClickOverlay: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.popup.closeOnClickOverlay
|
|
|
+ },
|
|
|
+ // 层级
|
|
|
+ zIndex: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.popup.zIndex
|
|
|
+ },
|
|
|
+ // 是否为iPhoneX留出底部安全距离
|
|
|
+ safeAreaInsetBottom: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.popup.safeAreaInsetBottom
|
|
|
+ },
|
|
|
+ // 是否留出顶部安全距离(状态栏高度)
|
|
|
+ safeAreaInsetTop: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.popup.safeAreaInsetTop
|
|
|
+ },
|
|
|
+ // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
|
|
|
+ closeIconPos: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.popup.closeIconPos
|
|
|
+ },
|
|
|
+ // 是否显示圆角
|
|
|
+ round: {
|
|
|
+ type: [Boolean, String, Number],
|
|
|
+ default: uni.$u.props.popup.round
|
|
|
+ },
|
|
|
+ // mode=center,也即中部弹出时,是否使用缩放模式
|
|
|
+ zoom: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.popup.zoom
|
|
|
+ },
|
|
|
+ // 弹窗背景色,设置为transparent可去除白色背景
|
|
|
+ bgColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.popup.bgColor
|
|
|
+ },
|
|
|
+ // 遮罩的透明度,0-1之间
|
|
|
+ overlayOpacity: {
|
|
|
+ type: [Number, String],
|
|
|
+ default: uni.$u.props.popup.overlayOpacity
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 292 */,
|
|
|
+/* 293 */,
|
|
|
+/* 294 */,
|
|
|
+/* 295 */,
|
|
|
+/* 296 */,
|
|
|
+/* 297 */,
|
|
|
+/* 298 */,
|
|
|
+/* 299 */
|
|
|
+/*!***************************************************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/util/async-validator.js ***!
|
|
|
+ \***************************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(process) {
|
|
|
+
|
|
|
+var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
|
|
+var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
|
|
|
+function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
|
+function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
|
+function _extends() {
|
|
|
+ _extends = Object.assign || function (target) {
|
|
|
+ for (var i = 1; i < arguments.length; i++) {
|
|
|
+ var source = arguments[i];
|
|
|
+ for (var key in source) {
|
|
|
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
|
+ target[key] = source[key];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return target;
|
|
|
+ };
|
|
|
+ return _extends.apply(this, arguments);
|
|
|
+}
|
|
|
+
|
|
|
+/* eslint no-console:0 */
|
|
|
+var formatRegExp = /%[sdj%]/g;
|
|
|
+var warning = function warning() {}; // don't print warning message when in production env or node runtime
|
|
|
+
|
|
|
+if (typeof process !== 'undefined' && Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
|
|
|
+ warning = function warning(type, errors) {
|
|
|
+ if (typeof console !== 'undefined' && console.warn) {
|
|
|
+ if (errors.every(function (e) {
|
|
|
+ return typeof e === 'string';
|
|
|
+ })) {
|
|
|
+ console.warn(type, errors);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ };
|
|
|
+}
|
|
|
+function convertFieldsError(errors) {
|
|
|
+ if (!errors || !errors.length) return null;
|
|
|
+ var fields = {};
|
|
|
+ errors.forEach(function (error) {
|
|
|
+ var field = error.field;
|
|
|
+ fields[field] = fields[field] || [];
|
|
|
+ fields[field].push(error);
|
|
|
+ });
|
|
|
+ return fields;
|
|
|
+}
|
|
|
+function format() {
|
|
|
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
|
+ args[_key] = arguments[_key];
|
|
|
+ }
|
|
|
+ var i = 1;
|
|
|
+ var f = args[0];
|
|
|
+ var len = args.length;
|
|
|
+ if (typeof f === 'function') {
|
|
|
+ return f.apply(null, args.slice(1));
|
|
|
+ }
|
|
|
+ if (typeof f === 'string') {
|
|
|
+ var str = String(f).replace(formatRegExp, function (x) {
|
|
|
+ if (x === '%%') {
|
|
|
+ return '%';
|
|
|
+ }
|
|
|
+ if (i >= len) {
|
|
|
+ return x;
|
|
|
+ }
|
|
|
+ switch (x) {
|
|
|
+ case '%s':
|
|
|
+ return String(args[i++]);
|
|
|
+ case '%d':
|
|
|
+ return Number(args[i++]);
|
|
|
+ case '%j':
|
|
|
+ try {
|
|
|
+ return JSON.stringify(args[i++]);
|
|
|
+ } catch (_) {
|
|
|
+ return '[Circular]';
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ return x;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ for (var arg = args[i]; i < len; arg = args[++i]) {
|
|
|
+ str += " ".concat(arg);
|
|
|
+ }
|
|
|
+ return str;
|
|
|
+ }
|
|
|
+ return f;
|
|
|
+}
|
|
|
+function isNativeStringType(type) {
|
|
|
+ return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
|
|
|
+}
|
|
|
+function isEmptyValue(value, type) {
|
|
|
+ if (value === undefined || value === null) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (type === 'array' && Array.isArray(value) && !value.length) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (isNativeStringType(type) && typeof value === 'string' && !value) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+}
|
|
|
+function asyncParallelArray(arr, func, callback) {
|
|
|
+ var results = [];
|
|
|
+ var total = 0;
|
|
|
+ var arrLength = arr.length;
|
|
|
+ function count(errors) {
|
|
|
+ results.push.apply(results, errors);
|
|
|
+ total++;
|
|
|
+ if (total === arrLength) {
|
|
|
+ callback(results);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ arr.forEach(function (a) {
|
|
|
+ func(a, count);
|
|
|
+ });
|
|
|
+}
|
|
|
+function asyncSerialArray(arr, func, callback) {
|
|
|
+ var index = 0;
|
|
|
+ var arrLength = arr.length;
|
|
|
+ function next(errors) {
|
|
|
+ if (errors && errors.length) {
|
|
|
+ callback(errors);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var original = index;
|
|
|
+ index += 1;
|
|
|
+ if (original < arrLength) {
|
|
|
+ func(arr[original], next);
|
|
|
+ } else {
|
|
|
+ callback([]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ next([]);
|
|
|
+}
|
|
|
+function flattenObjArr(objArr) {
|
|
|
+ var ret = [];
|
|
|
+ Object.keys(objArr).forEach(function (k) {
|
|
|
+ ret.push.apply(ret, objArr[k]);
|
|
|
+ });
|
|
|
+ return ret;
|
|
|
+}
|
|
|
+function asyncMap(objArr, option, func, callback) {
|
|
|
+ if (option.first) {
|
|
|
+ var _pending = new Promise(function (resolve, reject) {
|
|
|
+ var next = function next(errors) {
|
|
|
+ callback(errors);
|
|
|
+ return errors.length ? reject({
|
|
|
+ errors: errors,
|
|
|
+ fields: convertFieldsError(errors)
|
|
|
+ }) : resolve();
|
|
|
+ };
|
|
|
+ var flattenArr = flattenObjArr(objArr);
|
|
|
+ asyncSerialArray(flattenArr, func, next);
|
|
|
+ });
|
|
|
+ _pending.catch(function (e) {
|
|
|
+ return e;
|
|
|
+ });
|
|
|
+ return _pending;
|
|
|
+ }
|
|
|
+ var firstFields = option.firstFields || [];
|
|
|
+ if (firstFields === true) {
|
|
|
+ firstFields = Object.keys(objArr);
|
|
|
+ }
|
|
|
+ var objArrKeys = Object.keys(objArr);
|
|
|
+ var objArrLength = objArrKeys.length;
|
|
|
+ var total = 0;
|
|
|
+ var results = [];
|
|
|
+ var pending = new Promise(function (resolve, reject) {
|
|
|
+ var next = function next(errors) {
|
|
|
+ results.push.apply(results, errors);
|
|
|
+ total++;
|
|
|
+ if (total === objArrLength) {
|
|
|
+ callback(results);
|
|
|
+ return results.length ? reject({
|
|
|
+ errors: results,
|
|
|
+ fields: convertFieldsError(results)
|
|
|
+ }) : resolve();
|
|
|
+ }
|
|
|
+ };
|
|
|
+ if (!objArrKeys.length) {
|
|
|
+ callback(results);
|
|
|
+ resolve();
|
|
|
+ }
|
|
|
+ objArrKeys.forEach(function (key) {
|
|
|
+ var arr = objArr[key];
|
|
|
+ if (firstFields.indexOf(key) !== -1) {
|
|
|
+ asyncSerialArray(arr, func, next);
|
|
|
+ } else {
|
|
|
+ asyncParallelArray(arr, func, next);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ pending.catch(function (e) {
|
|
|
+ return e;
|
|
|
+ });
|
|
|
+ return pending;
|
|
|
+}
|
|
|
+function complementError(rule) {
|
|
|
+ return function (oe) {
|
|
|
+ if (oe && oe.message) {
|
|
|
+ oe.field = oe.field || rule.fullField;
|
|
|
+ return oe;
|
|
|
+ }
|
|
|
+ return {
|
|
|
+ message: typeof oe === 'function' ? oe() : oe,
|
|
|
+ field: oe.field || rule.fullField
|
|
|
+ };
|
|
|
+ };
|
|
|
+}
|
|
|
+function deepMerge(target, source) {
|
|
|
+ if (source) {
|
|
|
+ for (var s in source) {
|
|
|
+ if (source.hasOwnProperty(s)) {
|
|
|
+ var value = source[s];
|
|
|
+ if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
|
|
|
+ target[s] = _objectSpread(_objectSpread({}, target[s]), value);
|
|
|
+ } else {
|
|
|
+ target[s] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Rule for validating required fields.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param errors An array of errors that this rule may add
|
|
|
+ * validation errors to.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function required(rule, value, source, errors, options, type) {
|
|
|
+ if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
|
|
|
+ errors.push(format(options.messages.required, rule.fullField));
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Rule for validating whitespace.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param errors An array of errors that this rule may add
|
|
|
+ * validation errors to.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function whitespace(rule, value, source, errors, options) {
|
|
|
+ if (/^\s+$/.test(value) || value === '') {
|
|
|
+ errors.push(format(options.messages.whitespace, rule.fullField));
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/* eslint max-len:0 */
|
|
|
+
|
|
|
+var pattern = {
|
|
|
+ // http://emailregex.com/
|
|
|
+ email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
|
|
|
+ url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i'),
|
|
|
+ hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
|
+};
|
|
|
+var types = {
|
|
|
+ integer: function integer(value) {
|
|
|
+ return /^(-)?\d+$/.test(value);
|
|
|
+ },
|
|
|
+ float: function float(value) {
|
|
|
+ return /^(-)?\d+(\.\d+)?$/.test(value);
|
|
|
+ },
|
|
|
+ array: function array(value) {
|
|
|
+ return Array.isArray(value);
|
|
|
+ },
|
|
|
+ regexp: function regexp(value) {
|
|
|
+ if (value instanceof RegExp) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ return !!new RegExp(value);
|
|
|
+ } catch (e) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ date: function date(value) {
|
|
|
+ return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
|
|
|
+ },
|
|
|
+ number: function number(value) {
|
|
|
+ if (isNaN(value)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 修改源码,将字符串数值先转为数值
|
|
|
+ return typeof +value === 'number';
|
|
|
+ },
|
|
|
+ object: function object(value) {
|
|
|
+ return (0, _typeof2.default)(value) === 'object' && !types.array(value);
|
|
|
+ },
|
|
|
+ method: function method(value) {
|
|
|
+ return typeof value === 'function';
|
|
|
+ },
|
|
|
+ email: function email(value) {
|
|
|
+ return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
|
|
|
+ },
|
|
|
+ url: function url(value) {
|
|
|
+ return typeof value === 'string' && !!value.match(pattern.url);
|
|
|
+ },
|
|
|
+ hex: function hex(value) {
|
|
|
+ return typeof value === 'string' && !!value.match(pattern.hex);
|
|
|
+ }
|
|
|
+};
|
|
|
+/**
|
|
|
+ * Rule for validating the type of a value.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param errors An array of errors that this rule may add
|
|
|
+ * validation errors to.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function type(rule, value, source, errors, options) {
|
|
|
+ if (rule.required && value === undefined) {
|
|
|
+ required(rule, value, source, errors, options);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
|
|
|
+ var ruleType = rule.type;
|
|
|
+ if (custom.indexOf(ruleType) > -1) {
|
|
|
+ if (!types[ruleType](value)) {
|
|
|
+ errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
|
|
|
+ } // straight typeof check
|
|
|
+ } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
|
|
|
+ errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Rule for validating minimum and maximum allowed values.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param errors An array of errors that this rule may add
|
|
|
+ * validation errors to.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function range(rule, value, source, errors, options) {
|
|
|
+ var len = typeof rule.len === 'number';
|
|
|
+ var min = typeof rule.min === 'number';
|
|
|
+ var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
|
|
|
+
|
|
|
+ var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|
|
+ var val = value;
|
|
|
+ var key = null;
|
|
|
+ var num = typeof value === 'number';
|
|
|
+ var str = typeof value === 'string';
|
|
|
+ var arr = Array.isArray(value);
|
|
|
+ if (num) {
|
|
|
+ key = 'number';
|
|
|
+ } else if (str) {
|
|
|
+ key = 'string';
|
|
|
+ } else if (arr) {
|
|
|
+ key = 'array';
|
|
|
+ } // if the value is not of a supported type for range validation
|
|
|
+ // the validation rule rule should use the
|
|
|
+ // type property to also test for a particular type
|
|
|
+
|
|
|
+ if (!key) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (arr) {
|
|
|
+ val = value.length;
|
|
|
+ }
|
|
|
+ if (str) {
|
|
|
+ // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
|
|
|
+ val = value.replace(spRegexp, '_').length;
|
|
|
+ }
|
|
|
+ if (len) {
|
|
|
+ if (val !== rule.len) {
|
|
|
+ errors.push(format(options.messages[key].len, rule.fullField, rule.len));
|
|
|
+ }
|
|
|
+ } else if (min && !max && val < rule.min) {
|
|
|
+ errors.push(format(options.messages[key].min, rule.fullField, rule.min));
|
|
|
+ } else if (max && !min && val > rule.max) {
|
|
|
+ errors.push(format(options.messages[key].max, rule.fullField, rule.max));
|
|
|
+ } else if (min && max && (val < rule.min || val > rule.max)) {
|
|
|
+ errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
|
|
|
+ }
|
|
|
+}
|
|
|
+var ENUM = 'enum';
|
|
|
+/**
|
|
|
+ * Rule for validating a value exists in an enumerable list.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param errors An array of errors that this rule may add
|
|
|
+ * validation errors to.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function enumerable(rule, value, source, errors, options) {
|
|
|
+ rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
|
|
|
+ if (rule[ENUM].indexOf(value) === -1) {
|
|
|
+ errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Rule for validating a regular expression pattern.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param errors An array of errors that this rule may add
|
|
|
+ * validation errors to.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function pattern$1(rule, value, source, errors, options) {
|
|
|
+ if (rule.pattern) {
|
|
|
+ if (rule.pattern instanceof RegExp) {
|
|
|
+ // if a RegExp instance is passed, reset `lastIndex` in case its `global`
|
|
|
+ // flag is accidentally set to `true`, which in a validation scenario
|
|
|
+ // is not necessary and the result might be misleading
|
|
|
+ rule.pattern.lastIndex = 0;
|
|
|
+ if (!rule.pattern.test(value)) {
|
|
|
+ errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
|
|
|
+ }
|
|
|
+ } else if (typeof rule.pattern === 'string') {
|
|
|
+ var _pattern = new RegExp(rule.pattern);
|
|
|
+ if (!_pattern.test(value)) {
|
|
|
+ errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+var rules = {
|
|
|
+ required: required,
|
|
|
+ whitespace: whitespace,
|
|
|
+ type: type,
|
|
|
+ range: range,
|
|
|
+ enum: enumerable,
|
|
|
+ pattern: pattern$1
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Performs validation for string types.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param callback The callback function.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function string(rule, value, callback, source, options) {
|
|
|
+ var errors = [];
|
|
|
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
+ if (validate) {
|
|
|
+ if (isEmptyValue(value, 'string') && !rule.required) {
|
|
|
+ return callback();
|
|
|
+ }
|
|
|
+ rules.required(rule, value, source, errors, options, 'string');
|
|
|
+ if (!isEmptyValue(value, 'string')) {
|
|
|
+ rules.type(rule, value, source, errors, options);
|
|
|
+ rules.range(rule, value, source, errors, options);
|
|
|
+ rules.pattern(rule, value, source, errors, options);
|
|
|
+ if (rule.whitespace === true) {
|
|
|
+ rules.whitespace(rule, value, source, errors, options);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ callback(errors);
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Validates a function.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param callback The callback function.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function method(rule, value, callback, source, options) {
|
|
|
+ var errors = [];
|
|
|
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
+ if (validate) {
|
|
|
+ if (isEmptyValue(value) && !rule.required) {
|
|
|
+ return callback();
|
|
|
+ }
|
|
|
+ rules.required(rule, value, source, errors, options);
|
|
|
+ if (value !== undefined) {
|
|
|
+ rules.type(rule, value, source, errors, options);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ callback(errors);
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Validates a number.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param callback The callback function.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function number(rule, value, callback, source, options) {
|
|
|
+ var errors = [];
|
|
|
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
+ if (validate) {
|
|
|
+ if (value === '') {
|
|
|
+ value = undefined;
|
|
|
+ }
|
|
|
+ if (isEmptyValue(value) && !rule.required) {
|
|
|
+ return callback();
|
|
|
+ }
|
|
|
+ rules.required(rule, value, source, errors, options);
|
|
|
+ if (value !== undefined) {
|
|
|
+ rules.type(rule, value, source, errors, options);
|
|
|
+ rules.range(rule, value, source, errors, options);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ callback(errors);
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Validates a boolean.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param callback The callback function.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function _boolean(rule, value, callback, source, options) {
|
|
|
+ var errors = [];
|
|
|
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
+ if (validate) {
|
|
|
+ if (isEmptyValue(value) && !rule.required) {
|
|
|
+ return callback();
|
|
|
+ }
|
|
|
+ rules.required(rule, value, source, errors, options);
|
|
|
+ if (value !== undefined) {
|
|
|
+ rules.type(rule, value, source, errors, options);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ callback(errors);
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Validates the regular expression type.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param callback The callback function.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function regexp(rule, value, callback, source, options) {
|
|
|
+ var errors = [];
|
|
|
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
+ if (validate) {
|
|
|
+ if (isEmptyValue(value) && !rule.required) {
|
|
|
+ return callback();
|
|
|
+ }
|
|
|
+ rules.required(rule, value, source, errors, options);
|
|
|
+ if (!isEmptyValue(value)) {
|
|
|
+ rules.type(rule, value, source, errors, options);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ callback(errors);
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Validates a number is an integer.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param callback The callback function.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function integer(rule, value, callback, source, options) {
|
|
|
+ var errors = [];
|
|
|
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
+ if (validate) {
|
|
|
+ if (isEmptyValue(value) && !rule.required) {
|
|
|
+ return callback();
|
|
|
+ }
|
|
|
+ rules.required(rule, value, source, errors, options);
|
|
|
+ if (value !== undefined) {
|
|
|
+ rules.type(rule, value, source, errors, options);
|
|
|
+ rules.range(rule, value, source, errors, options);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ callback(errors);
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Validates a number is a floating point number.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param callback The callback function.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function floatFn(rule, value, callback, source, options) {
|
|
|
+ var errors = [];
|
|
|
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
+ if (validate) {
|
|
|
+ if (isEmptyValue(value) && !rule.required) {
|
|
|
+ return callback();
|
|
|
+ }
|
|
|
+ rules.required(rule, value, source, errors, options);
|
|
|
+ if (value !== undefined) {
|
|
|
+ rules.type(rule, value, source, errors, options);
|
|
|
+ rules.range(rule, value, source, errors, options);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ callback(errors);
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Validates an array.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param callback The callback function.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function array(rule, value, callback, source, options) {
|
|
|
+ var errors = [];
|
|
|
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
+ if (validate) {
|
|
|
+ if (isEmptyValue(value, 'array') && !rule.required) {
|
|
|
+ return callback();
|
|
|
+ }
|
|
|
+ rules.required(rule, value, source, errors, options, 'array');
|
|
|
+ if (!isEmptyValue(value, 'array')) {
|
|
|
+ rules.type(rule, value, source, errors, options);
|
|
|
+ rules.range(rule, value, source, errors, options);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ callback(errors);
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Validates an object.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param callback The callback function.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function object(rule, value, callback, source, options) {
|
|
|
+ var errors = [];
|
|
|
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
+ if (validate) {
|
|
|
+ if (isEmptyValue(value) && !rule.required) {
|
|
|
+ return callback();
|
|
|
+ }
|
|
|
+ rules.required(rule, value, source, errors, options);
|
|
|
+ if (value !== undefined) {
|
|
|
+ rules.type(rule, value, source, errors, options);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ callback(errors);
|
|
|
+}
|
|
|
+var ENUM$1 = 'enum';
|
|
|
+/**
|
|
|
+ * Validates an enumerable list.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param callback The callback function.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function enumerable$1(rule, value, callback, source, options) {
|
|
|
+ var errors = [];
|
|
|
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
+ if (validate) {
|
|
|
+ if (isEmptyValue(value) && !rule.required) {
|
|
|
+ return callback();
|
|
|
+ }
|
|
|
+ rules.required(rule, value, source, errors, options);
|
|
|
+ if (value !== undefined) {
|
|
|
+ rules[ENUM$1](rule, value, source, errors, options);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ callback(errors);
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Validates a regular expression pattern.
|
|
|
+ *
|
|
|
+ * Performs validation when a rule only contains
|
|
|
+ * a pattern property but is not declared as a string type.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param callback The callback function.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function pattern$2(rule, value, callback, source, options) {
|
|
|
+ var errors = [];
|
|
|
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
+ if (validate) {
|
|
|
+ if (isEmptyValue(value, 'string') && !rule.required) {
|
|
|
+ return callback();
|
|
|
+ }
|
|
|
+ rules.required(rule, value, source, errors, options);
|
|
|
+ if (!isEmptyValue(value, 'string')) {
|
|
|
+ rules.pattern(rule, value, source, errors, options);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ callback(errors);
|
|
|
+}
|
|
|
+function date(rule, value, callback, source, options) {
|
|
|
+ var errors = [];
|
|
|
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
+ if (validate) {
|
|
|
+ if (isEmptyValue(value) && !rule.required) {
|
|
|
+ return callback();
|
|
|
+ }
|
|
|
+ rules.required(rule, value, source, errors, options);
|
|
|
+ if (!isEmptyValue(value)) {
|
|
|
+ var dateObject;
|
|
|
+ if (typeof value === 'number') {
|
|
|
+ dateObject = new Date(value);
|
|
|
+ } else {
|
|
|
+ dateObject = value;
|
|
|
+ }
|
|
|
+ rules.type(rule, dateObject, source, errors, options);
|
|
|
+ if (dateObject) {
|
|
|
+ rules.range(rule, dateObject.getTime(), source, errors, options);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ callback(errors);
|
|
|
+}
|
|
|
+function required$1(rule, value, callback, source, options) {
|
|
|
+ var errors = [];
|
|
|
+ var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
|
|
|
+ rules.required(rule, value, source, errors, options, type);
|
|
|
+ callback(errors);
|
|
|
+}
|
|
|
+function type$1(rule, value, callback, source, options) {
|
|
|
+ var ruleType = rule.type;
|
|
|
+ var errors = [];
|
|
|
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
+ if (validate) {
|
|
|
+ if (isEmptyValue(value, ruleType) && !rule.required) {
|
|
|
+ return callback();
|
|
|
+ }
|
|
|
+ rules.required(rule, value, source, errors, options, ruleType);
|
|
|
+ if (!isEmptyValue(value, ruleType)) {
|
|
|
+ rules.type(rule, value, source, errors, options);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ callback(errors);
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Performs validation for any type.
|
|
|
+ *
|
|
|
+ * @param rule The validation rule.
|
|
|
+ * @param value The value of the field on the source object.
|
|
|
+ * @param callback The callback function.
|
|
|
+ * @param source The source object being validated.
|
|
|
+ * @param options The validation options.
|
|
|
+ * @param options.messages The validation messages.
|
|
|
+ */
|
|
|
+
|
|
|
+function any(rule, value, callback, source, options) {
|
|
|
+ var errors = [];
|
|
|
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
+ if (validate) {
|
|
|
+ if (isEmptyValue(value) && !rule.required) {
|
|
|
+ return callback();
|
|
|
+ }
|
|
|
+ rules.required(rule, value, source, errors, options);
|
|
|
+ }
|
|
|
+ callback(errors);
|
|
|
+}
|
|
|
+var validators = {
|
|
|
+ string: string,
|
|
|
+ method: method,
|
|
|
+ number: number,
|
|
|
+ boolean: _boolean,
|
|
|
+ regexp: regexp,
|
|
|
+ integer: integer,
|
|
|
+ float: floatFn,
|
|
|
+ array: array,
|
|
|
+ object: object,
|
|
|
+ enum: enumerable$1,
|
|
|
+ pattern: pattern$2,
|
|
|
+ date: date,
|
|
|
+ url: type$1,
|
|
|
+ hex: type$1,
|
|
|
+ email: type$1,
|
|
|
+ required: required$1,
|
|
|
+ any: any
|
|
|
+};
|
|
|
+function newMessages() {
|
|
|
+ return {
|
|
|
+ default: 'Validation error on field %s',
|
|
|
+ required: '%s is required',
|
|
|
+ enum: '%s must be one of %s',
|
|
|
+ whitespace: '%s cannot be empty',
|
|
|
+ date: {
|
|
|
+ format: '%s date %s is invalid for format %s',
|
|
|
+ parse: '%s date could not be parsed, %s is invalid ',
|
|
|
+ invalid: '%s date %s is invalid'
|
|
|
+ },
|
|
|
+ types: {
|
|
|
+ string: '%s is not a %s',
|
|
|
+ method: '%s is not a %s (function)',
|
|
|
+ array: '%s is not an %s',
|
|
|
+ object: '%s is not an %s',
|
|
|
+ number: '%s is not a %s',
|
|
|
+ date: '%s is not a %s',
|
|
|
+ boolean: '%s is not a %s',
|
|
|
+ integer: '%s is not an %s',
|
|
|
+ float: '%s is not a %s',
|
|
|
+ regexp: '%s is not a valid %s',
|
|
|
+ email: '%s is not a valid %s',
|
|
|
+ url: '%s is not a valid %s',
|
|
|
+ hex: '%s is not a valid %s'
|
|
|
+ },
|
|
|
+ string: {
|
|
|
+ len: '%s must be exactly %s characters',
|
|
|
+ min: '%s must be at least %s characters',
|
|
|
+ max: '%s cannot be longer than %s characters',
|
|
|
+ range: '%s must be between %s and %s characters'
|
|
|
+ },
|
|
|
+ number: {
|
|
|
+ len: '%s must equal %s',
|
|
|
+ min: '%s cannot be less than %s',
|
|
|
+ max: '%s cannot be greater than %s',
|
|
|
+ range: '%s must be between %s and %s'
|
|
|
+ },
|
|
|
+ array: {
|
|
|
+ len: '%s must be exactly %s in length',
|
|
|
+ min: '%s cannot be less than %s in length',
|
|
|
+ max: '%s cannot be greater than %s in length',
|
|
|
+ range: '%s must be between %s and %s in length'
|
|
|
+ },
|
|
|
+ pattern: {
|
|
|
+ mismatch: '%s value %s does not match pattern %s'
|
|
|
+ },
|
|
|
+ clone: function clone() {
|
|
|
+ var cloned = JSON.parse(JSON.stringify(this));
|
|
|
+ cloned.clone = this.clone;
|
|
|
+ return cloned;
|
|
|
+ }
|
|
|
+ };
|
|
|
+}
|
|
|
+var messages = newMessages();
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encapsulates a validation schema.
|
|
|
+ *
|
|
|
+ * @param descriptor An object declaring validation rules
|
|
|
+ * for this schema.
|
|
|
+ */
|
|
|
+
|
|
|
+function Schema(descriptor) {
|
|
|
+ this.rules = null;
|
|
|
+ this._messages = messages;
|
|
|
+ this.define(descriptor);
|
|
|
+}
|
|
|
+Schema.prototype = {
|
|
|
+ messages: function messages(_messages) {
|
|
|
+ if (_messages) {
|
|
|
+ this._messages = deepMerge(newMessages(), _messages);
|
|
|
+ }
|
|
|
+ return this._messages;
|
|
|
+ },
|
|
|
+ define: function define(rules) {
|
|
|
+ if (!rules) {
|
|
|
+ throw new Error('Cannot configure a schema with no rules');
|
|
|
+ }
|
|
|
+ if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
|
|
|
+ throw new Error('Rules must be an object');
|
|
|
+ }
|
|
|
+ this.rules = {};
|
|
|
+ var z;
|
|
|
+ var item;
|
|
|
+ for (z in rules) {
|
|
|
+ if (rules.hasOwnProperty(z)) {
|
|
|
+ item = rules[z];
|
|
|
+ this.rules[z] = Array.isArray(item) ? item : [item];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ validate: function validate(source_, o, oc) {
|
|
|
+ var _this = this;
|
|
|
+ if (o === void 0) {
|
|
|
+ o = {};
|
|
|
+ }
|
|
|
+ if (oc === void 0) {
|
|
|
+ oc = function oc() {};
|
|
|
+ }
|
|
|
+ var source = source_;
|
|
|
+ var options = o;
|
|
|
+ var callback = oc;
|
|
|
+ if (typeof options === 'function') {
|
|
|
+ callback = options;
|
|
|
+ options = {};
|
|
|
+ }
|
|
|
+ if (!this.rules || Object.keys(this.rules).length === 0) {
|
|
|
+ if (callback) {
|
|
|
+ callback();
|
|
|
+ }
|
|
|
+ return Promise.resolve();
|
|
|
+ }
|
|
|
+ function complete(results) {
|
|
|
+ var i;
|
|
|
+ var errors = [];
|
|
|
+ var fields = {};
|
|
|
+ function add(e) {
|
|
|
+ if (Array.isArray(e)) {
|
|
|
+ var _errors;
|
|
|
+ errors = (_errors = errors).concat.apply(_errors, e);
|
|
|
+ } else {
|
|
|
+ errors.push(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for (i = 0; i < results.length; i++) {
|
|
|
+ add(results[i]);
|
|
|
+ }
|
|
|
+ if (!errors.length) {
|
|
|
+ errors = null;
|
|
|
+ fields = null;
|
|
|
+ } else {
|
|
|
+ fields = convertFieldsError(errors);
|
|
|
+ }
|
|
|
+ callback(errors, fields);
|
|
|
+ }
|
|
|
+ if (options.messages) {
|
|
|
+ var messages$1 = this.messages();
|
|
|
+ if (messages$1 === messages) {
|
|
|
+ messages$1 = newMessages();
|
|
|
+ }
|
|
|
+ deepMerge(messages$1, options.messages);
|
|
|
+ options.messages = messages$1;
|
|
|
+ } else {
|
|
|
+ options.messages = this.messages();
|
|
|
+ }
|
|
|
+ var arr;
|
|
|
+ var value;
|
|
|
+ var series = {};
|
|
|
+ var keys = options.keys || Object.keys(this.rules);
|
|
|
+ keys.forEach(function (z) {
|
|
|
+ arr = _this.rules[z];
|
|
|
+ value = source[z];
|
|
|
+ arr.forEach(function (r) {
|
|
|
+ var rule = r;
|
|
|
+ if (typeof rule.transform === 'function') {
|
|
|
+ if (source === source_) {
|
|
|
+ source = _objectSpread({}, source);
|
|
|
+ }
|
|
|
+ value = source[z] = rule.transform(value);
|
|
|
+ }
|
|
|
+ if (typeof rule === 'function') {
|
|
|
+ rule = {
|
|
|
+ validator: rule
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ rule = _objectSpread({}, rule);
|
|
|
+ }
|
|
|
+ rule.validator = _this.getValidationMethod(rule);
|
|
|
+ rule.field = z;
|
|
|
+ rule.fullField = rule.fullField || z;
|
|
|
+ rule.type = _this.getType(rule);
|
|
|
+ if (!rule.validator) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ series[z] = series[z] || [];
|
|
|
+ series[z].push({
|
|
|
+ rule: rule,
|
|
|
+ value: value,
|
|
|
+ source: source,
|
|
|
+ field: z
|
|
|
+ });
|
|
|
+ });
|
|
|
+ });
|
|
|
+ var errorFields = {};
|
|
|
+ return asyncMap(series, options, function (data, doIt) {
|
|
|
+ var rule = data.rule;
|
|
|
+ var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
|
|
|
+ deep = deep && (rule.required || !rule.required && data.value);
|
|
|
+ rule.field = data.field;
|
|
|
+ function addFullfield(key, schema) {
|
|
|
+ return _objectSpread(_objectSpread({}, schema), {}, {
|
|
|
+ fullField: "".concat(rule.fullField, ".").concat(key)
|
|
|
+ });
|
|
|
+ }
|
|
|
+ function cb(e) {
|
|
|
+ if (e === void 0) {
|
|
|
+ e = [];
|
|
|
+ }
|
|
|
+ var errors = e;
|
|
|
+ if (!Array.isArray(errors)) {
|
|
|
+ errors = [errors];
|
|
|
+ }
|
|
|
+ if (!options.suppressWarning && errors.length) {
|
|
|
+ Schema.warning('async-validator:', errors);
|
|
|
+ }
|
|
|
+ if (errors.length && rule.message) {
|
|
|
+ errors = [].concat(rule.message);
|
|
|
+ }
|
|
|
+ errors = errors.map(complementError(rule));
|
|
|
+ if (options.first && errors.length) {
|
|
|
+ errorFields[rule.field] = 1;
|
|
|
+ return doIt(errors);
|
|
|
+ }
|
|
|
+ if (!deep) {
|
|
|
+ doIt(errors);
|
|
|
+ } else {
|
|
|
+ // if rule is required but the target object
|
|
|
+ // does not exist fail at the rule level and don't
|
|
|
+ // go deeper
|
|
|
+ if (rule.required && !data.value) {
|
|
|
+ if (rule.message) {
|
|
|
+ errors = [].concat(rule.message).map(complementError(rule));
|
|
|
+ } else if (options.error) {
|
|
|
+ errors = [options.error(rule, format(options.messages.required, rule.field))];
|
|
|
+ } else {
|
|
|
+ errors = [];
|
|
|
+ }
|
|
|
+ return doIt(errors);
|
|
|
+ }
|
|
|
+ var fieldsSchema = {};
|
|
|
+ if (rule.defaultField) {
|
|
|
+ for (var k in data.value) {
|
|
|
+ if (data.value.hasOwnProperty(k)) {
|
|
|
+ fieldsSchema[k] = rule.defaultField;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
|
|
|
+ for (var f in fieldsSchema) {
|
|
|
+ if (fieldsSchema.hasOwnProperty(f)) {
|
|
|
+ var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
|
|
|
+ fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ var schema = new Schema(fieldsSchema);
|
|
|
+ schema.messages(options.messages);
|
|
|
+ if (data.rule.options) {
|
|
|
+ data.rule.options.messages = options.messages;
|
|
|
+ data.rule.options.error = options.error;
|
|
|
+ }
|
|
|
+ schema.validate(data.value, data.rule.options || options, function (errs) {
|
|
|
+ var finalErrors = [];
|
|
|
+ if (errors && errors.length) {
|
|
|
+ finalErrors.push.apply(finalErrors, errors);
|
|
|
+ }
|
|
|
+ if (errs && errs.length) {
|
|
|
+ finalErrors.push.apply(finalErrors, errs);
|
|
|
+ }
|
|
|
+ doIt(finalErrors.length ? finalErrors : null);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ var res;
|
|
|
+ if (rule.asyncValidator) {
|
|
|
+ res = rule.asyncValidator(rule, data.value, cb, data.source, options);
|
|
|
+ } else if (rule.validator) {
|
|
|
+ res = rule.validator(rule, data.value, cb, data.source, options);
|
|
|
+ if (res === true) {
|
|
|
+ cb();
|
|
|
+ } else if (res === false) {
|
|
|
+ cb(rule.message || "".concat(rule.field, " fails"));
|
|
|
+ } else if (res instanceof Array) {
|
|
|
+ cb(res);
|
|
|
+ } else if (res instanceof Error) {
|
|
|
+ cb(res.message);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (res && res.then) {
|
|
|
+ res.then(function () {
|
|
|
+ return cb();
|
|
|
+ }, function (e) {
|
|
|
+ return cb(e);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }, function (results) {
|
|
|
+ complete(results);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ getType: function getType(rule) {
|
|
|
+ if (rule.type === undefined && rule.pattern instanceof RegExp) {
|
|
|
+ rule.type = 'pattern';
|
|
|
+ }
|
|
|
+ if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
|
|
|
+ throw new Error(format('Unknown rule type %s', rule.type));
|
|
|
+ }
|
|
|
+ return rule.type || 'string';
|
|
|
+ },
|
|
|
+ getValidationMethod: function getValidationMethod(rule) {
|
|
|
+ if (typeof rule.validator === 'function') {
|
|
|
+ return rule.validator;
|
|
|
+ }
|
|
|
+ var keys = Object.keys(rule);
|
|
|
+ var messageIndex = keys.indexOf('message');
|
|
|
+ if (messageIndex !== -1) {
|
|
|
+ keys.splice(messageIndex, 1);
|
|
|
+ }
|
|
|
+ if (keys.length === 1 && keys[0] === 'required') {
|
|
|
+ return validators.required;
|
|
|
+ }
|
|
|
+ return validators[this.getType(rule)] || false;
|
|
|
+ }
|
|
|
+};
|
|
|
+Schema.register = function register(type, validator) {
|
|
|
+ if (typeof validator !== 'function') {
|
|
|
+ throw new Error('Cannot register a validator by type, validator is not a function');
|
|
|
+ }
|
|
|
+ validators[type] = validator;
|
|
|
+};
|
|
|
+Schema.warning = warning;
|
|
|
+Schema.messages = messages;
|
|
|
+var _default = Schema; // # sourceMappingURL=index.js.map
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../Downloads/HBuilderX.3.8.7.20230703/HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 300)))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 300 */
|
|
|
+/*!********************************************************!*\
|
|
|
+ !*** ./node_modules/node-libs-browser/mock/process.js ***!
|
|
|
+ \********************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+exports.nextTick = function nextTick(fn) {
|
|
|
+ var args = Array.prototype.slice.call(arguments);
|
|
|
+ args.shift();
|
|
|
+ setTimeout(function () {
|
|
|
+ fn.apply(null, args);
|
|
|
+ }, 0);
|
|
|
+};
|
|
|
+
|
|
|
+exports.platform = exports.arch =
|
|
|
+exports.execPath = exports.title = 'browser';
|
|
|
+exports.pid = 1;
|
|
|
+exports.browser = true;
|
|
|
+exports.env = {};
|
|
|
+exports.argv = [];
|
|
|
+
|
|
|
+exports.binding = function (name) {
|
|
|
+ throw new Error('No such module. (Possibly not yet loaded)')
|
|
|
+};
|
|
|
+
|
|
|
+(function () {
|
|
|
+ var cwd = '/';
|
|
|
+ var path;
|
|
|
+ exports.cwd = function () { return cwd };
|
|
|
+ exports.chdir = function (dir) {
|
|
|
+ if (!path) path = __webpack_require__(/*! path */ 301);
|
|
|
+ cwd = path.resolve(dir, cwd);
|
|
|
+ };
|
|
|
+})();
|
|
|
+
|
|
|
+exports.exit = exports.kill =
|
|
|
+exports.umask = exports.dlopen =
|
|
|
+exports.uptime = exports.memoryUsage =
|
|
|
+exports.uvCounters = function() {};
|
|
|
+exports.features = {};
|
|
|
+
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 301 */
|
|
|
+/*!***********************************************!*\
|
|
|
+ !*** ./node_modules/path-browserify/index.js ***!
|
|
|
+ \***********************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+/* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
|
|
|
+// backported and transplited with Babel, with backwards-compat fixes
|
|
|
+
|
|
|
+// Copyright Joyent, Inc. and other Node contributors.
|
|
|
+//
|
|
|
+// 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.
|
|
|
+
|
|
|
+// resolves . and .. elements in a path array with directory names there
|
|
|
+// must be no slashes, empty elements, or device names (c:\) in the array
|
|
|
+// (so also no leading and trailing slashes - it does not distinguish
|
|
|
+// relative and absolute paths)
|
|
|
+function normalizeArray(parts, allowAboveRoot) {
|
|
|
+ // if the path tries to go above the root, `up` ends up > 0
|
|
|
+ var up = 0;
|
|
|
+ for (var i = parts.length - 1; i >= 0; i--) {
|
|
|
+ var last = parts[i];
|
|
|
+ if (last === '.') {
|
|
|
+ parts.splice(i, 1);
|
|
|
+ } else if (last === '..') {
|
|
|
+ parts.splice(i, 1);
|
|
|
+ up++;
|
|
|
+ } else if (up) {
|
|
|
+ parts.splice(i, 1);
|
|
|
+ up--;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // if the path is allowed to go above the root, restore leading ..s
|
|
|
+ if (allowAboveRoot) {
|
|
|
+ for (; up--; up) {
|
|
|
+ parts.unshift('..');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return parts;
|
|
|
+}
|
|
|
+
|
|
|
+// path.resolve([from ...], to)
|
|
|
+// posix version
|
|
|
+exports.resolve = function() {
|
|
|
+ var resolvedPath = '',
|
|
|
+ resolvedAbsolute = false;
|
|
|
+
|
|
|
+ for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
|
|
|
+ var path = (i >= 0) ? arguments[i] : process.cwd();
|
|
|
+
|
|
|
+ // Skip empty and invalid entries
|
|
|
+ if (typeof path !== 'string') {
|
|
|
+ throw new TypeError('Arguments to path.resolve must be strings');
|
|
|
+ } else if (!path) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
+ resolvedPath = path + '/' + resolvedPath;
|
|
|
+ resolvedAbsolute = path.charAt(0) === '/';
|
|
|
+ }
|
|
|
+
|
|
|
+ // At this point the path should be resolved to a full absolute path, but
|
|
|
+ // handle relative paths to be safe (might happen when process.cwd() fails)
|
|
|
+
|
|
|
+ // Normalize the path
|
|
|
+ resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
|
|
|
+ return !!p;
|
|
|
+ }), !resolvedAbsolute).join('/');
|
|
|
+
|
|
|
+ return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
|
|
|
+};
|
|
|
+
|
|
|
+// path.normalize(path)
|
|
|
+// posix version
|
|
|
+exports.normalize = function(path) {
|
|
|
+ var isAbsolute = exports.isAbsolute(path),
|
|
|
+ trailingSlash = substr(path, -1) === '/';
|
|
|
+
|
|
|
+ // Normalize the path
|
|
|
+ path = normalizeArray(filter(path.split('/'), function(p) {
|
|
|
+ return !!p;
|
|
|
+ }), !isAbsolute).join('/');
|
|
|
+
|
|
|
+ if (!path && !isAbsolute) {
|
|
|
+ path = '.';
|
|
|
+ }
|
|
|
+ if (path && trailingSlash) {
|
|
|
+ path += '/';
|
|
|
+ }
|
|
|
+
|
|
|
+ return (isAbsolute ? '/' : '') + path;
|
|
|
+};
|
|
|
+
|
|
|
+// posix version
|
|
|
+exports.isAbsolute = function(path) {
|
|
|
+ return path.charAt(0) === '/';
|
|
|
+};
|
|
|
+
|
|
|
+// posix version
|
|
|
+exports.join = function() {
|
|
|
+ var paths = Array.prototype.slice.call(arguments, 0);
|
|
|
+ return exports.normalize(filter(paths, function(p, index) {
|
|
|
+ if (typeof p !== 'string') {
|
|
|
+ throw new TypeError('Arguments to path.join must be strings');
|
|
|
+ }
|
|
|
+ return p;
|
|
|
+ }).join('/'));
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+// path.relative(from, to)
|
|
|
+// posix version
|
|
|
+exports.relative = function(from, to) {
|
|
|
+ from = exports.resolve(from).substr(1);
|
|
|
+ to = exports.resolve(to).substr(1);
|
|
|
+
|
|
|
+ function trim(arr) {
|
|
|
+ var start = 0;
|
|
|
+ for (; start < arr.length; start++) {
|
|
|
+ if (arr[start] !== '') break;
|
|
|
+ }
|
|
|
+
|
|
|
+ var end = arr.length - 1;
|
|
|
+ for (; end >= 0; end--) {
|
|
|
+ if (arr[end] !== '') break;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (start > end) return [];
|
|
|
+ return arr.slice(start, end - start + 1);
|
|
|
+ }
|
|
|
+
|
|
|
+ var fromParts = trim(from.split('/'));
|
|
|
+ var toParts = trim(to.split('/'));
|
|
|
+
|
|
|
+ var length = Math.min(fromParts.length, toParts.length);
|
|
|
+ var samePartsLength = length;
|
|
|
+ for (var i = 0; i < length; i++) {
|
|
|
+ if (fromParts[i] !== toParts[i]) {
|
|
|
+ samePartsLength = i;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ var outputParts = [];
|
|
|
+ for (var i = samePartsLength; i < fromParts.length; i++) {
|
|
|
+ outputParts.push('..');
|
|
|
+ }
|
|
|
+
|
|
|
+ outputParts = outputParts.concat(toParts.slice(samePartsLength));
|
|
|
+
|
|
|
+ return outputParts.join('/');
|
|
|
+};
|
|
|
+
|
|
|
+exports.sep = '/';
|
|
|
+exports.delimiter = ':';
|
|
|
+
|
|
|
+exports.dirname = function (path) {
|
|
|
+ if (typeof path !== 'string') path = path + '';
|
|
|
+ if (path.length === 0) return '.';
|
|
|
+ var code = path.charCodeAt(0);
|
|
|
+ var hasRoot = code === 47 /*/*/;
|
|
|
+ var end = -1;
|
|
|
+ var matchedSlash = true;
|
|
|
+ for (var i = path.length - 1; i >= 1; --i) {
|
|
|
+ code = path.charCodeAt(i);
|
|
|
+ if (code === 47 /*/*/) {
|
|
|
+ if (!matchedSlash) {
|
|
|
+ end = i;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ // We saw the first non-path separator
|
|
|
+ matchedSlash = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (end === -1) return hasRoot ? '/' : '.';
|
|
|
+ if (hasRoot && end === 1) {
|
|
|
+ // return '//';
|
|
|
+ // Backwards-compat fix:
|
|
|
+ return '/';
|
|
|
+ }
|
|
|
+ return path.slice(0, end);
|
|
|
+};
|
|
|
+
|
|
|
+function basename(path) {
|
|
|
+ if (typeof path !== 'string') path = path + '';
|
|
|
+
|
|
|
+ var start = 0;
|
|
|
+ var end = -1;
|
|
|
+ var matchedSlash = true;
|
|
|
+ var i;
|
|
|
+
|
|
|
+ for (i = path.length - 1; i >= 0; --i) {
|
|
|
+ if (path.charCodeAt(i) === 47 /*/*/) {
|
|
|
+ // If we reached a path separator that was not part of a set of path
|
|
|
+ // separators at the end of the string, stop now
|
|
|
+ if (!matchedSlash) {
|
|
|
+ start = i + 1;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ } else if (end === -1) {
|
|
|
+ // We saw the first non-path separator, mark this as the end of our
|
|
|
+ // path component
|
|
|
+ matchedSlash = false;
|
|
|
+ end = i + 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (end === -1) return '';
|
|
|
+ return path.slice(start, end);
|
|
|
+}
|
|
|
+
|
|
|
+// Uses a mixed approach for backwards-compatibility, as ext behavior changed
|
|
|
+// in new Node.js versions, so only basename() above is backported here
|
|
|
+exports.basename = function (path, ext) {
|
|
|
+ var f = basename(path);
|
|
|
+ if (ext && f.substr(-1 * ext.length) === ext) {
|
|
|
+ f = f.substr(0, f.length - ext.length);
|
|
|
+ }
|
|
|
+ return f;
|
|
|
+};
|
|
|
+
|
|
|
+exports.extname = function (path) {
|
|
|
+ if (typeof path !== 'string') path = path + '';
|
|
|
+ var startDot = -1;
|
|
|
+ var startPart = 0;
|
|
|
+ var end = -1;
|
|
|
+ var matchedSlash = true;
|
|
|
+ // Track the state of characters (if any) we see before our first dot and
|
|
|
+ // after any path separator we find
|
|
|
+ var preDotState = 0;
|
|
|
+ for (var i = path.length - 1; i >= 0; --i) {
|
|
|
+ var code = path.charCodeAt(i);
|
|
|
+ if (code === 47 /*/*/) {
|
|
|
+ // If we reached a path separator that was not part of a set of path
|
|
|
+ // separators at the end of the string, stop now
|
|
|
+ if (!matchedSlash) {
|
|
|
+ startPart = i + 1;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ if (end === -1) {
|
|
|
+ // We saw the first non-path separator, mark this as the end of our
|
|
|
+ // extension
|
|
|
+ matchedSlash = false;
|
|
|
+ end = i + 1;
|
|
|
+ }
|
|
|
+ if (code === 46 /*.*/) {
|
|
|
+ // If this is our first dot, mark it as the start of our extension
|
|
|
+ if (startDot === -1)
|
|
|
+ startDot = i;
|
|
|
+ else if (preDotState !== 1)
|
|
|
+ preDotState = 1;
|
|
|
+ } else if (startDot !== -1) {
|
|
|
+ // We saw a non-dot and non-path separator before our dot, so we should
|
|
|
+ // have a good chance at having a non-empty extension
|
|
|
+ preDotState = -1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (startDot === -1 || end === -1 ||
|
|
|
+ // We saw a non-dot character immediately before the dot
|
|
|
+ preDotState === 0 ||
|
|
|
+ // The (right-most) trimmed path component is exactly '..'
|
|
|
+ preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+ return path.slice(startDot, end);
|
|
|
+};
|
|
|
+
|
|
|
+function filter (xs, f) {
|
|
|
+ if (xs.filter) return xs.filter(f);
|
|
|
+ var res = [];
|
|
|
+ for (var i = 0; i < xs.length; i++) {
|
|
|
+ if (f(xs[i], i, xs)) res.push(xs[i]);
|
|
|
+ }
|
|
|
+ return res;
|
|
|
+}
|
|
|
+
|
|
|
+// String.prototype.substr - negative index don't work in IE8
|
|
|
+var substr = 'ab'.substr(-1) === 'b'
|
|
|
+ ? function (str, start, len) { return str.substr(start, len) }
|
|
|
+ : function (str, start, len) {
|
|
|
+ if (start < 0) start = str.length + start;
|
|
|
+ return str.substr(start, len);
|
|
|
+ }
|
|
|
+;
|
|
|
+
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 300)))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 302 */,
|
|
|
+/* 303 */,
|
|
|
+/* 304 */,
|
|
|
+/* 305 */,
|
|
|
+/* 306 */,
|
|
|
+/* 307 */
|
|
|
+/*!*************************************************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-line/props.js ***!
|
|
|
+ \*************************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ color: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.line.color
|
|
|
+ },
|
|
|
+ // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
|
|
|
+ length: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.line.length
|
|
|
+ },
|
|
|
+ // 线条方向,col-竖向,row-横向
|
|
|
+ direction: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.line.direction
|
|
|
+ },
|
|
|
+ // 是否显示细边框
|
|
|
+ hairline: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.line.hairline
|
|
|
+ },
|
|
|
+ // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
|
|
|
+ margin: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.line.margin
|
|
|
+ },
|
|
|
+ // 是否虚线,true-虚线,false-实线
|
|
|
+ dashed: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.line.dashed
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 308 */,
|
|
|
+/* 309 */,
|
|
|
+/* 310 */,
|
|
|
+/* 311 */,
|
|
|
+/* 312 */,
|
|
|
+/* 313 */,
|
|
|
+/* 314 */,
|
|
|
+/* 315 */,
|
|
|
+/* 316 */,
|
|
|
+/* 317 */,
|
|
|
+/* 318 */,
|
|
|
+/* 319 */,
|
|
|
+/* 320 */,
|
|
|
+/* 321 */,
|
|
|
+/* 322 */
|
|
|
+/*!****************************************************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-overlay/props.js ***!
|
|
|
+ \****************************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 是否显示遮罩
|
|
|
+ show: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.overlay.show
|
|
|
+ },
|
|
|
+ // 层级z-index
|
|
|
+ zIndex: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.overlay.zIndex
|
|
|
+ },
|
|
|
+ // 遮罩的过渡时间,单位为ms
|
|
|
+ duration: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.overlay.duration
|
|
|
+ },
|
|
|
+ // 不透明度值,当做rgba的第四个参数
|
|
|
+ opacity: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.overlay.opacity
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 323 */,
|
|
|
+/* 324 */,
|
|
|
+/* 325 */,
|
|
|
+/* 326 */,
|
|
|
+/* 327 */,
|
|
|
+/* 328 */,
|
|
|
+/* 329 */,
|
|
|
+/* 330 */
|
|
|
+/*!*******************************************************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-transition/props.js ***!
|
|
|
+ \*******************************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 是否展示组件
|
|
|
+ show: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.transition.show
|
|
|
+ },
|
|
|
+ // 使用的动画模式
|
|
|
+ mode: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.transition.mode
|
|
|
+ },
|
|
|
+ // 动画的执行时间,单位ms
|
|
|
+ duration: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.transition.duration
|
|
|
+ },
|
|
|
+ // 使用的动画过渡函数
|
|
|
+ timingFunction: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.transition.timingFunction
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 331 */
|
|
|
+/*!************************************************************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-transition/transition.js ***!
|
|
|
+ \************************************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+
|
|
|
+
|
|
|
+var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 59));
|
|
|
+var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 61));
|
|
|
+var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 332));
|
|
|
+// 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
|
|
|
+var nextTick = function nextTick() {
|
|
|
+ return new Promise(function (resolve) {
|
|
|
+ return setTimeout(resolve, 1000 / 50);
|
|
|
+ });
|
|
|
+};
|
|
|
+// nvue动画模块实现细节抽离在外部文件
|
|
|
+
|
|
|
+// 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
|
|
|
+var getClassNames = function getClassNames(name) {
|
|
|
+ return {
|
|
|
+ enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
|
|
|
+ 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
|
|
|
+ leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
|
|
|
+ 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
|
|
|
+ };
|
|
|
+};
|
|
|
+var _default = {
|
|
|
+ methods: {
|
|
|
+ // 组件被点击发出事件
|
|
|
+ clickHandler: function clickHandler() {
|
|
|
+ this.$emit('click');
|
|
|
+ },
|
|
|
+ // vue版本的组件进场处理
|
|
|
+ vueEnter: function vueEnter() {
|
|
|
+ var _this = this;
|
|
|
+ // 动画进入时的类名
|
|
|
+ var classNames = getClassNames(this.mode);
|
|
|
+ // 定义状态和发出动画进入前事件
|
|
|
+ this.status = 'enter';
|
|
|
+ this.$emit('beforeEnter');
|
|
|
+ this.inited = true;
|
|
|
+ this.display = true;
|
|
|
+ this.classes = classNames.enter;
|
|
|
+ this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
|
+ return _regenerator.default.wrap(function _callee$(_context) {
|
|
|
+ while (1) {
|
|
|
+ switch (_context.prev = _context.next) {
|
|
|
+ case 0:
|
|
|
+ // 标识动画尚未结束
|
|
|
+ _this.$emit('enter');
|
|
|
+ _this.transitionEnded = false;
|
|
|
+ // 组件动画进入后触发的事件
|
|
|
+ _this.$emit('afterEnter');
|
|
|
+ // 赋予组件enter-to类名
|
|
|
+ _this.classes = classNames['enter-to'];
|
|
|
+ case 4:
|
|
|
+ case "end":
|
|
|
+ return _context.stop();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, _callee);
|
|
|
+ })));
|
|
|
+ },
|
|
|
+ // 动画离场处理
|
|
|
+ vueLeave: function vueLeave() {
|
|
|
+ var _this2 = this;
|
|
|
+ // 如果不是展示状态,无需执行逻辑
|
|
|
+ if (!this.display) return;
|
|
|
+ var classNames = getClassNames(this.mode);
|
|
|
+ // 标记离开状态和发出事件
|
|
|
+ this.status = 'leave';
|
|
|
+ this.$emit('beforeLeave');
|
|
|
+ // 获得类名
|
|
|
+ this.classes = classNames.leave;
|
|
|
+ this.$nextTick(function () {
|
|
|
+ // 动画正在离场的状态
|
|
|
+ _this2.transitionEnded = false;
|
|
|
+ _this2.$emit('leave');
|
|
|
+ // 组件执行动画,到了执行的执行时间后,执行一些额外处理
|
|
|
+ setTimeout(_this2.onTransitionEnd, _this2.duration);
|
|
|
+ _this2.classes = classNames['leave-to'];
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 完成过渡后触发
|
|
|
+ onTransitionEnd: function onTransitionEnd() {
|
|
|
+ // 如果已经是结束的状态,无需再处理
|
|
|
+ if (this.transitionEnded) return;
|
|
|
+ this.transitionEnded = true;
|
|
|
+ // 发出组件动画执行后的事件
|
|
|
+ this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
|
|
|
+ if (!this.show && this.display) {
|
|
|
+ this.display = false;
|
|
|
+ this.inited = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 332 */
|
|
|
+/*!**************************************************************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
|
|
|
+ \**************************************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ fade: {
|
|
|
+ enter: {
|
|
|
+ opacity: 0
|
|
|
+ },
|
|
|
+ 'enter-to': {
|
|
|
+ opacity: 1
|
|
|
+ },
|
|
|
+ leave: {
|
|
|
+ opacity: 1
|
|
|
+ },
|
|
|
+ 'leave-to': {
|
|
|
+ opacity: 0
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 'fade-up': {
|
|
|
+ enter: {
|
|
|
+ opacity: 0,
|
|
|
+ transform: 'translateY(100%)'
|
|
|
+ },
|
|
|
+ 'enter-to': {
|
|
|
+ opacity: 1,
|
|
|
+ transform: 'translateY(0)'
|
|
|
+ },
|
|
|
+ leave: {
|
|
|
+ opacity: 1,
|
|
|
+ transform: 'translateY(0)'
|
|
|
+ },
|
|
|
+ 'leave-to': {
|
|
|
+ opacity: 0,
|
|
|
+ transform: 'translateY(100%)'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 'fade-down': {
|
|
|
+ enter: {
|
|
|
+ opacity: 0,
|
|
|
+ transform: 'translateY(-100%)'
|
|
|
+ },
|
|
|
+ 'enter-to': {
|
|
|
+ opacity: 1,
|
|
|
+ transform: 'translateY(0)'
|
|
|
+ },
|
|
|
+ leave: {
|
|
|
+ opacity: 1,
|
|
|
+ transform: 'translateY(0)'
|
|
|
+ },
|
|
|
+ 'leave-to': {
|
|
|
+ opacity: 0,
|
|
|
+ transform: 'translateY(-100%)'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 'fade-left': {
|
|
|
+ enter: {
|
|
|
+ opacity: 0,
|
|
|
+ transform: 'translateX(-100%)'
|
|
|
+ },
|
|
|
+ 'enter-to': {
|
|
|
+ opacity: 1,
|
|
|
+ transform: 'translateY(0)'
|
|
|
+ },
|
|
|
+ leave: {
|
|
|
+ opacity: 1,
|
|
|
+ transform: 'translateY(0)'
|
|
|
+ },
|
|
|
+ 'leave-to': {
|
|
|
+ opacity: 0,
|
|
|
+ transform: 'translateX(-100%)'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 'fade-right': {
|
|
|
+ enter: {
|
|
|
+ opacity: 0,
|
|
|
+ transform: 'translateX(100%)'
|
|
|
+ },
|
|
|
+ 'enter-to': {
|
|
|
+ opacity: 1,
|
|
|
+ transform: 'translateY(0)'
|
|
|
+ },
|
|
|
+ leave: {
|
|
|
+ opacity: 1,
|
|
|
+ transform: 'translateY(0)'
|
|
|
+ },
|
|
|
+ 'leave-to': {
|
|
|
+ opacity: 0,
|
|
|
+ transform: 'translateX(100%)'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 'slide-up': {
|
|
|
+ enter: {
|
|
|
+ transform: 'translateY(100%)'
|
|
|
+ },
|
|
|
+ 'enter-to': {
|
|
|
+ transform: 'translateY(0)'
|
|
|
+ },
|
|
|
+ leave: {
|
|
|
+ transform: 'translateY(0)'
|
|
|
+ },
|
|
|
+ 'leave-to': {
|
|
|
+ transform: 'translateY(100%)'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 'slide-down': {
|
|
|
+ enter: {
|
|
|
+ transform: 'translateY(-100%)'
|
|
|
+ },
|
|
|
+ 'enter-to': {
|
|
|
+ transform: 'translateY(0)'
|
|
|
+ },
|
|
|
+ leave: {
|
|
|
+ transform: 'translateY(0)'
|
|
|
+ },
|
|
|
+ 'leave-to': {
|
|
|
+ transform: 'translateY(-100%)'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 'slide-left': {
|
|
|
+ enter: {
|
|
|
+ transform: 'translateX(-100%)'
|
|
|
+ },
|
|
|
+ 'enter-to': {
|
|
|
+ transform: 'translateY(0)'
|
|
|
+ },
|
|
|
+ leave: {
|
|
|
+ transform: 'translateY(0)'
|
|
|
+ },
|
|
|
+ 'leave-to': {
|
|
|
+ transform: 'translateX(-100%)'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 'slide-right': {
|
|
|
+ enter: {
|
|
|
+ transform: 'translateX(100%)'
|
|
|
+ },
|
|
|
+ 'enter-to': {
|
|
|
+ transform: 'translateY(0)'
|
|
|
+ },
|
|
|
+ leave: {
|
|
|
+ transform: 'translateY(0)'
|
|
|
+ },
|
|
|
+ 'leave-to': {
|
|
|
+ transform: 'translateX(100%)'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ zoom: {
|
|
|
+ enter: {
|
|
|
+ transform: 'scale(0.95)'
|
|
|
+ },
|
|
|
+ 'enter-to': {
|
|
|
+ transform: 'scale(1)'
|
|
|
+ },
|
|
|
+ leave: {
|
|
|
+ transform: 'scale(1)'
|
|
|
+ },
|
|
|
+ 'leave-to': {
|
|
|
+ transform: 'scale(0.95)'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 'fade-zoom': {
|
|
|
+ enter: {
|
|
|
+ opacity: 0,
|
|
|
+ transform: 'scale(0.95)'
|
|
|
+ },
|
|
|
+ 'enter-to': {
|
|
|
+ opacity: 1,
|
|
|
+ transform: 'scale(1)'
|
|
|
+ },
|
|
|
+ leave: {
|
|
|
+ opacity: 1,
|
|
|
+ transform: 'scale(1)'
|
|
|
+ },
|
|
|
+ 'leave-to': {
|
|
|
+ opacity: 0,
|
|
|
+ transform: 'scale(0.95)'
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 333 */,
|
|
|
+/* 334 */,
|
|
|
+/* 335 */,
|
|
|
+/* 336 */,
|
|
|
+/* 337 */,
|
|
|
+/* 338 */,
|
|
|
+/* 339 */,
|
|
|
+/* 340 */
|
|
|
+/*!*******************************************************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-status-bar/props.js ***!
|
|
|
+ \*******************************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ bgColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.statusBar.bgColor
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 341 */,
|
|
|
+/* 342 */,
|
|
|
+/* 343 */,
|
|
|
+/* 344 */,
|
|
|
+/* 345 */,
|
|
|
+/* 346 */,
|
|
|
+/* 347 */,
|
|
|
+/* 348 */
|
|
|
+/*!********************************************************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-safe-bottom/props.js ***!
|
|
|
+ \********************************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {}
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 349 */,
|
|
|
+/* 350 */,
|
|
|
+/* 351 */,
|
|
|
+/* 352 */,
|
|
|
+/* 353 */,
|
|
|
+/* 354 */,
|
|
|
+/* 355 */,
|
|
|
+/* 356 */,
|
|
|
+/* 357 */,
|
|
|
+/* 358 */,
|
|
|
+/* 359 */,
|
|
|
+/* 360 */,
|
|
|
+/* 361 */,
|
|
|
+/* 362 */,
|
|
|
+/* 363 */,
|
|
|
+/* 364 */,
|
|
|
+/* 365 */,
|
|
|
+/* 366 */,
|
|
|
+/* 367 */,
|
|
|
+/* 368 */,
|
|
|
+/* 369 */,
|
|
|
+/* 370 */,
|
|
|
+/* 371 */,
|
|
|
+/* 372 */,
|
|
|
+/* 373 */,
|
|
|
+/* 374 */,
|
|
|
+/* 375 */,
|
|
|
+/* 376 */,
|
|
|
+/* 377 */
|
|
|
+/*!*********************************************************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-loading-icon/props.js ***!
|
|
|
+ \*********************************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 是否显示组件
|
|
|
+ show: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.loadingIcon.show
|
|
|
+ },
|
|
|
+ // 颜色
|
|
|
+ color: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.loadingIcon.color
|
|
|
+ },
|
|
|
+ // 提示文字颜色
|
|
|
+ textColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.loadingIcon.textColor
|
|
|
+ },
|
|
|
+ // 文字和图标是否垂直排列
|
|
|
+ vertical: {
|
|
|
+ type: Boolean,
|
|
|
+ default: uni.$u.props.loadingIcon.vertical
|
|
|
+ },
|
|
|
+ // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
|
|
|
+ mode: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.loadingIcon.mode
|
|
|
+ },
|
|
|
+ // 图标大小,单位默认px
|
|
|
+ size: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.loadingIcon.size
|
|
|
+ },
|
|
|
+ // 文字大小
|
|
|
+ textSize: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.loadingIcon.textSize
|
|
|
+ },
|
|
|
+ // 文字内容
|
|
|
+ text: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.loadingIcon.text
|
|
|
+ },
|
|
|
+ // 动画模式
|
|
|
+ timingFunction: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.loadingIcon.timingFunction
|
|
|
+ },
|
|
|
+ // 动画执行周期时间
|
|
|
+ duration: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.loadingIcon.duration
|
|
|
+ },
|
|
|
+ // mode=circle时的暗边颜色
|
|
|
+ inactiveColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.loadingIcon.inactiveColor
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 378 */,
|
|
|
+/* 379 */,
|
|
|
+/* 380 */,
|
|
|
+/* 381 */,
|
|
|
+/* 382 */,
|
|
|
+/* 383 */,
|
|
|
+/* 384 */,
|
|
|
+/* 385 */
|
|
|
+/*!*************************************************************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-swiper-indicator/props.js ***!
|
|
|
+ \*************************************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.default = void 0;
|
|
|
+var _default = {
|
|
|
+ props: {
|
|
|
+ // 轮播的长度
|
|
|
+ length: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiperIndicator.length
|
|
|
+ },
|
|
|
+ // 当前处于活动状态的轮播的索引
|
|
|
+ current: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: uni.$u.props.swiperIndicator.current
|
|
|
+ },
|
|
|
+ // 指示器非激活颜色
|
|
|
+ indicatorActiveColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiperIndicator.indicatorActiveColor
|
|
|
+ },
|
|
|
+ // 指示器的激活颜色
|
|
|
+ indicatorInactiveColor: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiperIndicator.indicatorInactiveColor
|
|
|
+ },
|
|
|
+ // 指示器模式,line-线型,dot-点型
|
|
|
+ indicatorMode: {
|
|
|
+ type: String,
|
|
|
+ default: uni.$u.props.swiperIndicator.indicatorMode
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
exports.default = _default;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
+
|
|
|
+/***/ }),
|
|
|
+/* 386 */,
|
|
|
+/* 387 */,
|
|
|
+/* 388 */,
|
|
|
+/* 389 */,
|
|
|
+/* 390 */,
|
|
|
+/* 391 */
|
|
|
+/*!*******************************************************************************!*\
|
|
|
+ !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/api/login/login.js ***!
|
|
|
+ \*******************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.wechatRetrieveAccountPwdLogin = exports.wechatRegister = exports.validateSmsCode = exports.saveWechatUser = exports.realNameAuthLogin = exports.phoneIsExist = exports.passwordByPhone = exports.idCardIsExist = exports.getWechatUserPhoneNumber = exports.getSmsCode = void 0;
|
|
|
+var http = uni.$u.http;
|
|
|
+
|
|
|
+// post请求,保存用户信息
|
|
|
+var saveWechatUser = function saveWechatUser(params) {
|
|
|
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
+ return http.post('/auth/wechat/saveWeChatUserInfo', params, config);
|
|
|
+};
|
|
|
+
|
|
|
+// post请求,获取微信电话号码
|
|
|
+exports.saveWechatUser = saveWechatUser;
|
|
|
+var getWechatUserPhoneNumber = function getWechatUserPhoneNumber(params) {
|
|
|
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
+ return http.post('/auth/wechat/getWechatUserPhoneNumber', params, config);
|
|
|
+};
|
|
|
+
|
|
|
+// post请求,验证手机号码是否被注册
|
|
|
+exports.getWechatUserPhoneNumber = getWechatUserPhoneNumber;
|
|
|
+var phoneIsExist = function phoneIsExist(params) {
|
|
|
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
+ return http.post('/member/wechat/phoneIsExist', params, config);
|
|
|
+};
|
|
|
+
|
|
|
+// post请求,新微新手机绑定
|
|
|
+exports.phoneIsExist = phoneIsExist;
|
|
|
+var wechatRegister = function wechatRegister(params) {
|
|
|
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
+ return http.post('/auth/xcxRegister', params, config);
|
|
|
+};
|
|
|
+
|
|
|
+// get请求,获取手机验证码
|
|
|
+exports.wechatRegister = wechatRegister;
|
|
|
+var getSmsCode = function getSmsCode(params) {
|
|
|
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
+ return http.get('/resource/sms/code', params, config);
|
|
|
+};
|
|
|
+
|
|
|
+// post请求,验证手机验证码
|
|
|
+exports.getSmsCode = getSmsCode;
|
|
|
+var validateSmsCode = function validateSmsCode(params) {
|
|
|
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
+ return http.post('/member/wechat/validateSmsCode', params, config);
|
|
|
+};
|
|
|
+
|
|
|
+// post请求,找回账号密码登录
|
|
|
+exports.validateSmsCode = validateSmsCode;
|
|
|
+var wechatRetrieveAccountPwdLogin = function wechatRetrieveAccountPwdLogin(params) {
|
|
|
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
+ return http.post('/auth/xcxRetrieveMemberByPwd', params, config);
|
|
|
+};
|
|
|
+
|
|
|
+// post请求,实名认证登录(新微信老手机)
|
|
|
+exports.wechatRetrieveAccountPwdLogin = wechatRetrieveAccountPwdLogin;
|
|
|
+var realNameAuthLogin = function realNameAuthLogin(params) {
|
|
|
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
+ return http.post('/auth/xcxRetrieveMember', params, config);
|
|
|
+};
|
|
|
+
|
|
|
+// post请求,验证身份证是滞存在
|
|
|
+exports.realNameAuthLogin = realNameAuthLogin;
|
|
|
+var idCardIsExist = function idCardIsExist(params) {
|
|
|
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
+ return http.post('/member/wechat/idCardIsExist', params, config);
|
|
|
+};
|
|
|
+
|
|
|
+// post请求验证手机找回密码
|
|
|
+exports.idCardIsExist = idCardIsExist;
|
|
|
+var passwordByPhone = function passwordByPhone(params) {
|
|
|
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
+ return http.post('/member/wechat/passwordByPhone', params, config);
|
|
|
+};
|
|
|
+exports.passwordByPhone = passwordByPhone;
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
|
|
|
/***/ })
|
|
|
]]);
|