12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4c31168c"],{"10ab":function(t,i,A){"use strict";A("966b")},"31e3":function(t,i,A){var e={"./radio_0.png":"f8ff","./radio_1.png":"b04e"};function n(t){var i=a(t);return A(i)}function a(t){if(!A.o(e,t)){var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}return e[t]}n.keys=function(){return Object.keys(e)},n.resolve=a,t.exports=n,n.id="31e3"},6759:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABNpJREFUWEftmX9MVlUYx7/n3vv+kECFBgmoL0s0gciBImUWUzJMqrU1NFvT1ljLRb8GrjKH0T/MlYumq+ks2myRS2NroZYjStJoyRo/DUcTSXBFugDl/XnuaefC230vcLn3UqDvxvvffe85z/mc536f5zk/CEb9sl71pgmUFoKRdSBYCLCo0W2m9pkMgqEbhJ2URfHgz7sdbaHjkeBDagGzz3a59zCGbSAQpxbKpHUGSgg+GLg4q7j9c+LjvRRgDhuZ5DlGGMs1aWpamzFCaq91OTdwaAX47pKhvQwomlYKi4MRYF/DOxEvEEWzAdp008hAbyIMVJbEZSS7ZOhdAC9bnPCNal5BsovdrSAs7UYRWBqXkTaSXeIemP7UZQkzpDEZ5JJgk+0e2i91AcFHLzo1pu57zQ0//T+sqzZmgEP9OeNhXunMajh/hYjkeEFXkLdGAQ9mSJr3h38IQJYn1nDN2QA6L5sPI9PAT+dKWJakDxzpBNKTtEuQhg4KZsBSWetHc9cUABvF+kyW0PGQaUnw/vHRBEsS/l2RakwuiCUoyrdr/ttxyAuqk4eveYDG3wwEPg60JeBHskQUP2YzUse47+02QCDqZL/5JYDST/2WbVkCtmx9pIPTDhwrdSLCoQKXfebD8UbrZXBagFPmE1S+pJZtP2XIL/NgwG3dBdMC/GyehGceUKVU30ax/WNlx2P5Zxo4OZ5gdaqIpDiC6EgCKgP91xl6rzJ0XpbR2i2jr3/s+KIAVL/uQNxcNYdvr/Sivt16wHHrhsAxkcDOTXasWmq8L+3uk/HjrxR1rRRNF5hSNNZninhzs5o9eq7IKNjthWy+Vmi8MCFwYgzB+9vsuG2uALePobNXxl8DDG4f4LABsXMIkuIEzI4Ym+r+7JdxopEi504RrjjVu29X+3D0jPVgC1LrAnOgQ684wPPle1/60NrNN1XjS+72eQT33CEgL0PCkkT98s0n8Xi59z+tkXWB+dphw3IRWyq88FiIj3SXgCdzROSkiRAErecZY+jokVHbRPFtM0XPVcsxp6/hqhIHjp4J4MgkP9+uJ2x4aLl29RaKF4Sva5FR10LR3WdO1Loeri93oqTSh5/OW4/mR1eK2FGgLdNGvrzwh4xTbRSnz1FFfnrLUl3g47uc2FfjR81ZawGSlyGidJMNoqjKYe9XPkVWT62REB+tr/HgpAbdDM1dMtp/l/HhyYC5LFG+xYaoWQRF+80JmOfbwnUStuZKmjXD/hN+VNYODyqJAN8IbF0rISHGGJxnpjVveMwBp7sIDjzvQNWpAA58HYBHZ53C/bgqRcBz621YnKBCUJlhT7UfXzSM/UJ8cjw/c/CFsfrgloD5tHZutOHhLAkDQ0wpCOcu8WrGQAjBnFuAlPkCViQLmDfqM1+6IqOsyoeWixMHEk8ia+8aBg+dbNClloHtElBRaEfmIuMqxwf5+zrDJ9/5ceQ01f0iesF3b4oAnkrTXepYloG5cQ69+X5uSIArjiAhhkAcya9eP1PS0fleGd+3UjR0yPBpY8QoOYx5n7lIUDy+crGgTNq0hvVG4qyiOHywzE91jDaZlolHOixNJNi4WsJbh7XBY7j4meyAU9UvDA8Dw++4NcwOtMPuyoAHR1hdynDgsLv2CkKHzcViaM682a9u/wEp0j7do7dKkAAAAABJRU5ErkJggg=="},"966b":function(t,i,A){},b04e:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA3BJREFUWEfFl01oVFcUx///N2M+mjeWFoUWCiJEkpnprqFVIQo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dHsFnzjGuBKzachVAw/cspuzETmr5yh2FioTeSlDuxKewVcDPMTG3CMoHnK1e5Frgo4WdIRLJppr3DPdhV/eq082tCEpCsSkeAOPCeINfH9Nhe9eI9dZyA+aXListFpH+0Q9OP6vehQX/eek0pi8Cb6j1Qyx1rHRmcuforMv/c71rgpPCdeC0i1aFpp7Ed33Uex8rgtVgVHA9CbB/jTBAfN7yP87oaJi1zDweIFciPL4bHXcYiU6Kd6PJNLdKqt2KCTjCVMwNzbilLM7B58fTxypTkQEQpxQd1GWgcuMBswQtYJPDCwRW5UC6IYA64m/BYWw5OdR7n5cULmHNeIPLDp7FfWNcAzjauZwvbj6Kw4yhvC97AXAI3vx5YloXogBjegYZbAzjU+AkuXKvjXctrWrN33x+TiaeD1zKHXhvToaz7FCq1ZTCZbzHX2Qud6mHO5Js1J/HYQwvx2xUN8ltzrOsDbu4N9FZA4imzLnQMpgHoRvvx1/U/0DPc6TTk5EKngY/Fl+Hb1iOo6f/FJSCsJk4Dswa4Wvc/sKt71GUv3VyDzeTvjj8D3ex3q9v90Ha7LQNucLvVpgwH7HbbXneg3WZjcfKc96Bv3f4LCQPPQkBBTnsAAAAASUVORK5CYII="},e23a:function(t,i,A){"use strict";A.r(i);var e=function(){var t=this,i=t._self._c;return i("div",{staticClass:"wrap"},[i("div",{staticClass:"header-wrap"},[i("div",{staticClass:"header"},[i("img",{staticClass:"return-img",attrs:{src:A("f5a4"),alt:""},on:{click:function(i){return t.$router.back()}}}),i("p",{staticClass:"header-title"},[t._v("立即支付")])])]),i("div",{staticClass:"content"},[i("div",{staticClass:"tips"},[t._v("实付金额")]),i("div",{staticClass:"price"},[t._v("\n ¥"),i("span",[t._v(t._s(t.price))])]),i("div",{staticClass:"payment"},[i("div",{staticClass:"item",on:{click:function(i){t.payment=2}}},[i("img",{staticClass:"icon",attrs:{src:A("6759")}}),i("div",{staticClass:"label"},[t._v("支付宝")]),i("img",{staticClass:"radio",attrs:{src:A("31e3")("./radio_".concat(2==t.payment?1:0,".png"))}})]),i("div",{staticClass:"item",on:{click:function(i){t.payment=1}}},[i("img",{staticClass:"icon",attrs:{src:A("b474")}}),i("div",{staticClass:"label"},[t._v("微信")]),i("img",{staticClass:"radio",attrs:{src:A("31e3")("./radio_".concat(1==t.payment?1:0,".png")),alt:""}})])])]),i("div",{staticClass:"confirm",on:{click:t.submit}},[t._v("确认支付")]),i("van-popup",{attrs:{round:""},model:{value:t.show,callback:function(i){t.show=i},expression:"show"}},[i("div",{staticClass:"window"},[i("div",{staticClass:"title"},[t._v("确定离开吗?")]),i("div",{staticClass:"btn-box"},[i("div",{staticClass:"btn cancel",on:{click:function(i){return t.confirm_promise(!1)}}},[t._v("继续支付")]),i("div",{staticClass:"btn confirm",on:{click:function(i){return t.confirm_promise(!0)}}},[t._v("确认离开")])])])])],1)},n=[],a=(A("28a5"),A("f523")),s=A("325c"),o={data:function(){var t=Object(s["m"])();return{order_id:"",price:"",payment:2,isWeChat:t,loading:!1,show:!1,confirm_promise:null,path:""}},created:function(){var t=this.$route.query;this.order_id=t.order_id,this.price=t.price,this.payment=t.payment,this.path=location.href},beforeRouteLeave:function(t,i,A){var e=this;this.handleConfirm().then((function(t){t?A():(e.show=!1,location.href=e.path,A(!1))}))},methods:{submit:function(){var t=this;this.loading||(this.loading=!0,a["p"].payOrder({order_id:this.order_id,pay_type:1==this.payment&&this.isWeChat?5:this.payment}).then((function(i){var A=i.data;if(2===t.payment){var e=document.createElement("div");e.innerHTML=A.ali_url,document.body.appendChild(e),e.children.alipaysubmit.submit()}else{if(1==t.payment&&!t.isWeChat){var n=location.href.split("/#")[0]+"/#/my";return void(location.href=A.config.mweb_url+"&redirect_url="+encodeURIComponent(n))}t.isWeChat&&t.$wx.chooseWXPay({timestamp:A.config.timeStamp,nonceStr:A.config.nonceStr,package:A.config.package,signType:A.config.signType,paySign:A.config.paySign,success:function(i){console.log("--------------支付结果start--------------"),console.log(i),console.log("--------------支付结果end--------------"),t.$toast("支付成功!"),setTimeout((function(){t.loading=!0}),1e3)},fail:function(t){console.log("--------------支付失败start--------------"),console.log(t),console.log("--------------支付失败end--------------")}})}})))},handleConfirm:function(){var t=this;return this.show=!0,new Promise((function(i){t.confirm_promise=i}))}}},r=o,c=(A("10ab"),A("2877")),g=Object(c["a"])(r,e,n,!1,null,"5d91f084",null);i["default"]=g.exports},f5a4:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAm5JREFUWEft2MnLTlEYAPDfZx4yK8WCWLBgwQIbSobIkMiwYiMbJX+JWLFRSmJBUoYyLCjDQoREQgghikQiQ4/OW8eXvPfe976fV31ne8+9z+8+59xzn3O6dHjr6nCfXmCrI9RTGeyH2XiEl2XQPQEci5MJ+AlLcKkost3AcTiH6RloN3Z0AnACzmNqhvmBFTj1r4ETE25KBvmObdhbFBf92jHEgYrMBbLRvmEL9pfBtQM4LeHGZ5Cv2ITDZXF1A2fgLOLDaLQv2IhjVXB1AmfhDMZkkM9YW+aD+NNL1DEH5+I0RmYBPmJ1WmKqJu/Xfa0C5+MEhmWKD2kpudiSLN3cCnARjmNIBnmHZbhaB66VDC7HEQzKIG/Tb+x6XbiqwDU4hAEZ5BUW43aduCrA9TiIqE4a7TliuO/VjSsLjA8hSqV8zj3BQjxsB64scDRiKPPs3UzZe9MJwDBEmbSz2/J0JyFLFaJFX6jKMrMdu7oh76ehflY0cNF+VYDx7K3Ygz5ZoCjnYz4+Lhq8SL+qwHj2ZuxD3yzQ04R8UCR4kT6tAOP5G3AA/bNgL9KcvFsE0KxPq8B4fhQFUesNzIK9Tgv3rWaAZtfrAEaM+P8exeAsYPz6luJaM8TfrtcFjBjxgUTxMDQL+D7hr1RF1gkMw7xUfg3PQFF+rcSFKsi6gWGYkwrYURkoNuwxV2NLUKq1AxiAmWkLEKcKjRZbgHUpw4WR7QIGIE4T4lSh+yZqAS4XFbYTGIY4VYg9cpwyNFrHHH00QJMTchLidGFVOkwqlMR2Z7CBGIHYJsTf5UYhWerUU8Aypt/69gIrp+5/GeKfiUBcKeCBb1YAAAAASUVORK5CYII="},f8ff:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjdJREFUWEfNlz1oFEEUx/8zu0gKEY6rUlqI2ImFKJIottoppwbbu9kXwTaFH4UfxVkK5u3ctRL10E5bUYNELMROxMIy1XGgFkHuZmTCXths7twdExinnTfv/d7M+5gnEHiJwPbhAyDSNJ0TQpwzxpwEcAhALXNgAOCblHLNWvsqSZJVALaKc5UA0jS9aK29B2ADwAsAq1LKr7Vare+MDAaDujHmMIA5ABcAzAghbiZJ8rwM4q8A3W734HA4XAEQA1giotdlCt0+M58F0AYwjON4odlsfp92bipAp9M5PRqNnkgp7yullqteac6Q0FovGmNuRFF0pdVqvZ0EMREgM/4MwGUielPF62kyzHwGwNMoii5NgtgBkF37ewALuzU+hsogVuI4PlV8jh0AzLwmpXyslHq0G8+LZ7XW14wxV4nIZdDW2gaQRbsLtuP/8OZlvIKZPwoh2vnsyAM4gS8AFqtGe5nF4n6WHctEdGTs4BZAmqbz1tqHRHTUV7GPPDN/FkJcT5LknTuXB3hgrf1JRHd9FPrKMvMtKeV+pdTSNgBmdkS39yryS9LyDhHNFwHWpZTHlFLrvl75yGutZ40xn4hotgiwUa/XDzQajd8+Cn1le73evn6//4OIZv47gOBPEDYItdZtY8yvYGkYvBC5ohS0FLuUCN2MNlM6aDt2AME/JA4i6JdsXFqDfkrHEEG/5fkmE2wwKXS6zdEMwHlr7YlJo5kQ4gOAl3s+mvm2XB/5SrOhj0Jf2T/v4mswSYQZqgAAAABJRU5ErkJggg=="}}]);
- //# sourceMappingURL=chunk-4c31168c.379de7e1.js.map
|