pay.js.map 20 KB

1
  1. {"version":3,"sources":["uni-app:///main.js","webpack:///G:/item/appBase/pages/money/pay.vue?c344","webpack:///G:/item/appBase/pages/money/pay.vue?7295","webpack:///G:/item/appBase/pages/money/pay.vue?db7e","webpack:///G:/item/appBase/pages/money/pay.vue?213e","uni-app:///pages/money/pay.vue","webpack:///G:/item/appBase/pages/money/pay.vue?043e","webpack:///G:/item/appBase/pages/money/pay.vue?fbf8"],"names":["createPage","Page"],"mappings":"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","file":"pages/money/pay.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/money/pay.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./pay.vue?vue&type=template&id=5f7de3a0&\"\nvar renderjs\nimport script from \"./pay.vue?vue&type=script&lang=js&\"\nexport * from \"./pay.vue?vue&type=script&lang=js&\"\nimport style0 from \"./pay.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/money/pay.vue\"\nexport default component.exports","export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./pay.vue?vue&type=template&id=5f7de3a0&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n !_vm.payLoding ? _vm.confirm() : \"\"\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./pay.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./pay.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"app\">\r\n\t\t<view class=\"price-box\">\r\n\t\t\t<text>支付金额</text>\r\n\t\t\t<text class=\"price\">{{ money }}</text>\r\n\t\t</view>\r\n\t\t<view class=\"pay-type-list\">\r\n\t\t\t<view class=\"type-item b-b\" @click=\"changePayType(1)\">\r\n\t\t\t\t<text class=\"icon iconfont iconweixin\"></text>\r\n\t\t\t\t<view class=\"con\">\r\n\t\t\t\t\t<text class=\"tit\">微信支付</text>\r\n\t\t\t\t\t<text>推荐使用微信支付</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<label class=\"radio\"><radio value=\"\" color=\"#5dbc7c\" :checked=\"payType == 1\"></radio></label>\r\n\t\t\t</view>\r\n\t\t\t<!-- #ifdef APP-PLUS -->\r\n\t\t\t<view class=\"type-item b-b\" @click=\"changePayType(2)\">\r\n\t\t\t\t<text class=\"icon iconfont iconzhifubao\"></text>\r\n\t\t\t\t<view class=\"con\"><text class=\"tit\">支付宝支付</text></view>\r\n\t\t\t\t<label class=\"radio\"><radio value=\"\" color=\"#5dbc7c\" :checked=\"payType == 2\"></radio></label>\r\n\t\t\t</view>\r\n\t\t\t<!-- #endif -->\r\n\t\t\t<view class=\"type-item\" @click=\"changePayType(3)\">\r\n\t\t\t\t<text class=\"icon iconfont iconyue\"></text>\r\n\t\t\t\t<view class=\"con\">\r\n\t\t\t\t\t<text class=\"tit\">余额支付</text>\r\n\t\t\t\t\t<text>可用余额 ¥{{ now_money }}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<label class=\"radio\"><radio value=\"\" color=\"#5dbc7c\" :checked=\"payType == 3\"></radio></label>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<text class=\"mix-btn\" :class=\"{ clickbg: payLoding }\" @click=\"!payLoding ? confirm() : ''\">确认支付</text>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\nimport { balance } from '@/api/wallet.js';\r\nimport { createOrderkey,computedOrderkey,orderPay } from '@/api/order.js';\r\nimport { mapState } from 'vuex';\r\nexport default {\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tpayType: 1, //支付类型\r\n\t\t\t// #ifdef H5\r\n\t\t\tpayName: 'weixin',\r\n\t\t\t// #endif\r\n\t\t\t// #ifdef MP-WEIXIN\r\n\t\t\tpayName: 'weixin',\r\n\t\t\t// #endif\r\n\t\t\torderInfo: {},\r\n\t\t\tmoney: 0.0, //订单金额\r\n\t\t\tnow_money: 0.0, //余额\r\n\t\t\torderKey: '',\r\n\t\t\torderId: '', //保存订单id\r\n\t\t\tpayLoding: false, //判断是否支付中\r\n\t\t\ttype: '', //判断是否从订单中进入\r\n\t\t\t// #ifdef H5\r\n\t\t\tfroms: '', //保存h5中数据来源对象\r\n\t\t\t// #endif\r\n\t\t\tpinkid: '' //保存拼团商品id\r\n\t\t};\r\n\t},\r\n\tcomputed: {\r\n\t\t// #ifdef H5\r\n\t\t...mapState(['weichatObj'])\r\n\t\t// #endif\r\n\t},\r\n\tonLoad(options) {\r\n\t\tif (options.type == 1) {\r\n\t\t\tthis.type = 1;\r\n\t\t\tthis.orderId = options.ordid;\r\n\t\t\tthis.money = options.money;\r\n\t\t} else {\r\n\t\t\tthis.orderKey = options.key;\r\n\t\t\tlet prepage = this.$api.prePage();\r\n\t\t\tcomputedOrderkey({\r\n\t\t\t\torderkey: this.orderKey,\r\n\t\t\t\tcouponId: prepage.couponChecked.id, //优惠券编号\r\n\t\t\t\taddressId: prepage.addressData.id, //地址编号\r\n\t\t\t\tuseIntegral: prepage.checkedPoints ? 1 : 0\r\n\t\t\t}).then(({ data }) => {\r\n\t\t\t\t// 获取支付金额\r\n\t\t\t\tthis.money = data.result.pay_price;\r\n\t\t\t});\r\n\t\t}\r\n\t\t// 保存pinkid\r\n\t\tif (options.pinkid) {\r\n\t\t\tthis.pinkid = options.pinkid;\r\n\t\t}\r\n\t\t// 载入余额\r\n\t\tbalance({}).then(({ data }) => {\r\n\t\t\t// 获取余额\r\n\t\t\tthis.now_money = data.now_money;\r\n\t\t});\r\n\t},\r\n\tmethods: {\r\n\t\t//选择支付方式\r\n\t\tchangePayType(type) {\r\n\t\t\tthis.payType = type;\r\n\t\t\tif (this.payType == 1) {\r\n\t\t\t\tthis.payName = 'weixin';\r\n\t\t\t}\r\n\t\t\tif (this.payType == 2) {\r\n\t\t\t\tthis.payName = 'ali';\r\n\t\t\t}\r\n\t\t\tif (this.payType == 3) {\r\n\t\t\t\tthis.payName = 'yue';\r\n\t\t\t}\r\n\t\t},\r\n\t\t// 支付金额\r\n\t\torderMoneyPay() {\r\n\t\t\tlet obj = this;\r\n\t\t\torderPay({\r\n\t\t\t\tuni: obj.orderId,\r\n\t\t\t\t// #ifdef H5\r\n\t\t\t\tfrom: obj.froms ? 'weixin' : 'H5', //来源\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifdef MP-WEIXIN\r\n\t\t\t\tfrom: 'routine', //来源\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifdef APP-PLUS\r\n\t\t\t\tfrom: 'app', //来源\r\n\t\t\t\t// #endif\r\n\t\t\t\tpaytype: obj.payName //支付类型 weixin-微信 yue-余额\r\n\t\t\t})\r\n\t\t\t\t.then(e => {\r\n\t\t\t\t\t// 判断是否为余额支付\r\n\t\t\t\t\tif (obj.payName == 'yue' && e.data.status == 'SUCCESS') {\r\n\t\t\t\t\t\tif (e.status == 200) {\r\n\t\t\t\t\t\t\tobj.paySuccessTo();\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tobj.$api.msg(msg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (obj.payName == 'weixin' || obj.payName == 'routine') {\r\n\t\t\t\t\t\tlet da = e.data.result.jsConfig;\r\n\t\t\t\t\t\tlet data = {\r\n\t\t\t\t\t\t\t// #ifdef H5\r\n\t\t\t\t\t\t\ttimestamp: da.timestamp,\r\n\t\t\t\t\t\t\t// #endif\r\n\t\t\t\t\t\t\t// #ifdef MP\r\n\t\t\t\t\t\t\ttimeStamp: da.timestamp,\r\n\t\t\t\t\t\t\t// #endif\r\n\t\t\t\t\t\t\tnonceStr: da.nonceStr,\r\n\t\t\t\t\t\t\tpackage: da.package,\r\n\t\t\t\t\t\t\tsignType: da.signType,\r\n\t\t\t\t\t\t\tpaySign: da.paySign,\r\n\t\t\t\t\t\t\tsuccess: function(res) {\r\n\t\t\t\t\t\t\t\tobj.paySuccessTo();\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tfail: () => {\r\n\t\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\t\turl: '/pages/order/order?state=0'\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\t// #ifdef H5\r\n\t\t\t\t\t\tif(obj.payName == 'weixin'){\r\n\t\t\t\t\t\tobj.weichatObj.chooseWXPay(data);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// #endif\r\n\t\t\t\t\t\t// #ifdef MP-WEIXIN\r\n\t\t\t\t\t\tif(obj.payName == 'routine'){\r\n\t\t\t\t\t\t\twx.requestPayment(data);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// #endif\r\n\t\t\t\t\t}\r\n\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\tobj.payLoding = false;\r\n\t\t\t\t})\r\n\t\t\t\t.catch(e => {\r\n\t\t\t\t\t// 支付完成\r\n\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\tobj.payLoding = false;\r\n\t\t\t\t\tconsole.log(e);\r\n\t\t\t\t});\r\n\t\t},\r\n\t\t// 支付成功跳转\r\n\t\tpaySuccessTo() {\r\n\t\t\tuni.hideLoading();\r\n\t\t\tuni.redirectTo({\r\n\t\t\t\turl: '/pages/money/paySuccess?orderid=' + this.orderId\r\n\t\t\t});\r\n\t\t},\r\n\t\t//确认支付\r\n\t\tconfirm: async function() {\r\n\t\t\tlet obj = this;\r\n\t\t\tuni.showLoading({\r\n\t\t\t\ttitle: '支付中',\r\n\t\t\t\tmask: true\r\n\t\t\t})\r\n\t\t\t// 判断是否余额不足\r\n\t\t\tif (obj.payName == 'yue' && +obj.now_money < obj.money) {\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\tcontent: '账户余额不足!',\r\n\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\tsuccess: res => {},\r\n\t\t\t\t\tfail: () => {},\r\n\t\t\t\t\tcomplete: () => {}\r\n\t\t\t\t});\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t// 支付中\r\n\t\t\tobj.payLoding = true;\r\n\t\t\t// #ifdef H5\r\n\t\t\t// 获取当前是否为微信浏览器\r\n\t\t\tobj.froms = uni.getStorageSync('weichatBrowser') || '';\r\n\t\t\t// #endif\r\n\t\t\t// 判断是否为未支付订单中跳转进入\r\n\t\t\tif (obj.type != 1) {\r\n\t\t\t\t// 初次生成订单\r\n\t\t\t\tobj.firstCreateOrder();\r\n\t\t\t} else {\r\n\t\t\t\t// 已经生成订单未支付\r\n\t\t\t\tobj.orderMoneyPay();\r\n\t\t\t}\r\n\t\t},\r\n\t\t// 初次订单创建\r\n\t\tfirstCreateOrder() {\r\n\t\t\tlet obj = this;\r\n\t\t\t// 获取下单页面数据\r\n\t\t\tlet prepage = obj.$api.prePage();\r\n\r\n\t\t\tlet data = {\r\n\t\t\t\treal_name: prepage.addressData.real_name, //联系人名称\r\n\t\t\t\tphone: prepage.addressData.phone, //联系人号码\r\n\t\t\t\tcouponId: prepage.couponChecked.id, //优惠券编号\r\n\t\t\t\taddressId: prepage.addressData.id, //支付地址id\r\n\t\t\t\tuseIntegral: prepage.checkedPoints ? 1 : 0, //是否积分抵扣1为是0为否\r\n\t\t\t\tpayType: obj.payName, //支付类型 weixin-微信 yue-余额\r\n\t\t\t\tmark: prepage.desc, //备注\r\n\t\t\t\t// #ifdef H5\r\n\t\t\t\tfrom: obj.froms ? 'weixin' : 'H5', //来源\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifdef MP-WEIXIN\r\n\t\t\t\tfrom: 'routine', //来源\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifdef APP-PLUS\r\n\t\t\t\tfrom: 'app', //来源\r\n\t\t\t\t// #endif\r\n\t\t\t\tshipping_type: 1 //提货方式 1 快递 2自提\r\n\t\t\t};\r\n\t\t\t// 判断是否拼团商品\r\n\t\t\tif (obj.pinkid) {\r\n\t\t\t\tdata.pinkId = obj.pinkid;\r\n\t\t\t}\r\n\t\t\t// 生成订单\r\n\t\t\tcreateOrderkey(data, obj.orderKey)\r\n\t\t\t\t.then(({ data, status, msg }) => {\r\n\t\t\t\t\t// 判断是否支付失败\r\n\t\t\t\t\tif (data.status == 'ORDER_EXIST') {\r\n\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\t\t\tcontent: msg,\r\n\t\t\t\t\t\t\tshowCancel: false\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\t\tobj.payLoding = false;\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// 保存订单号\r\n\t\t\t\t\tobj.orderId = data.result.orderId;\r\n\t\t\t\t\t// 判断是否为余额支付\r\n\t\t\t\t\tif (obj.payName == 'yue') {\r\n\t\t\t\t\t\tif (status == 200 && data.status == 'SUCCESS') {\r\n\t\t\t\t\t\t\tobj.paySuccessTo();\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tobj.$api.msg(msg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// 立即支付\r\n\t\t\t\t\t\tobj.orderMoneyPay();\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\t.catch(e => {\r\n\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\tobj.payLoding = false;\r\n\t\t\t\t\tconsole.log(e);\r\n\t\t\t\t});\r\n\t\t}\r\n\t}\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n.app {\r\n\twidth: 100%;\r\n}\r\n\r\n.price-box {\r\n\tbackground-color: #fff;\r\n\theight: 265upx;\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n\tfont-size: 28upx;\r\n\tcolor: #909399;\r\n\r\n\t.price {\r\n\t\tfont-size: 50upx;\r\n\t\tcolor: #303133;\r\n\t\tmargin-top: 12upx;\r\n\t\t&:before {\r\n\t\t\tcontent: '¥';\r\n\t\t\tfont-size: 40upx;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.pay-type-list {\r\n\tmargin-top: 20upx;\r\n\tbackground-color: #fff;\r\n\tpadding-left: 60upx;\r\n\t.type-item {\r\n\t\theight: 120upx;\r\n\t\tpadding: 20upx 0;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t\tpadding-right: 60upx;\r\n\t\tfont-size: 30upx;\r\n\t\tposition: relative;\r\n\t}\r\n\r\n\t.icon {\r\n\t\twidth: 100upx;\r\n\t\tfont-size: 52upx;\r\n\t}\r\n\t.iconyue {\r\n\t\tcolor: #fe8e2e;\r\n\t}\r\n\t.iconweixin {\r\n\t\tcolor: #36cb59;\r\n\t}\r\n\t.iconzhifubao {\r\n\t\tcolor: #01aaef;\r\n\t}\r\n\t.tit {\r\n\t\tfont-size: $font-lg;\r\n\t\tcolor: $font-color-dark;\r\n\t\tmargin-bottom: 4upx;\r\n\t}\r\n\t.con {\r\n\t\tflex: 1;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\tfont-size: $font-sm;\r\n\t\tcolor: $font-color-light;\r\n\t}\r\n}\r\n.mix-btn {\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\twidth: 630upx;\r\n\theight: 80upx;\r\n\tmargin: 80upx auto 30upx;\r\n\tfont-size: $font-lg;\r\n\tcolor: #fff;\r\n\tbackground-color: $base-color;\r\n\tborder-radius: 10upx;\r\n\t/* box-shadow: 1px 2px 5px rgba(219, 63, 96, 0.4); */\r\n}\r\n\r\n.clickbg {\r\n\tbackground-color: $color-gray !important;\r\n}\r\n</style>\r\n","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./pay.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./pay.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1618025084862\n var cssReload = require(\"D:/work/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}