铝交易,微信公众号
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.

115 lines
2.6 KiB

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