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.

corrections.vue 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <template v-for="(col,index) in list" :key="index">
  3. <view class="title">{{col.title}}</view>
  4. <u-cell-group>
  5. <u-cell-item :title="item.title" v-for="(item,i) in col.columns" :key="i" @click="itemClick(item)"
  6. :titleStyle="titleStyle"></u-cell-item>
  7. </u-cell-group>
  8. </template>
  9. </template>
  10. <script setup lang="ts">
  11. import { msg, navTo } from '@/utils/utils';
  12. const titleStyle = { fontSize: '28rpx', color: '#333333' };
  13. const basePath = "/subpackage/personal-center/setting/";
  14. const list = [
  15. {
  16. title: '账号信息',
  17. columns: [
  18. { title: '账号手机号修改', path: 'change-phone', login: true },
  19. { title: '修改EC预留手机号', path: 'personal-information/user-change-list?type=1', login: true },
  20. ]
  21. },
  22. {
  23. title: '基础信息',
  24. columns: [
  25. { title: '用户信息变更', path: 'personal-information/user-change-list?type=2', login: true },
  26. // {title:'补传身份证',path:'personal-information/user-card',login:true},
  27. ]
  28. },
  29. ]
  30. /* item点击 */
  31. const itemClick = (item) => {
  32. if (!item.path) {
  33. msg('找不到该界面哦!');
  34. return;
  35. }
  36. if (item.path === 'phone') {
  37. msg('小程序唤起手机号更变');
  38. return;
  39. }
  40. navTo(basePath + item.path, item.login);
  41. }
  42. </script>
  43. <style>
  44. page {
  45. background: #EEF7F7;
  46. }
  47. </style>
  48. <style lang="scss" scoped>
  49. .title {
  50. font-size: 26rpx;
  51. font-family: Microsoft YaHei;
  52. font-weight: 400;
  53. color: #666666;
  54. height: 80rpx;
  55. padding-top: 30rpx;
  56. padding-left: 30rpx
  57. }
  58. </style>