diff --git a/manifest.json b/manifest.json index 9a75a9e..ad415f5 100644 --- a/manifest.json +++ b/manifest.json @@ -17,7 +17,9 @@ "delay" : 0 }, /* 模块配置 */ - "modules" : {}, + "modules" : { + "Payment" : {} + }, /* 应用发布信息 */ "distribute" : { /* android打包配置 */ @@ -44,7 +46,14 @@ "ios" : {}, /* SDK配置 */ "sdkConfigs" : { - "ad" : {} + "ad" : {}, + "payment" : { + "weixin" : { + "__platform__" : [ "android" ], + "appid" : "wx17b34a4a90ef18f7", + "UniversalLinks" : "" + } + } } } }, diff --git a/pages/goods/category.vue b/pages/goods/category.vue index b7d4ae5..3f61c30 100644 --- a/pages/goods/category.vue +++ b/pages/goods/category.vue @@ -17,7 +17,7 @@ - + diff --git a/pages/order/payResult.vue b/pages/order/payResult.vue index d76fc27..766d478 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 20:05:00 + * @LastEditTime: 2022-05-06 10:49:00 * @Description: file content --> @@ -29,7 +29,7 @@ 支付失败 请重新试试 - 返 回 + 查看订单详情 diff --git a/unpackage/dist/build/h5/index.html b/unpackage/dist/build/h5/index.html index cc12ce0..c060715 100644 --- a/unpackage/dist/build/h5/index.html +++ b/unpackage/dist/build/h5/index.html @@ -2,8 +2,8 @@ * @Author: ch * @Date: 2022-05-05 20:07:21 * @LastEditors: ch - * @LastEditTime: 2022-05-05 22:00:54 + * @LastEditTime: 2022-05-06 10:53:12 * @Description: file content --> 马士兵严选
+ document.write('')
diff --git a/unpackage/dist/build/h5/static/img/category_banner.af669ac8.jpg b/unpackage/dist/build/h5/static/img/category_banner.af669ac8.jpg deleted file mode 100644 index c160e06..0000000 Binary files a/unpackage/dist/build/h5/static/img/category_banner.af669ac8.jpg and /dev/null differ diff --git a/unpackage/dist/build/h5/static/js/index.662452a8.js b/unpackage/dist/build/h5/static/js/index.091fadad.js similarity index 99% rename from unpackage/dist/build/h5/static/js/index.662452a8.js rename to unpackage/dist/build/h5/static/js/index.091fadad.js index 06ec814..bddbb30 100644 --- a/unpackage/dist/build/h5/static/js/index.662452a8.js +++ b/unpackage/dist/build/h5/static/js/index.091fadad.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-goods-category.1d3ab2f0.js b/unpackage/dist/build/h5/static/js/pages-goods-category.1d3ab2f0.js deleted file mode 100644 index 964cfa0..0000000 --- a/unpackage/dist/build/h5/static/js/pages-goods-category.1d3ab2f0.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods-category"],{"145b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApiGetCategoryTwoAndGoods=e.ApiGetCategoryOneList=e.ApiGetCategoryNav=e.ApiGetGoodsSkus=e.ApiGetGoodsDetail=e.ApiGetRecommendedGoodsList=e.ApiGetGoodsList=void 0;var a=n("5767"),o="/mall/product",i=function(t){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(o,"/app/product/page"),t))};e.ApiGetGoodsList=i;var r=function(t){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(o,"/app/product/recommended"),t))};e.ApiGetRecommendedGoodsList=r;var c=function(t){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(o,"/app/product/").concat(t.id)))};e.ApiGetGoodsDetail=c;var s=function(t){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(o,"/app/product/sku"),t))};e.ApiGetGoodsSkus=s;var u=function(){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(o,"/app/product/categoryNavigation")))};e.ApiGetCategoryNav=u;var d=function(){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(o,"/app/productCategory/levelOne")))};e.ApiGetCategoryOneList=d;var l=function(t){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(o,"/app/productCategory/listCategoryAndProduct/").concat(t.categoryId)))};e.ApiGetCategoryTwoAndGoods=l},1568:function(t,e,n){"use strict";var a=n("887b"),o=n.n(a);o.a},"2e26":function(t,e,n){var a=n("5220");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("4f06").default;o("13964d2c",a,!0,{sourceMap:!1,shadowMode:!1})},3463:function(t,e,n){"use strict";n.r(e);var a=n("82d1"),o=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},"453d":function(t,e,n){"use strict";n.r(e);var a=n("91a7"),o=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},"45a9":function(t,e,n){"use strict";n.r(e);var a=n("54e2"),o=n("3463");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("1568"),n("dbe2");var r,c=n("f0c5"),s=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,"df7a6c32",null,!1,a["a"],r);e["default"]=s.exports},"47e4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{}},props:{icon:{type:String,default:n("7a1a")},tips:{type:String,default:"亲,暂无相关数据"}},mounted:function(){},methods:{}};e.default=a},5220:function(t,e,n){var a=n("24fb");e=a(!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/* 垂直间距 */.search[data-v-df7a6c32]{height:%?88?%;padding:0 %?30?%;background:#fff}.search--input[data-v-df7a6c32]{display:block;height:%?70?%;border:none;box-sizing:border-box;background:#f8f8f8}.search--input__placeholder[data-v-df7a6c32]{font-size:%?28?%;color:#666}.cate-content[data-v-df7a6c32]{background:#fff;height:calc(100vh - %?180?%);display:flex}.cate-left[data-v-df7a6c32]{width:%?190?%;color:#444;height:100%;background:#f8f8f8}.cate-right[data-v-df7a6c32]{height:100%;padding:%?30?% 0 0;overflow:hidden;box-sizing:border-box}.type-nav[data-v-df7a6c32]{display:block;width:%?190?%;height:%?100?%;line-height:%?100?%;font-size:%?28?%;text-align:center;color:#999}.type-nav.selected[data-v-df7a6c32]{background:#fff;color:#ff875b;font-size:%?28?%;font-weight:700}.cate-tow-img[data-v-df7a6c32]{width:%?480?%;margin:0 %?40?% %?20?%;height:%?164?%;background:#ccc;border-radius:%?16?%}.cate-tow-group[data-v-df7a6c32]{display:flex;flex-wrap:wrap}.cate-tow-group--title[data-v-df7a6c32]{padding:%?20?% %?40?%;display:block;width:100%;font-size:%?30?%;line-height:%?30?%;font-weight:700;color:#333}.cate-tow-group--item[data-v-df7a6c32]{margin-left:%?40?%}.cate-tow-group--img[data-v-df7a6c32]{display:block;width:%?130?%;height:%?130?%}.cate-tow-group--name[data-v-df7a6c32]{display:block;width:%?130?%;text-align:center;font-size:%?24?%;line-height:%?30?%;margin:%?14?% 0 %?20?%;color:#333;display:-webkit-box;\n /*! autoprefixer: off */-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.cate-tow-group__last[data-v-df7a6c32]{padding-bottom:%?200?%}.empty[data-v-df7a6c32]{margin-top:%?100?%}',""]),t.exports=e},"54e2":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var a={"u-Input":n("eb73").default,uLoadmore:n("c153").default},o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container"},[a("UiPageHeader",{staticClass:"search",attrs:{back:!1}},[a("u--input",{staticClass:"search--input",attrs:{slot:"custom",prefixIconStyle:"font-size:48rpx;color:#ccc",prefixIcon:"search",placeholderClass:"search--input__placeholder",clearable:!0,placeholder:"请输入您想要搜索的商品名称"},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.push("/search")}},slot:"custom"})],1),t.categoryData.length>0?a("v-uni-view",{staticClass:"cate-content"},[a("v-uni-scroll-view",{staticClass:"cate-left",attrs:{"scroll-y":!0}},t._l(t.categoryData,(function(e,n){return a("v-uni-text",{key:n,staticClass:"type-nav",class:{selected:t.curIndex==n},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleSelectNav(n)}}},[t._v(t._s(e.name))])})),1),a("v-uni-scroll-view",{staticClass:"cate-right",attrs:{"scroll-top":t.scrollTop,"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.reachBottom.apply(void 0,arguments)}}},[a("v-uni-image",{staticClass:"cate-tow-img",attrs:{src:n("9c98")}}),t._l(t.categoryData[t.curIndex].children,(function(e,n){return a("v-uni-view",{key:n,staticClass:"cate-tow-group",class:n===t.categoryData[t.curIndex].children.length-1?"cate-tow-group__last":""},[a("v-uni-text",{staticClass:"cate-tow-group--title"},[t._v(t._s(e.name))]),t._l(e.productList,(function(e){return a("v-uni-view",{key:e.id,staticClass:"cate-tow-group--item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.$Router.push("/goodsDetail?id="+e.id)}}},[a("v-uni-image",{staticClass:"cate-tow-group--img",attrs:{mode:"scaleToFill",src:e.mainPicture}}),a("v-uni-text",{staticClass:"cate-tow-group--name"},[t._v(t._s(e.name))])],1)}))],2)})),t.categoryData[t.curIndex].children.length||t.categoryData[t.curIndex].isLoading?t._e():a("BsEmpty",{staticClass:"empty",attrs:{icon:n("9b25")}}),t.categoryData[t.curIndex].isLoading?a("u-loadmore",{attrs:{status:"loading"}}):t._e()],2)],1):t._e(),t.categoryData.length||t.isLoading?t._e():a("BsEmpty"),t.isLoading?a("u-loadmore",{attrs:{status:"loading"}}):t._e()],1)},i=[]},5726:function(t,e,n){var a=n("fc54");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("4f06").default;o("ee1499be",a,!0,{sourceMap:!1,shadowMode:!1})},5871:function(t,e,n){var a=n("fe9e");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("4f06").default;o("3023f3a0",a,!0,{sourceMap:!1,shadowMode:!1})},"6b19":function(t,e,n){"use strict";n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{status:{type:String,default:uni.$u.props.loadmore.status},bgColor:{type:String,default:uni.$u.props.loadmore.bgColor},icon:{type:Boolean,default:uni.$u.props.loadmore.icon},fontSize:{type:[String,Number],default:uni.$u.props.loadmore.fontSize},color:{type:String,default:uni.$u.props.loadmore.color},loadingIcon:{type:String,default:uni.$u.props.loadmore.loadingIcon},loadmoreText:{type:String,default:uni.$u.props.loadmore.loadmoreText},loadingText:{type:String,default:uni.$u.props.loadmore.loadingText},nomoreText:{type:String,default:uni.$u.props.loadmore.nomoreText},isDot:{type:Boolean,default:uni.$u.props.loadmore.isDot},iconColor:{type:String,default:uni.$u.props.loadmore.iconColor},marginTop:{type:[String,Number],default:uni.$u.props.loadmore.marginTop},marginBottom:{type:[String,Number],default:uni.$u.props.loadmore.marginBottom},height:{type:[String,Number],default:uni.$u.props.loadmore.height},line:{type:Boolean,default:uni.$u.props.loadmore.line}}};e.default=a},7985:function(t,e,n){"use strict";n.r(e);var a=n("47e4"),o=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},"7a1a":function(t,e,n){t.exports=n.p+"static/img/empty.bdec362e.png"},"82d1":function(t,e,n){"use strict";var a=n("4ea4");n("d81d"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var o=a(n("1da1")),i=n("145b"),r=a(n("8832")),c=a(n("1014")),s={components:{BsEmpty:r.default,UiPageHeader:c.default},data:function(){return{curIndex:0,scrollTop:0,categoryData:[],isLoading:!0}},onLoad:function(){this.getCategoryData()},onShow:function(){},methods:{handleSelectNav:function(t){this.curIndex=t,this.scrollTop=0},reachBottom:function(){if(this.curIndex>=this.categoryData.length)return!1;this.handleSelectNav(this.curIndex+1)},getCategoryData:function(){var t=this;return(0,o.default)(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.isLoading=!0,e.next=3,(0,i.ApiGetCategoryOneList)();case 3:n=e.sent,n.error,a=n.result,t.categoryData=a.map((function(e){return e.children=[],e.isLoading=!0,t.getTwoCategoryData(e),e})),t.isLoading=!1;case 8:case"end":return e.stop()}}),e)})))()},getTwoCategoryData:function(t){var e=this;return(0,o.default)(regeneratorRuntime.mark((function n(){var a,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,i.ApiGetCategoryTwoAndGoods)({categoryId:t.id});case 2:a=n.sent,a.error,o=a.result,e.$set(t,"children",o),e.$set(t,"isLoading",!1);case 7:case"end":return n.stop()}}),n)})))()}}};e.default=s},8832:function(t,e,n){"use strict";n.r(e);var a=n("b867"),o=n("7985");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("f35f");var r,c=n("f0c5"),s=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,"54c060f6",null,!1,a["a"],r);e["default"]=s.exports},"887b":function(t,e,n){var a=n("d008");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("4f06").default;o("f1bbdf66",a,!0,{sourceMap:!1,shadowMode:!1})},"91a7":function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("6b19")),i={name:"u-loadmore",mixins:[uni.$u.mpMixin,uni.$u.mixin,o.default],data:function(){return{dotText:"●"}},computed:{loadTextStyle:function(){return{color:this.color,fontSize:uni.$u.addUnit(this.fontSize),lineHeight:uni.$u.addUnit(this.fontSize),backgroundColor:this.bgColor}},showText:function(){var t="";return t="loadmore"==this.status?this.loadmoreText:"loading"==this.status?this.loadingText:"nomore"==this.status&&this.isDot?this.dotText:this.nomoreText,t}},methods:{loadMore:function(){"loadmore"==this.status&&this.$emit("loadmore")}}};e.default=i},9444:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var a={uLine:n("3e06").default,uLoadingIcon:n("891e").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-loadmore",style:[t.$u.addStyle(t.customStyle),{backgroundColor:t.bgColor,marginBottom:t.$u.addUnit(t.marginBottom),marginTop:t.$u.addUnit(t.marginTop),height:t.$u.addUnit(t.height)}]},[t.line?n("u-line",{attrs:{length:"140rpx",color:"#E6E8EB",hairline:!1}}):t._e(),n("v-uni-view",{staticClass:"u-loadmore__content",class:"loadmore"==t.status||"nomore"==t.status?"u-more":""},["loading"===t.status&&t.icon?n("v-uni-view",{staticClass:"u-loadmore__content__icon-wrap"},[n("u-loading-icon",{attrs:{color:t.iconColor,size:"17",mode:t.loadingIcon}})],1):t._e(),n("v-uni-text",{staticClass:"u-line-1",class:["nomore"==t.status&&1==t.isDot?"u-loadmore__content__dot-text":"u-loadmore__content__text"],style:[t.loadTextStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.loadMore.apply(void 0,arguments)}}},[t._v(t._s(t.showText))])],1),t.line?n("u-line",{attrs:{length:"140rpx",color:"#E6E8EB",hairline:!1}}):t._e()],1)},i=[]},"9b25":function(t,e,n){t.exports=n.p+"static/img/empty_goods.3495ba6d.png"},"9c98":function(t,e,n){t.exports=n.p+"static/img/category_banner.af669ac8.jpg"},b867:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"empty"},[t._t("icon",[n("v-uni-image",{staticClass:"empty--icon",attrs:{src:t.icon,mode:"widthFix"}})]),n("v-uni-view",{staticClass:"empty--tips"},[t._v(t._s(t.tips))]),t._t("btn")],2)},i=[]},c153:function(t,e,n){"use strict";n.r(e);var a=n("9444"),o=n("453d");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("c6b9");var r,c=n("f0c5"),s=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,"17ee0c9a",null,!1,a["a"],r);e["default"]=s.exports},c6b9:function(t,e,n){"use strict";var a=n("5871"),o=n.n(a);o.a},d008:function(t,e,n){var a=n("24fb");e=a(!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-df7a6c32]{background:#fff}body.?%PAGE?%[data-v-df7a6c32]{background:#fff}',""]),t.exports=e},dbe2:function(t,e,n){"use strict";var a=n("2e26"),o=n.n(a);o.a},f35f:function(t,e,n){"use strict";var a=n("5726"),o=n.n(a);o.a},fc54:function(t,e,n){var a=n("24fb");e=a(!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/* 垂直间距 */.empty[data-v-54c060f6]{box-sizing:border-box;padding:%?50?%;text-align:center;background:#fff;margin:%?20?% %?30?%;border-radius:%?16?%}.empty--tips[data-v-54c060f6]{font-size:%?26?%;color:#999;margin:%?30?% 0 %?50?%}.empty--icon[data-v-54c060f6]{width:%?380?%;height:%?240?%}',""]),t.exports=e},fe9e:function(t,e,n){var a=n("24fb");e=a(!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-view[data-v-17ee0c9a], uni-scroll-view[data-v-17ee0c9a], uni-swiper-item[data-v-17ee0c9a]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-loadmore[data-v-17ee0c9a]{display:flex;flex-direction:row;align-items:center;justify-content:center;flex:1}.u-loadmore__content[data-v-17ee0c9a]{margin:0 15px;display:flex;flex-direction:row;align-items:center;justify-content:center}.u-loadmore__content__icon-wrap[data-v-17ee0c9a]{margin-right:8px}.u-loadmore__content__text[data-v-17ee0c9a]{font-size:14px;color:#606266}.u-loadmore__content__dot-text[data-v-17ee0c9a]{font-size:15px;color:#909193}',""]),t.exports=e}}]); \ No newline at end of file diff --git a/unpackage/dist/build/h5/static/js/pages-goods-category.c515cf1a.js b/unpackage/dist/build/h5/static/js/pages-goods-category.c515cf1a.js new file mode 100644 index 0000000..d1b3791 --- /dev/null +++ b/unpackage/dist/build/h5/static/js/pages-goods-category.c515cf1a.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods-category"],{"145b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApiGetCategoryTwoAndGoods=e.ApiGetCategoryOneList=e.ApiGetCategoryNav=e.ApiGetGoodsSkus=e.ApiGetGoodsDetail=e.ApiGetRecommendedGoodsList=e.ApiGetGoodsList=void 0;var a=n("5767"),o="/mall/product",i=function(t){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(o,"/app/product/page"),t))};e.ApiGetGoodsList=i;var r=function(t){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(o,"/app/product/recommended"),t))};e.ApiGetRecommendedGoodsList=r;var s=function(t){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(o,"/app/product/").concat(t.id)))};e.ApiGetGoodsDetail=s;var c=function(t){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(o,"/app/product/sku"),t))};e.ApiGetGoodsSkus=c;var u=function(){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(o,"/app/product/categoryNavigation")))};e.ApiGetCategoryNav=u;var d=function(){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(o,"/app/productCategory/levelOne")))};e.ApiGetCategoryOneList=d;var l=function(t){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(o,"/app/productCategory/listCategoryAndProduct/").concat(t.categoryId)))};e.ApiGetCategoryTwoAndGoods=l},"28a2":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var a={"u-Input":n("eb73").default,uLoadmore:n("c153").default},o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container"},[a("UiPageHeader",{staticClass:"search",attrs:{back:!1}},[a("u--input",{staticClass:"search--input",attrs:{slot:"custom",prefixIconStyle:"font-size:48rpx;color:#ccc",prefixIcon:"search",placeholderClass:"search--input__placeholder",clearable:!0,placeholder:"请输入您想要搜索的商品名称"},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.push("/search")}},slot:"custom"})],1),t.categoryData.length>0?a("v-uni-view",{staticClass:"cate-content"},[a("v-uni-scroll-view",{staticClass:"cate-left",attrs:{"scroll-y":!0}},t._l(t.categoryData,(function(e,n){return a("v-uni-text",{key:n,staticClass:"type-nav",class:{selected:t.curIndex==n},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleSelectNav(n)}}},[t._v(t._s(e.name))])})),1),a("v-uni-scroll-view",{staticClass:"cate-right",attrs:{"scroll-top":t.scrollTop,"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.reachBottom.apply(void 0,arguments)}}},[a("v-uni-image",{staticClass:"cate-tow-img",attrs:{src:"https://msb-edu-dev.oss-cn-beijing.aliyuncs.com/uc/account-avatar/category"+t.categoryData[t.curIndex].id+".jpg"}}),t._l(t.categoryData[t.curIndex].children,(function(e,n){return a("v-uni-view",{key:n,staticClass:"cate-tow-group",class:n===t.categoryData[t.curIndex].children.length-1?"cate-tow-group__last":""},[a("v-uni-text",{staticClass:"cate-tow-group--title"},[t._v(t._s(e.name))]),t._l(e.productList,(function(e){return a("v-uni-view",{key:e.id,staticClass:"cate-tow-group--item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.$Router.push("/goodsDetail?id="+e.id)}}},[a("v-uni-image",{staticClass:"cate-tow-group--img",attrs:{mode:"scaleToFill",src:e.mainPicture}}),a("v-uni-text",{staticClass:"cate-tow-group--name"},[t._v(t._s(e.name))])],1)}))],2)})),t.categoryData[t.curIndex].children.length||t.categoryData[t.curIndex].isLoading?t._e():a("BsEmpty",{staticClass:"empty",attrs:{icon:n("9b25")}}),t.categoryData[t.curIndex].isLoading?a("u-loadmore",{attrs:{status:"loading"}}):t._e()],2)],1):t._e(),t.categoryData.length||t.isLoading?t._e():a("BsEmpty"),t.isLoading?a("u-loadmore",{attrs:{status:"loading"}}):t._e()],1)},i=[]},"2f9e":function(t,e,n){var a=n("24fb");e=a(!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-4f7d9746]{background:#fff}body.?%PAGE?%[data-v-4f7d9746]{background:#fff}',""]),t.exports=e},3463:function(t,e,n){"use strict";n.r(e);var a=n("82d1"),o=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},"37b9":function(t,e,n){"use strict";var a=n("4f6a"),o=n.n(a);o.a},"453d":function(t,e,n){"use strict";n.r(e);var a=n("91a7"),o=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},"45a9":function(t,e,n){"use strict";n.r(e);var a=n("28a2"),o=n("3463");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("37b9"),n("4ef5");var r,s=n("f0c5"),c=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"4f7d9746",null,!1,a["a"],r);e["default"]=c.exports},4676:function(t,e,n){var a=n("24fb");e=a(!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/* 垂直间距 */.search[data-v-4f7d9746]{height:%?88?%;padding:0 %?30?%;background:#fff}.search--input[data-v-4f7d9746]{display:block;height:%?70?%;border:none;box-sizing:border-box;background:#f8f8f8}.search--input__placeholder[data-v-4f7d9746]{font-size:%?28?%;color:#666}.cate-content[data-v-4f7d9746]{background:#fff;height:calc(100vh - %?180?%);display:flex}.cate-left[data-v-4f7d9746]{width:%?190?%;color:#444;height:100%;background:#f8f8f8}.cate-right[data-v-4f7d9746]{height:100%;padding:%?30?% 0 0;overflow:hidden;box-sizing:border-box}.type-nav[data-v-4f7d9746]{display:block;width:%?190?%;height:%?100?%;line-height:%?100?%;font-size:%?28?%;text-align:center;color:#999}.type-nav.selected[data-v-4f7d9746]{background:#fff;color:#ff875b;font-size:%?28?%;font-weight:700}.cate-tow-img[data-v-4f7d9746]{width:%?480?%;margin:0 %?40?% %?20?%;height:%?164?%;background:#ccc;border-radius:%?16?%}.cate-tow-group[data-v-4f7d9746]{display:flex;flex-wrap:wrap}.cate-tow-group--title[data-v-4f7d9746]{padding:%?20?% %?40?%;display:block;width:100%;font-size:%?30?%;line-height:%?30?%;font-weight:700;color:#333}.cate-tow-group--item[data-v-4f7d9746]{margin-left:%?40?%}.cate-tow-group--img[data-v-4f7d9746]{display:block;width:%?130?%;height:%?130?%}.cate-tow-group--name[data-v-4f7d9746]{display:block;width:%?130?%;text-align:center;font-size:%?24?%;line-height:%?30?%;margin:%?14?% 0 %?20?%;color:#333;display:-webkit-box;\n /*! autoprefixer: off */-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.cate-tow-group__last[data-v-4f7d9746]{padding-bottom:%?200?%}.empty[data-v-4f7d9746]{margin-top:%?100?%}',""]),t.exports=e},"47e4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{}},props:{icon:{type:String,default:n("7a1a")},tips:{type:String,default:"亲,暂无相关数据"}},mounted:function(){},methods:{}};e.default=a},"4ef5":function(t,e,n){"use strict";var a=n("b83a"),o=n.n(a);o.a},"4f6a":function(t,e,n){var a=n("2f9e");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("4f06").default;o("729a69b4",a,!0,{sourceMap:!1,shadowMode:!1})},5726:function(t,e,n){var a=n("fc54");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("4f06").default;o("ee1499be",a,!0,{sourceMap:!1,shadowMode:!1})},5871:function(t,e,n){var a=n("fe9e");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("4f06").default;o("3023f3a0",a,!0,{sourceMap:!1,shadowMode:!1})},"6b19":function(t,e,n){"use strict";n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{status:{type:String,default:uni.$u.props.loadmore.status},bgColor:{type:String,default:uni.$u.props.loadmore.bgColor},icon:{type:Boolean,default:uni.$u.props.loadmore.icon},fontSize:{type:[String,Number],default:uni.$u.props.loadmore.fontSize},color:{type:String,default:uni.$u.props.loadmore.color},loadingIcon:{type:String,default:uni.$u.props.loadmore.loadingIcon},loadmoreText:{type:String,default:uni.$u.props.loadmore.loadmoreText},loadingText:{type:String,default:uni.$u.props.loadmore.loadingText},nomoreText:{type:String,default:uni.$u.props.loadmore.nomoreText},isDot:{type:Boolean,default:uni.$u.props.loadmore.isDot},iconColor:{type:String,default:uni.$u.props.loadmore.iconColor},marginTop:{type:[String,Number],default:uni.$u.props.loadmore.marginTop},marginBottom:{type:[String,Number],default:uni.$u.props.loadmore.marginBottom},height:{type:[String,Number],default:uni.$u.props.loadmore.height},line:{type:Boolean,default:uni.$u.props.loadmore.line}}};e.default=a},7985:function(t,e,n){"use strict";n.r(e);var a=n("47e4"),o=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},"7a1a":function(t,e,n){t.exports=n.p+"static/img/empty.bdec362e.png"},"82d1":function(t,e,n){"use strict";var a=n("4ea4");n("d81d"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var o=a(n("1da1")),i=n("145b"),r=a(n("8832")),s=a(n("1014")),c={components:{BsEmpty:r.default,UiPageHeader:s.default},data:function(){return{curIndex:0,scrollTop:0,categoryData:[],isLoading:!0}},onLoad:function(){this.getCategoryData()},onShow:function(){},methods:{handleSelectNav:function(t){this.curIndex=t,this.scrollTop=0},reachBottom:function(){if(this.curIndex>=this.categoryData.length)return!1;this.handleSelectNav(this.curIndex+1)},getCategoryData:function(){var t=this;return(0,o.default)(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.isLoading=!0,e.next=3,(0,i.ApiGetCategoryOneList)();case 3:n=e.sent,n.error,a=n.result,t.categoryData=a.map((function(e){return e.children=[],e.isLoading=!0,t.getTwoCategoryData(e),e})),t.isLoading=!1;case 8:case"end":return e.stop()}}),e)})))()},getTwoCategoryData:function(t){var e=this;return(0,o.default)(regeneratorRuntime.mark((function n(){var a,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,i.ApiGetCategoryTwoAndGoods)({categoryId:t.id});case 2:a=n.sent,a.error,o=a.result,e.$set(t,"children",o),e.$set(t,"isLoading",!1);case 7:case"end":return n.stop()}}),n)})))()}}};e.default=c},8832:function(t,e,n){"use strict";n.r(e);var a=n("b867"),o=n("7985");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("f35f");var r,s=n("f0c5"),c=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"54c060f6",null,!1,a["a"],r);e["default"]=c.exports},"91a7":function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("6b19")),i={name:"u-loadmore",mixins:[uni.$u.mpMixin,uni.$u.mixin,o.default],data:function(){return{dotText:"●"}},computed:{loadTextStyle:function(){return{color:this.color,fontSize:uni.$u.addUnit(this.fontSize),lineHeight:uni.$u.addUnit(this.fontSize),backgroundColor:this.bgColor}},showText:function(){var t="";return t="loadmore"==this.status?this.loadmoreText:"loading"==this.status?this.loadingText:"nomore"==this.status&&this.isDot?this.dotText:this.nomoreText,t}},methods:{loadMore:function(){"loadmore"==this.status&&this.$emit("loadmore")}}};e.default=i},9444:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var a={uLine:n("3e06").default,uLoadingIcon:n("891e").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-loadmore",style:[t.$u.addStyle(t.customStyle),{backgroundColor:t.bgColor,marginBottom:t.$u.addUnit(t.marginBottom),marginTop:t.$u.addUnit(t.marginTop),height:t.$u.addUnit(t.height)}]},[t.line?n("u-line",{attrs:{length:"140rpx",color:"#E6E8EB",hairline:!1}}):t._e(),n("v-uni-view",{staticClass:"u-loadmore__content",class:"loadmore"==t.status||"nomore"==t.status?"u-more":""},["loading"===t.status&&t.icon?n("v-uni-view",{staticClass:"u-loadmore__content__icon-wrap"},[n("u-loading-icon",{attrs:{color:t.iconColor,size:"17",mode:t.loadingIcon}})],1):t._e(),n("v-uni-text",{staticClass:"u-line-1",class:["nomore"==t.status&&1==t.isDot?"u-loadmore__content__dot-text":"u-loadmore__content__text"],style:[t.loadTextStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.loadMore.apply(void 0,arguments)}}},[t._v(t._s(t.showText))])],1),t.line?n("u-line",{attrs:{length:"140rpx",color:"#E6E8EB",hairline:!1}}):t._e()],1)},i=[]},"9b25":function(t,e,n){t.exports=n.p+"static/img/empty_goods.3495ba6d.png"},b83a:function(t,e,n){var a=n("4676");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("4f06").default;o("53270805",a,!0,{sourceMap:!1,shadowMode:!1})},b867:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"empty"},[t._t("icon",[n("v-uni-image",{staticClass:"empty--icon",attrs:{src:t.icon,mode:"widthFix"}})]),n("v-uni-view",{staticClass:"empty--tips"},[t._v(t._s(t.tips))]),t._t("btn")],2)},i=[]},c153:function(t,e,n){"use strict";n.r(e);var a=n("9444"),o=n("453d");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("c6b9");var r,s=n("f0c5"),c=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"17ee0c9a",null,!1,a["a"],r);e["default"]=c.exports},c6b9:function(t,e,n){"use strict";var a=n("5871"),o=n.n(a);o.a},f35f:function(t,e,n){"use strict";var a=n("5726"),o=n.n(a);o.a},fc54:function(t,e,n){var a=n("24fb");e=a(!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/* 垂直间距 */.empty[data-v-54c060f6]{box-sizing:border-box;padding:%?50?%;text-align:center;background:#fff;margin:%?20?% %?30?%;border-radius:%?16?%}.empty--tips[data-v-54c060f6]{font-size:%?26?%;color:#999;margin:%?30?% 0 %?50?%}.empty--icon[data-v-54c060f6]{width:%?380?%;height:%?240?%}',""]),t.exports=e},fe9e:function(t,e,n){var a=n("24fb");e=a(!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-view[data-v-17ee0c9a], uni-scroll-view[data-v-17ee0c9a], uni-swiper-item[data-v-17ee0c9a]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-loadmore[data-v-17ee0c9a]{display:flex;flex-direction:row;align-items:center;justify-content:center;flex:1}.u-loadmore__content[data-v-17ee0c9a]{margin:0 15px;display:flex;flex-direction:row;align-items:center;justify-content:center}.u-loadmore__content__icon-wrap[data-v-17ee0c9a]{margin-right:8px}.u-loadmore__content__text[data-v-17ee0c9a]{font-size:14px;color:#606266}.u-loadmore__content__dot-text[data-v-17ee0c9a]{font-size:15px;color:#909193}',""]),t.exports=e}}]); \ 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 deleted file mode 100644 index 1ddbce1..0000000 --- a/unpackage/dist/build/h5/static/js/pages-order-payResult.117e1af4.js +++ /dev/null @@ -1 +0,0 @@ -(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.bd53db39.js b/unpackage/dist/build/h5/static/js/pages-order-payResult.bd53db39.js new file mode 100644 index 0000000..5646493 --- /dev/null +++ b/unpackage/dist/build/h5/static/js/pages-order-payResult.bd53db39.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-payResult"],{"0553":function(t,e,n){var a=n("f774");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var r=n("4f06").default;r("8c3b92de",a,!0,{sourceMap:!1,shadowMode:!1})},"0558":function(t,e,n){"use strict";var a=n("0553"),r=n.n(a);r.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 a={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=a},3241:function(t,e,n){var a=n("24fb");e=a(!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-8a013a66]{text-align:center}.icon[data-v-8a013a66]{width:%?400?%;height:%?256?%;margin:%?169?% auto %?42?%}.title[data-v-8a013a66]{font-size:%?32?%;line-height:%?44?%;color:#333}.title--await[data-v-8a013a66]{margin:%?100?% 0 %?20?%;color:#666}.desc[data-v-8a013a66]{font-size:%?24?%;line-height:%?34?%;color:#999}.btns[data-v-8a013a66]{margin:%?74?% %?105?% 0;display:flex;justify-content:space-between}.recommend-title[data-v-8a013a66]{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-8a013a66]::after, .recommend-title[data-v-8a013a66]::before{display:inline-block;content:"";width:%?160?%;height:%?2?%;background:linear-gradient(90deg,#ccc,hsla(0,0%,80%,0))}.recommend-title[data-v-8a013a66]::before{background:linear-gradient(270deg,#ccc,hsla(0,0%,80%,0))}',""]),t.exports=e},"359f":function(t,e,n){"use strict";n.r(e);var a=n("7f16"),r=n("a5d5");for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("9f0b");var s,c=n("f0c5"),o=Object(c["a"])(r["default"],a["b"],a["c"],!1,null,"4c357d64",null,!1,a["a"],s);e["default"]=o.exports},"5a44":function(t,e,n){var a=n("24fb");e=a(!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},"7b33":function(t,e,n){"use strict";var a=n("d6b4"),r=n.n(a);r.a},"7bb3":function(t,e,n){"use strict";n.r(e);var a=n("b968"),r=n("e0a4");for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("0558"),n("7b33");var s,c=n("f0c5"),o=Object(c["a"])(r["default"],a["b"],a["c"],!1,null,"8a013a66",null,!1,a["a"],s);e["default"]=o.exports},"7f16":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var r=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 a=n("5a44");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var r=n("4f06").default;r("4898df4d",a,!0,{sourceMap:!1,shadowMode:!1})},"9f0b":function(t,e,n){"use strict";var a=n("92fd"),r=n.n(a);r.a},a5d5:function(t,e,n){"use strict";n.r(e);var a=n("2702"),r=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=r.a},b968:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"main"},[t.orderInfo?[t.orderInfo.isSuccess?[a("v-uni-image",{staticClass:"icon",attrs:{src:n("22ba")}}),a("v-uni-view",{staticClass:"title"},[t._v("支付成功")]),a("v-uni-view",{staticClass:"desc"},[t._v("您的包裹整装待发")]),a("v-uni-view",{staticClass:"btns"},[a("UiButton",{staticClass:"btn",attrs:{type:"primaryLine"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.replaceAll("/")}}},[t._v("返回首页")]),a("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),a("v-uni-view",{staticClass:"recommend-title"},[t._v("为您推荐")]),a("BsChoiceGoods")]:[a("v-uni-image",{staticClass:"icon",attrs:{src:n("8b16")}}),a("v-uni-view",{staticClass:"title"},[t._v("支付失败")]),a("v-uni-view",{staticClass:"desc"},[t._v("请重新试试")]),a("v-uni-view",{staticClass:"btns"},[a("UiButton",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.replace("/orderDetail?id="+t.$Route.query.orderId)}}},[t._v("查看订单详情")])],1)]]:[a("v-uni-view",{staticClass:"title title--await"},[t._v("结果查询中")]),a("v-uni-view",{staticClass:"desc"},[t._v("正在与支付渠道确认支付结果,请您耐心等待...")])]],2)},i=[]},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 a=n("5767"),r="/mall/trade",i=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(r,"/app/tradeOrder/page"),t))};e.ApiGetOrderList=i;var s=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(r,"/app/tradeOrder/buyAdvanceOrder"),t))};e.ApiGetBeforeOrder=s;var c=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(r,"/app/tradeOrder/cartAdvanceOrder"),t))};e.ApiGetBeforeCartOrder=c;var o=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(r,"/app/tradeOrder/").concat(t)))};e.ApiGetOrderDetail=o;var u=function(t){var e=t.orderProductId;return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(r,"/app/tradeOrder/product/").concat(e)))};e.ApiGetOrderProductDetail=u;var d=function(t){var e=t.orderId;return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(r,"/app/tradeOrder/payResult/").concat(e)))};e.ApiGetOrderPaySatus=d;var p=function(t){var e=t.orderId;return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(r,"/app/tradeOrder/logistics/").concat(e)))};e.ApiGetOrderLogistics=p;var f=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.put("".concat(r,"/app/tradeOrder/receive"),t))};e.ApiPutOrderReceive=f;var l=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.post("".concat(r,"/app/tradeOrder/submitOrder"),t))};e.ApiPostSubmitOrder=l;var v=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.put("".concat(r,"/app/tradeOrder/cancel"),t))};e.ApiPutCancelOrder=v;var b=function(){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(r,"/app/tradeOrder/statistics")))};e.ApiGetOrderStatistics=b;var A=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.post("".concat(r,"/app/refundOrder/applyRefund"),t))};e.ApiPostApplySaleAfter=A;var g=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.put("".concat(r,"/app/refundOrder/updateRefund"),t))};e.ApiPostEditSaleAfter=g;var y=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.put("".concat(r,"/app/refundOrder/cancelRefund"),t))};e.ApiPostCancelSaleAfter=y;var h=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(r,"/app/refundOrder/page"),t))};e.ApiGetSaleAfterOrderList=h;var m=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(r,"/app/refundOrder/refundInfo"),t))};e.ApiGetSaleAfterOrderDetail=m;var O=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(r,"/app/refundOrder/logisticsCompany")))};e.ApiGetLogisticsCompanylist=O;var w=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.put("".concat(r,"/app/refundOrder/completeRefund"),t))};e.ApiPutLogisticsInfo=w},d6b4:function(t,e,n){var a=n("3241");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var r=n("4f06").default;r("8814d4dc",a,!0,{sourceMap:!1,shadowMode:!1})},daaf:function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var r=a(n("1da1")),i=a(n("359f")),s=a(n("91cc")),c=n("c0d4"),o={components:{UiButton:i.default,BsChoiceGoods:s.default},data:function(){return{orderInfo:"",reuqestNum:0}},onShow:function(){this.getOrderInfo()},methods:{getOrderInfo:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.reuqestNum++,e.next=3,(0,c.ApiGetOrderPaySatus)({orderId:t.$Route.query.orderId});case 3:if(n=e.sent,a=n.error,r=n.result,!a){e.next=9;break}return uin.$u.toast(a.message),e.abrupt("return",!1);case 9:if(r.isSuccess||!(t.reuqestNum<5)){e.next=12;break}return setTimeout((function(){t.getOrderInfo()}),1e3),e.abrupt("return",!1);case 12:t.orderInfo=r,uni.setNavigationBarTitle({title:r.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},e0a4:function(t,e,n){"use strict";n.r(e);var a=n("daaf"),r=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=r.a},f774:function(t,e,n){var a=n("24fb");e=a(!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-8a013a66]{text-align:center}',""]),t.exports=e}}]); \ No newline at end of file