1 |
- {"version":3,"sources":["uni-app:///main.js","webpack:///D:/2022/10/hmd/pages/money/recharge.vue?0a49","webpack:///D:/2022/10/hmd/pages/money/recharge.vue?c063","webpack:///D:/2022/10/hmd/pages/money/recharge.vue?34e6","webpack:///D:/2022/10/hmd/pages/money/recharge.vue?5601","uni-app:///pages/money/recharge.vue","webpack:///D:/2022/10/hmd/pages/money/recharge.vue?3f3a","webpack:///D:/2022/10/hmd/pages/money/recharge.vue?d397"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,mG,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,iBAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAqH;AACrH;AAC4D;AACL;AACc;;;AAGrE;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,mFAAM;AACR,EAAE,4FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,uFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACbA;AAAA;AAAA;AAAA;AAAkmB,CAAgB,4nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACwCtnB;;;;;AAKA;;AAEA,+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eACA,EACA,WACA,sCADA,EADA,EAIA,IAJA,kBAIA,CACA,SACA,cADA,EAEA,SAFA,EAEA;AACA,sBAHA,CAGA;AAHA,MAKA,CAVA,EAWA,MAXA,kBAWA,OAXA,EAWA,EAXA,EAYA,YAZA,EAiBA,WACA;AACA,SAFA,iBAEA,GAFA,EAEA,CACA,iBACA,QADA,IAGA,CANA,EAOA;AACA,YARA,oBAQA,CARA,EAQA,CACA,cACA,CAVA,EAWA;AACA,WAZA,qBAYA,CACA,eACA;;;;;;;;;;;;;;;AA2BA;AACA,UADA,CACA;AACA;AACA;AACA,iCADA;AAEA,+BAFA;AAGA,6BAHA;AAIA,+BAJA;AAKA,6BALA;AAMA;AACA;AACA,4CADA;;AAGA,WAVA;;;;AAcA;AACA,OAlBA;AAmBA,WAnBA,CAmBA;AACA;AACA;AACA,OAtBA;;AAwBA,KAjEA;AAkEA;AACA,YAnEA,oBAmEA,MAnEA,EAmEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAFA;AAGA;AACA;AACA;AACA;AACA,OATA,EASA,GATA;AAUA,KA5FA,EAjBA,E;;;;;;;;;;;;;AChDA;AAAA;AAAA;AAAA;AAA6oC,CAAgB,mnCAAG,EAAC,C;;;;;;;;;;;ACAjqC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/money/recharge.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/money/recharge.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./recharge.vue?vue&type=template&id=472c1ccf&\"\nvar renderjs\nimport script from \"./recharge.vue?vue&type=script&lang=js&\"\nexport * from \"./recharge.vue?vue&type=script&lang=js&\"\nimport style0 from \"./recharge.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!E:\\\\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/recharge.vue\"\nexport default component.exports","export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./recharge.vue?vue&type=template&id=472c1ccf&\"","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 \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./recharge.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./recharge.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"content\">\n\t\t<view class=\"row-box\">\n\t\t\t<view class=\"title\">充值金额</view>\n\t\t\t<view class=\"row\">\n\t\t\t\t<text class=\"tit\">¥</text>\n\t\t\t\t<input class=\"input\" type=\"number\" v-model=\"money\" placeholder=\"请输入充值金额\" placeholder-class=\"placeholder\" />\n\t\t\t</view>\n\t\t</view>\n\n\t\t<view class=\"list\">\n\t\t\t<radio-group @change=\"tabRadio\">\n\t\t\t\t<!-- #ifdef APP-PLUS -->\n\t\t\t\t<label>\n\t\t\t\t\t<view class=\"box\">\n\t\t\t\t\t\t<view class=\"icon iconfont iconzhifubao\"></view>\n\t\t\t\t\t\t<view class=\"title-box\">\n\t\t\t\t\t\t\t<view class=\"title\"><text>支付宝充值</text></view>\n\t\t\t\t\t\t</view>\n\t\t\t\t\t\t<view class=\"right\"><radio value=\"alipay\" color=\"#5dbc7c\" :checked=\"type == 'alipay'\" /></view>\n\t\t\t\t\t</view>\n\t\t\t\t</label>\n\t\t\t\t<label>\n\t\t\t\t\t<view class=\"box\">\n\t\t\t\t\t\t<view class=\"icon iconfont iconweixin1\"></view>\n\t\t\t\t\t\t<view class=\"title-box\">\n\t\t\t\t\t\t\t<view class=\"title\"><text>微信充值</text></view>\n\t\t\t\t\t\t\t<view class=\"node\"><text>真实姓名(代勇明)</text></view>\n\t\t\t\t\t\t</view>\n\t\t\t\t\t\t<view class=\"right\"><radio value=\"weixin\" color=\" #5dbc7c\" :checked=\"type == 'weixin'\" /></view>\n\t\t\t\t\t</view>\n\t\t\t\t</label>\n\t\t\t\t<!-- #endif -->\n\t\t\t</radio-group>\n\t\t</view>\n\t\t<button class=\"add-btn up\" :class=\"{ 'active-bg': payLoding }\" @click=\"!payLoding ? confirm() : ''\">确认充值</button>\n\t</view>\n</template>\n\n<script>\nimport { getMoneyStyle } from '@/utils/rocessor.js';\n// #ifdef H5\nimport { rechargeWechat } from '@/api/wallet.js';\n// #endif\n// #ifdef MP\nimport { rechargeRoutine } from '@/api/wallet.js';\n// #endif\nimport { mapState } from 'vuex';\nexport default {\n\tfilters: {\n\t\tgetMoneyStyle\n\t},\n\tdata() {\n\t\treturn {\n\t\t\ttype: 'weixin',\n\t\t\tmoney: '', //充值金额\n\t\t\tpayLoding: false //是否加载中\n\t\t};\n\t},\n\tonLoad(options) {},\n\tcomputed: {\n\t\t// #ifdef H5\n\t\t...mapState(['weichatObj'])\n\t\t// #endif\n\t},\n\tmethods: {\n\t\t// 跳转\n\t\tnavTo(url) {\n\t\t\tuni.navigateTo({\n\t\t\t\turl: url\n\t\t\t});\n\t\t},\n\t\t// 切换选中对象\n\t\ttabRadio(e) {\n\t\t\tthis.type = e;\n\t\t},\n\t\t// 提交\n\t\tconfirm() {\n\t\t\tlet obj = this;\n\t\t\tobj.payLoding = true;\n\t\t\t// #ifdef H5\n\t\t\trechargeWechat({ price: this.money, from: this.type })\n\t\t\t\t.then(e => {\n\t\t\t\t\tlet da = e.data.data;\n\t\t\t\t\tobj.weichatObj.chooseWXPay({\n\t\t\t\t\t\ttimestamp: da.timestamp,\n\t\t\t\t\t\tnonceStr: da.nonceStr,\n\t\t\t\t\t\tpackage: da.package,\n\t\t\t\t\t\tsignType: da.signType,\n\t\t\t\t\t\tpaySign: da.paySign,\n\t\t\t\t\t\tsuccess: function(res) {\n\t\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\t\ttitle: '充值成功',\n\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t\tposition: 'top'\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tobj.payLoding = false;\n\t\t\t\t})\n\t\t\t\t.catch(e => {\n\t\t\t\t\tobj.payLoding = false;\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t});\n\t\t\t// #endif\n\t\t\t// #ifdef MP\n\t\t\trechargeRoutine({ price: this.money})\n\t\t\t\t.then(e => {\n\t\t\t\t\tlet da = e.data;\n\t\t\t\t\t\twx.requestPayment({\n\t\t\t\t\t\t\t\ttimeStamp: da.timestamp,\n\t\t\t\t\t\t\t\tnonceStr: da.nonceStr,\n\t\t\t\t\t\t\t\tpackage: da.package,\n\t\t\t\t\t\t\t\tsignType: da.signType,\n\t\t\t\t\t\t\t\tpaySign: da.paySign,\n\t\t\t\t\t\t\t\tsuccess: function(res) {\n\t\t\t\t\t\t\t\t\tuni.redirectTo({\n\t\t\t\t\t\t\t\t\t\turl: '/pages/money/paySuccess'\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\n\t\t\t\t\tobj.payLoding = false;\n\t\t\t\t})\n\t\t\t\t.catch(e => {\n\t\t\t\t\tobj.payLoding = false;\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t});\n\t\t\t// #endif\n\t\t},\n\t\t//获取订单列表\n\t\tloadData(source) {\n\t\t\tconsole.log(source);\n\t\t\t//这里是将订单挂载到tab列表下\n\t\t\tlet index = this.tabCurrentIndex;\n\t\t\tlet navItem = this.navList[index];\n\t\t\tlet state = navItem.state;\n\t\t\tif (source === 'tabChange' && navItem.loaded === true) {\n\t\t\t\t//tab切换只有第一次需要加载数据\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (navItem.loadingType === 'loading') {\n\t\t\t\t//防止重复加载\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tnavItem.loadingType = 'loading';\n\t\t\tsetTimeout(() => {\n\t\t\t\tlet orderList = [];\n\t\t\t\torderList.forEach(item => {\n\t\t\t\t\tnavItem.orderList.push(item);\n\t\t\t\t});\n\t\t\t\t//loaded新字段用于表示数据加载完毕,如果为空可以显示空白页\n\t\t\t\tthis.$set(navItem, 'loaded', true);\n\t\t\t\t//判断是否还有数据, 有改为 more, 没有改为noMore\n\t\t\t\tnavItem.loadingType = 'more';\n\t\t\t}, 600);\n\t\t}\n\t}\n};\n</script>\n\n<style lang=\"scss\">\npage {\n\theight: 100%;\n}\n\n.add-btn {\n\t&.modified {\n\t\tcolor: $base-color;\n\t}\n\t&.up {\n\t\tbackground-color: $base-color;\n\t\tcolor: #fff;\n\t}\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 690rpx;\n\theight: 80rpx;\n\tmargin: 0 auto;\n\tmargin-top: 30rpx;\n\tfont-size: $font-lg;\n\tborder-radius: 10rpx;\n\t// box-shadow: 1px 2px 5px rgba(219, 63, 96, 0.4);\n}\n.row-box {\n\tmargin-top: 30rpx;\n\tpadding: 20rpx 30rpx;\n\tbackground: #fff;\n\t.title {\n\t\tfont-size: $font-base + 2rpx;\n\t\tcolor: $font-color-dark;\n\t}\n\t.row {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tposition: relative;\n\t\theight: 80rpx;\n\t\t.tit {\n\t\t\tflex-shrink: 0;\n\t\t\twidth: 40rpx;\n\t\t\tfont-size: 30rpx;\n\t\t\tcolor: $font-color-dark;\n\t\t}\n\t\t.input {\n\t\t\tflex: 1;\n\t\t\tfont-size: 30rpx;\n\t\t\tcolor: $font-color-dark;\n\t\t}\n\t\t.iconlocation {\n\t\t\tfont-size: 36rpx;\n\t\t\tcolor: $font-color-light;\n\t\t}\n\n\t\t.buttom {\n\t\t\tcolor: $font-color;\n\t\t\tfont-size: $font-base;\n\t\t}\n\t}\n}\n.list {\n\tpadding-left: 30rpx;\n\tmargin-top: 30rpx;\n\tbackground-color: #ffffff;\n\t.box {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\theight: 120rpx;\n\t\tborder-bottom: 1px solid $border-color-light;\n\t\t.icon {\n\t\t\tfont-size: 48rpx;\n\t\t\tpadding-right: 20rpx;\n\t\t}\n\t\t.iconweixin1 {\n\t\t\tcolor: #18bf16;\n\t\t}\n\t\t.iconzhifubao {\n\t\t\tcolor: #08aaec;\n\t\t}\n\t\t.title-box {\n\t\t\tflex-grow: 1;\n\t\t\ttext-align: left;\n\t\t\t.title {\n\t\t\t\tfont-size: $font-base + 2rpx;\n\t\t\t\tcolor: $font-color-base;\n\t\t\t}\n\t\t\t.node {\n\t\t\t\tfont-size: $font-sm;\n\t\t\t\tcolor: $font-color-light;\n\t\t\t}\n\t\t}\n\t}\n}\n/deep/ .uni-radio-input {\n\twidth: 45rpx;\n\theight: 45rpx;\n}\n\n.active-bg {\n\tbackground-color: $color-gray !important;\n}\n</style>\n","import mod from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./recharge.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./recharge.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1666316405345\n var cssReload = require(\"E:/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":""}
|