qauMaWeb/node_modules/.cache/babel-loader/41e785aaf6072b30ebfc78172f8...

1 line
3.0 KiB
JSON

{"ast":null,"code":"import \"core-js/modules/es.number.to-fixed.js\";\nimport \"core-js/modules/es.regexp.exec.js\";\nimport \"core-js/modules/es.string.replace.js\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default {\n name: \"Pay\",\n data: function data() {\n return {\n userId: 0,\n money1: 0,\n orderNo: ''\n };\n },\n created: function created() {\n this.money = parseFloat(this.$route.query.money).toFixed(2);\n this.orderNo = this.$route.query.orderNo;\n },\n methods: {\n pay: function pay() {\n var _this = this;\n\n this.request.get(\"/api/order/paid/\" + this.orderNo).then(function (res) {\n if (res.code === '200') {\n alert(\"您成功支付\" + _this.money + \"元\");\n\n _this.$router.replace(\"/orderlist\");\n } else {\n _this.$message.error(res.msg);\n }\n });\n }\n }\n};","map":{"version":3,"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA;AACAA,aADA;AAEAC,MAFA,kBAEA;AACA;AACAC,eADA;AAEAC,eAFA;AAGAC;AAHA;AAKA,GARA;AASAC,SATA,qBASA;AACA;AACA;AACA,GAZA;AAcAC;AACAC,OADA,iBACA;AAAA;;AACA;AACA;AACAC;;AACA;AACA,SAHA,MAGA;AACA;AACA;AACA,OAPA;AASA;AAXA;AAdA","names":["name","data","userId","money1","orderNo","created","methods","pay","alert"],"sourceRoot":"src/views/front/order","sources":["Pay.vue"],"sourcesContent":["<!--\r\n * @Description: \r\n * @Author: Rabbiter\r\n * @Date: 2023-03-26 15:27:05\r\n-->\r\n<template>\r\n<div style=\"margin-top: 10px;width: 50%;margin: 10px auto;background-color: white;text-align: center\">\r\n <table style=\"margin: 20px auto\">\r\n <tr>\r\n <th>订单号</th>\r\n <td>{{orderNo}}</td>\r\n </tr>\r\n\r\n <tr>\r\n <th>金额</th>\r\n <td>{{money}} 元</td>\r\n </tr>\r\n\r\n </table>\r\n <hr style=\"width: 280px\" />\r\n <div>\r\n <span>支付方式:</span>\r\n </div>\r\n <img src=\"../../../resource/img/微信支付.png\" style=\"width: 45px;height: 45px;margin-right: 30px;cursor:pointer;\" @click=\"pay\">\r\n <img src=\"../../../resource/img/支付宝.png\" style=\"width: 50px;height: 50px;cursor:pointer;\" @click=\"pay\">\r\n</div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"Pay\",\r\n data(){\r\n return{\r\n userId: 0,\r\n money1: 0,\r\n orderNo: '',\r\n }\r\n },\r\n created() {\r\n this.money = parseFloat(this.$route.query.money).toFixed(2);\r\n this.orderNo = this.$route.query.orderNo;\r\n },\r\n\r\n methods:{\r\n pay(){\r\n this.request.get(\"/api/order/paid/\"+this.orderNo).then(res=>{\r\n if(res.code==='200'){\r\n alert(\"您成功支付\"+this.money+\"元\")\r\n this.$router.replace(\"/orderlist\")\r\n }else{\r\n this.$message.error(res.msg)\r\n }\r\n })\r\n\r\n }\r\n }\r\n\r\n}\r\n</script>\r\n\r\n<style scoped>\r\ntr{\r\n line-height:40px;\r\n}\r\n\r\n</style>"]},"metadata":{},"sourceType":"module"}