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
df1a8be2
authored
Feb 18, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
726427a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
src/store/modules/smt/index.js
view/app.js
src/store/modules/smt/index.js
View file @
df1a8be2
...
...
@@ -68,7 +68,7 @@ const actions = {
chainFind
({
commit
},
payload
)
{
state
.
loading
=
true
;
var
params
=
{
type
:
2
,
type
:
1
,
mobile
:
payload
.
mobile
,
linkName
:
payload
.
linkName
,
verifyCode
:
payload
.
verifyCode
,
...
...
@@ -90,6 +90,11 @@ const actions = {
message
:
'已为您自动创建的猎芯网登录账号为'
+
payload
.
mobile
+
'请使用免密码登录'
,
duration
:
3000
});
}
else
{
Toast
({
message
:
'您已经提交成功,我们将会在2个工作日内联系您'
,
duration
:
3000
});
}
}).
catch
(
function
(
err
)
{
...
...
view/app.js
View file @
df1a8be2
...
...
@@ -3993,7 +3993,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.5.22@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.5.7@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../util/index */ \"./src/util/index.js\");\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.6.0@qs/lib/index.js\");\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\nvar state = {\n loading: false\n};\nvar mutations = {\n index: function index(state, payload) {\n state.index = payload.data;\n }\n};\nvar actions = {\n checkAccountExists: function checkAccountExists(_ref, payload) {\n var commit = _ref.commit;\n state.loading = true;\n var params = {\n pf: 2,\n type: 2,\n account: payload.account\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].checkAccountExists(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code != 0) {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: '该手机号尚未注册,我们将为您自动生成猎芯网帐号',\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n customSmsVerify: function customSmsVerify(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n pf: 2,\n verify: '',\n mobile: payload.mobile\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].customSmsVerify(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 2000\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n chainFind: function chainFind(_ref3, payload) {\n var commit = _ref3.commit;\n state.loading = true;\n var params = {\n type: 2,\n mobile: payload.mobile,\n linkName: payload.linkName,\n verifyCode: payload.verifyCode,\n com_name: payload.com_name,\n main_brand: payload.main_brand,\n supplier_type: payload.supplier_type\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].chainFind(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.errcode == 1) {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.errmsg,\n duration: 3000\n });\n } else if (resp.errcode == 2) {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: '已为您自动创建的猎芯网登录账号为' + payload.mobile + '请使用免密码登录',\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n Object(vant__WEBPACK_IMPORTED_MODULE_1
__[\"Toast\"])({\n message: '网络出现问题,请重试',\n duration: 3000\n });\n });\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});\n\n//# sourceURL=webpack:///./src/store/modules/smt/index.js?"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.promise */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.promise.js\");\n/* harmony import */ var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.symbol */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.symbol.js\");\n/* harmony import */ var core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.5.22@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.5.7@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../util/index */ \"./src/util/index.js\");\n\n\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.6.0@qs/lib/index.js\");\n\nvue__WEBPACK_IMPORTED_MODULE_2__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"]);\nvar state = {\n loading: false\n};\nvar mutations = {\n index: function index(state, payload) {\n state.index = payload.data;\n }\n};\nvar actions = {\n checkAccountExists: function checkAccountExists(_ref, payload) {\n var commit = _ref.commit;\n state.loading = true;\n var params = {\n pf: 2,\n type: 2,\n account: payload.account\n };\n _api_index__WEBPACK_IMPORTED_MODULE_4__[\"services\"].checkAccountExists(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code != 0) {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: '该手机号尚未注册,我们将为您自动生成猎芯网帐号',\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n customSmsVerify: function customSmsVerify(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n pf: 2,\n verify: '',\n mobile: payload.mobile\n };\n _api_index__WEBPACK_IMPORTED_MODULE_4__[\"services\"].customSmsVerify(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: data.err_msg,\n duration: 2000\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n chainFind: function chainFind(_ref3, payload) {\n var commit = _ref3.commit;\n state.loading = true;\n var params = {\n type: 1,\n mobile: payload.mobile,\n linkName: payload.linkName,\n verifyCode: payload.verifyCode,\n com_name: payload.com_name,\n main_brand: payload.main_brand,\n supplier_type: payload.supplier_type\n };\n _api_index__WEBPACK_IMPORTED_MODULE_4__[\"services\"].chainFind(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.errcode == 1) {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: data.errmsg,\n duration: 3000\n });\n } else if (resp.errcode == 2) {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: '已为您自动创建的猎芯网登录账号为' + payload.mobile + '请使用免密码登录',\n duration: 3000\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: '您已经提交成功,我们将会在2个工作日内联系您',\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n Object(vant__WEBPACK_IMPORTED_MODULE_3
__[\"Toast\"])({\n message: '网络出现问题,请重试',\n duration: 3000\n });\n });\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});\n\n//# sourceURL=webpack:///./src/store/modules/smt/index.js?"
);
/***/
}),
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