Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

memoryCardApplication.vue 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <div>
  3. <custom-header :back="false" title="申办校验"></custom-header>
  4. <div style="padding: 20rpx 0">
  5. <u-button type="primary">月落</u-button>
  6. <u-upload :customBtn="true" action="#" ref='uploadRef' :auto-upload="false" max-count='1' :max-size="2 * 1024 * 1024">
  7. <template v-slot:addBtn>
  8. <u-image width="75rpx" height="90rpx"
  9. src="http://192.168.100.63:8087/default-bucket//image/applyCard/renxiang.png"></u-image>
  10. </template>
  11. </u-upload>
  12. <!-- <form-builder-vue :formData="formData" :config="config" @submit="submit"
  13. @bindPickerChange='bindPickerChange'></form-builder-vue> -->
  14. </div>
  15. </div>
  16. </template>
  17. <script setup lang='ts'>
  18. import CustomHeader from '@/components/CustomHeader.vue';
  19. import formBuilderVue from '@/components/form-builder/form-builder-vue3'
  20. import {
  21. reactive,
  22. ref
  23. } from 'vue'
  24. import {
  25. onLoad
  26. } from '@dcloudio/uni-app'
  27. // import {
  28. // request
  29. // } from '../../static/js/network/request'
  30. //获取页面配置
  31. let uploadRef = ref(null)
  32. onLoad((opin) => {
  33. // 获取页面配置
  34. // request('ac8756cc31eb4816b8eaeb71907ff9c1', {
  35. // data: {
  36. // qdOrderNo: 'qddd123456'
  37. // }
  38. // }).then((res) => {
  39. // let data = JSON.parse(res.bizContent)
  40. // // 处理数据
  41. // let tableConfig = JSON.parse(data.config.tableConfig)
  42. // tableConfig.forEach(item => {
  43. // if (item.type === "4") {
  44. // let itemData = item.itemData
  45. // if (itemData) {
  46. // item.itemData = JSON.parse(itemData)
  47. // }
  48. // }
  49. // })
  50. // formData.value = tableConfig
  51. // console.log('输出内容', formData.value, data)
  52. // jumpPage.value = data.jumpPage
  53. // })
  54. })
  55. const jumpPage = ref('')
  56. let config = ({
  57. titleWidth: 160,
  58. submitName: '下一步'
  59. })
  60. let formData = ref([{
  61. 'title': '车牌号',
  62. 'titleShow': true,
  63. 'type': 9,
  64. 'vertical': 2,
  65. 'value': 'vehiclePlate',
  66. 'itemKey': 'name',
  67. 'required': false,
  68. 'itemData': []
  69. }, {
  70. 'title': '车牌颜色',
  71. 'titleShow': true,
  72. 'type': 13,
  73. 'vertical': 2,
  74. 'value': 'vehicleColor',
  75. 'itemKey': 'name',
  76. 'required': false,
  77. 'itemData': []
  78. }, {
  79. 'title': '手机号',
  80. 'titleShow': true,
  81. 'type': 2,
  82. 'inputType': 'tel',
  83. 'value': 'tel',
  84. 'required': false,
  85. 'maxlength': 11
  86. }, {
  87. 'title': '车辆类型',
  88. 'titleShow': true,
  89. 'type': 4,
  90. 'required': false,
  91. 'value': 'vehicleKind',
  92. 'itemKey': 'name',
  93. 'itemData': []
  94. }])
  95. // //车辆颜色 Index('车牌颜色', formData)
  96. // getLicensePlateColor(2, (res: any) => {
  97. // formData[Index('车牌颜色', formData)].itemData = res
  98. // })
  99. // //车型
  100. // getLicensePlateColor(3, (res: any) => {
  101. // formData[Index('车辆类型', formData)].itemData = res
  102. // })
  103. const bindPickerChange = () => {
  104. console.log(formData.value)
  105. }
  106. //提交
  107. function submit(item: any) {
  108. // uni.navigateTo({
  109. // url: jumpPage.value||"pages/userInfoUploading/userInfoUploading",
  110. // animationType: 'pop-in',
  111. // animationDuration: 500
  112. // })
  113. uni.navigateTo({
  114. url: "/pages/mailingAddress/mailingAddress",
  115. animationType: 'pop-in',
  116. animationDuration: 500
  117. })
  118. }
  119. </script>
  120. <style lang='scss' scoped>
  121. .slot-btn {
  122. width: 329rpx;
  123. height: 140rpx;
  124. display: flex;
  125. justify-content: center;
  126. align-items: center;
  127. background: rgb(244, 245, 246);
  128. border-radius: 10rpx;
  129. }
  130. .slot-btn__hover {
  131. background-color: rgb(235, 236, 238);
  132. }
  133. </style>