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":["webpack:////Users/jj/xuan-pay-cweb/components/watch-login/watch-input.vue?e228","webpack:////Users/jj/xuan-pay-cweb/components/watch-login/watch-input.vue?79df","webpack:////Users/jj/xuan-pay-cweb/components/watch-login/watch-input.vue?2a32","webpack:////Users/jj/xuan-pay-cweb/components/watch-login/watch-input.vue?2352","uni-app:///components/watch-login/watch-input.vue","webpack:////Users/jj/xuan-pay-cweb/components/watch-login/watch-input.vue?2349","webpack:////Users/jj/xuan-pay-cweb/components/watch-login/watch-input.vue?3d17"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAwH;AACxH;AAC+D;AACL;AACa;;;AAGvE;AAC0M;AAC1M,gBAAgB,iNAAU;AAC1B,EAAE,iFAAM;AACR,EAAE,sFAAM;AACR,EAAE,+FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,0FAAU;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;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA2yB,CAAgB,yyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC0C/zB,qB;AACA;AACA,MADA,kBACA;AACA;AACA,yBADA,EACA;AACA,eAFA,EAEA;AACA,sBAHA,CAGA;AAHA;AAKA,GAPA;AAQA;AACA,gBADA,EACA;AACA,iBAFA,EAEA;AACA,uBAHA,EAGA;AACA;AACA;AACA,4BAFA;AAGA,iBAHA,EAJA;;AASA;AACA;AACA,6BAFA;AAGA,oBAHA,EATA;;AAcA;AACA;AACA,6BAFA;AAGA,oBAHA,EAdA;;AAmBA;AACA,kBADA;AAEA,sBAFA,EAnBA;;AAuBA;AACA;AACA,4BAFA;AAGA,iBAHA,EAvBA;;AA4BA;AACA;AACA,6BAFA;AAGA,oBAHA,EA5BA,EARA;;;AA0CA;AACA,iBADA;AAEA,kBAFA,EA1CA;;AA8CA,SA9CA,qBA8CA;AACA;AACA;AACA;AACA;AACA,KAFA;AAGA,6BANA,CAMA;AACA,GArDA;AAsDA;AACA,YADA,sBACA;AACA;AACA;AACA,KAJA;AAKA,WALA,qBAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAZA;AAaA,WAbA,mBAaA,GAbA,EAaA;AACA;AACA;;AAEA;AACA,wBAHA,CAGA;AACA,iCAJA,CAIA;AACA,+BALA,CAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAfA,CAeA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OANA,EAMA,IANA;AAOA,KAtCA,EAtDA;;AA8FA;AACA,SADA,mBACA;AACA;AACA;AACA;AACA,KALA;AAMA,eANA,yBAMA;AACA;AACA;AACA,KATA;AAUA,eAVA,yBAUA;AACA;AACA;AACA,KAbA;AAcA,YAdA,sBAcA;AACA;AACA;AACA;AACA,KAlBA;AAmBA,UAnBA,oBAmBA;AACA;AACA;AACA,KAtBA;AAuBA,oBAvBA,8BAuBA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA;AACA;;AAEA,KAnCA,EA9FA,E;;;;;;;;;;;;AC3CA;AAAA;AAAA;AAAA;AAA4oC,CAAgB,smCAAG,EAAC,C;;;;;;;;;;;ACAhqC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/watch-login/watch-input.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./watch-input.vue?vue&type=template&id=697460bd&\"\nvar renderjs\nimport script from \"./watch-input.vue?vue&type=script&lang=js&\"\nexport * from \"./watch-input.vue?vue&type=script&lang=js&\"\nimport style0 from \"./watch-input.vue?vue&type=style&index=0&lang=css&\"\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 = \"components/watch-login/watch-input.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!./watch-input.vue?vue&type=template&id=697460bd&\"","var components\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 \"-!../../../../../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!./watch-input.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!./watch-input.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"main-list oBorder\">\r\n\t\t<!-- 文本框 -->\r\n\t\t<input \r\n\t\t\tclass=\"main-input\" \r\n\t\t\t:value=\"value\" \r\n\t\t\t:type=\"_type\"\r\n\t\t\t:focus=\"_focus\"\r\n\t\t\t:maxlength=\"maxlength\" \r\n\t\t\t:placeholder=\"placeholder\" \r\n\t\t\t:password=\"type==='password'&&!showPassword\" \r\n\t\t\t\r\n\t\t\t@input=\"$emit('input', $event.detail.value)\"\r\n\t\t\t@blur=\"$emit('blur', $event)\"\r\n\t\t\t@focus=\"$emit('focus', $event)\"\r\n\t\t\t@longpress=\"$emit('longpress', $event)\"\r\n\t\t\t@confirm=\"$emit('confirm', $event)\"\r\n\t\t\t@click=\"$emit('click', $event)\"\r\n\t\t\t@longtap=\"$emit('longtap', $event)\"\r\n\t\t\t@touchcancel=\"$emit('touchcancel', $event)\"\r\n\t\t\t@touchend=\"$emit('touchend', $event)\"\r\n\t\t\t@touchmove=\"$emit('touchmove', $event)\"\r\n\t\t\t@touchstart=\"$emit('touchstart', $event)\"\r\n\t\t/>\r\n\t\t<!-- 是否可见密码 -->\r\n\t\t<image \r\n\t\t\tv-if=\"_isShowPass&&type==='password'&&!_isShowCode\"\r\n\t\t\tclass=\"img cuIcon\" \r\n\t\t\t:class=\"showPassword?'cuIcon-attention':'cuIcon-attentionforbid'\" \r\n\t\t\t@tap=\"showPass\"\r\n\t\t></image>\r\n\t\t<!-- 倒计时 -->\r\n\t\t<view \r\n\t\t\tv-if=\"_isShowCode&&!_isShowPass\"\r\n\t\t\t:class=\"['vercode',{'vercode-run': second>0}]\" \r\n\t\t\t@click=\"setCode\"\r\n\t\t>{{ getVerCodeSecond }}</view>\r\n\t\t\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\tlet _this, countDown;\r\n\texport default{\r\n\t\tdata(){\r\n\t\t\treturn{\r\n\t\t\t\tshowPassword: false, //是否显示明文\r\n\t\t\t\tsecond: 0, //倒计时\r\n\t\t\t\tisRunCode: false, //是否开始倒计时\r\n\t\t\t}\r\n\t\t},\r\n\t\tprops:{\r\n\t\t\ttype: String, //类型\r\n\t\t\tvalue: String, //值\r\n\t\t\tplaceholder: String, //框内提示\r\n\t\t\tmaxlength: {\r\n\t\t\t\t//最大长度\r\n\t\t\t\ttype: [Number,String],\r\n\t\t\t\tdefault: 20,\r\n\t\t\t},\r\n\t\t\tisShowPass:{\r\n\t\t\t\t//是否显示密码图标(二选一)\r\n\t\t\t\ttype: [Boolean,String],\r\n\t\t\t\tdefault: false,\r\n\t\t\t},\r\n\t\t\tisShowCode:{\r\n\t\t\t\t//是否显示获取验证码(二选一)\r\n\t\t\t\ttype: [Boolean,String],\r\n\t\t\t\tdefault: false,\r\n\t\t\t},\r\n\t\t\tcodeText:{\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: \"获取验证码\",\r\n\t\t\t},\r\n\t\t\tsetTime:{\r\n\t\t\t\t//倒计时时间设置\r\n\t\t\t\ttype: [Number,String],\r\n\t\t\t\tdefault: 60,\r\n\t\t\t},\r\n\t\t\tfocus:{ \r\n\t\t\t\t//是否聚焦 \r\n\t\t\t\ttype: [Boolean,String], \r\n\t\t\t\tdefault: false \r\n\t\t\t} \r\n\t\t},\r\n\t\tmodel: {\r\n\t\t\tprop: 'value',\r\n\t\t\tevent: 'input'\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\t_this=this\r\n\t\t\t//准备触发\r\n\t\t\tthis.$on('runCode',(val)=>{\r\n this.runCode(val);\r\n });\r\n\t\t\tclearInterval(countDown);//先清理一次循环,避免缓存\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\tshowPass(){\r\n\t\t\t\t//是否显示密码\r\n\t\t\t\tthis.showPassword = !this.showPassword\r\n\t\t\t},\r\n\t\t\tsetCode(){\r\n\t\t\t\t//设置获取验证码的事件\r\n\t\t\t\tif(this.isRunCode){\r\n\t\t\t\t\t//判断是否开始倒计时,避免重复点击\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tthis.$emit('setCode')\r\n\t\t\t},\r\n\t\t\trunCode(val){\r\n\t\t\t\t//开始倒计时\r\n\t\t\t\tif(String(val)==\"0\"){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//判断是否需要终止循环\r\n\t\t\t\t\tthis.second = 0; //初始倒计时\r\n\t\t\t\t\tclearInterval(countDown);//清理循环\r\n\t\t\t\t\tthis.isRunCode= false; //关闭循环状态\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tif(this.isRunCode){\r\n\t\t\t\t\t//判断是否开始倒计时,避免重复点击\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tthis.isRunCode= true\r\n\t\t\t\tthis.second = this._setTime //倒数秒数\r\n\t\t\t\t\r\n\t\t\t\tlet _this=this;\r\n\t\t\t\tcountDown = setInterval(function(){\r\n\t\t\t\t\t_this.second--\r\n\t\t\t\t\tif(_this.second==0){\r\n\t\t\t\t\t\t_this.isRunCode= false\r\n\t\t\t\t\t\tclearInterval(countDown)\r\n\t\t\t\t\t}\r\n\t\t\t\t},1000)\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed:{\r\n\t\t\t_type(){\r\n\t\t\t\t//处理值\r\n\t\t\t\tconst type = this.type\r\n\t\t\t\treturn type == 'password' ? 'text' : type\r\n\t\t\t},\r\n\t\t\t_isShowPass() {\r\n\t\t\t\t//处理值\r\n\t\t\t\treturn String(this.isShowPass) !== 'false'\r\n\t\t\t},\r\n\t\t\t_isShowCode() {\r\n\t\t\t\t//处理值\r\n\t\t\t\treturn String(this.isShowCode) !== 'false'\r\n\t\t\t},\r\n\t\t\t_setTime() {\r\n\t\t\t\t//处理值\r\n\t\t\t\tconst setTime = Number(this.setTime)\r\n\t\t\t\treturn setTime>0 ? setTime : 60\r\n\t\t\t},\r\n\t\t\t_focus() { \r\n\t\t\t\t//处理值 \r\n\t\t\t\treturn String(this.focus) !== 'false' \r\n\t\t\t}, \r\n\t\t\tgetVerCodeSecond(){\r\n\t\t\t\t//验证码倒计时计算\r\n\t\t\t\tif(this.second<=0){\r\n\t\t\t\t\treturn this.codeText;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif(this.second<10){\r\n\t\t\t\t\t\treturn '0'+this.second;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\treturn this.second;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t@import url(\"./css/icon.css\");\r\n\t\r\n\t.main-list{\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: row;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t\t/* height: 36rpx; */ /* Input 高度 */\r\n\t\tcolor: #333333;\r\n\t\tpadding: 40rpx 32rpx;\r\n\t\tmargin:32rpx 0;\r\n\t}\r\n\t.img{\r\n\t\twidth: 32rpx;\r\n\t\theight: 32rpx;\r\n\t\tfont-size: 32rpx;\r\n\t}\r\n\t.main-input{\r\n\t\tflex: 1;\r\n\t\ttext-align: left;\r\n\t\tfont-size: 28rpx;\r\n\t\t/* line-height: 100rpx; */\r\n\t\tpadding-right: 10rpx;\r\n\t\tmargin-left: 20rpx;\r\n\t}\r\n\t.vercode {\r\n\t\tcolor: rgba(0,0,0,0.7);\r\n\t\tfont-size: 24rpx;\r\n\t\t/* line-height: 100rpx; */\r\n\t}\r\n\t.vercode-run {\r\n\t\tcolor: rgba(0,0,0,0.4) !important;\r\n\t}\r\n\t.oBorder{\r\n\t border: none;\r\n\t border-radius: 2.5rem ;\r\n\t -webkit-box-shadow: 0 0 60rpx 0 rgba(43,86,112,.1) ;\r\n\t box-shadow: 0 0 60rpx 0 rgba(43,86,112,.1) ;\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-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--6-oneOf-1-2!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../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!./watch-input.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-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--6-oneOf-1-2!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../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!./watch-input.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1640240847640\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":""} |