index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  1. <template>
  2. <view class="page">
  3. <image src="/static/image/indexback.png" mode="" style="width: 100%;height: 622rpx;"></image>
  4. <view class="dept dis a-c j-c" @click="deptSelect">
  5. <text class="mr-1">{{ deptradioName }}</text>
  6. <u-icon name="arrow-down" color="#333333" size="14"></u-icon>
  7. </view>
  8. <view class="Service dis f-c a-c j-c " @click="Service">
  9. <image class="" src="/static/icon/customerService.png" mode=""></image>
  10. <text>客服</text>
  11. </view>
  12. <view class="content">
  13. <uni-tab :tabList="tabList" :value="activeTab" noactivebackgroundColor="rgba(254, 249, 239, 55%)">
  14. <!-- 第一个标签内容 -->
  15. <template #content0>
  16. <view class=" dis f-c " style="padding: 20rpx 30rpx 30rpx;">
  17. <text class="imgtitle">请上传车辆行驶证正反页面</text>
  18. <view class="colorBlock"> </view>
  19. <view class="imageUpload" @click="OCRUploadShow = true">
  20. <image src="/static/image/Frame 1321319407.png" mode="aspectFill"></image>
  21. </view>
  22. <view class="quotebtn dis a-c j-c font-weight" @click="manualQuote">
  23. 手动报价
  24. </view>
  25. </view>
  26. </template>
  27. <!-- 第二个标签内容 -->
  28. <template #content1>
  29. <view class=" dis f-c " style="padding: 40rpx 30rpx 30rpx ;">
  30. <view class="license dis f-c ">
  31. <view class="dis a-c ">
  32. <image src="/static/image/licensePlateicon.png" mode=""></image>
  33. <text class="title">车牌号</text>
  34. </view>
  35. <view class="licensePlateRegion mt-2 dis a-c ">
  36. <view class="Region dis a-c j-c " @click="Regionselect">
  37. {{ licenseActiveName }}
  38. </view>
  39. <u--input v-model="licenseValue" placeholder="请输入" border="bottom" clearable
  40. maxlength="7" @input="handleInput"
  41. :customStyle="{ borderColor: '#FDE935 !important' }"></u--input>
  42. </view>
  43. </view>
  44. <view class="license dis f-c mt-3">
  45. <view class="dis ">
  46. <image src="/static/image/caricon.png" mode=""></image>
  47. <text class="title">车辆种类</text>
  48. </view>
  49. <view class="u--input dis a-c j-s" @tap="carTypeShow = true">
  50. <text v-if="carTypeCode" style="font-size: 30rpx; color: #303133;line-height: 52rpx;">{{
  51. carTypeCode }}</text>
  52. <text v-else style="font-size: 30rpx; color: #999;line-height: 52rpx;">请选择车辆类型</text>
  53. <u-icon name="arrow-down" color="#333333" size="14"></u-icon>
  54. </view>
  55. </view>
  56. <view class="licenslist dis mt-3">
  57. <view class="item dis a-c j-c" v-for="(items, index) in historicalVehicle" :key="index"
  58. @click="licensePlateQuery(items.licenseNo)">
  59. <text>{{ items.licenseNo }}</text>
  60. </view>
  61. </view>
  62. <view class="quotebtn dis a-c j-c font-weight" @click="manualQuote1">
  63. 手动报价
  64. </view>
  65. </view>
  66. </template>
  67. </uni-tab>
  68. </view>
  69. <view class="swiper">
  70. <u-swiper :list="bannerList" indicator height="180rpx" radius="10" imgMode="heightFix"></u-swiper>
  71. </view>
  72. <!-- 车牌地区选择 -->
  73. <uni-Popup :show="licenseShow" bgColor="#F8F8F8" @close='licenseclose'>
  74. <template #content>
  75. <view class="licenselist dis f-wrap j-s">
  76. <view class="item dis a-c j-c" :class="{ active: item === licenseActiveName }"
  77. v-for="item in licenselist" :key="item" @tap="licenseItem(item)">
  78. <text>{{ item }}</text>
  79. </view>
  80. </view>
  81. </template>
  82. </uni-Popup>
  83. <!-- 租户机构选择 -->
  84. <uni-Popup :show="deptSelectShow" @close='deptclose' headerTitle="选择出单机构" overflow="auto" maxHeight="580rpx">
  85. <template #content>
  86. <view class="overflow">
  87. <view class="deptselect dis f-c ">
  88. <u-radio-group v-model="deptradiovalue" placement="column" iconPlacement="right"
  89. @change="deptchange">
  90. <view class="item dis a-c " v-for="(item, index) in tenantOrglist" :key="index">
  91. <u-radio activeColor="#FDE935" iconColor='#333' :name="item.systemCode"
  92. style="width: 100%;">
  93. <view class="textregion dis f-c ">
  94. <text>{{ item.sysName }}</text>
  95. <text>{{ item.deptName }}</text>
  96. </view>
  97. <image :src="item.iconAddress" mode=""></image>
  98. </u-radio>
  99. </view>
  100. </u-radio-group>
  101. </view>
  102. </view>
  103. </template>
  104. </uni-Popup>
  105. <!-- 车型选择 -->
  106. <u-picker :show="carTypeShow" :columns="car_kind_codeoptions" keyName="label" @cancel="carTypeShow = false"
  107. @confirm="carTypeconfirm"></u-picker>
  108. <uni-OCRUploadPopup :show="OCRUploadShow" :list='carPopuptablist' @close="OCRUploadShow = false"
  109. :checkType="checkType" @carCallback="carCallback">
  110. </uni-OCRUploadPopup>
  111. </view>
  112. </template>
  113. <script>
  114. import {
  115. mapState,
  116. mapMutations
  117. } from "vuex"
  118. import store from '@/store';
  119. export default {
  120. data() {
  121. return {
  122. //历史车辆信息
  123. historicalVehicle: [],
  124. //车辆信息
  125. carInfo: {
  126. licenseNo: "", //车牌号
  127. brandName: "", //车辆品牌型号
  128. vinNo: "", //车架号
  129. engineNo: "", //发动机号
  130. modelCode: "", //车型编码
  131. seatCount: "", //核定载客量 核定载人数
  132. purchasePrice: "", //新车购置价最低,行业实际价值,协商价值
  133. carBrand: "", //车型品牌
  134. ciCarName: "", //行业车型名称
  135. ciModelCode: "", //行业车型编码
  136. completeKerbMass: "", //整备质量
  137. exhaustScale: "", //排量
  138. factory: "", //工厂名称
  139. factoryid: "", //工厂编码
  140. frameNo: "", //车架号
  141. licenseKindCode: "02", //号牌种类
  142. vehicleclass: "", //车辆类型
  143. familyName: "", //车型
  144. modelcname: "", //车型名称
  145. powertypecode: "", //燃料类型编码
  146. vehicleweight: "", //总质量
  147. limitLoad: "", //核定载质量
  148. carYear: "", //年款
  149. carKindCode: "A0", //车辆种类
  150. powertype: "汽油", //燃料类型
  151. energyTypeCode: "0", //能源种类
  152. displacement: "", //排量
  153. powerScale: "", //功率
  154. registerDate: "", //注册日期
  155. issueDate: "", //发证日期
  156. transferFlag: false, //过户标志
  157. transferFlagBi: false, //商业过户标志
  158. transferDate: "", //过户日期
  159. loanStatus: 0, //贷款标志
  160. firstBeneMan: "", //第一受益人
  161. noLicenseFlag: false, //是否新车
  162. carTypeCode: "K33", //客车A0 货车H0          
  163. carNatureCode: "02", //使用性质 家庭自用8A 非营业企业8B 非营业党政机关,事业团体8C 非营业货车8D
  164. propertyCode: "1", //所属性质 1个人 2企业 3个人
  165. outOfInsurance: false, //脱保
  166. usedCar: false, //二手车
  167. vehicleUseCode: "05" //车辆用途
  168. },
  169. ownersInfo: {}, //车主
  170. policyHolderInfo: {}, //投保人
  171. insuredPersonInfo: {}, //被保人
  172. checkType: "carInfo",
  173. OCRUploadShow: false, //上传弹窗
  174. carPopuptablist: [{
  175. name: '行车本正页',
  176. }, {
  177. name: '行车本副页',
  178. }],
  179. licenseNo: "", //车牌号
  180. carTypeCode: "客车", //车辆类型
  181. carTypeCodeValue: "A0",
  182. carTypeShow: false, //选择车型
  183. tenantOrglist: [], //租户机构列表
  184. tenantLoaded: false, //机构列表是否已加载(防止 onShow 补加载与 onLoad 重复执行)
  185. tenantLoading: false, //机构列表是否加载中(防重入)
  186. historyLoaded: false, //历史报价车牌是否已加载
  187. loadedToken: '', //数据加载时的token(用于检测登录账号变化,401重登/换账号时重置并重载)
  188. deptradiovalue: '',
  189. deptradioName: '',
  190. licenseActiveName: '晋', //车牌选中
  191. licenseValue: "",
  192. licenseShow: false, //车牌选择
  193. deptSelectShow: false, //机构选择弹窗显示/隐藏
  194. bannerList: [ //轮播图
  195. "/static/image/banner.png",
  196. ],
  197. activeTab: 0, //
  198. tabList: [{
  199. label: '传图报价',
  200. id: 0
  201. },
  202. {
  203. label: '车牌号报价',
  204. id: 1
  205. }
  206. ],
  207. licenselist: ["京", "沪", "粤", "津", "冀", "豫", "云", "辽", "黑", "湘", "皖", "鲁", "苏",
  208. "浙", "赣", "鄂", "桂", "甘", "晋", "陕", "蒙", "吉", "闽", "贵", "渝", "川",
  209. "青", "琼", "宁", "挂", "藏", "港", "澳", "新", "使", "学"
  210. ],
  211. carInfoImgViewList: [],
  212. //影像id
  213. carImageListId: [], //车辆
  214. ownerImageListId: [], //车主
  215. policyHolderImageListId: [], //投保人
  216. insuredPersonImageListId: [], //被保人
  217. car_kind_codeoptions: [],
  218. }
  219. },
  220. async onShow() {
  221. if (!store.state.token) {
  222. // 未登录先跳登录页,避免在首页发起需要登录态的请求;已在登录页时不重复跳转
  223. let pages = getCurrentPages();
  224. let currentPage = pages[pages.length - 1];
  225. if (!(currentPage && currentPage.route === 'pages/login/login')) {
  226. uni.navigateTo({
  227. url: "/pages/login/login"
  228. });
  229. }
  230. return;
  231. }
  232. // 登录账号变化(401重登/换账号)时重置加载标志并清空旧数据,重新拉取
  233. // 注意:不重置 tenantLoading,避免打断执行中 onLoad 的防重入(否则会重复请求/重复签到)
  234. if (this.loadedToken !== store.state.token) {
  235. this.tenantLoaded = false;
  236. this.historyLoaded = false;
  237. this.tenantOrglist = [];
  238. this.historicalVehicle = [];
  239. this.bannerList = [];
  240. this.deptradiovalue = '';
  241. this.deptradioName = '';
  242. }
  243. // 已登录但首页数据未加载(如未登录时进入过首页后再登录,onLoad 不会重新执行),补加载
  244. if (!this.tenantLoaded) {
  245. await this.loadHomeData(); // 与 onLoad 生命周期共用同一加载方法(内部有防重入)
  246. } else if (!this.historyLoaded) {
  247. this.loadHistoryQuote(); //机构已加载但历史车牌失败过,单独补
  248. }
  249. await this.getDicType("car_kind_code"); //车辆种类
  250. },
  251. onLoad() {
  252. // 页面生命周期:首次进入触发初始化加载。注意不能 this.onLoad() 直接调用——
  253. // 页面生命周期钩子不挂载到组件实例,onShow 中补加载需走 methods 里的 loadHomeData
  254. this.loadHomeData();
  255. },
  256. beforeCreate() {
  257. // setTimeout(() => {
  258. // this.$refs.app_update.update(); //调用子组件检查更新方法
  259. // }, 500)
  260. },
  261. methods: {
  262. ...mapMutations(['activelicenseNo']),
  263. // 首页初始化数据加载:onLoad 生命周期与 onShow 补加载共用(页面生命周期钩子不可 this.onLoad() 调用,故抽为普通方法)
  264. async loadHomeData() {
  265. if (!store.state.token) {
  266. return; // 未登录不发请求(onShow 会跳转登录页),避免 getTenantList 等接口 401 弹“登录已失效”
  267. }
  268. if (this.tenantLoading || this.tenantLoaded) {
  269. return; // 防重入:加载中或已加载过则不再执行,避免重复请求/重复签到
  270. }
  271. const loadToken = store.state.token; // 快照本次加载的token,完成时校验账号是否已变化
  272. this.tenantLoading = true;
  273. try {
  274. let res = await this.$http.post('/userInfo/getTenantList'); //获取机构列表
  275. if (res.code == '200') {
  276. if (res.data && res.data.length) {
  277. if (res.data.length > 1) {
  278. this.tenantOrglist = res.data;
  279. if (!store.state.system_code) {
  280. this.deptSelectShow = true; //多个租户弹窗选择
  281. } else {
  282. this.deptradiovalue = store.state.system_code;
  283. this.deptradioName = store.state.system_Name;
  284. }
  285. } else {
  286. //单个租户赋值第一个(仅组件内数据,写store/签到等副作用在校验通过后执行)
  287. this.tenantOrglist = res.data;
  288. this.deptradiovalue = res.data[0].systemCode;
  289. this.deptradioName = res.data[0].deptName;
  290. }
  291. }
  292. // 账号校验前置:加载期间账号已变化则放弃并清理,避免旧账号数据污染store/重复签到
  293. if (store.state.token !== loadToken) {
  294. this.tenantOrglist = [];
  295. this.deptradiovalue = '';
  296. this.deptradioName = '';
  297. this.deptSelectShow = false;
  298. return;
  299. }
  300. // 校验通过后才执行写store与签到等副作用操作
  301. if (res.data && res.data.length === 1) {
  302. store.commit('setUserModules', {
  303. title: 'system_code',
  304. data: this.tenantOrglist[0].systemCode
  305. })
  306. store.commit('setUserModules', {
  307. title: 'system_Name',
  308. data: this.tenantOrglist[0].sysName
  309. })
  310. await this.bannerquery(); //获取轮播图
  311. await this.getUserInfo(); //获取人员信息
  312. await this.$http.post('/signIn/doSignIn')
  313. }
  314. // 整条初始化链成功后才置位(任一环节失败则不置位,onShow 下次可重试)
  315. this.tenantLoaded = true;
  316. this.loadedToken = loadToken;
  317. }
  318. } catch (e) {
  319. // 静默:401 由 dataFactory 统一处理,网络异常不中断;tenantLoaded 保持 false,下次 onShow 可重试
  320. } finally {
  321. this.tenantLoading = false;
  322. }
  323. try {
  324. await this.loadHistoryQuote(); //获取历史报价车牌
  325. } catch (e) {
  326. // 静默:历史报价车牌加载失败不影响主流程
  327. }
  328. },
  329. //获取历史报价车牌(独立方法,失败后 onShow 可单独重试)
  330. async loadHistoryQuote() {
  331. const loadToken = store.state.token; // 快照token,完成时校验账号是否已变化
  332. let res1 = await this.$http.get('/supplementOrder/getHistoryQuote');
  333. if (res1.code == '200') {
  334. if (store.state.token !== loadToken) {
  335. return; // 加载期间账号已变化,放弃(数据属于旧账号)
  336. }
  337. this.historicalVehicle = res1.data;
  338. this.historyLoaded = true;
  339. }
  340. },
  341. arr() {
  342. uni.navigateTo({
  343. url: '/pages/reward/benefitPackage'
  344. })
  345. },
  346. //车牌号查询相关历史订单
  347. licensePlateQuery(item) {
  348. // this.activelicenseNo(item);
  349. uni.navigateTo({
  350. url: '/pages/quote/quoteRecords?license=' + item,
  351. })
  352. },
  353. //获取登录人信息
  354. async getUserInfo() {
  355. let userInfoRes = await this.$http.get('/appUser/userInfoGet', {}); //用户信息
  356. store.commit('setUserModules', { //用户信息
  357. title: 'userInfo',
  358. data: {
  359. sysUser: {
  360. ...userInfoRes.data
  361. }
  362. }
  363. })
  364. },
  365. //获取轮播图
  366. async bannerquery() {
  367. let res = await this.$http.post('/poster/queryPage');
  368. if (res.code == '200') {
  369. let list = res.data.records.map(val => {
  370. return val.previewUrl;
  371. })
  372. this.bannerList = list;
  373. }
  374. },
  375. //数据字典
  376. async getDicType(type, vehicle) {
  377. if (vehicle) {
  378. let res = await this.$http.get(`/dict/get?dictCode=${type}&parentValue=${vehicle}`);
  379. this[type + vehicle + "options"] = [res.data];
  380. } else {
  381. let res = await this.$http.get('/dict/get?dictCode=' + type);
  382. this[type + "options"] = [res.data];
  383. }
  384. },
  385. //影像识别回调事件
  386. carCallback(obj) {
  387. this.carInfoImgViewList = [];
  388. if (obj.frontImg) {
  389. this.carInfoImgViewList.push({
  390. img: obj.frontImg,
  391. deg: 0,
  392. })
  393. }
  394. if (obj.backImg) {
  395. this.carInfoImgViewList.push({
  396. img: obj.backImg,
  397. deg: 0,
  398. })
  399. }
  400. this.carImageListId = obj.ImgList;
  401. Object.assign(this.carInfo, obj.Info);
  402. this.OCRUploadShow = false;
  403. let params = {
  404. carInfo: this.carInfo,
  405. carInfoImgViewList: this.carInfoImgViewList,
  406. carImageListId: this.carImageListId,
  407. }
  408. uni.navigateTo({
  409. url: '/pages/quote/quoteInfo?info=' + JSON.stringify(params)
  410. })
  411. },
  412. //用户机构选择
  413. deptSelect() {
  414. this.deptSelectShow = true;
  415. },
  416. //车牌地区选择
  417. Regionselect() {
  418. this.licenseShow = true;
  419. },
  420. licenseItem(item) {
  421. this.licenseActiveName = item;
  422. this.licenseShow = false;
  423. },
  424. licenseclose() {
  425. this.licenseShow = false;
  426. },
  427. deptclose() {
  428. this.deptSelectShow = false;
  429. },
  430. handleInput(event) {
  431. // 将过滤后的值转换为大写
  432. this.licenseValue = event.toUpperCase();
  433. },
  434. carTypeconfirm(value) {
  435. this.carTypeCode = value.value[0].label;
  436. this.carTypeCodeValue = value.value[0].value;
  437. this.carTypeShow = false;
  438. },
  439. //选择机构
  440. async deptchange(name) {
  441. let info = this.tenantOrglist.find(val => val.systemCode == name);
  442. this.deptradiovalue = info.systemCode;
  443. this.deptradioName = info.sysName;
  444. await store.commit('setUserModules', {
  445. title: 'system_code',
  446. data: info.systemCode,
  447. })
  448. store.commit('setUserModules', {
  449. title: 'system_Name',
  450. data: info.sysName
  451. })
  452. this.deptSelectShow = false;
  453. await this.bannerquery();
  454. await this.getUserInfo();
  455. let res1 = await this.$http.post('/signIn/doSignIn',)
  456. },
  457. async manualQuote() {
  458. uni.navigateTo({
  459. url: '/pages/quote/quoteInfo'
  460. })
  461. },
  462. async manualQuote1() {
  463. if (this.licenseValue !== "" && this.carTypeCodeValue !== "") {
  464. let params = {
  465. licenseNo: this.licenseActiveName + this.licenseValue,
  466. carKindCode: this.carTypeCodeValue,
  467. }
  468. let res = await this.$http.get('/supplementOrder/getCarRecord', params);
  469. if (res.code == '200') {
  470. Object.assign(this.carInfo, res.data.carInfoVo);
  471. Object.assign(this.ownersInfo, res.data.ownersInfo);
  472. Object.assign(this.policyHolderInfo, res.data.policyHolderInfo);
  473. Object.assign(this.insuredPersonInfo, res.data.insuredPersonInfo);
  474. uni.navigateTo({
  475. url: '/pages/quote/quoteInfo',
  476. success: (res) => {
  477. res.eventChannel
  478. .emit(
  479. "acceptData", {
  480. carInfo: this.carInfo,
  481. ownersInfo: this.ownersInfo,
  482. policyHolderInfo: this.policyHolderInfo,
  483. insuredPersonInfo: this.insuredPersonInfo,
  484. })
  485. }
  486. })
  487. } else {
  488. uni.navigateTo({
  489. url: '/pages/quote/quoteInfo'
  490. })
  491. }
  492. } else {
  493. uni.showToast({
  494. title: "请输入车牌号",
  495. icon: 'none',
  496. });
  497. }
  498. },
  499. Service() {
  500. uni.navigateTo({
  501. url: '/pages/tool/helpAndSupport'
  502. })
  503. }
  504. }
  505. }
  506. </script>
  507. <style lang="scss" scoped>
  508. .page {
  509. background-color: #F8F8F8;
  510. height: 100vh;
  511. }
  512. .content {
  513. position: absolute;
  514. top: 327rpx;
  515. left: 0;
  516. right: 0;
  517. padding: 20rpx 30rpx 30rpx;
  518. box-sizing: border-box;
  519. .imgtitle {
  520. font-size: 26rpx;
  521. color: #333;
  522. }
  523. .block {
  524. width: 85%;
  525. height: 50%;
  526. background: #FFFFFF;
  527. border-radius: 10rpx;
  528. border: 1px solid #FFFCB5;
  529. }
  530. .colorBlock {
  531. position: absolute;
  532. top: 52rpx; // 根据实际图片高度调整
  533. left: 50%;
  534. transform: translateX(-50%);
  535. width: 80%;
  536. height: 300rpx;
  537. margin: 0 auto;
  538. margin-top: 16rpx;
  539. background: #fff;
  540. border-radius: 10rpx 10rpx 10rpx 10rpx;
  541. border: 2rpx solid #FFFCB5;
  542. }
  543. .imageUpload {
  544. position: relative;
  545. width: 100%;
  546. height: 376rpx;
  547. background: #fff;
  548. box-shadow: 0px 0px 16px 0px rgba(146, 141, 97, 0.1);
  549. border-radius: 10rpx 10rpx 10rpx 10rpx;
  550. border: 1px solid #FFFCB5;
  551. margin-top: 40rpx;
  552. padding: 30rpx;
  553. box-sizing: border-box;
  554. >image {
  555. width: 100%;
  556. height: 100%;
  557. }
  558. }
  559. .quotebtn {
  560. background: #FDE935;
  561. padding: 19rpx 147rpx;
  562. box-sizing: border-box;
  563. border-radius: 58rpx;
  564. font-size: 36rpx;
  565. color: #1F1F1F;
  566. margin: 60rpx 17rpx 0 17rpx;
  567. }
  568. }
  569. .dept {
  570. position: absolute;
  571. top: 103rpx;
  572. left: 30rpx;
  573. text {
  574. font-size: 30rpx;
  575. color: #333333;
  576. }
  577. }
  578. .Service {
  579. position: absolute;
  580. top: 85rpx;
  581. right: 30rpx;
  582. font-size: 20rpx;
  583. color: #333;
  584. image {
  585. width: 48rpx;
  586. height: 48rpx;
  587. }
  588. }
  589. .swiper {
  590. padding: 30rpx;
  591. margin-top: 480rpx;
  592. box-sizing: border-box;
  593. }
  594. .license {
  595. image {
  596. width: 40rpx;
  597. height: 40rpx;
  598. margin-right: 10rpx;
  599. }
  600. .title {
  601. font-size: 30rpx;
  602. color: #333;
  603. }
  604. .licensePlateRegion {
  605. .Region {
  606. width: 80rpx;
  607. height: 75rpx;
  608. border-radius: 4rpx;
  609. border: 1px solid #FDE935;
  610. padding: 17rpx 25rpx;
  611. font-size: 30rpx;
  612. box-sizing: border-box;
  613. color: #333;
  614. font-weight: bold;
  615. margin-right: 27rpx;
  616. }
  617. }
  618. }
  619. ::v-deep {
  620. .input-placeholder {
  621. font-size: 30rpx;
  622. color: #999 !important;
  623. }
  624. }
  625. //车牌地区选择
  626. .licenselist {
  627. .item {
  628. padding: 12rpx 10rpx;
  629. background-color: #fff;
  630. border-radius: 8rpx;
  631. margin: 8rpx;
  632. font-size: 40rpx;
  633. color: #333;
  634. font-weight: 500;
  635. box-sizing: border-box;
  636. }
  637. .active {
  638. background-color: #FDE935;
  639. }
  640. }
  641. //出单机构选择
  642. .overflow {
  643. padding: 30rpx;
  644. box-sizing: border-box;
  645. .deptselect {
  646. .item {
  647. border-radius: 10rpx;
  648. border: 1px solid #EEEEEE;
  649. padding: 24rpx 25rpx;
  650. margin-bottom: 30rpx;
  651. width: 100%;
  652. box-sizing: border-box;
  653. image {
  654. width: 72rpx;
  655. height: 72rpx;
  656. margin-right: 20rpx;
  657. }
  658. .textregion {
  659. margin-right: auto;
  660. text:first-child {
  661. font-size: 32rpx;
  662. color: #333;
  663. font-weight: bold;
  664. }
  665. text:last-child {
  666. font-size: 30rpx;
  667. color: #666;
  668. }
  669. }
  670. }
  671. }
  672. }
  673. .licenslist {
  674. overflow-x: auto;
  675. /* 超出后可以左右滑动 */
  676. white-space: nowrap;
  677. /* 防止子元素换行 */
  678. padding: 10rpx 0;
  679. /* 添加一些内边距 */
  680. .item {
  681. flex: 0 0 auto;
  682. /* 防止子元素被压缩 */
  683. padding: 8rpx 20rpx;
  684. box-sizing: border-box;
  685. background: linear-gradient(270deg, rgba(253, 233, 53, 0.2) 0%, rgba(220, 238, 111, 0.2) 100%);
  686. border-radius: 2rpx;
  687. margin-right: 10rpx;
  688. font-size: 26rpx;
  689. color: #000;
  690. }
  691. }
  692. .u--input {
  693. padding: 12rpx 18rpx;
  694. border-bottom: 0.5px solid rgb(253, 233, 53);
  695. }
  696. </style>