|
@@ -101,7 +101,7 @@ var components
|
|
try {
|
|
try {
|
|
components = {
|
|
components = {
|
|
uniIcons: function () {
|
|
uniIcons: function () {
|
|
- return Promise.all(/*! import() | uni_modules/uni-icons/components/uni-icons/uni-icons */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-icons/components/uni-icons/uni-icons.vue */ 97))
|
|
|
|
|
|
+ return Promise.all(/*! import() | uni_modules/uni-icons/components/uni-icons/uni-icons */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-icons/components/uni-icons/uni-icons.vue */ 99))
|
|
},
|
|
},
|
|
}
|
|
}
|
|
} catch (e) {
|
|
} catch (e) {
|
|
@@ -227,7 +227,7 @@ var _validate = __webpack_require__(/*! @/uitls/validate */ 56);
|
|
//
|
|
//
|
|
var model = function model() {
|
|
var model = function model() {
|
|
__webpack_require__.e(/*! require.ensure | components/login/model */ "components/login/model").then((function () {
|
|
__webpack_require__.e(/*! require.ensure | components/login/model */ "components/login/model").then((function () {
|
|
- return resolve(__webpack_require__(/*! @/components/login/model.vue */ 112));
|
|
|
|
|
|
+ return resolve(__webpack_require__(/*! @/components/login/model.vue */ 114));
|
|
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
|
|
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
|
|
};
|
|
};
|
|
var _default = {
|
|
var _default = {
|
|
@@ -253,10 +253,7 @@ var _default = {
|
|
onLoad: function onLoad() {},
|
|
onLoad: function onLoad() {},
|
|
methods: {
|
|
methods: {
|
|
getImageCode: function getImageCode() {
|
|
getImageCode: function getImageCode() {
|
|
- if (!(0, _validate.isTel)(this.loginForm.phone)) return uni.showToast({
|
|
|
|
- title: '请输入正确的手机号',
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
|
|
+ if (!(0, _validate.isTel)(this.loginForm.phone)) return this.$toast('请输入正确的手机号');
|
|
if (this.isDisabled) return;
|
|
if (this.isDisabled) return;
|
|
this.imgCodeFunc();
|
|
this.imgCodeFunc();
|
|
this.captchaShow = true;
|
|
this.captchaShow = true;
|
|
@@ -271,17 +268,12 @@ var _default = {
|
|
},
|
|
},
|
|
confirmHandle: function confirmHandle() {
|
|
confirmHandle: function confirmHandle() {
|
|
var _this2 = this;
|
|
var _this2 = this;
|
|
- if (!this.imgCode) return uni.showToast({
|
|
|
|
- title: '请输入图片验证码',
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
|
|
+ if (!this.imgCode) return this.$toast('请输入图片验证码');
|
|
(0, _login2.sendPhoneCode)(this.loginForm.phone, this.imgCode).then(function (res) {
|
|
(0, _login2.sendPhoneCode)(this.loginForm.phone, this.imgCode).then(function (res) {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
_this2.codeReset();
|
|
_this2.codeReset();
|
|
- uni.showToast({
|
|
|
|
- title: '发送成功',
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
|
|
+ _this2.$toast('发送成功');
|
|
|
|
+ _this2.captchaShow = false;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -310,10 +302,7 @@ var _default = {
|
|
},
|
|
},
|
|
submitLogin: function submitLogin() {
|
|
submitLogin: function submitLogin() {
|
|
//手机验证码登录
|
|
//手机验证码登录
|
|
- if (!this.loginForm.phoneCode) return uni.showToast({
|
|
|
|
- title: '请输入短信验证码',
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
|
|
+ if (!this.loginForm.phoneCode) return this.$toast('请输入短信验证码');
|
|
this.login(this.loginForm);
|
|
this.login(this.loginForm);
|
|
},
|
|
},
|
|
login: function login(postData) {
|
|
login: function login(postData) {
|
|
@@ -338,10 +327,7 @@ var _default = {
|
|
var userInfo = user.data;
|
|
var userInfo = user.data;
|
|
_this5.$store.dispatch('app/changeOrganization', userInfo.organization);
|
|
_this5.$store.dispatch('app/changeOrganization', userInfo.organization);
|
|
_this5.$store.dispatch('app/changeUser', userInfo);
|
|
_this5.$store.dispatch('app/changeUser', userInfo);
|
|
- uni.showToast({
|
|
|
|
- title: '登录成功',
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
|
|
+ _this5.$toast('登录成功');
|
|
setTimeout(function () {
|
|
setTimeout(function () {
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
uni.navigateBack();
|
|
uni.navigateBack();
|