Browse Source

修复登录功能

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

1
ios/index.js

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

20
main.js

@ -10,21 +10,25 @@ import Vue from 'vue'
Vue.config.productionTip = false Vue.config.productionTip = false
App.mpType = 'app' App.mpType = 'app'
const app = new Vue({ const app = new Vue({
...App, ...App,
store, store,
ios ios
}) })
app.$mount() app.$mount()
// #endif // #endif
// #ifdef VUE3 // #ifdef VUE3
import { createSSRApp } from 'vue' import {
createSSRApp
} from 'vue'
export function createApp() { export function createApp() {
const app = createSSRApp(App) const app = createSSRApp(App)
return { return {
app app
} }
} }
// #endif // #endif

3
pages/account/favorites.vue

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

1
pages/index/index.vue

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

9
pages/login/index.vue

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

Loading…
Cancel
Save