Browse Source

修复登录功能

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

3
ios/index.js

@ -20,4 +20,5 @@
// break;
// }
// };
// }
// }

24
main.js

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

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() {

9
pages/login/index.vue

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

Loading…
Cancel
Save