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

{"version":3,"sources":["webpack:///C:/Users/lenovo/Desktop/new_git/wx_oms/oilAccount/components/suspensionWindow.vue?bdef","webpack:///C:/Users/lenovo/Desktop/new_git/wx_oms/oilAccount/components/suspensionWindow.vue?d5cb","webpack:///C:/Users/lenovo/Desktop/new_git/wx_oms/oilAccount/components/suspensionWindow.vue?2a7f","webpack:///C:/Users/lenovo/Desktop/new_git/wx_oms/oilAccount/components/suspensionWindow.vue?8048","uni-app:///oilAccount/components/suspensionWindow.vue","webpack:///C:/Users/lenovo/Desktop/new_git/wx_oms/oilAccount/components/suspensionWindow.vue?a9c1","webpack:///C:/Users/lenovo/Desktop/new_git/wx_oms/oilAccount/components/suspensionWindow.vue?00da"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAyI;AACzI;AACoE;AACL;AACqC;;;AAGpG;AACgN;AAChN,gBAAgB,wNAAU;AAC1B,EAAE,sFAAM;AACR,EAAE,uGAAM;AACR,EAAE,gHAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,2GAAU;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,aAAa,sTAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AAAi0B,CAAgB,i1BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACqBr1B,2F;;;;;;;;;;;;;;;;;;;;eACA,EACA,QACA;AACA;AACA;AACA;AAJA,GADA,EAOA,IAPA,kBAOA,CACA,SACA,YADA,EAEA,iBAFA,EAGA,WAHA,EAIA,aAJA,GAMA,CAdA,EAeA,QAfA,sBAeA,CACA,oBACA,CAjBA,EAkBA,WACA;AACA,UAFA,kBAEA,CAFA,EAEA,CACA,0BADA,CACA;AACA,wBAFA,CAEA;AACA,8BAHA,CAGA;AACA;AACA,cACA,eACA,CAFA,MAEA,CACA;AACA;AACA,KAZA;AAaA;AACA,eAdA,uBAcA,CAdA,EAcA;AACA,yBADA,CACA;AACA;AACA;AACA,qCADA,CACA;AACA,6BAFA,CAEA;AACA,mCAHA,CAGA;AACA,SAJA,MAIA;AACA;AACA;AACA;AACA,OATA,EASA,IATA;AAUA,KA1BA;AA2BA,QA3BA,gBA2BA,IA3BA,EA2BA;AACA;AACA,6BADA;AAEA;AACA;AACA,yBADA;;AAGA,SANA;;AAQA,KApCA;AAqCA;AACA,WAtCA,qBAsCA;AACA;AACA,oEADA,CACA;AACA,6BAFA,CAEA;AACA,gCAHA,CAGA;AACA,OAJA;AAKA,KA5CA;AA6CA,YA7CA,sBA6CA;;AAEA,KA/CA,EAlBA,E;;;;;;;;;;;;;ACtBA;AAAA;AAAA;AAAA;AAAisC,CAAgB,orCAAG,EAAC,C;;;;;;;;;;;ACArtC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"oilAccount/components/suspensionWindow.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./suspensionWindow.vue?vue&type=template&id=7dbe1400&scoped=true&\"\nvar renderjs\nimport script from \"./suspensionWindow.vue?vue&type=script&lang=js&\"\nexport * from \"./suspensionWindow.vue?vue&type=script&lang=js&\"\nimport style0 from \"./suspensionWindow.vue?vue&type=style&index=0&id=7dbe1400&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\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 \"7dbe1400\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"oilAccount/components/suspensionWindow.vue\"\nexport default component.exports","export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./suspensionWindow.vue?vue&type=template&id=7dbe1400&scoped=true&\"","var components\ntry {\n components = {\n uniIcons: function() {\n return import(\n /* webpackChunkName: \"uni_modules/uni-icons/components/uni-icons/uni-icons\" */ \"@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./suspensionWindow.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./suspensionWindow.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view :style=\"{transform:`translateX(${ isShow? '0px':'calc(100vw - 90rpx)'})`,borderRadius:`${isShow? '0px':' 20rpx 0 0 20rpx'}`,padding:isShow?'':'0px'}\" class=\"suspensionWindow\">\r\n\t\t<view v-if=\"!isShow\" @click=\"showFn(true)\" class=\"icon-conter\">\r\n\t\t\t<uni-icons style=\"transform: rotate(180deg);\" color=\"#ffffff\" custom-prefix=\"iconfont\" type=\"iconyuechi\" size=\"20\"></uni-icons>\r\n\t\t</view>\r\n\t\t<view v-else class=\"suspensionWindow_content\">\r\n\t\t\t<view class=\"suspensionWindow_title\">授权操作码</view>\r\n\t\t\t<view class=\"suspensionWindow_code\">\r\n\t\t\t\t<view @click=\"copy(operationCode)\" class=\"suspensionWindow_code_text\">{{operationCode}}</view> \r\n\t\t\t\t<view v-if=\"operationCode\" style=\"font-size: 20rpx;\">点击复制</view>\r\n\t\t\t\t<view @click=\"showFn(true)\" v-else style=\"font-size: 30rpx;\">重新获取</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"suspensionWindow_time\">\r\n\t\t\t\t<view v-if=\"countdown\">剩余 {{countdown}} 秒</view>\r\n\t\t\t\t<view v-if=\"!countdown\">已过期</view>\r\n\t\t\t</view>\r\n\t\t\t<uni-icons @click=\" showFn(false)\" style=\"position: absolute;right: 10rpx;\" color=\"#ffffff\" type=\"clear\" size=\"30\"></uni-icons>\r\n\t\t</view>\r\n\t</view>\n</template>\n<script>\r\n\timport account from '@/api/oilAccount'\r\n\texport default{\r\n\t\tprops:{\r\n\t\t\t// operationCode:{\r\n\t\t\t// \ttype:String,\r\n\t\t\t// \tdefault:''\r\n\t\t\t// }\r\n\t\t},\r\n\t\tdata(){\r\n\t\t\treturn{\r\n\t\t\t\tcountdown:0,\r\n\t\t\t\toperationCode:'',\r\n\t\t\t\ttimer:null,\r\n\t\t\t\tisShow:false,\r\n\t\t\t}\r\n\t\t},\r\n\t\tonUnload() {\r\n\t\t\tconsole.log('逐渐监听')\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\t//显示控制\r\n\t\t\tshowFn(e){\r\n\t\t\t\tclearInterval(this.timer);//清除定时器\r\n\t\t\t\tthis.timer = null;//赋值为null\r\n\t\t\t\tthis.operationCode = ''; //清除操作码\r\n\t\t\t\t//如果要打开判断 操作码和计时器状态\r\n\t\t\t\tif(e){\r\n\t\t\t\t\tthis.getCode()\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthis.isShow = e\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//计时器\r\n\t\t\tcountdownFn(e){\r\n\t\t\t\tthis.countdown = e //计数器\r\n\t\t\t\tthis.timer = setInterval(()=>{\r\n\t\t\t\t\tif(!this.countdown){//计数器到0\r\n\t\t\t\t\t\tclearInterval(this.timer);//清除定时器\r\n\t\t\t\t\t\tthis.timer = null;//赋值为null\r\n\t\t\t\t\t\tthis.operationCode = '' //清除操作码\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tconsole.log('11')\r\n\t\t\t\t\t\tthis.countdown-=1\r\n\t\t\t\t\t}\r\n\t\t\t\t},1000)\r\n\t\t\t},\r\n\t\t\tcopy(text) {\r\n\t\t\t\tuni.setClipboardData({\r\n\t\t\t\t\tdata: `${text}`,\r\n\t\t\t\t\tsuccess: () => { //复制成功的回调函数\r\n\t\t\t\t\t\tuni.showToast({ //提示\r\n\t\t\t\t\t\t\ttitle: '复制成功'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t//获取操作码\r\n\t\t\tgetCode(e=false){\r\n\t\t\t\taccount.getRechargeCode({type:3}).then(res=>{\r\n\t\t\t\t\t(res.code==20000)&&(this.operationCode = res.data.code);//操作码赋值\r\n\t\t\t\t\tthis.isShow = true//打开浮窗\r\n\t\t\t\t\tthis.countdownFn(120)//打开定时器\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tisShowFn(){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}\n</script>\n\n<style scoped>\r\n\t.suspensionWindow_time{\r\n\t\t/* flex: 1; */\r\n\t\tmin-width: 140rpx;\r\n\t\ttext-align: right;\r\n\t}\r\n\t.suspensionWindow_code_text{\r\n\t\tcolor: #FFFFFF;\r\n\t\tfont-size: 44rpx;\r\n\t\tfont-weight: 700;\r\n\t}\r\n\t.suspensionWindow_code{\r\n\t\t/* height: 140rpx; */\r\n\t\tposition: relative;\r\n\t\ttransition: all .3s;\r\n\t\ttext-align: center;\r\n\t\t\r\n\t}\r\n\t.suspensionWindow_title{\r\n\t\tcolor: #FFFFFF;\r\n\t\tfont-size: 28rpx;\r\n\t\t/* flex: 1; */\r\n\t}\r\n\t.suspensionWindow_content{\r\n\t\tdisplay: flex;\r\n\t\t/* justify-content: space-around; */\r\n\t\twidth: 100%;\r\n\t\talign-items: center;\r\n\t\tjustify-content: space-between;\r\n\t\tcolor: #FFFFFF;\r\n\t}\r\n\t.icon-conter{\r\n\t\twidth: 90rpx;\r\n\t\theight:100% ;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tjustify-content: center;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\t.suspensionWindow{\r\n\t\tposition: fixed;\r\n\t\twidth: 100vw;\r\n\t\theight: 110rpx;\r\n\t\tbottom: env(safe-area-inset-bottom);\r\n\t\tbackground-color: #FF4A4A;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\t/* transform: translateX(calc(100vw - 90rpx)); */\r\n\t\ttransition: all .3s;\r\n\t\tborder-radius: 20rpx 0 0 20rpx ;\r\n\t\t/* padding: 0 60rpx; */\r\n\t\t/* justify-content: center; */\r\n\t\tpadding-right: 90rpx;\r\n\t\tpadding-left: 90rpx;\r\n\t\t\r\n\t}\n</style>\n","import mod from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./suspensionWindow.vue?vue&type=style&index=0&id=7dbe1400&scoped=true&lang=css&\"; export default mod; export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./suspensionWindow.vue?vue&type=style&index=0&id=7dbe1400&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1672122379852\n var cssReload = require(\"D:/hbuliderx/HBuilderX.3.3.11.20220209.full/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":""}