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
65108474
authored
Jul 12, 2019
by
肖康
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'XK_carB20190624' into Development
parents
20e0de34
5dd287ce
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
18 additions
and
18 deletions
src/views/chain/chain.vue
src/views/findthing/index.vue
src/views/seo/Index.vue
src/views/smt/Index.vue
src/views/supplier/Index.vue
src/views/wallet/Activate.vue
src/views/wallet/Bind.vue
view/10.js
view/11.js
view/15.js
view/30.js
view/7.js
view/8.js
view/9.js
src/views/chain/chain.vue
View file @
65108474
...
...
@@ -190,7 +190,7 @@
}
else
{
this
.
tipMsg
=
''
;
}
var
r
=
/^1
[
345678
]\d{9}
$/
;
var
r
=
/^1
[
345678
9
]\d{9}
$/
;
if
(
r
.
test
(
this
[
'mobile'
]))
{
this
[
'tipMsg'
]
=
""
}
else
{
...
...
@@ -230,7 +230,7 @@
}
},
mobile
(
val
){
var
r
=
/^1
[
345678
]\d{9}
$/
;
var
r
=
/^1
[
345678
9
]\d{9}
$/
;
if
(
r
.
test
(
val
))
{
this
.
tipMsg
=
""
this
.
codestatus
=
true
;
...
...
src/views/findthing/index.vue
View file @
65108474
...
...
@@ -162,7 +162,7 @@
}
else
{
this
[
'form1'
][
'msg'
]
=
""
}
var
r
=
/^1
[
345678
]\d{9}
$/
;
var
r
=
/^1
[
345678
9
]\d{9}
$/
;
if
(
r
.
test
(
this
[
'form1'
][
'mobile'
]))
{
this
[
'form1'
][
'msg'
]
=
""
}
else
{
...
...
@@ -193,7 +193,7 @@
this
.
form1
.
imgcodestatus
=
val
;
},
mobile
(
val
)
{
var
r
=
/^1
[
345678
]\d{9}
$/
;
var
r
=
/^1
[
345678
9
]\d{9}
$/
;
if
(
r
.
test
(
val
))
{
this
.
form1
.
msg
=
""
this
.
form1
.
codestatus
=
true
;
...
...
src/views/seo/Index.vue
View file @
65108474
...
...
@@ -247,7 +247,7 @@
//提交表单form1
submitForm
(
type_
){
var
form_
=
(
type_
==
2
)?
"form2"
:
"form1"
var
r
=
/^1
[
345678
]\d{9}
$/
;
var
r
=
/^1
[
345678
9
]\d{9}
$/
;
if
(
r
.
test
(
this
[
form_
][
'mobile'
]))
{
this
[
form_
][
'msg'
]
=
""
}
else
{
...
...
@@ -287,7 +287,7 @@
this
.
form2
.
imgcodestatus
=
val
;
},
mobile
(
val
)
{
var
r
=
/^1
[
345678
]\d{9}
$/
;
var
r
=
/^1
[
345678
9
]\d{9}
$/
;
if
(
r
.
test
(
val
))
{
this
.
form1
.
msg
=
""
this
.
form1
.
codestatus
=
true
;
...
...
@@ -297,7 +297,7 @@
}
},
mobile2
(
val
)
{
var
r
=
/^1
[
345678
]\d{9}
$/
;
var
r
=
/^1
[
345678
9
]\d{9}
$/
;
if
(
r
.
test
(
val
))
{
this
.
form2
.
msg
=
""
this
.
form2
.
codestatus
=
true
;
...
...
src/views/smt/Index.vue
View file @
65108474
...
...
@@ -362,7 +362,7 @@
},
submit
()
{
var
character_reg
=
/^
[\u
0391-
\u
FFE5A-Za-z
]
+$/
;
var
tel_reg
=
/^1
[
345
78
]\d{9}
$/
;
var
tel_reg
=
/^1
[
345
6789
]\d{9}
$/
;
if
(
!
this
.
form
.
linkName
)
{
this
.
formError
=
true
;
...
...
src/views/supplier/Index.vue
View file @
65108474
...
...
@@ -355,7 +355,7 @@
},
submit
()
{
var
character_reg
=
/^
[\u
0391-
\u
FFE5A-Za-z
]
+$/
;
var
tel_reg
=
/^1
[
345
78
]\d{9}
$/
;
var
tel_reg
=
/^1
[
345
6789
]\d{9}
$/
;
// if (!this.form.com_name) {
// this.formError = true;
...
...
src/views/wallet/Activate.vue
View file @
65108474
...
...
@@ -148,7 +148,7 @@
this
.
formMsg
=
'亲,请输入手机'
;
return
;
}
var
tel_reg
=
/^1
[
345
78
]\d{9}
$/
;
var
tel_reg
=
/^1
[
345
6789
]\d{9}
$/
;
if
(
!
tel_reg
.
test
(
this
.
form
.
safeMobile
))
{
this
.
formError
=
true
;
this
.
formMsg
=
'亲,手机格式不正确'
;
...
...
src/views/wallet/Bind.vue
View file @
65108474
...
...
@@ -132,7 +132,7 @@
this
.
formMsg
=
'亲,请输入银行预留手机'
;
return
false
;
}
var
tel_reg
=
/^1
[
345
78
]\d{9}
$/
;
var
tel_reg
=
/^1
[
345
6789
]\d{9}
$/
;
if
(
!
tel_reg
.
test
(
this
.
form
.
userMobile
))
{
this
.
formError
=
true
;
this
.
formMsg
=
'亲,银行预留手机格式不正确'
;
...
...
view/10.js
View file @
65108474
...
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.2@vant/es/index.js\");\n/* harmony import */ var _views_common_Menu_vue__WEBPACK_IMPORTED_MODULE_4__ = __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\nvue__WEBPACK_IMPORTED_MODULE_1__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Loading\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Dialog\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'smt',\n data: function data() {\n return {\n color: \"#fff\",\n active: 0,\n active_1: 0,\n itemtext: ['客户需要提供资料', '物料要求'],\n itemtext_1: ['售后服务', '免责条款'],\n isAvisible: 'block',\n isBvisible: 'none',\n isCvisible: 'block',\n isDvisible: 'none',\n formMsg: '',\n showButton: false,\n formError: false,\n verifyCodeFlag: false,\n codetext: '获取验证码',\n disabled: false,\n codeactive: false,\n layer_1: false,\n layer_2: false,\n layer_3: false,\n closeOnClickOverlay: true,\n firmNum: 0,\n form: {\n mobile: '',\n linkName: '',\n verifyCode: ''\n }\n };\n },\n computed: Object(D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"mapState\"])({\n loading: function loading(state) {\n return state.smt.loading;\n }\n }), {\n linkName: function linkName() {\n return this.form.linkName;\n },\n mobileVal: function mobileVal() {\n return this.form.mobile;\n }\n }),\n watch: {\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 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, type) {\n if (type == 'a') {\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 } else if (type == 'b') {\n this.active_1 = index;\n this.isCvisible = 'none';\n this.isDvisible = 'none';\n\n if (index == 0) {\n index == 0 ? this.isCvisible = 'block' : this.isCvisible = 'none';\n } else if (index == 1) {\n index == 1 ? this.isDvisible = 'block' : this.isDvisible = 'none';\n }\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 submit: function submit() {\n var character_reg = /^[\\u0391-\\uFFE5A-Za-z]+$/;\n var tel_reg = /^1[345
78
]\\d{9}$/;\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: 3,\n mobile: this.form.mobile,\n linkName: this.form.linkName,\n verifyCode: this.form.verifyCode\n });\n },\n goAnchor: function goAnchor() {\n var anchor = this.$el.querySelector('#linkName');\n anchor.focus();\n document.documentElement.scrollTop = document.body.scrollTop = 0;\n }\n },\n components: {\n Menu: _views_common_Menu_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/smt/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.0@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.2@vant/es/index.js\");\n/* harmony import */ var _views_common_Menu_vue__WEBPACK_IMPORTED_MODULE_4__ = __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\nvue__WEBPACK_IMPORTED_MODULE_1__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Loading\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Dialog\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'smt',\n data: function data() {\n return {\n color: \"#fff\",\n active: 0,\n active_1: 0,\n itemtext: ['客户需要提供资料', '物料要求'],\n itemtext_1: ['售后服务', '免责条款'],\n isAvisible: 'block',\n isBvisible: 'none',\n isCvisible: 'block',\n isDvisible: 'none',\n formMsg: '',\n showButton: false,\n formError: false,\n verifyCodeFlag: false,\n codetext: '获取验证码',\n disabled: false,\n codeactive: false,\n layer_1: false,\n layer_2: false,\n layer_3: false,\n closeOnClickOverlay: true,\n firmNum: 0,\n form: {\n mobile: '',\n linkName: '',\n verifyCode: ''\n }\n };\n },\n computed: Object(D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"mapState\"])({\n loading: function loading(state) {\n return state.smt.loading;\n }\n }), {\n linkName: function linkName() {\n return this.form.linkName;\n },\n mobileVal: function mobileVal() {\n return this.form.mobile;\n }\n }),\n watch: {\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 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, type) {\n if (type == 'a') {\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 } else if (type == 'b') {\n this.active_1 = index;\n this.isCvisible = 'none';\n this.isDvisible = 'none';\n\n if (index == 0) {\n index == 0 ? this.isCvisible = 'block' : this.isCvisible = 'none';\n } else if (index == 1) {\n index == 1 ? this.isDvisible = 'block' : this.isDvisible = 'none';\n }\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 submit: function submit() {\n var character_reg = /^[\\u0391-\\uFFE5A-Za-z]+$/;\n var tel_reg = /^1[345
6789
]\\d{9}$/;\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: 3,\n mobile: this.form.mobile,\n linkName: this.form.linkName,\n verifyCode: this.form.verifyCode\n });\n },\n goAnchor: function goAnchor() {\n var anchor = this.$el.querySelector('#linkName');\n anchor.focus();\n document.documentElement.scrollTop = document.body.scrollTop = 0;\n }\n },\n components: {\n Menu: _views_common_Menu_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/smt/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.0@vue-loader/lib??vue-loader-options"
);
/***/
}),
...
...
view/11.js
View file @
65108474
...
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.2@vant/es/index.js\");\n/* harmony import */ var _views_common_Menu_vue__WEBPACK_IMPORTED_MODULE_4__ = __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\nvue__WEBPACK_IMPORTED_MODULE_1__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Swipe\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"SwipeItem\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"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(D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"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[345
78
]\\d{9}$/; // 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: parseInt(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_4__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/supplier/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.0@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.2@vant/es/index.js\");\n/* harmony import */ var _views_common_Menu_vue__WEBPACK_IMPORTED_MODULE_4__ = __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\nvue__WEBPACK_IMPORTED_MODULE_1__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Swipe\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"SwipeItem\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"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(D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"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[345
6789
]\\d{9}$/; // 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: parseInt(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_4__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/supplier/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.0@vue-loader/lib??vue-loader-options"
);
/***/
}),
...
...
view/15.js
View file @
65108474
...
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n/* harmony import */ var _util_check_bank_no_min__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/check_bank_no.min */ \"./src/util/check_bank_no.min.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.2@vant/es/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util */ \"./src/util/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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_1__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_5__[\"Toast\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'WalletBind',\n data: function data() {\n return {\n title: \"绑定银行账号\",\n meaushow: true,\n yzmSend: true,\n //验证码发送\n countDown: 60,\n countDownText: '发送验证码',\n form: {\n userName: '',\n userBankID: '',\n userBankNum: '',\n userID: '',\n userMobile: '',\n verifyCode: ''\n },\n formError: false,\n formMsg: '',\n userBankIDList: {\n \"邮政储蓄银行\": 100,\n \"中国工商银行\": 102,\n \"中国农业银行\": 103,\n \"中国银行\": 104,\n \"中国建设银行\": 105,\n \"交通银行\": 301,\n \"中信银行\": 302,\n \"中国光大银行\": 303,\n \"中国民生银行\": 305,\n \"广发银行\": 306,\n \"平安银行\": 307,\n \"招商银行\": 308,\n \"兴业银行\": 309,\n \"上海浦东发展银行\": 310,\n \"浙商银行\": 316,\n \"上海银行\": 401,\n \"北京银行\": 403,\n \"徽商银行\": 440,\n \"银联在线-中金网银无卡\": 888,\n \"银联在线中金网银\": 889\n }\n };\n },\n computed: Object(D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"mapState\"])({\n walletInfoData: function walletInfoData(state) {\n return state.wallet.walletInfoData;\n },\n bankPasswordToken: function bankPasswordToken(state) {\n return state.wallet.bankPasswordToken;\n },\n bankCountDownFlag: function bankCountDownFlag(state) {\n return state.wallet.bankCountDownFlag;\n },\n bindBankKey: function bindBankKey(state) {\n return state.wallet.bindBankKey;\n },\n bindBankData: function bindBankData(state) {\n return state.wallet.bindBankData;\n }\n })),\n watch: {\n bankCountDownFlag: function bankCountDownFlag(value) {\n if (value == true) {\n this.yzmSend = false;\n this.timeNum();\n } else {\n this.yzmSend = true;\n }\n }\n },\n created: function created() {\n this.$store.dispatch({\n type: 'getWalletInfo'\n });\n },\n methods: {\n verify: function verify() {\n if (!this.form.userName) {\n this.formError = true;\n this.formMsg = '亲,请输入真实姓名';\n return false;\n }\n\n if (!this.form.userBankNum) {\n this.formError = true;\n this.formMsg = '亲,请输入银行账号';\n return false;\n }\n\n if (!this.form.userID) {\n this.formError = true;\n this.formMsg = '亲,请输入身份证号码';\n return false;\n }\n\n if (!this.form.userMobile) {\n this.formError = true;\n this.formMsg = '亲,请输入银行预留手机';\n return false;\n }\n\n var tel_reg = /^1[345
78
]\\d{9}$/;\n\n if (!tel_reg.test(this.form.userMobile)) {\n this.formError = true;\n this.formMsg = '亲,银行预留手机格式不正确';\n return false;\n }\n\n return true;\n },\n timeNum: function timeNum() {\n var me = this;\n var clock = setInterval(doLoop, 1000);\n\n function doLoop() {\n me.countDown--;\n\n if (me.countDown <= 0) {\n clearInterval(clock);\n me.countDown = 60;\n me.countDownText = \"再次发送\";\n me.yzmSend = true;\n }\n }\n },\n getCode: function getCode() {\n if (this.verify()) {\n var infox = Object(_util_check_bank_no_min__WEBPACK_IMPORTED_MODULE_4__[\"bankCardAttribution\"])(this.form.userBankNum);\n\n for (var key in this.userBankIDList) {\n if (key == infox.bankName) {\n this.form.userBankID = this.userBankIDList[key];\n } // else{\n // Toast({\n // message: \"银行卡格式有误\",\n // duration: 2000\n // });\n // }\n\n }\n\n this.formError = false;\n this.$store.dispatch({\n //actions分发\n type: 'getBindBankmsg',\n bank_user: this.form.userName,\n bank_id: this.form.userBankID,\n bank_account: this.form.userBankNum,\n id_type: 0,\n id_number: this.form.userID,\n account_type: 1,\n mobile: this.form.userMobile\n });\n }\n },\n confirm: function confirm() {\n //确认\n if (this.verify()) {\n if (!this.form.verifyCode) {\n this.formError = true;\n this.formMsg = '亲,请输入验证码';\n return;\n }\n\n this.formError = false; //绑定银行卡\n\n this.$store.dispatch({\n type: 'bindBankCard',\n token: this.bankPasswordToken || _util__WEBPACK_IMPORTED_MODULE_6__[\"default\"].getCookie(\"bankPasswordToken\"),\n wallet_bank_id: '',\n sms_code: this.form.verifyCode,\n access_key: this.bindBankKey,\n access_data: this.bindBankData\n });\n }\n }\n },\n components: {\n Header: _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/wallet/Bind.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.0@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n/* harmony import */ var _util_check_bank_no_min__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/check_bank_no.min */ \"./src/util/check_bank_no.min.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.2@vant/es/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util */ \"./src/util/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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_1__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_5__[\"Toast\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'WalletBind',\n data: function data() {\n return {\n title: \"绑定银行账号\",\n meaushow: true,\n yzmSend: true,\n //验证码发送\n countDown: 60,\n countDownText: '发送验证码',\n form: {\n userName: '',\n userBankID: '',\n userBankNum: '',\n userID: '',\n userMobile: '',\n verifyCode: ''\n },\n formError: false,\n formMsg: '',\n userBankIDList: {\n \"邮政储蓄银行\": 100,\n \"中国工商银行\": 102,\n \"中国农业银行\": 103,\n \"中国银行\": 104,\n \"中国建设银行\": 105,\n \"交通银行\": 301,\n \"中信银行\": 302,\n \"中国光大银行\": 303,\n \"中国民生银行\": 305,\n \"广发银行\": 306,\n \"平安银行\": 307,\n \"招商银行\": 308,\n \"兴业银行\": 309,\n \"上海浦东发展银行\": 310,\n \"浙商银行\": 316,\n \"上海银行\": 401,\n \"北京银行\": 403,\n \"徽商银行\": 440,\n \"银联在线-中金网银无卡\": 888,\n \"银联在线中金网银\": 889\n }\n };\n },\n computed: Object(D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"mapState\"])({\n walletInfoData: function walletInfoData(state) {\n return state.wallet.walletInfoData;\n },\n bankPasswordToken: function bankPasswordToken(state) {\n return state.wallet.bankPasswordToken;\n },\n bankCountDownFlag: function bankCountDownFlag(state) {\n return state.wallet.bankCountDownFlag;\n },\n bindBankKey: function bindBankKey(state) {\n return state.wallet.bindBankKey;\n },\n bindBankData: function bindBankData(state) {\n return state.wallet.bindBankData;\n }\n })),\n watch: {\n bankCountDownFlag: function bankCountDownFlag(value) {\n if (value == true) {\n this.yzmSend = false;\n this.timeNum();\n } else {\n this.yzmSend = true;\n }\n }\n },\n created: function created() {\n this.$store.dispatch({\n type: 'getWalletInfo'\n });\n },\n methods: {\n verify: function verify() {\n if (!this.form.userName) {\n this.formError = true;\n this.formMsg = '亲,请输入真实姓名';\n return false;\n }\n\n if (!this.form.userBankNum) {\n this.formError = true;\n this.formMsg = '亲,请输入银行账号';\n return false;\n }\n\n if (!this.form.userID) {\n this.formError = true;\n this.formMsg = '亲,请输入身份证号码';\n return false;\n }\n\n if (!this.form.userMobile) {\n this.formError = true;\n this.formMsg = '亲,请输入银行预留手机';\n return false;\n }\n\n var tel_reg = /^1[345
6789
]\\d{9}$/;\n\n if (!tel_reg.test(this.form.userMobile)) {\n this.formError = true;\n this.formMsg = '亲,银行预留手机格式不正确';\n return false;\n }\n\n return true;\n },\n timeNum: function timeNum() {\n var me = this;\n var clock = setInterval(doLoop, 1000);\n\n function doLoop() {\n me.countDown--;\n\n if (me.countDown <= 0) {\n clearInterval(clock);\n me.countDown = 60;\n me.countDownText = \"再次发送\";\n me.yzmSend = true;\n }\n }\n },\n getCode: function getCode() {\n if (this.verify()) {\n var infox = Object(_util_check_bank_no_min__WEBPACK_IMPORTED_MODULE_4__[\"bankCardAttribution\"])(this.form.userBankNum);\n\n for (var key in this.userBankIDList) {\n if (key == infox.bankName) {\n this.form.userBankID = this.userBankIDList[key];\n } // else{\n // Toast({\n // message: \"银行卡格式有误\",\n // duration: 2000\n // });\n // }\n\n }\n\n this.formError = false;\n this.$store.dispatch({\n //actions分发\n type: 'getBindBankmsg',\n bank_user: this.form.userName,\n bank_id: this.form.userBankID,\n bank_account: this.form.userBankNum,\n id_type: 0,\n id_number: this.form.userID,\n account_type: 1,\n mobile: this.form.userMobile\n });\n }\n },\n confirm: function confirm() {\n //确认\n if (this.verify()) {\n if (!this.form.verifyCode) {\n this.formError = true;\n this.formMsg = '亲,请输入验证码';\n return;\n }\n\n this.formError = false; //绑定银行卡\n\n this.$store.dispatch({\n type: 'bindBankCard',\n token: this.bankPasswordToken || _util__WEBPACK_IMPORTED_MODULE_6__[\"default\"].getCookie(\"bankPasswordToken\"),\n wallet_bank_id: '',\n sms_code: this.form.verifyCode,\n access_key: this.bindBankKey,\n access_data: this.bindBankData\n });\n }\n }\n },\n components: {\n Header: _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/wallet/Bind.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.0@vue-loader/lib??vue-loader-options"
);
/***/
}),
...
...
view/30.js
View file @
65108474
...
...
@@ -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_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.regexp.constructor */ \"./node_modules/_core-js@2.6.9@core-js/modules/es6.regexp.constructor.js\");\n/* harmony import */ var core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.2@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../api/index */ \"./src/api/index.js\");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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_5__[\"Icon\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'WalletActivate',\n data: function data() {\n return {\n title: \"激活钱包\",\n meaushow: true,\n showPassword: true,\n //是否显示密码\n showPasswordConfirm: true,\n //是否显示密码确认\n yzmSend: true,\n //验证码发送\n countDown: 60,\n countDownText: '发送验证码',\n step1: true,\n step2: false,\n form: {\n safeMobile: '',\n verifyCode: '',\n imgCode: '',\n password: '',\n passwordConfirm: ''\n },\n formError: false,\n formMsg: '',\n imgCodeVal: _api_index__WEBPACK_IMPORTED_MODULE_6__[\"productionUrlPc\"] + \"public/verify\",\n isClick: true\n };\n },\n computed: Object(D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_3__[\"mapState\"])({\n activateShowImgCode: function activateShowImgCode(state) {\n return state.wallet.activateShowImgCode;\n },\n activateCountDownFlag: function activateCountDownFlag(state) {\n return state.wallet.activateCountDownFlag;\n }\n })),\n watch: {\n activateCountDownFlag: function activateCountDownFlag(value) {\n if (value) {\n this.yzmSend = false;\n this.timeNum();\n } else {\n this.yzmSend = true;\n }\n },\n form: {\n deep: true,\n handler: function handler(val) {\n if (val.safeMobile && val.verifyCode) {\n this.isClick = false;\n } else {\n this.isClick = true;\n }\n }\n }\n },\n created: function created() {},\n methods: {\n changeShow: function changeShow() {\n this.showPassword = !this.showPassword;\n },\n changeShowConfirm: function changeShowConfirm() {\n this.showPasswordConfirm = !this.showPasswordConfirm;\n },\n timeNum: function timeNum() {\n var me = this;\n var clock = setInterval(doLoop, 1000);\n\n function doLoop() {\n me.countDown--;\n\n if (me.countDown <= 0) {\n clearInterval(clock);\n me.countDown = 60;\n me.countDownText = \"再次发送\";\n me.yzmSend = true;\n }\n }\n },\n //获取图片验证码\n changeImgCode: function changeImgCode() {\n this.imgCodeVal = _api_index__WEBPACK_IMPORTED_MODULE_6__[\"productionUrlPc\"] + \"public/verify?\" + new Date().getTime();\n },\n verify: function verify() {\n if (!this.form.safeMobile) {\n this.formError = true;\n this.formMsg = '亲,请输入手机';\n return;\n }\n\n var tel_reg = /^1[345
78
]\\d{9}$/;\n\n if (!tel_reg.test(this.form.safeMobile)) {\n this.formError = true;\n this.formMsg = '亲,手机格式不正确';\n return;\n }\n\n return true;\n },\n getCode: function getCode() {\n if (this.verify()) {\n this.$store.dispatch({\n //actions分发\n type: 'smsVerifyActivate',\n mobile: this.form.safeMobile,\n imgCode: this.form.imgCode\n });\n }\n },\n next: function next() {\n //下一步\n if (this.isClick) {\n return;\n }\n\n if (this.verify()) {\n if (!this.form.verifyCode) {\n this.formError = true;\n this.formMsg = '亲,请输入验证码';\n return;\n }\n\n this.formError = false; //下一步\n\n this.step1 = false;\n this.step2 = true;\n }\n },\n confirm: function confirm() {\n //确认\n var password_reg = new RegExp(/^[a-zA-Z0-9]{6,20}$/); //^表示开始 $表示结束 8~20位字母和数字组合\n\n if (!this.form.password) {\n this.formError = true;\n this.formMsg = '亲,请输入支付密码';\n return;\n }\n\n if (!password_reg.test(this.form.password)) {\n this.formError = true;\n this.formMsg = '亲,密码由6~20位字母、数字组合';\n return;\n }\n\n if (!this.form.passwordConfirm) {\n this.formError = true;\n this.formMsg = '亲,请再次输入支付密码';\n return;\n }\n\n if (this.form.password !== this.form.passwordConfirm) {\n this.formError = true;\n this.formMsg = '亲,两次输入支付密码不一致';\n return;\n }\n\n this.formError = false; //提交\n\n this.$store.dispatch({\n type: 'activateWallet',\n mobile: this.form.safeMobile,\n verifyCode: this.form.verifyCode,\n password: this.form.password,\n passwordConfirm: this.form.passwordConfirm,\n referer: this.$route.query.referer\n });\n }\n },\n components: {\n Header: _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/wallet/Activate.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.0@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.regexp.constructor */ \"./node_modules/_core-js@2.6.9@core-js/modules/es6.regexp.constructor.js\");\n/* harmony import */ var core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.2@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../api/index */ \"./src/api/index.js\");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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_5__[\"Icon\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'WalletActivate',\n data: function data() {\n return {\n title: \"激活钱包\",\n meaushow: true,\n showPassword: true,\n //是否显示密码\n showPasswordConfirm: true,\n //是否显示密码确认\n yzmSend: true,\n //验证码发送\n countDown: 60,\n countDownText: '发送验证码',\n step1: true,\n step2: false,\n form: {\n safeMobile: '',\n verifyCode: '',\n imgCode: '',\n password: '',\n passwordConfirm: ''\n },\n formError: false,\n formMsg: '',\n imgCodeVal: _api_index__WEBPACK_IMPORTED_MODULE_6__[\"productionUrlPc\"] + \"public/verify\",\n isClick: true\n };\n },\n computed: Object(D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_3__[\"mapState\"])({\n activateShowImgCode: function activateShowImgCode(state) {\n return state.wallet.activateShowImgCode;\n },\n activateCountDownFlag: function activateCountDownFlag(state) {\n return state.wallet.activateCountDownFlag;\n }\n })),\n watch: {\n activateCountDownFlag: function activateCountDownFlag(value) {\n if (value) {\n this.yzmSend = false;\n this.timeNum();\n } else {\n this.yzmSend = true;\n }\n },\n form: {\n deep: true,\n handler: function handler(val) {\n if (val.safeMobile && val.verifyCode) {\n this.isClick = false;\n } else {\n this.isClick = true;\n }\n }\n }\n },\n created: function created() {},\n methods: {\n changeShow: function changeShow() {\n this.showPassword = !this.showPassword;\n },\n changeShowConfirm: function changeShowConfirm() {\n this.showPasswordConfirm = !this.showPasswordConfirm;\n },\n timeNum: function timeNum() {\n var me = this;\n var clock = setInterval(doLoop, 1000);\n\n function doLoop() {\n me.countDown--;\n\n if (me.countDown <= 0) {\n clearInterval(clock);\n me.countDown = 60;\n me.countDownText = \"再次发送\";\n me.yzmSend = true;\n }\n }\n },\n //获取图片验证码\n changeImgCode: function changeImgCode() {\n this.imgCodeVal = _api_index__WEBPACK_IMPORTED_MODULE_6__[\"productionUrlPc\"] + \"public/verify?\" + new Date().getTime();\n },\n verify: function verify() {\n if (!this.form.safeMobile) {\n this.formError = true;\n this.formMsg = '亲,请输入手机';\n return;\n }\n\n var tel_reg = /^1[345
6789
]\\d{9}$/;\n\n if (!tel_reg.test(this.form.safeMobile)) {\n this.formError = true;\n this.formMsg = '亲,手机格式不正确';\n return;\n }\n\n return true;\n },\n getCode: function getCode() {\n if (this.verify()) {\n this.$store.dispatch({\n //actions分发\n type: 'smsVerifyActivate',\n mobile: this.form.safeMobile,\n imgCode: this.form.imgCode\n });\n }\n },\n next: function next() {\n //下一步\n if (this.isClick) {\n return;\n }\n\n if (this.verify()) {\n if (!this.form.verifyCode) {\n this.formError = true;\n this.formMsg = '亲,请输入验证码';\n return;\n }\n\n this.formError = false; //下一步\n\n this.step1 = false;\n this.step2 = true;\n }\n },\n confirm: function confirm() {\n //确认\n var password_reg = new RegExp(/^[a-zA-Z0-9]{6,20}$/); //^表示开始 $表示结束 8~20位字母和数字组合\n\n if (!this.form.password) {\n this.formError = true;\n this.formMsg = '亲,请输入支付密码';\n return;\n }\n\n if (!password_reg.test(this.form.password)) {\n this.formError = true;\n this.formMsg = '亲,密码由6~20位字母、数字组合';\n return;\n }\n\n if (!this.form.passwordConfirm) {\n this.formError = true;\n this.formMsg = '亲,请再次输入支付密码';\n return;\n }\n\n if (this.form.password !== this.form.passwordConfirm) {\n this.formError = true;\n this.formMsg = '亲,两次输入支付密码不一致';\n return;\n }\n\n this.formError = false; //提交\n\n this.$store.dispatch({\n type: 'activateWallet',\n mobile: this.form.safeMobile,\n verifyCode: this.form.verifyCode,\n password: this.form.password,\n passwordConfirm: this.form.passwordConfirm,\n referer: this.$route.query.referer\n });\n }\n },\n components: {\n Header: _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/wallet/Activate.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.0@vue-loader/lib??vue-loader-options"
);
/***/
}),
...
...
view/7.js
View file @
65108474
...
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.2@vant/es/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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_1__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Loading\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Swipe\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"SwipeItem\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"chain\",\n data: function data() {\n return {\n bannerHeight: 220,\n needVal: \"\",\n needValLength: 0,\n tipMsg: \"\",\n linkName: \"\",\n mobile: \"\",\n codetext: \"获取验证码\",\n codeactive: false,\n codestatus: false,\n imgcodestatus: false,\n imgcodeval: \"\",\n codeval: \"\"\n };\n },\n computed: Object(D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"mapState\"])({\n loading: function loading(state) {\n return state.chain.loading;\n },\n formImgShow: function formImgShow(state) {\n return state.chain.formImgShow;\n },\n formCodeStatus: function formCodeStatus(state) {\n return state.chain.formCodeStatus;\n }\n })),\n created: function created() {},\n methods: {\n //短信倒计时form1\n timeNum: function timeNum() {\n var me = this;\n var wait = 60;\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.codeactive = false;\n me.codetext = '重新获取';\n wait = 60;\n }\n }\n },\n getCode: function getCode() {\n if (this['imgcodestatus']) {\n if (!this['imgcodeval']) {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: \"请确认图片验证码\",\n duration: 3000\n });\n return;\n }\n }\n\n if (this.codeactive) {\n return;\n }\n\n this.$store.dispatch({\n type: 'chainSmsVerify',\n mobile: this['mobile'],\n verify: this['imgcodeval']\n });\n },\n submitForm: function submitForm() {\n if (this.needVal.length < 10) {\n console.log(55);\n this.tipMsg = '亲,您的详细需求最少10个字';\n return;\n } else {\n this.tipMsg = \"\";\n }\n\n var reg = /^[\\u0391-\\uFFE5A-Za-z]+$/;\n\n if (!reg.test(this.linkName)) {\n this.tipMsg = '亲,称呼只能为英文和中文';\n return;\n } else {\n this.tipMsg = '';\n }\n\n var r = /^1[345678
]\\d{9}$/;\n\n if (r.test(this['mobile'])) {\n this['tipMsg'] = \"\";\n } else {\n this['tipMsg'] = \"请输入正确格式的手机号码\";\n return;\n }\n\n if (!this['codeval']) {\n this['tipMsg'] = \"验证码不能为空\";\n return;\n } else {\n this['tipMsg'] = \"\";\n }\n\n this.$store.dispatch({\n type: 'chainFindBg',\n need: this['needVal'],\n mobile: this['mobile'],\n linkName: this['linkName'],\n verifyCode: this['codeval']\n });\n }\n },\n watch: {\n needVal: function needVal(val) {\n this.needValLength = val.length;\n\n if (val.length < 10) {\n this.tipMsg = '亲,您的详细需求最少10个字';\n } else {\n this.tipMsg = \"\";\n }\n },\n linkName: function linkName(val) {\n var reg = /^[\\u0391-\\uFFE5A-Za-z]+$/;\n\n if (!reg.test(val)) {\n this.tipMsg = '亲,称呼只能为英文和中文';\n } else {\n this.tipMsg = '';\n }\n },\n mobile: function mobile(val) {\n var r = /^1[345678
]\\d{9}$/;\n\n if (r.test(val)) {\n this.tipMsg = \"\";\n this.codestatus = true;\n } else {\n this.tipMsg = \"请输入正确格式的手机号码\";\n this.codestatus = false;\n }\n },\n formCodeStatus: function formCodeStatus(val) {\n if (val) {\n this.timeNum();\n }\n },\n formImgShow: function formImgShow(val) {\n this.imgcodestatus = val;\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/chain/chain.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.0@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.2@vant/es/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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_1__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Loading\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Swipe\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"SwipeItem\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"chain\",\n data: function data() {\n return {\n bannerHeight: 220,\n needVal: \"\",\n needValLength: 0,\n tipMsg: \"\",\n linkName: \"\",\n mobile: \"\",\n codetext: \"获取验证码\",\n codeactive: false,\n codestatus: false,\n imgcodestatus: false,\n imgcodeval: \"\",\n codeval: \"\"\n };\n },\n computed: Object(D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"mapState\"])({\n loading: function loading(state) {\n return state.chain.loading;\n },\n formImgShow: function formImgShow(state) {\n return state.chain.formImgShow;\n },\n formCodeStatus: function formCodeStatus(state) {\n return state.chain.formCodeStatus;\n }\n })),\n created: function created() {},\n methods: {\n //短信倒计时form1\n timeNum: function timeNum() {\n var me = this;\n var wait = 60;\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.codeactive = false;\n me.codetext = '重新获取';\n wait = 60;\n }\n }\n },\n getCode: function getCode() {\n if (this['imgcodestatus']) {\n if (!this['imgcodeval']) {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: \"请确认图片验证码\",\n duration: 3000\n });\n return;\n }\n }\n\n if (this.codeactive) {\n return;\n }\n\n this.$store.dispatch({\n type: 'chainSmsVerify',\n mobile: this['mobile'],\n verify: this['imgcodeval']\n });\n },\n submitForm: function submitForm() {\n if (this.needVal.length < 10) {\n console.log(55);\n this.tipMsg = '亲,您的详细需求最少10个字';\n return;\n } else {\n this.tipMsg = \"\";\n }\n\n var reg = /^[\\u0391-\\uFFE5A-Za-z]+$/;\n\n if (!reg.test(this.linkName)) {\n this.tipMsg = '亲,称呼只能为英文和中文';\n return;\n } else {\n this.tipMsg = '';\n }\n\n var r = /^1[345678
9]\\d{9}$/;\n\n if (r.test(this['mobile'])) {\n this['tipMsg'] = \"\";\n } else {\n this['tipMsg'] = \"请输入正确格式的手机号码\";\n return;\n }\n\n if (!this['codeval']) {\n this['tipMsg'] = \"验证码不能为空\";\n return;\n } else {\n this['tipMsg'] = \"\";\n }\n\n this.$store.dispatch({\n type: 'chainFindBg',\n need: this['needVal'],\n mobile: this['mobile'],\n linkName: this['linkName'],\n verifyCode: this['codeval']\n });\n }\n },\n watch: {\n needVal: function needVal(val) {\n this.needValLength = val.length;\n\n if (val.length < 10) {\n this.tipMsg = '亲,您的详细需求最少10个字';\n } else {\n this.tipMsg = \"\";\n }\n },\n linkName: function linkName(val) {\n var reg = /^[\\u0391-\\uFFE5A-Za-z]+$/;\n\n if (!reg.test(val)) {\n this.tipMsg = '亲,称呼只能为英文和中文';\n } else {\n this.tipMsg = '';\n }\n },\n mobile: function mobile(val) {\n var r = /^1[3456789
]\\d{9}$/;\n\n if (r.test(val)) {\n this.tipMsg = \"\";\n this.codestatus = true;\n } else {\n this.tipMsg = \"请输入正确格式的手机号码\";\n this.codestatus = false;\n }\n },\n formCodeStatus: function formCodeStatus(val) {\n if (val) {\n this.timeNum();\n }\n },\n formImgShow: function formImgShow(val) {\n this.imgcodestatus = val;\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/chain/chain.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.0@vue-loader/lib??vue-loader-options"
);
/***/
}),
...
...
view/8.js
View file @
65108474
...
...
@@ -20,7 +20,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.2@vant/es/index.js\");\n/* harmony import */ var _views_common_SideBar_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/views/common/SideBar.vue */ \"./src/views/common/SideBar.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\nvue__WEBPACK_IMPORTED_MODULE_1__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Swipe\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"SwipeItem\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Loading\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'seo',\n computed: Object(D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"mapState\"])({\n loading: function loading(state) {\n return state.seo.loading;\n },\n form1ImgShow: function form1ImgShow(state) {\n return state.seo.form1ImgShow;\n },\n form2ImgShow: function form2ImgShow(state) {\n return state.seo.form2ImgShow;\n },\n form1CodeStatus: function form1CodeStatus(state) {\n return state.seo.form1CodeStatus;\n },\n form2CodeStatus: function form2CodeStatus(state) {\n return state.seo.form2CodeStatus;\n },\n isRegLogin: function isRegLogin(state) {\n return state.seo.isRegLogin;\n }\n }), {\n mobile: function mobile(val) {\n return this.form1.mobile;\n },\n mobile2: function mobile2(val) {\n return this.form2.mobile;\n }\n }),\n data: function data() {\n return {\n loadings: false,\n isWindow: true,\n //右侧开启窗口监听滚动\n codeactive: false,\n //form1短信验证码禁用状态\n codeactive2: false,\n //form2短信验证码禁用状态\n codetext: \"获取验证码\",\n //form1发短信按钮文案\n codetext2: \"获取验证码\",\n //form2发短信按钮文案\n form1: {\n mobile: \"\",\n code: \"\",\n codestatus: false,\n imgcode: \"\",\n imgcodestatus: false,\n msg: \"\"\n },\n form2: {\n mobile: \"\",\n code: \"\",\n codestatus: false,\n imgcode: \"\",\n imgcodestatus: false,\n msg: \"\",\n goods_name: \"\",\n brand_name: \"\"\n }\n };\n },\n methods: {\n //短信倒计时form1\n timeNum: function timeNum() {\n var me = this;\n var wait = 60;\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.codeactive = false;\n me.codetext = '重新获取';\n wait = 60;\n }\n }\n },\n //短信倒计时form1\n timeNum2: function timeNum2() {\n var me = this;\n var wait = 60;\n me.codeactive2 = true;\n me.codetext2 = wait + '秒后获取';\n var clock = setInterval(doLoop, 1000);\n\n function doLoop() {\n wait--;\n\n if (wait > 0) {\n me.codetext2 = wait + '秒后获取';\n me.codeactive2 = true;\n } else {\n clearInterval(clock);\n me.codeactive2 = false;\n me.codetext2 = '重新获取';\n wait = 60;\n }\n }\n },\n //获取验证码\n getCode: function getCode(type_) {\n var form_ = type_ == 2 ? \"form2\" : \"form1\";\n\n if (this[form_]['imgcodestatus']) {\n if (!this[form_]['imgcode']) {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: \"请确认图片验证码\",\n duration: 3000\n });\n return;\n }\n }\n\n var codeactive = type_ == 2 ? \"codeactive2\" : \"codeactive\";\n\n if (this[codeactive]) {\n return;\n }\n\n this.$store.dispatch({\n type: 'smsVerify',\n mobile: this[form_]['mobile'],\n verify: this[form_]['imgcode'],\n types: form_\n });\n },\n //提交表单form1\n submitForm: function submitForm(type_) {\n var form_ = type_ == 2 ? \"form2\" : \"form1\";\n var r = /^1[345678
]\\d{9}$/;\n\n if (r.test(this[form_]['mobile'])) {\n this[form_]['msg'] = \"\";\n } else {\n this[form_]['msg'] = \"请输入正确格式的手机号码\";\n return;\n }\n\n if (!this[form_]['code']) {\n this[form_]['msg'] = \"验证码不能为空\";\n return;\n } else {\n this[form_]['msg'] = \"\";\n }\n\n this.$store.dispatch({\n type: 'actionLogin',\n account: this[form_]['mobile'],\n sms_verify: this[form_]['code'],\n form_name: form_\n });\n }\n },\n watch: {\n form2CodeStatus: function form2CodeStatus(val) {\n if (val) {\n this.timeNum2();\n }\n },\n form1CodeStatus: function form1CodeStatus(val) {\n if (val) {\n this.timeNum();\n }\n },\n form1ImgShow: function form1ImgShow(val) {\n this.form1.imgcodestatus = val;\n },\n form2ImgShow: function form2ImgShow(val) {\n this.form2.imgcodestatus = val;\n },\n mobile: function mobile(val) {\n var r = /^1[345678]\\d{9}$/;\n\n if (r.test(val)) {\n this.form1.msg = \"\";\n this.form1.codestatus = true;\n } else {\n this.form1.msg = \"请输入正确格式的手机号码\";\n this.form1.codestatus = false;\n }\n },\n mobile2: function mobile2(val) {\n var r = /^1[345678
]\\d{9}$/;\n\n if (r.test(val)) {\n this.form2.msg = \"\";\n this.form2.codestatus = true;\n } else {\n this.form2.msg = \"请输入正确格式的手机号码\";\n this.form2.codestatus = false;\n }\n },\n isRegLogin: function isRegLogin(val) {\n if (val) {\n var datajson_ = {\n brand: this.form2.brand_name,\n type: this.form2.goods_name //登录成功调用反馈接口\n\n };\n this.$store.dispatch({\n type: 'feedback',\n types: 8,\n mobile: this.form2.mobile,\n content: JSON.stringify(datajson_)\n });\n }\n }\n },\n components: {\n SideBar: _views_common_SideBar_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/seo/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.0@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.2@vant/es/index.js\");\n/* harmony import */ var _views_common_SideBar_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/views/common/SideBar.vue */ \"./src/views/common/SideBar.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\nvue__WEBPACK_IMPORTED_MODULE_1__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Swipe\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"SwipeItem\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Loading\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'seo',\n computed: Object(D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"mapState\"])({\n loading: function loading(state) {\n return state.seo.loading;\n },\n form1ImgShow: function form1ImgShow(state) {\n return state.seo.form1ImgShow;\n },\n form2ImgShow: function form2ImgShow(state) {\n return state.seo.form2ImgShow;\n },\n form1CodeStatus: function form1CodeStatus(state) {\n return state.seo.form1CodeStatus;\n },\n form2CodeStatus: function form2CodeStatus(state) {\n return state.seo.form2CodeStatus;\n },\n isRegLogin: function isRegLogin(state) {\n return state.seo.isRegLogin;\n }\n }), {\n mobile: function mobile(val) {\n return this.form1.mobile;\n },\n mobile2: function mobile2(val) {\n return this.form2.mobile;\n }\n }),\n data: function data() {\n return {\n loadings: false,\n isWindow: true,\n //右侧开启窗口监听滚动\n codeactive: false,\n //form1短信验证码禁用状态\n codeactive2: false,\n //form2短信验证码禁用状态\n codetext: \"获取验证码\",\n //form1发短信按钮文案\n codetext2: \"获取验证码\",\n //form2发短信按钮文案\n form1: {\n mobile: \"\",\n code: \"\",\n codestatus: false,\n imgcode: \"\",\n imgcodestatus: false,\n msg: \"\"\n },\n form2: {\n mobile: \"\",\n code: \"\",\n codestatus: false,\n imgcode: \"\",\n imgcodestatus: false,\n msg: \"\",\n goods_name: \"\",\n brand_name: \"\"\n }\n };\n },\n methods: {\n //短信倒计时form1\n timeNum: function timeNum() {\n var me = this;\n var wait = 60;\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.codeactive = false;\n me.codetext = '重新获取';\n wait = 60;\n }\n }\n },\n //短信倒计时form1\n timeNum2: function timeNum2() {\n var me = this;\n var wait = 60;\n me.codeactive2 = true;\n me.codetext2 = wait + '秒后获取';\n var clock = setInterval(doLoop, 1000);\n\n function doLoop() {\n wait--;\n\n if (wait > 0) {\n me.codetext2 = wait + '秒后获取';\n me.codeactive2 = true;\n } else {\n clearInterval(clock);\n me.codeactive2 = false;\n me.codetext2 = '重新获取';\n wait = 60;\n }\n }\n },\n //获取验证码\n getCode: function getCode(type_) {\n var form_ = type_ == 2 ? \"form2\" : \"form1\";\n\n if (this[form_]['imgcodestatus']) {\n if (!this[form_]['imgcode']) {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: \"请确认图片验证码\",\n duration: 3000\n });\n return;\n }\n }\n\n var codeactive = type_ == 2 ? \"codeactive2\" : \"codeactive\";\n\n if (this[codeactive]) {\n return;\n }\n\n this.$store.dispatch({\n type: 'smsVerify',\n mobile: this[form_]['mobile'],\n verify: this[form_]['imgcode'],\n types: form_\n });\n },\n //提交表单form1\n submitForm: function submitForm(type_) {\n var form_ = type_ == 2 ? \"form2\" : \"form1\";\n var r = /^1[345678
9]\\d{9}$/;\n\n if (r.test(this[form_]['mobile'])) {\n this[form_]['msg'] = \"\";\n } else {\n this[form_]['msg'] = \"请输入正确格式的手机号码\";\n return;\n }\n\n if (!this[form_]['code']) {\n this[form_]['msg'] = \"验证码不能为空\";\n return;\n } else {\n this[form_]['msg'] = \"\";\n }\n\n this.$store.dispatch({\n type: 'actionLogin',\n account: this[form_]['mobile'],\n sms_verify: this[form_]['code'],\n form_name: form_\n });\n }\n },\n watch: {\n form2CodeStatus: function form2CodeStatus(val) {\n if (val) {\n this.timeNum2();\n }\n },\n form1CodeStatus: function form1CodeStatus(val) {\n if (val) {\n this.timeNum();\n }\n },\n form1ImgShow: function form1ImgShow(val) {\n this.form1.imgcodestatus = val;\n },\n form2ImgShow: function form2ImgShow(val) {\n this.form2.imgcodestatus = val;\n },\n mobile: function mobile(val) {\n var r = /^1[3456789]\\d{9}$/;\n\n if (r.test(val)) {\n this.form1.msg = \"\";\n this.form1.codestatus = true;\n } else {\n this.form1.msg = \"请输入正确格式的手机号码\";\n this.form1.codestatus = false;\n }\n },\n mobile2: function mobile2(val) {\n var r = /^1[3456789
]\\d{9}$/;\n\n if (r.test(val)) {\n this.form2.msg = \"\";\n this.form2.codestatus = true;\n } else {\n this.form2.msg = \"请输入正确格式的手机号码\";\n this.form2.codestatus = false;\n }\n },\n isRegLogin: function isRegLogin(val) {\n if (val) {\n var datajson_ = {\n brand: this.form2.brand_name,\n type: this.form2.goods_name //登录成功调用反馈接口\n\n };\n this.$store.dispatch({\n type: 'feedback',\n types: 8,\n mobile: this.form2.mobile,\n content: JSON.stringify(datajson_)\n });\n }\n }\n },\n components: {\n SideBar: _views_common_SideBar_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/seo/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.0@vue-loader/lib??vue-loader-options"
);
/***/
}),
...
...
view/9.js
View file @
65108474
...
...
@@ -20,7 +20,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.2@vant/es/index.js\");\n/* harmony import */ var _views_common_SideBar_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/views/common/SideBar.vue */ \"./src/views/common/SideBar.vue\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../api/index */ \"./src/api/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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_1__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Swipe\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"SwipeItem\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Loading\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'seo',\n computed: Object(D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"mapState\"])({\n loading: function loading(state) {\n return state.findthing.loading;\n },\n form1ImgShow: function form1ImgShow(state) {\n return state.findthing.form1ImgShow;\n },\n form1CodeStatus: function form1CodeStatus(state) {\n return state.findthing.form1CodeStatus;\n },\n isRegLogin: function isRegLogin(state) {\n return state.findthing.isRegLogin;\n }\n }), {\n mobile: function mobile(val) {\n return this.form1.mobile;\n }\n }),\n data: function data() {\n return {\n loadings: false,\n isWindow: true,\n //右侧开启窗口监听滚动\n codeactive: false,\n //form1短信验证码禁用状态\n codetext: \"获取验证码\",\n //form1发短信按钮文案\n form1: {\n mobile: \"\",\n code: \"\",\n codestatus: false,\n imgcode: \"\",\n imgcodestatus: false,\n goodsNumber: \"\",\n num: \"\",\n msg: \"\"\n }\n };\n },\n methods: {\n //短信倒计时form1\n timeNum: function timeNum() {\n var me = this;\n var wait = 60;\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.codeactive = false;\n me.codetext = '获取验证码';\n wait = 60;\n }\n }\n },\n //获取验证码\n getCode: function getCode() {\n if (this['form1']['imgcodestatus']) {\n if (!this['form1']['imgcode']) {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: \"请确认图片验证码\",\n duration: 3000\n });\n return;\n }\n }\n\n if (this.codeactive) {\n return;\n }\n\n this.$store.dispatch({\n type: 'smsVerify1',\n mobile: this['form1']['mobile'],\n verify: this['form1']['imgcode']\n });\n },\n //提交表单form1\n submitForm: function submitForm() {\n if (!this['form1']['goodsNumber']) {\n this['form1']['msg'] = \"型号不能为空\";\n return;\n } else {\n this['form1']['msg'] = \"\";\n }\n\n var r = /^1[345678
]\\d{9}$/;\n\n if (r.test(this['form1']['mobile'])) {\n this['form1']['msg'] = \"\";\n } else {\n this['form1']['msg'] = \"请输入正确格式的手机号码\";\n return;\n }\n\n if (!this['form1']['code']) {\n this['form1']['msg'] = \"验证码不能为空\";\n return;\n } else {\n this['form1']['msg'] = \"\";\n }\n\n this.$store.dispatch({\n type: 'actionLogin1',\n account: this['form1']['mobile'],\n sms_verify: this['form1']['code']\n });\n }\n },\n watch: {\n form1CodeStatus: function form1CodeStatus(val) {\n if (val) {\n this.timeNum();\n }\n },\n form1ImgShow: function form1ImgShow(val) {\n this.form1.imgcodestatus = val;\n },\n mobile: function mobile(val) {\n var r = /^1[345678
]\\d{9}$/;\n\n if (r.test(val)) {\n this.form1.msg = \"\";\n this.form1.codestatus = true;\n } else {\n this.form1.msg = \"请输入正确格式的手机号码\";\n this.form1.codestatus = false;\n }\n },\n isRegLogin: function isRegLogin(val) {\n if (val) {\n var datajson_ = {\n number: this.form1.num,\n type: this.form1.goodsNumber //登录成功调用反馈接口\n\n };\n this.$store.dispatch({\n type: 'feedback1',\n types: 7,\n mobile: this.form1.mobile,\n content: JSON.stringify(datajson_)\n });\n }\n }\n },\n components: {\n SideBar: _views_common_SideBar_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/findthing/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.0@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.2@vant/es/index.js\");\n/* harmony import */ var _views_common_SideBar_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/views/common/SideBar.vue */ \"./src/views/common/SideBar.vue\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../api/index */ \"./src/api/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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_1__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Swipe\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"SwipeItem\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Loading\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'seo',\n computed: Object(D_lxWork_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"mapState\"])({\n loading: function loading(state) {\n return state.findthing.loading;\n },\n form1ImgShow: function form1ImgShow(state) {\n return state.findthing.form1ImgShow;\n },\n form1CodeStatus: function form1CodeStatus(state) {\n return state.findthing.form1CodeStatus;\n },\n isRegLogin: function isRegLogin(state) {\n return state.findthing.isRegLogin;\n }\n }), {\n mobile: function mobile(val) {\n return this.form1.mobile;\n }\n }),\n data: function data() {\n return {\n loadings: false,\n isWindow: true,\n //右侧开启窗口监听滚动\n codeactive: false,\n //form1短信验证码禁用状态\n codetext: \"获取验证码\",\n //form1发短信按钮文案\n form1: {\n mobile: \"\",\n code: \"\",\n codestatus: false,\n imgcode: \"\",\n imgcodestatus: false,\n goodsNumber: \"\",\n num: \"\",\n msg: \"\"\n }\n };\n },\n methods: {\n //短信倒计时form1\n timeNum: function timeNum() {\n var me = this;\n var wait = 60;\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.codeactive = false;\n me.codetext = '获取验证码';\n wait = 60;\n }\n }\n },\n //获取验证码\n getCode: function getCode() {\n if (this['form1']['imgcodestatus']) {\n if (!this['form1']['imgcode']) {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: \"请确认图片验证码\",\n duration: 3000\n });\n return;\n }\n }\n\n if (this.codeactive) {\n return;\n }\n\n this.$store.dispatch({\n type: 'smsVerify1',\n mobile: this['form1']['mobile'],\n verify: this['form1']['imgcode']\n });\n },\n //提交表单form1\n submitForm: function submitForm() {\n if (!this['form1']['goodsNumber']) {\n this['form1']['msg'] = \"型号不能为空\";\n return;\n } else {\n this['form1']['msg'] = \"\";\n }\n\n var r = /^1[345678
9]\\d{9}$/;\n\n if (r.test(this['form1']['mobile'])) {\n this['form1']['msg'] = \"\";\n } else {\n this['form1']['msg'] = \"请输入正确格式的手机号码\";\n return;\n }\n\n if (!this['form1']['code']) {\n this['form1']['msg'] = \"验证码不能为空\";\n return;\n } else {\n this['form1']['msg'] = \"\";\n }\n\n this.$store.dispatch({\n type: 'actionLogin1',\n account: this['form1']['mobile'],\n sms_verify: this['form1']['code']\n });\n }\n },\n watch: {\n form1CodeStatus: function form1CodeStatus(val) {\n if (val) {\n this.timeNum();\n }\n },\n form1ImgShow: function form1ImgShow(val) {\n this.form1.imgcodestatus = val;\n },\n mobile: function mobile(val) {\n var r = /^1[3456789
]\\d{9}$/;\n\n if (r.test(val)) {\n this.form1.msg = \"\";\n this.form1.codestatus = true;\n } else {\n this.form1.msg = \"请输入正确格式的手机号码\";\n this.form1.codestatus = false;\n }\n },\n isRegLogin: function isRegLogin(val) {\n if (val) {\n var datajson_ = {\n number: this.form1.num,\n type: this.form1.goodsNumber //登录成功调用反馈接口\n\n };\n this.$store.dispatch({\n type: 'feedback1',\n types: 7,\n mobile: this.form1.mobile,\n content: JSON.stringify(datajson_)\n });\n }\n }\n },\n components: {\n SideBar: _views_common_SideBar_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/findthing/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.0@vue-loader/lib??vue-loader-options"
);
/***/
}),
...
...
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