pages-order-detail.06279896.js 31 KB

123
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-detail"],{1640:function(t,e,i){var o=i("310d");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var r=i("4f06").default;r("d4e54956",o,!0,{sourceMap:!1,shadowMode:!1})},"17fb":function(t,e,i){"use strict";i("7a82");var o=i("dbce").default,r=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(i("c7eb")),a=r(i("1da1"));i("d3b7"),i("14d9"),i("d401"),i("25f0"),i("e9c4");var s=i("609f"),d=o(i("6908")),c=r(i("5f48")),u=r(i("3923")),l=r(i("c8be")),f={payType:"pay",setPayType:function(t){return this.payType=t,this},getPaymentType:function(){var t=d.platformAgent();return t.isMini?3:"h5"==t.type?t.isWechat?2:1:"app"==t.type?4:void 0},getPaymentList:function(t){var e=this,i=t||"order",o="",r=d.platformAgent();return r.isMini?o="mp":"h5"==r.type?o=r.isWechat?"wechat":"h5":"app"==r.type&&(o="app"),new Promise((function(t,r){(0,s.getPaymentMethod)({type:o,pay_type:i}).then((function(i){e.getAppPayment(i.data).then((function(e){t(e)})).catch((function(t){r(t)}))})).catch((function(t){r(t)}))}))},getAppPayment:function(t){return new Promise((function(e,i){uni.getProvider({service:"payment",success:function(i){for(var o=[],r=0;r<i.provider.length;r++)switch(i.provider[r]){case"wxpay":o.push("wechat");break;case"alipay":o.push("alipay");break;default:break}var n=[];if(o.length<=0)e(t);else{for(var a=0;a<t.length;a++)(d.in_array(t[a].id,o)||"balance"==t[a].id)&&n.push(t[a]);e(n)}},fail:function(t){i("获取支付通道失败")}})}))},crreateOrder:function(t,e){var i=e||!1;if(i&&(c.default.commit("UPDATECART",t.shop_count),t.shop_count>0?uni.setTabBarBadge({index:2,text:t.shop_count.toString()}):uni.removeTabBarBadge({index:2})),0==t.pay)return d.redirectTo("order/detail",{id:t.order_id}),!0;if(99==t.pay)return"pay"==this.payType?(u.default.set("order_msg",t.msg),u.default.set("order_id",t.order_id),d.redirectTo("cart/info")):"order"!=this.payType&&"rechange"!=this.payType||d.msg(t.msg),!0;var o=d.platformAgent();o.isMini?this.createMpPayment(t):"h5"==o.type?this.createWebPayment(t):"app"==o.type&&this.createAppPayment(t)},createMpPayment:function(t){var e=this;switch(t.pay+""){case"1":var i=t.result.params;l.default.requestPayment({timeStamp:i.timeStamp,nonceStr:i.nonceStr,package:i.package,signType:i.signType,paySign:i.paySign,success:function(i){uni.showToast({title:"您已支付成功!",success:function(i){"pay"==e.payType||"order"==e.payType?d.redirectTo("order/detail",{id:t.order_id}):d.redirectTo("bill/fund")}})},fail:function(t){uni.showModal({content:"支付失败,原因:"+JSON.stringify(t),showCancel:!1})}});break}},createWebPayment:function(t){switch(t.pay+""){case"1":l.default.config(t.result.config);var e=t.result.options,i=this;e.success=function(){uni.showToast({title:"您已支付成功!",success:function(e){"pay"==i.payType||"order"==i.payType?d.redirectTo("order/detail",{id:t.order_id}):d.redirectTo("bill/fund")}})},l.default.chooseWXPay(e);break;case"2":"pay"==i.payType||"order"==i.payType?location.href=t.result.url+"&redirect_url="+location.origin+"/wap/pages/order/detail/"+t.order_id:location.href=t.result.url+"&redirect_url="+location.origin+"/wap/pages/bill/fund";break;case"3":d.showLoading();var o=document.createElement("div");o.innerHTML=t.result,document.body.appendChild(o),document.forms.alipaysubmit.submit();break}},createAppPayment:function(t){switch(t.pay+""){case"1":this.requestPayment(t.result.params,"wxpay",{id:t.order_id});break;case"2":this.requestPayment(t.result.params,"alipay",{id:t.order_id});break}},requestPayment:function(t,e,i){var o=this;return(0,a.default)((0,n.default)().mark((function r(){var a;return(0,n.default)().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(t){r.next=3;break}return uni.showModal({content:"获取支付信息失败",showCancel:!1}),r.abrupt("return");case 3:a=o,uni.requestPayment({provider:e,orderInfo:t,success:function(t){uni.showToast({title:"您已支付成功!",success:function(t){"pay"==a.payType||"order"==a.payType?d.redirectTo("order/detail",i):d.redirectTo("bill/fund")}})},fail:function(t){uni.showModal({content:"支付失败,原因为: "+t.errMsg,showCancel:!1})}});case 5:case"end":return r.stop()}}),r)})))()}};e.default=f},"1da1":function(t,e,i){"use strict";function o(t,e,i,o,r,n,a){try{var s=t[n](a),d=s.value}catch(c){return void i(c)}s.done?e(d):Promise.resolve(d).then(o,r)}i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){var e=this,i=arguments;return new Promise((function(r,n){var a=t.apply(e,i);function s(t){o(a,r,n,s,d,"next",t)}function d(t){o(a,r,n,s,d,"throw",t)}s(void 0)}))}},i("d3b7")},"310d":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.shop-address[data-v-102f3490]{width:92%;margin:0 auto;padding:%?20?% 0 0 0;font-size:%?28?%;color:#333}.shop-address uni-text[data-v-102f3490]{padding-right:%?20?%}.shop-box[data-v-102f3490]{width:100%;background-color:#fff}.shop-box .qrcode[data-v-102f3490]{width:80%;height:%?370?%;background-color:#f5eff0;margin:%?40?% auto 0 auto;border-radius:%?20?%;position:relative}.shop-box .qrcode uni-image[data-v-102f3490]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);margin:0 auto;display:block;width:%?300?%;height:%?300?%}.shop-box .code[data-v-102f3490]{width:80%;height:%?100?%;line-height:%?100?%;font-size:%?50?%;text-align:center;margin:0 auto %?20?% auto;background-color:#c30d24;color:#fff;border-radius:%?20?%;position:relative}.shop-box .code[data-v-102f3490]:before{width:%?34?%;height:%?34?%;display:inline-block;content:" ";position:absolute;right:%?-18?%;top:%?-14?%;border-radius:50%;background-color:#fff}.shop-box .code[data-v-102f3490]:after{width:%?34?%;height:%?34?%;display:inline-block;content:" ";position:absolute;left:%?-18?%;top:%?-14?%;border-radius:50%;background-color:#fff}.top[data-v-102f3490]{background-color:#fff;position:relative}.top[data-v-102f3490]:before{position:absolute;right:0;bottom:0;left:0;height:%?4?%;background:-webkit-repeating-linear-gradient(135deg,#ff6c6c,#ff6c6c 20%,transparent 0,transparent 25%,#1989fa 0,#1989fa 45%,transparent 0,transparent 50%);background:repeating-linear-gradient(-45deg,#ff6c6c,#ff6c6c 20%,transparent 0,transparent 25%,#1989fa 0,#1989fa 45%,transparent 0,transparent 50%);background-size:%?160?%;content:""}.top .status[data-v-102f3490]{width:100%;margin:0 auto;padding:%?10?% 0}.top .address[data-v-102f3490]{font-size:%?28?%;width:92%;margin:0 auto}.top .address .info[data-v-102f3490]{height:%?60?%;line-height:%?60?%}.top .address .info span[data-v-102f3490]:first-child{padding-right:%?20?%}.top .address .address-info[data-v-102f3490]{height:%?60?%;line-height:%?40?%}.goods[data-v-102f3490]{background-color:#fff;margin-top:%?30?%;padding-bottom:%?20?%}.goods .title[data-v-102f3490]{width:100%;margin:0 auto;color:#666;font-size:%?28?%;height:%?80?%;line-height:%?80?%;border-bottom:%?2?% solid #eee}.goods .title uni-text[data-v-102f3490]{padding-left:%?20?%}.goods .goods-box[data-v-102f3490]{padding:0 %?32?%}.goods .goods-box .goods-item[data-v-102f3490]{padding-top:%?20?%}.goods .goods-box .goods-item .goods-img[data-v-102f3490]{width:%?154?%;height:%?154?%;display:inline-block;float:left}.goods .goods-box .goods-item .goods-img uni-image[data-v-102f3490]{width:100%;height:100%}.goods .goods-box .goods-item .goods-info[data-v-102f3490]{display:inline-block;width:72%;font-size:%?28?%;float:right}.goods .goods-box .goods-item .goods-info .t[data-v-102f3490]{width:100%;height:%?90?%}.goods .goods-box .goods-item .goods-info .t uni-text[data-v-102f3490]:first-child{float:left;display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;width:70%}.goods .goods-box .goods-item .goods-info .t uni-text[data-v-102f3490]:last-child{width:30%;float:right;text-align:right}.goods .goods-box .goods-item .goods-info .b[data-v-102f3490]{width:100%;height:%?80?%;font-size:%?26?%}.goods .goods-box .goods-item .goods-info .b uni-text[data-v-102f3490]:first-child{float:left;color:#999}.goods .goods-box .goods-item .goods-info .b uni-text[data-v-102f3490]:last-child{float:right;color:#666}.order[data-v-102f3490]{background-color:#fff;margin-top:%?30?%;padding-bottom:%?20?%}.order .title[data-v-102f3490]{width:100%;margin:0 auto;color:#666;font-size:%?30?%;height:%?80?%;line-height:%?80?%;border-bottom:%?2?% solid #eee}.order .title uni-text[data-v-102f3490]{padding-left:%?30?%}.order .list[data-v-102f3490]{width:100%}.order .list .list-box[data-v-102f3490]{width:92%;height:auto!important;height:%?80?%;min-height:%?80?%;line-height:%?80?%;margin:0 auto;font-size:%?26?%;color:#333;border-bottom:%?2?% solid #ebedf0}.order .list .list-box uni-view[data-v-102f3490]{display:inline-block}.order .list .list-box uni-view[data-v-102f3490]:first-child{float:left}.order .list .list-box uni-view[data-v-102f3490]:last-child{float:right}.order .list .list-box uni-textarea[data-v-102f3490]{height:%?150?%}.operation-placeholder[data-v-102f3490]{width:100%;height:%?140?%;line-height:%?140?%}.operation[data-v-102f3490]{width:100%;height:%?110?%;line-height:%?110?%;text-align:right;background-color:#fff;position:fixed;left:0;bottom:0;border-top:%?2?% solid #eee}.operation uni-text[data-v-102f3490]{font-size:%?28?%;text-align:center;border-radius:%?30?%;background-color:#fff;padding:%?16?% %?30?%;margin-right:%?20?%}.operation uni-text.cancel[data-v-102f3490]{color:#333;border:%?2?% solid #ddd}.operation uni-text.pay[data-v-102f3490]{background-color:#e93323;color:#fff}.operation .confirm[data-v-102f3490]{color:#fff;background-color:#c30d24}.operation .refund[data-v-102f3490]{color:#c30d24;background-color:#fff;border:1px solid #c30d24}.operation .evaluate[data-v-102f3490]{color:#fff;background-color:#009688}.payment-box .payment-item[data-v-102f3490]{padding:%?20?% %?32?%;border-bottom:%?2?% solid #eee}.payment-box .payment-item uni-view[data-v-102f3490]{display:inline}.payment-box .payment-item uni-view[data-v-102f3490]:first-child{font-size:%?28?%}.payment-box .payment-item uni-view:first-child uni-text[data-v-102f3490]{width:%?40?%;height:%?40?%;line-height:%?40?%;text-align:center;border-radius:50%;padding:%?4?%}.payment-box .payment-item uni-view[data-v-102f3490]:nth-child(2){font-size:%?28?%;padding-left:%?20?%}.payment-box .payment-item uni-view:nth-child(2) i[data-v-102f3490]{font-size:%?24?%;font-style:normal;color:#999;padding-left:%?20?%}.payment-box .payment-item uni-view[data-v-102f3490]:nth-child(3){float:right;display:none;color:#999}.payment-box .payment-item uni-view.active[data-v-102f3490]{display:block}.payment-box .payment-item uni-view.activeColor[data-v-102f3490]{color:red}.payment-box #wechat[data-v-102f3490]{position:relative;top:%?2?%;width:%?40?%;height:%?40?%;display:inline-block;color:#fff;background-color:#41b035}.payment-box #alipay[data-v-102f3490]{position:relative;top:%?2?%;width:%?40?%;height:%?40?%;display:inline-block;color:#fff;background-color:#1296db}.payment-box #appleiap[data-v-102f3490]{position:relative;top:%?2?%;width:%?40?%;height:%?40?%;display:inline-block;color:#333;background-color:#fff;border:1px solid #eee}.payment-box #balance[data-v-102f3490]{position:relative;top:%?2?%;width:%?40?%;height:%?40?%;background-repeat:no-repeat;background-size:%?40?% %?40?%;display:inline-block;color:#fff;background-color:#fe960f}.payment-box .check[data-v-102f3490]{position:relative;top:%?12?%;width:%?40?%;height:%?40?%;display:inline-block}',""]),t.exports=e},"3a4c":function(t,e,i){"use strict";i("7a82");var o=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(i("f283")),n=o(i("cb78")),a=o(i("92e0")),s=o(i("17fb")),d={components:{info:r.default,uniSteps:n.default},data:function(){return{isError:!1,orderId:0,active:0,stepsOptions:[{title:"待付款"},{title:"待发货"},{title:"待收货"},{title:"待评价"},{title:"已完成"}],stepsShopOptions:[{title:"待付款"},{title:"待发货"},{title:"待取货"},{title:"待评价"},{title:"已完成"}],payment:"wechat",order:{accept_name:"",address:"",create_time:"",item:[],mobile:"",order_amount:"",order_no:"",pay_status:"",pay_type:"",payable_freight:"",payable_amount:"",promotions:"",real_amount:"",region:"",type:"",users_price:"0.00",order_status:1,shipping_type:0,qrcode:"",code:"",area_name:"",shop_name:"",phone:"",shop_address:"",day_time:"",goods_info:[]},providerList:[]}},onLoad:function(t){var e=this;this.isError=!1,this.orderId=t.id,this.$http.getOrderDetail({id:this.orderId}).then((function(t){e.isError=!1,t.status?(e.active=t.data.active,e.order=t.data):e.isError=!0})).catch((function(t){e.isError=!0})),s.default.getPaymentList().then((function(t){e.providerList=t})),a.default.order()},onBackPress:function(t){return this.$utils.navigateTo("order/list",{id:1}),!0},methods:{scopy:function(t){var e=this;this.$utils.iCopy(t).then((function(t){e.$utils.msg(t)})).catch((function(t){e.$utils.msg(t)}))},downLoad:function(t){var e=this;uni.downloadFile({url:t,success:function(t){200===t.statusCode&&console.log("下载成功"),e.$utils.msg("已将文件保存在:"+t.tempFilePath)}})},goGoods:function(t){this.$utils.navigateTo("goods/view",{id:t})},selectPayment:function(t){this.payment=t},goPay:function(){var t=this;this.$utils.showLoading(),this.$http.getOrderDetailPayment({order_id:this.orderId,payment_id:this.payment,source:s.default.getPaymentType(),url:document.location.href}).then((function(e){t.$utils.hideLoading(),e.status?s.default.setPayType("order").crreateOrder(e.data):t.$utils.msg(e.info)})).catch((function(e){t.$utils.hideLoading(),t.$utils.msg("网络出错,请检查网络是否连接")}))},confirm:function(){this.$utils.navigateTo("order/confirm_delivery",{id:this.orderId})},refund:function(){this.$utils.navigateTo("order/refund",{id:this.orderId})},evaluate:function(){this.$utils.navigateTo("order/evaluate",{id:this.orderId})},cancel:function(){var t=this;this.$utils.showLoading(),this.$http.getOrderDetailCancel({order_id:this.orderId}).then((function(e){t.$utils.hideLoading(),e.status?(t.$utils.msg(e.info),t.$utils.navigateTo("order/list",{id:1})):t.$utils.msg(e.info)})).catch((function(e){t.$utils.hideLoading(),t.$utils.msg("网络出错,请检查网络是否连接")}))}}};e.default=d},"7db6":function(t,e,i){"use strict";var o=i("1640"),r=i.n(o);r.a},"92e0":function(t,e,i){"use strict";i("7a82");var o=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(i("3923")),n={getSubscribeTemplate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=r.default.getJson("template");return null==t?e:void 0!=e[t]?e[t]:null},order:function(){},refund:function(){}};e.default=n},b636:function(t,e,i){var o=i("e065");o("asyncIterator")},c7eb:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){
  2. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  3. e.default=function(){return t};var t={},i=Object.prototype,r=i.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",d=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(O){u=function(t,e,i){return t[e]=i}}function l(t,e,i,o){var r=e&&e.prototype instanceof p?e:p,a=Object.create(r.prototype),s=new L(o||[]);return n(a,"_invoke",{value:k(t,i,s)}),a}function f(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(O){return{type:"throw",arg:O}}}t.wrap=l;var v={};function p(){}function h(){}function g(){}var y={};u(y,s,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(E([])));b&&b!==i&&r.call(b,s)&&(y=b);var w=g.prototype=p.prototype=Object.create(y);function _(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){var i;n(this,"_invoke",{value:function(n,a){function s(){return new e((function(i,s){(function i(n,a,s,d){var c=f(t[n],t,a);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==(0,o.default)(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){i("next",t,s,d)}),(function(t){i("throw",t,s,d)})):e.resolve(l).then((function(t){u.value=t,s(u)}),(function(t){return i("throw",t,s,d)}))}d(c.arg)})(n,a,i,s)}))}return i=i?i.then(s,s):s()}})}function k(t,e,i){var o="suspendedStart";return function(r,n){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw n;return $()}for(i.method=r,i.arg=n;;){var a=i.delegate;if(a){var s=C(a,i);if(s){if(s===v)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===o)throw o="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o="executing";var d=f(t,e,i);if("normal"===d.type){if(o=i.done?"completed":"suspendedYield",d.arg===v)continue;return{value:d.arg,done:i.done}}"throw"===d.type&&(o="completed",i.method="throw",i.arg=d.arg)}}}function C(t,e){var i=e.method,o=t.iterator[i];if(void 0===o)return e.delegate=null,"throw"===i&&t.iterator["return"]&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),v;var r=f(o,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,v;var n=r.arg;return n?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function E(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(r.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:$}}function $(){return{value:void 0,done:!0}}return h.prototype=g,n(w,"constructor",{value:g,configurable:!0}),n(g,"constructor",{value:h,configurable:!0}),h.displayName=u(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},_(x.prototype),u(x.prototype,d,(function(){return this})),t.AsyncIterator=x,t.async=function(e,i,o,r,n){void 0===n&&(n=Promise);var a=new x(l(e,i,o,r),n);return t.isGeneratorFunction(i)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(w),u(w,c,"Generator"),u(w,s,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),i=[];for(var o in e)i.push(o);return i.reverse(),function t(){for(;i.length;){var o=i.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},t.values=E,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(i,o){return a.type="throw",a.arg=t,e.next=i,o&&(e.method="next",e.arg=void 0),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o],a=n.completion;if("root"===n.tryLoc)return i("end");if(n.tryLoc<=this.prev){var s=r.call(n,"catchLoc"),d=r.call(n,"finallyLoc");if(s&&d){if(this.prev<n.catchLoc)return i(n.catchLoc,!0);if(this.prev<n.finallyLoc)return i(n.finallyLoc)}else if(s){if(this.prev<n.catchLoc)return i(n.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return i(n.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var n=o;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=t,a.arg=e,n?(this.method="next",this.next=n.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var o=i.completion;if("throw"===o.type){var r=o.arg;P(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:E(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),v}},t},i("7a82"),i("a4d3"),i("e01a"),i("d3b7"),i("d28b"),i("3ca3"),i("ddb0"),i("b636"),i("944a"),i("0c47"),i("23dc"),i("3410"),i("d9e2"),i("d401"),i("14d9"),i("159b"),i("131a"),i("26e9"),i("fb6a");var o=function(t){return t&&t.__esModule?t:{default:t}}(i("53ca"))},caf8:function(t,e,i){"use strict";i.r(e);var o=i("3a4c"),r=i.n(o);for(var n in o)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(n);e["default"]=r.a},d6bc:function(t,e,i){"use strict";i.r(e);var o=i("ec75"),r=i("caf8");for(var n in r)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(n);i("7db6");var a=i("f0c5"),s=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,"102f3490",null,!1,o["a"],void 0);e["default"]=s.exports},ec75:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return o}));var o={navbar:i("2445").default,uniSteps:i("cb78").default},r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"wrap"},[i("navbar",{attrs:{iSimmersive:!1,"title-color":"#ffffff",background:"#c30d24",placeholder:!0,title:"订单详情"}}),t.isError?i("info"):t._e(),t.isError?t._e():i("v-uni-view",[1==t.order.shipping_type?i("v-uni-view",{staticClass:"top"},[i("v-uni-view",{staticClass:"status"},[i("uni-steps",{attrs:{options:t.stepsOptions,"active-color":"#07c160",active:t.active}})],1),i("v-uni-view",{staticClass:"address"},[i("v-uni-view",{staticClass:"info"},[i("v-uni-text",[t._v("收件人:"+t._s(t.order.accept_name))]),i("v-uni-text",[t._v("手机号:"+t._s(t.order.mobile))])],1),i("v-uni-view",{staticClass:"address-info"},[t._v(t._s(t.order.region)+" "+t._s(t.order.address))])],1)],1):t._e(),2==t.order.shipping_type?i("v-uni-view",{staticClass:"top"},[i("v-uni-view",{staticClass:"status"},[i("uni-steps",{attrs:{options:t.stepsShopOptions,"active-color":"#07c160",active:t.active}})],1)],1):t._e(),2==t.order.shipping_type?i("v-uni-view",{staticClass:"order"},[i("v-uni-view",{staticClass:"title"},[i("v-uni-text",[t._v("核销信息")])],1),i("v-uni-view",{staticClass:"shop-box"},[i("v-uni-view",{staticClass:"qrcode"},[i("v-uni-image",{attrs:{src:t.order.qrcode}})],1),i("v-uni-view",{staticClass:"code"},[t._v(t._s(t.order.code))])],1),i("v-uni-view",{staticClass:"shop-address"},[i("v-uni-view",[t._v("门店名称:"+t._s(t.order.shop_name))]),i("v-uni-view",[t._v("营业时间:"+t._s(t.order.day_time))]),i("v-uni-view",[t._v("门店电话:"+t._s(t.order.phone))])],1),i("v-uni-view",{staticClass:"shop-address"},[i("v-uni-view",[t._v("取件地址:")]),i("v-uni-view",[i("v-uni-text",[t._v(t._s(t.order.area_name))]),i("v-uni-text",[t._v(t._s(t.order.shop_address))])],1)],1)],1):t._e(),i("v-uni-view",{staticClass:"goods"},[i("v-uni-view",{staticClass:"title"},[i("v-uni-text",[t._v("共"+t._s(t.order.item.length)+"件商品")])],1),i("v-uni-view",{staticClass:"goods-box"},t._l(t.order.item,(function(e,o){return i("v-uni-view",{key:o,staticClass:"goods-item clear",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goGoods(e.goods_id)}}},[i("v-uni-view",{staticClass:"goods-img"},[i("v-uni-image",{attrs:{src:e.thumb_image}})],1),i("v-uni-view",{staticClass:"goods-info"},[i("v-uni-view",{staticClass:"t"},[i("v-uni-text",[t._v(t._s(e.title))]),i("v-uni-text",[t._v("¥"+t._s(e.sell_price))])],1),i("v-uni-view",{staticClass:"b"},[i("v-uni-text",[t._v(t._s(e.spec))]),i("v-uni-text",[t._v("× "+t._s(e.nums))])],1)],1)],1)})),1)],1),t._l(t.order.goods_info,(function(e,o){return t.order.goods_info?i("v-uni-view",{key:o,staticClass:"order"},[i("v-uni-view",{staticClass:"title"},[i("v-uni-text",[t._v("商品信息")])],1),i("v-uni-view",{staticClass:"shop-address"},[i("v-uni-view",[t._v("商品名称:")]),i("v-uni-view",[i("v-uni-text",{staticStyle:{"word-wrap":"break-word"}},[t._v(t._s(e.title))])],1)],1),1==e.type?i("v-uni-view",{staticClass:"shop-address"},[i("v-uni-view",[t._v("商品内容:")]),i("v-uni-view",[i("v-uni-text",{staticStyle:{"word-wrap":"break-word"}},[t._v(t._s(e.content))])],1),i("v-uni-view",{staticStyle:{"padding-top":"10rpx"}},[i("v-uni-button",{staticStyle:{"background-color":"#c30d24",color:"#fff"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.scopy(e.content)}}},[t._v("复制内容")])],1)],1):t._e(),2==e.type?i("v-uni-view",{staticClass:"shop-address"},[i("v-uni-view",[t._v("商品内容:")]),i("v-uni-view",[i("v-uni-text",{staticStyle:{"word-wrap":"break-word"}},[t._v(t._s(e.content))])],1),i("v-uni-view",{staticStyle:{"padding-top":"10rpx"}},[i("v-uni-button",{staticStyle:{"background-color":"#c30d24",color:"#fff"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.scopy(e.content)}}},[t._v("复制内容")])],1)],1):t._e(),3==e.type?i("v-uni-view",{staticClass:"shop-address"},[i("v-uni-view",[i("v-uni-button",{staticStyle:{"background-color":"#c30d24",color:"#fff"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.downLoad(e.content)}}},[t._v("下载内容")])],1)],1):t._e()],1):t._e()})),i("v-uni-view",{staticClass:"order"},[i("v-uni-view",{staticClass:"title"},[i("v-uni-text",[t._v("订单信息")])],1),i("v-uni-view",{staticClass:"list clear"},[i("v-uni-view",{staticClass:"list-box clear"},[i("v-uni-view",[t._v("订单编号:")]),i("v-uni-view",{staticClass:"money"},[t._v(t._s(t.order.order_no))])],1),i("v-uni-view",{staticClass:"list-box clear"},[i("v-uni-view",[t._v("下单时间:")]),i("v-uni-view",[t._v(t._s(t.order.create_time))])],1),i("v-uni-view",{staticClass:"list-box clear"},[i("v-uni-view",[t._v("订单类型:")]),i("v-uni-view",[t._v(t._s(t.order.type))])],1),i("v-uni-view",{staticClass:"list-box clear"},[i("v-uni-view",[t._v("支付状态:")]),i("v-uni-view",{staticClass:"money"},[t._v(t._s(t.order.pay_status))])],1),i("v-uni-view",{staticClass:"list-box clear"},[i("v-uni-view",[t._v("支付方式:")]),i("v-uni-view",{staticClass:"money"},[t._v(t._s(t.order.pay_type))])],1)],1)],1),i("v-uni-view",{staticClass:"order"},[i("v-uni-view",{staticClass:"list clear"},[i("v-uni-view",{staticClass:"list-box clear"},[i("v-uni-view",[t._v("商品金额:")]),i("v-uni-view",[t._v(t._s(t.order.real_amount))])],1),i("v-uni-view",{staticClass:"list-box clear"},[i("v-uni-view",[t._v("运费金额:")]),i("v-uni-view",[t._v(t._s(t.order.payable_freight))])],1),i("v-uni-view",{staticClass:"list-box clear"},[i("v-uni-view",[t._v("订单总额:")]),i("v-uni-view",{staticClass:"money"},[t._v(t._s(t.order.order_amount))])],1)],1)],1),1==t.order.order_status?i("v-uni-view",{staticClass:"order"},[i("v-uni-view",{staticClass:"title"},[i("v-uni-text",[t._v("支付方式")])],1),i("v-uni-view",{staticClass:"payment-box"},t._l(t.providerList,(function(e,o){return i("v-uni-view",{key:o,staticClass:"payment-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.selectPayment(e.id)}}},[i("v-uni-view",[i("v-uni-text",{staticClass:"iconfont pay",class:e.class,attrs:{id:e.id}})],1),i("v-uni-view",{class:{activeColor:t.payment==e.id}},[t._v(t._s(e.name)),"balance"==e.id?i("v-uni-text",{staticStyle:{"padding-left":"15rpx","padding-top":"2rpx","font-size":"24rpx"}},[t._v("可用余额: ¥"+t._s(t.order.users_price)+"元")]):t._e()],1),i("v-uni-view",{class:{active:t.payment==e.id}},[i("v-uni-text",{staticClass:"iconfont"},[t._v("")])],1)],1)})),1)],1):t._e(),4!=t.active?i("v-uni-view",[i("v-uni-view",{staticClass:"operation-placeholder"}),i("v-uni-view",{staticClass:"operation"},[1==t.order.order_status?i("v-uni-text",{staticClass:"cancel",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.cancel.apply(void 0,arguments)}}},[t._v("取消订单")]):t._e(),1==t.order.order_status?i("v-uni-text",{staticClass:"pay",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goPay.apply(void 0,arguments)}}},[t._v("立即付款")]):t._e(),2==t.order.order_status||3==t.order.order_status||4==t.order.order_status?i("v-uni-text",{staticClass:"confirm",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)}}},[t._v("确认收货")]):t._e(),2==t.order.order_status||3==t.order.order_status||4==t.order.order_status?i("v-uni-text",{staticClass:"refund",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.refund.apply(void 0,arguments)}}},[t._v("申请退款")]):t._e(),5==t.order.order_status?i("v-uni-text",{staticClass:"evaluate",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.evaluate.apply(void 0,arguments)}}},[t._v("待评价")]):t._e()],1)],1):t._e()],2)],1)},n=[]}}]);