me.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <view class="content">
  3. <view class="border-customl">
  4. <view class="border-boke" @click="Waereroter">
  5. <view class="sawda">
  6. <view class="">
  7. <uni-icons type="list" color="#ff0505" size="40"></uni-icons>
  8. </view>
  9. <view class="">
  10. <text style="margin-top: 5px">设备列表</text>
  11. </view>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. import utils from "@/utils/title.js";
  19. export default {
  20. components: {},
  21. data() {
  22. return {
  23. dynamicTitle: "日常管理",
  24. };
  25. },
  26. onLoad(option) {},
  27. created() {
  28. console.log("进");
  29. uni.setNavigationBarTitle({
  30. title: this.dynamicTitle,
  31. success: () => {
  32. console.log("修改标题成功");
  33. },
  34. fail: () => {
  35. console.log("修改标题失败");
  36. },
  37. complete: () => {
  38. console.log("修改标题结束__UNI__E1B5061");
  39. },
  40. });
  41. },
  42. mounted() {},
  43. methods: {
  44. Waereroter(url) {
  45. uni.navigateTo({
  46. url: "/pages/index/me/task/task",
  47. });
  48. },
  49. },
  50. };
  51. </script>
  52. <style scoped>
  53. /deep/.u-icon--right {
  54. flex-direction: row;
  55. align-items: center;
  56. justify-content: center;
  57. }
  58. </style>
  59. <style scoped lang="scss">
  60. .content {
  61. // padding: 15px;
  62. .border-customl {
  63. display: flex;
  64. flex-wrap: wrap;
  65. .border-boke {
  66. border: 1px solid #e5e5e5;
  67. width: 30%;
  68. height: 6rem;
  69. background: white;
  70. justify-content: center;
  71. display: flex;
  72. align-items: center;
  73. .sawda {
  74. position: absolute;
  75. display: flex;
  76. text-align: center;
  77. flex-direction: column;
  78. }
  79. }
  80. }
  81. }
  82. </style>