jiangping
2023-10-16 9ab4955166b7b1370fc2a49b152353241ca9e64a
minipro_standard/pages/mine/mine.vue
@@ -1,74 +0,0 @@
<template>
   <view>
      <myTabbar :index="2" />
   </view>
</template>
<script>
   import myTabbar from "@/components/myTabber.vue"
   export default {
      components: {
         myTabbar
      },
      data() {
         return {
            form: {
               account: '',
               password: '',
            },
            logining: false,
            openId: ''
         }
      },
      onLoad() {
         // uni.login({
         //    success: data => {
         //       this.wxLogin(data.code)
         //    },
         //    fail: err => {
         //       uni.$u.toast(err)
         //    }
         // })
      },
      methods: {
         // loginAction() {
         //    if (!this.form.account || !this.form.password) {
         //       uni.$u.toast('账号或者密码不能为空')
         //    }
         //    this.logining = true
         //    coustomLogin({...this.form, openid: this.openId})
         //       .then(res => {
         //          this.$store.commit('SETTOKEN', res.token)
         //          this.$store.commit('SETUSERINFO', res)
         //          uni.navigateTo({
         //             url:'/pages/projectList/projectList'
         //          })
         //       })
         //       .finally(() => {
         //          this.logining = false
         //       })
         // },
         // 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" scoped>
</style>