1.优化登录流程
2.uniapp评价完成后要连需3-4次返回才能到首页(体验不是很好)
This commit is contained in:
@ -291,9 +291,14 @@ export default {
|
||||
},
|
||||
MenuUser: function() {
|
||||
let that = this;
|
||||
getMenuUser().then(res => {
|
||||
that.MyMenus = res.data.routine_my_menus;
|
||||
});
|
||||
getMenuUser()
|
||||
.then(res => {
|
||||
uni.hideLoading();
|
||||
that.MyMenus = res.data.routine_my_menus;
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error);
|
||||
});
|
||||
},
|
||||
goPages: function(index) {
|
||||
let url = this.MyMenus[index].uniapp_url;
|
||||
@ -335,9 +340,11 @@ export default {
|
||||
},
|
||||
onShow() {
|
||||
if (this.$store.getters.token) {
|
||||
//
|
||||
this.$store.dispatch('getUser', true)
|
||||
|
||||
//
|
||||
uni.showLoading({
|
||||
title: "绑定中"
|
||||
});
|
||||
this.$store.dispatch("getUser", true);
|
||||
this.MenuUser();
|
||||
this.isWeixin = isWeixin();
|
||||
}
|
||||
|
@ -64,11 +64,11 @@ export default {
|
||||
methods: {
|
||||
getIndex: function() {
|
||||
let that = this;
|
||||
let form = {};
|
||||
let from = {};
|
||||
if (this.$deviceType == "app") {
|
||||
form.form = "app";
|
||||
from.from = "app";
|
||||
}
|
||||
getSpreadImg(form).then(
|
||||
getSpreadImg(from).then(
|
||||
res => {
|
||||
that.info = res.data;
|
||||
},
|
||||
|
Reference in New Issue
Block a user