| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <style lang="scss">
- /* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
- @import "uview-ui/index.scss";
- </style>
- <script>
- export default {
- onLaunch: function() {
- // let that = this;
- // wx.login({
- // success(re) {
- // that.$api.wxAuthLogin({code:re.code}).then(res=>{
- // uni.setStorageSync('userInfo',res.data.data.userInfo)
- // uni.setStorageSync('accessToken',res.data.data.access_token)
- // uni.setStorageSync('phoneIsBind',res.data.data.phoneIsBind)
- //
- // if (res.data.data.phoneIsBind){
- // // uni.switchTab({
- // // url: '/pages/index/index',
- // // })
- // uni.navigateTo({
- // url: '/loginPages/bindAccount/index',
- // })
- // }else {
- // uni.navigateTo({
- // url: '/loginPages/bindAccount/index',
- // })
- // }
- //
- // })
- //
- // },
- // })
- console.log('App Launch')
- },
- onShow: function() {
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- }
- }
- </script>
|