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

choice-verification-way.vue 1.7KB

10 个月前
10 个月前
10 个月前
10 个月前
10 个月前
10 个月前
10 个月前
10 个月前
10 个月前
10 个月前
10 个月前
10 个月前
10 个月前
10 个月前
10 个月前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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', 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. duigong:"2"//1 单位对公 2 用户或者单位etc
  30. })
  31. onLoad((options) => {
  32. console.log("options",options)
  33. state.userType=options.userType
  34. state.customerId=options.customerId
  35. state.duigong=options.duigong
  36. })
  37. /* item点击 */
  38. const itemClick = (item) => {
  39. if(state.userType==1 && state.duigong=='2'){
  40. navTo(basePath + item.path+`?customerId=${state.customerId}&userType=${state.userType}&changeMobileType=ETC_MOBILE`, item.login);
  41. }else{
  42. navTo(basePath + item.path+`?customerId=${state.customerId}&userType=${state.userType}&changeMobileType=ENTERPRISE_ACCOUNT_MOBILE`, item.login);
  43. }
  44. }
  45. </script>
  46. <style>
  47. page {
  48. background: #EEF7F7;
  49. }
  50. </style>
  51. <style lang="scss" scoped>
  52. .title {
  53. font-size: 26rpx;
  54. font-family: Microsoft YaHei;
  55. font-weight: 400;
  56. color: #666666;
  57. height: 20rpx;
  58. padding-left: 30rpx
  59. }
  60. </style>