Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
99b7fea5
authored
Nov 13, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
pc跳转
parent
fca7001e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
src/util/index.js
src/views/risk/Index.vue
view/20.js
view/app.js
src/util/index.js
View file @
99b7fea5
...
...
@@ -171,7 +171,7 @@ export default {
}
else
if
(
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
))
{
platform
=
'ios'
}
else
{
platform
=
''
platform
=
'
pc
'
}
return
platform
;
},
...
...
src/views/risk/Index.vue
View file @
99b7fea5
...
...
@@ -36,6 +36,7 @@
import
{
mapState
}
from
'vuex'
import
{
Toast
}
from
'vant'
;
import
{
productionUrlPc
}
from
'../../api/index'
import
Util
from
'../../util/index'
export
default
{
name
:
'risk'
,
...
...
@@ -59,6 +60,9 @@
}
},
created
()
{
if
(
Util
.
isUerAgent
()
==
'pc'
){
window
.
location
.
href
=
productionUrlPc
+
'home/risk '
;
}
this
.
imgSrc
=
productionUrlPc
+
'public/verify'
;
},
watch
:
{
...
...
view/20.js
View file @
99b7fea5
...
...
@@ -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
\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/* 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 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"
);
/***/
}),
...
...
view/app.js
View file @
99b7fea5
...
...
@@ -4446,7 +4446,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_number_constructor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.number.constructor */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.number.constructor.js\");\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.regexp.match */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.regexp.match.js\");\n/* harmony import */ var core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.regexp.replace */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.regexp.replace.js\");\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.array.sort */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.array.sort.js\");\n/* harmony import */ var core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_4__ = __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_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_5__ = __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_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_6__ = __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_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es6.object.assign */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.object.assign.js\");\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es6.regexp.split */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.regexp.split.js\");\n/* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _util_des__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../util/des */ \"./src/util/des.js\");\n\n\n\n\n\n\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.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 var obj = Object.assign({}, as, params);\n Object.keys(obj).forEach(function (value, index, array) {\n abb.push(value);\n });\n abb = abb.sort();\n abb.forEach(function (value, index, array) {\n abbo[abb[index]] = obj[abb[index]];\n });\n Object.keys(abbo).forEach(function (value, index, array) {\n asdfghjkl += value + '=' + abbo[value];\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_9__[\"hex_sha1\"])(aggx);\n var parameter = Object.assign({}, params, {\n asdfghjkl: asdfghjkl\n }, {\n qwertyuiop: qwertyuiop\n }, {\n pf: 2\n });\n return qs.stringify(parameter);\n },\n\n /**\r\n * *\r\n * 区分强弱登录态\r\n * *\r\n * /\r\n */\n isLogin: function isLogin() {\n var state_ = 0;\n\n if (this.getCookie(\"Yo4teW_uid\")) {\n state_ = 2; //强弱登录态\n\n if (this.getCookie(\"Yo4teW_skey\")) {\n state_ = 1; //强登录态\n }\n }\n\n return state_;\n },\n\n /**\r\n * *\r\n * 需要登录态的页面强行跳到登录页面然后回跳回来\r\n * *\r\n * /\r\n */\n loginBack: function loginBack() {},\n\n /**\r\n * *\r\n * 数组排序\r\n * *\r\n * /\r\n */\n compare: function compare(property, state) {\n return function (a, b) {\n var value1 = a[property];\n var value2 = b[property];\n\n if (state) {\n return value1 - value2;\n } else {\n return value2 - value1;\n }\n };\n },\n\n /**\r\n * *\r\n * 数组去重复\r\n * *\r\n * /\r\n */\n distinct: function distinct(array) {\n var arr = array,\n result = [],\n i,\n j,\n len = arr.length;\n\n for (i = 0; i < len; i++) {\n for (j = i + 1; j < len; j++) {\n if (arr[i] === arr[j]) {\n j = ++i;\n }\n }\n\n result.push(arr[i]);\n }\n\n return result;\n },\n\n /**\r\n * 判断终端\r\n * @param\r\n */\n isUerAgent: function isUerAgent() {\n var u = navigator.userAgent;\n var platform = '';\n\n if (u.indexOf('Android') > -1 || u.indexOf('Adr') > -1) {\n platform = 'android';\n } else if (!!u.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/)) {\n platform = 'ios';\n } else {\n platform = '';\n }\n\n return platform;\n },\n\n /**\r\n * *\r\n * 数字解密\r\n * *\r\n * /\r\n */\n aggxde: function aggxde(str) {\n var str = String(str);\n\n if (str && str.indexOf(\"font\") != -1) {\n var sff = str.split('class=\"');\n sff.shift();\n var numb = \"\";\n var listb = [['asfgdqwer', 'asfgdtyhg', 'asfgdpolk', 'asfgdpoqw'], ['asfgdrfdf', 'asfgderfd', 'asfgdwdsa', 'asfgdpoer'], ['asfgdasde', 'asfgdqwsz', 'asfgdrtgd', 'asfgdpovv'], ['asfgdwsxc', 'asfgdwsxz', 'asfgdrfvb', 'asfgdpoee'], ['asfgdqazs', 'asfgdqasd', 'asfgdqwag', 'asfgdpogh'], ['asfgdrtyh', 'asfgdyutr', 'asfgdeews', 'asfgdpotg'], ['asfgdpluj', 'asfgdikjf', 'asfgdesgj', 'asfgdpfff'], ['asfgdtrdb', 'asfgdiksf', 'asfgdsgkp', 'asfgdprty'], ['asfgdpehl', 'asfgdstgb', 'asfgderll', 'asfgdpokf'], ['asfgdpehg', 'asfgdstgf', 'asfgderlf', 'asfgdpogk']];\n\n for (var i = 0; i < sff.length; i++) {\n var ghjk = sff[i].split(\" \")[0];\n\n for (var j = 0; j < listb.length; j++) {\n if (listb[j].indexOf(ghjk) != -1) {\n numb += j;\n }\n }\n }\n\n return Number(numb);\n } else {\n return Number(str);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/util/index.js?"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.number.constructor */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.number.constructor.js\");\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.regexp.match */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.regexp.match.js\");\n/* harmony import */ var core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.regexp.replace */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.regexp.replace.js\");\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.array.sort */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.array.sort.js\");\n/* harmony import */ var core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_4__ = __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_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_5__ = __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_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_6__ = __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_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es6.object.assign */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.object.assign.js\");\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es6.regexp.split */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.regexp.split.js\");\n/* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _util_des__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../util/des */ \"./src/util/des.js\");\n\n\n\n\n\n\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.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 var obj = Object.assign({}, as, params);\n Object.keys(obj).forEach(function (value, index, array) {\n abb.push(value);\n });\n abb = abb.sort();\n abb.forEach(function (value, index, array) {\n abbo[abb[index]] = obj[abb[index]];\n });\n Object.keys(abbo).forEach(function (value, index, array) {\n asdfghjkl += value + '=' + abbo[value];\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_9__[\"hex_sha1\"])(aggx);\n var parameter = Object.assign({}, params, {\n asdfghjkl: asdfghjkl\n }, {\n qwertyuiop: qwertyuiop\n }, {\n pf: 2\n });\n return qs.stringify(parameter);\n },\n\n /**\r\n * *\r\n * 区分强弱登录态\r\n * *\r\n * /\r\n */\n isLogin: function isLogin() {\n var state_ = 0;\n\n if (this.getCookie(\"Yo4teW_uid\")) {\n state_ = 2; //强弱登录态\n\n if (this.getCookie(\"Yo4teW_skey\")) {\n state_ = 1; //强登录态\n }\n }\n\n return state_;\n },\n\n /**\r\n * *\r\n * 需要登录态的页面强行跳到登录页面然后回跳回来\r\n * *\r\n * /\r\n */\n loginBack: function loginBack() {},\n\n /**\r\n * *\r\n * 数组排序\r\n * *\r\n * /\r\n */\n compare: function compare(property, state) {\n return function (a, b) {\n var value1 = a[property];\n var value2 = b[property];\n\n if (state) {\n return value1 - value2;\n } else {\n return value2 - value1;\n }\n };\n },\n\n /**\r\n * *\r\n * 数组去重复\r\n * *\r\n * /\r\n */\n distinct: function distinct(array) {\n var arr = array,\n result = [],\n i,\n j,\n len = arr.length;\n\n for (i = 0; i < len; i++) {\n for (j = i + 1; j < len; j++) {\n if (arr[i] === arr[j]) {\n j = ++i;\n }\n }\n\n result.push(arr[i]);\n }\n\n return result;\n },\n\n /**\r\n * 判断终端\r\n * @param\r\n */\n isUerAgent: function isUerAgent() {\n var u = navigator.userAgent;\n var platform = '';\n\n if (u.indexOf('Android') > -1 || u.indexOf('Adr') > -1) {\n platform = 'android';\n } else if (!!u.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/)) {\n platform = 'ios';\n } else {\n platform = '
pc
';\n }\n\n return platform;\n },\n\n /**\r\n * *\r\n * 数字解密\r\n * *\r\n * /\r\n */\n aggxde: function aggxde(str) {\n var str = String(str);\n\n if (str && str.indexOf(\"font\") != -1) {\n var sff = str.split('class=\"');\n sff.shift();\n var numb = \"\";\n var listb = [['asfgdqwer', 'asfgdtyhg', 'asfgdpolk', 'asfgdpoqw'], ['asfgdrfdf', 'asfgderfd', 'asfgdwdsa', 'asfgdpoer'], ['asfgdasde', 'asfgdqwsz', 'asfgdrtgd', 'asfgdpovv'], ['asfgdwsxc', 'asfgdwsxz', 'asfgdrfvb', 'asfgdpoee'], ['asfgdqazs', 'asfgdqasd', 'asfgdqwag', 'asfgdpogh'], ['asfgdrtyh', 'asfgdyutr', 'asfgdeews', 'asfgdpotg'], ['asfgdpluj', 'asfgdikjf', 'asfgdesgj', 'asfgdpfff'], ['asfgdtrdb', 'asfgdiksf', 'asfgdsgkp', 'asfgdprty'], ['asfgdpehl', 'asfgdstgb', 'asfgderll', 'asfgdpokf'], ['asfgdpehg', 'asfgdstgf', 'asfgderlf', 'asfgdpogk']];\n\n for (var i = 0; i < sff.length; i++) {\n var ghjk = sff[i].split(\" \")[0];\n\n for (var j = 0; j < listb.length; j++) {\n if (listb[j].indexOf(ghjk) != -1) {\n numb += j;\n }\n }\n }\n\n return Number(numb);\n } else {\n return Number(str);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/util/index.js?"
);
/***/
}),
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment