(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/me/pagesOne/order/orderDet"],{"8a35":function(o,t,e){"use strict";var n=e("9c40"),r=e.n(n);r.a},"9c40":function(o,t,e){},"9f6c":function(o,t,e){"use strict";e.d(t,"b",(function(){return n})),e.d(t,"c",(function(){return r})),e.d(t,"a",(function(){}));var n=function(){var o=this.$createElement;this._self._c},r=[]},b447:function(o,t,e){"use strict";e.r(t);var n=e("9f6c"),r=e("dd74");for(var i in r)["default"].indexOf(i)<0&&function(o){e.d(t,o,(function(){return r[o]}))}(i);e("8a35");var s=e("f0c5"),d=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=d.exports},dd74:function(o,t,e){"use strict";e.r(t);var n=e("e78d"),r=e.n(n);for(var i in n)["default"].indexOf(i)<0&&function(o){e.d(t,o,(function(){return n[o]}))}(i);t["default"]=r.a},e78d:function(o,t,e){"use strict";(function(o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=getApp().globalData,n={data:function(){return{orderId:"",goods:{business:{}},headerText:"",status:{1:"待付款",2:"待发货",3:"待收货",4:"待评价",5:"已完成"},orderno:""}},onLoad:function(o){this.orderId=o.id,console.log(o.id),this.getOrderDet()},onShow:function(){this.orderId&&this.getOrderDet()},computed:{pickerMoney:function(){if(!this.goods||!this.goods.pack)return 0;var o=0;return this.goods.goods.forEach((function(t){return o+=t.num})),(o*(this.goods.pack||0)).toFixed(2)}},methods:{onCommit:function(){this.$tools.goNext("/pageOne/order/payOrder/payOrder?id=".concat(this.goods.id))},addressTap:function(){this.$tools.goNext("/pageOne/address/addressEdit/addressEdit")},toShopLocation:function(){this.$tools.goNext("/pagesOne/order/lookShopLocation/lookShopLocation")},goTefund:function(o){e.orderShop=o,this.$tools.goNext("/pagesOne/order/forRefund/forRefund")},commit:function(o){var t=this;this.$tools.axiosFromToken("POST","order/signOrder",{order_id:this.goods.id},"加载中").then((function(o){1==o.code&&(t.$tools.showtt("确认收货成功"),setTimeout((function(){return t.$tools.goBack(1)}),1e3))}))},getOrderDet:function(o){var t=this;this.$tools.axiosFromToken("POST","order/sel_order_goods",{id:this.orderId},"加载中").then((function(o){t.goods=o.data,t.orderno=o.data.orderno}))},cancelOrder:function(){var o=this;this.axiosFromToken("POST","order/del_order_goods",{token:this.app.token,id:this.orderId},"加载中").then((function(t){setTimeout((function(){o.$tools.goBack()}),500),o.$tools.showtt("取消成功")}))},toComment:function(o){e.orderInfo=o,this.$tools.goNext("/pages/me/order/pushComment")},commitGoods:function(){var o=this;this.axiosFromToken("POST","order/determine",{id:this.orderId},"加载中").then((function(t){1==t.code?(setTimeout((function(){o.$tools.goBack()}),600),o.$tools.showtt("成功确认收货")):o.$tools.showtt(t.msg)}))},winxinPay:function(){var o=this;this.$tools.axiosFromToken("POST","pay/pay",{token:this.app.token,orderno:this.orderno},"加载中").then((function(t){o.payFn(t.data),console.log(t.data)}))},payFn:function(t){var e=this,n=this;o.requestPayment({provider:"wxpay",timeStamp:t.timeStamp,nonceStr:t.nonceStr,package:t.package,signType:t.signType,paySign:t.paySign,success:function(t){o.showToast({icon:"success",title:"支付成功"}),n.getOrderDet()},fail:function(t){o.showToast({icon:"error",title:"支付失败"}),console.log("fail:",t,e)}})}}};t.default=n}).call(this,e("543d")["default"])},f87e:function(o,t,e){"use strict";(function(o){var t=e("4ea4");e("0178");t(e("66fd"));var n=t(e("b447"));wx.__webpack_require_UNI_MP_PLUGIN__=e,o(n.default)}).call(this,e("543d")["createPage"])}},[["f87e","common/runtime","common/vendor"]]]);