移动端
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

79 行
2.1 KiB

  1. <template>
  2. <div class="tb-toolbar-container">
  3. <router-link to="/agriculturalTrusteeship/socializationIndex" class="tab" active-class="active" exact>
  4. <span class="icon"><van-icon name="shopping-cart-o" size="25" /></span>
  5. <p class="text">待处理</p>
  6. </router-link>
  7. <router-link to="/agriculturalTrusteeship/socializationProject" class="tab" active-class="active">
  8. <span class="icon"><van-icon name="shop-o" size="25" /></span>
  9. <p class="text">产品</p>
  10. </router-link>
  11. <img src="../../../static/images/agriculturalTrusteeship/socialization/footer_add.png" alt="" class="add_btn" @click="openDialog">
  12. <router-link to="/agriculturalTrusteeship/socializationBill" class="tab" active-class="active">
  13. <span class="icon"><van-icon name="bill-o" size="25" /></span>
  14. <p class="text">订单</p>
  15. </router-link>
  16. <router-link to="/agriculturalTrusteeship/socializationUser" class="tab" active-class="active">
  17. <span class="icon"><van-icon name="contact" size="25" /></span>
  18. <p class="text">我的</p>
  19. </router-link>
  20. </div>
  21. </template>
  22. <script>
  23. export default {
  24. name: "toolbar",
  25. data(){
  26. return{
  27. text:"我是子组件数据,我要发送给父组件",
  28. num:12
  29. }
  30. },
  31. methods:{
  32. openDialog(){
  33. this.$parent.openDialog(true)
  34. }
  35. },
  36. };
  37. </script>
  38. <style scoped lang="scss">
  39. .tb-toolbar-container {
  40. box-sizing: border-box;
  41. display: -webkit-box;
  42. display: -webkit-flex;
  43. display: flex;
  44. left: 0;
  45. bottom: 0;
  46. width: 100%;
  47. z-index: 1001;
  48. background-color: #fff;
  49. border-top: 1px solid #e7e7e7;
  50. border-bottom: 1px solid #f8f8f8;
  51. -webkit-box-pack: justify;
  52. /*justify-content: space-around;*/
  53. -webkit-box-align: center;
  54. align-items: center;
  55. position: fixed;
  56. padding: 10px 3%;
  57. .tab {
  58. color: #5d656b;
  59. text-align: center;
  60. width: 20%;
  61. &.active {
  62. color: #3E6CCD;
  63. }
  64. .icon {
  65. padding-bottom: 3px;
  66. }
  67. &:nth-child(4){
  68. margin-left: auto;
  69. }
  70. }
  71. .add_btn{
  72. position: absolute;
  73. left: 50%;
  74. top: 0;
  75. transform: translate(-50%,-40%);
  76. }
  77. }
  78. </style>