注册修改

This commit is contained in:
曹前明 2022-10-21 01:20:47 +08:00
parent 97f8bdb7e6
commit e7bd94a1c8
3 changed files with 6 additions and 15 deletions

View File

@ -68,11 +68,12 @@
}
});
// #endif
// #ifdef APP-PLUS
uni.getSystemInfo({
success(res) {
console.log(res)
that.$u.vuex('vuex_version', res.appVersion)
// #ifdef APP-PLUS
if (res.platform == 'android') {
that.$u.api.apkCheck().then(res1 => {
if (res.appVersion < res1.version) {
@ -95,9 +96,10 @@
}
})
}
// #endif
}
})
// #endif
// #ifdef APP-PLUS
uni.showLoading({
title: '自动登录中...',

View File

@ -2,8 +2,8 @@
"name" : "曲阳金隅EHS",
"appid" : "__UNI__B00D419",
"description" : "曲阳金隅EHS",
"versionName" : "1.01.02",
"versionCode" : 10102,
"versionName" : "1.01.04",
"versionCode" : 10104,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@ -105,20 +105,9 @@
if (!that.checkedParams(obj)) return;
that.$u.api.visitorRegister(obj).then(res => {
uni.hideLoading();
if(res.err_msg){
this.$u.toast(res.err_msg);
}else{
uni.reLaunch({
url: '/pages/login/login_'
})
}
}).catch(e => {
console.log(e)
uni.showToast({
title: e.err_msg,
icon: 'none'
})
})
},