mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-17 16:05:53 +08:00
将当前客户端类型进行登录传值
This commit is contained in:
@@ -204,6 +204,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
// #ifndef APP-PLUS
|
// #ifndef APP-PLUS
|
||||||
//判断是否微信浏览器
|
//判断是否微信浏览器
|
||||||
var ua = window.navigator.userAgent.toLowerCase();
|
var ua = window.navigator.userAgent.toLowerCase();
|
||||||
@@ -657,9 +658,8 @@
|
|||||||
const params = JSON.parse(JSON.stringify(this.userData));
|
const params = JSON.parse(JSON.stringify(this.userData));
|
||||||
params.password = md5(params.password);
|
params.password = md5(params.password);
|
||||||
try {
|
try {
|
||||||
let res = await userLogin(params);
|
let res = await userLogin(params,this.clientType);
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
console.log("zhixing ")
|
|
||||||
this.getUserInfoMethods(res);
|
this.getUserInfoMethods(res);
|
||||||
} else {
|
} else {
|
||||||
this.$refs.verification.getCode();
|
this.$refs.verification.getCode();
|
||||||
|
|||||||
Reference in New Issue
Block a user