From 3cbbe9869cf0ac7e1a71c229bb5bff6cf841bd7a Mon Sep 17 00:00:00 2001 From: ch Date: Tue, 17 May 2022 19:53:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unpackage/dist/build/h5/index.html | 2 +- .../build/h5/static/js/{index.770e9720.js => index.b703e873.js} | 2 +- unpackage/dist/build/h5/static/js/pages-login.291cb106.js | 1 + unpackage/dist/build/h5/static/js/pages-login.9c7517fa.js | 1 - 4 files changed, 3 insertions(+), 3 deletions(-) rename unpackage/dist/build/h5/static/js/{index.770e9720.js => index.b703e873.js} (82%) create mode 100644 unpackage/dist/build/h5/static/js/pages-login.291cb106.js delete mode 100644 unpackage/dist/build/h5/static/js/pages-login.9c7517fa.js diff --git a/unpackage/dist/build/h5/index.html b/unpackage/dist/build/h5/index.html index 2529689..7d5f891 100644 --- a/unpackage/dist/build/h5/index.html +++ b/unpackage/dist/build/h5/index.html @@ -1,2 +1,2 @@ 马士兵严选
\ No newline at end of file + document.write('')
\ No newline at end of file diff --git a/unpackage/dist/build/h5/static/js/index.770e9720.js b/unpackage/dist/build/h5/static/js/index.b703e873.js similarity index 82% rename from unpackage/dist/build/h5/static/js/index.770e9720.js rename to unpackage/dist/build/h5/static/js/index.b703e873.js index 20544fa..f4d6599 100644 --- a/unpackage/dist/build/h5/static/js/index.770e9720.js +++ b/unpackage/dist/build/h5/static/js/index.b703e873.js @@ -1 +1 @@ -(function(e){function a(a){for(var t,s,i=a[0],c=a[1],d=a[2],u=0,l=[];u1&&void 0!==arguments[1])||arguments[1];return a?e.then((function(e){return{error:null,result:e}})).catch((function(e){return{error:e,result:null}})):e};a.ToAsyncAwait=t;var r=function(e,a){var n;return function(){var t=this,r=arguments;n&&clearTimeout(n),n=setTimeout((function(){e.apply(t,r)}),a)}};a.Debounce=r;var o=function(e){return/^(1[3-9]\d{9})$/.test(e)};a.IsPhone=o;var s=function(e){return!(!isDouble(e)&&!isInteger(e))};a.IsNumber=s;var i=function(e){if(null==e||""==e)return!1;var a=e.match(/^[-\+]?\d+$/);return null!=a};a.IsInteger=i;var c=function(e){if(null==e||""==e)return!1;var a=e.match(/^[-\+]?\d+(\.\d+)?$/);return null!=a};a.IsDouble=c;var d=function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy/mm/dd";if(e.constructor===String){e=e.replace(/\D+/gi,"/");var n=e.split("/");if(n.length>3){var t=" ".concat(n[3],":").concat(n[4],":").concat(n[5]);n.length=3,e=n.join("/")+t}}try{e=e?e.constructor===Date?e:new Date(e):new Date}catch(i){throw new Error("不能识别的时间格式")}var r={"m+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"i+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),"l+":e.getMilliseconds()};for(var o in/(y+)/i.test(a)&&(a=a.replace(RegExp.$1,e.getFullYear().toString().substr(4-RegExp.$1.length))),r)if(new RegExp("(".concat(o,")"),"i").test(a)){var s=r[o].toString();a=a.replace(RegExp.$1,1===RegExp.$1.length?s:"0".concat(s).substr(s.length-1))}return a};a.formatDate=d;var u=function(e,a){var n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),t=[],r=0;if(a=a||n.length,e)for(r=0;r1&&void 0!==arguments[1]?arguments[1]:"";e.token=a,uni.setStorageSync(s,a)},SET_USER_INFO:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.userInfo=a,uni.setStorageSync(i,JSON.stringify(a))},SET_ADDRESS:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.address=a,uni.setStorageSync(c,JSON.stringify(a))},SET_SESSION_DATA:function(e,a){e.sessionData=a},SET_SESSION_MSG_COUNT:function(e,a){e.sessionMsgCount=a},SET_OPEN_ID:function(e,a){e.openId=a,uni.setStorageSync(d,a)},SET_SESSION_MSG_ID:function(e,a){e.sessionMsgId=a}},actions:{}});a.default=u},"44b1":function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var t={onLaunch:function(){},onShow:function(){console.log("App Show")},onHide:function(){}};a.default=t},"4e55":function(e,a,n){var t=n("24fb");a=t(!1),a.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */.u-line-1{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important}.u-line-2{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important}.u-line-3{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important}.u-line-4{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important}.u-line-5{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important}.u-border{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button{padding:0;background-color:initial;font-size:inherit;line-height:inherit;color:inherit}.u-reset-button::after{border:none}.u-hover-class{opacity:.7}.u-primary-light{color:#ecf5ff}.u-warning-light{color:#fdf6ec}.u-success-light{color:#f5fff0}.u-error-light{color:#fef0f0}.u-info-light{color:#f4f4f5}.u-primary-light-bg{background-color:#ecf5ff}.u-warning-light-bg{background-color:#fdf6ec}.u-success-light-bg{background-color:#f5fff0}.u-error-light-bg{background-color:#fef0f0}.u-info-light-bg{background-color:#f4f4f5}.u-primary-dark{color:#398ade}.u-warning-dark{color:#f1a532}.u-success-dark{color:#53c21d}.u-error-dark{color:#e45656}.u-info-dark{color:#767a82}.u-primary-dark-bg{background-color:#398ade}.u-warning-dark-bg{background-color:#f1a532}.u-success-dark-bg{background-color:#53c21d}.u-error-dark-bg{background-color:#e45656}.u-info-dark-bg{background-color:#767a82}.u-primary-disabled{color:#9acafc}.u-warning-disabled{color:#f9d39b}.u-success-disabled{color:#a9e08f}.u-error-disabled{color:#f7b2b2}.u-info-disabled{color:#c4c6c9}.u-primary{color:#3c9cff}.u-warning{color:#f9ae3d}.u-success{color:#5ac725}.u-error{color:#f56c6c}.u-info{color:#909399}.u-primary-bg{background-color:#3c9cff}.u-warning-bg{background-color:#f9ae3d}.u-success-bg{background-color:#5ac725}.u-error-bg{background-color:#f56c6c}.u-info-bg{background-color:#909399}.u-main-color{color:#303133}.u-content-color{color:#606266}.u-tips-color{color:#909193}.u-light-color{color:#c0c4cc}.u-safe-area-inset-top{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}uni-toast{z-index:10090}uni-toast .uni-toast{z-index:10090}::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}uni-view, uni-text, uni-textarea, uni-input{-webkit-box-sizing:border-box;box-sizing:border-box;font-size:%?28?%;color:#333}body{padding-bottom:constant(safe-area-inset-bottom);\n /* 兼容 iOS < 11.2 */padding-bottom:env(safe-area-inset-bottom)\n /* 兼容 iOS >= 11.2 */}',""]),e.exports=a},5767:function(e,a,n){"use strict";var t=n("dbce"),r=n("4ea4");Object.defineProperty(a,"__esModule",{value:!0});var o={};a.default=void 0;var s=r(n("5530")),i=t(n("41ba"));Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||Object.defineProperty(a,e,{enumerable:!0,get:function(){return i[e]}}))}));var c=t(n("d071")),d=c;Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||Object.defineProperty(a,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=t(n("9be5"));Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||Object.defineProperty(a,e,{enumerable:!0,get:function(){return u[e]}}))}));var g=n("6a50");Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||Object.defineProperty(a,e,{enumerable:!0,get:function(){return g[e]}}))}));var l=(0,s.default)((0,s.default)((0,s.default)((0,s.default)({},i),c),d),u);a.default=l},"57b9":function(e,a,n){"use strict";n.r(a);var t=n("44b1"),r=n.n(t);for(var o in t)"default"!==o&&function(e){n.d(a,e,(function(){return t[e]}))}(o);a["default"]=r.a},"66eb":function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ApiPostWxAppPay=a.ApiPostWxJsApiPay=a.ApiPostWxH5Pay=a.ApiGetOpenId=a.ApiGetAuthUrl=void 0;var t=n("5767"),r="/mall/trade",o="/third",s="wxd2015f0c56defa02",i=function(e){return(0,t.ToAsyncAwait)(t.MsbRequest.get("".concat(o,"/wx/mp/getAuthorizationUrl/").concat(s),e))};a.ApiGetAuthUrl=i;var c=function(e){var a=e.code;return(0,t.ToAsyncAwait)(t.MsbRequest.get("".concat(o,"/wx/mp/getOpenId/").concat(s),{code:a}))};a.ApiGetOpenId=c;var d=function(e){return(0,t.ToAsyncAwait)(t.MsbRequestTk.post("".concat(r,"/pay/wxPay/h5"),e))};a.ApiPostWxH5Pay=d;var u=function(e){return(0,t.ToAsyncAwait)(t.MsbRequestTk.post("".concat(r,"/pay/wxPay/jsapi"),e))};a.ApiPostWxJsApiPay=u;var g=function(e){return(0,t.ToAsyncAwait)(t.MsbRequestTk.post("".concat(r,"/pay/wxPay/app"),e))};a.ApiPostWxAppPay=g},"6a50":function(e,a,n){"use strict";var t=n("4ea4");n("99af"),n("7db0"),n("c740"),n("4160"),n("d3b7"),n("159b"),Object.defineProperty(a,"__esModule",{value:!0}),a.MsbWebSktInit=a.MsbWebSkt=void 0;var r=t(n("5530")),o=t(n("2909")),s=t(n("4308")),i=n("5767"),c=!1,d=function(e){c=!0,e.sessionVOS.forEach((function(e){e.lastMessage&&(e.lastMessage.createTimeStamp=(0,i.formatDate)(e.lastMessage.createTimeStamp,"mm-dd hh:ii"),e.lastMessage.payload=JSON.parse(e.lastMessage.payload||{}));var a=s.default.state.sessionData,n=a.findIndex((function(a){return a.id===e.id}));n>=0?(a[n].lastMessage=e.lastMessage,a[n].unreadCount++,s.default.commit("SET_SESSION_DATA",a)):(e.messageList=[],s.default.commit("SET_SESSION_DATA",[].concat((0,o.default)(a),[e])))})),s.default.commit("SET_SESSION_MSG_COUNT",e.totalUnreadCount)},u=function(e){if(!e.length)return!1;var a=s.default.state.sessionData,n=a.findIndex((function(a){return a.id===e[0].sessionId}));e.forEach((function(e){e.createTimeStamp=(0,i.formatDate)(e.createTimeStamp,"mm-dd hh:ii"),e.payload=JSON.parse(e.payload)})),a[n].messageList=a[n].messageList.concat(e),s.default.commit("SET_SESSION_DATA",a)},g=function(e){if(c){e.payload=JSON.parse(e.payload||{}),e.createTimeStamp=(0,i.formatDate)(e.createTimeStamp||new Date,"mm-dd hh:ii");var a=s.default.state.sessionData,n=a.findIndex((function(a){return a.id===e.sessionId}));if(e.sessionId!==s.default.state.sessionMsgId&&s.default.commit("SET_SESSION_MSG_COUNT",s.default.state.sessionMsgCount+1),n>=0){var t=a[n];t.messageList.push(e),e.sessionId!==s.default.state.sessionMsgId&&t.unreadCount++,s.default.commit("SET_SESSION_DATA",a)}else s.default.commit("SET_SESSION_DATA",[].concat((0,o.default)(a),[{fromAvatar:e.fromAvatar,fromId:e.fromId,fromNickname:e.fromNickname,id:e.id,lastMessage:e,messageList:[e],unreadCount:1}]))}},l=function(e){var a=s.default.state.sessionData,n=a.find((function(a){return a.id===e.id}));if(s.default.commit("SET_SESSION_MSG_ID",e.id),n)return!1;s.default.commit("SET_SESSION_DATA",[].concat((0,o.default)(a),[(0,r.default)((0,r.default)({},e),{},{unreadCount:0,messageList:[]})]))},p=null;a.MsbWebSkt=p;var f=function(){return new Promise((function(e,n){a.MsbWebSkt=p=uni.connectSocket({url:"wss://you-gateway.mashibing.com/ws?client=".concat(s.default.state.token,"&type=1"),fail:function(e){n(e)}}),p.onOpen((function(){p.onMessage((function(e){var a=JSON.parse(e.data||{});if(200===a.code){var n=a.content;switch(a.traceType){case 1:d(n);break;case 2:case 23:u(n);break;case 21:l(n);break;case 25:case 20:case 7:g(n);break;default:break}}})),e()})),p.onClose((function(){console.log("断开。。。。。")}))}))};a.MsbWebSktInit=f},"75f8":function(e,a,n){"use strict";n.r(a);var t=n("a64b"),r=n("57b9");for(var o in r)"default"!==o&&function(e){n.d(a,e,(function(){return r[e]}))}(o);n("04c0");var s,i=n("f0c5"),c=Object(i["a"])(r["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],s);a["default"]=c.exports},9187:function(e,a,n){"use strict";var t=n("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n("96cf");var r=t(n("1da1")),o={props:{content:{type:String,default:""},confirmText:{type:String,default:"确认"},confirm:{type:Function,default:function(){}},cancelText:{type:String,default:"取消"},cancel:{type:Function,default:function(){}}},data:function(){return{show:!0}},methods:{myConfirm:function(){var e=this;return(0,r.default)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.show=!1,a.next=3,e.confirm();case 3:document.body.removeChild(e.$el);case 4:case"end":return a.stop()}}),a)})))()},myCancel:function(){var e=this;return(0,r.default)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.show=!1,a.next=3,e.cancel();case 3:document.body.removeChild(e.$el);case 4:case"end":return a.stop()}}),a)})))()}}};a.default=o},"97c4":function(e,a,n){"use strict";n.r(a);var t=n("180f"),r=n("fca3");for(var o in r)"default"!==o&&function(e){n.d(a,e,(function(){return r[e]}))}(o);var s,i=n("f0c5"),c=Object(i["a"])(r["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],s);a["default"]=c.exports},"9be5":function(e,a,n){"use strict";var t=n("4ea4");n("99af"),Object.defineProperty(a,"__esModule",{value:!0}),a.Wxpay=void 0,n("96cf");var r=t(n("1da1")),o=n("66eb"),s=function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(a){var n,t,r,s,i,c,d,u,g,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=a.orderId,t=a.openId,!t){e.next=14;break}return e.next=4,(0,o.ApiPostWxJsApiPay)({orderId:n,openId:t});case 4:if(r=e.sent,s=r.error,i=r.result,!s){e.next=10;break}return uni.$u.toast(s.message),e.abrupt("return",!1);case 10:c=i.dataInfo,WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:c.appId,timeStamp:c.timeStamp,nonceStr:c.nonceStr,package:c.packageValue,signType:c.signType,paySign:c.paySign},(function(e){"get_brand_wcpay_request:cancel"!==e.err_msg&&uni.navigateTo({url:"/payResult?orderId=".concat(n,"&payType=wxjsapi")})})),e.next=24;break;case 14:return e.next=16,(0,o.ApiPostWxH5Pay)({orderId:n});case 16:if(d=e.sent,u=d.error,g=d.result,!u){e.next=22;break}return uni.$u.toast(u.message),e.abrupt("return",!1);case 22:l=decodeURIComponent("https://you-app.mashibing.com/payResult?orderId=".concat(n,"&payType=wxh5")),window.location.href="".concat(g.dataInfo.payUrl,"&redirect_url=").concat(l);case 24:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}();a.Wxpay=s},a5e2:function(e,a,n){var t=n("4e55");"string"===typeof t&&(t=[[e.i,t,""]]),t.locals&&(e.exports=t.locals);var r=n("4f06").default;r("dcecdb5c",t,!0,{sourceMap:!1,shadowMode:!1})},a64b:function(e,a,n){"use strict";var t;n.d(a,"b",(function(){return r})),n.d(a,"c",(function(){return o})),n.d(a,"a",(function(){return t}));var r=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("App",{attrs:{keepAliveInclude:e.keepAliveInclude}})},o=[]},d071:function(e,a,n){"use strict";var t=n("4ea4");n("4de4"),n("caad"),n("d3b7"),n("2532"),n("38cf"),Object.defineProperty(a,"__esModule",{value:!0}),a.MsbRequestTk=a.MsbRequest=void 0;var r=t(n("5530")),o=t(n("fda4")),s=t(n("4308")),i="prod",c={test:"https://k8s-horse-gateway.mashibing.cn",dev:"",release:"",prod:"https://you-gateway.mashibing.com"},d=function(e,a){if(p(a),200===e.statusCode){var n=e.data;return"SUCCESS"===n.code?n.data:"TOKEN_FAIL"===n.code?(uni.navigateTo({url:"/login"}),s.default.commit("SET_TOKEN",""),n):Promise.reject(n)}return e},u=function(e,a){return p(a),{message:e.errMsg,code:e.statusCode}},g=[],l=function(e){var a={url:e.url,method:e.method,data:e.data};return g.includes(JSON.stringify(a))?Promise.reject({message:"请勿频繁操作"}):(g.push(JSON.stringify(a)),!1)},p=function(e){g=g.filter((function(a){return a!==JSON.stringify({url:e.url,method:e.method,data:e.data})}))},f=new o.default;a.MsbRequest=f,f.baseUrl=c[i],f.use("request",(function(e){if(e.header.repeat){var a=l(e);if(a)return a}return e})),f.use("success",d),f.use("error",u);var m=new o.default;a.MsbRequestTk=m,m.baseUrl=c[i],m.use("request",(function(e){var a=s.default.state.token;if(a){if(e.header=(0,r.default)((0,r.default)({},e.header),{},{Authorization:a}),e.header.repeat){var n=l(e);if(n)return n}return e}return uni.redirectTo({url:"/login"}),Promise.reject({message:"要先登录才能操作哦~"})})),m.use("success",d),m.use("error",u)},f147:function(e,a,n){"use strict";var t=n("4ea4");n("caad"),n("ac1f"),n("2532"),n("841c");var r=t(n("5530"));n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("3417"),n("1c31");var o=t(n("e143")),s=t(n("75f8")),i=n("3762"),c=t(n("06e9")),d=t(n("4308")),u=t(n("1a9b")),g=(t(n("161f")),n("5767")),l=n("66eb");d.default.state.token&&(0,g.MsbWebSktInit)().then((function(){g.MsbWebSkt.send({data:JSON.stringify({traceId:(0,g.createUUID)(),traceType:"1",content:{sysId:"1"}})}),setInterval((function(){g.MsbWebSkt.send({data:JSON.stringify({traceId:(0,g.createUUID)(),traceType:"0",content:{text:"ping"}})})}),5e3)}));var p=navigator?navigator.userAgent.toLowerCase():"";if(p.includes("micromessenger")&&!d.default.state.openId){var f=(0,g.toSearchJson)(window.location.search);f.code?(0,l.ApiGetOpenId)({code:f.code}).then((function(e){var a=e.error,n=e.result;if(a)return uni.$u.toast(a.message),!1;d.default.commit("SET_OPEN_ID",n.openId)})):(0,l.ApiGetAuthUrl)({redirectUrl:window.location.href,scope:"snsapi_base"}).then((function(e){var a=e.result,n=e.error;if(n)return uni.$u.toast(n.message),!1;window.location.href=a}))}o.default.use(i.router),o.default.use(c.default),o.default.use(u.default),o.default.prototype.$store=d.default,o.default.config.productionTip=!1,s.default.mpType="app";var m=new o.default((0,r.default)({},s.default));(0,i.RouterMount)(m,i.router,"#app")},fca3:function(e,a,n){"use strict";n.r(a);var t=n("9187"),r=n.n(t);for(var o in t)"default"!==o&&function(e){n.d(a,e,(function(){return t[e]}))}(o);a["default"]=r.a},fda4:function(e,a,n){"use strict";var t=n("4ea4");n("d3b7"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var r=t(n("5530")),o=t(n("d4ec")),s=t(n("bee2")),i=function(){function e(a){(0,o.default)(this,e),this.baseUrl="",this.header={repeat:!0},this.hook={request:null,success:null,error:null}}return(0,s.default)(e,[{key:"method",value:function(e){var a=this;if(e.header=(0,r.default)((0,r.default)({},this.header),e.header),e.url=this.baseUrl+e.url,this.hook.request&&(e=this.hook.request(e)),!e)throw new Error("没有请求配置,或是request拦截未做return");return e.constructor===Promise?e:new Promise((function(n,t){uni.request((0,r.default)((0,r.default)({},e),{},{success:function(r){var o=r||r[1];if(o.statusCode>=200&&o.statusCode<400){if(a.hook.success){var s=a.hook.success(o,e);s&&s.constructor===Promise?s.then((function(e){n(e)}),(function(e){t(e)})):n(s)}else n(o);return!1}t(a.hook.error?a.hook.error(o,e):o)},fail:function(n){t(a.hook.error?a.hook.error(n,e):n)}}))}))}},{key:"use",value:function(e,a){this.hook[e]=a}},{key:"get",value:function(e,a,n){return this.method({method:"GET",url:e,data:a,header:n})}},{key:"post",value:function(e,a,n){return this.method({method:"POST",url:e,data:a,header:n})}},{key:"put",value:function(e,a,n){return this.method({method:"PUT",url:e,data:a,header:n})}},{key:"delete",value:function(e,a,n){return this.method({method:"DELETE",url:e,data:a,header:n})}}]),e}(),c=i;a.default=c}}); \ No newline at end of file +(function(e){function a(a){for(var t,s,i=a[0],c=a[1],d=a[2],u=0,l=[];u1&&void 0!==arguments[1])||arguments[1];return a?e.then((function(e){return{error:null,result:e}})).catch((function(e){return{error:e,result:null}})):e};a.ToAsyncAwait=t;var r=function(e,a){var n;return function(){var t=this,r=arguments;n&&clearTimeout(n),n=setTimeout((function(){e.apply(t,r)}),a)}};a.Debounce=r;var o=function(e){return/^(1[3-9]\d{9})$/.test(e)};a.IsPhone=o;var s=function(e){return!(!isDouble(e)&&!isInteger(e))};a.IsNumber=s;var i=function(e){if(null==e||""==e)return!1;var a=e.match(/^[-\+]?\d+$/);return null!=a};a.IsInteger=i;var c=function(e){if(null==e||""==e)return!1;var a=e.match(/^[-\+]?\d+(\.\d+)?$/);return null!=a};a.IsDouble=c;var d=function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy/mm/dd";if(e.constructor===String){e=e.replace(/\D+/gi,"/");var n=e.split("/");if(n.length>3){var t=" ".concat(n[3],":").concat(n[4],":").concat(n[5]);n.length=3,e=n.join("/")+t}}try{e=e?e.constructor===Date?e:new Date(e):new Date}catch(i){throw new Error("不能识别的时间格式")}var r={"m+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"i+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),"l+":e.getMilliseconds()};for(var o in/(y+)/i.test(a)&&(a=a.replace(RegExp.$1,e.getFullYear().toString().substr(4-RegExp.$1.length))),r)if(new RegExp("(".concat(o,")"),"i").test(a)){var s=r[o].toString();a=a.replace(RegExp.$1,1===RegExp.$1.length?s:"0".concat(s).substr(s.length-1))}return a};a.formatDate=d;var u=function(e,a){var n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),t=[],r=0;if(a=a||n.length,e)for(r=0;r1&&void 0!==arguments[1]?arguments[1]:"";e.token=a,uni.setStorageSync(s,a)},SET_USER_INFO:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.userInfo=a,uni.setStorageSync(i,JSON.stringify(a))},SET_ADDRESS:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.address=a,uni.setStorageSync(c,JSON.stringify(a))},SET_SESSION_DATA:function(e,a){e.sessionData=a},SET_SESSION_MSG_COUNT:function(e,a){e.sessionMsgCount=a},SET_OPEN_ID:function(e,a){e.openId=a,uni.setStorageSync(d,a)},SET_SESSION_MSG_ID:function(e,a){e.sessionMsgId=a}},actions:{}});a.default=u},"44b1":function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var t={onLaunch:function(){},onShow:function(){console.log("App Show")},onHide:function(){}};a.default=t},"4e55":function(e,a,n){var t=n("24fb");a=t(!1),a.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */.u-line-1{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important}.u-line-2{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important}.u-line-3{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important}.u-line-4{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important}.u-line-5{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important}.u-border{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button{padding:0;background-color:initial;font-size:inherit;line-height:inherit;color:inherit}.u-reset-button::after{border:none}.u-hover-class{opacity:.7}.u-primary-light{color:#ecf5ff}.u-warning-light{color:#fdf6ec}.u-success-light{color:#f5fff0}.u-error-light{color:#fef0f0}.u-info-light{color:#f4f4f5}.u-primary-light-bg{background-color:#ecf5ff}.u-warning-light-bg{background-color:#fdf6ec}.u-success-light-bg{background-color:#f5fff0}.u-error-light-bg{background-color:#fef0f0}.u-info-light-bg{background-color:#f4f4f5}.u-primary-dark{color:#398ade}.u-warning-dark{color:#f1a532}.u-success-dark{color:#53c21d}.u-error-dark{color:#e45656}.u-info-dark{color:#767a82}.u-primary-dark-bg{background-color:#398ade}.u-warning-dark-bg{background-color:#f1a532}.u-success-dark-bg{background-color:#53c21d}.u-error-dark-bg{background-color:#e45656}.u-info-dark-bg{background-color:#767a82}.u-primary-disabled{color:#9acafc}.u-warning-disabled{color:#f9d39b}.u-success-disabled{color:#a9e08f}.u-error-disabled{color:#f7b2b2}.u-info-disabled{color:#c4c6c9}.u-primary{color:#3c9cff}.u-warning{color:#f9ae3d}.u-success{color:#5ac725}.u-error{color:#f56c6c}.u-info{color:#909399}.u-primary-bg{background-color:#3c9cff}.u-warning-bg{background-color:#f9ae3d}.u-success-bg{background-color:#5ac725}.u-error-bg{background-color:#f56c6c}.u-info-bg{background-color:#909399}.u-main-color{color:#303133}.u-content-color{color:#606266}.u-tips-color{color:#909193}.u-light-color{color:#c0c4cc}.u-safe-area-inset-top{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}uni-toast{z-index:10090}uni-toast .uni-toast{z-index:10090}::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}uni-view, uni-text, uni-textarea, uni-input{-webkit-box-sizing:border-box;box-sizing:border-box;font-size:%?28?%;color:#333}body{padding-bottom:constant(safe-area-inset-bottom);\n /* 兼容 iOS < 11.2 */padding-bottom:env(safe-area-inset-bottom)\n /* 兼容 iOS >= 11.2 */}',""]),e.exports=a},5767:function(e,a,n){"use strict";var t=n("dbce"),r=n("4ea4");Object.defineProperty(a,"__esModule",{value:!0});var o={};a.default=void 0;var s=r(n("5530")),i=t(n("41ba"));Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||Object.defineProperty(a,e,{enumerable:!0,get:function(){return i[e]}}))}));var c=t(n("d071")),d=c;Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||Object.defineProperty(a,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=t(n("9be5"));Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||Object.defineProperty(a,e,{enumerable:!0,get:function(){return u[e]}}))}));var g=n("6a50");Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||Object.defineProperty(a,e,{enumerable:!0,get:function(){return g[e]}}))}));var l=(0,s.default)((0,s.default)((0,s.default)((0,s.default)({},i),c),d),u);a.default=l},"57b9":function(e,a,n){"use strict";n.r(a);var t=n("44b1"),r=n.n(t);for(var o in t)"default"!==o&&function(e){n.d(a,e,(function(){return t[e]}))}(o);a["default"]=r.a},"66eb":function(e,a,n){"use strict";var t=n("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.ApiPostWxAppPay=a.ApiPostWxJsApiPay=a.ApiPostWxH5Pay=a.ApiPostThirdInfo=a.ApiGetOpenId=a.ApiGetAuthUrl=void 0;var r=t(n("5530")),o=n("5767"),s="/mall/trade",i="/third",c="wxd2015f0c56defa02",d=function(e){return(0,o.ToAsyncAwait)(o.MsbRequest.get("".concat(i,"/wx/mp/getAuthorizationUrl/").concat(c),e))};a.ApiGetAuthUrl=d;var u=function(e){var a=e.code;return(0,o.ToAsyncAwait)(o.MsbRequest.get("".concat(i,"/wx/mp/getOpenId/").concat(c),{code:a}))};a.ApiGetOpenId=u;var g=function(e){return(0,o.ToAsyncAwait)(o.MsbRequestTk.post("".concat(i,"/third/saveThirdInfo"),(0,r.default)((0,r.default)({},e),{},{appid:c})))};a.ApiPostThirdInfo=g;var l=function(e){return(0,o.ToAsyncAwait)(o.MsbRequestTk.post("".concat(s,"/pay/wxPay/h5"),e))};a.ApiPostWxH5Pay=l;var p=function(e){return(0,o.ToAsyncAwait)(o.MsbRequestTk.post("".concat(s,"/pay/wxPay/jsapi"),e))};a.ApiPostWxJsApiPay=p;var f=function(e){return(0,o.ToAsyncAwait)(o.MsbRequestTk.post("".concat(s,"/pay/wxPay/app"),e))};a.ApiPostWxAppPay=f},"6a50":function(e,a,n){"use strict";var t=n("4ea4");n("99af"),n("7db0"),n("c740"),n("4160"),n("d3b7"),n("159b"),Object.defineProperty(a,"__esModule",{value:!0}),a.MsbWebSktInit=a.MsbWebSkt=void 0;var r=t(n("5530")),o=t(n("2909")),s=t(n("4308")),i=n("5767"),c=!1,d=function(e){c=!0,e.sessionVOS.forEach((function(e){e.lastMessage&&(e.lastMessage.createTimeStamp=(0,i.formatDate)(e.lastMessage.createTimeStamp,"mm-dd hh:ii"),e.lastMessage.payload=JSON.parse(e.lastMessage.payload||{}));var a=s.default.state.sessionData,n=a.findIndex((function(a){return a.id===e.id}));n>=0?(a[n].lastMessage=e.lastMessage,a[n].unreadCount++,s.default.commit("SET_SESSION_DATA",a)):(e.messageList=[],s.default.commit("SET_SESSION_DATA",[].concat((0,o.default)(a),[e])))})),s.default.commit("SET_SESSION_MSG_COUNT",e.totalUnreadCount)},u=function(e){if(!e.length)return!1;var a=s.default.state.sessionData,n=a.findIndex((function(a){return a.id===e[0].sessionId}));e.forEach((function(e){e.createTimeStamp=(0,i.formatDate)(e.createTimeStamp,"mm-dd hh:ii"),e.payload=JSON.parse(e.payload)})),a[n].messageList=a[n].messageList.concat(e),s.default.commit("SET_SESSION_DATA",a)},g=function(e){if(c){e.payload=JSON.parse(e.payload||{}),e.createTimeStamp=(0,i.formatDate)(e.createTimeStamp||new Date,"mm-dd hh:ii");var a=s.default.state.sessionData,n=a.findIndex((function(a){return a.id===e.sessionId}));if(e.sessionId!==s.default.state.sessionMsgId&&s.default.commit("SET_SESSION_MSG_COUNT",s.default.state.sessionMsgCount+1),n>=0){var t=a[n];t.messageList.push(e),e.sessionId!==s.default.state.sessionMsgId&&t.unreadCount++,s.default.commit("SET_SESSION_DATA",a)}else s.default.commit("SET_SESSION_DATA",[].concat((0,o.default)(a),[{fromAvatar:e.fromAvatar,fromId:e.fromId,fromNickname:e.fromNickname,id:e.id,lastMessage:e,messageList:[e],unreadCount:1}]))}},l=function(e){var a=s.default.state.sessionData,n=a.find((function(a){return a.id===e.id}));if(s.default.commit("SET_SESSION_MSG_ID",e.id),n)return!1;s.default.commit("SET_SESSION_DATA",[].concat((0,o.default)(a),[(0,r.default)((0,r.default)({},e),{},{unreadCount:0,messageList:[]})]))},p=null;a.MsbWebSkt=p;var f=function(){return new Promise((function(e,n){a.MsbWebSkt=p=uni.connectSocket({url:"wss://you-gateway.mashibing.com/ws?client=".concat(s.default.state.token,"&type=1"),fail:function(e){n(e)}}),p.onOpen((function(){p.onMessage((function(e){var a=JSON.parse(e.data||{});if(200===a.code){var n=a.content;switch(a.traceType){case 1:d(n);break;case 2:case 23:u(n);break;case 21:l(n);break;case 25:case 20:case 7:g(n);break;default:break}}})),e()})),p.onClose((function(){console.log("断开。。。。。")}))}))};a.MsbWebSktInit=f},"75f8":function(e,a,n){"use strict";n.r(a);var t=n("a64b"),r=n("57b9");for(var o in r)"default"!==o&&function(e){n.d(a,e,(function(){return r[e]}))}(o);n("04c0");var s,i=n("f0c5"),c=Object(i["a"])(r["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],s);a["default"]=c.exports},9187:function(e,a,n){"use strict";var t=n("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n("96cf");var r=t(n("1da1")),o={props:{content:{type:String,default:""},confirmText:{type:String,default:"确认"},confirm:{type:Function,default:function(){}},cancelText:{type:String,default:"取消"},cancel:{type:Function,default:function(){}}},data:function(){return{show:!0}},methods:{myConfirm:function(){var e=this;return(0,r.default)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.show=!1,a.next=3,e.confirm();case 3:document.body.removeChild(e.$el);case 4:case"end":return a.stop()}}),a)})))()},myCancel:function(){var e=this;return(0,r.default)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.show=!1,a.next=3,e.cancel();case 3:document.body.removeChild(e.$el);case 4:case"end":return a.stop()}}),a)})))()}}};a.default=o},"97c4":function(e,a,n){"use strict";n.r(a);var t=n("180f"),r=n("fca3");for(var o in r)"default"!==o&&function(e){n.d(a,e,(function(){return r[e]}))}(o);var s,i=n("f0c5"),c=Object(i["a"])(r["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],s);a["default"]=c.exports},"9be5":function(e,a,n){"use strict";var t=n("4ea4");n("99af"),Object.defineProperty(a,"__esModule",{value:!0}),a.Wxpay=void 0,n("96cf");var r=t(n("1da1")),o=n("66eb"),s=function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(a){var n,t,r,s,i,c,d,u,g,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=a.orderId,t=a.openId,!t){e.next=14;break}return e.next=4,(0,o.ApiPostWxJsApiPay)({orderId:n,openId:t});case 4:if(r=e.sent,s=r.error,i=r.result,!s){e.next=10;break}return uni.$u.toast(s.message),e.abrupt("return",!1);case 10:c=i.dataInfo,WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:c.appId,timeStamp:c.timeStamp,nonceStr:c.nonceStr,package:c.packageValue,signType:c.signType,paySign:c.paySign},(function(e){"get_brand_wcpay_request:cancel"!==e.err_msg&&uni.navigateTo({url:"/payResult?orderId=".concat(n,"&payType=wxjsapi")})})),e.next=24;break;case 14:return e.next=16,(0,o.ApiPostWxH5Pay)({orderId:n});case 16:if(d=e.sent,u=d.error,g=d.result,!u){e.next=22;break}return uni.$u.toast(u.message),e.abrupt("return",!1);case 22:l=decodeURIComponent("https://you-app.mashibing.com/payResult?orderId=".concat(n,"&payType=wxh5")),window.location.href="".concat(g.dataInfo.payUrl,"&redirect_url=").concat(l);case 24:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}();a.Wxpay=s},a5e2:function(e,a,n){var t=n("4e55");"string"===typeof t&&(t=[[e.i,t,""]]),t.locals&&(e.exports=t.locals);var r=n("4f06").default;r("dcecdb5c",t,!0,{sourceMap:!1,shadowMode:!1})},a64b:function(e,a,n){"use strict";var t;n.d(a,"b",(function(){return r})),n.d(a,"c",(function(){return o})),n.d(a,"a",(function(){return t}));var r=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("App",{attrs:{keepAliveInclude:e.keepAliveInclude}})},o=[]},d071:function(e,a,n){"use strict";var t=n("4ea4");n("4de4"),n("caad"),n("d3b7"),n("2532"),n("38cf"),Object.defineProperty(a,"__esModule",{value:!0}),a.MsbRequestTk=a.MsbRequest=void 0;var r=t(n("5530")),o=t(n("fda4")),s=t(n("4308")),i="prod",c={test:"https://k8s-horse-gateway.mashibing.cn",dev:"",release:"",prod:"https://you-gateway.mashibing.com"},d=function(e,a){if(p(a),200===e.statusCode){var n=e.data;return"SUCCESS"===n.code?n.data:"TOKEN_FAIL"===n.code?(uni.navigateTo({url:"/login"}),s.default.commit("SET_TOKEN",""),n):Promise.reject(n)}return e},u=function(e,a){return p(a),{message:e.errMsg,code:e.statusCode}},g=[],l=function(e){var a={url:e.url,method:e.method,data:e.data};return g.includes(JSON.stringify(a))?Promise.reject({message:"请勿频繁操作"}):(g.push(JSON.stringify(a)),!1)},p=function(e){g=g.filter((function(a){return a!==JSON.stringify({url:e.url,method:e.method,data:e.data})}))},f=new o.default;a.MsbRequest=f,f.baseUrl=c[i],f.use("request",(function(e){if(e.header.repeat){var a=l(e);if(a)return a}return e})),f.use("success",d),f.use("error",u);var m=new o.default;a.MsbRequestTk=m,m.baseUrl=c[i],m.use("request",(function(e){var a=s.default.state.token;if(a){if(e.header=(0,r.default)((0,r.default)({},e.header),{},{Authorization:a}),e.header.repeat){var n=l(e);if(n)return n}return e}return uni.redirectTo({url:"/login"}),Promise.reject({message:"要先登录才能操作哦~"})})),m.use("success",d),m.use("error",u)},f147:function(e,a,n){"use strict";var t=n("4ea4");n("caad"),n("ac1f"),n("2532"),n("841c");var r=t(n("5530"));n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("3417"),n("1c31");var o=t(n("e143")),s=t(n("75f8")),i=n("3762"),c=t(n("06e9")),d=t(n("4308")),u=t(n("1a9b")),g=(t(n("161f")),n("5767")),l=n("66eb");d.default.state.token&&(0,g.MsbWebSktInit)().then((function(){g.MsbWebSkt.send({data:JSON.stringify({traceId:(0,g.createUUID)(),traceType:"1",content:{sysId:"1"}})}),setInterval((function(){g.MsbWebSkt.send({data:JSON.stringify({traceId:(0,g.createUUID)(),traceType:"0",content:{text:"ping"}})})}),5e3)}));var p=navigator?navigator.userAgent.toLowerCase():"";if(p.includes("micromessenger")&&!d.default.state.openId){var f=(0,g.toSearchJson)(window.location.search);f.code?(0,l.ApiGetOpenId)({code:f.code}).then((function(e){var a=e.error,n=e.result;if(a)return uni.$u.toast(a.message),!1;d.default.commit("SET_OPEN_ID",n.openId)})):(0,l.ApiGetAuthUrl)({redirectUrl:window.location.href,scope:"snsapi_base"}).then((function(e){var a=e.result,n=e.error;if(n)return uni.$u.toast(n.message),!1;window.location.href=a}))}o.default.use(i.router),o.default.use(c.default),o.default.use(u.default),o.default.prototype.$store=d.default,o.default.config.productionTip=!1,s.default.mpType="app";var m=new o.default((0,r.default)({},s.default));(0,i.RouterMount)(m,i.router,"#app")},fca3:function(e,a,n){"use strict";n.r(a);var t=n("9187"),r=n.n(t);for(var o in t)"default"!==o&&function(e){n.d(a,e,(function(){return t[e]}))}(o);a["default"]=r.a},fda4:function(e,a,n){"use strict";var t=n("4ea4");n("d3b7"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var r=t(n("5530")),o=t(n("d4ec")),s=t(n("bee2")),i=function(){function e(a){(0,o.default)(this,e),this.baseUrl="",this.header={repeat:!0},this.hook={request:null,success:null,error:null}}return(0,s.default)(e,[{key:"method",value:function(e){var a=this;if(e.header=(0,r.default)((0,r.default)({},this.header),e.header),e.url=this.baseUrl+e.url,this.hook.request&&(e=this.hook.request(e)),!e)throw new Error("没有请求配置,或是request拦截未做return");return e.constructor===Promise?e:new Promise((function(n,t){uni.request((0,r.default)((0,r.default)({},e),{},{success:function(r){var o=r||r[1];if(o.statusCode>=200&&o.statusCode<400){if(a.hook.success){var s=a.hook.success(o,e);s&&s.constructor===Promise?s.then((function(e){n(e)}),(function(e){t(e)})):n(s)}else n(o);return!1}t(a.hook.error?a.hook.error(o,e):o)},fail:function(n){t(a.hook.error?a.hook.error(n,e):n)}}))}))}},{key:"use",value:function(e,a){this.hook[e]=a}},{key:"get",value:function(e,a,n){return this.method({method:"GET",url:e,data:a,header:n})}},{key:"post",value:function(e,a,n){return this.method({method:"POST",url:e,data:a,header:n})}},{key:"put",value:function(e,a,n){return this.method({method:"PUT",url:e,data:a,header:n})}},{key:"delete",value:function(e,a,n){return this.method({method:"DELETE",url:e,data:a,header:n})}}]),e}(),c=i;a.default=c}}); \ No newline at end of file diff --git a/unpackage/dist/build/h5/static/js/pages-login.291cb106.js b/unpackage/dist/build/h5/static/js/pages-login.291cb106.js new file mode 100644 index 0000000..27c1e2d --- /dev/null +++ b/unpackage/dist/build/h5/static/js/pages-login.291cb106.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login"],{"186e":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-view[data-v-15701f34], uni-scroll-view[data-v-15701f34], uni-swiper-item[data-v-15701f34]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}',""]),e.exports=t},"1f9f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiGetCode=t.ApiGetLogout=t.ApiPostLogin=void 0;var r=n("5767"),i="/uc",a=function(e){return(0,r.ToAsyncAwait)(r.MsbRequest.post("".concat(i,"/user/login"),e))};t.ApiPostLogin=a;var o=function(){return(0,r.ToAsyncAwait)(r.MsbRequest.post("".concat(i,"/user/logout")))};t.ApiGetLogout=o;var u=function(e){return(0,r.ToAsyncAwait)(r.MsbRequest.get("".concat(i,"/user/login/verificationCode"),e))};t.ApiGetCode=u},2702:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{type:{type:String,default:"line"},size:{type:String,default:"normal"},disable:{type:Boolean,default:!1}},methods:{click:function(){!this.disable&&this.$emit("click")}}};t.default=r},"294e":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uvForm",{ref:"uForm",attrs:{model:e.model,rules:e.rules,errorType:e.errorType,borderBottom:e.borderBottom,labelPosition:e.labelPosition,labelWidth:e.labelWidth,labelAlign:e.labelAlign,labelStyle:e.labelStyle,customStyle:e.customStyle}},[e._t("default")],2)},a=[]},"359f":function(e,t,n){"use strict";n.r(t);var r=n("7f16"),i=n("a5d5");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("9f0b");var o,u=n("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,"4c357d64",null,!1,r["a"],o);t["default"]=s.exports},"3a6e":function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{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},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},required:{type:Boolean,default:uni.$u.props.formItem.required},leftIconStyle:{type:[String,Object],default:uni.$u.props.formItem.leftIconStyle}}};t.default=r},"3d30":function(e,t,n){var r=n("5158");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("729c7035",r,!0,{sourceMap:!1,shadowMode:!1})},"3d75":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"u-form"},[e._t("default")],2)},a=[]},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"46c3":function(e,t,n){"use strict";n.r(t);var r=n("3d75"),i=n("981d");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var o,u=n("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,"7ed5db6a",null,!1,r["a"],o);t["default"]=s.exports},5158:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-view[data-v-d50ea8ee], uni-scroll-view[data-v-d50ea8ee], uni-swiper-item[data-v-d50ea8ee]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-form-item[data-v-d50ea8ee]{display:flex;flex-direction:column;font-size:14px;color:#303133}.u-form-item__body[data-v-d50ea8ee]{display:flex;flex-direction:row;padding:10px 0}.u-form-item__body__left[data-v-d50ea8ee]{display:flex;flex-direction:row;align-items:center}.u-form-item__body__left__content[data-v-d50ea8ee]{position:relative;display:flex;flex-direction:row;align-items:center;padding-right:%?10?%;flex:1}.u-form-item__body__left__content__icon[data-v-d50ea8ee]{margin-right:%?8?%}.u-form-item__body__left__content__required[data-v-d50ea8ee]{position:absolute;left:-9px;color:#f56c6c;line-height:20px;font-size:20px;top:3px}.u-form-item__body__left__content__label[data-v-d50ea8ee]{display:flex;flex-direction:row;align-items:center;flex:1;color:#303133;font-size:15px}.u-form-item__body__right[data-v-d50ea8ee]{flex:1}.u-form-item__body__right__content[data-v-d50ea8ee]{display:flex;flex-direction:row;align-items:center;flex:1}.u-form-item__body__right__content__slot[data-v-d50ea8ee]{flex:1;display:flex;flex-direction:row;align-items:center}.u-form-item__body__right__content__icon[data-v-d50ea8ee]{margin-left:%?10?%;color:#c0c4cc;font-size:%?30?%}.u-form-item__body__right__message[data-v-d50ea8ee]{font-size:12px;line-height:12px;color:#f56c6c}',""]),e.exports=t},5875:function(e,t,n){"use strict";n.r(t);var r=n("d84e"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"59f6":function(e,t,n){"use strict";n.r(t);var r=n("cf3b"),i=n("5875");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("f19e");var o,u=n("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,"15701f34",null,!1,r["a"],o);t["default"]=s.exports},"5a44":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.ui-btn[data-v-4c357d64]{display:inline-block;padding:0 %?50?%;border-radius:%?50?%}.ui-btn[data-v-4c357d64]::after{display:none}.ui-btn__normal[data-v-4c357d64]{height:%?70?%;line-height:%?70?%;font-size:%?28?%}.ui-btn__min[data-v-4c357d64]{height:%?60?%;line-height:%?60?%;font-size:%?28?%}.ui-btn__small[data-v-4c357d64]{height:%?50?%;line-height:%?50?%;font-size:%?28?%}.ui-btn__max[data-v-4c357d64]{height:%?80?%;line-height:%?80?%;font-size:%?32?%}.ui-btn__gradual[data-v-4c357d64]{background:linear-gradient(270deg,#ff7f39,#ffa35b);color:#fff}.ui-btn__solid[data-v-4c357d64]{background:#ff875b;color:#fff}.ui-btn__line[data-v-4c357d64]{background:none;color:#333;border:1px solid #999}.ui-btn__primaryLine[data-v-4c357d64]{background:none;color:#ff875b;border:1px solid #ff875b}.ui-btn__disabed[data-v-4c357d64]{opacity:.5}',""]),e.exports=t},"5f8e":function(e,t,n){"use strict";n.r(t);var r=n("883d"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},6521:function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{model:{type:Object,default:uni.$u.props.form.model},rules:{type:[Object,Function,Array],default:uni.$u.props.form.rules},errorType:{type:String,default:uni.$u.props.form.errorType},borderBottom:{type:Boolean,default:uni.$u.props.form.borderBottom},labelPosition:{type:String,default:uni.$u.props.form.labelPosition},labelWidth:{type:[String,Number],default:uni.$u.props.form.labelWidth},labelAlign:{type:String,default:uni.$u.props.form.labelAlign},labelStyle:{type:Object,default:uni.$u.props.form.labelStyle}}};t.default=r},6853:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("46c3")),a=r(n("6521")),o={name:"u--form",mixins:[uni.$u.mpMixin,a.default,uni.$u.mixin],components:{uvForm:i.default},created:function(){this.children=[]},methods:{setRules:function(e){this.$refs.uForm.setRules(e)},validate:function(){return this.$refs.uForm.validate()},validateField:function(e,t){return this.$refs.uForm.validateField(e,t)},resetFields:function(){return this.$refs.uForm.resetFields()},clearValidate:function(e){return this.$refs.uForm.clearValidate(e)},setMpData:function(){this.$refs.uForm.children=this.children}}};t.default=o},7993:function(e,t,n){var r=n("186e");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("4d53ca70",r,!0,{sourceMap:!1,shadowMode:!1})},"7ccf":function(e,t,n){"use strict";var r=n("4ea4");n("caad"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("96cf");var i=r(n("1da1")),a=n("5767"),o=n("1f9f"),u=n("87c9"),s=r(n("359f")),l={components:{UiButton:s.default},data:function(){return{tips:"",sendStatus:!1,checked:!1,phone:"",code:"",loginStatus:!1}},mounted:function(){this.$store.state.token&&this.goBack()},methods:{codeChange:function(e){this.tips=e},getCode:function(){var e=this;return(0,i.default)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.$refs.uCode.canGetCode){t.next=2;break}return t.abrupt("return",!1);case 2:if((0,a.IsPhone)(e.phone)){t.next=5;break}return uni.$u.toast("请输入正确手机号"),t.abrupt("return",!1);case 5:return uni.showLoading({title:"正在获取验证码"}),t.next=8,(0,o.ApiGetCode)({phone:e.phone});case 8:if(n=t.sent,r=n.error,n.resutl,uni.hideLoading(),!r){t.next=15;break}return uni.$u.toast(r.message),t.abrupt("return",!1);case 15:uni.$u.toast("验证码已发送"),e.$refs.uCode.start();case 17:case"end":return t.stop()}}),t)})))()},login:function(){var e=this;return(0,i.default)(regeneratorRuntime.mark((function t(){var n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.loginStatus){t.next=2;break}return t.abrupt("return",!1);case 2:if((0,a.IsPhone)(e.phone)){t.next=5;break}return uni.$u.toast("请输入正确手机号"),t.abrupt("return",!1);case 5:if(e.code&&4===e.code.length){t.next=8;break}return uni.$u.toast("请输入正确的验证码"),t.abrupt("return",!1);case 8:if(e.checked){t.next=11;break}return uni.$u.toast("请勾选同意《用户协议》和《隐私协议》"),t.abrupt("return",!1);case 11:return e.loginStatus=!0,t.next=14,(0,o.ApiPostLogin)({phone:e.phone,verificationCode:e.code,clientId:1,systemId:1});case 14:if(n=t.sent,r=n.error,i=n.result,e.loginStatus=!1,!r){t.next=21;break}return uni.$u.toast(r.message),t.abrupt("return",!1);case 21:e.$store.commit("SET_TOKEN",i.token),e.$store.commit("SET_USER_INFO",i.user),store.state.openId&&(0,u.ApiPostThirdInfo)({appUserId:store.state.openId,platformType:1}),(0,a.MsbWebSktInit)().then((function(){a.MsbWebSkt.send({data:JSON.stringify({traceId:(0,a.createUUID)(),traceType:"1",content:{sysId:"1"}})}),setInterval((function(){a.MsbWebSkt.send({data:JSON.stringify({traceId:(0,a.createUUID)(),traceType:"0",content:{text:"ping"}})})}),5e3)})),e.goBack();case 26:case"end":return t.stop()}}),t)})))()},goBack:function(){var e=getCurrentPages(),t=e.length,n=e[t-2],r=["pages/index/index","pages/goods/category"];this.loginStatus=!1,t>1?r.includes(n.route)?this.$Router.replaceAll(n.__page__.path):this.$Router.back():this.$Router.replaceAll("/")}}};t.default=l},"7f16":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-button",{class:"ui-btn ui-btn__"+e.type+" ui-btn__"+e.size+" "+(e.disable?" x ui-btn__disabed":" xx"),on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.click.apply(void 0,arguments)}}},[e._t("default")],2)},a=[]},"7fd5":function(e,t,n){"use strict";n.r(t);var r=n("7ccf"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"869e":function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={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},keepRunning:{type:Boolean,default:uni.$u.props.code.keepRunning},uniqueKey:{type:String,default:uni.$u.props.code.uniqueKey}}};t.default=r},"87c9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiDeleteAddress=t.ApiPutAddress=t.ApiPostAddress=t.ApiGetAddress=void 0;var r=n("5767"),i="/mall/base",a=function(){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(i,"/receiveAddress")))};t.ApiGetAddress=a;var o=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.post("".concat(i,"/receiveAddress"),e))};t.ApiPostAddress=o;var u=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.put("".concat(i,"/receiveAddress"),e))};t.ApiPutAddress=u;var s=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.delete("".concat(i,"/receiveAddress?idList=").concat(e.idList)))};t.ApiDeleteAddress=s},"883d":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("3a6e")),a={name:"u-form-item",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{message:"",parentData:{labelPosition:"left",labelAlign:"left",labelStyle:{},labelWidth:45,errorType:"message"}}},computed:{propsLine:function(){return uni.$u.props.line}},mounted:function(){this.init()},methods:{init:function(){this.updateParentData(),this.parent||uni.$u.error("u-form-item需要结合u-form组件使用")},updateParentData:function(){this.getParentData("u-form")},clearValidate:function(){this.message=null},resetField:function(){var e=uni.$u.getProperty(this.parent.originalModel,this.prop);uni.$u.setProperty(this.parent.model,this.prop,e),this.message=null},clickHandler:function(){this.$emit("click")}}};t.default=a},"8c92":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={"u-Form":n("ab1b").default,uFormItem:n("d565").default,uCode:n("59f6").default},i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"container"},[r("v-uni-view",{staticClass:"header"},[r("v-uni-image",{staticClass:"arrow",attrs:{src:n("df5e")},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goBack.apply(void 0,arguments)}}})],1),r("v-uni-view",{staticClass:"logo"},[e._v("马士兵严选")]),r("u--form",{staticClass:"login"},[r("u-form-item",[r("v-uni-input",{staticClass:"login--input",attrs:{placeholder:"请输入手机号",type:"number",border:"bottom"},model:{value:e.phone,callback:function(t){e.phone=t},expression:"phone"}})],1),r("u-form-item",{staticClass:"login--code"},[r("v-uni-input",{staticClass:"login--input",attrs:{placeholder:"验证码",type:"number",maxlength:"4",border:"bottom"},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}}),r("u-code",{ref:"uCode",attrs:{changeText:"X秒后重新获取",seconds:"60"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.codeChange.apply(void 0,arguments)},start:function(t){arguments[0]=t=e.$handleEvent(t),e.sendStatus=!0},end:function(t){arguments[0]=t=e.$handleEvent(t),e.sendStatus=!1}}}),r("v-uni-text",{staticClass:"login--send-btn",class:e.sendStatus&&"login--send-btn__disabled",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getCode.apply(void 0,arguments)}}},[e._v(e._s(e.tips))])],1)],1),r("UiButton",{staticClass:"login--btn",attrs:{type:"gradual",size:"max"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.login.apply(void 0,arguments)}}},[e._v("登录")]),r("v-uni-label",{staticClass:"login--agreement",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.checked=!e.checked}}},[r("v-uni-radio",{staticClass:"radio",attrs:{checked:e.checked,color:"#FF875B"}}),e._v("同意"),r("v-uni-text",{staticClass:"link"},[e._v("《用户协议》")]),r("v-uni-text",{staticClass:"link"},[e._v("《隐私协议》")]),e._v("首次登录将自动注册")],1)],1)},a=[]},"92fd":function(e,t,n){var r=n("5a44");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("4898df4d",r,!0,{sourceMap:!1,shadowMode:!1})},"981d":function(e,t,n){"use strict";n.r(t);var r=n("b5cb"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"9e57":function(e,t,n){"use strict";(function(e){var r=n("4ea4");n("99af"),n("a623"),n("4160"),n("c975"),n("d81d"),n("fb6a"),n("a434"),n("a9e3"),n("b64b"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("466d"),n("5319"),n("159b"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("5530"));var a=/%[sdj%]/g,o=function(){};function u(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function s(){for(var e=arguments.length,t=new Array(e),n=0;n=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),s=t[r];r()\[\]\\.,;:\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},_={integer:function(e){return/^(-)?\d+$/.test(e)},float:function(e){return/^(-)?\d+(\.\d+)?$/.test(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof+e},object:function(e){return"object"===typeof e&&!_.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(b.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(b.url)},hex:function(e){return"string"===typeof e&&!!e.match(b.hex)}};function x(e,t,n,r,i){if(e.required&&void 0===t)g(e,t,n,r,i);else{var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;a.indexOf(o)>-1?_[o](t)||r.push(s(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(s(i.messages.types[o],e.fullField,e.type))}}function A(e,t,n,r,i){var a="number"===typeof e.len,o="number"===typeof e.min,u="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=t,c=null,d="number"===typeof t,p="string"===typeof t,h=Array.isArray(t);if(d?c="number":p?c="string":h&&(c="array"),!c)return!1;h&&(f=t.length),p&&(f=t.replace(l,"_").length),a?f!==e.len&&r.push(s(i.messages[c].len,e.fullField,e.len)):o&&!u&&fe.max?r.push(s(i.messages[c].max,e.fullField,e.max)):o&&u&&(fe.max)&&r.push(s(i.messages[c].range,e.fullField,e.min,e.max))}var w="enum";function $(e,t,n,r,i){e[w]=Array.isArray(e[w])?e[w]:[],-1===e[w].indexOf(t)&&r.push(s(i.messages[w],e.fullField,e[w].join(", ")))}function q(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(s(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var a=new RegExp(e.pattern);a.test(t)||r.push(s(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var k={required:g,whitespace:y,type:x,range:A,enum:$,pattern:q};function M(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t,"string")&&!e.required)return n();k.required(e,t,r,a,i,"string"),f(t,"string")||(k.type(e,t,r,a,i),k.range(e,t,r,a,i),k.pattern(e,t,r,a,i),!0===e.whitespace&&k.whitespace(e,t,r,a,i))}n(a)}function S(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();k.required(e,t,r,a,i),void 0!==t&&k.type(e,t,r,a,i)}n(a)}function P(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(""===t&&(t=void 0),f(t)&&!e.required)return n();k.required(e,t,r,a,i),void 0!==t&&(k.type(e,t,r,a,i),k.range(e,t,r,a,i))}n(a)}function T(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();k.required(e,t,r,a,i),void 0!==t&&k.type(e,t,r,a,i)}n(a)}function C(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();k.required(e,t,r,a,i),f(t)||k.type(e,t,r,a,i)}n(a)}function O(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();k.required(e,t,r,a,i),void 0!==t&&(k.type(e,t,r,a,i),k.range(e,t,r,a,i))}n(a)}function E(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();k.required(e,t,r,a,i),void 0!==t&&(k.type(e,t,r,a,i),k.range(e,t,r,a,i))}n(a)}function j(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t,"array")&&!e.required)return n();k.required(e,t,r,a,i,"array"),f(t,"array")||(k.type(e,t,r,a,i),k.range(e,t,r,a,i))}n(a)}function F(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();k.required(e,t,r,a,i),void 0!==t&&k.type(e,t,r,a,i)}n(a)}var z="enum";function D(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();k.required(e,t,r,a,i),void 0!==t&&k[z](e,t,r,a,i)}n(a)}function I(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t,"string")&&!e.required)return n();k.required(e,t,r,a,i),f(t,"string")||k.pattern(e,t,r,a,i)}n(a)}function R(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();var u;if(k.required(e,t,r,a,i),!f(t))u="number"===typeof t?new Date(t):t,k.type(e,u,r,a,i),u&&k.range(e,u.getTime(),r,a,i)}n(a)}function N(e,t,n,r,i){var a=[],o=Array.isArray(t)?"array":typeof t;k.required(e,t,r,a,i,o),n(a)}function B(e,t,n,r,i){var a=e.type,o=[],u=e.required||!e.required&&r.hasOwnProperty(e.field);if(u){if(f(t,a)&&!e.required)return n();k.required(e,t,r,o,i,a),f(t,a)||k.type(e,t,r,o,i)}n(o)}function U(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();k.required(e,t,r,a,i)}n(a)}var L={string:M,method:S,number:P,boolean:T,regexp:C,integer:O,float:E,array:j,object:F,enum:D,pattern:I,date:R,url:B,hex:B,email:B,required:N,any:U};function W(){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(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var G=W();function V(e){this.rules=null,this._messages=G,this.define(e)}V.prototype={messages:function(e){return e&&(this._messages=m(W(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=function(){});var a,o,l=e,f=t,c=n;if("function"===typeof f&&(c=f,f={}),!this.rules||0===Object.keys(this.rules).length)return c&&c(),Promise.resolve();function d(e){var t,n=[],r={};function i(e){var t;Array.isArray(e)?n=(t=n).concat.apply(t,e):n.push(e)}for(t=0;t1?arguments[1]:void 0)}})},ab1b:function(e,t,n){"use strict";n.r(t);var r=n("294e"),i=n("d97a");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var o,u=n("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],o);t["default"]=s.exports},abbd:function(e,t,n){"use strict";var r=n("f7e3"),i=n.n(r);i.a},b5cb:function(e,t,n){"use strict";var r=n("4ea4");n("99af"),n("caad"),n("d81d"),n("b64b"),n("d3b7"),n("ac1f"),n("2532"),n("1276"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("2909")),a=r(n("ade3"));n("96cf");var o=r(n("1da1")),u=r(n("6521")),s=r(n("9e57"));s.default.warning=function(){};var l={name:"u-form",mixins:[uni.$u.mpMixin,uni.$u.mixin,u.default],provide:function(){return{uForm:this}},data:function(){return{formRules:{},validator:{},originalModel:null}},watch:{rules:{immediate:!0,handler:function(e){this.setRules(e)}},propsChange:function(e){var t;(null===(t=this.children)||void 0===t?void 0:t.length)&&this.children.map((function(e){"function"==typeof e.updateParentData&&e.updateParentData()}))},model:{immediate:!0,handler:function(e){this.originalModel||(this.originalModel=uni.$u.deepClone(e))}}},computed:{propsChange:function(){return[this.errorType,this.borderBottom,this.labelPosition,this.labelWidth,this.labelAlign,this.labelStyle]}},created:function(){this.children=[]},methods:{setRules:function(e){0!==Object.keys(e).length&&(this.formRules=e,this.validator=new s.default(e))},resetFields:function(){this.resetModel()},resetModel:function(e){var t=this;this.children.map((function(e){var n=null===e||void 0===e?void 0:e.prop,r=uni.$u.getProperty(t.originalModel,n);uni.$u.setProperty(t.model,n,r)}))},clearValidate:function(e){e=[].concat(e),this.children.map((function(t){(void 0===e[0]||e.includes(t.prop))&&(t.message=null)}))},validateField:function(e,t){var n=arguments,r=this;return(0,o.default)(regeneratorRuntime.mark((function o(){var u;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:u=n.length>2&&void 0!==n[2]?n[2]:null,r.$nextTick((function(){var n=[];e=[].concat(e),r.children.map((function(t){var o=[];if(e.includes(t.prop)){var l=uni.$u.getProperty(r.model,t.prop),f=t.prop.split("."),c=f[f.length-1],d=r.formRules[t.prop];if(!d)return;for(var p=[].concat(d),h=0;ht?(this.secNum=e-t,uni.removeStorageSync(this.uniqueKey+"_$uCountDownTimestamp"),this.start()):this.changeEvent(this.startText)},start:function(){var e=this;this.timer&&(clearInterval(this.timer),this.timer=null),this.$emit("start"),this.canGetCode=!1,this.changeEvent(this.changeText.replace(/x|X/,this.secNum)),this.setTimeToStorage(),this.timer=setInterval((function(){--e.secNum?e.changeEvent(e.changeText.replace(/x|X/,e.secNum)):(clearInterval(e.timer),e.timer=null,e.changeEvent(e.endText),e.secNum=e.seconds,e.$emit("end"),e.canGetCode=!0)}),1e3)},reset:function(){this.canGetCode=!0,clearInterval(this.timer),this.secNum=this.seconds,this.changeEvent(this.endText)},changeEvent:function(e){this.$emit("change",e)},setTimeToStorage:function(){if(this.keepRunning&&this.timer&&this.secNum>0&&this.secNum<=this.seconds){var e=Math.floor(+new Date/1e3);uni.setStorage({key:this.uniqueKey+"_$uCountDownTimestamp",data:e+Number(this.secNum)})}}},beforeDestroy:function(){this.setTimeToStorage(),clearTimeout(this.timer),this.timer=null}};t.default=a},d8d2:function(e,t,n){"use strict";n.r(t);var r=n("8c92"),i=n("7fd5");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("abbd");var o,u=n("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,"fce50f04",null,!1,r["a"],o);t["default"]=s.exports},d97a:function(e,t,n){"use strict";n.r(t);var r=n("6853"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},df5e:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAA4CAMAAADZ7miGAAAAAXNSR0IArs4c6QAAADxQTFRFAAAAMDAwMDAwNTU1NDQ0MjIyMjIyMjIyNDQ0MzMzMzMzMzMzMzMzMzMzMjIyMzMzMzMzMzMzMzMzMzMzAGSrYgAAABN0Uk5TABAgMEBgcH+An6CvsL/Az9Dv8AptTWoAAADHSURBVDjLzdXRDoMgDIXhCtOhokDP+7/rLubAhLaJXph5+0fCh6ESic87YXVyohUAilxnAACi1KZvQxHaeDRw33z5xX5ZVxu6DQ2ptrF7castaAgAi4oAso5AHjpEbex1YN9MRGvTJUSobb+LcH+NeBkIijqCSEecYpFiXVa6Gm1Dqd/QibIJCy+1zkLNxvHRkI2DJ88WqH1sCTQ+AAr3QfBXuTaoXft0GbTfBznWx9sZFK2RWqxhzOIYX4wxfoBY+z0E5ujoAyE0JzXNCO3eAAAAAElFTkSuQmCC"},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,r="/"===o.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),o="/"===a(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&o&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),u=o,s=0;s=1;--a)if(t=e.charCodeAt(a),47===t){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var u=e.charCodeAt(o);if(47!==u)-1===r&&(i=!1,r=o+1),46===u?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},ebe6:function(e,t,n){"use strict";var r=n("3d30"),i=n.n(r);i.a},f19e:function(e,t,n){"use strict";var r=n("7993"),i=n.n(r);i.a},f314:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.header[data-v-fce50f04]{height:%?88?%;padding-left:%?40?%;display:flex;align-items:center}.header .arrow[data-v-fce50f04]{width:%?14?%;height:%?28?%}.logo[data-v-fce50f04]{font-size:%?46?%;text-align:center;margin:%?25?% 0 %?84?% 0;font-weight:700}.login[data-v-fce50f04]{width:%?650?%;margin:0 auto}.login--input[data-v-fce50f04]{border-bottom:%?2?% solid #eee;width:%?650?%;height:%?100?%;font-size:%?32?%}.login--code[data-v-fce50f04]{position:relative}.login--send-btn[data-v-fce50f04]{position:absolute;right:0;color:#ff875b}.login--send-btn__disabled[data-v-fce50f04]{opacity:.8}.login--btn[data-v-fce50f04]{width:%?650?%;font-size:%?32?%;margin:%?60?% %?50?% %?40?%}.login--agreement[data-v-fce50f04]{width:%?650?%;padding:0 %?50?%;text-align:center;color:#999;font-size:%?24?%;line-height:%?24?%;display:flex;align-items:center;justify-content:center}.login--agreement .link[data-v-fce50f04]{color:#333;font-size:%?24?%;line-height:%?24?%}[data-v-fce50f04] .input-placeholder{color:#ccc}[data-v-fce50f04] .uni-radio-input{width:%?28?%;height:%?28?%}',""]),e.exports=t},f7e3:function(e,t,n){var r=n("f314");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("4f1d69b4",r,!0,{sourceMap:!1,shadowMode:!1})}}]); \ No newline at end of file diff --git a/unpackage/dist/build/h5/static/js/pages-login.9c7517fa.js b/unpackage/dist/build/h5/static/js/pages-login.9c7517fa.js deleted file mode 100644 index 7979e5c..0000000 --- a/unpackage/dist/build/h5/static/js/pages-login.9c7517fa.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login"],{"186e":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-view[data-v-15701f34], uni-scroll-view[data-v-15701f34], uni-swiper-item[data-v-15701f34]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}',""]),e.exports=t},"1f9f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiGetCode=t.ApiGetLogout=t.ApiPostLogin=void 0;var r=n("5767"),i="/uc",a=function(e){return(0,r.ToAsyncAwait)(r.MsbRequest.post("".concat(i,"/user/login"),e))};t.ApiPostLogin=a;var o=function(){return(0,r.ToAsyncAwait)(r.MsbRequest.post("".concat(i,"/user/logout")))};t.ApiGetLogout=o;var u=function(e){return(0,r.ToAsyncAwait)(r.MsbRequest.get("".concat(i,"/user/login/verificationCode"),e))};t.ApiGetCode=u},"260e":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.header[data-v-b038c24c]{height:%?88?%;padding-left:%?40?%;display:flex;align-items:center}.header .arrow[data-v-b038c24c]{width:%?14?%;height:%?28?%}.logo[data-v-b038c24c]{font-size:%?46?%;text-align:center;margin:%?25?% 0 %?84?% 0;font-weight:700}.login[data-v-b038c24c]{width:%?650?%;margin:0 auto}.login--input[data-v-b038c24c]{border-bottom:%?2?% solid #eee;width:%?650?%;height:%?100?%;font-size:%?32?%}.login--code[data-v-b038c24c]{position:relative}.login--send-btn[data-v-b038c24c]{position:absolute;right:0;color:#ff875b}.login--send-btn__disabled[data-v-b038c24c]{opacity:.8}.login--btn[data-v-b038c24c]{width:%?650?%;font-size:%?32?%;margin:%?60?% %?50?% %?40?%}.login--agreement[data-v-b038c24c]{width:%?650?%;padding:0 %?50?%;text-align:center;color:#999;font-size:%?24?%;line-height:%?24?%;display:flex;align-items:center;justify-content:center}.login--agreement .link[data-v-b038c24c]{color:#333;font-size:%?24?%;line-height:%?24?%}[data-v-b038c24c] .input-placeholder{color:#ccc}[data-v-b038c24c] .uni-radio-input{width:%?28?%;height:%?28?%}',""]),e.exports=t},2702:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{type:{type:String,default:"line"},size:{type:String,default:"normal"},disable:{type:Boolean,default:!1}},methods:{click:function(){!this.disable&&this.$emit("click")}}};t.default=r},"294e":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uvForm",{ref:"uForm",attrs:{model:e.model,rules:e.rules,errorType:e.errorType,borderBottom:e.borderBottom,labelPosition:e.labelPosition,labelWidth:e.labelWidth,labelAlign:e.labelAlign,labelStyle:e.labelStyle,customStyle:e.customStyle}},[e._t("default")],2)},a=[]},"297e":function(e,t,n){"use strict";var r=n("a60b"),i=n.n(r);i.a},"359f":function(e,t,n){"use strict";n.r(t);var r=n("7f16"),i=n("a5d5");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("9f0b");var o,u=n("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,"4c357d64",null,!1,r["a"],o);t["default"]=s.exports},"3a6e":function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{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},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},required:{type:Boolean,default:uni.$u.props.formItem.required},leftIconStyle:{type:[String,Object],default:uni.$u.props.formItem.leftIconStyle}}};t.default=r},"3d30":function(e,t,n){var r=n("5158");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("729c7035",r,!0,{sourceMap:!1,shadowMode:!1})},"3d75":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"u-form"},[e._t("default")],2)},a=[]},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"46c3":function(e,t,n){"use strict";n.r(t);var r=n("3d75"),i=n("981d");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var o,u=n("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,"7ed5db6a",null,!1,r["a"],o);t["default"]=s.exports},5158:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-view[data-v-d50ea8ee], uni-scroll-view[data-v-d50ea8ee], uni-swiper-item[data-v-d50ea8ee]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-form-item[data-v-d50ea8ee]{display:flex;flex-direction:column;font-size:14px;color:#303133}.u-form-item__body[data-v-d50ea8ee]{display:flex;flex-direction:row;padding:10px 0}.u-form-item__body__left[data-v-d50ea8ee]{display:flex;flex-direction:row;align-items:center}.u-form-item__body__left__content[data-v-d50ea8ee]{position:relative;display:flex;flex-direction:row;align-items:center;padding-right:%?10?%;flex:1}.u-form-item__body__left__content__icon[data-v-d50ea8ee]{margin-right:%?8?%}.u-form-item__body__left__content__required[data-v-d50ea8ee]{position:absolute;left:-9px;color:#f56c6c;line-height:20px;font-size:20px;top:3px}.u-form-item__body__left__content__label[data-v-d50ea8ee]{display:flex;flex-direction:row;align-items:center;flex:1;color:#303133;font-size:15px}.u-form-item__body__right[data-v-d50ea8ee]{flex:1}.u-form-item__body__right__content[data-v-d50ea8ee]{display:flex;flex-direction:row;align-items:center;flex:1}.u-form-item__body__right__content__slot[data-v-d50ea8ee]{flex:1;display:flex;flex-direction:row;align-items:center}.u-form-item__body__right__content__icon[data-v-d50ea8ee]{margin-left:%?10?%;color:#c0c4cc;font-size:%?30?%}.u-form-item__body__right__message[data-v-d50ea8ee]{font-size:12px;line-height:12px;color:#f56c6c}',""]),e.exports=t},5875:function(e,t,n){"use strict";n.r(t);var r=n("d84e"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"59f6":function(e,t,n){"use strict";n.r(t);var r=n("cf3b"),i=n("5875");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("f19e");var o,u=n("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,"15701f34",null,!1,r["a"],o);t["default"]=s.exports},"5a44":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.ui-btn[data-v-4c357d64]{display:inline-block;padding:0 %?50?%;border-radius:%?50?%}.ui-btn[data-v-4c357d64]::after{display:none}.ui-btn__normal[data-v-4c357d64]{height:%?70?%;line-height:%?70?%;font-size:%?28?%}.ui-btn__min[data-v-4c357d64]{height:%?60?%;line-height:%?60?%;font-size:%?28?%}.ui-btn__small[data-v-4c357d64]{height:%?50?%;line-height:%?50?%;font-size:%?28?%}.ui-btn__max[data-v-4c357d64]{height:%?80?%;line-height:%?80?%;font-size:%?32?%}.ui-btn__gradual[data-v-4c357d64]{background:linear-gradient(270deg,#ff7f39,#ffa35b);color:#fff}.ui-btn__solid[data-v-4c357d64]{background:#ff875b;color:#fff}.ui-btn__line[data-v-4c357d64]{background:none;color:#333;border:1px solid #999}.ui-btn__primaryLine[data-v-4c357d64]{background:none;color:#ff875b;border:1px solid #ff875b}.ui-btn__disabed[data-v-4c357d64]{opacity:.5}',""]),e.exports=t},"5f8e":function(e,t,n){"use strict";n.r(t);var r=n("883d"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},6521:function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{model:{type:Object,default:uni.$u.props.form.model},rules:{type:[Object,Function,Array],default:uni.$u.props.form.rules},errorType:{type:String,default:uni.$u.props.form.errorType},borderBottom:{type:Boolean,default:uni.$u.props.form.borderBottom},labelPosition:{type:String,default:uni.$u.props.form.labelPosition},labelWidth:{type:[String,Number],default:uni.$u.props.form.labelWidth},labelAlign:{type:String,default:uni.$u.props.form.labelAlign},labelStyle:{type:Object,default:uni.$u.props.form.labelStyle}}};t.default=r},6853:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("46c3")),a=r(n("6521")),o={name:"u--form",mixins:[uni.$u.mpMixin,a.default,uni.$u.mixin],components:{uvForm:i.default},created:function(){this.children=[]},methods:{setRules:function(e){this.$refs.uForm.setRules(e)},validate:function(){return this.$refs.uForm.validate()},validateField:function(e,t){return this.$refs.uForm.validateField(e,t)},resetFields:function(){return this.$refs.uForm.resetFields()},clearValidate:function(e){return this.$refs.uForm.clearValidate(e)},setMpData:function(){this.$refs.uForm.children=this.children}}};t.default=o},7993:function(e,t,n){var r=n("186e");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("4d53ca70",r,!0,{sourceMap:!1,shadowMode:!1})},"7ccf":function(e,t,n){"use strict";var r=n("4ea4");n("caad"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("96cf");var i=r(n("1da1")),a=n("5767"),o=n("1f9f"),u=r(n("359f")),s={components:{UiButton:u.default},data:function(){return{tips:"",sendStatus:!1,checked:!1,phone:"",code:"",loginStatus:!1}},mounted:function(){this.$store.state.token&&this.goBack()},methods:{codeChange:function(e){this.tips=e},getCode:function(){var e=this;return(0,i.default)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.$refs.uCode.canGetCode){t.next=2;break}return t.abrupt("return",!1);case 2:if((0,a.IsPhone)(e.phone)){t.next=5;break}return uni.$u.toast("请输入正确手机号"),t.abrupt("return",!1);case 5:return uni.showLoading({title:"正在获取验证码"}),t.next=8,(0,o.ApiGetCode)({phone:e.phone});case 8:if(n=t.sent,r=n.error,n.resutl,uni.hideLoading(),!r){t.next=15;break}return uni.$u.toast(r.message),t.abrupt("return",!1);case 15:uni.$u.toast("验证码已发送"),e.$refs.uCode.start();case 17:case"end":return t.stop()}}),t)})))()},login:function(){var e=this;return(0,i.default)(regeneratorRuntime.mark((function t(){var n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.loginStatus){t.next=2;break}return t.abrupt("return",!1);case 2:if((0,a.IsPhone)(e.phone)){t.next=5;break}return uni.$u.toast("请输入正确手机号"),t.abrupt("return",!1);case 5:if(e.code&&4===e.code.length){t.next=8;break}return uni.$u.toast("请输入正确的验证码"),t.abrupt("return",!1);case 8:if(e.checked){t.next=11;break}return uni.$u.toast("请勾选同意《用户协议》和《隐私协议》"),t.abrupt("return",!1);case 11:return e.loginStatus=!0,t.next=14,(0,o.ApiPostLogin)({phone:e.phone,verificationCode:e.code,clientId:1,systemId:1});case 14:if(n=t.sent,r=n.error,i=n.result,e.loginStatus=!1,!r){t.next=21;break}return uni.$u.toast(r.message),t.abrupt("return",!1);case 21:e.$store.commit("SET_TOKEN",i.token),e.$store.commit("SET_USER_INFO",i.user),(0,a.MsbWebSktInit)().then((function(){a.MsbWebSkt.send({data:JSON.stringify({traceId:(0,a.createUUID)(),traceType:"1",content:{sysId:"1"}})}),setInterval((function(){a.MsbWebSkt.send({data:JSON.stringify({traceId:(0,a.createUUID)(),traceType:"0",content:{text:"ping"}})})}),5e3)})),e.goBack();case 25:case"end":return t.stop()}}),t)})))()},goBack:function(){var e=getCurrentPages(),t=e.length,n=e[t-2],r=["pages/index/index","pages/goods/category"];this.loginStatus=!1,t>1?r.includes(n.route)?this.$Router.replaceAll(n.__page__.path):this.$Router.back():this.$Router.replaceAll("/")}}};t.default=s},"7f16":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-button",{class:"ui-btn ui-btn__"+e.type+" ui-btn__"+e.size+" "+(e.disable?" x ui-btn__disabed":" xx"),on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.click.apply(void 0,arguments)}}},[e._t("default")],2)},a=[]},"7fd5":function(e,t,n){"use strict";n.r(t);var r=n("7ccf"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"869e":function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={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},keepRunning:{type:Boolean,default:uni.$u.props.code.keepRunning},uniqueKey:{type:String,default:uni.$u.props.code.uniqueKey}}};t.default=r},"883d":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("3a6e")),a={name:"u-form-item",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{message:"",parentData:{labelPosition:"left",labelAlign:"left",labelStyle:{},labelWidth:45,errorType:"message"}}},computed:{propsLine:function(){return uni.$u.props.line}},mounted:function(){this.init()},methods:{init:function(){this.updateParentData(),this.parent||uni.$u.error("u-form-item需要结合u-form组件使用")},updateParentData:function(){this.getParentData("u-form")},clearValidate:function(){this.message=null},resetField:function(){var e=uni.$u.getProperty(this.parent.originalModel,this.prop);uni.$u.setProperty(this.parent.model,this.prop,e),this.message=null},clickHandler:function(){this.$emit("click")}}};t.default=a},"92fd":function(e,t,n){var r=n("5a44");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("4898df4d",r,!0,{sourceMap:!1,shadowMode:!1})},"981d":function(e,t,n){"use strict";n.r(t);var r=n("b5cb"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"9e57":function(e,t,n){"use strict";(function(e){var r=n("4ea4");n("99af"),n("a623"),n("4160"),n("c975"),n("d81d"),n("fb6a"),n("a434"),n("a9e3"),n("b64b"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("466d"),n("5319"),n("159b"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("5530"));var a=/%[sdj%]/g,o=function(){};function u(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function s(){for(var e=arguments.length,t=new Array(e),n=0;n=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),s=t[r];r()\[\]\\.,;:\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},_={integer:function(e){return/^(-)?\d+$/.test(e)},float:function(e){return/^(-)?\d+(\.\d+)?$/.test(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof+e},object:function(e){return"object"===typeof e&&!_.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(y.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(y.url)},hex:function(e){return"string"===typeof e&&!!e.match(y.hex)}};function x(e,t,n,r,i){if(e.required&&void 0===t)g(e,t,n,r,i);else{var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;a.indexOf(o)>-1?_[o](t)||r.push(s(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(s(i.messages.types[o],e.fullField,e.type))}}function w(e,t,n,r,i){var a="number"===typeof e.len,o="number"===typeof e.min,u="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,f=null,d="number"===typeof t,p="string"===typeof t,h=Array.isArray(t);if(d?f="number":p?f="string":h&&(f="array"),!f)return!1;h&&(c=t.length),p&&(c=t.replace(l,"_").length),a?c!==e.len&&r.push(s(i.messages[f].len,e.fullField,e.len)):o&&!u&&ce.max?r.push(s(i.messages[f].max,e.fullField,e.max)):o&&u&&(ce.max)&&r.push(s(i.messages[f].range,e.fullField,e.min,e.max))}var A="enum";function $(e,t,n,r,i){e[A]=Array.isArray(e[A])?e[A]:[],-1===e[A].indexOf(t)&&r.push(s(i.messages[A],e.fullField,e[A].join(", ")))}function q(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(s(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var a=new RegExp(e.pattern);a.test(t)||r.push(s(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var k={required:g,whitespace:b,type:x,range:w,enum:$,pattern:q};function S(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t,"string")&&!e.required)return n();k.required(e,t,r,a,i,"string"),c(t,"string")||(k.type(e,t,r,a,i),k.range(e,t,r,a,i),k.pattern(e,t,r,a,i),!0===e.whitespace&&k.whitespace(e,t,r,a,i))}n(a)}function C(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();k.required(e,t,r,a,i),void 0!==t&&k.type(e,t,r,a,i)}n(a)}function M(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(""===t&&(t=void 0),c(t)&&!e.required)return n();k.required(e,t,r,a,i),void 0!==t&&(k.type(e,t,r,a,i),k.range(e,t,r,a,i))}n(a)}function P(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();k.required(e,t,r,a,i),void 0!==t&&k.type(e,t,r,a,i)}n(a)}function O(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();k.required(e,t,r,a,i),c(t)||k.type(e,t,r,a,i)}n(a)}function T(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();k.required(e,t,r,a,i),void 0!==t&&(k.type(e,t,r,a,i),k.range(e,t,r,a,i))}n(a)}function E(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();k.required(e,t,r,a,i),void 0!==t&&(k.type(e,t,r,a,i),k.range(e,t,r,a,i))}n(a)}function F(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t,"array")&&!e.required)return n();k.required(e,t,r,a,i,"array"),c(t,"array")||(k.type(e,t,r,a,i),k.range(e,t,r,a,i))}n(a)}function j(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();k.required(e,t,r,a,i),void 0!==t&&k.type(e,t,r,a,i)}n(a)}var z="enum";function D(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();k.required(e,t,r,a,i),void 0!==t&&k[z](e,t,r,a,i)}n(a)}function I(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t,"string")&&!e.required)return n();k.required(e,t,r,a,i),c(t,"string")||k.pattern(e,t,r,a,i)}n(a)}function R(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();var u;if(k.required(e,t,r,a,i),!c(t))u="number"===typeof t?new Date(t):t,k.type(e,u,r,a,i),u&&k.range(e,u.getTime(),r,a,i)}n(a)}function N(e,t,n,r,i){var a=[],o=Array.isArray(t)?"array":typeof t;k.required(e,t,r,a,i,o),n(a)}function B(e,t,n,r,i){var a=e.type,o=[],u=e.required||!e.required&&r.hasOwnProperty(e.field);if(u){if(c(t,a)&&!e.required)return n();k.required(e,t,r,o,i,a),c(t,a)||k.type(e,t,r,o,i)}n(o)}function U(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();k.required(e,t,r,a,i)}n(a)}var L={string:S,method:C,number:M,boolean:P,regexp:O,integer:T,float:E,array:F,object:j,enum:D,pattern:I,date:R,url:B,hex:B,email:B,required:N,any:U};function W(){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(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var V=W();function G(e){this.rules=null,this._messages=V,this.define(e)}G.prototype={messages:function(e){return e&&(this._messages=v(W(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=function(){});var a,o,l=e,c=t,f=n;if("function"===typeof c&&(f=c,c={}),!this.rules||0===Object.keys(this.rules).length)return f&&f(),Promise.resolve();function d(e){var t,n=[],r={};function i(e){var t;Array.isArray(e)?n=(t=n).concat.apply(t,e):n.push(e)}for(t=0;t1?arguments[1]:void 0)}})},ab1b:function(e,t,n){"use strict";n.r(t);var r=n("294e"),i=n("d97a");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var o,u=n("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],o);t["default"]=s.exports},b5cb:function(e,t,n){"use strict";var r=n("4ea4");n("99af"),n("caad"),n("d81d"),n("b64b"),n("d3b7"),n("ac1f"),n("2532"),n("1276"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("2909")),a=r(n("ade3"));n("96cf");var o=r(n("1da1")),u=r(n("6521")),s=r(n("9e57"));s.default.warning=function(){};var l={name:"u-form",mixins:[uni.$u.mpMixin,uni.$u.mixin,u.default],provide:function(){return{uForm:this}},data:function(){return{formRules:{},validator:{},originalModel:null}},watch:{rules:{immediate:!0,handler:function(e){this.setRules(e)}},propsChange:function(e){var t;(null===(t=this.children)||void 0===t?void 0:t.length)&&this.children.map((function(e){"function"==typeof e.updateParentData&&e.updateParentData()}))},model:{immediate:!0,handler:function(e){this.originalModel||(this.originalModel=uni.$u.deepClone(e))}}},computed:{propsChange:function(){return[this.errorType,this.borderBottom,this.labelPosition,this.labelWidth,this.labelAlign,this.labelStyle]}},created:function(){this.children=[]},methods:{setRules:function(e){0!==Object.keys(e).length&&(this.formRules=e,this.validator=new s.default(e))},resetFields:function(){this.resetModel()},resetModel:function(e){var t=this;this.children.map((function(e){var n=null===e||void 0===e?void 0:e.prop,r=uni.$u.getProperty(t.originalModel,n);uni.$u.setProperty(t.model,n,r)}))},clearValidate:function(e){e=[].concat(e),this.children.map((function(t){(void 0===e[0]||e.includes(t.prop))&&(t.message=null)}))},validateField:function(e,t){var n=arguments,r=this;return(0,o.default)(regeneratorRuntime.mark((function o(){var u;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:u=n.length>2&&void 0!==n[2]?n[2]:null,r.$nextTick((function(){var n=[];e=[].concat(e),r.children.map((function(t){var o=[];if(e.includes(t.prop)){var l=uni.$u.getProperty(r.model,t.prop),c=t.prop.split("."),f=c[c.length-1],d=r.formRules[t.prop];if(!d)return;for(var p=[].concat(d),h=0;ht?(this.secNum=e-t,uni.removeStorageSync(this.uniqueKey+"_$uCountDownTimestamp"),this.start()):this.changeEvent(this.startText)},start:function(){var e=this;this.timer&&(clearInterval(this.timer),this.timer=null),this.$emit("start"),this.canGetCode=!1,this.changeEvent(this.changeText.replace(/x|X/,this.secNum)),this.setTimeToStorage(),this.timer=setInterval((function(){--e.secNum?e.changeEvent(e.changeText.replace(/x|X/,e.secNum)):(clearInterval(e.timer),e.timer=null,e.changeEvent(e.endText),e.secNum=e.seconds,e.$emit("end"),e.canGetCode=!0)}),1e3)},reset:function(){this.canGetCode=!0,clearInterval(this.timer),this.secNum=this.seconds,this.changeEvent(this.endText)},changeEvent:function(e){this.$emit("change",e)},setTimeToStorage:function(){if(this.keepRunning&&this.timer&&this.secNum>0&&this.secNum<=this.seconds){var e=Math.floor(+new Date/1e3);uni.setStorage({key:this.uniqueKey+"_$uCountDownTimestamp",data:e+Number(this.secNum)})}}},beforeDestroy:function(){this.setTimeToStorage(),clearTimeout(this.timer),this.timer=null}};t.default=a},d8d2:function(e,t,n){"use strict";n.r(t);var r=n("d225"),i=n("7fd5");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("297e");var o,u=n("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,"b038c24c",null,!1,r["a"],o);t["default"]=s.exports},d97a:function(e,t,n){"use strict";n.r(t);var r=n("6853"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},df5e:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAA4CAMAAADZ7miGAAAAAXNSR0IArs4c6QAAADxQTFRFAAAAMDAwMDAwNTU1NDQ0MjIyMjIyMjIyNDQ0MzMzMzMzMzMzMzMzMzMzMjIyMzMzMzMzMzMzMzMzMzMzAGSrYgAAABN0Uk5TABAgMEBgcH+An6CvsL/Az9Dv8AptTWoAAADHSURBVDjLzdXRDoMgDIXhCtOhokDP+7/rLubAhLaJXph5+0fCh6ESic87YXVyohUAilxnAACi1KZvQxHaeDRw33z5xX5ZVxu6DQ2ptrF7castaAgAi4oAso5AHjpEbex1YN9MRGvTJUSobb+LcH+NeBkIijqCSEecYpFiXVa6Gm1Dqd/QibIJCy+1zkLNxvHRkI2DJ88WqH1sCTQ+AAr3QfBXuTaoXft0GbTfBznWx9sZFK2RWqxhzOIYX4wxfoBY+z0E5ujoAyE0JzXNCO3eAAAAAElFTkSuQmCC"},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,r="/"===o.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),o="/"===a(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&o&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),u=o,s=0;s=1;--a)if(t=e.charCodeAt(a),47===t){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var u=e.charCodeAt(o);if(47!==u)-1===r&&(i=!1,r=o+1),46===u?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},ebe6:function(e,t,n){"use strict";var r=n("3d30"),i=n.n(r);i.a},f19e:function(e,t,n){"use strict";var r=n("7993"),i=n.n(r);i.a}}]); \ No newline at end of file