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

137 lines
3.7 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 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. import {navigateTo} from "@/utils/utils";
  35. export default {
  36. name: "systemSet",
  37. components: {ChangeLanguage, tabber, topbar},
  38. data() {
  39. return {
  40. list: [
  41. {
  42. title: `${this.$t('pageTitle.accountSetting')}`,
  43. itemList: [
  44. // text: `${this.$t('pageTitle.switchAccount')}`
  45. {leftIcon: "../../static/image/center/1.svg", text: `${this.$t('pageTitle.switchAccount')}`, rightIcon: ">"},
  46. {leftIcon: "../../static/image/center/2.svg", text: `${this.$t('pageTitle.changePassword')}`, rightIcon: ">"},
  47. {leftIcon: "../../static/image/center/3.svg", text: this.$t('pageTitle.logout'), rightIcon: ">"},
  48. {leftIcon: "../../static/image/center/4.svg", text: this.$t('pageTitle.addressList'), rightIcon: ">",toUrl:'/pages_order/center/addressListManage'},
  49. ]
  50. },
  51. {
  52. title: `${this.$t('pageTitle.systemSetting')}`,
  53. itemList: [
  54. {leftIcon: "../../static/image/center/1.svg", text: `${this.$t('pageTitle.languageSwitch')}`, rightIcon: ">"},
  55. {leftIcon: "../../static/image/center/2.svg", text: `${this.$t('pageTitle.versionUpdate')}`, rightIcon: ">"},
  56. {leftIcon: "../../static/image/center/3.svg", text: this.$t('pageTitle.clearCache'), rightIcon: ">"},
  57. ]
  58. },
  59. {
  60. title: `${this.$t('pageTitle.identitySetting')}`,
  61. itemList: [
  62. {leftIcon: "../../static/image/center/1.svg", text: this.$t('pageTitle.switchIdentity'), rightIcon: ">"},
  63. ]
  64. }
  65. ],
  66. }
  67. },
  68. methods: {
  69. tapItem(item, index) {
  70. if (item.text === this.$t('pageTitle.languageSwitch')) {
  71. this.$refs.changeLanguage.open();
  72. }
  73. uni.navigateTo({
  74. url: item.toUrl
  75. })
  76. }
  77. },
  78. }
  79. </script>
  80. <style scoped lang="scss">
  81. .page {
  82. background-color: #FFF;
  83. height: 100vh;
  84. .frame {
  85. padding: 40rpx;
  86. .content {
  87. margin-bottom: 40rpx;
  88. .title {
  89. font-size: 30rpx;
  90. color: #b0b0b0;
  91. }
  92. .item {
  93. display: flex;
  94. justify-content: space-between;
  95. align-items: center;
  96. padding: 20rpx 40rpx;
  97. .key {
  98. display: flex;
  99. justify-content: center;
  100. align-items: center;
  101. color: #333333;
  102. font-size: 32rpx;
  103. .img {
  104. width: 40rpx;
  105. height: 40rpx;
  106. }
  107. .text {
  108. margin-left: 20rpx;
  109. }
  110. }
  111. .value {
  112. color: #999999;
  113. font-size: 36rpx;
  114. }
  115. }
  116. }
  117. }
  118. }
  119. </style>