(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order-submit/pay-result"],{"2f90":function(e,t,n){"use strict";(function(e){n("8748");r(n("66fd"));var t=r(n("6c2a"));function r(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"323b":function(e,t,n){"use strict";n.r(t);var r=n("6c54"),o=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},4507:function(e,t,n){"use strict";var r,o=function(){var e=this,t=e.$createElement;e._self._c},a=[];n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}))},"6c2a":function(e,t,n){"use strict";n.r(t);var r=n("4507"),o=n("323b");for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n("b6f7");var u,i=n("f0c5"),c=Object(i["a"])(o["default"],r["b"],r["c"],!1,null,"cb14e330",null,!1,r["a"],u);t["default"]=c.exports},"6c54":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("2f62");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=function(){n.e("components/page-component/app-related-suggestion-product/app-related-suggestion-product").then(function(){return resolve(n("f0d4"))}.bind(null,n)).catch(n.oe)},c=function(){n.e("components/page-component/app-order-share-modal/app-order-share-modal").then(function(){return resolve(n("d78b"))}.bind(null,n)).catch(n.oe)},s={name:"pay-result",components:{AppRelatedSuggestionProduct:i,appOrderShareModal:c},data:function(){return{payment_order_union_id:null,result:null,redirectUrl:null,recommendGoodsList:null,shareCheck:!1}},computed:a({},(0,r.mapState)({theme:function(e){return e.mallConfig.theme},appImg:function(e){return e.mallConfig.__wxapp_img}}),{showGift:function(){return!!this.result&&!!(this.result.send_data&&this.result.send_data.send_integral_num>0||this.result.send_data&&this.result.send_data.send_balance>0||this.result.user_coupon_list&&this.result.user_coupon_list.length||this.result.card_list&&this.result.card_list.length)}}),onLoad:function(e){this.payment_order_union_id=e.payment_order_union_id,this.orderPageUrl=decodeURIComponent(e.order_page_url||"/pages/order/index/index?status=0"),this.loadData(),this.loadRecommendGoodsList()},methods:{loadData:function(){var e=this;this.$showLoading({type:"global"}),this.$request({url:this.$api.order.pay_result,data:{payment_order_union_id:this.payment_order_union_id}}).then((function(t){e.$hideLoading(),0===t.code&&(e.result=t.data,e.shareCheck=e.result.shareCheck,e.result.order_page_url&&(e.orderPageUrl=e.result.order_page_url))})).catch((function(t){e.$hideLoading()}))},redirectTo:function(t){e.redirectTo({url:t})},reLaunch:function(t){e.reLaunch({url:t})},loadRecommendGoodsList:function(){var e=this;this.$request({url:this.$api.goods.new_recommend,method:"get",data:{type:"order_pay"}}).then((function(t){0===t.code&&(e.recommendGoodsList=t.data.list)})).catch((function(e){}))}}};t.default=s}).call(this,n("543d")["default"])},"960c":function(e,t,n){},b6f7:function(e,t,n){"use strict";var r=n("960c"),o=n.n(r);o.a}},[["2f90","common/runtime","common/vendor"]]]);