|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-submit"],{"0ab6":function(e,t,a){var r=a("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.ui-btn[data-v-34e76cba]{display:inline-block;padding:0 %?50?%;border-radius:%?50?%}.ui-btn__normal[data-v-34e76cba]{height:%?70?%;line-height:%?70?%;font-size:%?28?%}.ui-btn__min[data-v-34e76cba]{height:%?50?%;line-height:%?50?%;font-size:%?28?%}.ui-btn__max[data-v-34e76cba]{width:%?690?%;height:%?80?%;line-height:%?80?%;font-size:%?32?%}.ui-btn__gradual[data-v-34e76cba]{background:linear-gradient(270deg,#ff7f39,#ffa35b);color:#fff}.ui-btn__solid[data-v-34e76cba]{background:#ff875b;color:#fff}.ui-btn__line[data-v-34e76cba]{background:none;color:#333;border:1px solid #c0b9b9}.ui-btn__primaryLine[data-v-34e76cba]{background:none;color:#ff875b;border:1px solid #ff875b}.ui-btn__disabed[data-v-34e76cba]{opacity:.5}',""]),e.exports=t},"14d4":function(e,t,a){"use strict";var r=a("d829"),n=a.n(r);n.a},"227e":function(e,t,a){"use strict";var r=a("4ea4");a("7db0"),a("d81d"),a("ac1f"),a("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("96cf");var n=r(a("1da1")),i=r(a("f196")),s=a("c0d4"),o=r(a("359f")),u={components:{UiCell:i.default,UiButton:o.default},data:function(){return{address:{},userMessage:"",orderInfo:{},payType:"wxpay"}},onLoad:function(){var e=this;this.getBeforeOrder(),uni.$on("changeAddress",(function(t,a){"submitOrder"==a&&(e.address=t,e.getBeforeOrder(t.id))})),this.address=this.$store.state.address.find((function(e){return e.isDefault}))||{}},methods:{getBeforeOrder:function(e){var t=this;return(0,n.default)(regeneratorRuntime.mark((function a(){var r,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(r=t.$Route.query,n={},"cart"!==r.mode){a.next=6;break}return a.next=5,(0,s.ApiGetBeforeCartOrder)({cartIds:r.ids,recipientAddressId:e});case 5:n=a.sent;case 6:if("buyNow"!==r.mode){a.next=10;break}return a.next=9,(0,s.ApiGetBeforeOrder)({productSkuId:r.skuId,quantity:r.num,activityType:r.activityType,recipientAddressId:e});case 9:n=a.sent;case 10:if(!n.error){a.next=13;break}return uni.$u.toast(n.error.message),a.abrupt("return",!1);case 13:t.orderInfo=n.result;case 14:case"end":return a.stop()}}),a)})))()},selectAddress:function(){var e=this.address.id,t=e?"&id=".concat(e):"&status=created";this.$Router.push("/addressList?source=submitOrder".concat(t))},submit:function(){var e=this;return(0,n.default)(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e.$Route.query,e.address.id){t.next=4;break}return uni.$u.toast("请选择收货地址"),t.abrupt("return",!1);case 4:return t.next=6,(0,s.ApiPostSubmitOrder)({orderSource:2,recipientAddressId:e.address.id,products:e.orderInfo.products.map((function(e){return{productId:e.productId,productSkuId:e.productSkuId,quantity:e.quantity,activityType:a.activityType}})),userMessage:e.userMessage});case 6:if(r=t.sent,n=r.error,r.result,!n){t.next=12;break}return uni.$u.toast(n.message),t.abrupt("return",!1);case 12:case"end":return t.stop()}}),t)})))()},wxpay:function(e){var t=this;return(0,n.default)(regeneratorRuntime.mark((function a(){var r,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,(0,s.ApiPostWxPay)({orderId:e,payTypeEnum:"WXPAY"});case 2:r=a.sent,n=r.error,r.result,n?t.$Router.replace("/payFail?ordId=".concat(e)):t.$Router.replace("/paySuccess?ordId=".concat(e));case 6:case"end":return a.stop()}}),a)})))()}}};t.default=u},2702:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{type:{type:String,default:"line"},size:{type:String,default:"normal"},disable:{type:Boolean,default:!1}},methods:{click:function(){!this.disabed&&this.$emit("click")}}};t.default=r},"2a24":function(e,t,a){"use strict";a.r(t);var r=a("aae7"),n=a.n(r);for(var i in r)"default"!==i&&function(e){a.d(t,e,(function(){return r[e]}))}(i);t["default"]=n.a},"32c8":function(e,t,a){var r=a("8485");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=a("4f06").default;n("2a4d80d2",r,!0,{sourceMap:!1,shadowMode:!1})},"359f":function(e,t,a){"use strict";a.r(t);var r=a("b179"),n=a("a5d5");for(var i in n)"default"!==i&&function(e){a.d(t,e,(function(){return n[e]}))}(i);a("e7a4");var s,o=a("f0c5"),u=Object(o["a"])(n["default"],r["b"],r["c"],!1,null,"34e76cba",null,!1,r["a"],s);t["default"]=u.exports},"35bf":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAAkCAMAAAA96dOpAAAAAXNSR0IArs4c6QAAANhQTFRFAAAAAL9AAL9gAL9VAL9gAL9ZAMhZAL9gAMZeAL9bCL9gB8VfB79cBr9gBsRfBr9dBb9gBb9gBL9cBL9gCL9gCMJfBL9eCL9eB8JdB79gB79eBr9cBr9gBsJfBsFeBcFeBb9eB8FeBcFfB8FfB8FeB8FfBsFeBsFfBsFeBsFfB8FfB8FfB79fB8BfBr9fBsBfBsBeBsBfBsBfBsBfB8BeB8BfB8BeB8BfB8BfB8BeB8BfBsBfBsBfBsBfB8BfB8BeB8BfB8BeB8BfBsBfBsBeBsBfB8BeB8BfMAtMUAAAAEd0Uk5TAAQIDBAUFxgbHCAjJCgrLDA4QEBAQ0RER0hMUFBTV19kZ2trb3N3e3+Lj5OXm5+fo6evs7O3u7u/w8PHy8/X29/j5+/z9/v3ah54AAABW0lEQVQYGYXBDUOaQAAG4PdAxbls7cP14VbbbBS4zXRllHUQnLz//x+FHF2IQM+DLfuTf6sopYpWfybv0aB3EbIsdHvY1fPXrFr7HVScJayTfEeZNWOTKwHDvmOzwEbBumObQEC7YqvFHnKnbJHOPkDrxGyU+A4yow6ACzaJ3Q4y/Tl/AyJmvfCHhYxwFRkLHLLWaozcSHLjED619OsjjcVn5Ppzah7uWXCsKXPr2RA54SoWAkQs/AI+hWTiOdBGkkYEvpDIfPxiQ+vPWZKCxhFeCVdxCyK++A9jJLntCQ809qD156xaYUrDx4ZwFXdMMaaR2ACOQtY4gZXQuMT+NeskFuDxlWI9D4Cj+Jaki8yEbzlH7obtltBsyTbSRsGRbCYdGN0lmyy7KBG3rJVeCmx5YJ3FEBWKmZRl6u8BqoYk1bl97AUxN+LAO7aw6xt5M4A2GLxDk59yjFbPitkDt/hyJRgAAAAASUVORK5CYII="},"3c8f":function(e,t,a){"use strict";a.r(t);var r=a("227e"),n=a.n(r);for(var i in r)"default"!==i&&function(e){a.d(t,e,(function(){return r[e]}))}(i);t["default"]=n.a},"3f3b":function(e,t,a){"use strict";var r=a("f9ea"),n=a.n(r);n.a},"41ba":function(e,t,a){"use strict";a("ac1f"),a("466d"),Object.defineProperty(t,"__esModule",{value:!0}),t.IsDouble=t.IsInteger=t.IsNumber=t.IsPhone=t.Debounce=t.ToAsyncAwait=void 0;var r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?e.then((function(e){return{error:null,result:e}})).catch((function(e){return{error:e,result:null}})):e};t.ToAsyncAwait=r;var n=function(e,t){var a;return function(){var r=this,n=arguments;a&&clearTimeout(a),a=setTimeout((function(){e.apply(r,n)}),t)}};t.Debounce=n;var i=function(e){return/^(1[3-9]\d{9})$/.test(e)};t.IsPhone=i;var s=function(e){return!(!isDouble(e)&&!isInteger(e))};t.IsNumber=s;var o=function(e){if(null==e||""==e)return!1;var t=e.match(/^[-\+]?\d+$/);return null!=t};t.IsInteger=o;var u=function(e){if(null==e||""==e)return!1;var t=e.match(/^[-\+]?\d+(\.\d+)?$/);return null!=t};t.IsDouble=u},4290:function(e,t,a){"use strict";a.r(t);var r=a("7336"),n=a("2a24");for(var i in n)"default"!==i&&function(e){a.d(t,e,(function(){return n[e]}))}(i);a("14d4");var s,o=a("f0c5"),u=Object(o["a"])(n["default"],r["b"],r["c"],!1,null,"4d47c3fb",null,!1,r["a"],s);t["default"]=u.exports},"45d0":function(e,t,a){"use strict";var r=a("32c8"),n=a.n(r);n.a},5767:function(e,t,a){"use strict";var r=a("dbce"),n=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0});var i={};t.default=void 0;var s=n(a("5530")),o=r(a("41ba"));Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var u=r(a("d071"));Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=(0,s.default)((0,s.default)({},o),{},{requset:u});t.default=c},"59a3":function(e,t,a){"use strict";var r;a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return r}));var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"uiCell",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.$emit("click")}}},[e._t("icon"),r("v-uni-view",{staticClass:"uiCell--left"},[r("v-uni-text",{staticClass:"uiCell--title"},[e._v(e._s(e.title))]),r("v-uni-text",{staticClass:"uiCell--label"},[e._v(e._s(e.label))])],1),e._t("value",[r("v-uni-text",{staticClass:"uiCell--value"},[e._v(e._s(e.value))])]),e.rightIcon?e._t("right-icon",[r("v-uni-image",{staticClass:"uiCell--rightIcon",attrs:{src:a("6eb6")}})]):e._e()],2)},i=[]},"6eb6":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAUCAMAAACDMFxkAAAAAXNSR0IArs4c6QAAAGZQTFRFAAAAv7+/v7+/ysrKxsbGy8vLzMzM0NDQy8vLz8/PzMzMysrKzMzMy8vLzMzMy8vLy8vLzc3Ny8vLzMzMzMzMy8vLzc3Nzc3NzMzMzMzMzMzMy8vLzMzMzMzMzMzMy8vLzMzMzMzMIxnl6wAAACF0Uk5TAAQMGCQnKCssOzxIS09QU1RXWG+Dj4+nv9PX5+fv8/v73LQA2wAAAF9JREFUCNdlz0kWgCAMA1Cc5xEHQCz0/pd0IdH3tKu/SlKh90iEU7yCseYFTgxLOLU8wfnpOrgmquDGUwGP/shgyebPgW1+q3VU3qqI6lBBvg+yPH/nxOYZqXhD9vvQBZbIBgiaTuluAAAAAElFTkSuQmCC"},7336:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return r}));var r={uIcon:a("a653").default,uLine:a("3e06").default},n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"u-cell",class:[e.customClass],style:[e.$u.addStyle(e.customStyle)],attrs:{"hover-class":e.disabled||!e.clickable&&!e.isLink?"":"u-cell--clickable","hover-stay-time":250},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clickHandler.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"u-cell__body",class:[e.center&&"u-cell--center","large"===e.size&&"u-cell__body--large"]},[a("v-uni-view",{staticClass:"u-cell__body__content"},[e.$slots.icon||e.icon?a("v-uni-view",{staticClass:"u-cell__left-icon-wrap"},[e.$slots.icon?e._t("icon"):a("u-icon",{attrs:{name:e.icon,"custom-style":e.iconStyle,size:"large"===e.size?22:18}})],2):e._e(),a("v-uni-view",{staticClass:"u-cell__title"},[e._t("title",[e.title?a("v-uni-text",{staticClass:"u-cell__title-text",class:[e.disabled&&"u-cell--disabled","large"===e.size&&"u-cell__title-text--large"],style:[e.titleTextStyle]},[e._v(e._s(e.title))]):e._e()]),e._t("label",[e.label?a("v-uni-text",{staticClass:"u-cell__label",class:[e.disabled&&"u-cell--disabled","large"===e.size&&"u-cell__label--large"]},[e._v(e._s(e.label))]):e._e()])],2)],1),e._t("value",[e.$u.test.empty(e.value)?e._e():a("v-uni-text",{staticClass:"u-cell__value",class:[e.disabled&&"u-cell--disabled","large"===e.size&&"u-cell__value--large"]},[e._v(e._s(e.value))])]),e.$slots["right-icon"]||e.isLink?a("v-uni-view",{staticClass:"u-cell__right-icon-wrap",class:["u-cell__right-icon-wrap--"+e.arrowDirection]},[e.$slots["right-icon"]?e._t("right-icon"):a("u-icon",{attrs:{name:e.rightIcon,"custom-style":e.rightIconStyle,color:e.disabled?"#c8c9cc":"info",size:"large"===e.size?18:16}})],2):e._e()],2),e.border?a("u-line"):e._e()],1)},i=[]},8219:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return r}));var r={uCell:a("4290").default},n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",[r("u-cell",{staticClass:"address",attrs:{border:!1,isLink:!0},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.selectAddress.apply(void 0,arguments)}}},[r("v-uni-view",{staticClass:"address--title",attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.address.province?e.address.province+e.address.city+e.address.area:"请选择收货地址"))]),r("v-uni-image",{staticClass:"address--icon",attrs:{slot:"icon",src:a("cc7f")},slot:"icon"}),e.address.province?r("v-uni-view",{staticClass:"address--label",attrs:{slot:"label"},slot:"label"},[r("v-uni-text",[e._v("收货人:"+e._s(e.address.name))]),r("v-uni-text",[e._v(e._s(e.address.phone))])],1):e._e()],1),r("v-uni-view",{staticClass:"goods-group"},e._l(e.orderInfo.products,(function(t){return r("v-uni-view",{key:t.productId,staticClass:"goods-group--item"},[r("v-uni-image",{staticClass:"goods-group--item-image",attrs:{mode:"widthFix",src:t.productImageUrl}}),r("v-uni-view",[r("v-uni-view",{staticClass:"goods-group--item-con"},[r("v-uni-text",{staticClass:"goods-group--item-title"},[e._v(e._s(t.productName))]),r("v-uni-text",{staticClass:"goods-group--item-pirce"},[e._v("¥"+e._s(t.productPrice))])],1),r("v-uni-view",{staticClass:"goods-group--item-desc"},[r("v-uni-text",[e._v(e._s(t.skuDescribe))]),r("v-uni-text",{staticClass:"goods-group--item-num"},[e._v("x"+e._s(t.quantity))])],1)],1)],1)})),1),r("v-uni-view",{staticClass:"service"},[r("UiCell",{staticClass:"service--cell",attrs:{title:"配送方式",value:"快递配送",rightIcon:!1}}),r("UiCell",{staticClass:"service--cell service--cell__last",attrs:{title:"买家留言",value:"快递配送",rightIcon:!1}},[r("v-uni-textarea",{staticClass:"service--remark",attrs:{slot:"value","auto-height":!0,maxlength:"50",placeholder:"填写您想要备注的信息,50字以内"},slot:"value",model:{value:e.userMessage,callback:function(t){e.userMessage=t},expression:"userMessage"}})],1)],1),r("v-uni-view",{staticClass:"play"},[r("v-uni-text",{staticClass:"play--title"},[e._v("支付方式")]),r("v-uni-radio-group",[r("u-cell",{attrs:{title:"微信支付",border:!1},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.payType="wxpay"}}},[r("v-uni-image",{staticClass:"play--icon",attrs:{slot:"icon",src:a("35bf")},slot:"icon"}),r("v-uni-radio",{staticClass:"play--radio",attrs:{slot:"right-icon",color:"#FF875B",checked:"wxpay"==e.payType},slot:"right-icon"})],1),r("u-cell",{attrs:{title:"支付宝支付",border:!1},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.payType="alipay"}}},[r("v-uni-image",{staticClass:"play--icon",attrs:{slot:"icon",src:a("e07a")},slot:"icon"}),r("v-uni-radio",{staticClass:"play--radio",attrs:{slot:"right-icon",color:"#FF875B",checked:"alipay"==e.payType},slot:"right-icon"})],1)],1)],1),r("v-uni-view",{staticClass:"amount"},[r("u-cell",{attrs:{title:"商品总额",value:"¥"+e.orderInfo.totalAmount,border:!1}}),r("u-cell",{attrs:{title:"运费",value:"¥"+e.orderInfo.shippingAmount,border:!1}})],1),r("v-uni-view",{staticClass:"footer"},[r("v-uni-view",{staticClass:"footer--total"},[r("v-uni-text",[e._v("合计:")]),r("v-uni-text",{staticClass:"footer--amount"},[e._v("¥"+e._s(e.orderInfo.payAmount))])],1),r("UiButton",{staticClass:"footer--btn",attrs:{type:"solid"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submit.apply(void 0,arguments)}}},[e._v("去支付")])],1)],1)},i=[]},8485:function(e,t,a){var r=a("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-page-body[data-v-d518a09a]{background:#f8f8f8;padding-bottom:%?140?%}.address[data-v-d518a09a]{background:#fff}.address[data-v-d518a09a] .u-cell__body__content{padding:%?10?% 0}.address--title[data-v-d518a09a]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:%?500?%}.address--title__grey[data-v-d518a09a]{color:#999}.address--icon[data-v-d518a09a]{width:%?28?%;height:%?34?%;margin-right:%?30?%}.address--label[data-v-d518a09a]{margin-top:%?26?%}.address--label uni-text[data-v-d518a09a]{font-size:%?24?%;color:#999;margin-right:%?40?%}.goods-group[data-v-d518a09a]{background:#fff;margin:%?20?% 0}.goods-group--item[data-v-d518a09a]{display:flex;justify-content:space-between;padding:%?30?%;border-bottom:1px solid #eee}.goods-group--item-image[data-v-d518a09a]{width:%?180?%;height:%?180?%;margin-right:%?30?%}.goods-group--item-con[data-v-d518a09a]{width:%?510?%;display:flex;justify-content:space-between;font-size:%?28?%;color:#333;line-height:%?39?%}.goods-group--item-title[data-v-d518a09a]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.goods-group--item-pirce[data-v-d518a09a]{font-size:%?22?%;margin-left:%?60?%}.goods-group--item-desc[data-v-d518a09a]{width:%?510?%;font-size:%?24?%;color:#999;margin-top:%?20?%;line-height:%?39?%;display:flex;justify-content:space-between}.goods-group--item-num[data-v-d518a09a]{font-size:%?28?%;margin-left:%?60?%}.service[data-v-d518a09a]{background:#fff;margin:%?20?% 0}.service--cell[data-v-d518a09a]{padding:0 %?30?%}.service--cell__last[data-v-d518a09a]{border:0}.service--remark[data-v-d518a09a]{font-size:%?28?%;width:%?500?%;text-align:right}.play[data-v-d518a09a]{background:#fff;margin:%?20?% 0}.play--title[data-v-d518a09a]{font-size:%?28?%;padding:%?30?%;display:block}.play--icon[data-v-d518a09a]{width:%?39?%;height:%?39?%;margin-right:%?20?%}.play--radio[data-v-d518a09a]{-webkit-transform:scale(70%);transform:scale(70%)}.amount[data-v-d518a09a]{background:#fff}.footer[data-v-d518a09a]{display:flex;align-items:center;justify-content:space-between;height:%?120?%;background:#fff;padding:0 %?30?%;position:fixed;bottom:0;right:0;left:0}.footer--total[data-v-d518a09a]{color:#666;font-size:%?24?%;display:flex;align-items:center}.footer--amount[data-v-d518a09a]{font-size:%?32?%;color:#ff512b;margin-left:%?10?%}.footer--btn[data-v-d518a09a]{margin:0}body.?%PAGE?%[data-v-d518a09a]{background:#f8f8f8}',""]),e.exports=t},"8eac":function(e,t,a){"use strict";a.r(t);var r=a("c04a"),n=a.n(r);for(var i in r)"default"!==i&&function(e){a.d(t,e,(function(){return r[e]}))}(i);t["default"]=n.a},a5d5:function(e,t,a){"use strict";a.r(t);var r=a("2702"),n=a.n(r);for(var i in r)"default"!==i&&function(e){a.d(t,e,(function(){return r[e]}))}(i);t["default"]=n.a},aae7:function(e,t,a){"use strict";var r=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a("ad8d")),i={name:"u-cell",data:function(){return{}},mixins:[uni.$u.mpMixin,uni.$u.mixin,n.default],computed:{titleTextStyle:function(){return uni.$u.addStyle(this.titleStyle)}},methods:{clickHandler:function(e){this.disabled||(this.$emit("click",{name:this.name}),this.openPage(),this.stop&&this.preventEvent(e))}}};t.default=i},abd3:function(e,t,a){var r=a("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.uiCell[data-v-4ba2f3f6]{min-height:%?100?%;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:center;background:#fff}.uiCell--title[data-v-4ba2f3f6]{color:#333;font-size:%?28?%;display:block}.uiCell--label[data-v-4ba2f3f6]{color:#999;font-size:%?24?%;display:block;margin-top:%?10?%}.uiCell--value[data-v-4ba2f3f6]{flex:1;padding:0 %?10?%;text-align:right;font-size:%?28?%}.uiCell--rightIcon[data-v-4ba2f3f6]{width:%?10?%;height:%?20?%;margin-left:%?18?%}',""]),e.exports=t},ad8d:function(e,t,a){"use strict";a("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{title:{type:[String,Number],default:uni.$u.props.cell.title},label:{type:[String,Number],default:uni.$u.props.cell.label},value:{type:[String,Number],default:uni.$u.props.cell.value},icon:{type:String,default:uni.$u.props.cell.icon},disabled:{type:Boolean,default:uni.$u.props.cell.disabled},border:{type:Boolean,default:uni.$u.props.cell.border},center:{type:Boolean,default:uni.$u.props.cell.center},url:{type:String,default:uni.$u.props.cell.url},linkType:{type:String,default:uni.$u.props.cell.linkType},clickable:{type:Boolean,default:uni.$u.props.cell.clickable},isLink:{type:Boolean,default:uni.$u.props.cell.isLink},required:{type:Boolean,default:uni.$u.props.cell.required},rightIcon:{type:String,default:uni.$u.props.cell.rightIcon},arrowDirection:{type:String,default:uni.$u.props.cell.arrowDirection},iconStyle:{type:[Object,String],default:function(){return uni.$u.props.cell.iconStyle}},rightIconStyle:{type:[Object,String],default:function(){return uni.$u.props.cell.rightIconStyle}},titleStyle:{type:[Object,String],default:function(){return uni.$u.props.cell.titleStyle}},size:{type:String,default:uni.$u.props.cell.size},stop:{type:Boolean,default:uni.$u.props.cell.stop},name:{type:[Number,String],default:uni.$u.props.cell.name}}};t.default=r},b179:function(e,t,a){"use strict";var r;a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return r}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-button",{class:"ui-btn ui-btn__"+e.type+" ui-btn__"+e.size+" "+(e.disable?" x ui-btn__disabed":" xx"),on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.click.apply(void 0,arguments)}}},[e._t("default")],2)},i=[]},b8a3:function(e,t,a){"use strict";a.r(t);var r=a("8219"),n=a("3c8f");for(var i in n)"default"!==i&&function(e){a.d(t,e,(function(){return n[e]}))}(i);a("45d0");var s,o=a("f0c5"),u=Object(o["a"])(n["default"],r["b"],r["c"],!1,null,"d518a09a",null,!1,r["a"],s);t["default"]=u.exports},c04a:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{title:{type:String,default:""},label:{type:String,default:""},value:{type:String,default:""},rightIcon:{type:Boolean,default:!0}}};t.default=r},c0d4:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiPutLogisticsInfo=t.ApiGetLogisticsCompanylist=t.ApiGetSaleAfterOrderDetail=t.ApiGetSaleAfterOrderList=t.ApiPostCancelSaleAfter=t.ApiPostEditSaleAfter=t.ApiPostApplySaleAfter=t.ApiGetOrderStatistics=t.ApiPostWxPay=t.ApiPutCancelOrder=t.ApiPostSubmitOrder=t.ApiPutOrderReceive=t.ApiGetOrderLogistics=t.ApiGetOrderProductDetail=t.ApiGetOrderDetail=t.ApiGetBeforeCartOrder=t.ApiGetBeforeOrder=t.ApiGetOrderList=void 0;var r=a("5767"),n="/mall/trade",i=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(n,"/app/tradeOrder/page"),e))};t.ApiGetOrderList=i;var s=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(n,"/app/tradeOrder/buyAdvanceOrder"),e))};t.ApiGetBeforeOrder=s;var o=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(n,"/app/tradeOrder/cartAdvanceOrder"),e))};t.ApiGetBeforeCartOrder=o;var u=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(n,"/app/tradeOrder/").concat(e)))};t.ApiGetOrderDetail=u;var c=function(e){var t=e.orderProductId;return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(n,"/app/tradeOrder/product/").concat(t)))};t.ApiGetOrderProductDetail=c;var l=function(e){var t=e.orderId;return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(n,"/app/tradeOrder/logistics/").concat(t)))};t.ApiGetOrderLogistics=l;var d=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.put("".concat(n,"/app/tradeOrder/receive"),e))};t.ApiPutOrderReceive=d;var f=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.post("".concat(n,"/app/tradeOrder/submitOrder"),e))};t.ApiPostSubmitOrder=f;var p=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.post("".concat(n,"/app/tradeOrder/cancel"),e))};t.ApiPutCancelOrder=p;var b=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(n,"/pay/payTest"),e))};t.ApiPostWxPay=b;var v=function(){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(n,"/app/tradeOrder/statistics")))};t.ApiGetOrderStatistics=v;var A=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.post("".concat(n,"/app/refundOrder/applyRefund"),e))};t.ApiPostApplySaleAfter=A;var g=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.put("".concat(n,"/app/refundOrder/updateRefund"),e))};t.ApiPostEditSaleAfter=g;var y=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.put("".concat(n,"/app/refundOrder/cancelRefund"),e))};t.ApiPostCancelSaleAfter=y;var h=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(n,"/app/refundOrder/page"),e))};t.ApiGetSaleAfterOrderList=h;var m=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(n,"/app/refundOrder/refundInfo"),e))};t.ApiGetSaleAfterOrderDetail=m;var M=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(n,"/app/refundOrder/logisticsCompany")))};t.ApiGetLogisticsCompanylist=M;var _=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.put("".concat(n,"/app/refundOrder/completeRefund"),e))};t.ApiPutLogisticsInfo=_},c616:function(e,t,a){var r=a("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-view[data-v-4d47c3fb], uni-scroll-view[data-v-4d47c3fb], uni-swiper-item[data-v-4d47c3fb]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-cell__body[data-v-4d47c3fb]{display:flex;flex-direction:row;box-sizing:border-box;padding:10px 15px;font-size:15px;color:#303133;align-items:center}.u-cell__body__content[data-v-4d47c3fb]{display:flex;flex-direction:row;align-items:center;flex:1}.u-cell__body--large[data-v-4d47c3fb]{padding-top:13px;padding-bottom:13px}.u-cell__left-icon-wrap[data-v-4d47c3fb], .u-cell__right-icon-wrap[data-v-4d47c3fb]{display:flex;flex-direction:row;align-items:center;font-size:16px}.u-cell__left-icon-wrap[data-v-4d47c3fb]{margin-right:4px}.u-cell__right-icon-wrap[data-v-4d47c3fb]{margin-left:4px;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.u-cell__right-icon-wrap--up[data-v-4d47c3fb]{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.u-cell__right-icon-wrap--down[data-v-4d47c3fb]{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.u-cell__title[data-v-4d47c3fb]{flex:1}.u-cell__title-text[data-v-4d47c3fb]{font-size:15px;line-height:22px;color:#303133}.u-cell__title-text--large[data-v-4d47c3fb]{font-size:16px}.u-cell__label[data-v-4d47c3fb]{margin-top:5px;font-size:12px;color:#909193;line-height:18px}.u-cell__label--large[data-v-4d47c3fb]{font-size:14px}.u-cell__value[data-v-4d47c3fb]{text-align:right;font-size:14px;line-height:24px;color:#606266}.u-cell__value--large[data-v-4d47c3fb]{font-size:15px}.u-cell--clickable[data-v-4d47c3fb]{background-color:#f3f4f6}.u-cell--disabled[data-v-4d47c3fb]{color:#c8c9cc;cursor:not-allowed}.u-cell--center[data-v-4d47c3fb]{align-items:center}',""]),e.exports=t},cc7f:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAiCAMAAAB7o0l7AAAAAXNSR0IArs4c6QAAAM9QTFRFAAAAAAAAICAgKioqMzMzKioqLy8vLi4uMTExMzMzMjIyNDQ0MzMzLi4uMTExMDAwMjIyMTExMjIyMzMzMTExMDAwNDQ0MTExMTExMjIyMzMzMjIyMDAwNDQ0MTExNDQ0MjIyMzMzMjIyNDQ0MjIyMzMzMzMzMjIyMzMzMjIyMjIyMzMzMjIyMzMzMjIyMjIyMzMzMzMzMzMzMjIyMzMzMzMzMzMzMjIyMzMzMzMzMzMzMjIyMzMzMjIyMzMzMzMzMjIyMjIyMzMzMzMzMzMzJx6mggAAAER0Uk5TAAQIDBQYGxwfIyQnKCwvMDM0ODw/QEBDREhLTE9TVFRXX2BjZ293e4ePk5efn6Onq6+zu7/Dx8vP09fb29/n6+/z9/u/5GCyAAABh0lEQVQYGXXBi3bSQABF0TuEtBahVUABW6XUBhO0ovIIEhyY5vz/NzkJLFbAureOuvHCgl3EXZ0xo4yjbGRUcZVyIr3SUc8BNhnUpfogsYDr6aCXgxvXdFAbO8h7KjUcrFuqaK3BNeSZFLJQJ8I1LOWNwLV0puVgJGkDY+29ub+70N4YNlIHbE2FDxnez1cq1Cx0FEOiwiN729cqJBBrDgN5rRzs9185/DbyBjCXhbq8b7AIpNYO7uTVwQpQIYOmvC8wUQEQoAKgwid4UgHQFkJ5GbyVF8NEXghbpfBO3ldIL6Sug768AaSaQCyv4cDNUiBVIYZEfbBG3jCn9OdSXs1CX2YDn1VoL4Dnp7oKj7CRFMHuUqXwfSdQ6XIHkSSzgmWgE8ESVkbeTQ5zowozg/xGpQfghyqmwIMOIiDRUQJEOkqASAcRkKhiCtyr9BGYqsrMIO/J6+YwMzoRrMBdS9cOVoHOhBnYRsNCFuofTQvrNdimXtB2eK6tF93mkN/qP4bb7VAVfwE0H1qiswnZRgAAAABJRU5ErkJggg=="},d071:function(e,t,a){"use strict";var r=a("4ea4");a("4de4"),a("caad"),a("d3b7"),a("ac1f"),a("2532"),a("38cf"),a("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.MsbRequestTk=t.MsbRequest=void 0;var n=r(a("5530")),i=r(a("fda4")),s=r(a("4308")),o="test",u={test:"http://k8s-horse-gateway.mashibing.cn",release:"",prod:""},c=function(e,t){if(p(t),200===e.statusCode){var a=e.data;return"SUCCESS"===a.code?a.data:"TOKEN_EXPIRE"===a.code?(uni.navigateTo({url:"/login"}),a):Promise.reject(a)}return e},l=function(e,t){return p(t),{message:e.errMsg,code:e.statusCode}},d=[],f=function(e){var t={url:e.url,method:e.method,data:e.data};return d.includes(JSON.stringify(t))?Promise.reject({message:"请勿频繁操作"}):(d.push(JSON.stringify(t)),!1)},p=function(e){d=d.filter((function(t){return t!==JSON.stringify({url:e.url,method:e.method,data:e.data})}))},b=new i.default;t.MsbRequest=b,b.baseUrl=u[o],b.use("request",(function(e){if(e.header.repeat){var t=f(e);if(t)return t}return e})),b.use("success",c),b.use("error",l);var v=new i.default;t.MsbRequestTk=v,v.baseUrl=u[o],v.use("request",(function(e){var t=s.default.state.token;if(t){if(e.header=(0,n.default)((0,n.default)({},e.header),{},{Authorization:t}),e.header.repeat){var a=f(e);if(a)return a}return console.log(e),e}var r=getCurrentPages(),i=r[r.length-1];return i.$Router.replace("/login"),Promise.reject({message:"要先登录才能操作哦~"})})),v.use("success",c),v.use("error",l)},d829:function(e,t,a){var r=a("c616");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=a("4f06").default;n("9bacbace",r,!0,{sourceMap:!1,shadowMode:!1})},de3b:function(e,t,a){var r=a("0ab6");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=a("4f06").default;n("62ab6330",r,!0,{sourceMap:!1,shadowMode:!1})},e07a:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAAXNSR0IArs4c6QAAAPBQTFRFAAAAAIC/AIC/AJXVEZndEI/PC5veC5XVE5fZEpLbD5nbDpXVDpXcDZPZEpTbEZfWEJjeEJXaD5PYE5TaEpbbEZfcEZXZEJbbEJPbD5TdEZbaEJTbEJjbEJbZEZfbEJbcEJXaE5XaEZbaEZbbEJXdEpXcEpfcEZbbEZXcEpfbEpbcEpXaEpbcEpbbEZXbEZbcEpXaEpfcEZbaEZbbEZbbEpXbEpbbEZbbEZXaEZbaEpbcEpbaEpbbEpXbEZXaEZXbEZbbEpbbEpXaEZbbEZbaEpbcEpXbEpbbEZbaEZbbEZXbEpXbEpbaEpbbEZXaEpbbNusUYgAAAE90Uk5TAAQIDA8QFxgbHCMkJCgrLC8wNDc4Ozw/QENLT09QW19gYGhrb3Nzd3t/g4uLj5OXn5+nr7O3t7/Dw8PHx8vPz8/T19vf3+Pn6+vv7/P3+90yngUAAAFxSURBVDjLnZRtQ4IwEMcPfMoetVIrNXsUpTBTEykqykRtwr7/t2kbIBuSWP83bLcfu93dbgAAsjKa4VjNRooMTBUbr5FdokzJxWvlEkq2cYJsGRTRgiZEEeoWDNHQpieIQAagZGgeNcRB+E8QxGoiQhWms0aBpTfQ9B/uNoOeL5mKFKp74+EKNKzwYkcb/ObOV4feoEUCVCdQbfVMzoduLiuL6FXrRSCkHbPkyYdXPeR7yzkiNMwTYzbtp7l8Pz4gn7aYAlNKKS/kP/etU5WCiuS+RaiY+1zOp3dZD8qrYx76ggc+MEdL+ZsVVWsJ6WAK4WvcNdhpWQH0tMI0sjxHoClccM6u6YKG3e42tyFZOAU16LHBHjFJHTbuF3jISsFuq6/rj02aL9g3w6KHEDa2wp0zKt/RoyozIi/sIzZJV7tOpNTv5yS/QXMuXnU9vuPHtWibx+lmswcDyglPj3PCrsb6R6zsRS0rxjyeQGYzQ4AfSnknwFuEgcEAAAAASUVORK5CYII="},e7a4:function(e,t,a){"use strict";var r=a("de3b"),n=a.n(r);n.a},f196:function(e,t,a){"use strict";a.r(t);var r=a("59a3"),n=a("8eac");for(var i in n)"default"!==i&&function(e){a.d(t,e,(function(){return n[e]}))}(i);a("3f3b");var s,o=a("f0c5"),u=Object(o["a"])(n["default"],r["b"],r["c"],!1,null,"4ba2f3f6",null,!1,r["a"],s);t["default"]=u.exports},f9ea:function(e,t,a){var r=a("abd3");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=a("4f06").default;n("d85769a6",r,!0,{sourceMap:!1,shadowMode:!1})},fda4:function(e,t,a){"use strict";var r=a("4ea4");a("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a("5530")),i=r(a("d4ec")),s=r(a("bee2")),o=function(){function e(t){(0,i.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 t=this;if(e.header=(0,n.default)((0,n.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(a,r){uni.request((0,n.default)((0,n.default)({},e),{},{success:function(n){var i=n||n[1];if(i.statusCode>=200&&i.statusCode<400){if(t.hook.success){var s=t.hook.success(i,e);s.constructor===Promise?s.then((function(e){a(e)}),(function(e){r(e)})):a(s)}else a(i);return!1}r(t.hook.error?t.hook.error(i,e):i)},fail:function(a){r(t.hook.error?t.hook.error(a,e):a)}}))}))}},{key:"use",value:function(e,t){this.hook[e]=t}},{key:"get",value:function(e,t,a){return this.method({method:"GET",url:e,data:t,header:a})}},{key:"post",value:function(e,t,a){return this.method({method:"POST",url:e,data:t,header:a})}},{key:"put",value:function(e,t,a){return this.method({method:"PUT",url:e,data:t,header:a})}},{key:"delete",value:function(e,t,a){return this.method({method:"DELETE",url:e,data:t,header:a})}}]),e}(),u=o;t.default=u}}]); |