您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

corrections.vue 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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"
  6. @click="itemClick(item)" :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 = "/personal-center/setting/";
  14. const list = [
  15. {
  16. title:'车辆信息管理',
  17. columns:[
  18. {title:'车辆信息变更',path:'car-information/car-manage',login:true},
  19. {title:'补传车辆证件',path:'car-information/car-card',login:true},
  20. ]
  21. },
  22. ]
  23. /* item点击 */
  24. const itemClick = (item) => {
  25. if(!item.path){
  26. msg('找不到该界面哦!');
  27. return;
  28. }
  29. if(item.path === 'phone'){
  30. msg('小程序唤起手机号更变');
  31. return;
  32. }
  33. navTo(basePath + item.path,item.login);
  34. }
  35. </script>
  36. <style>
  37. page{
  38. background: #EEF7F7;
  39. }
  40. </style>
  41. <style lang="scss" scoped>
  42. .title {
  43. font-size: 26rpx;
  44. font-family: Microsoft YaHei;
  45. font-weight: 400;
  46. color: #666666;
  47. height: 80rpx;
  48. padding-top: 30rpx;
  49. padding-left: 30rpx
  50. }
  51. </style>