注册修改
This commit is contained in:
parent
97f8bdb7e6
commit
e7bd94a1c8
6
App.vue
6
App.vue
|
|
@ -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: '自动登录中...',
|
||||
|
|
|
|||
|
|
@ -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" : {
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
})
|
||||
})
|
||||
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue