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.

setting.vue 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <view v-if="source=='WECHAT'">
  3. <template v-for="(col,index) in list" :key="index">
  4. <view class="title">{{col.title}}</view>
  5. <u-cell-group>
  6. <u-cell-item :title="item.title" v-for="(item,i) in col.columns" :key="i" @click="itemClick(item)"
  7. :titleStyle="titleStyle" borderBottom></u-cell-item>
  8. </u-cell-group>
  9. </template>
  10. </view>
  11. <view v-else>
  12. <template v-for="(col,index) in listALI" :key="index">
  13. <view class="title">{{col.title}}</view>
  14. <u-cell-group>
  15. <u-cell-item :title="item.title" v-for="(item,i) in col.columns" :key="i" @click="itemClick(item)"
  16. :titleStyle="titleStyle" borderBottom></u-cell-item>
  17. </u-cell-group>
  18. </template>
  19. </view>
  20. <button class="action" @click="loginOut">退出登录</button>
  21. </template>
  22. <script setup lang="ts">
  23. import { source } from "@/utils/network/difference";
  24. import { useUserStore } from '@/stores/user';
  25. import { msg, navTo } from '@/utils/utils';
  26. const userStore = useUserStore();
  27. const { loginOut } = userStore;
  28. const titleStyle = { fontSize: '28rpx', color: '#333333' };
  29. const basePath = "/subpackage/personal-center/setting/";
  30. const list = [
  31. {
  32. title: '个人信息管理',
  33. columns: [
  34. { title: '个人信息更正', path: 'personal-information/corrections', login: true },
  35. { title: '个人信息删除', path: 'information-deletion', login: true },
  36. { title: '权限管理', path: 'permission-management', login: true },
  37. // {title:'撤销权限管理',path:'revoke-permission',login:true}, //无 UI
  38. { title: '信息副本导出', path: 'info-export', login: true }, //无 UI
  39. { title: '注销账户', path: 'account-cancellation', login: true },
  40. { title: '车辆信息管理', path: 'car-information/corrections', login: true }, //无 UI
  41. { title: '收货地址管理', path: 'addressManager', login: true }, //有 UI 无界面
  42. // {title:'银行卡',path:'bank-card/bank-card',login:true},//有 UI 无界面
  43. ]
  44. },
  45. {
  46. title: '隐私',
  47. columns: [
  48. { title: '用户协议', path: 'user-agreement', login: true },//无 UI
  49. { title: '隐私政策', path: 'conceal-agreement', login: true },//无 UI
  50. { title: '风险提示告知书', path: 'risk-agreement', login: true },//无 UI
  51. { title: '个人信息收集清单', path: 'info_connect', login: true },//无 UI
  52. { title: '权限使用说明', path: 'usage-instructions', login: true }//无 UI
  53. ]
  54. },
  55. ]
  56. const listALI = [
  57. {
  58. title: '个人信息管理',
  59. columns: [
  60. { title: '收货地址管理', path: 'addressManager', login: true }, //有 UI 无界面
  61. // {title:'银行卡',path:'bank-card/bank-card',login:true},//有 UI 无界面
  62. ]
  63. },
  64. {
  65. title: '隐私',
  66. columns: [
  67. { title: '用户协议', path: 'user-agreement', login: true },//无 UI
  68. { title: '隐私政策', path: 'conceal-agreement', login: true },//无 UI
  69. { title: '风险提示告知书', path: 'risk-agreement', login: true },//无 UI
  70. { title: '个人信息收集清单', path: 'info_connect', login: true },//无 UI
  71. { title: '权限使用说明', path: 'usage-instructions', login: true }//无 UI
  72. ]
  73. },
  74. ]
  75. /* item点击 */
  76. const itemClick = (item) => {
  77. if (!item.path) {
  78. msg('找不到该界面哦!');
  79. return;
  80. }
  81. navTo(basePath + item.path, item.login);
  82. }
  83. </script>
  84. <style>
  85. page {
  86. background: #EEF7F7;
  87. padding-bottom: 100rpx;
  88. }
  89. </style>
  90. <style lang="scss" scoped>
  91. .title {
  92. font-size: 26rpx;
  93. font-family: Microsoft YaHei;
  94. font-weight: 400;
  95. color: #666666;
  96. height: 80rpx;
  97. padding-top: 30rpx;
  98. padding-left: 30rpx
  99. }
  100. .action {
  101. margin-top: 30rpx;
  102. font-size: 28rpx;
  103. font-family: Microsoft YaHei;
  104. font-weight: 400;
  105. color: #333333;
  106. line-height: 88rpx;
  107. height: 88rpx;
  108. background: #FFFFFF;
  109. box-shadow: 0rpx 4rpx 11rpx 1rpx rgba(223, 223, 223, 0.5);
  110. }
  111. </style>