(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesPoints/order/details"],{"3e6b":function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("aa6c");o(n("3240"));var r=o(n("7c98"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"7c98":function(t,e,n){"use strict";n.r(e);var o=n("9130"),r=n("a556");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("f87a");var c=n("828b"),a=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=a.exports},9130:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},r=[]},a556:function(t,e,n){"use strict";n.r(e);var o=n("e9b1"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},c00c:function(t,e,n){},e9b1:function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("7ca3")),i=n("8f59"),c=o(n("f5e9"));function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var u={data:function(){return{loadEnd:!1,orderId:null,orderInfo:{},delayer:null}},computed:function(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){(0,r.default)(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}({},(0,i.mapState)({themeColor:function(t){return t.app.themeColor},iconClock:function(t){return c.default.svgToUrl("clock",t.app.themeColor)}})),onLoad:function(e){var n=this;this.orderId=e.id,t.getStorageSync("token")?(t.showLoading({title:"加载中"}),this.getOrderDetails((function(){t.hideLoading(),n.loadEnd=!0}))):this.$util.verifyLogin(2)},onShow:function(){this.loadEnd&&this.getOrderDetails()},onUnload:function(){this.delayer&&clearTimeout(this.delayer)},methods:{getOrderDetails:function(e){var n=this;this.$util.request("points.orderDetails",{id:this.orderId}).then((function(o){e&&e(),1==o.code?n.orderInfo=o.data:t.showToast({title:o.msg,icon:"none"})})).catch((function(t){e&&e(),console.error("获取订单详情",t)}))},handleDelivery:function(){var e=this;t.showModal({title:"提示",content:"确认此商品已收货，\n点击确认收货后订单完成?",confirmText:"确认收货",confirmColor:this.themeColor,cancelText:"我再想想",cancelColor:"#999999",success:function(n){n.confirm&&(t.showLoading({title:"加载中",mask:!0}),e.$util.request("points.orderConfirm",{id:e.orderInfo.id}).then((function(n){t.hideLoading(),1==n.code?(t.showToast({title:"签收成功",icon:"success",mask:!0,duration:1500}),e.delayer=setTimeout((function(){t.navigateBack()}),1500)):t.showToast({title:n.msg,icon:"none"})})).catch((function(e){t.hideLoading(),console.error("确认收货",e)})))}})},handleCopy:function(t){this.$util.toPage({mode:8,content:t})}}};e.default=u}).call(this,n("df3c")["default"])},f87a:function(t,e,n){"use strict";var o=n("c00c"),r=n.n(o);r.a}},[["3e6b","common/runtime","common/vendor"]]]);