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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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/user-change', login: true },
  22. { title: '对公账户手机号', path: 'personal-information/user-change', login: true },
  23. ]
  24. },
  25. ]
  26. const state = reactive({
  27. userType:1 //1个人 2单位
  28. })
  29. onLoad((options) => {
  30. state.userType=options.userType
  31. })
  32. /* item点击 */
  33. const itemClick = (item) => {
  34. navTo(basePath + item.path, item.login);
  35. }
  36. </script>
  37. <style>
  38. page {
  39. background: #EEF7F7;
  40. }
  41. </style>
  42. <style lang="scss" scoped>
  43. .title {
  44. font-size: 26rpx;
  45. font-family: Microsoft YaHei;
  46. font-weight: 400;
  47. color: #666666;
  48. height: 20rpx;
  49. padding-left: 30rpx
  50. }
  51. </style>