jiangping
2023-10-26 ea87c908fb6cdfc3e227a584a53e6730efb8262a
minipro_standard/pages/workbench/workbench.vue
@@ -6,7 +6,7 @@
               <span>{{row.label}}</span>
            </view>
            <div class="menu_list_list">
               <view class="menu_list_item" v-for="item in row.children" :key="item.id" @click="jump(item)">
               <view class="menu_list_item" v-for="item in row.children" :key="item.id" @click="jump(item.urlSec)">
                  <image :src="item.icon" mode="widthFix" />
                  <span>{{item.label}}</span>
               </view>
@@ -28,71 +28,22 @@
      components: {
         myTabbar
      },
      computed: mapState([
         'Menu'
      ]),
      onReady() {
         console.log(this.Menu)
      computed: {
         ...mapState(['Menu'])
      },
      data() {
         return {
            list: [
               {
                  icon: require('@/static/logo@2x.png'),
                  label: '测试'
               },
               {
                  icon: require('@/static/logo@2x.png'),
                  label: '测试'
               },
               {
                  icon: require('@/static/logo@2x.png'),
                  label: '测试'
               },
               {
                  icon: require('@/static/logo@2x.png'),
                  label: '测试'
               },
               {
                  icon: require('@/static/logo@2x.png'),
                  label: '测试'
               },
               {
                  icon: require('@/static/logo@2x.png'),
                  label: '测试'
               }
            ]
         };
      },
      onLoad() {
         this.$store.dispatch('getUpcomingNum')
         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)
         //       })
         // }
         jump(url) {
            uni.navigateTo({ url });
         }
      }
   }
</script>