建材商城系统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.

114 lines
2.4 KiB

6 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", text: `切换账号`, rightIcon: ">"},
  37. ]
  38. },
  39. {
  40. title: `系统设置`,
  41. itemList: [
  42. {leftIcon: "../static/center/1.svg", text: `清理缓存`, rightIcon: ">"},
  43. {leftIcon: "../static/center/2.svg", text: `版本更新`, rightIcon: ">"},
  44. {leftIcon: "../static/center/2.svg", text: `退出登录`, rightIcon: ">"},
  45. ]
  46. },
  47. ],
  48. }
  49. },
  50. methods: {
  51. tapItem(item, index) {
  52. }
  53. },
  54. }
  55. </script>
  56. <style scoped lang="scss">
  57. .page {
  58. background-color: #FFF;
  59. height: 100vh;
  60. .frame {
  61. padding: 40rpx;
  62. .content {
  63. margin-bottom: 40rpx;
  64. .title {
  65. font-size: 30rpx;
  66. color: #b0b0b0;
  67. }
  68. .item {
  69. display: flex;
  70. justify-content: space-between;
  71. align-items: center;
  72. padding: 20rpx 40rpx;
  73. .key {
  74. display: flex;
  75. justify-content: center;
  76. align-items: center;
  77. color: #333333;
  78. font-size: 32rpx;
  79. .img {
  80. width: 40rpx;
  81. height: 40rpx;
  82. }
  83. .text {
  84. margin-left: 20rpx;
  85. }
  86. }
  87. .value {
  88. color: #999999;
  89. font-size: 36rpx;
  90. }
  91. }
  92. }
  93. }
  94. }
  95. </style>