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.

etc-activation.vue 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896
  1. <template>
  2. <view class="container">
  3. <!-- 主要内容 -->
  4. <view class="content">
  5. <!-- 基本信息 -->
  6. <view class="info-section">
  7. <view class="section-title">基本信息</view>
  8. <!-- 激活类型选择 -->
  9. <view class="activation-type">
  10. <view
  11. :class="['type-item', { active: activationType === 'self' }]"
  12. @click="activationType = 'self'"
  13. >
  14. 本人激活
  15. </view>
  16. <view
  17. :class="['type-item', { active: activationType === 'other' }]"
  18. @click="activationType = 'other'"
  19. >
  20. 非本人激活
  21. </view>
  22. </view>
  23. <!-- 表单字段 -->
  24. <view v-if="activationType === 'other'" class="form-item car-number-row">
  25. <view class="form-label">车牌号</view>
  26. <car-number-input
  27. v-model="formData.carNumber"
  28. @numberInputResult="carNumberInputResult"
  29. inputColor="#ECF1F4"
  30. style="width: 100%;"
  31. />
  32. </view>
  33. <view v-else class="form-item">
  34. <view class="form-label">车牌号</view>
  35. <view class="form-input">
  36. <picker
  37. class="picker-disabled--test"
  38. @change="bindPickerChange"
  39. :value="formData.vehicleIndex"
  40. :range="vehicles"
  41. range-key="vehiclePlate">
  42. <view class="uni-input">
  43. <view class="text">{{vehicles[formData.vehicleIndex]? vehicles[formData.vehicleIndex].vehiclePlate : '请选择车牌号'}}</view>
  44. <view class="arrow-down">▼</view>
  45. </view>
  46. <!-- <view class="uni-input">{{vehicles[formData.vehicleIndex]?.vehiclePlate}}</view> -->
  47. </picker>
  48. </view>
  49. </view>
  50. <view class="form-item">
  51. <view class="form-label">车牌颜色</view>
  52. <view class="form-input">
  53. <picker
  54. class="picker-disabled--test"
  55. :disabled="activationType == 'self'"
  56. @change="bindColorPickerChange"
  57. :value="formData.colorIndex"
  58. :range="getDicWithType('VEHICLE_COLOR_TYPE')"
  59. range-key="name">
  60. <view class="uni-input">
  61. <view class="text">{{formData.colorName ? formData.colorName : '请选择车辆颜色'}}</view>
  62. <view class="arrow-down">▼</view>
  63. </view>
  64. <!-- <view class="uni-input">{{vehicles[formData.vehicleIndex]?.vehiclePlate}}</view> -->
  65. </picker>
  66. </view>
  67. </view>
  68. <!-- <view class="form-input" >
  69. <view class="uni-list-cell-db">
  70. <picker class="picker-selector--test" @change="bindPickerChange" :value="formData.vehicleIndex" :range="vehicles" range-key="name">
  71. <view class="uni-input picker-selector--value">{{vehicles[formData.vehicleIndex]}}</view>
  72. </picker>
  73. </view>
  74. </view> -->
  75. <!-- </view> -->
  76. <!-- <view class="form-item">
  77. <view class="form-label">车牌颜色</view>
  78. <view class="form-input" @click="selectCarColor">
  79. <text :class="['input-text', { placeholder: !formData.carColor }]">
  80. {{ formData.carColor || '请选择车牌颜色' }}
  81. </text>
  82. <view class="arrow-down">▼</view>
  83. </view>
  84. </view> -->
  85. <view class="form-item">
  86. <view class="form-label">申请手机号</view>
  87. <input
  88. class="form-input-text"
  89. placeholder="请输入手机号码"
  90. v-model="formData.phoneNumber"
  91. disabled="true"
  92. type="number"
  93. maxlength="11"
  94. />
  95. </view>
  96. <!-- 非本人激活时显示验证码 -->
  97. <view v-if="activationType === 'other'" class="form-item">
  98. <view class="form-label">短信验证码</view>
  99. <view class="form-input" style="display:flex;align-items:center;">
  100. <input
  101. class="form-input-text"
  102. placeholder="请输入验证码"
  103. v-model="formData.smsCode"
  104. maxlength="6"
  105. style="flex:1;"
  106. />
  107. <button class="send-code-btn" @click="sendCode" :disabled="waitTime>0">
  108. {{ waitTime > 0 ? waitTime + 's后重试' : '发送验证码' }}
  109. </button>
  110. </view>
  111. </view>
  112. </view>
  113. <!-- 上传照片 -->
  114. <view class="upload-section" v-if="formData.activeType == '2'">
  115. <view class="section-title">上传照片</view>
  116. <view class="picture-wrapper" @click="cardFileImageUpdate(100)">
  117. <view class="bg">
  118. <view class="">
  119. <view class="name"> 行驶证主页 </view>
  120. <view class="value"> 上传行驶证的主页 </view>
  121. <view class="tip">
  122. <view class="tip-value"> 拍摄规范 </view>
  123. </view>
  124. </view>
  125. <image v-if="!formData.vehPosImgUrl" class="icon" :src="`${$imgUrl}issuance/xz.png`"
  126. :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}">
  127. </image>
  128. <image v-else class="icon" :src="imgPathMontage(formData.vehPosImgUrlName)"
  129. :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}"></image>
  130. </view>
  131. </view>
  132. <view class="picture-wrapper" @click="cardFileImageUpdate(101)">
  133. <view class="bg">
  134. <view class="">
  135. <view class="name"> 行驶证副页 </view>
  136. <view class="value"> 上传行驶证的副页 </view>
  137. <view class="tip">
  138. <view class="tip-value"> 拍摄规范 </view>
  139. </view>
  140. </view>
  141. <image v-if="!formData.vehNegImgUrl" class="icon" :src="`${$imgUrl}issuance/xf.png`"
  142. :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}">
  143. </image>
  144. <image v-else class="icon" :src="imgPathMontage(formData.vehNegImgUrlName)"
  145. :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}"></image>
  146. </view>
  147. </view>
  148. <view class="picture-wrapper" @click="cardFileImageUpdate(102)">
  149. <view class="bg">
  150. <view class="">
  151. <view class="name"> 上传激活车辆45度照 </view>
  152. <view class="value"> 上传车辆45度角照片 </view>
  153. <view class="tip">
  154. <view class="tip-value"> 拍摄规范 </view>
  155. </view>
  156. </view>
  157. <image v-if="!formData.vehBodyUrl" class="icon" :src="`${$imgUrl}issuance/chetou.png`"
  158. :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}">
  159. </image>
  160. <image v-else class="icon" :src="imgPathMontage(formData.vehBodyUrlName)"
  161. :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}"></image>
  162. </view>
  163. </view>
  164. <view class="picture-wrapper" @click="cardFileImageUpdate(103)">
  165. <view class="bg">
  166. <view class="">
  167. <view class="name"> 上传ETC设备安装照 </view>
  168. <view class="value"> 上传ETC设备安装位置照片 </view>
  169. <view class="tip">
  170. <view class="tip-value"> 拍摄规范 </view>
  171. </view>
  172. </view>
  173. <image v-if="!formData.deviceImageUrl" class="icon" :src="``"
  174. :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}">
  175. </image>
  176. <image v-else class="icon" :src="imgPathMontage(formData.deviceImageName)"
  177. :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}"></image>
  178. </view>
  179. </view>
  180. </view>
  181. </view>
  182. <!-- 底部按钮 -->
  183. <view class="bottom-button" @click="nextStep">
  184. 下一步
  185. </view>
  186. <uploadImg :isTakePhotoModeShow="isTakePhotoModeShow" :phoneType="choiceIndex" @close="close"
  187. @ocrResult="ocrResult">
  188. </uploadImg>
  189. </view>
  190. </template>
  191. <script setup lang="ts">
  192. import { ref, reactive, onMounted, onUnmounted } from 'vue'
  193. import { onLoad } from '@dcloudio/uni-app'
  194. import carNumberInput from './components/car-number-input.vue'
  195. import { requestNew } from "@/utils/network/request.js";
  196. import {
  197. queryVehicle, sendMessage
  198. } from "@/utils/network/api.js";
  199. import {
  200. getCodeName, getDicWithType
  201. } from "@/datas/queryKey.js";
  202. import { msg, strReplace, imgPathMontage, hasLogin, uploadFile, compressImage, chooseImageCompress, navTo } from "@/utils/utils";
  203. import uploadImg from '@/components/uploadOcr';
  204. import useOrderSkip from "@/composables/order/useOrderSkip";
  205. //办理订单按钮跳转业务逻辑
  206. const {
  207. gotoCancelOrder,
  208. gotoEditUserOrUnitInfo,
  209. gotoConfirmReceipt,
  210. gotoCheckLogistics,
  211. gotoEvaluateProduct,
  212. gotoActiveOrder,
  213. gotoPay,
  214. gotoReturnOrder,
  215. gotoExchangeOrder,
  216. gotoOrderDetailsPay,
  217. gotoOrderDetails,
  218. gotoAgainUseOrder,
  219. gotoOrderSign,
  220. closeOrder,
  221. gotoReplenishmentOrder,
  222. gotoAddressOrder,
  223. placeAnOrder,
  224. gotoEditAddressNew
  225. } = useOrderSkip();
  226. // 响应式数据
  227. const statusBarHeight = ref(0)
  228. const barHeight = ref(0)
  229. const activationType = ref('self') // 'self' 本人激活, 'other' 非本人激活
  230. const waitTime = ref(0)
  231. let timer: any = null
  232. const formData = reactive({
  233. carNumber: '',
  234. vehicleIndex: '',
  235. vehiclePlate: '',
  236. colorCode: '',
  237. colorIndex: '',
  238. colorName: '',
  239. carColor: '',
  240. phoneNumber: '',
  241. vehPosImgUrl: '',
  242. vehPosImgUrlName: '',
  243. vehNegImgUrl: '',
  244. vehNegImgUrlName: '',
  245. vehBodyUrl: '',
  246. vehBodyUrlName: '',
  247. deviceImageUrl: '',
  248. deviceImageName: '',
  249. smsCode: '',
  250. activeType: '',
  251. orderId: '',
  252. orderNo: '',
  253. })
  254. // 页面加载
  255. onLoad(() => {
  256. getSystemInfo()
  257. queryVehicleData();
  258. })
  259. const close = (e) => {
  260. console.log("e", e)
  261. isTakePhotoModeShow.value = e
  262. }
  263. const ocrResult = (data) => {
  264. console.log('输出内容=====================', choiceIndex.value);
  265. console.log("上传数据:", data)
  266. // 委托书
  267. formData.proxyUrl = data.imageUrl;
  268. formData.proxyUrlName = data.imageName;
  269. }
  270. const isTakePhotoModeShow = ref(false);
  271. const choiceIndex = ref(0);
  272. const takePhotoMode = (index) => {
  273. console.log("index", index)
  274. isTakePhotoModeShow.value = true
  275. choiceIndex.value = index
  276. }
  277. const vehiclesShow = ref(true);
  278. const vehicles = ref([]);
  279. const queryVehicleData = (vehicleId) => {
  280. let data = {
  281. vehicleId: ''
  282. }
  283. if(vehicleId) {
  284. data.vehicleId = vehicleId;
  285. }
  286. const options = {
  287. type: 2,
  288. method: "POST",
  289. data,
  290. showLoading: true,
  291. }
  292. requestNew('/iaw/active/queryVehicle', options).then(res => {
  293. vehicles.value = res.modelList;
  294. if(vehicleId) {
  295. let vehicle = res.modelList[0];
  296. formData.phoneNumber = vehicle.mobile;
  297. formData.activeType = vehicle.activeType;
  298. formData.orderId = vehicle.orderId;
  299. formData.orderNo = vehicle.orderNo;
  300. }
  301. })
  302. }
  303. //车头照图片上传 val 100行驶证证明 101行驶证反面 102车头照 103
  304. const cardFileImageUpdate = (val) => {
  305. uni.chooseImage({
  306. count: 1, //只能选取一张照片
  307. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  308. sourceType: ["camera", "album"], //从相册选择
  309. success: function (res) {
  310. uploadFile(res.tempFilePaths[0], val).then((data : any) => {
  311. if (val == 100) {
  312. formData.vehPosImgUrl = data.imageUrl;
  313. formData.vehPosImgUrlName = res.tempFilePaths[0];
  314. } else if (val == 101) {
  315. formData.vehNegImgUrl = data.imageUrl;
  316. formData.vehNegImgUrlName = res.tempFilePaths[0];
  317. } else if (val == 102){
  318. formData.vehBodyUrl = data.imageUrl;
  319. formData.vehBodyUrlName = res.tempFilePaths[0];
  320. } else {
  321. formData.deviceImageUrl = data.imageUrl;
  322. formData.deviceImageName = res.tempFilePaths[0];
  323. }
  324. })
  325. },
  326. });
  327. };
  328. const bindPickerChange = (e) => {
  329. console.log('picker发送选择改变,携带值为:' + e.detail.value)
  330. let index = e.detail.value;
  331. formData.vehicleIndex = index;
  332. let vehicle = vehicles.value[index];
  333. formData.vehiclePlate = vehicle.vehiclePlate;
  334. formData.colorCode = vehicle.vehiclePlateColor;
  335. formData.activeType = vehicle.activeType;
  336. const colorItem = getDicWithType('VEHICLE_COLOR_TYPE').find(item => item.code == formData.colorCode);
  337. formData.colorName = colorItem.name;
  338. formData.phoneNumber = vehicle.mobile
  339. formData.orderId = vehicle.orderId;
  340. formData.orderNo = vehicle.orderNo;
  341. };
  342. const bindColorPickerChange = (e) => {
  343. console.log('picker发送选择改变,携带值为:' + e.detail.value)
  344. let index = e.detail.value
  345. formData.colorIndex = index;
  346. let colorItem = getDicWithType('VEHICLE_COLOR_TYPE')[index];
  347. formData.colorCode = colorItem.code;
  348. formData.colorName = colorItem.name;
  349. if(formData.carNumber) {
  350. queryVehicleData(`${formData.carNumber}_${formData.colorCode}`);
  351. }
  352. };
  353. // 获取系统信息
  354. const getSystemInfo = () => {
  355. const systemInfo = uni.getSystemInfoSync()
  356. statusBarHeight.value = systemInfo.statusBarHeight || 0
  357. const { top, height } = uni.getMenuButtonBoundingClientRect()
  358. barHeight.value = height ? height + (top - statusBarHeight.value) * 2 : 38
  359. }
  360. // 返回上一页
  361. const goBack = () => {
  362. uni.navigateBack()
  363. }
  364. // 选择车牌号
  365. const selectCarNumber = () => {
  366. // 这里可以调用车牌号选择组件
  367. // uni.showActionSheet({
  368. // itemList: vehicles.value,
  369. // success: (res) => {
  370. // const colors = ['蓝色', '绿色', '黄色', '白色', '黑色']
  371. // formData.carColor = colors[res.tapIndex]
  372. // }
  373. // })
  374. vehiclesShow.value = true;
  375. }
  376. // 上传图片
  377. const uploadImage = (type: 'vehicle' | 'device') => {
  378. uni.chooseImage({
  379. count: 1, //只能选取一张照片
  380. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  381. sourceType: ["camera", "album"], //从相册选择
  382. success: function (res) {
  383. // 这里可以添加文件上传逻辑
  384. const tempFilePath = res.tempFilePaths[0]
  385. if (type === 'vehicle') {
  386. formData.vehicleImage = tempFilePath
  387. } else {
  388. formData.deviceImage = tempFilePath
  389. }
  390. }
  391. })
  392. }
  393. // 显示拍摄规范
  394. const showSpec = (type: 'vehicle' | 'device') => {
  395. const title = type === 'vehicle' ? '车辆45度照拍摄规范' : 'ETC设备安装照拍摄规范'
  396. const content = type === 'vehicle'
  397. ? '请从车辆前45度角拍摄,确保车牌清晰可见,车辆完整入镜。'
  398. : '请拍摄ETC设备安装位置,确保设备清晰可见,安装牢固。'
  399. uni.showModal({
  400. title,
  401. content,
  402. showCancel: false
  403. })
  404. }
  405. // 发送验证码
  406. const sendCode = () => {
  407. if (!/^1[3-9]\d{9}$/.test(formData.phoneNumber)) {
  408. uni.showToast({ title: '请输入正确手机号', icon: 'none' })
  409. return
  410. }
  411. const options = {
  412. type: 2,
  413. data: {
  414. mobile: formData.phoneNumber,
  415. businessType:4
  416. },
  417. method: "POST",
  418. showLoading: true,
  419. };
  420. requestNew(sendMessage, options).then((res) => {
  421. // 这里调用后端发送验证码接口
  422. msg("验证码发送成功!");
  423. uni.showToast({ title: '验证码已发送', icon: 'success' })
  424. waitTime.value = 60
  425. timer = setInterval(() => {
  426. waitTime.value--
  427. if (waitTime.value <= 0) clearInterval(timer)
  428. }, 1000)
  429. });
  430. }
  431. onUnmounted(() => { if (timer) clearInterval(timer) })
  432. const carNumberInputResult = (val: string) => {
  433. formData.carNumber = val.replaceAll(' ', '');
  434. if(formData.colorCode && formData.carNumber.length >= 7) {
  435. queryVehicleData(`${formData.carNumber}_${formData.colorCode}`);
  436. }
  437. };
  438. // 下一步
  439. const nextStep = () => {
  440. // 表单验证
  441. if (!formData.carNumber && activationType.value === 'other') {
  442. uni.showToast({
  443. title: '请输入车牌号',
  444. icon: 'none'
  445. })
  446. return
  447. }
  448. if (!formData.vehiclePlate && activationType.value === 'self') {
  449. uni.showToast({
  450. title: '请选择车牌号',
  451. icon: 'none'
  452. })
  453. return
  454. }
  455. if (formData.colorCode == undefined || formData.colorCode == null) {
  456. uni.showToast({
  457. title: '请选择车牌颜色',
  458. icon: 'none'
  459. })
  460. return
  461. }
  462. if (!formData.phoneNumber) {
  463. uni.showToast({
  464. title: '请输入手机号码',
  465. icon: 'none'
  466. })
  467. return
  468. }
  469. if (!/^1[3-9]\d{9}$/.test(formData.phoneNumber)) {
  470. uni.showToast({
  471. title: '请输入正确的手机号码',
  472. icon: 'none'
  473. })
  474. return
  475. }
  476. if (!formData.smsCode && activationType.value === 'other') {
  477. uni.showToast({
  478. title: '请输入验证码',
  479. icon: 'none'
  480. })
  481. return
  482. }
  483. if(formData.activeType == '2') {
  484. if (!formData.vehPosImgUrl) {
  485. uni.showToast({
  486. title: '请上传行驶证正面照',
  487. icon: 'none'
  488. })
  489. return
  490. }
  491. if (!formData.vehNegImgUrl) {
  492. uni.showToast({
  493. title: '请上传行驶证反面照',
  494. icon: 'none'
  495. })
  496. return
  497. }
  498. if (!formData.vehBodyUrl) {
  499. uni.showToast({
  500. title: '请上传车辆45度照',
  501. icon: 'none'
  502. })
  503. return
  504. }
  505. if (!formData.deviceImageUrl) {
  506. uni.showToast({
  507. title: '请上传ETC设备安装照',
  508. icon: 'none'
  509. })
  510. return
  511. }
  512. }
  513. // 提交数据
  514. console.log('表单数据:', formData)
  515. if(activationType.value === 'other') {
  516. const options = {
  517. type: 2,
  518. method: "POST",
  519. data: {
  520. mobile: formData.phoneNumber,
  521. code: formData.smsCode
  522. },
  523. showLoading: true,
  524. }
  525. requestNew('/iaw/active/checkSendCode', options).then(res => {
  526. next();
  527. })
  528. return;
  529. }
  530. next();
  531. }
  532. const next = () => {
  533. console.log(formData);
  534. if(formData.activeType == '1') {
  535. navTo(`/subpackage/after-sale/activation/operation-tips?id=${formData.orderId}&orderId=${formData.orderNo}&cardStatus=${undefined}&obuStatus=${undefined}&transfer=${formData.activeType}`);
  536. } else {
  537. }
  538. }
  539. </script>
  540. <style lang="scss" scoped>
  541. .picture-wrapper {
  542. margin-top: 30rpx;
  543. .bg {
  544. background: #F5F9FB;
  545. border-radius: 10rpx;
  546. padding: 40rpx 30rpx;
  547. display: flex;
  548. // align-items: center;
  549. justify-content: space-between;
  550. .name {
  551. padding-top: 30rpx;
  552. font-size: 32rpx;
  553. font-family: SourceHanSansSC, SourceHanSansSC;
  554. font-weight: 500;
  555. color: #111;
  556. line-height: 34rpx;
  557. }
  558. .value {
  559. margin-top: 20rpx;
  560. font-size: 22rpx;
  561. font-family: SourceHanSansSC, SourceHanSansSC;
  562. font-weight: 400;
  563. color: #999999;
  564. line-height: 24rpx;
  565. }
  566. .tip {
  567. margin-top: 20rpx;
  568. text-align: center;
  569. width: 100rpx;
  570. height: 30rpx;
  571. // background: rgba(204, 179, 117);
  572. border-radius: 6rpx;
  573. border: 1rpx solid #CCB375;
  574. .tip-value {
  575. font-size: 20rpx;
  576. font-family: Microsoft YaHei;
  577. font-weight: 400;
  578. color: #CCB375;
  579. line-height: 30rpx;
  580. opacity: 1;
  581. }
  582. }
  583. }
  584. .icon {
  585. width: 304rpx;
  586. height: 190rpx;
  587. background-image: var(--bgimg);
  588. background-size: 100% 100%;
  589. background-repeat: no-repeat;
  590. }
  591. }
  592. .container {
  593. min-height: 100vh;
  594. background-color: #f2f5f7;
  595. }
  596. .nav-bar {
  597. background-color: #fff;
  598. position: fixed;
  599. top: 0;
  600. left: 0;
  601. right: 0;
  602. z-index: 100;
  603. .nav-content {
  604. display: flex;
  605. align-items: center;
  606. justify-content: space-between;
  607. padding: 0 30rpx;
  608. .nav-left, .nav-right {
  609. width: 60rpx;
  610. height: 60rpx;
  611. display: flex;
  612. align-items: center;
  613. justify-content: center;
  614. .back-icon {
  615. width: 40rpx;
  616. height: 40rpx;
  617. }
  618. .more-dots {
  619. display: flex;
  620. flex-direction: column;
  621. gap: 4rpx;
  622. .dot {
  623. width: 6rpx;
  624. height: 6rpx;
  625. background-color: #333;
  626. border-radius: 50%;
  627. }
  628. }
  629. }
  630. .nav-title {
  631. font-size: 36rpx;
  632. font-weight: bold;
  633. color: #333;
  634. }
  635. }
  636. }
  637. .content {
  638. padding: 60rpx 30rpx 120rpx;
  639. }
  640. .info-section, .upload-section {
  641. background-color: #fff;
  642. border-radius: 20rpx;
  643. padding: 30rpx;
  644. margin-bottom: 30rpx;
  645. .section-title {
  646. font-size: 32rpx;
  647. font-weight: bold;
  648. color: #333;
  649. margin-bottom: 30rpx;
  650. }
  651. }
  652. .activation-type {
  653. display: flex;
  654. background-color: #f5f5f5;
  655. border-radius: 10rpx;
  656. padding: 4rpx;
  657. margin-bottom: 30rpx;
  658. .type-item {
  659. flex: 1;
  660. text-align: center;
  661. padding: 20rpx 0;
  662. border-radius: 8rpx;
  663. font-size: 28rpx;
  664. color: #666;
  665. transition: all 0.3s;
  666. &.active {
  667. background-color: #c2a75f;
  668. color: #fff;
  669. }
  670. }
  671. }
  672. .form-item {
  673. display: flex;
  674. align-items: center;
  675. margin-bottom: 30rpx;
  676. .form-label {
  677. width: 160rpx;
  678. font-size: 28rpx;
  679. color: #333;
  680. }
  681. .form-input {
  682. flex: 1;
  683. display: flex;
  684. align-items: center;
  685. justify-content: space-between;
  686. height: 80rpx;
  687. padding: 0 20rpx;
  688. background-color: #f8f8f8;
  689. border-radius: 10rpx;
  690. .picker-disabled--test {
  691. width: 100%;
  692. height: 100%;
  693. line-height: 80rpx;
  694. .uni-input {
  695. display: flex;
  696. flex-direction: row;
  697. align-items: center;
  698. .text {
  699. flex: 1;
  700. height: 100%;
  701. }
  702. }
  703. }
  704. .input-text {
  705. font-size: 28rpx;
  706. color: #333;
  707. &.placeholder {
  708. color: #999;
  709. }
  710. }
  711. .arrow-down {
  712. font-size: 20rpx;
  713. color: #999;
  714. }
  715. }
  716. .form-input-text {
  717. flex: 1;
  718. height: 80rpx;
  719. padding: 0 20rpx;
  720. background-color: #f8f8f8;
  721. border-radius: 10rpx;
  722. font-size: 28rpx;
  723. color: #333;
  724. }
  725. }
  726. .car-number-row {
  727. flex-direction: column;
  728. align-items: flex-start;
  729. .form-label {
  730. margin-bottom: 12rpx;
  731. }
  732. :deep(.car-number-input-root) {
  733. width: 100%;
  734. justify-content: flex-start;
  735. }
  736. }
  737. // .picture-wrapper {
  738. // margin-top: 30rpx;
  739. // .bg1 {
  740. // background: #F5F9FB;
  741. // border-radius: 10rpx;
  742. // padding: 40rpx 30rpx;
  743. // display: flex;
  744. // justify-content: space-between;
  745. // .name {
  746. // padding-top: 30rpx;
  747. // font-size: 32rpx;
  748. // font-family: SourceHanSansSC, SourceHanSansSC;
  749. // font-weight: 500;
  750. // color: #111;
  751. // line-height: 34rpx;
  752. // }
  753. // .value {
  754. // margin-top: 20rpx;
  755. // font-size: 22rpx;
  756. // font-family: SourceHanSansSC, SourceHanSansSC;
  757. // font-weight: 400;
  758. // color: #999999;
  759. // line-height: 24rpx;
  760. // }
  761. // .tip {
  762. // margin-top: 20rpx;
  763. // text-align: center;
  764. // width: 100rpx;
  765. // height: 30rpx;
  766. // border-radius: 6rpx;
  767. // border: 1rpx solid #CCB375;
  768. // .tip-value {
  769. // font-size: 20rpx;
  770. // font-family: Microsoft YaHei;
  771. // font-weight: 400;
  772. // color: #CCB375;
  773. // line-height: 30rpx;
  774. // opacity: 1;
  775. // }
  776. // }
  777. // }
  778. // .icon {
  779. // width: 304rpx;
  780. // height: 190rpx;
  781. // background-image: var(--bgimg);
  782. // background-size: 100% 100%;
  783. // background-repeat: no-repeat;
  784. // }
  785. // }
  786. .bottom-button {
  787. position: fixed;
  788. bottom: 0;
  789. left: 0;
  790. right: 0;
  791. height: 100rpx;
  792. background-color: #133850;
  793. color: #fff;
  794. font-size: 32rpx;
  795. font-weight: bold;
  796. display: flex;
  797. align-items: center;
  798. justify-content: center;
  799. }
  800. .send-code-btn {
  801. margin-left: 16rpx;
  802. background: #f8f4e7;
  803. color: #ccb375;
  804. border: 1px solid #ccb375;
  805. border-radius: 10rpx;
  806. font-size: 24rpx;
  807. height: 60rpx;
  808. line-height: 60rpx;
  809. padding: 0 20rpx;
  810. }
  811. </style>