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
08146f69
authored
Nov 15, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
11c3af23
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
11 deletions
src/store/modules/special/index.js
src/views/risk/Index.vue
src/views/risk/Success.vue
view/14.js
view/20.js
view/app.js
src/store/modules/special/index.js
View file @
08146f69
...
...
@@ -91,6 +91,9 @@ const actions = {
}
else
if
(
data
.
err_code
==
10001
||
data
.
err_code
==
10002
)
{
state
.
formImgShow
=
true
;
state
.
countDown
=
false
;
Toast
({
message
:
data
.
err_msg
,
duration
:
2000
...
...
@@ -98,6 +101,7 @@ const actions = {
}
else
{
Toast
({
message
:
data
.
err_msg
,
duration
:
3000
...
...
@@ -107,6 +111,9 @@ const actions = {
}).
catch
(
function
(
err
)
{
});
},
countDownflag
({
commit
},
payload
)
{
state
.
countDown
=
false
;
}
}
...
...
src/views/risk/Index.vue
View file @
08146f69
...
...
@@ -12,7 +12,7 @@
<input
type=
"text"
placeholder=
"怎么称呼您"
class=
"inp"
v-model=
"user_name"
/>
</div>
<div
class=
"inpt-wrap"
>
<input
type=
"number"
placeholder=
"请输入
联系
手机号"
class=
"inp"
v-model=
"account"
/>
<input
type=
"number"
placeholder=
"请输入手机号"
class=
"inp"
v-model=
"account"
/>
</div>
<div
class=
"inpt-wrap fx"
v-if=
"formImgShow"
>
<input
type=
"text"
placeholder=
"请输入图形验证码"
class=
"inps"
v-model=
"verify"
/>
...
...
@@ -20,7 +20,7 @@
<img
:src=
"imgSrc"
alt=
""
>
</a>
</div>
<div
class=
"inpt-wrap fx"
>
<div
class=
"inpt-wrap fx"
v-if=
"codeshow"
>
<input
type=
"number"
placeholder=
"输入验证码"
class=
"inps"
v-model=
"sms_verify"
/>
<input
type=
"button"
:value=
"codetext"
:class=
"
{'codebtndisabled':codeactive}" :disabled="disabled" @click="codeFn" class="codebtn lineBlock">
</div>
...
...
@@ -57,17 +57,24 @@
codetext
:
'发送验证码'
,
disabled
:
false
,
codeactive
:
false
,
codeshow
:
false
}
},
created
()
{
if
(
Util
.
isUerAgent
()
==
'pc'
)
{
window
.
location
.
href
=
productionUrlPc
+
'/v3/home/risk'
;
if
(
Util
.
isUerAgent
()
==
'pc'
)
{
window
.
location
.
href
=
productionUrlPc
+
'/v3/home/risk'
;
}
this
.
imgSrc
=
productionUrlPc
+
'public/verify'
;
},
watch
:
{
formImgShow
(
val
)
{
if
(
!
val
)
{
account
(
val
)
{
var
reg_mobile
=
/^
(
13
[
0-9
]
|14
[
579
]
|15
[
0-3,5-9
]
|16
[
6
]
|17
[
0135678
]
|18
[
0-9
]
|19
[
89
])\d{8}
$/
;
if
(
reg_mobile
.
test
(
val
))
{
this
.
codeshow
=
true
;
}
},
countDown
(
val
)
{
if
(
val
)
{
this
.
timeNum
();
}
}
...
...
src/views/risk/Success.vue
View file @
08146f69
...
...
@@ -121,7 +121,7 @@
],
[
{
'text_1'
:
'史诗型巨
巨
'
,
'text_1'
:
'史诗型巨'
,
'text_2'
:
'客户虐我千百遍,我待客户如初恋!'
,
'text_3'
:
'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'
},
...
...
view/14.js
View file @
08146f69
...
...
@@ -20,7 +20,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var _views_common_wxShare_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/views/common/wxShare.vue */ \"./src/views/common/wxShare.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/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'risksuccess',\n data: function data() {\n return {\n shade: false,\n level: '',\n quota: '',\n text: [],\n link: window.location.origin + '/h5/view/#/risk',\n title: '内容过于刺激!邀你偷偷看看你的公司评分',\n desc: '我们公司综合评级......',\n imgUrl: 'http://img.ichunt.com/images/ichunt/minProgram/07afe4ceb4c5226f310c0e2832428cfb.jpg',\n account: ''\n };\n },\n created: function created() {\n var num = Math.floor(Math.random() * 4);\n this.getData(num);\n },\n methods: {\n getData: function getData(num) {\n var level = ['SSS', 'SS', 'S', 'A+'];\n var quota = ['500', '300', '100', '20'];\n var desc = ['的公司综合评级SSS,“老板说赚多少亿无所谓,做人重要是开心!', '的公司综合评级SS,“问:‘你的超能力是什么?答:‘Rich’”', '的公司综合评级S,“先定一个能达到的小目标,比如我先赚他一个亿”', '的公司综合评级A+,“别的我不敢说,就算骗自己我也不会骗我的客(父)户(母)!'];\n var text = [[{\n 'text_1': '巨无霸型公司',\n 'text_2': '订单接到手软,数钱数到抽筋。真不是我服务不努力,谁叫我客户多只能雨露均沾呢!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'\n }, {\n 'text_1': '财大气粗本粗',\n 'text_2': '此路是我开,此树是我栽,要想从此过,留下买路财!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/8fc978fdd1c6f6b986a22f29c6b70935.png'\n }, {\n 'text_1': '一诺千金就是你',\n 'text_2': '靠兄弟行走江湖,靠口碑扬名立万说的就是我!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/3663a7c8e978057c69943614f1b567c8.png'\n }, {\n 'text_1': '蒸蒸日上很开心',\n 'text_2': '老板说赚多少亿无所谓,做人重要是开心!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/b600f7291689e1c107edefd828eb43ad.png'\n }], [{\n 'text_1': '传说型大公司',\n 'text_2': '他人贪婪我恐惧,他人恐惧我贪婪!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'\n }, {\n 'text_1': '豪气满满',\n 'text_2': '你的超能力是什么?”答:“Rich!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/8fc978fdd1c6f6b986a22f29c6b70935.png'\n }, {\n 'text_1': '颂声遍野就是你',\n 'text_2': '跟我谈信用!看看华强北有多少兄弟给我点赞!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/3663a7c8e978057c69943614f1b567c8.png'\n }, {\n 'text_1': '日高日上很开心',\n 'text_2': '老板说赚多少亿无所谓,做人重要是开心!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/b600f7291689e1c107edefd828eb43ad.png'\n }], [{\n 'text_1': '大公司就是你,你就是大公司',\n 'text_2': '稳扎稳打,一步一个脚印!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'\n }, {\n 'text_1': '人间难寻的真土豪',\n 'text_2': '钱会有的,女朋(基)友也会有的!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/8fc978fdd1c6f6b986a22f29c6b70935.png'\n }, {\n 'text_1': '童叟无欺就是你',\n 'text_2': '跟我谈信用!看看华强北有多少兄弟给我点赞!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/3663a7c8e978057c69943614f1b567c8.png'\n }, {\n 'text_1': '欣欣向荣很开心',\n 'text_2': '先定一个能达到的小目标,比如我先赚他一个亿!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/b600f7291689e1c107edefd828eb43ad.png'\n }], [{\n 'text_1': '史诗型巨
巨
',\n 'text_2': '客户虐我千百遍,我待客户如初恋!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'\n }, {\n 'text_1': '·真· 腰缠万贯',\n 'text_2': '钱会有的,女朋(基)友也会有的!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/8fc978fdd1c6f6b986a22f29c6b70935.png'\n }, {\n 'text_1': '言而有信就是你',\n 'text_2': '别的我不敢说,就算骗自己我也不会骗我的客(父)户(母)!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/3663a7c8e978057c69943614f1b567c8.png'\n }, {\n 'text_1': '势如破竹很开心',\n 'text_2': '我是一只潜力股,不管你信不信,反正我是不信的!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/b600f7291689e1c107edefd828eb43ad.png'\n }]];\n this.text = text[num];\n this.level = level[num];\n this.quota = quota[num];\n },\n share: function share() {\n this.shade = true;\n }\n },\n components: {\n wxShare: _views_common_wxShare_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/risk/Success.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 vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var _views_common_wxShare_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/views/common/wxShare.vue */ \"./src/views/common/wxShare.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/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'risksuccess',\n data: function data() {\n return {\n shade: false,\n level: '',\n quota: '',\n text: [],\n link: window.location.origin + '/h5/view/#/risk',\n title: '内容过于刺激!邀你偷偷看看你的公司评分',\n desc: '我们公司综合评级......',\n imgUrl: 'http://img.ichunt.com/images/ichunt/minProgram/07afe4ceb4c5226f310c0e2832428cfb.jpg',\n account: ''\n };\n },\n created: function created() {\n var num = Math.floor(Math.random() * 4);\n this.getData(num);\n },\n methods: {\n getData: function getData(num) {\n var level = ['SSS', 'SS', 'S', 'A+'];\n var quota = ['500', '300', '100', '20'];\n var desc = ['的公司综合评级SSS,“老板说赚多少亿无所谓,做人重要是开心!', '的公司综合评级SS,“问:‘你的超能力是什么?答:‘Rich’”', '的公司综合评级S,“先定一个能达到的小目标,比如我先赚他一个亿”', '的公司综合评级A+,“别的我不敢说,就算骗自己我也不会骗我的客(父)户(母)!'];\n var text = [[{\n 'text_1': '巨无霸型公司',\n 'text_2': '订单接到手软,数钱数到抽筋。真不是我服务不努力,谁叫我客户多只能雨露均沾呢!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'\n }, {\n 'text_1': '财大气粗本粗',\n 'text_2': '此路是我开,此树是我栽,要想从此过,留下买路财!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/8fc978fdd1c6f6b986a22f29c6b70935.png'\n }, {\n 'text_1': '一诺千金就是你',\n 'text_2': '靠兄弟行走江湖,靠口碑扬名立万说的就是我!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/3663a7c8e978057c69943614f1b567c8.png'\n }, {\n 'text_1': '蒸蒸日上很开心',\n 'text_2': '老板说赚多少亿无所谓,做人重要是开心!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/b600f7291689e1c107edefd828eb43ad.png'\n }], [{\n 'text_1': '传说型大公司',\n 'text_2': '他人贪婪我恐惧,他人恐惧我贪婪!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'\n }, {\n 'text_1': '豪气满满',\n 'text_2': '你的超能力是什么?”答:“Rich!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/8fc978fdd1c6f6b986a22f29c6b70935.png'\n }, {\n 'text_1': '颂声遍野就是你',\n 'text_2': '跟我谈信用!看看华强北有多少兄弟给我点赞!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/3663a7c8e978057c69943614f1b567c8.png'\n }, {\n 'text_1': '日高日上很开心',\n 'text_2': '老板说赚多少亿无所谓,做人重要是开心!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/b600f7291689e1c107edefd828eb43ad.png'\n }], [{\n 'text_1': '大公司就是你,你就是大公司',\n 'text_2': '稳扎稳打,一步一个脚印!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'\n }, {\n 'text_1': '人间难寻的真土豪',\n 'text_2': '钱会有的,女朋(基)友也会有的!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/8fc978fdd1c6f6b986a22f29c6b70935.png'\n }, {\n 'text_1': '童叟无欺就是你',\n 'text_2': '跟我谈信用!看看华强北有多少兄弟给我点赞!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/3663a7c8e978057c69943614f1b567c8.png'\n }, {\n 'text_1': '欣欣向荣很开心',\n 'text_2': '先定一个能达到的小目标,比如我先赚他一个亿!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/b600f7291689e1c107edefd828eb43ad.png'\n }], [{\n 'text_1': '史诗型巨',\n 'text_2': '客户虐我千百遍,我待客户如初恋!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'\n }, {\n 'text_1': '·真· 腰缠万贯',\n 'text_2': '钱会有的,女朋(基)友也会有的!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/8fc978fdd1c6f6b986a22f29c6b70935.png'\n }, {\n 'text_1': '言而有信就是你',\n 'text_2': '别的我不敢说,就算骗自己我也不会骗我的客(父)户(母)!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/3663a7c8e978057c69943614f1b567c8.png'\n }, {\n 'text_1': '势如破竹很开心',\n 'text_2': '我是一只潜力股,不管你信不信,反正我是不信的!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/b600f7291689e1c107edefd828eb43ad.png'\n }]];\n this.text = text[num];\n this.level = level[num];\n this.quota = quota[num];\n },\n share: function share() {\n this.shade = true;\n }\n },\n components: {\n wxShare: _views_common_wxShare_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/risk/Success.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/20.js
View file @
08146f69
...
...
@@ -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\"] + '/v3/home/risk';\n }\n\n this.imgSrc = _api_index__WEBPACK_IMPORTED_MODULE_8__[\"productionUrlPc\"] + 'public/verify';\n },\n watch: {\n formImgShow: function formImgShow(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 codeshow: 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\"] + '/v3/home/risk';\n }\n\n this.imgSrc = _api_index__WEBPACK_IMPORTED_MODULE_8__[\"productionUrlPc\"] + 'public/verify';\n },\n watch: {\n account: function account(val) {\n var reg_mobile = /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\\d{8}$/;\n\n if (reg_mobile.test(val)) {\n this.codeshow = true;\n }\n },\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"
);
/***/
}),
...
...
@@ -20,7 +20,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"section\", { staticClass: \"risk\" }, [\n _c(\"div\", { staticClass: \"banner\" }),\n _c(\"div\", { staticClass: \"content\" }, [\n _c(\"p\", { staticClass: \"t1\" }, [_vm._v(\"贷款额度在线测评系统\")]),\n _c(\"p\", { staticClass: \"t2\" }, [\n _vm._v(\"Online loan quota evaluation system\")\n ]),\n _c(\"div\", { staticClass: \"form-box boxsiz\" }, [\n _c(\"div\", { staticClass: \"inpt-wrap\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.com_name,\n expression: \"com_name\"\n }\n ],\n staticClass: \"inp\",\n attrs: { type: \"text\", placeholder: \"请输入公司名称\" },\n domProps: { value: _vm.com_name },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.com_name = $event.target.value\n }\n }\n })\n ]),\n _c(\"div\", { staticClass: \"inpt-wrap\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.user_name,\n expression: \"user_name\"\n }\n ],\n staticClass: \"inp\",\n attrs: { type: \"text\", placeholder: \"怎么称呼您\" },\n domProps: { value: _vm.user_name },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.user_name = $event.target.value\n }\n }\n })\n ]),\n _c(\"div\", { staticClass: \"inpt-wrap\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.account,\n expression: \"account\"\n }\n ],\n staticClass: \"inp\",\n attrs: { type: \"number\", placeholder: \"请输入
联系手机号\" },\n domProps: { value: _vm.account },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.account = $event.target.value\n }\n }\n })\n ]),\n _vm.formImgShow\n ? _c(\"div\", { staticClass: \"inpt-wrap fx\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.verify,\n expression: \"verify\"\n }\n ],\n staticClass: \"inps\",\n attrs: { type: \"text\", placeholder: \"请输入图形验证码\" },\n domProps: { value: _vm.verify },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.verify = $event.target.value\n }\n }\n }),\n _c(\n \"a\",\n {\n staticClass: \"imgcode\",\n attrs: { href: \"javascript:;\" },\n on: { click: _vm.updateCode }\n },\n [_c(\"img\", { attrs: { src: _vm.imgSrc, alt: \"\" } })]\n )\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"inpt-wrap fx\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.sms_verify,\n expression: \"sms_verify\"\n }\n ],\n staticClass: \"inps\",\n attrs: { type: \"number\", placeholder: \"输入验证码\" },\n domProps: { value: _vm.sms_verify },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.sms_verify = $event.target.value\n }\n }\n }),\n _c(\"input\", {\n staticClass: \"codebtn lineBlock\",\n class: { codebtndisabled: _vm.codeactive },\n attrs: {\n type: \"button\",\n value: _vm.codetext,\n disabled: _vm.disabled\n },\n on: { click: _vm.codeFn }\n })\n ]
),\n _c(\n \"a\",\n {\n staticClass: \"btn\",\n attrs: { href: \"javascript:;\" },\n on: { click: _vm.submit }\n },\n [_vm._v(\"立即获取测评结果\")]\n ),\n _c(\"p\", { staticClass: \"txt\" }, [\n _vm._v(\"详细的测评结果会通过手机号传达\")\n ])\n ])\n ])\n ])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/risk/Index.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%221627c33a-vue-loader-template%22%7D!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"section\", { staticClass: \"risk\" }, [\n _c(\"div\", { staticClass: \"banner\" }),\n _c(\"div\", { staticClass: \"content\" }, [\n _c(\"p\", { staticClass: \"t1\" }, [_vm._v(\"贷款额度在线测评系统\")]),\n _c(\"p\", { staticClass: \"t2\" }, [\n _vm._v(\"Online loan quota evaluation system\")\n ]),\n _c(\"div\", { staticClass: \"form-box boxsiz\" }, [\n _c(\"div\", { staticClass: \"inpt-wrap\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.com_name,\n expression: \"com_name\"\n }\n ],\n staticClass: \"inp\",\n attrs: { type: \"text\", placeholder: \"请输入公司名称\" },\n domProps: { value: _vm.com_name },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.com_name = $event.target.value\n }\n }\n })\n ]),\n _c(\"div\", { staticClass: \"inpt-wrap\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.user_name,\n expression: \"user_name\"\n }\n ],\n staticClass: \"inp\",\n attrs: { type: \"text\", placeholder: \"怎么称呼您\" },\n domProps: { value: _vm.user_name },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.user_name = $event.target.value\n }\n }\n })\n ]),\n _c(\"div\", { staticClass: \"inpt-wrap\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.account,\n expression: \"account\"\n }\n ],\n staticClass: \"inp\",\n attrs: { type: \"number\", placeholder: \"请输入
手机号\" },\n domProps: { value: _vm.account },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.account = $event.target.value\n }\n }\n })\n ]),\n _vm.formImgShow\n ? _c(\"div\", { staticClass: \"inpt-wrap fx\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.verify,\n expression: \"verify\"\n }\n ],\n staticClass: \"inps\",\n attrs: { type: \"text\", placeholder: \"请输入图形验证码\" },\n domProps: { value: _vm.verify },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.verify = $event.target.value\n }\n }\n }),\n _c(\n \"a\",\n {\n staticClass: \"imgcode\",\n attrs: { href: \"javascript:;\" },\n on: { click: _vm.updateCode }\n },\n [_c(\"img\", { attrs: { src: _vm.imgSrc, alt: \"\" } })]\n )\n ])\n : _vm._e(),\n _vm.codeshow\n ? _c(\"div\", { staticClass: \"inpt-wrap fx\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.sms_verify,\n expression: \"sms_verify\"\n }\n ],\n staticClass: \"inps\",\n attrs: { type: \"number\", placeholder: \"输入验证码\" },\n domProps: { value: _vm.sms_verify },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.sms_verify = $event.target.value\n }\n }\n }),\n _c(\"input\", {\n staticClass: \"codebtn lineBlock\",\n class: { codebtndisabled: _vm.codeactive },\n attrs: {\n type: \"button\",\n value: _vm.codetext,\n disabled: _vm.disabled\n },\n on: { click: _vm.codeFn }\n })\n ])\n : _vm._e(
),\n _c(\n \"a\",\n {\n staticClass: \"btn\",\n attrs: { href: \"javascript:;\" },\n on: { click: _vm.submit }\n },\n [_vm._v(\"立即获取测评结果\")]\n ),\n _c(\"p\", { staticClass: \"txt\" }, [\n _vm._v(\"详细的测评结果会通过手机号传达\")\n ])\n ])\n ])\n ])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/risk/Index.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%221627c33a-vue-loader-template%22%7D!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./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 @
08146f69
...
...
@@ -4326,7 +4326,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 vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.2.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.9.0@qs/lib/index.js\");\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\nvar state = {\n formImgShow: false,\n countDown: false\n};\nvar mutations = {\n getfileuploadbanner: function getfileuploadbanner(state, payload) {\n state.getfileuploadbanner = payload.data;\n },\n articleShowData: function articleShowData(state, payload) {\n state.articleShowData = payload.data;\n }\n};\nvar actions = {\n actionLogins: function actionLogins(_ref, payload) {\n var commit = _ref.commit;\n var toast = vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"].loading({\n forbidClick: true\n }); //IC信用贷\n\n if (payload.from == 'risk') {\n var params = {\n com_name: payload.com_name,\n user_name: payload.user_name,\n account: payload.account,\n sms_verify: payload.sms_verify,\n \"ptag\": 'edcp'\n };\n } else {\n var params = {\n account: payload.account,\n sms_verify: payload.sms_verify\n };\n }\n\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].actionLogins(qs.stringify(params)).then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n setTimeout(function () {\n toast.clear();\n\n if (payload.from == 'risk') {\n window.location.href = \"/h5/view/#/creditestsuccess\";\n } else {\n window.location.href = \"/\";\n }\n }, 1000);\n } else {\n toast.clear();\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 smsVerifys: function smsVerifys(_ref2, payload) {\n var commit = _ref2.commit;\n var params = {\n mobile: payload.mobile,\n verify: payload.verify,\n channel: 1\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].smsVerifys(qs.stringify(params)).then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n state.formImgShow = false;\n state.countDown = true;\n } else if (data.err_code == 10001 || data.err_code == 10002) {\n state.formImgShow = true;\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 }\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/special/index.js?"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.2.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.9.0@qs/lib/index.js\");\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\nvar state = {\n formImgShow: false,\n countDown: false\n};\nvar mutations = {\n getfileuploadbanner: function getfileuploadbanner(state, payload) {\n state.getfileuploadbanner = payload.data;\n },\n articleShowData: function articleShowData(state, payload) {\n state.articleShowData = payload.data;\n }\n};\nvar actions = {\n actionLogins: function actionLogins(_ref, payload) {\n var commit = _ref.commit;\n var toast = vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"].loading({\n forbidClick: true\n }); //IC信用贷\n\n if (payload.from == 'risk') {\n var params = {\n com_name: payload.com_name,\n user_name: payload.user_name,\n account: payload.account,\n sms_verify: payload.sms_verify,\n \"ptag\": 'edcp'\n };\n } else {\n var params = {\n account: payload.account,\n sms_verify: payload.sms_verify\n };\n }\n\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].actionLogins(qs.stringify(params)).then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n setTimeout(function () {\n toast.clear();\n\n if (payload.from == 'risk') {\n window.location.href = \"/h5/view/#/creditestsuccess\";\n } else {\n window.location.href = \"/\";\n }\n }, 1000);\n } else {\n toast.clear();\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 smsVerifys: function smsVerifys(_ref2, payload) {\n var commit = _ref2.commit;\n var params = {\n mobile: payload.mobile,\n verify: payload.verify,\n channel: 1\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].smsVerifys(qs.stringify(params)).then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n state.formImgShow = false;\n state.countDown = true;\n } else if (data.err_code == 10001 || data.err_code == 10002) {\n state.formImgShow = true;\n
state.countDown = false;\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 },\n countDownflag: function countDownflag(_ref3, payload) {\n var commit = _ref3.commit;\n state.countDown = false
;\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/special/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