Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

choice-verification-way.vue 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 { navTo } from '@/utils/utils';
  12. import { onLoad } from "@dcloudio/uni-app"
  13. import {
  14. reactive
  15. } from "vue";
  16. const titleStyle = { fontSize: '28rpx', color: '#333333' };
  17. const basePath = "/subpackage/personal-center/setting/";
  18. const list = [
  19. {
  20. columns: [
  21. { title: 'ETC预留手机号验证', path: 'personal-information/change-phone?changeMobileType="ETC_MOBILE"', login: true },
  22. { title: '上传审核资料', path: 'personal-information/user-card-ETC?', login: true },
  23. ]
  24. },
  25. ]
  26. const state = reactive({
  27. userType:1 ,//1个人 2单位
  28. customerId:""
  29. })
  30. onLoad((options) => {
  31. state.userType=options.userType
  32. state.customerId=options.customerId
  33. })
  34. /* item点击 */
  35. const itemClick = (item) => {
  36. navTo(basePath + item.path+`customerId=${state.customerId}&userType=${state.userType}`, item.login);
  37. }
  38. </script>
  39. <style>
  40. page {
  41. background: #EEF7F7;
  42. }
  43. </style>
  44. <style lang="scss" scoped>
  45. .title {
  46. font-size: 26rpx;
  47. font-family: Microsoft YaHei;
  48. font-weight: 400;
  49. color: #666666;
  50. height: 20rpx;
  51. padding-left: 30rpx
  52. }
  53. </style>