Browse Source

修复登录功能

master
zhengshuiqi 3 years ago
parent
commit
07214bb799
  1. 1
      ios/index.js
  2. 6
      main.js
  3. 3
      pages/account/favorites.vue
  4. 1
      pages/index/index.vue
  5. 7
      pages/login/index.vue

1
ios/index.js

@ -21,3 +21,4 @@
// }
// };
// }

6
main.js

@ -16,11 +16,15 @@ const app = new Vue({
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
import {
createSSRApp
} from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {

3
pages/account/favorites.vue

@ -232,7 +232,8 @@
font-size: 25rpx;
padding-bottom:40rpx;
line-height: 200rpx;
line-height: 170rpx;
// line-height: 200rpx;
text-align: center;
}

1
pages/index/index.vue

@ -250,7 +250,6 @@
})
s++;
}, 5000);
},
mounted() {

7
pages/login/index.vue

@ -206,10 +206,13 @@
uni.setStorageSync('cartlist',list2)
uni.setStorageSync('isLogin',1)
uni.setStorageSync('user_info',res.data)
uni.switchTab({
uni.navigateBack({
delta:1
// url:'../index/index'
})
// uni.switchTab({
// delta: 1
// // url:'../index/index'
// })
}else{
if(res.data){
this.$refs.alertDialog.open()

Loading…
Cancel
Save