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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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: '/subpackage/personal-center/vehicle-information', 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. //uni.navigateTo({
  57. // url: '/subpackage/service/equityList/equityList?singleEquityId=' + singId.singleEquityId +
  58. // '&couponAgencyType=' + singId.couponAgencyType,
  59. // })
  60. const listALI = [
  61. {
  62. title: '个人信息管理',
  63. columns: [
  64. { title: '收货地址管理', path: 'addressManager', login: true }, //有 UI 无界面
  65. // {title:'银行卡',path:'bank-card/bank-card',login:true},//有 UI 无界面
  66. ]
  67. },
  68. {
  69. title: '隐私',
  70. columns: [
  71. { title: '用户协议', path: 'user-agreement', login: true },//无 UI
  72. { title: '隐私政策', path: 'conceal-agreement', login: true },//无 UI
  73. { title: '风险提示告知书', path: 'risk-agreement', login: true },//无 UI
  74. { title: '个人信息收集清单', path: 'info_connect', login: true },//无 UI
  75. { title: '权限使用说明', path: 'usage-instructions', login: true }//无 UI
  76. ]
  77. },
  78. ]
  79. /* item点击 */
  80. const itemClick = (item) => {
  81. console.log("item", item)
  82. if (!item.path) {
  83. msg('找不到该界面哦!');
  84. return;
  85. }
  86. if (item.title == '车辆信息管理') {
  87. navTo(item.path, item.login);
  88. } else {
  89. navTo(basePath + item.path, item.login);
  90. }
  91. }
  92. </script>
  93. <style>
  94. page {
  95. background: #EEF7F7;
  96. padding-bottom: 100rpx;
  97. }
  98. </style>
  99. <style lang="scss" scoped>
  100. .title {
  101. font-size: 26rpx;
  102. font-family: Microsoft YaHei;
  103. font-weight: 400;
  104. color: #666666;
  105. height: 80rpx;
  106. padding-top: 30rpx;
  107. padding-left: 30rpx
  108. }
  109. .action {
  110. margin-top: 30rpx;
  111. font-size: 28rpx;
  112. font-family: Microsoft YaHei;
  113. font-weight: 400;
  114. color: #333333;
  115. line-height: 88rpx;
  116. height: 88rpx;
  117. background: #FFFFFF;
  118. box-shadow: 0rpx 4rpx 11rpx 1rpx rgba(223, 223, 223, 0.5);
  119. }
  120. </style>