require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/order_pay_status/index"],{"38c3":function(t,e,i){"use strict";i.r(e);var a=i("52a0"),o=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},"466c":function(t,e,i){"use strict";(function(t,e){var a=i("47a9");i("1d3c");a(i("3240"));var o=a(i("eb6a"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(o.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"52a0":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i("9ecc"),o=i("cef1"),n=i("8f59"),r=i("d057"),d=getApp(),s={data:function(){return{ProductTypeEnum:r.ProductTypeEnum,orderNo:"",order_pay_info:{paid:0,_status:{}},status:0,msg:"",errMsg:!1,payResult:"订单查询中...",theme:d.globalData.theme,fromType:"",type:""}},computed:(0,n.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,e){t&&this.getOrderPayInfo()},deep:!0}},onLoad:function(e){var i=this;this.fromType=e.fromType,this.orderNo=e.order_id,this.fromType&&"integral"!==this.fromType?(this.order_pay_info.payType=e.payType,this.order_pay_info.payPrice=e.payPrice,"yue"!==e.payType?(t.showLoading({title:"正在加载中"}),setTimeout((function(){i.wechatQueryPay("svip")}),500)):(this.payResult="支付成功",this.order_pay_info.paid=1)):(this.status=e.status||0,this.isLogin?this.getOrderPayInfo():(0,o.toLogin)())},methods:{setPaidMember:function(){this.$store.commit("updatePaidMember",!0)},wechatQueryPay:function(e){var i=this;(0,a.wechatQueryPayResult)({orderType:e,orderNo:this.orderNo}).then((function(e){e.data?(i.payResult="支付成功",i.order_pay_info.paid=1,t.hideLoading(),i.setPaidMember()):(i.payResult="支付失败",i.order_pay_info.paid=2,t.hideLoading())})).catch((function(e){i.order_pay_info.paid=2,i.errMsg=!0,i.msg=e,t.hideLoading(),i.$util.Tips({title:e})}))},onLoadFun:function(){"svip"!==this.fromType&&this.getOrderPayInfo()},getOrderPayInfo:function(){var e=this,i=this;t.showLoading({title:"正在加载中"}),(0,a.getOrderDetail)(i.orderNo).then((function(a){e.type=a.data.type,i.$set(i,"order_pay_info",a.data),"weixin"===a.data.payType?setTimeout((function(){i.wechatQueryPay("order")}),2e3):(a.data.paid?(e.payResult="支付成功",e.order_pay_info.paid=1):(e.payResult="支付失败",e.order_pay_info.paid=2),t.hideLoading())})).catch((function(e){t.hideLoading()}))},goIndex:function(t){this.$util.navigateTo("/pages/index/index")},goOrderDetails:function(e){t.navigateTo({url:"svip"==this.fromType?"/pages/activity/vip_paid/index":2==this.type?"/pages/activity/status/index?orderNo=".concat(this.orderNo):"/pages/goods/order_list/index"})}}};e.default=s}).call(this,i("df3c")["default"])},"99f9":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var a=function(){var t=this.$createElement,e=(this._self._c,this._f("payTypeFilter")(this.order_pay_info.payType));this.$mp.data=Object.assign({},{$root:{f0:e}})},o=[]},d7c8:function(t,e,i){},dc7f:function(t,e,i){"use strict";var a=i("d7c8"),o=i.n(a);o.a},eb6a:function(t,e,i){"use strict";i.r(e);var a=i("99f9"),o=i("38c3");for(var n in o)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("dc7f");var r=i("828b"),d=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=d.exports}},[["466c","common/runtime","common/vendor"]]]);