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.
1 lines
15 KiB
1 lines
15 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/yangjie/Desktop/uniApp/商城模板/pages/pay/payment/payment.vue?21d5","webpack:////Users/yangjie/Desktop/uniApp/商城模板/pages/pay/payment/payment.vue?4991","webpack:////Users/yangjie/Desktop/uniApp/商城模板/pages/pay/payment/payment.vue?ef99","webpack:////Users/yangjie/Desktop/uniApp/商城模板/pages/pay/payment/payment.vue?eeb8","uni-app:///pages/pay/payment/payment.vue","webpack:////Users/yangjie/Desktop/uniApp/商城模板/pages/pay/payment/payment.vue?b549","webpack:////Users/yangjie/Desktop/uniApp/商城模板/pages/pay/payment/payment.vue?b7b6"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,uG;AACAA,UAAU,CAACC,gBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAoH;AACpH;AAC2D;AACL;AACc;;;AAGpE;AACmN;AACnN,gBAAgB,iNAAU;AAC1B,EAAE,6EAAM;AACR,EAAE,kFAAM;AACR,EAAE,2FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,sFAAU;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACjBA;AAAA;AAAA;AAAA;AAAo1B,CAAgB,qyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACyDx2B;AACA,MADA,kBACA;AACA;AACA,eADA;AAEA,mBAFA;AAGA,uBAHA,CAGA;AAHA;AAKA,GAPA;AAQA,QARA,kBAQA,CARA,EAQA;AACA;AACA;AACA,yBADA;AAEA;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA;AACA;AACA,6BADA;;AAGA,OAXA;;AAaA,GAvBA;AAwBA;AACA,aADA,uBACA;AACA;AACA;AACA,uBADA;;AAGA;AACA;AACA;AACA,uBADA;;AAGA;AACA;AACA,oEADA;;AAGA,SAJA,EAIA,GAJA;AAKA,OAVA,EAUA,GAVA;AAWA,KAjBA,EAxBA,E;;;;;;;;;;;;;ACzDA;AAAA;AAAA;AAAA;AAAyhD,CAAgB,+3CAAG,EAAC,C;;;;;;;;;;;ACA7iD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/pay/payment/payment.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/pay/payment/payment.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./payment.vue?vue&type=template&id=7774a4a6&\"\nvar renderjs\nimport script from \"./payment.vue?vue&type=script&lang=js&\"\nexport * from \"./payment.vue?vue&type=script&lang=js&\"\nimport style0 from \"./payment.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../Applications/HBuilderX.app/Contents/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/pay/payment/payment.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./payment.vue?vue&type=template&id=7774a4a6&\"","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.paytype = \"alipay\"\n }\n\n _vm.e1 = function($event) {\n _vm.paytype = \"wxpay\"\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./payment.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./payment.vue?vue&type=script&lang=js&\"","<template>\n\t<view>\r\n\t\t<view class=\"block\">\r\n\t\t\t<view class=\"content\">\r\n\t\t\t\t<view class=\"orderinfo\">\r\n\t\t\t\t\t<view class=\"row\">\r\n\t\t\t\t\t\t<view class=\"nominal\">订单名称:</view><view class=\"text\">{{orderName}}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"row\">\r\n\t\t\t\t\t\t<view class=\"nominal\">订单金额:</view><view class=\"text\">{{amount}}元</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"block\">\r\n\t\t\t<view class=\"title\">\r\n\t\t\t\t选择支付方式\r\n\t\t\t</view>\r\n\t\t\t<view class=\"content\">\r\n\t\t\t\t<view class=\"pay-list\">\r\n\t\t\t\t\t<view class=\"row\" @tap=\"paytype='alipay'\">\r\n\t\t\t\t\t\t\t<view class=\"left\">\r\n\t\t\t\t\t\t\t\t<image src=\"/static/img/alipay.png\"></image>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view class=\"center\">\r\n\t\t\t\t\t\t\t\t支付宝支付\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view class=\"right\">\r\n\t\t\t\t\t\t\t\t<radio :checked=\"paytype=='alipay'\" color=\"#f06c7a\" />\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"row\" @tap=\"paytype='wxpay'\">\r\n\t\t\t\t\t\t\t<view class=\"left\">\r\n\t\t\t\t\t\t\t\t<image src=\"/static/img/wxpay.png\"></image>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view class=\"center\">\r\n\t\t\t\t\t\t\t\t微信支付\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view class=\"right\">\r\n\t\t\t\t\t\t\t\t<radio :checked=\"paytype=='wxpay'\" color=\"#f06c7a\" />\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"pay\">\r\n\t\t\t<view class=\"btn\" @tap=\"doDeposit\">立即支付</view>\r\n\t\t\t<view class=\"tis\">\r\n\t\t\t\t点击立即支付,即代表您同意<view class=\"terms\">\r\n\t\t\t\t\t《条款协议》\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tamount:0,\r\n\t\t\t\torderName:'',\r\n\t\t\t\tpaytype:'alipay'//支付类型\n\t\t\t};\n\t\t},\r\n\t\tonLoad(e) {\r\n\t\t\tthis.amount = parseFloat(e.amount).toFixed(2);\r\n\t\t\tuni.getStorage({\r\n\t\t\t\tkey:'paymentOrder',\r\n\t\t\t\tsuccess: (e) => {\r\n\t\t\t\t\tif(e.data.length>1){\r\n\t\t\t\t\t\tthis.orderName = '多商品合并支付'\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tthis.orderName = e.data[0].name;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tuni.removeStorage({\r\n\t\t\t\t\t\tkey:'paymentOrder'\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\tdoDeposit(){\r\n\t\t\t\t//模板模拟支付,实际应用请调起微信/支付宝\r\n\t\t\t\tuni.showLoading({\r\n\t\t\t\t\ttitle:'支付中...'\r\n\t\t\t\t});\r\n\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle:'支付成功'\r\n\t\t\t\t\t});\r\n\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\tuni.redirectTo({\r\n\t\t\t\t\t\t\turl:'../../pay/success/success?amount='+this.amount\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t},300);\r\n\t\t\t\t},700)\r\n\t\t\t}\r\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\n.block{\r\n\t\twidth: 94%;\r\n\t\tpadding: 0 3% 40upx 3%;\r\n\t\t.title{\r\n\t\t\twidth: 100%;\r\n\t\t\tfont-size: 34upx;\r\n\t\t}\r\n\t\t.content{\r\n\t\t\t.orderinfo{\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\tborder-bottom: solid 1upx #eee;\r\n\t\t\t\t.row{\r\n\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\theight: 90upx;\r\n\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\talign-items: center;\r\n\t\t\t\t\t.nominal{\r\n\t\t\t\t\t\tflex-shrink: 0;\r\n\t\t\t\t\t\tfont-size: 32upx;\r\n\t\t\t\t\t\tcolor: #7d7d7d;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t.text{\r\n\t\t\t\t\t\twidth: 70%;\r\n\t\t\t\t\t\tmargin-left: 10upx;\r\n\t\t\t\t\t\toverflow: hidden;\r\n\t\t\t\t\t\ttext-overflow:ellipsis;\r\n\t\t\t\t\t\twhite-space: nowrap;\r\n\t\t\t\t\t\tfont-size: 32upx;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t.pay-list{\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\tborder-bottom: solid 1upx #eee;\r\n\t\t\t\t.row{\r\n\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\theight: 120upx;\r\n\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\talign-items: center;\r\n\t\t\t\t\t.left{\r\n\t\t\t\t\t\twidth: 100upx;\r\n\t\t\t\t\t\tflex-shrink: 0;\r\n\t\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\t\talign-items: center;\r\n\t\t\t\t\t\timage{\r\n\t\t\t\t\t\t\twidth: 80upx;\r\n\t\t\t\t\t\t\theight: 80upx;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t.center{\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\tfont-size: 30upx;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t.right{\r\n\t\t\t\t\t\twidth: 100upx;\r\n\t\t\t\t\t\tflex-shrink: 0;\r\n\t\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\t\tjustify-content: flex-end;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t.pay{\r\n\t\tmargin-top: 20upx;\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\tflex-wrap: wrap;\r\n\t\t.btn{\r\n\t\t\twidth: 70%;\r\n\t\t\theight: 80upx;\r\n\t\t\tborder-radius: 80upx;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tcolor: #fff;\r\n\t\t\tbackground-color: #f06c7a;\r\n\t\t\tbox-shadow: 0upx 5upx 10upx rgba(0,0,0,0.2);\r\n\t\t}\r\n\t\t.tis{\r\n\t\t\tmargin-top: 10upx;\r\n\t\t\twidth: 100%;\r\n\t\t\tfont-size: 24upx;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: baseline;\r\n\t\t\tcolor: #999;\r\n\t\t\t.terms{\r\n\t\t\t\tcolor: #5a9ef7;\r\n\t\t\t}\r\n\t\t}\r\n\t}\n</style>\n","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./payment.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./payment.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1615167052111\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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":""} |