Commit 8b7398ff by 梁建民

js

parent 99b7fea5
Showing with 2 additions and 2 deletions
......@@ -61,7 +61,7 @@
},
created() {
if(Util.isUerAgent() == 'pc'){
window.location.href=productionUrlPc+'home/risk ';
window.location.href=productionUrlPc+'home/risk';
}
this.imgSrc = productionUrlPc + 'public/verify';
},
......
......@@ -8,7 +8,7 @@
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.10@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.10@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.6.3@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.2.7@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'risk',\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_6__[\"mapState\"])({\n formImgShow: function formImgShow(state) {\n return state.special.formImgShow;\n },\n countDown: function countDown(state) {\n return state.special.countDown;\n }\n })),\n data: function data() {\n return {\n com_name: '',\n user_name: '',\n imgSrc: '',\n account: '',\n verify: '',\n sms_verify: '',\n codetext: '发送验证码',\n disabled: false,\n codeactive: false\n };\n },\n created: function created() {\n if (_util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].isUerAgent() == 'pc') {\n window.location.href = _api_index__WEBPACK_IMPORTED_MODULE_8__[\"productionUrlPc\"] + 'home/risk ';\n }\n\n this.imgSrc = _api_index__WEBPACK_IMPORTED_MODULE_8__[\"productionUrlPc\"] + 'public/verify';\n },\n watch: {\n countDown: function countDown(val) {\n if (val) {\n this.timeNum();\n }\n }\n },\n methods: {\n updateCode: function updateCode() {\n this.imgSrc = _api_index__WEBPACK_IMPORTED_MODULE_8__[\"productionUrlPc\"] + 'public/verify?' + new Date().getTime();\n },\n timeNum: function timeNum() {\n var me = this;\n var wait = 60;\n me.disabled = true;\n me.codeactive = true;\n me.codetext = wait + '秒后获取';\n var clock = setInterval(doLoop, 1000);\n\n function doLoop() {\n wait--;\n\n if (wait > 0) {\n me.codetext = wait + '秒后获取';\n me.codeactive = true;\n } else {\n clearInterval(clock);\n me.disabled = false;\n me.codeactive = false;\n me.codetext = '重新获取';\n wait = 60;\n }\n }\n },\n submit: function submit() {\n if (!this.com_name) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '请输入公司名称',\n duration: 2000\n });\n return false;\n }\n\n if (!isNaN(this.com_name)) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '公司名称不允许输入纯数字',\n duration: 2000\n });\n return false;\n }\n\n if (this.com_name.length > 50) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '公司名称长度不能超过50',\n duration: 2000\n });\n return false;\n }\n\n if (!this.user_name) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '怎么称呼您',\n duration: 2000\n });\n return false;\n }\n\n if (!isNaN(this.user_name)) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '不允许输入纯数字',\n duration: 2000\n });\n return false;\n }\n\n if (this.user_name.length > 50) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '称呼长度不能超过50',\n duration: 2000\n });\n return false;\n }\n\n if (!this.account) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '请输入手机号',\n duration: 2000\n });\n return false;\n }\n\n if (!this.sms_verify) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '请输入验证码',\n duration: 2000\n });\n return false;\n }\n\n this.$store.dispatch({\n type: 'actionLogins',\n account: this.account,\n from: 'risk',\n sms_verify: this.sms_verify,\n com_name: this.com_name,\n user_name: this.user_name\n });\n },\n codeFn: function codeFn() {\n if (!this.account) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '请输入手机号',\n duration: 2000\n });\n return false;\n }\n\n this.$store.dispatch({\n type: 'smsVerifys',\n mobile: this.account,\n verify: this.verify\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/risk/Index.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.10@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.10@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.6.3@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.2.7@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'risk',\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_6__[\"mapState\"])({\n formImgShow: function formImgShow(state) {\n return state.special.formImgShow;\n },\n countDown: function countDown(state) {\n return state.special.countDown;\n }\n })),\n data: function data() {\n return {\n com_name: '',\n user_name: '',\n imgSrc: '',\n account: '',\n verify: '',\n sms_verify: '',\n codetext: '发送验证码',\n disabled: false,\n codeactive: false\n };\n },\n created: function created() {\n if (_util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].isUerAgent() == 'pc') {\n window.location.href = _api_index__WEBPACK_IMPORTED_MODULE_8__[\"productionUrlPc\"] + 'home/risk';\n }\n\n this.imgSrc = _api_index__WEBPACK_IMPORTED_MODULE_8__[\"productionUrlPc\"] + 'public/verify';\n },\n watch: {\n countDown: function countDown(val) {\n if (val) {\n this.timeNum();\n }\n }\n },\n methods: {\n updateCode: function updateCode() {\n this.imgSrc = _api_index__WEBPACK_IMPORTED_MODULE_8__[\"productionUrlPc\"] + 'public/verify?' + new Date().getTime();\n },\n timeNum: function timeNum() {\n var me = this;\n var wait = 60;\n me.disabled = true;\n me.codeactive = true;\n me.codetext = wait + '秒后获取';\n var clock = setInterval(doLoop, 1000);\n\n function doLoop() {\n wait--;\n\n if (wait > 0) {\n me.codetext = wait + '秒后获取';\n me.codeactive = true;\n } else {\n clearInterval(clock);\n me.disabled = false;\n me.codeactive = false;\n me.codetext = '重新获取';\n wait = 60;\n }\n }\n },\n submit: function submit() {\n if (!this.com_name) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '请输入公司名称',\n duration: 2000\n });\n return false;\n }\n\n if (!isNaN(this.com_name)) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '公司名称不允许输入纯数字',\n duration: 2000\n });\n return false;\n }\n\n if (this.com_name.length > 50) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '公司名称长度不能超过50',\n duration: 2000\n });\n return false;\n }\n\n if (!this.user_name) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '怎么称呼您',\n duration: 2000\n });\n return false;\n }\n\n if (!isNaN(this.user_name)) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '不允许输入纯数字',\n duration: 2000\n });\n return false;\n }\n\n if (this.user_name.length > 50) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '称呼长度不能超过50',\n duration: 2000\n });\n return false;\n }\n\n if (!this.account) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '请输入手机号',\n duration: 2000\n });\n return false;\n }\n\n if (!this.sms_verify) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '请输入验证码',\n duration: 2000\n });\n return false;\n }\n\n this.$store.dispatch({\n type: 'actionLogins',\n account: this.account,\n from: 'risk',\n sms_verify: this.sms_verify,\n com_name: this.com_name,\n user_name: this.user_name\n });\n },\n codeFn: function codeFn() {\n if (!this.account) {\n Object(vant__WEBPACK_IMPORTED_MODULE_7__[\"Toast\"])({\n message: '请输入手机号',\n duration: 2000\n });\n return false;\n }\n\n this.$store.dispatch({\n type: 'smsVerifys',\n mobile: this.account,\n verify: this.verify\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/risk/Index.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options");
/***/ }),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment