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

132 lines
3.4 KiB

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
  1. <template>
  2. <view class="page">
  3. <navbar :title="$t('pageTitle.systemSettings')" 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. {{ item.rightIcon }}
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <!-- 语言切换 -->
  23. <!--<view style="padding: 20rpx;"-->
  24. <!-- @click="$refs.changeLanguage.open()">-->
  25. <!-- {{ $t('pages.index.index.language') }}-->
  26. <!--</view>-->
  27. <changeLanguage ref="changeLanguage"/>
  28. </view>
  29. </template>
  30. <script>
  31. import topbar from "@/components/base/topbar.vue";
  32. import tabber from "@/components/base/tabbar.vue";
  33. import ChangeLanguage from "@/components/base/changeLanguage.vue";
  34. export default {
  35. name: "systemSet",
  36. components: {ChangeLanguage, tabber, topbar},
  37. data() {
  38. return {
  39. list: [
  40. {
  41. title: `${this.$t('pageTitle.accountSetting')}`,
  42. itemList: [
  43. // text: `${this.$t('pageTitle.switchAccount')}`
  44. {leftIcon: "../static/center/1.svg", text: `${this.$t('pageTitle.switchAccount')}`, rightIcon: ">"},
  45. {leftIcon: "../static/center/2.svg", text: `${this.$t('pageTitle.forgotPasswordPage')}`, rightIcon: ">"},
  46. {leftIcon: "../static/center/2.svg", text: this.$t('pageTitle.logout'), rightIcon: ">"},
  47. ]
  48. },
  49. {
  50. title: `${this.$t('pageTitle.systemSetting')}`,
  51. itemList: [
  52. {leftIcon: "../static/center/1.svg", text: `${this.$t('pageTitle.languageSwitch')}`, rightIcon: ">"},
  53. {leftIcon: "../static/center/2.svg", text: `${this.$t('pageTitle.versionUpdate')}`, rightIcon: ">"},
  54. {leftIcon: "../static/center/2.svg", text: this.$t('pageTitle.clearCache'), rightIcon: ">"},
  55. ]
  56. },
  57. {
  58. title: `${this.$t('pageTitle.identitySetting')}`,
  59. itemList: [
  60. {leftIcon: "../static/center/2.svg", text: this.$t('pageTitle.switchIdentity'), rightIcon: ">"},
  61. ]
  62. }
  63. ],
  64. }
  65. },
  66. methods: {
  67. tapItem(item, index) {
  68. if (item.text === this.$t('pageTitle.languageSwitch')) {
  69. this.$refs.changeLanguage.open();
  70. }
  71. }
  72. },
  73. }
  74. </script>
  75. <style scoped lang="scss">
  76. .page {
  77. background-color: #FFF;
  78. height: 100vh;
  79. .frame {
  80. padding: 40rpx;
  81. .content {
  82. margin-bottom: 40rpx;
  83. .title {
  84. font-size: 30rpx;
  85. color: #b0b0b0;
  86. }
  87. .item {
  88. display: flex;
  89. justify-content: space-between;
  90. align-items: center;
  91. padding: 20rpx 40rpx;
  92. .key {
  93. display: flex;
  94. justify-content: center;
  95. align-items: center;
  96. color: #333333;
  97. font-size: 32rpx;
  98. .img {
  99. width: 40rpx;
  100. height: 40rpx;
  101. }
  102. .text {
  103. margin-left: 20rpx;
  104. }
  105. }
  106. .value {
  107. color: #999999;
  108. font-size: 36rpx;
  109. }
  110. }
  111. }
  112. }
  113. }
  114. </style>