(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/clerk/detail/detail"],{"3b9a":function(t,e,n){"use strict";n.r(e);var i=n("9963"),a=n("6d7a");for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("a7b0");var o,c=n("f0c5"),d=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"8612ef9e",null,!1,i["a"],o);e["default"]=d.exports},"3edf":function(t,e,n){},"6d7a":function(t,e,n){"use strict";n.r(e);var i=n("84d8"),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"6dd7":function(t,e,n){"use strict";(function(t){n("b8bc");i(n("66fd"));var e=i(n("3b9a"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"84d8":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("2f62");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(){n.e("components/page-component/app-clerk-historys/app-clerk-historys").then(function(){return resolve(n("7368"))}.bind(null,n)).catch(n.oe)},d=function(){n.e("components/basic-component/app-order/app-form-data").then(function(){return resolve(n("5592"))}.bind(null,n)).catch(n.oe)},u={name:"detail",components:{appClerkHistorys:c,appFormData:d},data:function(){return{detail:{start_time:"",end_time:""},card_id:null,checkPay:!1,id:null,isShow:!1}},computed:r({},(0,i.mapState)({clerkImg:function(t){return t.mallConfig.__wxapp_img.clerk},mall:function(t){return t.mallConfig.mall}})),onLoad:function(e){this.$showLoading({text:"加载中..."}),e.id>0?(this.id=e.id,t.setNavigationBarTitle({title:"订单详情"})):e.card_id>0&&(this.card_id=e.card_id,t.setNavigationBarTitle({title:"卡券详情"}))},onShow:function(){this.id>0?this.getDetail():this.card_id>0&&this.getCardDetail()},methods:{toClerk:function(e){t.navigateTo({url:"/pages/order/clerk/clerk?id="+e})},toClerkCard:function(e){t.navigateTo({url:"/pages/card/clerk/clerk?cardId="+e})},getDetail:function(){var e=this;e.$request({url:e.$api.clerk.detail,data:{order_id:this.id}}).then((function(n){e.$hideLoading(),0==n.code?e.detail=n.data.order:t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(t){e.$hideLoading()}))},getCardDetail:function(){var e=this;e.$request({url:e.$api.clerk.card_detail,data:{cardId:this.card_id}}).then((function(n){e.$hideLoading(),0==n.code?e.detail=n.data.card:t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(t){e.$hideLoading()}))},clerkAffirmPay:function(){var e=this;e.$request({url:e.$api.order.clerk_affirm_pay,data:{id:e.id,action_type:1}}).then((function(n){e.$hideLoading(),0==n.code?(e.checkPay=!e.checkPay,e.getDetail()):t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(t){e.$hideLoading()}))}}};e.default=u}).call(this,n("543d")["default"])},9963:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.isShow=!0},t.e1=function(e){t.checkPay=!t.checkPay},t.e2=function(e){t.checkPay=!t.checkPay})},r=[]},a7b0:function(t,e,n){"use strict";var i=n("3edf"),a=n.n(i);a.a}},[["6dd7","common/runtime","common/vendor"]]]);