Commit a2b520f5 by 梁建民

js

parent 87ea2e52
......@@ -72,7 +72,7 @@ const actions = {
*/
if (payload.types == 1) {
var params = {
type: payload.typess,
type: 2,
mobile: payload.mobile,
linkName: payload.linkName,
verifyCode: payload.verifyCode,
......
......@@ -397,7 +397,6 @@
this.$store.dispatch({
type: 'chainFind',
types: 1,
typess:parseInt(this.supplierActive) + 1,
mobile: this.form.mobile,
linkName: this.form.linkName,
verifyCode: this.form.verifyCode,
......
......@@ -19,7 +19,7 @@ eval("module.exports = __webpack_require__(/*! core-js/library/fn/parse-int */ \
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/core-js/parse-int */ \"./node_modules/_@babel_runtime-corejs2@7.3.1@@babel/runtime-corejs2/core-js/parse-int.js\");\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(E_h5_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime-corejs2@7.3.1@@babel/runtime-corejs2/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.5.22@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.0@vuex/dist/vuex.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.5.7@vant/es/index.js\");\n/* harmony import */ var _views_common_Menu_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/views/common/Menu.vue */ \"./src/views/common/Menu.vue\");\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//\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//\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//\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//\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//\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//\n//\n//\n//\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_2__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_4__[\"Swipe\"]).use(vant__WEBPACK_IMPORTED_MODULE_4__[\"SwipeItem\"]).use(vant__WEBPACK_IMPORTED_MODULE_4__[\"Loading\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'supplier',\n data: function data() {\n return {\n color: '#fff',\n active: 0,\n supplierActive: 0,\n itemtext: ['自营供应商', '联营供应商'],\n isAvisible: 'block',\n isBvisible: 'none',\n numberFlag: false,\n verifyCodeFlag: false,\n codetext: '获取验证码',\n disabled: false,\n codeactive: false,\n firmNum: 0,\n secondNum: 0,\n max: 50,\n formMsg: '',\n formError: false,\n form: {\n com_name: '',\n linkName: '',\n mobile: '',\n verifyCode: '',\n supplier_type: '',\n main_brand: ''\n }\n };\n },\n computed: Object(E_h5_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_3__[\"mapState\"])({\n loading: function loading(state) {\n return state.smt.loading;\n }\n }), {\n comName: function comName() {\n return this.form.com_name;\n },\n linkName: function linkName() {\n return this.form.linkName;\n },\n mainBrand: function mainBrand() {\n return this.form.main_brand;\n },\n verifyCode: function verifyCode() {\n return this.form.verifyCode;\n },\n mobileVal: function mobileVal() {\n return this.form.mobile;\n }\n }),\n watch: {\n mainBrand: function mainBrand(val) {\n if (val.length > this.max) {\n this.secondNum = this.max;\n } else {\n this.secondNum = val.length;\n }\n },\n linkName: function linkName(val) {\n var reg = /^[\\u0391-\\uFFE5A-Za-z]+$/;\n\n if (!reg.test(val)) {\n this.formError = true;\n this.formMsg = '亲,称呼只能为英文和中文';\n } else {\n this.formError = false;\n this.formMsg = '';\n }\n },\n verifyCode: function verifyCode(val) {\n if (val) {\n this.formError = false;\n }\n },\n comName: function comName(val) {\n if (val) {\n this.formError = false;\n\n if (val.length > this.max) {\n this.firmNum = this.max;\n } else {\n this.firmNum = val.length;\n }\n }\n },\n mobileVal: function mobileVal(val) {\n if (val.length >= 11) {\n this.verifyCodeFlag = true;\n this.formError = false;\n this.$store.dispatch({\n type: 'checkAccountExists',\n account: this.form.mobile\n });\n }\n }\n },\n methods: {\n tab: function tab(index) {\n this.active = index;\n this.isAvisible = 'none';\n this.isBvisible = 'none';\n\n if (index == 0) {\n index == 0 ? this.isAvisible = 'block' : this.isAvisible = 'none';\n } else if (index == 1) {\n index == 1 ? this.isBvisible = 'block' : this.isBvisible = 'none';\n }\n },\n submit: function submit() {\n var character_reg = /^[\\u0391-\\uFFE5A-Za-z]+$/;\n var tel_reg = /^1[34578]\\d{9}$/;\n\n if (!this.form.com_name) {\n this.formError = true;\n this.formMsg = '亲,请输入公司名称';\n return;\n }\n\n if (!this.form.linkName) {\n this.formError = true;\n this.formMsg = '亲,请输入您的称呼';\n return;\n }\n\n if (!character_reg.test(this.form.linkName)) {\n this.formError = true;\n this.formMsg = '亲,称呼只能为英文和中文';\n return;\n }\n\n if (!this.form.mobile) {\n this.formError = true;\n this.formMsg = '亲,请输入手机';\n return;\n }\n\n if (!tel_reg.test(this.form.mobile)) {\n this.formError = true;\n this.formMsg = '亲,手机格式不正确';\n return;\n }\n\n if (!this.form.verifyCode) {\n this.formError = true;\n this.formMsg = '亲,请输入验证码';\n return;\n } //提交\n\n\n this.$store.dispatch({\n type: 'chainFind',\n types: 1,\n typess: E_h5_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_0___default()(this.supplierActive) + 1,\n mobile: this.form.mobile,\n linkName: this.form.linkName,\n verifyCode: this.form.verifyCode,\n com_name: this.form.com_name,\n main_brand: this.form.main_brand,\n supplier_type: E_h5_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_0___default()(this.supplierActive) + 1\n });\n },\n getCode: function getCode() {\n this.timeNum();\n this.$store.dispatch({\n type: 'customSmsVerify',\n mobile: this.form.mobile\n });\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 goAnchor: function goAnchor(type) {\n if (type === 1) {\n var anchor = this.$el.querySelector('#join-btn');\n document.documentElement.scrollTop = document.body.scrollTop = 0;\n this.$el.querySelector('#com_name').focus();\n } else if (type === 2) {\n this.$el.querySelector('#com_name').focus();\n this.supplierActive = 0;\n document.documentElement.scrollTop = document.body.scrollTop = 0;\n } else if (type === 3) {\n this.$el.querySelector('#com_name').focus();\n this.supplierActive = 1;\n document.documentElement.scrollTop = document.body.scrollTop = 0;\n }\n }\n },\n components: {\n Menu: _views_common_Menu_vue__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/supplier/Index.vue?./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.5@babel-loader/lib!./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.6.2@vue-loader/lib??vue-loader-options");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/core-js/parse-int */ \"./node_modules/_@babel_runtime-corejs2@7.3.1@@babel/runtime-corejs2/core-js/parse-int.js\");\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(E_h5_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime-corejs2@7.3.1@@babel/runtime-corejs2/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.5.22@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.0@vuex/dist/vuex.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.5.7@vant/es/index.js\");\n/* harmony import */ var _views_common_Menu_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/views/common/Menu.vue */ \"./src/views/common/Menu.vue\");\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//\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//\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//\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//\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//\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//\n//\n//\n//\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_2__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_4__[\"Swipe\"]).use(vant__WEBPACK_IMPORTED_MODULE_4__[\"SwipeItem\"]).use(vant__WEBPACK_IMPORTED_MODULE_4__[\"Loading\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'supplier',\n data: function data() {\n return {\n color: '#fff',\n active: 0,\n supplierActive: 0,\n itemtext: ['自营供应商', '联营供应商'],\n isAvisible: 'block',\n isBvisible: 'none',\n numberFlag: false,\n verifyCodeFlag: false,\n codetext: '获取验证码',\n disabled: false,\n codeactive: false,\n firmNum: 0,\n secondNum: 0,\n max: 50,\n formMsg: '',\n formError: false,\n form: {\n com_name: '',\n linkName: '',\n mobile: '',\n verifyCode: '',\n supplier_type: '',\n main_brand: ''\n }\n };\n },\n computed: Object(E_h5_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_3__[\"mapState\"])({\n loading: function loading(state) {\n return state.smt.loading;\n }\n }), {\n comName: function comName() {\n return this.form.com_name;\n },\n linkName: function linkName() {\n return this.form.linkName;\n },\n mainBrand: function mainBrand() {\n return this.form.main_brand;\n },\n verifyCode: function verifyCode() {\n return this.form.verifyCode;\n },\n mobileVal: function mobileVal() {\n return this.form.mobile;\n }\n }),\n watch: {\n mainBrand: function mainBrand(val) {\n if (val.length > this.max) {\n this.secondNum = this.max;\n } else {\n this.secondNum = val.length;\n }\n },\n linkName: function linkName(val) {\n var reg = /^[\\u0391-\\uFFE5A-Za-z]+$/;\n\n if (!reg.test(val)) {\n this.formError = true;\n this.formMsg = '亲,称呼只能为英文和中文';\n } else {\n this.formError = false;\n this.formMsg = '';\n }\n },\n verifyCode: function verifyCode(val) {\n if (val) {\n this.formError = false;\n }\n },\n comName: function comName(val) {\n if (val) {\n this.formError = false;\n\n if (val.length > this.max) {\n this.firmNum = this.max;\n } else {\n this.firmNum = val.length;\n }\n }\n },\n mobileVal: function mobileVal(val) {\n if (val.length >= 11) {\n this.verifyCodeFlag = true;\n this.formError = false;\n this.$store.dispatch({\n type: 'checkAccountExists',\n account: this.form.mobile\n });\n }\n }\n },\n methods: {\n tab: function tab(index) {\n this.active = index;\n this.isAvisible = 'none';\n this.isBvisible = 'none';\n\n if (index == 0) {\n index == 0 ? this.isAvisible = 'block' : this.isAvisible = 'none';\n } else if (index == 1) {\n index == 1 ? this.isBvisible = 'block' : this.isBvisible = 'none';\n }\n },\n submit: function submit() {\n var character_reg = /^[\\u0391-\\uFFE5A-Za-z]+$/;\n var tel_reg = /^1[34578]\\d{9}$/;\n\n if (!this.form.com_name) {\n this.formError = true;\n this.formMsg = '亲,请输入公司名称';\n return;\n }\n\n if (!this.form.linkName) {\n this.formError = true;\n this.formMsg = '亲,请输入您的称呼';\n return;\n }\n\n if (!character_reg.test(this.form.linkName)) {\n this.formError = true;\n this.formMsg = '亲,称呼只能为英文和中文';\n return;\n }\n\n if (!this.form.mobile) {\n this.formError = true;\n this.formMsg = '亲,请输入手机';\n return;\n }\n\n if (!tel_reg.test(this.form.mobile)) {\n this.formError = true;\n this.formMsg = '亲,手机格式不正确';\n return;\n }\n\n if (!this.form.verifyCode) {\n this.formError = true;\n this.formMsg = '亲,请输入验证码';\n return;\n } //提交\n\n\n this.$store.dispatch({\n type: 'chainFind',\n types: 1,\n mobile: this.form.mobile,\n linkName: this.form.linkName,\n verifyCode: this.form.verifyCode,\n com_name: this.form.com_name,\n main_brand: this.form.main_brand,\n supplier_type: E_h5_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_0___default()(this.supplierActive) + 1\n });\n },\n getCode: function getCode() {\n this.timeNum();\n this.$store.dispatch({\n type: 'customSmsVerify',\n mobile: this.form.mobile\n });\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 goAnchor: function goAnchor(type) {\n if (type === 1) {\n var anchor = this.$el.querySelector('#join-btn');\n document.documentElement.scrollTop = document.body.scrollTop = 0;\n this.$el.querySelector('#com_name').focus();\n } else if (type === 2) {\n this.$el.querySelector('#com_name').focus();\n this.supplierActive = 0;\n document.documentElement.scrollTop = document.body.scrollTop = 0;\n } else if (type === 3) {\n this.$el.querySelector('#com_name').focus();\n this.supplierActive = 1;\n document.documentElement.scrollTop = document.body.scrollTop = 0;\n }\n }\n },\n components: {\n Menu: _views_common_Menu_vue__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/supplier/Index.vue?./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.5@babel-loader/lib!./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.6.2@vue-loader/lib??vue-loader-options");
/***/ }),
......
......@@ -3993,7 +3993,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.promise */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.promise.js\");\n/* harmony import */ var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.symbol */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.symbol.js\");\n/* harmony import */ var core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.5.22@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.5.7@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.6.0@qs/lib/index.js\");\n\nvue__WEBPACK_IMPORTED_MODULE_2__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"]);\nvar state = {\n loading: false\n};\nvar mutations = {\n index: function index(state, payload) {\n state.index = payload.data;\n }\n};\nvar actions = {\n checkAccountExists: function checkAccountExists(_ref, payload) {\n var commit = _ref.commit;\n state.loading = true;\n var params = {\n pf: 2,\n type: 2,\n account: payload.account\n };\n _api_index__WEBPACK_IMPORTED_MODULE_4__[\"services\"].checkAccountExists(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code != 0) {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: '该手机号尚未注册,我们将为您自动生成猎芯网帐号',\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n customSmsVerify: function customSmsVerify(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n pf: 2,\n verify: '',\n mobile: payload.mobile\n };\n _api_index__WEBPACK_IMPORTED_MODULE_4__[\"services\"].customSmsVerify(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: data.err_msg,\n duration: 2000\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n chainFind: function chainFind(_ref3, payload) {\n var commit = _ref3.commit;\n state.loading = true;\n /**\r\n * 1 平台入驻\r\n * 3 smt\r\n */\n\n if (payload.types == 1) {\n var params = {\n type: payload.typess,\n mobile: payload.mobile,\n linkName: payload.linkName,\n verifyCode: payload.verifyCode,\n com_name: payload.com_name,\n main_brand: payload.main_brand,\n supplier_type: payload.supplier_type\n };\n } else if (payload.types == 3) {\n var params = {\n type: 3,\n mobile: payload.mobile,\n linkName: payload.linkName,\n verifyCode: payload.verifyCode\n };\n }\n\n _api_index__WEBPACK_IMPORTED_MODULE_4__[\"services\"].chainFind(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.errcode == 1) {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: data.errmsg,\n duration: 3000\n });\n } else if (data.errcode == 2) {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: '已为您自动创建的猎芯网登录账号为' + payload.mobile + '请使用免密码登录',\n duration: 3000\n });\n setTimeout(function () {\n window.location.reload();\n }, 3000);\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: '您已经提交成功,我们将会在2个工作日内联系您',\n duration: 3000\n });\n setTimeout(function () {\n window.location.reload();\n }, 3000);\n }\n }).catch(function (err) {\n state.loading = false;\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: '网络出现问题,请重试',\n duration: 3000\n });\n });\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});\n\n//# sourceURL=webpack:///./src/store/modules/smt/index.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.5.22@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.5.7@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.6.0@qs/lib/index.js\");\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\nvar state = {\n loading: false\n};\nvar mutations = {\n index: function index(state, payload) {\n state.index = payload.data;\n }\n};\nvar actions = {\n checkAccountExists: function checkAccountExists(_ref, payload) {\n var commit = _ref.commit;\n state.loading = true;\n var params = {\n pf: 2,\n type: 2,\n account: payload.account\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].checkAccountExists(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code != 0) {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: '该手机号尚未注册,我们将为您自动生成猎芯网帐号',\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n customSmsVerify: function customSmsVerify(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n pf: 2,\n verify: '',\n mobile: payload.mobile\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].customSmsVerify(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 2000\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n chainFind: function chainFind(_ref3, payload) {\n var commit = _ref3.commit;\n state.loading = true;\n /**\r\n * 1 平台入驻\r\n * 3 smt\r\n */\n\n if (payload.types == 1) {\n var params = {\n type: 2,\n mobile: payload.mobile,\n linkName: payload.linkName,\n verifyCode: payload.verifyCode,\n com_name: payload.com_name,\n main_brand: payload.main_brand,\n supplier_type: payload.supplier_type\n };\n } else if (payload.types == 3) {\n var params = {\n type: 3,\n mobile: payload.mobile,\n linkName: payload.linkName,\n verifyCode: payload.verifyCode\n };\n }\n\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].chainFind(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.errcode == 1) {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.errmsg,\n duration: 3000\n });\n } else if (data.errcode == 2) {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: '已为您自动创建的猎芯网登录账号为' + payload.mobile + '请使用免密码登录',\n duration: 3000\n });\n setTimeout(function () {\n window.location.reload();\n }, 3000);\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: '您已经提交成功,我们将会在2个工作日内联系您',\n duration: 3000\n });\n setTimeout(function () {\n window.location.reload();\n }, 3000);\n }\n }).catch(function (err) {\n state.loading = false;\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: '网络出现问题,请重试',\n duration: 3000\n });\n });\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});\n\n//# sourceURL=webpack:///./src/store/modules/smt/index.js?");
/***/ }),
......@@ -4029,7 +4029,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.regexp.replace */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.regexp.replace.js\");\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.array.sort */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.array.sort.js\");\n/* harmony import */ var core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_object_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/core-js/object/keys */ \"./node_modules/_@babel_runtime-corejs2@7.3.1@@babel/runtime-corejs2/core-js/object/keys.js\");\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_object_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(E_h5_node_modules_babel_runtime_corejs2_core_js_object_keys__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.3@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_object_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/core-js/object/assign */ \"./node_modules/_@babel_runtime-corejs2@7.3.1@@babel/runtime-corejs2/core-js/object/assign.js\");\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_object_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(E_h5_node_modules_babel_runtime_corejs2_core_js_object_assign__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es6.regexp.split */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.regexp.split.js\");\n/* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _util_des__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util/des */ \"./src/util/des.js\");\n\n\n\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.6.0@qs/lib/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n /**\r\n * 设置cookie\r\n * @param name\r\n * @param value\r\n * @param iDay\r\n */\n setCookie: function setCookie(name, value, time, domain) {\n domain = domain ? \";domain=\" + domain : \"\";\n var Days = time;\n var exp = new Date();\n exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);\n document.cookie = name + \"=\" + encodeURIComponent(value) + \";expires=\" + exp.toGMTString() + \";path=/\" + domain;\n return true;\n },\n\n /**\r\n * 获取cookie\r\n * @param name\r\n * @returns {*}\r\n */\n getCookie: function getCookie(name) {\n var strCookie = document.cookie;\n var arrCookie = strCookie.split(\"; \");\n\n for (var i = 0; i < arrCookie.length; i++) {\n var arr = arrCookie[i].split(\"=\");\n\n if (name == arr[0]) {\n return arr[1];\n }\n }\n\n return null;\n },\n\n /**\r\n * 删除cookie\r\n * @param name\r\n */\n delCookie: function delCookie(name) {\n var exp = new Date();\n exp.setTime(exp.getTime() - 1);\n var cval = this.getCookie(name);\n if (cval != null) document.cookie = name + \"=\" + cval + \";expires=\" + exp.toGMTString();\n },\n\n /**\r\n * 加密token\r\n */\n getParams: function getParams(params) {\n var Yo4teW_gid = this.getCookie('Yo4teW_gid');\n var cache_time = this.getCookie('cache_time');\n\n if (cache_time != null) {\n var qwertyuiop = Math.floor(new Date().getTime() / 1000);\n } else {\n var qwertyuiop = Math.floor(new Date().getTime() / 1000) + window.fwtimes;\n this.setCookie('cache_time', window.fwtimes, 1, window.cookieHostname);\n }\n\n var abb = [];\n var abbo = {};\n var asdfghjkl = '';\n var appx = '';\n var aggx = '';\n var as = {\n pf: 2,\n qwertyuiop: qwertyuiop,\n Yo4teW_gid: Yo4teW_gid\n };\n\n var obj = E_h5_node_modules_babel_runtime_corejs2_core_js_object_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, as, params);\n\n E_h5_node_modules_babel_runtime_corejs2_core_js_object_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (value, index, array) {\n abb.push(value);\n });\n\n abb = abb.sort();\n abb.forEach(function (value, index, array) {\n abbo[abb[index]] = obj[abb[index]];\n });\n\n E_h5_node_modules_babel_runtime_corejs2_core_js_object_keys__WEBPACK_IMPORTED_MODULE_2___default()(abbo).forEach(function (value, index, array) {\n asdfghjkl += value + '=' + abbo[value];\n });\n\n appx = asdfghjkl.replace(/[^0-9a-zA-Z]/g, '');\n appx = appx.toUpperCase();\n\n for (var i = 0; i < appx.length; i++) {\n if (appx[i] != \"A\" && appx[i] != \"B\" && appx[i] != \"C\") {\n aggx += appx[i];\n }\n }\n\n asdfghjkl = Object(_util_des__WEBPACK_IMPORTED_MODULE_6__[\"hex_sha1\"])(aggx);\n\n var parameter = E_h5_node_modules_babel_runtime_corejs2_core_js_object_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, params, {\n asdfghjkl: asdfghjkl\n }, {\n qwertyuiop: qwertyuiop\n }, {\n pf: 2\n });\n\n return qs.stringify(parameter);\n }\n});\n\n//# sourceURL=webpack:///./src/util/index.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.regexp.replace */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.regexp.replace.js\");\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.array.sort */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.array.sort.js\");\n/* harmony import */ var core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_object_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/core-js/object/keys */ \"./node_modules/_@babel_runtime-corejs2@7.3.1@@babel/runtime-corejs2/core-js/object/keys.js\");\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_object_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(E_h5_node_modules_babel_runtime_corejs2_core_js_object_keys__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.3@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_object_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/core-js/object/assign */ \"./node_modules/_@babel_runtime-corejs2@7.3.1@@babel/runtime-corejs2/core-js/object/assign.js\");\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_object_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(E_h5_node_modules_babel_runtime_corejs2_core_js_object_assign__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es6.regexp.split */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.regexp.split.js\");\n/* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es6.promise */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.promise.js\");\n/* harmony import */ var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es6.symbol */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.symbol.js\");\n/* harmony import */ var core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _util_des__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../util/des */ \"./src/util/des.js\");\n\n\n\n\n\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.6.0@qs/lib/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n /**\r\n * 设置cookie\r\n * @param name\r\n * @param value\r\n * @param iDay\r\n */\n setCookie: function setCookie(name, value, time, domain) {\n domain = domain ? \";domain=\" + domain : \"\";\n var Days = time;\n var exp = new Date();\n exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);\n document.cookie = name + \"=\" + encodeURIComponent(value) + \";expires=\" + exp.toGMTString() + \";path=/\" + domain;\n return true;\n },\n\n /**\r\n * 获取cookie\r\n * @param name\r\n * @returns {*}\r\n */\n getCookie: function getCookie(name) {\n var strCookie = document.cookie;\n var arrCookie = strCookie.split(\"; \");\n\n for (var i = 0; i < arrCookie.length; i++) {\n var arr = arrCookie[i].split(\"=\");\n\n if (name == arr[0]) {\n return arr[1];\n }\n }\n\n return null;\n },\n\n /**\r\n * 删除cookie\r\n * @param name\r\n */\n delCookie: function delCookie(name) {\n var exp = new Date();\n exp.setTime(exp.getTime() - 1);\n var cval = this.getCookie(name);\n if (cval != null) document.cookie = name + \"=\" + cval + \";expires=\" + exp.toGMTString();\n },\n\n /**\r\n * 加密token\r\n */\n getParams: function getParams(params) {\n var Yo4teW_gid = this.getCookie('Yo4teW_gid');\n var cache_time = this.getCookie('cache_time');\n\n if (cache_time != null) {\n var qwertyuiop = Math.floor(new Date().getTime() / 1000);\n } else {\n var qwertyuiop = Math.floor(new Date().getTime() / 1000) + window.fwtimes;\n this.setCookie('cache_time', window.fwtimes, 1, window.cookieHostname);\n }\n\n var abb = [];\n var abbo = {};\n var asdfghjkl = '';\n var appx = '';\n var aggx = '';\n var as = {\n pf: 2,\n qwertyuiop: qwertyuiop,\n Yo4teW_gid: Yo4teW_gid\n };\n\n var obj = E_h5_node_modules_babel_runtime_corejs2_core_js_object_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, as, params);\n\n E_h5_node_modules_babel_runtime_corejs2_core_js_object_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (value, index, array) {\n abb.push(value);\n });\n\n abb = abb.sort();\n abb.forEach(function (value, index, array) {\n abbo[abb[index]] = obj[abb[index]];\n });\n\n E_h5_node_modules_babel_runtime_corejs2_core_js_object_keys__WEBPACK_IMPORTED_MODULE_2___default()(abbo).forEach(function (value, index, array) {\n asdfghjkl += value + '=' + abbo[value];\n });\n\n appx = asdfghjkl.replace(/[^0-9a-zA-Z]/g, '');\n appx = appx.toUpperCase();\n\n for (var i = 0; i < appx.length; i++) {\n if (appx[i] != \"A\" && appx[i] != \"B\" && appx[i] != \"C\") {\n aggx += appx[i];\n }\n }\n\n asdfghjkl = Object(_util_des__WEBPACK_IMPORTED_MODULE_8__[\"hex_sha1\"])(aggx);\n\n var parameter = E_h5_node_modules_babel_runtime_corejs2_core_js_object_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, params, {\n asdfghjkl: asdfghjkl\n }, {\n qwertyuiop: qwertyuiop\n }, {\n pf: 2\n });\n\n return qs.stringify(parameter);\n }\n});\n\n//# sourceURL=webpack:///./src/util/index.js?");
/***/ }),
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