You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
642 B
36 lines
642 B
|
1 year ago
|
<script>
|
||
|
|
export default {
|
||
|
|
onLaunch: function() {
|
||
|
|
this.$nextTick(() => {
|
||
|
|
// uni.login({
|
||
|
|
// provider: 'weixin',
|
||
|
|
// success: (res) => {
|
||
|
|
// console.log(res.code);
|
||
|
|
// this.$u.api.login({
|
||
|
|
// code: res.code
|
||
|
|
// }).then(res => {
|
||
|
|
// this.$u.api.user().then(res=>{
|
||
|
|
// this.$u.vuex('vuex_user', res)
|
||
|
|
// })
|
||
|
|
// })
|
||
|
|
// }
|
||
|
|
// });
|
||
|
|
})
|
||
|
|
|
||
|
|
},
|
||
|
|
|
||
|
|
|
||
|
|
onShow: function() {
|
||
|
|
console.log('App Show')
|
||
|
|
},
|
||
|
|
onHide: function() {
|
||
|
|
console.log('App Hide')
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style lang="scss">
|
||
|
|
/*每个页面公共css */
|
||
|
|
@import "uview-ui/index.scss";
|
||
|
|
|
||
|
|
</style>
|