|
|
@@ -71,6 +71,7 @@ export default {
|
|
|
onHide() {},
|
|
|
methods: {
|
|
|
login() {
|
|
|
+ const deviceInfo = wx.getDeviceInfo()
|
|
|
if (!this.ISFill) {
|
|
|
uni.showToast({
|
|
|
title: "登录信息填写有误哦",
|
|
|
@@ -79,6 +80,9 @@ export default {
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
+ this.formD2.phone_model= deviceInfo.model //设备型号
|
|
|
+ this.formD2.phone_brand= deviceInfo.brand //设备型号
|
|
|
+ phone_brand: deviceInfo.brand,//设备品牌
|
|
|
post("v1/login",this.formD2).then((res) => {
|
|
|
if (res.code === 0) {
|
|
|
uni.setStorageSync('token', res.data.token);
|