tool.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view>
  3. <view class="interact-tools" style="margin-bottom: 15px">
  4. <u-cell-group :border="false">
  5. <u-cell-item title="我的订单" @click="navigateTo('/pages/mine/order/myOrder')" :title-style="titleStyle">
  6. <u-image slot="icon" width="40rpx" height="40rpx" src="/static/mine/order.png"></u-image>
  7. </u-cell-item>
  8. <u-cell-item title="我的车辆" @click="navigateTo('/pages/mine/car/index')" :title-style="titleStyle">
  9. <u-image slot="icon" width="40rpx" height="40rpx" src="/static/mine/car.png"></u-image>
  10. </u-cell-item>
  11. <u-cell-item title="意见反馈" @click="navigateTo('/pages/mine/feedback/list')" :title-style="titleStyle">
  12. <u-image slot="icon" width="40rpx" height="40rpx" src="/static/mine/feedback.png"></u-image>
  13. </u-cell-item>
  14. <u-cell-item :title="`关于`" @click="navigateTo('/pages/mine/about/index')" :border-bottom="false" :title-style="titleStyle">
  15. <u-image slot="icon" width="40rpx" height="40rpx" src="/static/mine/about.png" ></u-image>
  16. </u-cell-item>
  17. </u-cell-group>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import configs from "@/config/config";
  23. import storage from "@/utils/storage";
  24. export default {
  25. data() {
  26. return {
  27. configs,
  28. storage,
  29. hasEnterprise: false,
  30. cellClass: 'cell-class',
  31. titleStyle: {"margin-left": '20rpx'}
  32. }
  33. },
  34. mounted() {
  35. if (this.$options.filters.isLogin("auth")) {
  36. }
  37. },
  38. methods: {
  39. navigateTo(url) {
  40. uni.navigateTo({
  41. url,
  42. });
  43. },
  44. linkMsgDetail() {
  45. uni.navigateTo({
  46. url: `/pages/tabbar/home/web-view?IM=0`,
  47. });
  48. }
  49. },
  50. };
  51. </script>
  52. <style lang="scss" scoped>
  53. .interact-tools {
  54. background-color: #ffffff;
  55. border-left: none;
  56. border-right: none;
  57. margin-top: 40rpx;
  58. border-radius: 20rpx;
  59. overflow: hidden;
  60. box-shadow: 0 1px 4px 2px rgba(118, 118, 118, 0.05);
  61. .interactBox {
  62. height: 156rpx;
  63. }
  64. .interact-container {
  65. margin: 0 20rpx;
  66. background: #fff;
  67. border-radius: 20rpx;
  68. box-shadow: 0 4rpx 24rpx 0 rgba($color: #f6f6f6, $alpha: 1);
  69. .interact-item-img {
  70. width: 52rpx !important;
  71. height: 52rpx !important;
  72. // margin-bottom: !important;
  73. margin: 0 auto 6rpx auto !important;
  74. }
  75. image {
  76. width: 52rpx;
  77. height: 52rpx;
  78. margin-bottom: 6rpx;
  79. }
  80. display: flex;
  81. align-items: center;
  82. flex-wrap: wrap;
  83. text-align: center;
  84. .interact-item {
  85. font-size: $font-sm;
  86. width: 25%;
  87. height: 160rpx;
  88. padding: 30rpx;
  89. }
  90. }
  91. }
  92. .cell-class{
  93. margin-right:20rpx;
  94. }
  95. /* DarkMode 下的样式 start */
  96. @media (prefers-color-scheme: dark) {
  97. .interact-tools {
  98. background-color: #222336;
  99. }
  100. }
  101. </style>