注册修改
This commit is contained in:
parent
97f8bdb7e6
commit
e7bd94a1c8
6
App.vue
6
App.vue
|
|
@ -68,11 +68,12 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef APP-PLUS
|
|
||||||
uni.getSystemInfo({
|
uni.getSystemInfo({
|
||||||
success(res) {
|
success(res) {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
that.$u.vuex('vuex_version', res.appVersion)
|
that.$u.vuex('vuex_version', res.appVersion)
|
||||||
|
// #ifdef APP-PLUS
|
||||||
if (res.platform == 'android') {
|
if (res.platform == 'android') {
|
||||||
that.$u.api.apkCheck().then(res1 => {
|
that.$u.api.apkCheck().then(res1 => {
|
||||||
if (res.appVersion < res1.version) {
|
if (res.appVersion < res1.version) {
|
||||||
|
|
@ -95,9 +96,10 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// #endif
|
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '自动登录中...',
|
title: '自动登录中...',
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
"name" : "曲阳金隅EHS",
|
"name" : "曲阳金隅EHS",
|
||||||
"appid" : "__UNI__B00D419",
|
"appid" : "__UNI__B00D419",
|
||||||
"description" : "曲阳金隅EHS",
|
"description" : "曲阳金隅EHS",
|
||||||
"versionName" : "1.01.02",
|
"versionName" : "1.01.04",
|
||||||
"versionCode" : 10102,
|
"versionCode" : 10104,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|
|
||||||
|
|
@ -105,20 +105,9 @@
|
||||||
if (!that.checkedParams(obj)) return;
|
if (!that.checkedParams(obj)) return;
|
||||||
that.$u.api.visitorRegister(obj).then(res => {
|
that.$u.api.visitorRegister(obj).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if(res.err_msg){
|
|
||||||
this.$u.toast(res.err_msg);
|
|
||||||
}else{
|
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/login/login_'
|
url: '/pages/login/login_'
|
||||||
})
|
})
|
||||||
}
|
|
||||||
|
|
||||||
}).catch(e => {
|
|
||||||
console.log(e)
|
|
||||||
uni.showToast({
|
|
||||||
title: e.err_msg,
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue