You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shop-app/mobile/static/js/pages-order-detail-index.67...

1 line
38 KiB

3 years ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-detail-index"],{"09e6":function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("5530"));a("96cf");var s=n(a("1da1")),o=n(a("1014")),r=n(a("7932")),c=n(a("5a25")),u=a("c0d4"),l=n(a("359f")),d=n(a("fa07")),f=n(a("f196")),v={components:{UiPageHeader:o.default,UiGoodsInfo:r.default,UiWhiteBox:c.default,UiButton:l.default,StatusTips:d.default,UiCell:f.default},data:function(){return{orderInfo:{products:[]},cancelShow:!1,cancelValue:0}},onLoad:function(){this.getOrderInfo()},methods:{getOrderInfo:function(){var t=this;return(0,s.default)(regeneratorRuntime.mark((function e(){var a,n,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,u.ApiGetOrderDetail)(t.$Route.query.id);case 2:if(a=e.sent,n=a.error,s=a.result,!n){e.next=8;break}return uni.$u.totast(n.message),e.abrupt("return",!1);case 8:t.orderInfo=(0,i.default)((0,i.default)({},s),{},{orderStatus:7});case 9:case"end":return e.stop()}}),e)})))()},timerCloseOrder:function(){this.orderInfo=(0,i.default)((0,i.default)({},this.orderInfo),{},{orderStatus:2,closeReason:"超时未支付"})},closeCancel:function(){this.cancelShow=!1,this.cancelValue=0},cancelChange:function(t){this.cancelValue=t},cancelOrder:function(){var t=this;return(0,s.default)(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,u.ApiPutCancelOrder)({cancelReasonType:t.cancelValue,orderId:t.$Route.query.id});case 2:if(a=e.sent,n=a.error,a.result,!n){e.next=8;break}return uni.$u.totast(n.message),e.abrupt("return",!1);case 8:case"end":return e.stop()}}),e)})))()}}};e.default=v},"0a54":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return n}));var n={uCell:a("4290").default,uPopup:a("c98f").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("StatusTips",{attrs:{orderInfo:t.orderInfo},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.timerCloseOrder.apply(void 0,arguments)}}}),n("UiWhiteBox",t._l(t.orderInfo.products,(function(e,a){return n("UiGoodsInfo",{key:a,attrs:{data:e}},[n("template",{slot:"operation"},[n("UiButton",[t._v("申请售后")])],1)],2)})),1),n("UiWhiteBox",[n("u-cell",{staticClass:"address",attrs:{title:"是的发生的",label:"陈先生 190****2342",border:!1,isLink:!0},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.push("/addressList")}}},[n("v-uni-image",{staticClass:"address--icon",attrs:{slot:"icon",src:a("cc7f")},slot:"icon"})],1)],1),n("UiWhiteBox",{staticClass:"cellBox"},[n("v-uni-view",{staticClass:"cell"},[n("v-uni-text",{staticClass:"cell--title"},[t._v("订单编号:")]),n("v-uni-text",{staticClass:"cell--value"},[t._v(t._s(t.orderInfo.orderNo))])],1),n("v-uni-view",{staticClass:"cell"},[n("v-uni-text",{staticClass:"cell--title"},[t._v("订单时间:")]),n("v-uni-text",{staticClass:"cell--value"},[t._v(t._s(t.orderInfo.submitTime))])],1),n("v-uni-view",{staticClass:"cell"},[n("v-uni-text",{staticClass:"cell--title"},[t._v("支付方式:")]),n("v-uni-text",{staticClass:"cell--value"},[t._v(t._s(t.orderInfo.payTypeDesc))])],1),n("v-uni-view",{staticClass:"cell"},[n("v-uni-text",{staticClass:"cell--title"},[t._v("买家留言:")]),n("v-uni-text",{staticClass:"cell--value"},[t._v(t._s(t.orderInfo.userMessage))])],1)],1),n("UiWhiteBox",{staticClass:"cellBox"},[n("v-uni-view",{staticClass:"cell"},[n("v-uni-text",{staticClass:"cell--title"},[t._v("商品总额:")]),n("v-uni-text",{staticClass:"cell--value"},[t._v(t._s(t.orderInfo.totalAmount))])],1),n("v-uni-view",{staticClass:"cell"},[n("v-uni-text",{staticClass:"cell--title"},[t._v("运费:")]),n("v-uni-text",{staticClass:"cell--value"},[t._v(t._s(t.orderInfo.shippingAmount))])],1)],1),n("v-uni-view",{staticClass:"footer"},[n("UiButton",[t._v("查看物流")]),n("UiButton",{staticClass:"footer--btn",on:{click:function(e){ar