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.3KB

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