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.

choice-phone.vue 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. 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/choice-verification-way?', login: true },
  22. { title: '对公账户手机号', path: 'personal-information/choice-verification-way?duigong="1"', 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+`userType=${state.userType}&customerId=${state.customerId}`, 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>