(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21e690ac"],{"22a3":function(t,i,n){"use strict";n.r(i);var e=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"order-success-wrap"},[t.isInHooliApp?t._e():e("van-nav-bar",{attrs:{title:"支付结果","left-text":"","left-arrow":""},on:{"click-left":t.handleAppButton}}),e("div",{staticClass:"wrap"},[e("div",{staticClass:"done"},[e("img",{attrs:{src:n("5b9f"),alt:""}}),e("h5",[t._v("支付成功！")]),e("p",[t._v("该订单记录可在【我的订单】中查询")]),e("div",{staticClass:"btn"},[e("van-button",{attrs:{type:"default"},on:{click:t.handleAppButton}},[t._v("返回订单")]),e("van-button",{staticClass:"backhome",attrs:{type:"default"},on:{click:t.handleBackHome}},[t._v("回到首页")])],1)])])],1)},a=[],o=(n("a481"),{name:"OrderSuccess",data:function(){return{env:"",isFinish:!1,isInHooliApp:!1}},created:function(){(this.$util.checkIsHooliAndroid()||this.$util.checkIsHooliIos())&&(this.isInHooliApp=!0),this.$util.checkIsHooliAndroid()?this.env="android":this.$util.checkIsHooliIos()&&(this.env="ios")},methods:{handleAppButton:function(){var t=this;if(this.isInHooliApp){window.AppCallback={},window.nativeToJavaScript=function(i){try{if(i){i=JSON.parse(decodeURIComponent(i));var n=i,e=n.type,a=n.data;switch(e=parseInt(e),window.AppCallback[e]=a,e){case 8:t.isFinish=!0;break;default:break}}}catch(o){alert(JSON.stringify(o))}};var i={type:8,data:{pay_status:!0,is_finish:this.isFinish}};i=encodeURIComponent(JSON.stringify(i)),"android"===this.env?window.Android.javaScriptToNative(i):"ios"===this.env&&window.webkit.messageHandlers.javaScriptToNative.postMessage(i)}else{var n=this.$store.state.langStr,e=window.localStorage.getItem("orderInfoId");e?window.location.replace("/".concat(n,"/orderInfo/").concat(e)):window.location.replace("/".concat(n,"/user/orders"))}},handleBackHome:function(){window.location.replace("/")}}}),s=o,c=(n("342e"),n("2877")),r=Object(c["a"])(s,e,a,!1,null,"6bd5c832",null);r.options.__file="success.vue";i["default"]=r.exports},"342e":function(t,i,n){"use strict";var e=n("82f0"),a=n.n(e);a.a},"5b9f":function(t,i,n){t.exports=n.p+"img/done@2x.9fb6f435.png"},"82f0":function(t,i,n){}}]);
//# sourceMappingURL=chunk-21e690ac.7e089fb7.js.map