移动端
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

law_footer.vue 1.2 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <div>
  3. <router-view />
  4. <van-tabbar route :placeholder="true" >
  5. <van-tabbar-item replace to="/lawEnforcement" icon="wap-home-o">首页</van-tabbar-item>
  6. <van-tabbar-item replace to="/lawEnforcement/productsList" icon="shop-o">农用品</van-tabbar-item>
  7. <van-tabbar-item replace to="/lawEnforcement/caseList" icon="apps-o">案件</van-tabbar-item>
  8. <van-tabbar-item replace to="/lawEnforcement/user" icon="contact">我的</van-tabbar-item>
  9. </van-tabbar>
  10. </div>
  11. </template>
  12. <script>
  13. import { getUserProfile } from "@/api/lawEnforcement/index";
  14. export default {
  15. name: "law",
  16. data() {
  17. return {
  18. active: 0,
  19. tabShow: true,
  20. };
  21. },
  22. created() {
  23. // v-if="tabShow"
  24. // getUserProfile().then(response => {
  25. // if (response.data.roles.length < 1){
  26. // this.tabShow = false;
  27. // }else{
  28. // response.data.roles.forEach(res=>{
  29. // if(res.roleKey == 'personal_user' || res.roleKey == 'company_user'){
  30. // this.tabShow = false;
  31. // }else{
  32. // this.tabShow = true;
  33. // }
  34. // })
  35. // }
  36. // });
  37. },
  38. methods: {
  39. },
  40. };
  41. </script>
  42. <style scoped >
  43. >>> .van-tabbar{
  44. height:1.5rem;
  45. }
  46. </style>