addcar.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  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. }
  221. houseInfolistNoPage(params).then(res=>{
  222. if(res.code==200){
  223. this.fwlist= res.rows.map(v => {
  224. return {
  225. label: v.detailedAddress,
  226. value: v.houseId,
  227. location: v.location
  228. }
  229. })
  230. }
  231. })
  232. // // 车辆类型
  233. // getDictionaryFn('cartype').then(res=>{
  234. // if(res.code==200){
  235. // this.cllxList = res.data.map(v => {
  236. // return {
  237. // dictLabel: v.dictLabel,
  238. // dictValue: v.dictValue
  239. // }
  240. // })
  241. // }
  242. // })
  243. },
  244. bindDateChange(e){
  245. var val=e.detail.value;
  246. this.datainfo.vehicleBrand=this.cllxList[val].dictValue;
  247. this.cllx=this.cllxList[val].dictLabel;
  248. },
  249. getDetail(){
  250. carDet(this.id).then(res=>{
  251. if(res.code==200){
  252. this.datainfo=res.data;
  253. if(res.data.plateNumber){
  254. this.toCarCode(res.data.plateNumber)
  255. if(res.data.vehicleEnergy=='新能源'){
  256. this.isPower=true;
  257. }
  258. }
  259. }
  260. })
  261. },
  262. getSubmit(){
  263. var num=this.toBind()
  264. if(num=='-1'){
  265. this.$toast('请输入完整的车牌号')
  266. return
  267. }
  268. this.$refs.form.validate().then(res => {
  269. var params=JSON.parse(JSON.stringify(this.datainfo))
  270. if(this.ptype=='add'){
  271. carAdd(params).then(res=>{
  272. if(res.code==200){
  273. this.$toast("新增成功")
  274. setTimeout(function(){
  275. uni.$emit("carlist")
  276. uni.navigateBack({
  277. delta:1
  278. })
  279. },1500)
  280. }
  281. })
  282. }else{
  283. carPut(params).then(res=>{
  284. if(res.code==200){
  285. this.$toast("修改成功")
  286. setTimeout(function(){
  287. uni.$emit("carlist")
  288. uni.navigateBack({
  289. delta:1
  290. })
  291. },1500)
  292. }
  293. })
  294. }
  295. })
  296. },
  297. getaddImage(e){
  298. let that = this;
  299. let file =[],count=9
  300. uni.chooseImage({
  301. count: 1,
  302. success:function(res){
  303. let img= res.tempFilePaths;
  304. if(img.length + file.length > count){
  305. uni.showToast({
  306. title: '最多上传'+count+'张图片',
  307. icon: 'none',
  308. duration: 2000
  309. })
  310. }else{
  311. let imglen = res.tempFilePaths.length;
  312. var fuwufile = [];
  313. uploadIdentify('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
  314. var resurl=rs[0];
  315. // if(e=='front'){
  316. // that.datainfo.front=resurl.fileName;
  317. // }else{
  318. // that.datainfo.back=resurl.fileName;
  319. // }
  320. if(rs&&rs.length>0){
  321. var obj={
  322. url:resurl.urlOnline
  323. }
  324. that.getOcrIdCard(obj)
  325. }
  326. })
  327. }
  328. }
  329. });
  330. },
  331. getOcrIdCard(obj){
  332. var params={
  333. image:obj.url,
  334. }
  335. getvehicleLicense(params).then(res=>{
  336. if(res.code==200){
  337. var datainfo=res.data;
  338. this.datainfo.vehicleBrand=datainfo.vehicleBrand;
  339. this.datainfo.vehicleType=datainfo.vehicleType;
  340. this.datainfo.engineNumber=datainfo.engineNumber;
  341. this.datainfo.identificationNumber=datainfo.identificationNumber;
  342. var zcrq=datainfo.registrationDate;
  343. var fzrq=datainfo.issueDate;
  344. this.datainfo.registrationDate=`${zcrq.slice(0, 4)}-${zcrq.slice(4, 6)}-${zcrq.slice(6, 8)}`;
  345. this.datainfo.issueDate=`${fzrq.slice(0, 4)}-${fzrq.slice(4, 6)}-${fzrq.slice(6, 8)}`;
  346. this.datainfo.plateNumber=datainfo.plateNumber;
  347. this.toCarCode(datainfo.plateNumber)
  348. }
  349. })
  350. },
  351. // 车牌
  352. // 判定是否为空
  353. empty(v) {
  354. let tp = typeof v,
  355. rt = false;
  356. if (tp == "number" && String(v) == "") {
  357. rt = true
  358. } else if (tp == "undefined") {
  359. rt = true
  360. } else if (tp == "object") {
  361. if (JSON.stringify(v) == "{}" || JSON.stringify(v) == "[]" || v == null) rt = true
  362. } else if (tp == "string") {
  363. if (v == "" || v == "undefined" || v == "null" || v == "{}" || v == "[]") rt = true
  364. } else if (tp == "function") {
  365. rt = false
  366. }
  367. return rt
  368. },
  369. inputKey(e) {
  370. let that = this;
  371. let data = e.currentTarget.dataset;
  372. that.carIndex = data.index;
  373. if (data.index >= 7) {
  374. that.isPower=true;
  375. that.carIndex = 7;
  376. // if (!that.isPower) {
  377. // return false;
  378. // } else {
  379. // that.carIndex = 7;
  380. // }
  381. } else {
  382. that.carIndex = data.index;
  383. }
  384. that.upKeyType();
  385. that.keyShow();
  386. },
  387. keyCbVal(e) {
  388. let that = this;
  389. let index = Number(that.carIndex);
  390. if (index >= 0 && index < 6) {
  391. that.carInput[index].val = e;
  392. that.carIndex = index + 1;
  393. } else if (index == 6) {
  394. that.carInput[index].val = e;
  395. if (that.isPower) {
  396. // 新能源
  397. that.carIndex = 7;
  398. } else {
  399. // 不是新能源出输入结束
  400. that.keyHide();
  401. that.carIndex = -2;
  402. console.log('非新能源车输入完毕')
  403. }
  404. } else if (index == 7) {
  405. // 新能源车输入完毕
  406. that.carInput[index].val = e;
  407. that.keyHide();
  408. that.carIndex = -3;
  409. console.log('新能源车输入完毕')
  410. }
  411. that.upKeyType();
  412. },
  413. keyCbDel(e) {
  414. let index = this.carIndex;
  415. console.log(index,1)
  416. if (index > 0) {
  417. if (!this.empty(this.carInput[index].val)) {
  418. this.carInput[index].val = "";
  419. this.carIndex = index;
  420. } else {
  421. this.carInput[index - 1].val = "";
  422. this.carIndex = index - 1;
  423. }
  424. if(index==7){
  425. var obj={ type: 1, val: "" }
  426. this.carInput.splice(index,1,obj)
  427. this.isPower=false;
  428. }
  429. console.log(this.carInput)
  430. }
  431. this.upKeyType();
  432. },
  433. upKeyType() {
  434. if (!this.empty(this.carInput[this.carIndex])) {
  435. this.keyType = this.carInput[this.carIndex].type;
  436. }
  437. },
  438. keyShow() {
  439. this.$refs.keybd._keyShow();
  440. },
  441. keyHide() {
  442. this.$refs.keybd._keyHide();
  443. },
  444. keyCbHide() {
  445. if (this.carIndex != -3 || this.carIndex != -2) {
  446. this.carIndex = -1;
  447. }
  448. },
  449. powerChange(e) {
  450. let that = this
  451. let i = that.checkCar().i
  452. if (e.detail.value.length > 0) {
  453. that.isPower = true;
  454. if (i == -1) {
  455. that.carIndex = 7;
  456. } else {
  457. that.carIndex = i;
  458. }
  459. that.keyShow();
  460. } else {
  461. that.isPower = false;
  462. that.carInput[7].val = "";
  463. if (that.carIndex == 7) {
  464. that.keyHide();
  465. that.carIndex = -2;
  466. }
  467. }
  468. that.upKeyType();
  469. },
  470. checkCar() {
  471. // 检查车牌是否输入完成
  472. let that = this;
  473. let i = 7;
  474. let rt = { i: -1, isempty: false, val: "" };
  475. if (that.isPower) {
  476. i = 8;
  477. }
  478. for (let index = 0; index < i; index++) {
  479. const obj = that.carInput[index];
  480. if (this.empty(String(obj.val))) {
  481. rt.i = index;
  482. rt.isempty = true;
  483. rt.val = "";
  484. break;
  485. }
  486. rt.val += that.carInput[index].val;
  487. }
  488. return rt;
  489. },
  490. toBind() {
  491. let that = this
  492. let ck = that.checkCar();
  493. if (ck.i == -1 && !ck.isempty) {
  494. this.datainfo.plateNumber=ck.val;
  495. if(this.isPower){
  496. this.datainfo.vehicleEnergy='新能源'
  497. }else{
  498. this.datainfo.vehicleEnergy='燃油车'
  499. }
  500. return ck.val
  501. } else {
  502. // 显示键盘输入
  503. // that.keyShow();
  504. // that.carIndex = ck.i;
  505. // that.keyType = that.carInput[ck.i].type;
  506. return '-1'
  507. }
  508. },
  509. //分解车牌
  510. toCarCode(code){
  511. var list=JSON.parse(JSON.stringify(this.carInput))
  512. var newArr=[]
  513. if(code){
  514. newArr=code.split('')
  515. }
  516. list.forEach((ite,idx)=>{
  517. ite.val=newArr[idx]
  518. })
  519. if(newArr.length==8){
  520. this.isPower=true;
  521. }
  522. this.carInput=JSON.parse(JSON.stringify(list))
  523. }
  524. }
  525. }
  526. </script>
  527. <style>
  528. page{background: #F3F3F0;}
  529. </style>
  530. <style lang="scss" scoped>
  531. // 车牌
  532. .carinput {margin-top: 74rpx;display: flex;flex-direction: column;padding-left: 40rpx;padding-right: 40rpx}
  533. .carinput-input{display: flex;justify-content: center;padding-bottom: 40rpx;border-bottom: 2rpx solid #CDCDCD;align-items: center;
  534. .input-active {color: #0256FD;border: 2rpx solid #0256FD;}
  535. .cir{width: 14rpx;height: 14rpx;background: #8D8D8D;border-radius: 50%;margin-right: 18rpx;}
  536. }
  537. .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;
  538. .newtit{
  539. font-weight: bold;font-size: 16rpx;color: #0256FD;
  540. image{width: 28rpx;height: 28rpx;margin-bottom: 4rpx;}
  541. }
  542. }
  543. .check /deep/ .uni-date-editor--x__disabled{opacity: 1;}
  544. .carinput-input-i:nth-last-child(1) {margin-right: 0}
  545. .check /deep/ .uni-forms-item__label .is-required{width: auto;}
  546. .coa /deep/ .uni-date__x-input{text-align: right;color: #AAAAAA;}
  547. .check /deep/ .select-wrap{border: none;width: 100%;}
  548. .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;}
  549. .check /deep/ .uni-forms-item__label{font-weight: bold;font-size: 26rpx;color: #222327;flex: 0 0 auto;width: auto !important;}
  550. .check /deep/ .uni-easyinput{flex: 1;text-align: right;font-size: 26rpx;color: #222327;}
  551. .check /deep/ .uni-easyinput__content-textarea{min-height: 40rpx;font-size: 26rpx;}
  552. .check /deep/ .uni-easyinput__placeholder-class{font-size: 26rpx;color: #AAAAAA;}
  553. .check /deep/ .uni-input-input{font-size: 26rpx;}
  554. .check /deep/ .uni-textarea-textarea{font-size: 26rpx;}
  555. .check /deep/ .uni-forms-item__label text{width: 110rpx;text-align-last: justify;}
  556. .check /deep/ .is-disabled{color: #222327;background-color: #ffffff !important;}
  557. .check{min-height: 100vh;padding: 20rpx 24rpx 28rpx;box-sizing: border-box;display: flex;box-sizing: border-box;}
  558. .cbox{background: #FFFFFF;border-radius: 20rpx;flex: 1;padding-bottom: 76rpx;
  559. .chtop{padding-top: 32rpx;margin-bottom: 22rpx;
  560. .line{width: 14rpx;height: 48rpx;background: #0256FD;border-radius:0 12rpx 12rpx 0;margin-right: 18rpx;}
  561. view{font-weight: bold;font-size: 32rpx;color: #272727;}
  562. }
  563. .chmain{
  564. padding: 0 24rpx;
  565. .upbox{height: 224rpx;background: #EFF4FF;border-radius: 20rpx;display: flex;align-items: center;justify-content: center;flex-direction: column;overflow: auto;
  566. .img{width: 100%;height: 100%;}
  567. .addimg{width: 90rpx;height: 90rpx;margin-bottom: 8rpx;}
  568. view{font-weight: bold;font-size: 26rpx;color: #4C6686;}
  569. }
  570. .carcode{
  571. .tit{font-weight: bold;font-size: 26rpx;color: #272727;}
  572. }
  573. }
  574. .rimg{width: 16rpx;height: 28rpx;flex: 0 0 auto;margin-left: 20rpx;
  575. image{width: 100%;height: 100%;}
  576. }
  577. .zhanbox{font-weight: 500;font-size: 24rpx;color: #AAAAAA;padding: 16rpx 0;margin-top: 20rpx;
  578. image{width: 20rpx;height: 12rpx;margin-left: 18rpx;transition: all 0.3s;
  579. &.act{transform: rotate(-180deg);}
  580. }
  581. }
  582. }
  583. .tips{font-weight: bold;color: #272727;font-size: 26rpx;margin-left: 8rpx;}
  584. </style>