建材商城系统20241014
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
2.2 KiB

7 months ago
7 months ago
7 months ago
7 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title='系统设置' leftClick @leftClick="$utils.navigateBack" />
  4. <view class="frame">
  5. <view class="content" v-for="(item, index) in list" :key="index">
  6. <view class="title">{{ item.title }}</view>
  7. <view class="item" v-for="(item2, index) in item.itemList" :key="index" @click="tapItem(item2, index)">
  8. <view class="key">
  9. <view class="img">
  10. <img :src="item2.leftIcon" style="width: 100%; height: 100%;" />
  11. </view>
  12. <view class="text">
  13. {{ item2.text }}
  14. </view>
  15. </view>
  16. <view class="value">
  17. {{ item2.rightIcon }}
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. // import topbar from "@/components/base/topbar.vue";
  26. // import tabber from "@/components/base/tabbar.vue";
  27. export default {
  28. name: "systemSet",
  29. // components: {tabber, topbar},
  30. data() {
  31. return {
  32. list: [
  33. {
  34. title: `账号设置`,
  35. itemList: [{
  36. leftIcon: "../static/center/1.svg",
  37. text: `切换账号`,
  38. rightIcon: ">"
  39. }, ]
  40. },
  41. {
  42. title: `系统设置`,
  43. itemList: [{
  44. leftIcon: "../static/center/1.svg",
  45. text: `清理缓存`,
  46. rightIcon: ">"
  47. },
  48. {
  49. leftIcon: "../static/center/2.svg",
  50. text: `版本更新`,
  51. rightIcon: ">"
  52. },
  53. {
  54. leftIcon: "../static/center/2.svg",
  55. text: `退出登录`,
  56. rightIcon: ">"
  57. },
  58. ]
  59. },
  60. ],
  61. }
  62. },
  63. methods: {
  64. tapItem(item, index) {
  65. }
  66. },
  67. }
  68. </script>
  69. <style scoped lang="scss">
  70. .page {
  71. background-color: #FFF;
  72. height: 100vh;
  73. .frame {
  74. padding: 40rpx;
  75. .content {
  76. margin-bottom: 40rpx;
  77. .title {
  78. font-size: 30rpx;
  79. color: #b0b0b0;
  80. }
  81. .item {
  82. display: flex;
  83. justify-content: space-between;
  84. align-items: center;
  85. padding: 20rpx 40rpx;
  86. .key {
  87. display: flex;
  88. justify-content: center;
  89. align-items: center;
  90. color: #333333;
  91. font-size: 32rpx;
  92. .img {
  93. width: 40rpx;
  94. height: 40rpx;
  95. }
  96. .text {
  97. margin-left: 20rpx;
  98. }
  99. }
  100. .value {
  101. color: #999999;
  102. font-size: 36rpx;
  103. }
  104. }
  105. }
  106. }
  107. }
  108. </style>