require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_promotion/fenxiao/order_detail"],{1104:function(e,t,o){"use strict";o.r(t);var i=o("5ce5"),n=o("9977");for(var r in n)["default"].indexOf(r)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(r);o("bf80");var a=o("828b"),s=Object(a["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=s.exports},"2fb8":function(e,t,o){"use strict";(function(e){var i=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(o("48d4")),r={data:function(){return{isIphoneX:!1,orderId:0,orderData:{action:[]}}},components:{},onLoad:function(t){t.id?this.orderId=t.id:e.navigateBack({delta:1})},mixins:[n.default],onShow:function(){var e=this;setTimeout((function(){e.addonIsExist.fenxiao||(e.$util.showToast({title:"商家未开启分销",mask:!0,duration:2e3}),setTimeout((function(){e.$util.redirectTo("/pages/index/index")}),2e3))}),1e3),this.isIphoneX=this.$util.uniappIsIPhoneX(),this.storeToken?this.getOrderData():this.$nextTick((function(){e.$refs.login.open("/pages_promotion/fenxiao/order_detail?id="+e.orderId)}))},methods:{getOrderData:function(){var e=this;this.$api.sendRequest({url:"/fenxiao/api/order/info",data:{fenxiao_order_id:this.orderId},success:function(t){t.code>=0?(e.$refs.loadingCover&&e.$refs.loadingCover.hide(),e.orderData=t.data):(e.$util.showToast({title:"未获取到订单信息！"}),setTimeout((function(){e.$util.redirectTo("/pages_promotion/fenxiao/order",{},"redirectTo")}),1500))},fail:function(t){e.$refs.loadingCover&&e.$refs.loadingCover.hide()}})},imageError:function(){this.orderData.sku_image=this.$util.getDefaultImage().goods,this.$forceUpdate()}},watch:{storeToken:function(e,t){e&&this.getOrderData()}}};t.default=r}).call(this,o("df3c")["default"])},"5ce5":function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return r})),o.d(t,"a",(function(){return i}));var i={nsLogin:function(){return Promise.all([o.e("common/vendor"),o.e("components/ns-login/ns-login")]).then(o.bind(null,"17d0"))},loadingCover:function(){return o.e("components/loading-cover/loading-cover").then(o.bind(null,"0773"))}},n=function(){var e=this.$createElement,t=(this._self._c,this.$util.img(this.orderData.sku_image,{size:"mid"})),o=parseFloat(this.orderData.price).toFixed(2).split("."),i=parseFloat(this.orderData.price).toFixed(2).split("."),n=parseFloat(this.orderData.commission).toFixed(2).split("."),r=parseFloat(this.orderData.commission).toFixed(2).split(".");this.$mp.data=Object.assign({},{$root:{g0:t,g1:o,g2:i,g3:n,g4:r}})},r=[]},9977:function(e,t,o){"use strict";o.r(t);var i=o("2fb8"),n=o.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},"9e16":function(e,t,o){},bf80:function(e,t,o){"use strict";var i=o("9e16"),n=o.n(i);n.a},bf81:function(e,t,o){"use strict";(function(e,t){var i=o("47a9");o("1dee");i(o("3240"));var n=i(o("1104"));e.__webpack_require_UNI_MP_PLUGIN__=o,t(n.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])}},[["bf81","common/runtime","common/vendor","pages_promotion/common/vendor"]]]);