Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

etc-activation.vue 21KB

3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
2 недель назад
2 недель назад
2 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
2 недель назад
2 недель назад
2 недель назад
2 недель назад
2 недель назад
3 недель назад
2 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
2 недель назад
3 недель назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  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">
  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 } 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. })
  252. // 页面加载
  253. onLoad(() => {
  254. getSystemInfo()
  255. queryVehicleData();
  256. })
  257. const close = (e) => {
  258. console.log("e", e)
  259. isTakePhotoModeShow.value = e
  260. }
  261. const ocrResult = (data) => {
  262. console.log('输出内容=====================', choiceIndex.value);
  263. console.log("上传数据:", data)
  264. // 委托书
  265. formData.proxyUrl = data.imageUrl;
  266. formData.proxyUrlName = data.imageName;
  267. }
  268. const isTakePhotoModeShow = ref(false);
  269. const choiceIndex = ref(0);
  270. const takePhotoMode = (index) => {
  271. console.log("index", index)
  272. isTakePhotoModeShow.value = true
  273. choiceIndex.value = index
  274. }
  275. const vehiclesShow = ref(true);
  276. const vehicles = ref([]);
  277. const queryVehicleData = (vehicleId) => {
  278. let data = {
  279. vehicleId: ''
  280. }
  281. if(vehicleId) {
  282. data.vehicleId = vehicleId;
  283. }
  284. const options = {
  285. type: 2,
  286. method: "POST",
  287. data,
  288. showLoading: true,
  289. }
  290. requestNew('/iaw/active/queryVehicle', options).then(res => {
  291. vehicles.value = res.modelList;
  292. if(vehicleId) {
  293. let vehicle = res.modelList[0];
  294. formData.phoneNumber = vehicle.mobile;
  295. formData.activeType = vehicle.activeType;
  296. }
  297. })
  298. }
  299. //车头照图片上传 val 100行驶证证明 101行驶证反面 102车头照 103
  300. const cardFileImageUpdate = (val) => {
  301. uni.chooseImage({
  302. count: 1, //只能选取一张照片
  303. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  304. sourceType: ["camera", "album"], //从相册选择
  305. success: function (res) {
  306. uploadFile(res.tempFilePaths[0], val).then((data : any) => {
  307. if (val == 100) {
  308. formData.vehPosImgUrl = data.imageUrl;
  309. formData.vehPosImgUrlName = res.tempFilePaths[0];
  310. } else if (val == 101) {
  311. formData.vehNegImgUrl = data.imageUrl;
  312. formData.vehNegImgUrlName = res.tempFilePaths[0];
  313. } else if (val == 102){
  314. formData.vehBodyUrl = data.imageUrl;
  315. formData.vehBodyUrlName = res.tempFilePaths[0];
  316. } else {
  317. formData.deviceImageUrl = data.imageUrl;
  318. formData.deviceImageName = res.tempFilePaths[0];
  319. }
  320. })
  321. },
  322. });
  323. };
  324. const bindPickerChange = (e) => {
  325. console.log('picker发送选择改变,携带值为:' + e.detail.value)
  326. let index = e.detail.value;
  327. formData.vehicleIndex = index;
  328. let vehicle = vehicles.value[index];
  329. formData.vehiclePlate = vehicle.vehiclePlate;
  330. formData.colorCode = vehicle.vehiclePlateColor;
  331. formData.activeType = vehicle.activeType;
  332. const colorItem = getDicWithType('VEHICLE_COLOR_TYPE').find(item => item.code == formData.colorCode);
  333. formData.colorName = colorItem.name;
  334. formData.phoneNumber = vehicle.mobile
  335. };
  336. const bindColorPickerChange = (e) => {
  337. console.log('picker发送选择改变,携带值为:' + e.detail.value)
  338. let index = e.detail.value
  339. formData.colorIndex = index;
  340. let colorItem = getDicWithType('VEHICLE_COLOR_TYPE')[index];
  341. formData.colorCode = colorItem.code;
  342. formData.colorName = colorItem.name;
  343. if(formData.carNumber) {
  344. queryVehicleData(`${formData.carNumber}_${formData.colorCode}`);
  345. }
  346. };
  347. // 获取系统信息
  348. const getSystemInfo = () => {
  349. const systemInfo = uni.getSystemInfoSync()
  350. statusBarHeight.value = systemInfo.statusBarHeight || 0
  351. const { top, height } = uni.getMenuButtonBoundingClientRect()
  352. barHeight.value = height ? height + (top - statusBarHeight.value) * 2 : 38
  353. }
  354. // 返回上一页
  355. const goBack = () => {
  356. uni.navigateBack()
  357. }
  358. // 选择车牌号
  359. const selectCarNumber = () => {
  360. // 这里可以调用车牌号选择组件
  361. // uni.showActionSheet({
  362. // itemList: vehicles.value,
  363. // success: (res) => {
  364. // const colors = ['蓝色', '绿色', '黄色', '白色', '黑色']
  365. // formData.carColor = colors[res.tapIndex]
  366. // }
  367. // })
  368. vehiclesShow.value = true;
  369. }
  370. // 上传图片
  371. const uploadImage = (type: 'vehicle' | 'device') => {
  372. uni.chooseImage({
  373. count: 1, //只能选取一张照片
  374. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  375. sourceType: ["camera", "album"], //从相册选择
  376. success: function (res) {
  377. // 这里可以添加文件上传逻辑
  378. const tempFilePath = res.tempFilePaths[0]
  379. if (type === 'vehicle') {
  380. formData.vehicleImage = tempFilePath
  381. } else {
  382. formData.deviceImage = tempFilePath
  383. }
  384. }
  385. })
  386. }
  387. // 显示拍摄规范
  388. const showSpec = (type: 'vehicle' | 'device') => {
  389. const title = type === 'vehicle' ? '车辆45度照拍摄规范' : 'ETC设备安装照拍摄规范'
  390. const content = type === 'vehicle'
  391. ? '请从车辆前45度角拍摄,确保车牌清晰可见,车辆完整入镜。'
  392. : '请拍摄ETC设备安装位置,确保设备清晰可见,安装牢固。'
  393. uni.showModal({
  394. title,
  395. content,
  396. showCancel: false
  397. })
  398. }
  399. // 发送验证码
  400. const sendCode = () => {
  401. if (!/^1[3-9]\d{9}$/.test(formData.phoneNumber)) {
  402. uni.showToast({ title: '请输入正确手机号', icon: 'none' })
  403. return
  404. }
  405. const options = {
  406. type: 2,
  407. data: {
  408. mobile: formData.phoneNumber,
  409. businessType:4
  410. },
  411. method: "POST",
  412. showLoading: true,
  413. };
  414. requestNew(sendMessage, options).then((res) => {
  415. // 这里调用后端发送验证码接口
  416. msg("验证码发送成功!");
  417. uni.showToast({ title: '验证码已发送', icon: 'success' })
  418. waitTime.value = 60
  419. timer = setInterval(() => {
  420. waitTime.value--
  421. if (waitTime.value <= 0) clearInterval(timer)
  422. }, 1000)
  423. });
  424. }
  425. onUnmounted(() => { if (timer) clearInterval(timer) })
  426. const carNumberInputResult = (val: string) => {
  427. formData.carNumber = val.replaceAll(' ', '');
  428. if(formData.colorCode && formData.carNumber.length >= 7) {
  429. queryVehicleData(`${formData.carNumber}_${formData.colorCode}`);
  430. }
  431. };
  432. // 下一步
  433. const nextStep = () => {
  434. // 表单验证
  435. if (!formData.carNumber && activationType.value === 'other') {
  436. uni.showToast({
  437. title: '请输入车牌号',
  438. icon: 'none'
  439. })
  440. return
  441. }
  442. if (!formData.vehiclePlate && activationType.value === 'self') {
  443. uni.showToast({
  444. title: '请选择车牌号',
  445. icon: 'none'
  446. })
  447. return
  448. }
  449. if (!formData.colorCode) {
  450. uni.showToast({
  451. title: '请选择车牌颜色',
  452. icon: 'none'
  453. })
  454. return
  455. }
  456. if (!formData.phoneNumber) {
  457. uni.showToast({
  458. title: '请输入手机号码',
  459. icon: 'none'
  460. })
  461. return
  462. }
  463. if (!/^1[3-9]\d{9}$/.test(formData.phoneNumber)) {
  464. uni.showToast({
  465. title: '请输入正确的手机号码',
  466. icon: 'none'
  467. })
  468. return
  469. }
  470. if (!formData.smsCode && activationType.value === 'other') {
  471. uni.showToast({
  472. title: '请输入验证码',
  473. icon: 'none'
  474. })
  475. return
  476. }
  477. if (!formData.vehPosImgUrl) {
  478. uni.showToast({
  479. title: '请上传行驶证正面照',
  480. icon: 'none'
  481. })
  482. return
  483. }
  484. if (!formData.vehNegImgUrl) {
  485. uni.showToast({
  486. title: '请上传行驶证反面照',
  487. icon: 'none'
  488. })
  489. return
  490. }
  491. if (!formData.vehBodyUrl) {
  492. uni.showToast({
  493. title: '请上传车辆45度照',
  494. icon: 'none'
  495. })
  496. return
  497. }
  498. if (!formData.deviceImageUrl) {
  499. uni.showToast({
  500. title: '请上传ETC设备安装照',
  501. icon: 'none'
  502. })
  503. return
  504. }
  505. // 提交数据
  506. console.log('表单数据:', formData)
  507. if(activationType.value === 'other') {
  508. const options = {
  509. type: 2,
  510. method: "POST",
  511. data: {
  512. mobile: formData.phoneNumber,
  513. code: formData.smsCode
  514. },
  515. showLoading: true,
  516. }
  517. requestNew('/iaw/active/checkSendCode', options).then(res => {
  518. next();
  519. })
  520. return;
  521. }
  522. next();
  523. }
  524. const next = () => {
  525. if(formData.activeType == 1) {
  526. gotoActiveOrder();
  527. } else {
  528. }
  529. }
  530. </script>
  531. <style lang="scss" scoped>
  532. .picture-wrapper {
  533. margin-top: 30rpx;
  534. .bg {
  535. background: #F5F9FB;
  536. border-radius: 10rpx;
  537. padding: 40rpx 30rpx;
  538. display: flex;
  539. // align-items: center;
  540. justify-content: space-between;
  541. .name {
  542. padding-top: 30rpx;
  543. font-size: 32rpx;
  544. font-family: SourceHanSansSC, SourceHanSansSC;
  545. font-weight: 500;
  546. color: #111;
  547. line-height: 34rpx;
  548. }
  549. .value {
  550. margin-top: 20rpx;
  551. font-size: 22rpx;
  552. font-family: SourceHanSansSC, SourceHanSansSC;
  553. font-weight: 400;
  554. color: #999999;
  555. line-height: 24rpx;
  556. }
  557. .tip {
  558. margin-top: 20rpx;
  559. text-align: center;
  560. width: 100rpx;
  561. height: 30rpx;
  562. // background: rgba(204, 179, 117);
  563. border-radius: 6rpx;
  564. border: 1rpx solid #CCB375;
  565. .tip-value {
  566. font-size: 20rpx;
  567. font-family: Microsoft YaHei;
  568. font-weight: 400;
  569. color: #CCB375;
  570. line-height: 30rpx;
  571. opacity: 1;
  572. }
  573. }
  574. }
  575. .icon {
  576. width: 304rpx;
  577. height: 190rpx;
  578. background-image: var(--bgimg);
  579. background-size: 100% 100%;
  580. background-repeat: no-repeat;
  581. }
  582. }
  583. .container {
  584. min-height: 100vh;
  585. background-color: #f2f5f7;
  586. }
  587. .nav-bar {
  588. background-color: #fff;
  589. position: fixed;
  590. top: 0;
  591. left: 0;
  592. right: 0;
  593. z-index: 100;
  594. .nav-content {
  595. display: flex;
  596. align-items: center;
  597. justify-content: space-between;
  598. padding: 0 30rpx;
  599. .nav-left, .nav-right {
  600. width: 60rpx;
  601. height: 60rpx;
  602. display: flex;
  603. align-items: center;
  604. justify-content: center;
  605. .back-icon {
  606. width: 40rpx;
  607. height: 40rpx;
  608. }
  609. .more-dots {
  610. display: flex;
  611. flex-direction: column;
  612. gap: 4rpx;
  613. .dot {
  614. width: 6rpx;
  615. height: 6rpx;
  616. background-color: #333;
  617. border-radius: 50%;
  618. }
  619. }
  620. }
  621. .nav-title {
  622. font-size: 36rpx;
  623. font-weight: bold;
  624. color: #333;
  625. }
  626. }
  627. }
  628. .content {
  629. padding: 60rpx 30rpx 120rpx;
  630. }
  631. .info-section, .upload-section {
  632. background-color: #fff;
  633. border-radius: 20rpx;
  634. padding: 30rpx;
  635. margin-bottom: 30rpx;
  636. .section-title {
  637. font-size: 32rpx;
  638. font-weight: bold;
  639. color: #333;
  640. margin-bottom: 30rpx;
  641. }
  642. }
  643. .activation-type {
  644. display: flex;
  645. background-color: #f5f5f5;
  646. border-radius: 10rpx;
  647. padding: 4rpx;
  648. margin-bottom: 30rpx;
  649. .type-item {
  650. flex: 1;
  651. text-align: center;
  652. padding: 20rpx 0;
  653. border-radius: 8rpx;
  654. font-size: 28rpx;
  655. color: #666;
  656. transition: all 0.3s;
  657. &.active {
  658. background-color: #c2a75f;
  659. color: #fff;
  660. }
  661. }
  662. }
  663. .form-item {
  664. display: flex;
  665. align-items: center;
  666. margin-bottom: 30rpx;
  667. .form-label {
  668. width: 160rpx;
  669. font-size: 28rpx;
  670. color: #333;
  671. }
  672. .form-input {
  673. flex: 1;
  674. display: flex;
  675. align-items: center;
  676. justify-content: space-between;
  677. height: 80rpx;
  678. padding: 0 20rpx;
  679. background-color: #f8f8f8;
  680. border-radius: 10rpx;
  681. .picker-disabled--test {
  682. width: 100%;
  683. height: 100%;
  684. line-height: 80rpx;
  685. .uni-input {
  686. display: flex;
  687. flex-direction: row;
  688. align-items: center;
  689. .text {
  690. flex: 1;
  691. height: 100%;
  692. }
  693. }
  694. }
  695. .input-text {
  696. font-size: 28rpx;
  697. color: #333;
  698. &.placeholder {
  699. color: #999;
  700. }
  701. }
  702. .arrow-down {
  703. font-size: 20rpx;
  704. color: #999;
  705. }
  706. }
  707. .form-input-text {
  708. flex: 1;
  709. height: 80rpx;
  710. padding: 0 20rpx;
  711. background-color: #f8f8f8;
  712. border-radius: 10rpx;
  713. font-size: 28rpx;
  714. color: #333;
  715. }
  716. }
  717. .car-number-row {
  718. flex-direction: column;
  719. align-items: flex-start;
  720. .form-label {
  721. margin-bottom: 12rpx;
  722. }
  723. :deep(.car-number-input-root) {
  724. width: 100%;
  725. justify-content: flex-start;
  726. }
  727. }
  728. // .picture-wrapper {
  729. // margin-top: 30rpx;
  730. // .bg1 {
  731. // background: #F5F9FB;
  732. // border-radius: 10rpx;
  733. // padding: 40rpx 30rpx;
  734. // display: flex;
  735. // justify-content: space-between;
  736. // .name {
  737. // padding-top: 30rpx;
  738. // font-size: 32rpx;
  739. // font-family: SourceHanSansSC, SourceHanSansSC;
  740. // font-weight: 500;
  741. // color: #111;
  742. // line-height: 34rpx;
  743. // }
  744. // .value {
  745. // margin-top: 20rpx;
  746. // font-size: 22rpx;
  747. // font-family: SourceHanSansSC, SourceHanSansSC;
  748. // font-weight: 400;
  749. // color: #999999;
  750. // line-height: 24rpx;
  751. // }
  752. // .tip {
  753. // margin-top: 20rpx;
  754. // text-align: center;
  755. // width: 100rpx;
  756. // height: 30rpx;
  757. // border-radius: 6rpx;
  758. // border: 1rpx solid #CCB375;
  759. // .tip-value {
  760. // font-size: 20rpx;
  761. // font-family: Microsoft YaHei;
  762. // font-weight: 400;
  763. // color: #CCB375;
  764. // line-height: 30rpx;
  765. // opacity: 1;
  766. // }
  767. // }
  768. // }
  769. // .icon {
  770. // width: 304rpx;
  771. // height: 190rpx;
  772. // background-image: var(--bgimg);
  773. // background-size: 100% 100%;
  774. // background-repeat: no-repeat;
  775. // }
  776. // }
  777. .bottom-button {
  778. position: fixed;
  779. bottom: 0;
  780. left: 0;
  781. right: 0;
  782. height: 100rpx;
  783. background-color: #133850;
  784. color: #fff;
  785. font-size: 32rpx;
  786. font-weight: bold;
  787. display: flex;
  788. align-items: center;
  789. justify-content: center;
  790. }
  791. .send-code-btn {
  792. margin-left: 16rpx;
  793. background: #f8f4e7;
  794. color: #ccb375;
  795. border: 1px solid #ccb375;
  796. border-radius: 10rpx;
  797. font-size: 24rpx;
  798. height: 60rpx;
  799. line-height: 60rpx;
  800. padding: 0 20rpx;
  801. }
  802. </style>