addcar.vue 20 KB

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