|
@@ -26,6 +26,8 @@ export default {
|
|
|
},
|
|
|
onLoad() {
|
|
|
uni.setNavigationBarTitle({ title: this.$t('login.dl') });
|
|
|
+ this.email = uni.getStorageSync('gwname') || ''
|
|
|
+ this.lpwd = uni.getStorageSync('gwpsw') || ''
|
|
|
},
|
|
|
methods: {
|
|
|
...mapMutations('user', ['login', 'setUserInfo']),
|
|
@@ -54,6 +56,8 @@ export default {
|
|
|
})
|
|
|
.then(res => {
|
|
|
console.log(res);
|
|
|
+ uni.setStorageSync('gwname',obj.email)
|
|
|
+ uni.setStorageSync('gwpsw',obj.lpwd)
|
|
|
obj.loadingType = 'no';
|
|
|
uni.showToast({
|
|
|
title: this.$t('login.dlcg'),
|