From 764c2eab8f34bd1dca16e65d6dad119d589472cf Mon Sep 17 00:00:00 2001 From: ch Date: Thu, 5 May 2022 20:06:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E5=A4=B1=E8=B4=A5=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/payResult.vue | 6 +++--- unpackage/dist/build/h5/index.html | 2 +- .../h5/static/js/{index.d753a032.js => index.608c63dc.js} | 2 +- .../build/h5/static/js/pages-order-payResult.117e1af4.js | 1 + .../build/h5/static/js/pages-order-payResult.fb3f1b81.js | 1 - 5 files changed, 6 insertions(+), 6 deletions(-) rename unpackage/dist/build/h5/static/js/{index.d753a032.js => index.608c63dc.js} (99%) create mode 100644 unpackage/dist/build/h5/static/js/pages-order-payResult.117e1af4.js delete mode 100644 unpackage/dist/build/h5/static/js/pages-order-payResult.fb3f1b81.js diff --git a/pages/order/payResult.vue b/pages/order/payResult.vue index 1d2b73e..d76fc27 100644 --- a/pages/order/payResult.vue +++ b/pages/order/payResult.vue @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-04-28 15:01:41 * @LastEditors: ch - * @LastEditTime: 2022-05-05 19:18:30 + * @LastEditTime: 2022-05-05 20:05:00 * @Description: file content --> @@ -58,7 +58,7 @@ export default { uin.$u.toast(error.message); return false } - if(!result.isSuccess && this.reuqestNum < 10){ + if(!result.isSuccess && this.reuqestNum < 5){ setTimeout(()=>{ this.getOrderInfo(); }, 1000) @@ -69,7 +69,7 @@ export default { }, back(){ const payType = this.$Route.query.payType; - if(payType === 'wxh5'){ + if(payType !== 'wxjsapi'){ this.$Router.back(2); }else{ this.$Router.back(); diff --git a/unpackage/dist/build/h5/index.html b/unpackage/dist/build/h5/index.html index 814b421..928f299 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.d753a032.js b/unpackage/dist/build/h5/static/js/index.608c63dc.js similarity index 99% rename from unpackage/dist/build/h5/static/js/index.d753a032.js rename to unpackage/dist/build/h5/static/js/index.608c63dc.js index 08019c2..8bd7db8 100644 --- a/unpackage/dist/build/h5/static/js/index.d753a032.js +++ b/unpackage/dist/build/h5/static/js/index.608c63dc.js @@ -1 +1 @@ -(function(e){function a(a){for(var n,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=n;var r=function(e,a){var t;return function(){var n=this,r=arguments;t&&clearTimeout(t),t=setTimeout((function(){e.apply(n,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 t=e.split("/");if(t.length>3){var n=" ".concat(t[3],":").concat(t[4],":").concat(t[5]);t.length=3,e=t.join("/")+n}}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 t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[],r=0;if(a=a||t.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,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n={onLaunch:function(){},onShow:function(){console.log("App Show")},onHide:function(){}};a.default=n},"4e55":function(e,a,t){var n=t("24fb");a=n(!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,t){"use strict";var n=t("dbce"),r=t("4ea4");Object.defineProperty(a,"__esModule",{value:!0});var o={};a.default=void 0;var s=r(t("5530")),i=n(t("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=n(t("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=n(t("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=t("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,t){"use strict";t.r(a);var n=t("44b1"),r=t.n(n);for(var o in n)"default"!==o&&function(e){t.d(a,e,(function(){return n[e]}))}(o);a["default"]=r.a},"66eb":function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ApiPostWxJsApiPay=a.ApiPostWxH5Pay=a.ApiGetOpenId=a.ApiGetAuthUrl=void 0;var n=t("5767"),r="/mall/trade",o="wxd2015f0c56defa02",s=function(e){return(0,n.ToAsyncAwait)(n.MsbRequest.get("".concat(r,"/wx/mp/getAuthorizationUrl/").concat(o),e))};a.ApiGetAuthUrl=s;var i=function(e){var a=e.code;return(0,n.ToAsyncAwait)(n.MsbRequest.get("".concat(r,"/wx/mp/getOpenId/").concat(o),{code:a}))};a.ApiGetOpenId=i;var c=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.post("".concat(r,"/pay/wxPay/h5"),e))};a.ApiPostWxH5Pay=c;var d=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.post("".concat(r,"/pay/wxPay/jsapi"),e))};a.ApiPostWxJsApiPay=d},"6a50":function(e,a,t){"use strict";var n=t("4ea4");t("99af"),t("c740"),t("4160"),t("26e9"),t("d3b7"),t("159b"),Object.defineProperty(a,"__esModule",{value:!0}),a.MsbWebSktInit=a.MsbWebSkt=void 0;var r=n(t("2909")),o=n(t("4308")),s=t("5767"),i=!1,c=function(e){i=!0,e.sessionVOS.forEach((function(e){e.lastMessage.createTimeStamp=(0,s.formatDate)(e.lastMessage.createTimeStamp,"mm-dd hh:ii"),e.lastMessage.payload=JSON.parse(e.lastMessage.payload||{});var a=o.default.state.sessionData,t=a.findIndex((function(a){return a.id===e.id}));t>=0?(a[t].lastMessage=e.lastMessage,a[t].unreadCount++,o.default.commit("SET_SESSION_DATA",a)):(e.messageList=[],o.default.commit("SET_SESSION_DATA",[].concat((0,r.default)(a),[e])))})),o.default.commit("SET_SESSION_MSG_COUNT",e.totalUnreadCount)},d=function(e){if(!e.length)return!1;e.reverse();var a=o.default.state.sessionData,t=a.findIndex((function(a){return a.id===e[0].sessionId}));e.forEach((function(e){e.createTimeStamp=(0,s.formatDate)(e.createTimeStamp,"mm-dd hh:ii"),e.payload=JSON.parse(e.payload)})),a[t].messageList=e.concat(a[t].messageList),o.default.commit("SET_SESSION_DATA",a)},u=function(e){if(i){e.payload=JSON.parse(e.payload||{}),e.createTimeStamp=(0,s.formatDate)(e.createTimeStamp,"mm-dd hh:ii");var a=o.default.state.sessionData,t=a.findIndex((function(a){return a.id===e.sessionId}));if(e.sessionId!==o.default.state.sessionMsgId&&o.default.commit("SET_SESSION_MSG_COUNT",o.default.state.sessionMsgCount+1),t>=0){var n=a[t];n.messageList=[e].concat((0,r.default)(n.messageList||[])),e.sessionId!==o.default.state.sessionMsgId&&n.unreadCount++,o.default.commit("SET_SESSION_DATA",a)}else o.default.commit("SET_SESSION_DATA",[].concat((0,r.default)(a),[{fromAvatar:e.fromAvatar,fromId:e.fromId,fromNickname:e.fromNickname,id:e.id,lastMessage:e,messageList:[e],unreadCount:1}]))}},g=null;a.MsbWebSkt=g;var l=function(){return new Promise((function(e,t){a.MsbWebSkt=g=uni.connectSocket({url:"wss://you-gateway.mashibing.com/ws?client=".concat(o.default.state.token),fail:function(e){t(e)}}),g.onOpen((function(){g.onMessage((function(e){var a=JSON.parse(e.data||{});if(200===a.code){var t=a.content;switch(a.traceType){case 1:c(t);break;case 2:d(t);break;case 7:u(t);break;default:break}}})),setInterval((function(){g.send({data:JSON.stringify({traceId:(0,s.createUUID)(),traceType:"0",content:{text:"ping"}})})}),5e3),e()}))}))};a.MsbWebSktInit=l},"75f8":function(e,a,t){"use strict";t.r(a);var n=t("a64b"),r=t("57b9");for(var o in r)"default"!==o&&function(e){t.d(a,e,(function(){return r[e]}))}(o);t("04c0");var s,i=t("f0c5"),c=Object(i["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],s);a["default"]=c.exports},9187:function(e,a,t){"use strict";var n=t("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,t("96cf");var r=n(t("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,t){"use strict";t.r(a);var n=t("180f"),r=t("fca3");for(var o in r)"default"!==o&&function(e){t.d(a,e,(function(){return r[e]}))}(o);var s,i=t("f0c5"),c=Object(i["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],s);a["default"]=c.exports},"9be5":function(e,a,t){"use strict";var n=t("4ea4");t("99af"),Object.defineProperty(a,"__esModule",{value:!0}),a.Wxpay=void 0,t("96cf");var r=n(t("1da1")),o=t("66eb"),s=function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(a){var t,n,r,s,i,c,d,u,g,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=a.orderId,n=a.openId,!n){e.next=14;break}return e.next=4,(0,o.ApiPostWxJsApiPay)({orderId:t,openId:n});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(t,"&payType=wxjsapi")})})),e.next=24;break;case 14:return e.next=16,(0,o.ApiPostWxH5Pay)({orderId:t});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(t,"&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,t){var n=t("4e55");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=t("4f06").default;r("dcecdb5c",n,!0,{sourceMap:!1,shadowMode:!1})},a64b:function(e,a,t){"use strict";var n;t.d(a,"b",(function(){return r})),t.d(a,"c",(function(){return o})),t.d(a,"a",(function(){return n}));var r=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("App",{attrs:{keepAliveInclude:e.keepAliveInclude}})},o=[]},d071:function(e,a,t){"use strict";var n=t("4ea4");t("4de4"),t("caad"),t("d3b7"),t("2532"),t("38cf"),Object.defineProperty(a,"__esModule",{value:!0}),a.MsbRequestTk=a.MsbRequest=void 0;var r=n(t("5530")),o=n(t("fda4")),s=n(t("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 t=e.data;return"SUCCESS"===t.code?t.data:"TOKEN_FAIL"===t.code?(uni.navigateTo({url:"/login"}),s.default.commit("SET_TOKEN",""),t):Promise.reject(t)}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 t=l(e);if(t)return t}return e}return uni.redirectTo({url:"/login"}),Promise.reject({message:"要先登录才能操作哦~"})})),m.use("success",d),m.use("error",u)},f147:function(e,a,t){"use strict";var n=t("4ea4");t("caad"),t("ac1f"),t("2532"),t("841c");var r=n(t("5530"));t("e260"),t("e6cf"),t("cca6"),t("a79d"),t("3417"),t("1c31");var o=n(t("e143")),s=n(t("75f8")),i=t("3762"),c=n(t("06e9")),d=n(t("4308")),u=n(t("1a9b")),g=(n(t("161f")),t("5767")),l=t("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"}})})}));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,t=e.result;if(a)return uni.$u.toast(a.message),!1;d.default.commit("SET_OPEN_ID",t.openId)})):(0,l.ApiGetAuthUrl)({redirectUrl:window.location.href,scope:"snsapi_base"}).then((function(e){var a=e.result,t=e.error;if(t)return uni.$u.toast(t.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,t){"use strict";t.r(a);var n=t("9187"),r=t.n(n);for(var o in n)"default"!==o&&function(e){t.d(a,e,(function(){return n[e]}))}(o);a["default"]=r.a},fda4:function(e,a,t){"use strict";var n=t("4ea4");t("d3b7"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var r=n(t("5530")),o=n(t("d4ec")),s=n(t("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(t,n){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){t(e)}),(function(e){n(e)})):t(s)}else t(o);return!1}n(a.hook.error?a.hook.error(o,e):o)},fail:function(t){n(a.hook.error?a.hook.error(t,e):t)}}))}))}},{key:"use",value:function(e,a){this.hook[e]=a}},{key:"get",value:function(e,a,t){return this.method({method:"GET",url:e,data:a,header:t})}},{key:"post",value:function(e,a,t){return this.method({method:"POST",url:e,data:a,header:t})}},{key:"put",value:function(e,a,t){return this.method({method:"PUT",url:e,data:a,header:t})}},{key:"delete",value:function(e,a,t){return this.method({method:"DELETE",url:e,data:a,header:t})}}]),e}(),c=i;a.default=c}}); \ No newline at end of file +(function(e){function a(a){for(var n,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=n;var r=function(e,a){var t;return function(){var n=this,r=arguments;t&&clearTimeout(t),t=setTimeout((function(){e.apply(n,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 t=e.split("/");if(t.length>3){var n=" ".concat(t[3],":").concat(t[4],":").concat(t[5]);t.length=3,e=t.join("/")+n}}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 t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[],r=0;if(a=a||t.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,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n={onLaunch:function(){},onShow:function(){console.log("App Show")},onHide:function(){}};a.default=n},"4e55":function(e,a,t){var n=t("24fb");a=n(!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,t){"use strict";var n=t("dbce"),r=t("4ea4");Object.defineProperty(a,"__esModule",{value:!0});var o={};a.default=void 0;var s=r(t("5530")),i=n(t("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=n(t("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=n(t("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=t("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,t){"use strict";t.r(a);var n=t("44b1"),r=t.n(n);for(var o in n)"default"!==o&&function(e){t.d(a,e,(function(){return n[e]}))}(o);a["default"]=r.a},"66eb":function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ApiPostWxJsApiPay=a.ApiPostWxH5Pay=a.ApiGetOpenId=a.ApiGetAuthUrl=void 0;var n=t("5767"),r="/mall/trade",o="wxd2015f0c56defa02",s=function(e){return(0,n.ToAsyncAwait)(n.MsbRequest.get("".concat(r,"/wx/mp/getAuthorizationUrl/").concat(o),e))};a.ApiGetAuthUrl=s;var i=function(e){var a=e.code;return(0,n.ToAsyncAwait)(n.MsbRequest.get("".concat(r,"/wx/mp/getOpenId/").concat(o),{code:a}))};a.ApiGetOpenId=i;var c=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.post("".concat(r,"/pay/wxPay/h5"),e))};a.ApiPostWxH5Pay=c;var d=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.post("".concat(r,"/pay/wxPay/jsapi"),e))};a.ApiPostWxJsApiPay=d},"6a50":function(e,a,t){"use strict";var n=t("4ea4");t("99af"),t("c740"),t("4160"),t("26e9"),t("d3b7"),t("159b"),Object.defineProperty(a,"__esModule",{value:!0}),a.MsbWebSktInit=a.MsbWebSkt=void 0;var r=n(t("2909")),o=n(t("4308")),s=t("5767"),i=!1,c=function(e){i=!0,e.sessionVOS.forEach((function(e){e.lastMessage.createTimeStamp=(0,s.formatDate)(e.lastMessage.createTimeStamp,"mm-dd hh:ii"),e.lastMessage.payload=JSON.parse(e.lastMessage.payload||{});var a=o.default.state.sessionData,t=a.findIndex((function(a){return a.id===e.id}));t>=0?(a[t].lastMessage=e.lastMessage,a[t].unreadCount++,o.default.commit("SET_SESSION_DATA",a)):(e.messageList=[],o.default.commit("SET_SESSION_DATA",[].concat((0,r.default)(a),[e])))})),o.default.commit("SET_SESSION_MSG_COUNT",e.totalUnreadCount)},d=function(e){if(!e.length)return!1;e.reverse();var a=o.default.state.sessionData,t=a.findIndex((function(a){return a.id===e[0].sessionId}));e.forEach((function(e){e.createTimeStamp=(0,s.formatDate)(e.createTimeStamp,"mm-dd hh:ii"),e.payload=JSON.parse(e.payload)})),a[t].messageList=e.concat(a[t].messageList),o.default.commit("SET_SESSION_DATA",a)},u=function(e){if(i){e.payload=JSON.parse(e.payload||{}),e.createTimeStamp=(0,s.formatDate)(e.createTimeStamp,"mm-dd hh:ii");var a=o.default.state.sessionData,t=a.findIndex((function(a){return a.id===e.sessionId}));if(e.sessionId!==o.default.state.sessionMsgId&&o.default.commit("SET_SESSION_MSG_COUNT",o.default.state.sessionMsgCount+1),t>=0){var n=a[t];n.messageList=[e].concat((0,r.default)(n.messageList||[])),e.sessionId!==o.default.state.sessionMsgId&&n.unreadCount++,o.default.commit("SET_SESSION_DATA",a)}else o.default.commit("SET_SESSION_DATA",[].concat((0,r.default)(a),[{fromAvatar:e.fromAvatar,fromId:e.fromId,fromNickname:e.fromNickname,id:e.id,lastMessage:e,messageList:[e],unreadCount:1}]))}},g=null;a.MsbWebSkt=g;var l=function(){return new Promise((function(e,t){a.MsbWebSkt=g=uni.connectSocket({url:"wss://you-gateway.mashibing.com/ws?client=".concat(o.default.state.token),fail:function(e){t(e)}}),g.onOpen((function(){g.onMessage((function(e){var a=JSON.parse(e.data||{});if(200===a.code){var t=a.content;switch(a.traceType){case 1:c(t);break;case 2:d(t);break;case 7:u(t);break;default:break}}})),setInterval((function(){g.send({data:JSON.stringify({traceId:(0,s.createUUID)(),traceType:"0",content:{text:"ping"}})})}),5e3),e()}))}))};a.MsbWebSktInit=l},"75f8":function(e,a,t){"use strict";t.r(a);var n=t("a64b"),r=t("57b9");for(var o in r)"default"!==o&&function(e){t.d(a,e,(function(){return r[e]}))}(o);t("04c0");var s,i=t("f0c5"),c=Object(i["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],s);a["default"]=c.exports},9187:function(e,a,t){"use strict";var n=t("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,t("96cf");var r=n(t("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,t){"use strict";t.r(a);var n=t("180f"),r=t("fca3");for(var o in r)"default"!==o&&function(e){t.d(a,e,(function(){return r[e]}))}(o);var s,i=t("f0c5"),c=Object(i["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],s);a["default"]=c.exports},"9be5":function(e,a,t){"use strict";var n=t("4ea4");t("99af"),Object.defineProperty(a,"__esModule",{value:!0}),a.Wxpay=void 0,t("96cf");var r=n(t("1da1")),o=t("66eb"),s=function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(a){var t,n,r,s,i,c,d,u,g,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=a.orderId,n=a.openId,!n){e.next=14;break}return e.next=4,(0,o.ApiPostWxJsApiPay)({orderId:t,openId:n});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(t,"&payType=wxjsapi")})})),e.next=24;break;case 14:return e.next=16,(0,o.ApiPostWxH5Pay)({orderId:t});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(t,"&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,t){var n=t("4e55");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=t("4f06").default;r("dcecdb5c",n,!0,{sourceMap:!1,shadowMode:!1})},a64b:function(e,a,t){"use strict";var n;t.d(a,"b",(function(){return r})),t.d(a,"c",(function(){return o})),t.d(a,"a",(function(){return n}));var r=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("App",{attrs:{keepAliveInclude:e.keepAliveInclude}})},o=[]},d071:function(e,a,t){"use strict";var n=t("4ea4");t("4de4"),t("caad"),t("d3b7"),t("2532"),t("38cf"),Object.defineProperty(a,"__esModule",{value:!0}),a.MsbRequestTk=a.MsbRequest=void 0;var r=n(t("5530")),o=n(t("fda4")),s=n(t("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 t=e.data;return"SUCCESS"===t.code?t.data:"TOKEN_FAIL"===t.code?(uni.navigateTo({url:"/login"}),s.default.commit("SET_TOKEN",""),t):Promise.reject(t)}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 t=l(e);if(t)return t}return e}return uni.redirectTo({url:"/login"}),Promise.reject({message:"要先登录才能操作哦~"})})),m.use("success",d),m.use("error",u)},f147:function(e,a,t){"use strict";var n=t("4ea4");t("caad"),t("ac1f"),t("2532"),t("841c");var r=n(t("5530"));t("e260"),t("e6cf"),t("cca6"),t("a79d"),t("3417"),t("1c31");var o=n(t("e143")),s=n(t("75f8")),i=t("3762"),c=n(t("06e9")),d=n(t("4308")),u=n(t("1a9b")),g=(n(t("161f")),t("5767")),l=t("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"}})})}));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,t=e.result;if(a)return uni.$u.toast(a.message),!1;d.default.commit("SET_OPEN_ID",t.openId)})):(0,l.ApiGetAuthUrl)({redirectUrl:window.location.href,scope:"snsapi_base"}).then((function(e){var a=e.result,t=e.error;if(t)return uni.$u.toast(t.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,t){"use strict";t.r(a);var n=t("9187"),r=t.n(n);for(var o in n)"default"!==o&&function(e){t.d(a,e,(function(){return n[e]}))}(o);a["default"]=r.a},fda4:function(e,a,t){"use strict";var n=t("4ea4");t("d3b7"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var r=n(t("5530")),o=n(t("d4ec")),s=n(t("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(t,n){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){t(e)}),(function(e){n(e)})):t(s)}else t(o);return!1}n(a.hook.error?a.hook.error(o,e):o)},fail:function(t){n(a.hook.error?a.hook.error(t,e):t)}}))}))}},{key:"use",value:function(e,a){this.hook[e]=a}},{key:"get",value:function(e,a,t){return this.method({method:"GET",url:e,data:a,header:t})}},{key:"post",value:function(e,a,t){return this.method({method:"POST",url:e,data:a,header:t})}},{key:"put",value:function(e,a,t){return this.method({method:"PUT",url:e,data:a,header:t})}},{key:"delete",value:function(e,a,t){return this.method({method:"DELETE",url:e,data:a,header:t})}}]),e}(),c=i;a.default=c}}); \ No newline at end of file diff --git a/unpackage/dist/build/h5/static/js/pages-order-payResult.117e1af4.js b/unpackage/dist/build/h5/static/js/pages-order-payResult.117e1af4.js new file mode 100644 index 0000000..1ddbce1 --- /dev/null +++ b/unpackage/dist/build/h5/static/js/pages-order-payResult.117e1af4.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-payResult"],{"22ba":function(t,e,n){t.exports=n.p+"static/img/paySuccess.c4840d30.png"},2702:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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")}}};e.default=r},"359f":function(t,e,n){"use strict";n.r(e);var r=n("7f16"),a=n("a5d5");for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("9f0b");var c,s=n("f0c5"),o=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,"4c357d64",null,!1,r["a"],c);e["default"]=o.exports},"3a13":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return r}));var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"main"},[t.orderInfo?[t.orderInfo.isSuccess?[r("v-uni-image",{staticClass:"icon",attrs:{src:n("22ba")}}),r("v-uni-view",{staticClass:"title"},[t._v("支付成功")]),r("v-uni-view",{staticClass:"desc"},[t._v("您的包裹整装待发")]),r("v-uni-view",{staticClass:"btns"},[r("UiButton",{staticClass:"btn",attrs:{type:"primaryLine"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.replaceAll("/")}}},[t._v("返回首页")]),r("UiButton",{staticClass:"btn",attrs:{type:"solid"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.replace("/orderDetail?id="+t.$Route.query.orderId)}}},[t._v("查看订单")])],1),r("v-uni-view",{staticClass:"recommend-title"},[t._v("为您推荐")]),r("BsChoiceGoods")]:[r("v-uni-image",{staticClass:"icon",attrs:{src:n("8b16")}}),r("v-uni-view",{staticClass:"title"},[t._v("支付失败")]),r("v-uni-view",{staticClass:"desc"},[t._v("请重新试试")]),r("v-uni-view",{staticClass:"btns"},[r("UiButton",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.back.apply(void 0,arguments)}}},[t._v("返 回")])],1)]]:[r("v-uni-view",{staticClass:"title title--await"},[t._v("结果查询中")]),r("v-uni-view",{staticClass:"desc"},[t._v("正在与支付渠道确认支付结果,请您耐心等待...")])]],2)},i=[]},4055:function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.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/* 垂直间距 */.main[data-v-22547b4d]{text-align:center}.icon[data-v-22547b4d]{width:%?400?%;height:%?256?%;margin:%?169?% auto %?42?%}.title[data-v-22547b4d]{font-size:%?32?%;line-height:%?44?%;color:#333}.title--await[data-v-22547b4d]{margin:%?100?% 0 %?20?%;color:#666}.desc[data-v-22547b4d]{font-size:%?24?%;line-height:%?34?%;color:#999}.btns[data-v-22547b4d]{margin:%?74?% %?105?% 0;display:flex;justify-content:space-between}.recommend-title[data-v-22547b4d]{font-size:%?32?%;text-align:center;margin:%?51?% auto %?30?% auto;display:flex;align-items:center;justify-content:space-between;width:%?500?%}.recommend-title[data-v-22547b4d]::after, .recommend-title[data-v-22547b4d]::before{display:inline-block;content:"";width:%?160?%;height:%?2?%;background:linear-gradient(90deg,#ccc,hsla(0,0%,80%,0))}.recommend-title[data-v-22547b4d]::before{background:linear-gradient(270deg,#ccc,hsla(0,0%,80%,0))}',""]),t.exports=e},"5a44":function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.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}',""]),t.exports=e},"625b":function(t,e,n){"use strict";var r=n("7d1f"),a=n.n(r);a.a},"771d":function(t,e,n){"use strict";var r=n("dbc4"),a=n.n(r);a.a},"7bb3":function(t,e,n){"use strict";n.r(e);var r=n("3a13"),a=n("e0a4");for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("771d"),n("625b");var c,s=n("f0c5"),o=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,"22547b4d",null,!1,r["a"],c);e["default"]=o.exports},"7d1f":function(t,e,n){var r=n("4055");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=n("4f06").default;a("dcb90198",r,!0,{sourceMap:!1,shadowMode:!1})},"7f16":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return r}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-button",{class:"ui-btn ui-btn__"+t.type+" ui-btn__"+t.size+" "+(t.disable?" x ui-btn__disabed":" xx"),on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}},[t._t("default")],2)},i=[]},"8b16":function(t,e,n){t.exports=n.p+"static/img/payFail.56d373f0.png"},"92fd":function(t,e,n){var r=n("5a44");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=n("4f06").default;a("4898df4d",r,!0,{sourceMap:!1,shadowMode:!1})},"9f0b":function(t,e,n){"use strict";var r=n("92fd"),a=n.n(r);a.a},a5d5:function(t,e,n){"use strict";n.r(e);var r=n("2702"),a=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=a.a},c0d4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApiPutLogisticsInfo=e.ApiGetLogisticsCompanylist=e.ApiGetSaleAfterOrderDetail=e.ApiGetSaleAfterOrderList=e.ApiPostCancelSaleAfter=e.ApiPostEditSaleAfter=e.ApiPostApplySaleAfter=e.ApiGetOrderStatistics=e.ApiPutCancelOrder=e.ApiPostSubmitOrder=e.ApiPutOrderReceive=e.ApiGetOrderLogistics=e.ApiGetOrderPaySatus=e.ApiGetOrderProductDetail=e.ApiGetOrderDetail=e.ApiGetBeforeCartOrder=e.ApiGetBeforeOrder=e.ApiGetOrderList=void 0;var r=n("5767"),a="/mall/trade",i=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/tradeOrder/page"),t))};e.ApiGetOrderList=i;var c=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/tradeOrder/buyAdvanceOrder"),t))};e.ApiGetBeforeOrder=c;var s=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/tradeOrder/cartAdvanceOrder"),t))};e.ApiGetBeforeCartOrder=s;var o=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/tradeOrder/").concat(t)))};e.ApiGetOrderDetail=o;var u=function(t){var e=t.orderProductId;return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/tradeOrder/product/").concat(e)))};e.ApiGetOrderProductDetail=u;var d=function(t){var e=t.orderId;return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/tradeOrder/payResult/").concat(e)))};e.ApiGetOrderPaySatus=d;var p=function(t){var e=t.orderId;return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/tradeOrder/logistics/").concat(e)))};e.ApiGetOrderLogistics=p;var f=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.put("".concat(a,"/app/tradeOrder/receive"),t))};e.ApiPutOrderReceive=f;var l=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.post("".concat(a,"/app/tradeOrder/submitOrder"),t))};e.ApiPostSubmitOrder=l;var v=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.put("".concat(a,"/app/tradeOrder/cancel"),t))};e.ApiPutCancelOrder=v;var b=function(){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/tradeOrder/statistics")))};e.ApiGetOrderStatistics=b;var A=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.post("".concat(a,"/app/refundOrder/applyRefund"),t))};e.ApiPostApplySaleAfter=A;var g=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.put("".concat(a,"/app/refundOrder/updateRefund"),t))};e.ApiPostEditSaleAfter=g;var y=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.put("".concat(a,"/app/refundOrder/cancelRefund"),t))};e.ApiPostCancelSaleAfter=y;var h=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/refundOrder/page"),t))};e.ApiGetSaleAfterOrderList=h;var m=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/refundOrder/refundInfo"),t))};e.ApiGetSaleAfterOrderDetail=m;var O=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/refundOrder/logisticsCompany")))};e.ApiGetLogisticsCompanylist=O;var w=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.put("".concat(a,"/app/refundOrder/completeRefund"),t))};e.ApiPutLogisticsInfo=w},c125:function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.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-page-body[data-v-22547b4d]{text-align:center}',""]),t.exports=e},daaf:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var a=r(n("1da1")),i=r(n("359f")),c=r(n("91cc")),s=n("c0d4"),o={components:{UiButton:i.default,BsChoiceGoods:c.default},data:function(){return{orderInfo:"",reuqestNum:0}},onShow:function(){this.getOrderInfo()},methods:{getOrderInfo:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){var n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.reuqestNum++,e.next=3,(0,s.ApiGetOrderPaySatus)({orderId:t.$Route.query.orderId});case 3:if(n=e.sent,r=n.error,a=n.result,!r){e.next=9;break}return uin.$u.toast(r.message),e.abrupt("return",!1);case 9:if(a.isSuccess||!(t.reuqestNum<5)){e.next=12;break}return setTimeout((function(){t.getOrderInfo()}),1e3),e.abrupt("return",!1);case 12:t.orderInfo=a,uni.setNavigationBarTitle({title:a.isSuccess?"支付成功":"支付失败"});case 14:case"end":return e.stop()}}),e)})))()},back:function(){var t=this.$Route.query.payType;"wxjsapi"!==t?this.$Router.back(2):this.$Router.back()}}};e.default=o},dbc4:function(t,e,n){var r=n("c125");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=n("4f06").default;a("e0dfbf9a",r,!0,{sourceMap:!1,shadowMode:!1})},e0a4:function(t,e,n){"use strict";n.r(e);var r=n("daaf"),a=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=a.a}}]); \ No newline at end of file diff --git a/unpackage/dist/build/h5/static/js/pages-order-payResult.fb3f1b81.js b/unpackage/dist/build/h5/static/js/pages-order-payResult.fb3f1b81.js deleted file mode 100644 index 599f738..0000000 --- a/unpackage/dist/build/h5/static/js/pages-order-payResult.fb3f1b81.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-payResult"],{"16e1":function(t,e,n){"use strict";var r=n("af7a"),a=n.n(r);a.a},"22ba":function(t,e,n){t.exports=n.p+"static/img/paySuccess.c4840d30.png"},2702:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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")}}};e.default=r},"359f":function(t,e,n){"use strict";n.r(e);var r=n("7f16"),a=n("a5d5");for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("9f0b");var c,s=n("f0c5"),o=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,"4c357d64",null,!1,r["a"],c);e["default"]=o.exports},5407:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return r}));var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"main"},[t.orderInfo?[t.orderInfo.isSuccess?[r("v-uni-image",{staticClass:"icon",attrs:{src:n("22ba")}}),r("v-uni-view",{staticClass:"title"},[t._v("支付成功")]),r("v-uni-view",{staticClass:"desc"},[t._v("您的包裹整装待发")]),r("v-uni-view",{staticClass:"btns"},[r("UiButton",{staticClass:"btn",attrs:{type:"primaryLine"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.replaceAll("/")}}},[t._v("返回首页")]),r("UiButton",{staticClass:"btn",attrs:{type:"solid"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.replace("/orderDetail?id="+t.$Route.query.orderId)}}},[t._v("查看订单")])],1),r("v-uni-view",{staticClass:"recommend-title"},[t._v("为您推荐")]),r("BsChoiceGoods")]:[r("v-uni-image",{staticClass:"icon",attrs:{src:n("8b16")}}),r("v-uni-view",{staticClass:"title"},[t._v("支付失败")]),r("v-uni-view",{staticClass:"desc"},[t._v("请重新试试")]),r("v-uni-view",{staticClass:"btns"},[r("UiButton",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.back.apply(void 0,arguments)}}},[t._v("返 回")])],1)]]:[r("v-uni-view",{staticClass:"title title--await"},[t._v("结果查询中")]),r("v-uni-view",{staticClass:"desc"},[t._v("正在与支付渠道确认支付结果,请您耐心等待...")])]],2)},i=[]},"5a44":function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.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}',""]),t.exports=e},6183:function(t,e,n){var r=n("829e");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=n("4f06").default;a("fca70edc",r,!0,{sourceMap:!1,shadowMode:!1})},"7bb3":function(t,e,n){"use strict";n.r(e);var r=n("5407"),a=n("e0a4");for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("16e1"),n("c434");var c,s=n("f0c5"),o=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,"28e98f5e",null,!1,r["a"],c);e["default"]=o.exports},"7f16":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return r}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-button",{class:"ui-btn ui-btn__"+t.type+" ui-btn__"+t.size+" "+(t.disable?" x ui-btn__disabed":" xx"),on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}},[t._t("default")],2)},i=[]},"829e":function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.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/* 垂直间距 */.main[data-v-28e98f5e]{text-align:center}.icon[data-v-28e98f5e]{width:%?400?%;height:%?256?%;margin:%?169?% auto %?42?%}.title[data-v-28e98f5e]{font-size:%?32?%;line-height:%?44?%;color:#333}.title--await[data-v-28e98f5e]{margin:%?100?% 0 %?20?%;color:#666}.desc[data-v-28e98f5e]{font-size:%?24?%;line-height:%?34?%;color:#999}.btns[data-v-28e98f5e]{margin:%?74?% %?105?% 0;display:flex;justify-content:space-between}.recommend-title[data-v-28e98f5e]{font-size:%?32?%;text-align:center;margin:%?51?% auto %?30?% auto;display:flex;align-items:center;justify-content:space-between;width:%?500?%}.recommend-title[data-v-28e98f5e]::after, .recommend-title[data-v-28e98f5e]::before{display:inline-block;content:"";width:%?160?%;height:%?2?%;background:linear-gradient(90deg,#ccc,hsla(0,0%,80%,0))}.recommend-title[data-v-28e98f5e]::before{background:linear-gradient(270deg,#ccc,hsla(0,0%,80%,0))}',""]),t.exports=e},"8b16":function(t,e,n){t.exports=n.p+"static/img/payFail.56d373f0.png"},"8f23":function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.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-page-body[data-v-28e98f5e]{text-align:center}',""]),t.exports=e},"92fd":function(t,e,n){var r=n("5a44");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=n("4f06").default;a("4898df4d",r,!0,{sourceMap:!1,shadowMode:!1})},"9f0b":function(t,e,n){"use strict";var r=n("92fd"),a=n.n(r);a.a},a5d5:function(t,e,n){"use strict";n.r(e);var r=n("2702"),a=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=a.a},af7a:function(t,e,n){var r=n("8f23");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=n("4f06").default;a("7f991991",r,!0,{sourceMap:!1,shadowMode:!1})},c0d4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApiPutLogisticsInfo=e.ApiGetLogisticsCompanylist=e.ApiGetSaleAfterOrderDetail=e.ApiGetSaleAfterOrderList=e.ApiPostCancelSaleAfter=e.ApiPostEditSaleAfter=e.ApiPostApplySaleAfter=e.ApiGetOrderStatistics=e.ApiPutCancelOrder=e.ApiPostSubmitOrder=e.ApiPutOrderReceive=e.ApiGetOrderLogistics=e.ApiGetOrderPaySatus=e.ApiGetOrderProductDetail=e.ApiGetOrderDetail=e.ApiGetBeforeCartOrder=e.ApiGetBeforeOrder=e.ApiGetOrderList=void 0;var r=n("5767"),a="/mall/trade",i=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/tradeOrder/page"),t))};e.ApiGetOrderList=i;var c=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/tradeOrder/buyAdvanceOrder"),t))};e.ApiGetBeforeOrder=c;var s=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/tradeOrder/cartAdvanceOrder"),t))};e.ApiGetBeforeCartOrder=s;var o=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/tradeOrder/").concat(t)))};e.ApiGetOrderDetail=o;var u=function(t){var e=t.orderProductId;return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/tradeOrder/product/").concat(e)))};e.ApiGetOrderProductDetail=u;var d=function(t){var e=t.orderId;return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/tradeOrder/payResult/").concat(e)))};e.ApiGetOrderPaySatus=d;var f=function(t){var e=t.orderId;return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/tradeOrder/logistics/").concat(e)))};e.ApiGetOrderLogistics=f;var p=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.put("".concat(a,"/app/tradeOrder/receive"),t))};e.ApiPutOrderReceive=p;var l=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.post("".concat(a,"/app/tradeOrder/submitOrder"),t))};e.ApiPostSubmitOrder=l;var v=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.put("".concat(a,"/app/tradeOrder/cancel"),t))};e.ApiPutCancelOrder=v;var b=function(){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/tradeOrder/statistics")))};e.ApiGetOrderStatistics=b;var A=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.post("".concat(a,"/app/refundOrder/applyRefund"),t))};e.ApiPostApplySaleAfter=A;var g=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.put("".concat(a,"/app/refundOrder/updateRefund"),t))};e.ApiPostEditSaleAfter=g;var h=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.put("".concat(a,"/app/refundOrder/cancelRefund"),t))};e.ApiPostCancelSaleAfter=h;var y=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/refundOrder/page"),t))};e.ApiGetSaleAfterOrderList=y;var m=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/refundOrder/refundInfo"),t))};e.ApiGetSaleAfterOrderDetail=m;var O=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/app/refundOrder/logisticsCompany")))};e.ApiGetLogisticsCompanylist=O;var w=function(t){return(0,r.ToAsyncAwait)(r.MsbRequestTk.put("".concat(a,"/app/refundOrder/completeRefund"),t))};e.ApiPutLogisticsInfo=w},c434:function(t,e,n){"use strict";var r=n("6183"),a=n.n(r);a.a},daaf:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var a=r(n("1da1")),i=r(n("359f")),c=r(n("91cc")),s=n("c0d4"),o={components:{UiButton:i.default,BsChoiceGoods:c.default},data:function(){return{orderInfo:"",reuqestNum:0}},onShow:function(){this.getOrderInfo()},methods:{getOrderInfo:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){var n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.reuqestNum++,e.next=3,(0,s.ApiGetOrderPaySatus)({orderId:t.$Route.query.orderId});case 3:if(n=e.sent,r=n.error,a=n.result,!r){e.next=9;break}return uin.$u.toast(r.message),e.abrupt("return",!1);case 9:if(a.isSuccess||!(t.reuqestNum<10)){e.next=12;break}return setTimeout((function(){t.getOrderInfo()}),1e3),e.abrupt("return",!1);case 12:t.orderInfo=a,uni.setNavigationBarTitle({title:a.isSuccess?"支付成功":"支付失败"});case 14:case"end":return e.stop()}}),e)})))()},back:function(){var t=this.$Route.query.payType;"wxh5"===t?this.$Router.back(2):this.$Router.back()}}};e.default=o},e0a4:function(t,e,n){"use strict";n.r(e);var r=n("daaf"),a=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=a.a}}]); \ No newline at end of file