| | |
| | | <template>
|
| | | <view>
|
| | |
|
| | | <myTabbar :index="1" />
|
| | | </view>
|
| | | </template>
|
| | |
|
| | | <script>
|
| | | import myTabbar from "@/components/myTabber.vue" |
| | | |
| | | export default {
|
| | | components: {
|
| | | myTabbar
|
| | | },
|
| | | data() {
|
| | | return {
|
| | |
|
| | | };
|
| | | },
|
| | | onLoad() { |
| | | uni.hideTabBar()
|
| | | // uni.login({
|
| | | // success: data => {
|
| | | // this.wxLogin(data.code)
|
| | | // },
|
| | | // fail: err => {
|
| | | // uni.$u.toast(err)
|
| | | // }
|
| | | // })
|
| | | },
|
| | | methods: {
|
| | | |
| | | // wxLogin(code) {
|
| | | // wxEmpower({code})
|
| | | // .then(res => {
|
| | | // this.openId = res.openid
|
| | | // if (res.userInfo) {
|
| | | // this.$store.commit('SETTOKEN', res.userInfo.token)
|
| | | // this.$store.commit('SETUSERINFO', res.userInfo)
|
| | | // uni.navigateTo({
|
| | | // url:'/pages/projectList/projectList'
|
| | | // })
|
| | | // } |
| | | // })
|
| | | // .catch(err => {
|
| | | // uni.$u.toast(err)
|
| | | // })
|
| | | // }
|
| | | }
|
| | | }
|
| | | </script>
|
| | |
|
| | | <style lang="scss">
|
| | |
|
| | | </style> |