1 |
- {"version":3,"sources":["webpack:///./src/assets/pay_success.png","webpack:///./src/views/paymentResult.vue?5e51","webpack:///src/views/paymentResult.vue","webpack:///./src/views/paymentResult.vue?f54e","webpack:///./src/views/paymentResult.vue","webpack:///./src/views/paymentResult.vue?046a","webpack:///./src/assets/pay_error.png","webpack:///./src/assets/pay_ing.png"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","pageStatus","attrs","on","onAppBack","_e","_s","smsText","staticRenderFns","component"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,gC,2CCA3C,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,SAAS,CAACJ,EAAIO,GAAG,UAA6B,MAAlBP,EAAIQ,WAAoBJ,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,MAAM,CAACK,MAAM,CAAC,IAAM,EAAQ,QAA4B,IAAM,MAAML,EAAG,IAAI,CAACJ,EAAIO,GAAG,UAAUH,EAAG,aAAa,CAACK,MAAM,CAAC,KAAO,OAAO,MAAQ,IAAIC,GAAG,CAAC,MAAQV,EAAIW,YAAY,CAACX,EAAIO,GAAG,SAAS,GAAGP,EAAIY,KAAwB,SAAlBZ,EAAIQ,WAAuBJ,EAAG,MAAM,CAACE,YAAY,YAAY,CAACF,EAAG,MAAM,CAACK,MAAM,CAAC,IAAM,EAAQ,QAA0B,IAAM,MAAML,EAAG,IAAI,CAACJ,EAAIO,GAAG,UAAUH,EAAG,aAAa,CAACK,MAAM,CAAC,KAAO,OAAO,MAAQ,IAAIC,GAAG,CAAC,MAAQV,EAAIW,YAAY,CAACX,EAAIO,GAAG,SAAS,GAAGP,EAAIY,KAAwB,UAAlBZ,EAAIQ,WAAwBJ,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACK,MAAM,CAAC,IAAM,EAAQ,QAAwB,IAAM,MAAML,EAAG,IAAI,CAACJ,EAAIO,GAAG,WAAWH,EAAG,aAAa,CAACK,MAAM,CAAC,KAAO,OAAO,MAAQ,IAAIC,GAAG,CAAC,MAAQV,EAAIW,YAAY,CAACX,EAAIO,GAAG,QAAQH,EAAG,IAAI,CAACE,YAAY,aAAa,CAACN,EAAIO,GAAG,MAAMP,EAAIa,GAAGb,EAAIc,SAAS,UAAU,GAAGd,EAAIY,QAC3/BG,EAAkB,GCyBtB,GACE,KAAF,gBACE,KAFF,WAGI,MAAJ,CACM,WAAN,KACM,QAAN,KAGE,QARF,WASI,KAAJ,UAEE,QAAF,CACI,OADJ,WACM,IAAN,OACA,oBAEA,UACQ,KAAR,sEACU,IAAV,SACA,YACA,cACc,EAAd,oBACc,EAAd,aACA,iBACc,EAAd,gBACA,gBACc,EAAd,qBAGY,EAAZ,cACY,EAAZ,uBAIQ,KAAR,oBACQ,KAAR,cAGI,UA1BJ,WA2BM,KAAN,6BAEI,UA7BJ,WA6BM,IAAN,OACA,KACM,KAAN,UACM,IAAN,yBACA,MACU,OAAV,kBACU,cAAV,KAEU,IACA,EAAV,YAEA,QC7EuV,I,wBCQnVC,EAAY,eACd,EACAjB,EACAgB,GACA,EACA,KACA,WACA,MAIa,aAAAC,E,6CCnBf,yBAA2iB,EAAG,G,8CCA9iBnB,EAAOC,QAAU,IAA0B,8B,qBCA3CD,EAAOC,QAAU,IAA0B","file":"js/chunk-957805ae.a523c346.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/pay_success.181846c1.png\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"paymentresult\"},[_c('header',[_vm._v(\"支付状态\")]),(_vm.pageStatus == 'on')?_c('div',{staticClass:\"payon\"},[_c('img',{attrs:{\"src\":require(\"@/assets/pay_success.png\"),\"alt\":\"\"}}),_c('p',[_vm._v(\"支付成功\")]),_c('van-button',{attrs:{\"type\":\"info\",\"round\":\"\"},on:{\"click\":_vm.onAppBack}},[_vm._v(\"返回\")])],1):_vm._e(),(_vm.pageStatus == 'error')?_c('div',{staticClass:\"payerror\"},[_c('img',{attrs:{\"src\":require(\"@/assets/pay_error.png\"),\"alt\":\"\"}}),_c('p',[_vm._v(\"支付失败\")]),_c('van-button',{attrs:{\"type\":\"info\",\"round\":\"\"},on:{\"click\":_vm.onAppBack}},[_vm._v(\"返回\")])],1):_vm._e(),(_vm.pageStatus == 'paying')?_c('div',{staticClass:\"paying\"},[_c('img',{attrs:{\"src\":require(\"@/assets/pay_ing.png\"),\"alt\":\"\"}}),_c('p',[_vm._v(\"订单处理中\")]),_c('van-button',{attrs:{\"type\":\"info\",\"round\":\"\"},on:{\"click\":_vm.onAppBack}},[_vm._v(\"返回\")]),_c('p',{staticClass:\"countdown\"},[_vm._v(\"到计时\"+_vm._s(_vm.smsText)+\"秒刷新\")])],1):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"paymentresult\">\r\n <header>支付状态</header>\r\n <div class=\"payon\" v-if=\"pageStatus == 'on'\">\r\n <img src=\"@/assets/pay_success.png\" alt=\"\">\r\n <p>支付成功</p>\r\n <van-button type=\"info\" @click=\"onAppBack\" round>返回</van-button>\r\n </div>\r\n\r\n <div class=\"payerror\" v-if=\"pageStatus == 'error'\">\r\n <img src=\"@/assets/pay_error.png\" alt=\"\">\r\n <p>支付失败</p>\r\n <van-button type=\"info\" @click=\"onAppBack\" round>返回</van-button>\r\n </div>\r\n\r\n <div class=\"paying\" v-if=\"pageStatus == 'paying'\">\r\n <img src=\"@/assets/pay_ing.png\" alt=\"\">\r\n <p>订单处理中</p>\r\n <van-button type=\"info\" @click=\"onAppBack\" round>返回</van-button>\r\n <p class=\"countdown\">到计时{{ smsText }}秒刷新</p>\r\n </div>\r\n<!-- ?merOrderId=201911012051504080001 -->\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'paymentresult',\r\n data() {\r\n return {\r\n pageStatus: null,\r\n smsText: 60\r\n }\r\n },\r\n mounted() {\r\n this.__init()\r\n },\r\n methods: {\r\n __init() {\r\n let params = this.$route.query\r\n // 支付成功\r\n if(params.orderNo) {\r\n this.$axios.get('/yqpay/getPayStatus?orderNo=' + params.orderNo).then(res => {\r\n let result = res.data\r\n if(result.code == 200) {\r\n if(result.msg == \"ING\") {\r\n this.pageStatus = 'paying'\r\n this.CountDown()\r\n } else if(result.msg == 'SUCCESS') {\r\n this.pageStatus = 'on'\r\n } else if(result.msg == 'FAIL') {\r\n this.pageStatus = 'error'\r\n }\r\n } else {\r\n this.$toast(result.msg)\r\n this.pageStatus = 'error'\r\n }\r\n })\r\n } else {\r\n this.pageStatus = 'paying'\r\n this.CountDown()\r\n }\r\n },\r\n onAppBack() { // app回调页面\r\n this.$router.push('loginActive')\r\n },\r\n CountDown() {\r\n let s = 60\r\n this.smsText = s\r\n let timer = setInterval(() => {\r\n if(s <= 0) {\r\n window.location.reload()\r\n clearInterval(timer)\r\n } else {\r\n s--\r\n this.smsText = s\r\n }\r\n }, 1000);\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"less\" scoped>\r\nheader {\r\n height: .40rem;\r\n line-height: .40rem;\r\n color: #000;\r\n font-size: .17rem;\r\n background: #fff;\r\n box-shadow: 0px 1px 8px 0px rgba(0,0,0,0.07);\r\n text-align: center;\r\n margin-bottom: .06rem;\r\n}\r\n\r\n.paymentresult {\r\n min-height: 100vh;\r\n}\r\n.payerror, .payon, .paying {\r\n padding-top: 1rem;\r\n img {\r\n display: block;\r\n margin: 0 auto;\r\n width: 1.03rem;\r\n height: 1.37rem;\r\n }\r\n p {\r\n padding-top: .12rem;\r\n font-size: .18rem;\r\n color: #444444;\r\n text-align: center;\r\n margin-bottom: 1.5rem;\r\n &.countdown {\r\n font-size: .14rem;\r\n }\r\n }\r\n}\r\n.van-button {\r\n width: 90%;\r\n margin: 0 5% 0;\r\n line-height: .48rem;\r\n height: .5rem;\r\n font-size: .18rem;\r\n background: #14928A;\r\n border-color: #14928A;\r\n}\r\n\r\n</style>","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./paymentResult.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./paymentResult.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./paymentResult.vue?vue&type=template&id=7dda10f4&scoped=true&\"\nimport script from \"./paymentResult.vue?vue&type=script&lang=js&\"\nexport * from \"./paymentResult.vue?vue&type=script&lang=js&\"\nimport style0 from \"./paymentResult.vue?vue&type=style&index=0&id=7dda10f4&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7dda10f4\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./paymentResult.vue?vue&type=style&index=0&id=7dda10f4&lang=less&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./paymentResult.vue?vue&type=style&index=0&id=7dda10f4&lang=less&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/pay_error.109ccf27.png\";","module.exports = __webpack_public_path__ + \"img/pay_ing.2848bdf2.png\";"],"sourceRoot":""}
|