addcar.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  1. <template>
  2. <view class="check">
  3. <view class="cbox" @click="keyHide">
  4. <view class="chtop flexc">
  5. <view class="line"></view>
  6. <view>车辆信息</view>
  7. </view>
  8. <view class="chmain">
  9. <uni-forms ref="form" :model="datainfo" :rules="rules">
  10. <view class="upbox" @click="getaddImage">
  11. <image :src="baseUrl+datainfo.front" class="img" v-if="datainfo.front"></image>
  12. <image :src="cmico" class="addimg"></image>
  13. <view>扫描行驶证自动填写</view>
  14. </view>
  15. <view class="tips mb22 mt5 cof4">请上传行驶证正面</view>
  16. <view class="carcode">
  17. <view class="tit mb16 lh18"><text class="cof4">*</text>车牌号码</view>
  18. <view class="carinput-input">
  19. <view class="carinput-input-i" :class="{'input-active':carIndex == i}" @tap.stop="inputKey" :data-index="i" v-for="(v,i) in carInput" :key="i" v-if="i < 2">
  20. {{carInput[i].val}}
  21. </view>
  22. <!-- 塞个点 -->
  23. <view class="cir"></view>
  24. <view class="carinput-input-i" :class="{'input-active':carIndex == i}" @tap.stop="inputKey" :data-index="i" v-for="(v,i) in carInput" :key="i" v-if="i < 7&&i>1">
  25. {{carInput[i].val}}
  26. </view>
  27. <view class="carinput-input-i " :class="{'input-active':carIndex == 7}" @tap.stop="inputKey" data-index="7">
  28. <block v-if="carInput[7].val">{{carInput[7].val}}</block>
  29. <view v-else class="newtit flexccc">
  30. <image :src="addnew"></image>
  31. 新能源
  32. </view>
  33. <!-- {{carInput[7].val?carInput[7].val:'+新能源'}} -->
  34. </view>
  35. </view>
  36. </view>
  37. <!-- <uni-forms-item label="车牌号" name="plateNumber">
  38. <view class="flexc">
  39. <uni-easyinput :disabled="isdisabled" v-model="datainfo.plateNumber" :inputBorder='false' placeholder="请输入车牌号" />
  40. <view class="rimg"><image :src="rimg"></image></view>
  41. </view>
  42. </uni-forms-item> -->
  43. <uni-forms-item label="手机号码" required name="residentPhone">
  44. <view class="flexc" >
  45. <uni-easyinput :disabled="isdisabled" v-model="datainfo.residentPhone" :inputBorder='false' placeholder="请输入手机号" />
  46. <view class="rimg"><image :src="rimg"></image></view>
  47. </view>
  48. </uni-forms-item>
  49. <block v-if="zhanfalg">
  50. <uni-forms-item label="居住门户" name="houseId">
  51. <w-select
  52. style="margin-left: 20rpx;"
  53. v-model="chooseValue"
  54. :list='fwlist'
  55. valueName='label'
  56. keyName="value"
  57. :chosevalue="datainfo.detailedAddress"
  58. :filterable='filterable'
  59. @change='getchange'
  60. >
  61. </w-select>
  62. </uni-forms-item>
  63. <uni-forms-item label="品牌车型" name="vehicleBrand">
  64. <view class="flexc">
  65. <uni-easyinput :disabled="isdisabled" v-model="datainfo.vehicleBrand" :inputBorder='false' placeholder="请输入品牌车型" />
  66. <view class="rimg"><image :src="rimg"></image></view>
  67. </view>
  68. </uni-forms-item>
  69. <uni-forms-item label="车辆类型" name="vehicleType">
  70. <view class="flexc" @click.stop="">
  71. <uni-easyinput :disabled="isdisabled" v-model="datainfo.vehicleType" :inputBorder='false' placeholder="请输入车辆类型" />
  72. <view class="rimg"><image :src="rimg"></image></view>
  73. </view>
  74. </uni-forms-item>
  75. <uni-forms-item label="车辆颜色" name="vehicleColour">
  76. <view class="flexc">
  77. <uni-easyinput :disabled="isdisabled" v-model="datainfo.vehicleColour" :inputBorder='false' placeholder="请输入车辆颜色" />
  78. <view class="rimg"><image :src="rimg"></image></view>
  79. </view>
  80. </uni-forms-item>
  81. <uni-forms-item label="发动机编号" name="engineNumber">
  82. <view class="flexc">
  83. <uni-easyinput :disabled="isdisabled" v-model="datainfo.engineNumber" :inputBorder='false' placeholder="请输入发动机编号" />
  84. <view class="rimg"><image :src="rimg"></image></view>
  85. </view>
  86. </uni-forms-item>
  87. <uni-forms-item label="车辆识别代号" name="identificationNumber">
  88. <view class="flexc">
  89. <uni-easyinput :disabled="isdisabled" v-model="datainfo.identificationNumber" :inputBorder='false' placeholder="请输入车辆识别代号" />
  90. <view class="rimg"><image :src="rimg"></image></view>
  91. </view>
  92. </uni-forms-item>
  93. <uni-forms-item label="注册日期" name="registrationDate">
  94. <view class="flexc">
  95. <uni-datetime-picker :disabled="isdisabled" :class="datainfo.registrationDate?'co27':'coa'" type="date" placeholder="请选择注册日期" :border="false" :hide-second='true' v-model="datainfo.registrationDate" />
  96. <view class="rimg"><image :src="rimg"></image></view>
  97. </view>
  98. </uni-forms-item>
  99. <uni-forms-item label="发证日期" name="issueDate">
  100. <view class="flexc">
  101. <uni-datetime-picker :disabled="isdisabled" :class="datainfo.issueDate?'co27':'coa'" type="date" placeholder="请选择发证日期" :border="false" :hide-second='true' v-model="datainfo.issueDate" />
  102. <view class="rimg"><image :src="rimg"></image></view>
  103. </view>
  104. </uni-forms-item>
  105. </block>
  106. <view class="zhanbox flexcc" @click="zhanfalg=!zhanfalg">
  107. {{zhanfalg?"折叠信息":'展开信息'}}<image :class="!zhanfalg?'act':''" :src="upimg"></image>
  108. </view>
  109. </uni-forms>
  110. <view class="rhbtn mt30" @click="getEditFn" v-if="isdisabled">修改</view>
  111. <view class="rhbtn mt30" @click="getSubmit" v-else>确定</view>
  112. <!-- <view class="rhbtn mt30" @click="getNext">确定添加</view> -->
  113. </view>
  114. </view>
  115. <tki-float-keyboard ref="keybd" :mode="'car'" :type="keyType" :title="'车牌键盘'" @del="keyCbDel" @val="keyCbVal" @hide="keyCbHide"></tki-float-keyboard>
  116. <loading></loading>
  117. </view>
  118. </template>
  119. <script>
  120. import config from '@/config'
  121. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  122. import {uploadIdentify,selectValueKey} from '@/utils/common.js'
  123. import wSelect from "@/people/components/w-select/w-select.vue"
  124. import {houseInfolistNoPage} from "@/api/work/work.js"
  125. import {carPut,carAdd,carDet} from "@/api/work/car.js"
  126. import {getDictionaryFn} from "@/api/system/user.js"
  127. import {getvehicleLicense} from "@/api/system/card.js"
  128. import tkiFloatKeyboard from "@/work/components/tki-float-keyboard/tki-float-keyboard.vue";
  129. export default{
  130. components:{wSelect,tkiFloatKeyboard},
  131. data(){
  132. return{
  133. rimg: require('@/work/static/house/rimg.png'),
  134. cmico:require('@/work/static/house/cmico.png'),
  135. upimg:require('@/work/static/house/up.png'),
  136. addnew:require('@/work/static/house/add.png'),
  137. carIndex: -1,
  138. carInput: [
  139. { type: 2, val: "皖" },
  140. { type: 4, val: "A" },
  141. { type: 1, val: "" },
  142. { type: 1, val: "" },
  143. { type: 1, val: "" },
  144. { type: 1, val: "" },
  145. { type: 3, val: "" },
  146. { type: 1, val: "" }
  147. ],
  148. keyType: 0,
  149. isPower: false, // 新能源
  150. rimg: require('@/mine/static/house/rimg.png'),
  151. cmico:require('@/mine/static/house/cmico.png'),
  152. upimg:require('@/mine/static/house/up.png'),
  153. addnew:require('@/mine/static/house/add.png'),
  154. baseUrl:config.baseUrl,
  155. datainfo:{
  156. // "carId":"",//业主车辆主键
  157. "houseId":"",//房屋信息id
  158. "detailedAddress":"",//房屋的详细门牌号
  159. // "userId":"",//用户id
  160. "residentId":"",//居住人员表id
  161. // "userName":"",//业主姓名
  162. "residentPhone":"",//业主手机号
  163. "plateNumber":"",//车牌号码
  164. "vehicleBrand":"",//车辆车型
  165. "vehicleType":"",//车辆类型
  166. "engineNumber":"",//发动机编号
  167. "identificationNumber":"",//车辆识别代号
  168. "registrationDate":"",//注册日期
  169. "issueDate":"",//发证日期
  170. },
  171. // vehicleEnergy 车辆能源类型 燃油 新能源
  172. zhanfalg:true,
  173. syqxidx:'',
  174. filterable:true,
  175. chooseValue:'',
  176. fwlist:[],
  177. isdisabled:false,
  178. rules:{
  179. houseId: {rules: [{required: true,errorMessage: '请选择居住门户' }]},
  180. detailedAddress: {rules: [{required: true,errorMessage: '请输入居住地址' }]},
  181. residentPhone: {rules: [{required: true,errorMessage: '请输入手机号'}, {pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,errorMessage:'请输入正确的手机号码'}]},
  182. },
  183. cllx:"",
  184. cllxidx:0,
  185. cllxList:[],
  186. id:'',
  187. isdisabled:false,
  188. ptype:'add',
  189. userId:this.$store.state.user.userId,
  190. phonenumber:this.$store.state.user.phonenumber,
  191. }
  192. },
  193. onLoad: function(e) {
  194. if(e.id){
  195. this.id=e.id;
  196. this.ptype="edit";
  197. this.isdisabled=true;
  198. this.getDetail()
  199. }
  200. this.init()
  201. },
  202. methods:{
  203. checkPermi, checkRole,
  204. getEditFn(){
  205. this.isdisabled=false;
  206. },
  207. getchange(e){
  208. this.datainfo.houseId=e.value;
  209. this.datainfo.detailedAddress=e.label;
  210. },
  211. statusFormats(data, list,type) {
  212. var aite=selectValueKey(list, data);
  213. if(type=='cllx'){
  214. this.cllxidx=aite.key;
  215. }
  216. return aite.actions;
  217. },
  218. init(){
  219. // 自己的房屋
  220. var params={
  221. userId:this.userId
  222. }
  223. houseInfolistNoPage(params).then(res=>{
  224. if(res.code==200){
  225. this.fwlist= res.rows.map(v => {
  226. return {
  227. label: v.detailedAddress,
  228. value: v.houseId,
  229. location: v.location
  230. }
  231. })
  232. }
  233. })
  234. // // 车辆类型
  235. // getDictionaryFn('cartype').then(res=>{
  236. // if(res.code==200){
  237. // this.cllxList = res.data.map(v => {
  238. // return {
  239. // dictLabel: v.dictLabel,
  240. // dictValue: v.dictValue
  241. // }
  242. // })
  243. // }
  244. // })
  245. },
  246. bindDateChange(e){
  247. var val=e.detail.value;
  248. this.datainfo.vehicleBrand=this.cllxList[val].dictValue;
  249. this.cllx=this.cllxList[val].dictLabel;
  250. },
  251. getDetail(){
  252. carDet(this.id).then(res=>{
  253. if(res.code==200){
  254. this.datainfo=res.data;
  255. if(res.data.plateNumber){
  256. this.toCarCode(res.data.plateNumber)
  257. if(res.data.vehicleEnergy=='新能源'){
  258. this.isPower=true;
  259. }
  260. }
  261. }
  262. })
  263. },
  264. getSubmit(){
  265. var num=this.toBind()
  266. if(num=='-1'){
  267. this.$toast('请输入完整的车牌号')
  268. return
  269. }
  270. this.$refs.form.validate().then(res => {
  271. var params=JSON.parse(JSON.stringify(this.datainfo))
  272. if(this.ptype=='add'){
  273. carAdd(params).then(res=>{
  274. if(res.code==200){
  275. this.$toast("新增成功")
  276. setTimeout(function(){
  277. uni.$emit("carlist")
  278. uni.navigateBack({
  279. delta:1
  280. })
  281. },1500)
  282. }
  283. })
  284. }else{
  285. carPut(params).then(res=>{
  286. if(res.code==200){
  287. this.$toast("修改成功")
  288. setTimeout(function(){
  289. uni.$emit("carlist")
  290. uni.navigateBack({
  291. delta:1
  292. })
  293. },1500)
  294. }
  295. })
  296. }
  297. })
  298. },
  299. getaddImage(e){
  300. let that = this;
  301. let file =[],count=9
  302. uni.chooseImage({
  303. count: 1,
  304. success:function(res){
  305. let img= res.tempFilePaths;
  306. if(img.length + file.length > count){
  307. uni.showToast({
  308. title: '最多上传'+count+'张图片',
  309. icon: 'none',
  310. duration: 2000
  311. })
  312. }else{
  313. let imglen = res.tempFilePaths.length;
  314. var fuwufile = [];
  315. uploadIdentify('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
  316. var resurl=rs[0];
  317. // if(e=='front'){
  318. // that.datainfo.front=resurl.fileName;
  319. // }else{
  320. // that.datainfo.back=resurl.fileName;
  321. // }
  322. if(rs&&rs.length>0){
  323. var obj={
  324. url:resurl.urlOnline
  325. }
  326. that.getOcrIdCard(obj)
  327. }
  328. })
  329. }
  330. }
  331. });
  332. },
  333. getOcrIdCard(obj){
  334. var params={
  335. image:obj.url,
  336. }
  337. getvehicleLicense(params).then(res=>{
  338. if(res.code==200){
  339. var datainfo=res.data;
  340. this.datainfo.vehicleBrand=datainfo.vehicleBrand;
  341. this.datainfo.vehicleType=datainfo.vehicleType;
  342. this.datainfo.engineNumber=datainfo.engineNumber;
  343. this.datainfo.identificationNumber=datainfo.identificationNumber;
  344. var zcrq=datainfo.registrationDate;
  345. var fzrq=datainfo.issueDate;
  346. this.datainfo.registrationDate=`${zcrq.slice(0, 4)}-${zcrq.slice(4, 6)}-${zcrq.slice(6, 8)}`;
  347. this.datainfo.issueDate=`${fzrq.slice(0, 4)}-${fzrq.slice(4, 6)}-${fzrq.slice(6, 8)}`;
  348. this.datainfo.plateNumber=datainfo.plateNumber;
  349. this.toCarCode(datainfo.plateNumber)
  350. }
  351. })
  352. },
  353. // 车牌
  354. // 判定是否为空
  355. empty(v) {
  356. let tp = typeof v,
  357. rt = false;
  358. if (tp == "number" && String(v) == "") {
  359. rt = true
  360. } else if (tp == "undefined") {
  361. rt = true
  362. } else if (tp == "object") {
  363. if (JSON.stringify(v) == "{}" || JSON.stringify(v) == "[]" || v == null) rt = true
  364. } else if (tp == "string") {
  365. if (v == "" || v == "undefined" || v == "null" || v == "{}" || v == "[]") rt = true
  366. } else if (tp == "function") {
  367. rt = false
  368. }
  369. return rt
  370. },
  371. inputKey(e) {
  372. let that = this;
  373. let data = e.currentTarget.dataset;
  374. that.carIndex = data.index;
  375. if (data.index >= 7) {
  376. that.isPower=true;
  377. that.carIndex = 7;
  378. // if (!that.isPower) {
  379. // return false;
  380. // } else {
  381. // that.carIndex = 7;
  382. // }
  383. } else {
  384. that.carIndex = data.index;
  385. }
  386. that.upKeyType();
  387. that.keyShow();
  388. },
  389. keyCbVal(e) {
  390. let that = this;
  391. let index = Number(that.carIndex);
  392. if (index >= 0 && index < 6) {
  393. that.carInput[index].val = e;
  394. that.carIndex = index + 1;
  395. } else if (index == 6) {
  396. that.carInput[index].val = e;
  397. if (that.isPower) {
  398. // 新能源
  399. that.carIndex = 7;
  400. } else {
  401. // 不是新能源出输入结束
  402. that.keyHide();
  403. that.carIndex = -2;
  404. console.log('非新能源车输入完毕')
  405. }
  406. } else if (index == 7) {
  407. // 新能源车输入完毕
  408. that.carInput[index].val = e;
  409. that.keyHide();
  410. that.carIndex = -3;
  411. console.log('新能源车输入完毕')
  412. }
  413. that.upKeyType();
  414. },
  415. keyCbDel(e) {
  416. let index = this.carIndex;
  417. console.log(index,1)
  418. if (index > 0) {
  419. if (!this.empty(this.carInput[index].val)) {
  420. this.carInput[index].val = "";
  421. this.carIndex = index;
  422. } else {
  423. this.carInput[index - 1].val = "";
  424. this.carIndex = index - 1;
  425. }
  426. if(index==7){
  427. var obj={ type: 1, val: "" }
  428. this.carInput.splice(index,1,obj)
  429. this.isPower=false;
  430. }
  431. console.log(this.carInput)
  432. }
  433. this.upKeyType();
  434. },
  435. upKeyType() {
  436. if (!this.empty(this.carInput[this.carIndex])) {
  437. this.keyType = this.carInput[this.carIndex].type;
  438. }
  439. },
  440. keyShow() {
  441. this.$refs.keybd._keyShow();
  442. },
  443. keyHide() {
  444. this.$refs.keybd._keyHide();
  445. },
  446. keyCbHide() {
  447. if (this.carIndex != -3 || this.carIndex != -2) {
  448. this.carIndex = -1;
  449. }
  450. },
  451. powerChange(e) {
  452. let that = this
  453. let i = that.checkCar().i
  454. if (e.detail.value.length > 0) {
  455. that.isPower = true;
  456. if (i == -1) {
  457. that.carIndex = 7;
  458. } else {
  459. that.carIndex = i;
  460. }
  461. that.keyShow();
  462. } else {
  463. that.isPower = false;
  464. that.carInput[7].val = "";
  465. if (that.carIndex == 7) {
  466. that.keyHide();
  467. that.carIndex = -2;
  468. }
  469. }
  470. that.upKeyType();
  471. },
  472. checkCar() {
  473. // 检查车牌是否输入完成
  474. let that = this;
  475. let i = 7;
  476. let rt = { i: -1, isempty: false, val: "" };
  477. if (that.isPower) {
  478. i = 8;
  479. }
  480. for (let index = 0; index < i; index++) {
  481. const obj = that.carInput[index];
  482. if (this.empty(String(obj.val))) {
  483. rt.i = index;
  484. rt.isempty = true;
  485. rt.val = "";
  486. break;
  487. }
  488. rt.val += that.carInput[index].val;
  489. }
  490. return rt;
  491. },
  492. toBind() {
  493. let that = this
  494. let ck = that.checkCar();
  495. if (ck.i == -1 && !ck.isempty) {
  496. this.datainfo.plateNumber=ck.val;
  497. if(this.isPower){
  498. this.datainfo.vehicleEnergy='新能源'
  499. }else{
  500. this.datainfo.vehicleEnergy='燃油车'
  501. }
  502. return ck.val
  503. } else {
  504. // 显示键盘输入
  505. // that.keyShow();
  506. // that.carIndex = ck.i;
  507. // that.keyType = that.carInput[ck.i].type;
  508. return '-1'
  509. }
  510. },
  511. //分解车牌
  512. toCarCode(code){
  513. var list=JSON.parse(JSON.stringify(this.carInput))
  514. var newArr=[]
  515. if(code){
  516. newArr=code.split('')
  517. }
  518. list.forEach((ite,idx)=>{
  519. ite.val=newArr[idx]
  520. })
  521. if(newArr.length==8){
  522. this.isPower=true;
  523. }
  524. this.carInput=JSON.parse(JSON.stringify(list))
  525. }
  526. }
  527. }
  528. </script>
  529. <style>
  530. page{background: #F3F3F0;}
  531. </style>
  532. <style lang="scss" scoped>
  533. // 车牌
  534. .carinput {margin-top: 74rpx;display: flex;flex-direction: column;padding-left: 40rpx;padding-right: 40rpx}
  535. .carinput-input{display: flex;justify-content: center;padding-bottom: 40rpx;border-bottom: 2rpx solid #CDCDCD;align-items: center;
  536. .input-active {color: #0256FD;border: 2rpx solid #0256FD;}
  537. .cir{width: 14rpx;height: 14rpx;background: #8D8D8D;border-radius: 50%;margin-right: 18rpx;}
  538. }
  539. .carinput-input-i{width: 62rpx;height: 88rpx;background: #F5F4F7;border-radius: 10rpx;font-weight: bold;font-size: 30rpx;color: #272727;margin-right: 18rpx;text-align: center;box-sizing: border-box;display: flex;flex-direction: column;align-items: center;justify-content: center;
  540. .newtit{
  541. font-weight: bold;font-size: 16rpx;color: #0256FD;
  542. image{width: 28rpx;height: 28rpx;margin-bottom: 4rpx;}
  543. }
  544. }
  545. .check /deep/ .uni-date-editor--x__disabled{opacity: 1;}
  546. .carinput-input-i:nth-last-child(1) {margin-right: 0}
  547. .check /deep/ .uni-forms-item__label .is-required{width: auto;}
  548. .coa /deep/ .uni-date__x-input{text-align: right;color: #AAAAAA;}
  549. .check /deep/ .select-wrap{border: none;width: 100%;}
  550. .check /deep/ .uni-forms-item{min-height: 106rpx;box-sizing: border-box;display: flex;align-items: center;margin-bottom: 0;border-bottom: 2rpx solid #E6E6E6;padding:10rpx 0;}
  551. .check /deep/ .uni-forms-item__label{font-weight: bold;font-size: 26rpx;color: #222327;flex: 0 0 auto;width: auto !important;}
  552. .check /deep/ .uni-easyinput{flex: 1;text-align: right;font-size: 26rpx;color: #222327;}
  553. .check /deep/ .uni-easyinput__content-textarea{min-height: 40rpx;font-size: 26rpx;}
  554. .check /deep/ .uni-easyinput__placeholder-class{font-size: 26rpx;color: #AAAAAA;}
  555. .check /deep/ .uni-input-input{font-size: 26rpx;}
  556. .check /deep/ .uni-textarea-textarea{font-size: 26rpx;}
  557. .check /deep/ .uni-forms-item__label text{width: 110rpx;text-align-last: justify;}
  558. .check /deep/ .is-disabled{color: #222327;background-color: #ffffff !important;}
  559. .check{min-height: 100vh;padding: 20rpx 24rpx 28rpx;box-sizing: border-box;display: flex;box-sizing: border-box;}
  560. .cbox{background: #FFFFFF;border-radius: 20rpx;flex: 1;padding-bottom: 76rpx;
  561. .chtop{padding-top: 32rpx;margin-bottom: 22rpx;
  562. .line{width: 14rpx;height: 48rpx;background: #0256FD;border-radius:0 12rpx 12rpx 0;margin-right: 18rpx;}
  563. view{font-weight: bold;font-size: 32rpx;color: #272727;}
  564. }
  565. .chmain{
  566. padding: 0 24rpx;
  567. .upbox{height: 224rpx;background: #EFF4FF;border-radius: 20rpx;display: flex;align-items: center;justify-content: center;flex-direction: column;overflow: auto;
  568. .img{width: 100%;height: 100%;}
  569. .addimg{width: 90rpx;height: 90rpx;margin-bottom: 8rpx;}
  570. view{font-weight: bold;font-size: 26rpx;color: #4C6686;}
  571. }
  572. .carcode{
  573. .tit{font-weight: bold;font-size: 26rpx;color: #272727;}
  574. }
  575. }
  576. .rimg{width: 16rpx;height: 28rpx;flex: 0 0 auto;margin-left: 20rpx;
  577. image{width: 100%;height: 100%;}
  578. }
  579. .zhanbox{font-weight: 500;font-size: 24rpx;color: #AAAAAA;padding: 16rpx 0;margin-top: 20rpx;
  580. image{width: 20rpx;height: 12rpx;margin-left: 18rpx;transition: all 0.3s;
  581. &.act{transform: rotate(-180deg);}
  582. }
  583. }
  584. }
  585. .tips{font-weight: bold;color: #272727;font-size: 26rpx;margin-left: 8rpx;}
  586. </style>