You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
homestay/minsu/admin/node_modules/.cache/vue-loader/2dedf971afa5f916719e4eb0e90...

1 line
9.9 KiB

{"remainingRequest":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\src\\views\\pay.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\src\\views\\pay.vue","mtime":1649818274885},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1720078528573},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\node_modules\\babel-loader\\lib\\index.js","mtime":1720078529261},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1720078528573},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\node_modules\\vue-loader\\lib\\index.js","mtime":1720078529317}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KDQovLyBpbXBvcnQgeyBNZXNzYWdlIH0gZnJvbSAiZWxlbWVudC11aSI7DQpleHBvcnQgZGVmYXVsdCB7DQogIGRhdGEoKSB7DQogICAgcmV0dXJuIHsNCiAgICAgIHNlc3Npb25UYWJsZToiIiwvL+ihqA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+S6jjAiKTsNCiAgICAgICAgICByZXR1cm4gZmFsc2U7DQogICAgICB9DQoNCiAgICAgIF90aGlzLiRjb25maXJtKGDnoa7lrprlhYXlgLzkuYg/YCwgIuaPkOekuiIsIHsNCiAgICAgICAgY29uZmlybUJ1dHRvblRleHQ6ICLnoa7lrpoiLA0KICAgICAgICBjYW5jZWxCdXR0b25UZXh0OiAi5Y+W5raIIiwNCiAgICAgICAgdHlwZTogIndhcm5pbmciDQogICAgICB9KS50aGVuKCgpID0+IHsNCiAgICAgICAgX3RoaXMuJGh0dHAoew0KICAgICAgICAgIHVybDogYCR7X3RoaXMuc2Vzc2lvblRhYmxlfS91cGRhdGVgLA0KICAgICAgICAgIG1ldGhvZDogInBvc3QiLA0KICAgICAgICAgIGRhdGE6IHsNCiAgICAgICAgICAgICAgaWQ6X3RoaXMudXNlcklkLA0KICAgICAgICAgICAgICBuZXdNb25leTpOdW1iZXIoX3RoaXMubmV3TW9uZXkpK051bWJlcihfdGhpcy51c2VyLm5ld01vbmV5KSwNCiAgICAgICAgICB9DQogICAgICAgIH0pLnRoZW4oKHsgZGF0YSB9KSA9PiB7DQogICAgICAgICAgaWYgKGRhdGEgJiYgZGF0YS5jb2RlID09PSAwKSB7DQogICAgICAgICAgICBfdGhpcy4kbWVzc2FnZSh7DQogICAgICAgICAgICAgIG1lc3NhZ2U6ICLlhYXlgLzmiJDlip8iLA0KICAgICAgICAgICAgICB0eXBlOiAic3VjY2VzcyIsDQogICAgICAgICAgICAgIGR1cmF0aW9uOiAxNTAwLA0KICAgICAgICAgICAgICBvbkNsb3NlOiAoKSA9PiB7DQogICAgICAgICAgICAgICAgICBfdGhpcy4kcm91dGVyLnJlcGxhY2UoeyBwYXRoOiAiL2NlbnRlciIgfSk7DQogICAgICAgICAgICAgIH0NCiAgICAgICAgICAgIH0pOw0KICAgICAgICAgIH0gZWxzZSB7DQogICAgICAgICAgICB0aGlzLiRtZXNzYWdlLmVycm9yKGRhdGEubXNnKTsNCiAgICAgICAgICB9DQogICAgICAgIH0pOw0KICAgICAgfSk7DQogICAgfSwNCiAgICBiYWNrKCl7DQogICAgICB0aGlzLiRyb3V0ZXIucmVwbGFjZSh7IHBhdGg6ICIvY2VudGVyIiB9KTsNCiAgICB9DQogIH0NCn07DQo="},{"version":3,"sources":["pay.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"pay.vue","sourceRoot":"src/views","sourcesContent":["<template>\r\n <div class=\"container\">\r\n <el-alert title=\"检查好账户哦\" type=\"success\" :closable=\"false\"></el-alert>\r\n <el-row style=\"margin: 20px 0 0 20px;\">\r\n 充值金额:<el-input v-model=\"newMoney\" placeholder=\"充值金额\" style=\"width: 40%\" clearable></el-input>\r\n </el-row>\r\n <div class=\"pay-type-content\">\r\n <label>\r\n <div class=\"pay-type-item\" :span=\"8\">\r\n <el-radio v-model=\"type\" label=\"微信支付\"></el-radio>\r\n <img src=\"@/assets/img/test/weixin.png\" alt>\r\n </div>\r\n </label>\r\n <label>\r\n <div class=\"pay-type-item\" :span=\"8\">\r\n <el-radio v-model=\"type\" label=\"支付宝支付\"></el-radio>\r\n <img src=\"@/assets/img/test/zhifubao.png\" alt>\r\n </div>\r\n </label>\r\n <label>\r\n <div class=\"pay-type-item\" :span=\"8\">\r\n <el-radio v-model=\"type\" label=\"建设银行\"></el-radio>\r\n <img src=\"@/assets/img/test/jianshe.png\" alt>\r\n </div>\r\n </label>\r\n <label>\r\n <div class=\"pay-type-item\">\r\n <el-radio v-model=\"type\" label=\"农业银行\"></el-radio>\r\n <img src=\"@/assets/img/test/nongye.png\" alt>\r\n </div>\r\n </label>\r\n <label>\r\n <div class=\"pay-type-item\">\r\n <el-radio v-model=\"type\" label=\"中国银行\"></el-radio>\r\n <img src=\"@/assets/img/test/zhongguo.png\" alt>\r\n </div>\r\n </label>\r\n <label>\r\n <div class=\"pay-type-item\">\r\n <el-radio v-model=\"type\" label=\"交通银行\"></el-radio>\r\n <img src=\"@/assets/img/test/jiaotong.png\" alt>\r\n </div>\r\n </label>\r\n <label>\r\n <div class=\"pay-type-item\">\r\n <el-radio v-model=\"type\" label=\"民生银行\"></el-radio>\r\n <img src=\"@/assets/img/test/minsheng.png\" alt>\r\n </div>\r\n </label>\r\n <label>\r\n <div class=\"pay-type-item\">\r\n <el-radio v-model=\"type\" label=\"工商银行\"></el-radio>\r\n <img src=\"@/assets/img/test/gongshang.png\" alt>\r\n </div>\r\n </label>\r\n </div>\r\n <div class=\"buton-content\">\r\n <el-button @click=\"submitTap\" type=\"primary\">确认支付</el-button>\r\n <el-button @click=\"back()\">返回</el-button>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\n// import { Message } from \"element-ui\";\r\nexport default {\r\n data() {\r\n return {\r\n sessionTable:\"\",//表\r\n role:\"\",//权限\r\n userId:\"\",//账户\r\n type:\"支付宝支付\",\r\n newMoney: \"100\",//充值金额\r\n user:{},\r\n };\r\n },\r\n mounted() {\r\n let _this =this;\r\n this.sessionTable = this.$storage.get(\"sessionTable\");\r\n this.role = this.$storage.get(\"role\");\r\n this.userId = this.$storage.get(\"userId\");\r\n this.$http({\r\n url: `${this.sessionTable}/session`,\r\n method: \"get\"\r\n }).then(({ data }) => {\r\n if (data && data.code === 0) {\r\n _this.user = data.data;\r\n } else {\r\n _this.$message.error(data.msg);\r\n }\r\n });\r\n },\r\n methods: {\r\n submitTap() {\r\n let _this =this;\r\n if(_this.newMoney == null || _this.newMoney == \"\" || _this.newMoney <=0){\r\n this.$message.error(\"充值金额必须大于0\");\r\n return false;\r\n }\r\n\r\n _this.$confirm(`确定充值么?`, \"提示\", {\r\n confirmButtonText: \"确定\",\r\n cancelButtonText: \"取消\",\r\n type: \"warning\"\r\n }).then(() => {\r\n _this.$http({\r\n url: `${_this.sessionTable}/update`,\r\n method: \"post\",\r\n data: {\r\n id:_this.userId,\r\n newMoney:Number(_this.newMoney)+Number(_this.user.newMoney),\r\n }\r\n }).then(({ data }) => {\r\n if (data && data.code === 0) {\r\n _this.$message({\r\n message: \"充值成功\",\r\n type: \"success\",\r\n duration: 1500,\r\n onClose: () => {\r\n _this.$router.replace({ path: \"/center\" });\r\n }\r\n });\r\n } else {\r\n this.$message.error(data.msg);\r\n }\r\n });\r\n });\r\n },\r\n back(){\r\n this.$router.replace({ path: \"/center\" });\r\n }\r\n }\r\n};\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.container {\r\n margin: 10px;\r\n font-size: 14px;\r\n span {\r\n width: 60px;\r\n }\r\n .top-content {\r\n display: flex;\r\n align-items: center;\r\n padding: 20px;\r\n }\r\n .price-content {\r\n display: flex;\r\n align-items: center;\r\n margin-top: 20px;\r\n padding-bottom: 20px;\r\n padding: 20px;\r\n border-bottom: 1px solid #eeeeee;\r\n font-size: 20px;\r\n font-weight: bold;\r\n color: red;\r\n }\r\n .pay-type-content {\r\n display: flex;\r\n align-items: center;\r\n margin-top: 20px;\r\n flex-wrap: wrap;\r\n span {\r\n width: 100px;\r\n }\r\n .pay-type-item {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n width: 300px;\r\n margin: 20px;\r\n border: 1px solid #eeeeee;\r\n padding: 20px;\r\n }\r\n }\r\n .buton-content {\r\n margin: 20px;\r\n }\r\n}\r\n</style>\r\n"]}]}