quote1.vue 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481
  1. <template>
  2. <view :style="getHeight" style="background-color: #F5F5F5;">
  3. <!-- 头部 -->
  4. <view class="carInfo w-100 px-3 box-sizing">
  5. <view class="d-flex">
  6. <view class="icon iconfont icon-tree-round-car flex-shrink topLeft"></view>
  7. <view class="topRight d-flex flex-1 p-3 flex-column" style="color: #FFFFFF;">
  8. <view class="d-flex flex-1">
  9. <view class="font-lg d-flex a-center">{{this.carInfo.licenseNo}}
  10. <view class="icon iconfont icon-bianji1 ml-2" @tap="toCarInfo"></view>
  11. </view>
  12. </view>
  13. <view class="brandName">{{this.carInfo.modelcname}}</view>
  14. </view>
  15. </view>
  16. <view class="other d-flex j-sb px-3">
  17. <view class="d-flex flex-1 a-center">
  18. <view class="privilege d-flex a-center j-center flex-shrink px-2">特权</view>
  19. <view class="content">每月自动查违章,无违章领奖励</view>
  20. </view>
  21. <view class="flex-shrink icon iconfont icon-youjiantou d-flex a-center font-sm"></view>
  22. </view>
  23. </view>
  24. <!-- 报价方案 -->
  25. <view class="pageContent">
  26. <view class="quotePlan mx-3">
  27. <view class="header j-sb d-flex a-center px-3">
  28. <view class="title font-md">报价方案</view>
  29. <view class="adjustPlan main-text-color" @tap="toInsureItems">调整方案</view>
  30. </view>
  31. <view class="body">
  32. <view class="insurance">
  33. <template v-if="jqstartDate">
  34. <view class="row j-sb d-flex a-center">
  35. <view>交强险</view>
  36. <view>投保</view>
  37. </view>
  38. </template>
  39. <template v-if="systartDate">
  40. <block v-for="(item,index) in insureList" :key="index">
  41. <template v-if="item.amount!=0">
  42. <view class="row j-sb d-flex a-center">
  43. <view>{{item.kindName}}</view>
  44. <block v-for="(item2,index2) in item.amtList" :key="index2">
  45. <template v-if="item2.value == item.amount">
  46. <view>{{item2.label}}</view>
  47. </template>
  48. </block>
  49. </view>
  50. </template>
  51. </block>
  52. </template>
  53. <view class="d-flex" v-if="jqstartDate">
  54. <view>起保日期:</view>
  55. <view>
  56. <p class="date d-flex a-center font-md" style="color: #FFFFFF;" v-if="jqstartDate">
  57. 交强险 {{this.jqstartDate}}
  58. </p>
  59. <p class="date d-flex a-center font-md" style="color: #FFFFFF;" v-if="systartDate">商业险
  60. {{this.systartDate}}
  61. </p>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="addedServices">
  66. <view class="row j-sb d-flex a-center">
  67. <view>增值服务</view>
  68. <view>赠送</view>
  69. </view>
  70. <view style="padding: 15upx;color: #A6A6A6;font-size: 24upx;background-color: #F8FAFC;">
  71. 注:包含道路救援/安全检测/代为驾驶/代为送检,投保以上商业主险免费赠送,各家保司各个地区旅游差异,具体以保单信息为准</view>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="quoteCompany">
  76. <view class="header j-sb d-flex a-center">
  77. <view class="title d-flex">精选保险公司<view class="icon iconfont icon-Group-"></view>
  78. </view>
  79. </view>
  80. <block v-for="(totalitem,totalindex) in totalCompanyList" :key="index">
  81. <template>
  82. <view class="quoteCompanyItem">
  83. <view class="top dis f-c">
  84. <ls-loading v-show="totalitem.quoteCode==1" text="掌柜正在为您报价,请稍等......"
  85. :animation="animation" fontSize="22" />
  86. <view class="companyIcon dis j-s a-c">
  87. <view class="dis ">
  88. <!-- 勾选框 -->
  89. <u-checkbox
  90. @change="event=>checkboxChange(event,totalitem.id,totalitem.cnName, totalindex)"
  91. v-model="totalitem.checked" active-color="rgb(250, 53, 52)"></u-checkbox>
  92. <!-- logo -->
  93. <image :src="totalitem.logo"></image>
  94. <!-- 名称 -->
  95. <view class="companyName">{{totalitem.namesimple}}</view>
  96. </view>
  97. <!-- 价格 -->
  98. <text v-show="totalitem.quoteCode==200"
  99. class="sum">¥{{totalitem.result.sumPermium}}</text>
  100. <text
  101. v-show="(totalitem.quoteCode != '200') && (totalitem.quoteCode != '0') && (totalitem.quoteCode != '1')"
  102. class="sum" style="color: #999;font-size: 12px;"
  103. @click="ErrorMsg(totalitem.msg)">报价失败,请点击查看</text>
  104. </view>
  105. <view class="" v-if="totalitem.checked">
  106. <u-form-item label="报价协议选择" :prop="totalitem.agreementId" label-width="200"
  107. :border-bottom='false' style="width: 250px;padding: 0;">
  108. <u-input type="select" :select-open="totalitem.selectShow"
  109. v-model="totalitem.agreementName" placeholder="请选择协议"
  110. @click="totalitem.selectShow = true"></u-input>
  111. <u-select mode="single-column" :list="totalitem.agreement" value-name="id"
  112. label-name="agreementName" v-model="totalitem.selectShow"
  113. @confirm="val=>selectConfirm(val,totalindex)"></u-select>
  114. </u-form-item>
  115. </view>
  116. <button v-show="totalitem.quoteCode==200" type="default"
  117. class="d-flex a-center j-center btn"
  118. @tap="querydetial(totalitem.result.companyId)">查看详情</button>
  119. </view>
  120. </view>
  121. </template>
  122. </block>
  123. </view>
  124. </view>
  125. <wyb-popup ref="carTypePopup" type="center" :scrollY="true" mode="size-fixed" :maskClickClose="false"
  126. height="640" width="690" radius="6">
  127. <view class="popupBody">
  128. <block v-for="(item,index) in carTypeList" :key="index">
  129. <view class="carTypeItem d-flex " @tap="chooseCarType(item)">
  130. <view class="nav d-flex flex-1 flex-column">
  131. <view class="carseriesName">{{item.carseriesname}}</view>
  132. <view class="modelName">{{item.modelname}}</view>
  133. <view class="nav_box d-flex">
  134. <span class="zid">{{item.transmissiontype}}</span>
  135. <p class=" d-flex a-center">
  136. {{item.caryear}}{{item.caryear==""?"":"款 | "}}{{item.seatmax}}座
  137. </p>
  138. </view>
  139. </view>
  140. <view class="price d-flex a-center j-center">¥{{item.purchaseprice}}</view>
  141. </view>
  142. </block>
  143. </view>
  144. </wyb-popup>
  145. <view class="infoBottom d-flex a-center j-center j-sb">
  146. <button type="default" class="d-flex a-center j-center" @tap="toNext">保费计算</button>
  147. </view>
  148. <u-modal ref="uModal" v-model="msgshow" :content="content" :title-style="{fontWeight:'bold'}" title="报价提示">
  149. </u-modal>
  150. </view>
  151. </template>
  152. <script>
  153. import {
  154. mapState
  155. } from "vuex"
  156. import wybPopup from '@/components/common/wyb-popup/wyb-popup.vue'
  157. import lsLoading from '@/components/common/ls-loading/ls-loading.vue';
  158. export default {
  159. components: {
  160. wybPopup,
  161. lsLoading
  162. },
  163. computed: {
  164. ...mapState(['userInfo']),
  165. getHeight() {
  166. let height = uni.getSystemInfoSync().windowHeight;
  167. return `minHeight: ${height}px;`;
  168. }
  169. },
  170. // 监听导航栏的按钮
  171. onNavigationBarButtonTap(e) {
  172. if (e.index == 0) {
  173. this.navigate({
  174. url: '/pages/index/index'
  175. }, "switchTab", true);
  176. }
  177. },
  178. data() {
  179. return {
  180. msgshow: false,
  181. content: "",
  182. agreementList: [],
  183. zmDrivingForm: {}, //中煤驾意险
  184. carInfoRmation: [], //车辆影像
  185. ownerInfoRmation: [], //车主影像
  186. policyHolderInfoRmation: [], //投保人影像
  187. insuredPersonInfoRmation: [], //被保人影像
  188. orderno: "", //订单号
  189. show1: false, //华农
  190. animation: 'twinkle', //动画类型
  191. jqjishi: false,
  192. syjishi: false,
  193. timeArray: [],
  194. jqTimeIndex: 0,
  195. syTimeIndex: 0,
  196. time1: "",
  197. time2: "",
  198. carTypeList: [], //车辆品牌型号列表
  199. msg: "",
  200. quoteno: "", //报价编号
  201. hasKindCodeA: false, //是否含有车损险
  202. carInfo: {}, //车辆信息
  203. ownerInfo: {}, //车主信息
  204. policyHolderInfo: {}, //投保人信息
  205. insuredPersonInfo: {}, //被保人信息
  206. riskList: [], //险种大类信息
  207. kindList: [], //商业险险别
  208. showCarInfo: false, //控制车辆信息显示
  209. showInsureDate: true, //控制险种时间显示
  210. jqstartDate: "", //交强险日期
  211. jqendDate: " ", //交强险日期
  212. systartDate: "", //商业险日期
  213. syendDate: "", //商业险日期
  214. insureList: [{
  215. amount: "0",
  216. amountDesc: "投保",
  217. amtList: [{
  218. "label": "不投保",
  219. "value": "0"
  220. }, {
  221. "label": "投保",
  222. "value": "1"
  223. }],
  224. kindCode: "A",
  225. isMainRisk: true,
  226. kindName: "机动车损失险",
  227. desc: "保险期间内,被保险人或被保险机动车驾驶人在使用被保险机动车过程中,因自然灾害、意外事故、机动车被盗窃、抢劫、抢夺等情况(详见保险条款)造成被保险机动车直接损失,且不属于免除保险人责任的范围,保险人依照本保险合同的约定负责赔偿的险种。"
  228. },
  229. {
  230. amount: "0",
  231. amountDesc: "不投保",
  232. amtList: [{
  233. label: "不投保",
  234. value: "0"
  235. },
  236. {
  237. label: "50万",
  238. value: "500000"
  239. },
  240. {
  241. label: "100万",
  242. value: "1000000"
  243. },
  244. {
  245. label: "150万",
  246. value: "1500000"
  247. },
  248. {
  249. label: "200万",
  250. value: "2000000"
  251. },
  252. {
  253. label: "250万",
  254. value: "2500000"
  255. },
  256. {
  257. label: "300万",
  258. value: "3000000"
  259. },
  260. {
  261. label: "500万",
  262. value: "5000000"
  263. },
  264. {
  265. label: "1000万",
  266. value: "10000000"
  267. }
  268. ],
  269. kindCode: "B",
  270. isMainRisk: true,
  271. kindName: "第三者责任险",
  272. desc: "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使第三者遭受人身伤亡或财产直接损毁,依法应当对第三者承担的损害赔偿责任,且不属于免除保险人责任的范围,保险人依照本保险合同的约定,对于超过机动车交通事故责任强制保险各分项赔偿限额的部分负责赔偿的险种。"
  273. },
  274. {
  275. amount: "0",
  276. amountDesc: "不投保",
  277. amtList: [{
  278. "label": "不投保",
  279. "value": "0"
  280. }, {
  281. "label": "1万",
  282. "value": "10000"
  283. }, {
  284. "label": "2万",
  285. "value": "20000"
  286. }, {
  287. "label": "5万",
  288. "value": "50000"
  289. }, {
  290. "label": "10万",
  291. "value": "100000"
  292. }, {
  293. "label": "15万",
  294. "value": "150000"
  295. }, {
  296. "label": "20万",
  297. "value": "200000"
  298. }],
  299. kindCode: "D3",
  300. isMainRisk: true,
  301. kindName: "司机责任险",
  302. desc: "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。"
  303. },
  304. {
  305. amount: "0",
  306. amountDesc: "不投保",
  307. amtList: [{
  308. "label": "不投保",
  309. "value": "0"
  310. }, {
  311. "label": "1万",
  312. "value": "10000"
  313. }, {
  314. "label": "2万",
  315. "value": "20000"
  316. }, {
  317. "label": "4万",
  318. "value": "40000"
  319. }, {
  320. "label": "5万",
  321. "value": "50000"
  322. }, {
  323. "label": "10万",
  324. "value": "100000"
  325. }, {
  326. "label": "15万",
  327. "value": "150000"
  328. }, {
  329. "label": "20万",
  330. "value": "200000"
  331. }],
  332. kindCode: "D4",
  333. isMainRisk: true,
  334. kindName: "乘客责任险",
  335. desc: "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。"
  336. },
  337. {
  338. amount: "0",
  339. amountDesc: "不投保",
  340. amtList: [{
  341. "label": "不投保",
  342. "value": "0"
  343. }, {
  344. "label": "2000",
  345. "value": "2000"
  346. }, {
  347. "label": "5000",
  348. "value": "5000"
  349. }, {
  350. "label": "1万",
  351. "value": "10000"
  352. }],
  353. desc: "保险期间内,被保险机动车在被保险人或被保险机动车驾驶人使用过程中,发生无明显碰撞痕迹的车身划痕损失,保险人按照保险合同约定负责赔偿的险种",
  354. isMainRisk: true,
  355. kindCode: "L",
  356. kindName: "车身划痕险",
  357. mainRiskCodeList: "A"
  358. },
  359. {
  360. amount: "0",
  361. amountDesc: "不投保",
  362. amtList: [{
  363. "label": "不投保",
  364. "value": "0"
  365. }, {
  366. "label": "5%",
  367. "value": "5"
  368. }, {
  369. "label": "10%",
  370. "value": "10"
  371. }, {
  372. "label": "15%",
  373. "value": "15"
  374. }, {
  375. "label": "20%",
  376. "value": "20"
  377. }],
  378. desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  379. isMainRisk: true,
  380. kindCode: "MJ1",
  381. kindName: "绝对免赔率特约险(车损)",
  382. mainRiskCodeList: "A"
  383. },
  384. {
  385. amount: "0",
  386. amountDesc: "不投保",
  387. amtList: [{
  388. "label": "不投保",
  389. "value": "0"
  390. }, {
  391. "label": "5%",
  392. "value": "5"
  393. }, {
  394. "label": "10%",
  395. "value": "10"
  396. }, {
  397. "label": "15%",
  398. "value": "15"
  399. }, {
  400. "label": "20%",
  401. "value": "20"
  402. }],
  403. desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  404. isMainRisk: true,
  405. kindCode: "MJ2",
  406. kindName: "绝对免赔率特约险(三者)",
  407. mainRiskCodeList: "B"
  408. },
  409. {
  410. amount: "0",
  411. amountDesc: "不投保",
  412. amtList: [{
  413. "label": "不投保",
  414. "value": "0"
  415. }, {
  416. "label": "5%",
  417. "value": "5"
  418. }, {
  419. "label": "10%",
  420. "value": "10"
  421. }, {
  422. "label": "15%",
  423. "value": "15"
  424. }, {
  425. "label": "20%",
  426. "value": "20"
  427. }],
  428. desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  429. isMainRisk: true,
  430. kindCode: "MJ3",
  431. kindName: "绝对免赔率特约险(司机)",
  432. mainRiskCodeList: "D3"
  433. },
  434. {
  435. amount: "0",
  436. amountDesc: "不投保",
  437. amtList: [{
  438. "label": "不投保",
  439. "value": "0"
  440. }, {
  441. "label": "5%",
  442. "value": "5"
  443. }, {
  444. "label": "10%",
  445. "value": "10"
  446. }, {
  447. "label": "15%",
  448. "value": "15"
  449. }, {
  450. "label": "20%",
  451. "value": "20"
  452. }],
  453. desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  454. isMainRisk: true,
  455. kindCode: "MJ4",
  456. kindName: "绝对免赔率特约险(乘客)",
  457. mainRiskCodeList: "D4"
  458. },
  459. {
  460. amount: "0",
  461. amountDesc: "不投保",
  462. coveragePremium: 0,
  463. amtList: [{
  464. label: "不投保",
  465. value: "0"
  466. },
  467. {
  468. label: "1万",
  469. value: "10000"
  470. },
  471. {
  472. label: "2万",
  473. value: "20000"
  474. },
  475. {
  476. label: "5万",
  477. value: "50000"
  478. },
  479. {
  480. label: "10万",
  481. value: "100000"
  482. }
  483. ],
  484. kindCode: "SY_FJ_YBW1",
  485. isMainRisk: true,
  486. kindName: "附加医保-三者",
  487. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  488. },
  489. {
  490. amount: "0",
  491. amountDesc: "不投保",
  492. coveragePremium: 0,
  493. amtList: [{
  494. label: "不投保",
  495. value: "0"
  496. },
  497. {
  498. label: "1万",
  499. value: "10000"
  500. },
  501. {
  502. label: "2万",
  503. value: "20000"
  504. },
  505. {
  506. label: "5万",
  507. value: "50000"
  508. },
  509. {
  510. label: "10万",
  511. value: "100000"
  512. }
  513. ],
  514. kindCode: "SY_FJ_YBW2",
  515. isMainRisk: true,
  516. kindName: "附加医保-座位险(乘客)",
  517. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  518. },
  519. {
  520. amount: "0",
  521. amountDesc: "不投保",
  522. coveragePremium: 0,
  523. amtList: [{
  524. label: "不投保",
  525. value: "0"
  526. },
  527. {
  528. label: "1万",
  529. value: "10000"
  530. },
  531. {
  532. label: "2万",
  533. value: "20000"
  534. },
  535. {
  536. label: "5万",
  537. value: "50000"
  538. },
  539. {
  540. label: "10万",
  541. value: "100000"
  542. }
  543. ],
  544. kindCode: "SY_FJ_YBW3",
  545. isMainRisk: true,
  546. kindName: "附加医保-座位险(司机)",
  547. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  548. },
  549. {
  550. amount: "0",
  551. amountDesc: "不投保",
  552. amtList: [{
  553. label: "不投保",
  554. value: "0"
  555. },
  556. {
  557. label: "50万",
  558. value: "500000"
  559. },
  560. {
  561. label: "100万",
  562. value: "1000000"
  563. },
  564. {
  565. label: "150万",
  566. value: "1500000"
  567. },
  568. {
  569. label: "200万",
  570. value: "2000000"
  571. },
  572. {
  573. label: "250万",
  574. value: "2500000"
  575. },
  576. {
  577. label: "300万",
  578. value: "3000000"
  579. },
  580. {
  581. label: "500万",
  582. value: "5000000"
  583. },
  584. {
  585. label: "1000万",
  586. value: "10000000"
  587. }
  588. ],
  589. desc: "保险期间内,被保险人或其允许的驾驶人在法定节假日期间使用被保险机动车发生机动车第三者责任保险范围内的事故,并经公安部门或保险人查勘确认的,被保险机动车第三者责任保险所适用的责任限额在保险单载明的基础上增加一倍的险种",
  590. isMainRisk: true,
  591. kindCode: "BD",
  592. kindName: "法定节假日限额翻倍险",
  593. mainRiskCodeList: "B"
  594. }
  595. ],
  596. totalCompanyList: [], //保险公司列表
  597. notStartedQuote: true, //未开始报价(true表示未开始报价,false表示已经报价结束)
  598. quoteCompanyCount: 0,
  599. }
  600. },
  601. async onLoad() {
  602. const eventChannel = this.getOpenerEventChannel()
  603. // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
  604. eventChannel.on('acceptData', async (data) => {
  605. console.log(data)
  606. this.carInfo = data.carInfo; //车辆信息
  607. this.ownerInfo = data.ownerInfo; //车主信息
  608. this.policyHolderInfo = data.policyHolderInfo; //投保人信息
  609. this.insuredPersonInfo = data.insuredPersonInfo; //被保人信息
  610. this.riskList = data.riskList; //险种大类
  611. this.kindList = data.kindList; //商业险险别
  612. this.orderno = data.orderno;
  613. this.quoteno = data.quoteno;
  614. if (this.riskList.length > 0) {
  615. for (let i = 0; i < this.riskList.length; i++) {
  616. if (this.riskList[i].riskCode == '0507') {
  617. this.jqstartDate = this.riskList[i].startDate;
  618. }
  619. if (this.riskList[i].riskCode == '0510') {
  620. this.systartDate = this.riskList[i].startDate;
  621. this.kindList.map(ele1 => {
  622. this.insureList.map(ele2 => {
  623. if (ele2.kindCode == ele1.kindCode) {
  624. switch (ele1.kindCode) {
  625. case 'D4':
  626. case 'SY_FJ_YBW2':
  627. ele2.amount = ele1.unitAmount;
  628. break;
  629. case "MJ1":
  630. case "MJ2":
  631. case "MJ3":
  632. case "MJ4":
  633. ele2.amount = ele1.deductibleRate;
  634. break;
  635. default:
  636. ele2.amount = ele1.amount;
  637. }
  638. }
  639. })
  640. })
  641. }
  642. }
  643. }
  644. })
  645. this.commpanyList();
  646. },
  647. methods: {
  648. //查看详情
  649. querydetial(id) {
  650. this.navigate({
  651. url: "/pages/carInsure1/quoteDetail1?companyId=" + id
  652. },
  653. "navigateTo", true);
  654. },
  655. //选择协议
  656. selectConfirm(e, index) {
  657. this.totalCompanyList[index].agreementId = e[0].value;
  658. this.totalCompanyList[index].agreementName = e[0].label;
  659. this.totalCompanyList[index].apiType = e[0].extra;
  660. },
  661. //获取保险公司列表
  662. async commpanyList() {
  663. let commpanykad = await this.$http.get('/insurance/order/getAgreementInsCompany');
  664. commpanykad.data.map(ele => {
  665. ele["result"] = {};
  666. ele["quoteCode"] = 0;
  667. ele["checked"] = false;
  668. ele["msg"] = "";
  669. ele["agreementId"] = "";
  670. ele["agreementName"] = "";
  671. ele["apiType"] = "";
  672. ele["selectShow"] = false;
  673. })
  674. this.totalCompanyList = commpanykad.data;
  675. },
  676. async toNext() {
  677. if (this.quoteno) {
  678. this.OrderStageProcessing();
  679. } else {
  680. let getquote = await this.$http.get('/ins/tool/getQuoteNo');
  681. this.quoteno = getquote.data;
  682. this.OrderStageProcessing();
  683. }
  684. },
  685. async OrderStageProcessing() {
  686. await this.$http.post('/ins/taskImage/uploadImages', {
  687. imageIdList: this.carInfoRmation,
  688. imageType: "C01",
  689. quoteNo: this.quoteno
  690. })
  691. await this.$http.post('/ins/taskImage/uploadImages', {
  692. imageIdList: this.ownerInfoRmation,
  693. imageType: "C02",
  694. quoteNo: this.quoteno
  695. })
  696. await this.$http.post('/ins/taskImage/uploadImages', {
  697. imageIdList: this.policyHolderInfoRmation,
  698. imageType: "C03",
  699. quoteNo: this.quoteno
  700. })
  701. await this.$http.post('/ins/taskImage/uploadImages', {
  702. imageIdList: this.insuredPersonInfoRmation,
  703. imageType: "C04",
  704. quoteNo: this.quoteno
  705. })
  706. let param = {
  707. userId: this.userInfo.sysUser.id,
  708. quoteno: this.quoteno,
  709. orderNo: this.orderno ? this.orderno : "",
  710. carInfo: this.carInfo,
  711. insuredPersonInfo: this.insuredPersonInfo,
  712. ownerInfo: this.ownerInfo,
  713. policyHolderInfo: this.policyHolderInfo,
  714. kindList: this.kindList,
  715. riskList: this.riskList
  716. };
  717. let orders = await this.$http.post('/insurance/order/generateOrder', param);
  718. if (orders.code == '200') {
  719. this.orderno = orders.data.orderno;
  720. this.totalCompanyList.map((ele, index) => {
  721. if (ele.checked) {
  722. //动态调用报价接口
  723. ele.quoteCode = "1";
  724. console.log(ele.quoteCode)
  725. this.ToolClickFun(ele.cnName, index, ele.id);
  726. }
  727. });
  728. }
  729. },
  730. //动态函数
  731. ToolClickFun(MethodName, Parameter, companyId) {
  732. this[`${MethodName}`](Parameter, companyId)
  733. },
  734. //永安报价
  735. async yongan(num, id) {
  736. let params = {
  737. orderNo: this.orderno,
  738. companyId: id
  739. };
  740. let quote = await this.$http('/order/yongAn/quote', params);
  741. if (quote.msg == "重复投保" && quote.code == "501") {
  742. if (!!quote.data.jqStartDate && !quote.data.syStartDate) {
  743. this.jqstartDate = quote.data.jqStartDate;
  744. this.jqendDate = quote.data.jqEndDate;
  745. if (this.riskList.length > 0) {
  746. for (let i = 0; i < this.riskList.length; i++) {
  747. if (this.riskList[i].riskCode == "0507") {
  748. this.riskList[i].startDate = quote.data.jqStartDate;
  749. this.riskList[i].endDate = quote.data.jqEndDate;
  750. }
  751. }
  752. }
  753. let param = {
  754. userId: this.userInfo.sysUser.id,
  755. quoteno: this.quoteno,
  756. orderNo: this.orderno,
  757. carInfo: this.carInfo,
  758. insuredPersonInfo: this.insuredPersonInfo,
  759. ownerInfo: this.ownerInfo,
  760. policyHolderInfo: this.policyHolderInfo,
  761. kindList: this.kindList,
  762. riskList: this.riskList
  763. };
  764. await this.$http.post('/insurance/order/generateOrder', param);
  765. return this.yongan(num, id);
  766. } else if (!!quote.data.syStartDate && !quote.data.jqStartDate) {
  767. } else if (!!quote.data.syStartDate && !!quote.data.jqStartDate) {
  768. } else {
  769. this.totalCompanyList[num].quoteCode = "3";
  770. this.totalCompanyList[num].msg = "重复投保";
  771. }
  772. } else if (quote.code == "500" || quote.code == "502" || quote.code == "-9999") {
  773. this.totalCompanyList[num].quoteCode = "-9999";
  774. this.totalCompanyList[num].msg = quote.msg;
  775. } else {
  776. this.totalCompanyList[num].quoteCode = 200;
  777. this.totalCompanyList[num].result = quote.data;
  778. }
  779. },
  780. //中煤报价
  781. async zhongmei(num, id) {
  782. let params = {
  783. accidentalDrivingVo: this.zmDrivingForm,
  784. orderNo: this.orderno,
  785. companyId: id,
  786. agreementId: this.totalCompanyList[num].agreementId,
  787. };
  788. let res = await this.$http.post('/order/zhongMeiApi/quote', params);
  789. this.totalCompanyList[num].msg = res.msg;
  790. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  791. this.totalCompanyList[num].quoteCode = "4";
  792. this.totalCompanyList[num].msg = res.msg;
  793. return;
  794. } else if (
  795. res.data == null &&
  796. res.msg.indexOf("交强险平台返回") > -1 &&
  797. res.msg.indexOf(";终保日期") > -1
  798. ) {
  799. let time =
  800. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  801. this.jqstartDate = time;
  802. this.jqendDate = this.oneYearPast(time);
  803. this.systartDate = time;
  804. this.syendDate = this.oneYearPast(time);
  805. if (this.riskList.length > 0) {
  806. for (let i = 0; i < this.riskList.length; i++) {
  807. if (this.riskList[i].riskCode == "0507") {
  808. this.riskList[i].startDate = time;
  809. this.riskList[i].endDate = this.oneYearPast(time);
  810. } else if (this.riskList[i].riskCode == "0510") {
  811. this.riskList[i].startDate = time;
  812. this.riskList[i].endDate = this.oneYearPast(time);
  813. }
  814. }
  815. }
  816. let param = {
  817. userId: this.userInfo.sysUser.id,
  818. quoteno: this.quoteno,
  819. orderNo: this.orderno,
  820. carInfo: this.carInfo,
  821. insuredPersonInfo: this.insuredPersonInfo,
  822. ownerInfo: this.ownerInfo,
  823. policyHolderInfo: this.policyHolderInfo,
  824. kindList: this.kindList,
  825. riskList: this.riskList
  826. };
  827. await this.$http.post('/insurance/order/generateOrder', param);
  828. return this.zhongmei(num, id);
  829. } else if (!!res.data) {
  830. this.totalCompanyList[num].quoteCode = 200;
  831. this.totalCompanyList[num].result = res.data;
  832. } else {
  833. this.totalCompanyList[num].quoteCode = "3";
  834. this.totalCompanyList[num].msg = res.msg;
  835. return;
  836. }
  837. },
  838. //永诚报价
  839. async yongcheng(num, id) {
  840. let accidentalDrivingVo = {};
  841. if (this.accidentForm.id) {
  842. let data = this.accidentDataList.find(
  843. val => val.id == this.accidentForm.accidentType
  844. );
  845. accidentalDrivingVo = {
  846. rideRiskCode: data.code ? data.code : "",
  847. rideRiskName: data.name ? data.name : "",
  848. quantity: this.accidentForm.fen ? this.accidentForm.fen : ""
  849. };
  850. }
  851. let params = {
  852. accidentalDrivingVo,
  853. orderNo: this.orderno,
  854. companyId: id,
  855. cqryCdeJq: this.cqryCdeJq,
  856. cqryCdeSy: this.cqryCdeSy,
  857. renewalCodeJq: this.renewalCodeJq,
  858. renewalCodeSy: this.renewalCodeSy
  859. };
  860. let res = await this.$http('/api/yongCheng/quote', params);
  861. this.totalCompanyList[num].msg = res.msg;
  862. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  863. this.totalCompanyList[num].quoteCode = "4";
  864. this.totalCompanyList[num].msg = res.msg;
  865. return;
  866. } else if (
  867. res.data == null &&
  868. res.msg.indexOf("车险平台返回") > -1 &&
  869. res.msg.indexOf(";终保日期") > -1
  870. ) {
  871. let time =
  872. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  873. let Aortime = this.transformTime2(time); //终保日期的后一天
  874. this.jqstartDate = Aortime;
  875. this.jqendDate = this.oneYearPast(Aortime);
  876. this.systartDate = Aortime;
  877. this.syendDate = this.oneYearPast(Aortime);
  878. if (this.riskList.length > 0) {
  879. for (let i = 0; i < this.riskList.length; i++) {
  880. if (this.riskList[i].riskCode == "0507") {
  881. this.riskList[i].startDate = Aortime;
  882. this.riskList[i].endDate = this.oneYearPast(Aortime);
  883. } else if (this.riskList[i].riskCode == "0510") {
  884. this.riskList[i].startDate = Aortime;
  885. this.riskList[i].endDate = this.oneYearPast(Aortime);
  886. }
  887. }
  888. }
  889. let param = {
  890. userId: this.userInfo.sysUser.id,
  891. quoteno: this.quoteno,
  892. orderNo: this.orderno,
  893. carInfo: this.carInfo,
  894. insuredPersonInfo: this.insuredPersonInfo,
  895. ownerInfo: this.ownerInfo,
  896. policyHolderInfo: this.policyHolderInfo,
  897. kindList: this.kindList,
  898. riskList: this.riskList
  899. };
  900. await this.$http.post('/insurance/order/generateOrder', param);
  901. return this.yongcheng(num, id);
  902. } else if (res.code == "200") {
  903. this.totalCompanyList[num].quoteCode = 200;
  904. this.totalCompanyList[num].result = res.data;
  905. } else if (res.code == "101") {
  906. this.totalCompanyList[num].quoteCode = "101";
  907. this.totalCompanyList[num].msg = res.msg;
  908. this.cqryCdeJq = res.data.cqryCdeJq;
  909. this.cqryCdeSy = res.data.cqryCdeSy;
  910. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  911. let jqBase64 = `data:image/png;base64,${jq}`;
  912. this.renewalCodeJqImg = jqBase64;
  913. if (res.data.renewalCodeSy) {
  914. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  915. let syBase64 = `data:image/png;base64,${sy}`;
  916. this.renewalCodeSyImg = syBase64;
  917. }
  918. this.renewalCodedialogVisible = true;
  919. } else {
  920. this.totalCompanyList[num].quoteCode = "3";
  921. this.totalCompanyList[num].msg = res.msg;
  922. return;
  923. }
  924. },
  925. //爬虫统一报价接口
  926. async quoteInsurance(num, id, apiType) {
  927. let api = apiType === 2 ? "/insurance/crawler/quote" : "anshengquote";
  928. let params = {
  929. orderNo: this.orderno,
  930. companyId: id,
  931. agreementId: this.totalCompanyList[num].agreementId,
  932. };
  933. let res = await this.$http.post(`${api}`, params);
  934. this.totalCompanyList[num].msg = res.msg;
  935. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  936. this.totalCompanyList[num].quoteCode = "4";
  937. this.totalCompanyList[num].msg = res.msg;
  938. return;
  939. } else if (
  940. res.data == null &&
  941. res.msg.indexOf("交强险平台返回") > -1 &&
  942. res.msg.indexOf(";终保日期") > -1
  943. ) {
  944. let time =
  945. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  946. this.jqstartDate = time;
  947. this.jqendDate = this.oneYearPast(time);
  948. this.systartDate = time;
  949. this.syendDate = this.oneYearPast(time);
  950. if (this.riskList.length > 0) {
  951. for (let i = 0; i < this.riskList.length; i++) {
  952. if (this.riskList[i].riskCode == "0507") {
  953. this.riskList[i].startDate = time;
  954. this.riskList[i].endDate = this.oneYearPast(time);
  955. } else if (this.riskList[i].riskCode == "0510") {
  956. this.riskList[i].startDate = time;
  957. this.riskList[i].endDate = this.oneYearPast(time);
  958. }
  959. }
  960. }
  961. let param = {
  962. userId: this.userInfo.sysUser.id,
  963. quoteno: this.quoteno,
  964. orderNo: this.orderno,
  965. carInfo: this.carInfo,
  966. insuredPersonInfo: this.insuredPersonInfo,
  967. ownerInfo: this.ownerInfo,
  968. policyHolderInfo: this.policyHolderInfo,
  969. kindList: this.kindList,
  970. riskList: this.riskList
  971. };
  972. await this.$http.post('/insurance/order/generateOrder', param);
  973. return this.quoteInsurance(num, id, apiType);
  974. } else if (!!res.data) {
  975. this.totalCompanyList[num].quoteCode = 200;
  976. this.totalCompanyList[num].result = res.data;
  977. } else {
  978. this.totalCompanyList[num].quoteCode = "3";
  979. this.totalCompanyList[num].msg = res.msg;
  980. return;
  981. }
  982. },
  983. //安盛天平
  984. ansheng(num, id) {
  985. this.quoteInsurance(num, id, this.totalCompanyList[num].apiType);
  986. },
  987. //众安
  988. zhongan(num, id) {
  989. this.quoteInsurance(num, id, this.totalCompanyList[num].apiType);
  990. },
  991. //人寿
  992. renshou(num, id) {
  993. this.quoteInsurance(num, id, this.totalCompanyList[num].apiType);
  994. },
  995. //恒邦
  996. hengbang(num, id) {
  997. this.quoteInsurance(num, id, this.totalCompanyList[num].apiType);
  998. },
  999. /**
  1000. * 选择保险公司方法
  1001. * @param {String} event change选中事件
  1002. * @param {String} code 保险公司ID
  1003. * @param {String} name 保险公司主体全拼
  1004. * @param {String} index 选中下标
  1005. */
  1006. checkboxChange(event, code, name, index) {
  1007. this.totalCompanyList[index].checked = event.value;
  1008. let arr = this.totalCompanyList[index].agreement;
  1009. let list = [];
  1010. list = arr.filter(item => {
  1011. return item.licenseNo.length > 0 ? item.licenseNo.includes(this.carInfo.licenseNo.slice(
  1012. 0,
  1013. 2)) : "true"
  1014. })
  1015. list.map(ele => {
  1016. ele.extra = ele.apiType;
  1017. return ele;
  1018. })
  1019. this.agreementList = list;
  1020. },
  1021. // 重新选择车型
  1022. toCarInfo() {
  1023. this.navigate({
  1024. url: '/pages/carInsure1/carInfo1',
  1025. success: (res) => {
  1026. res.eventChannel.emit("acceptData", {
  1027. carInfo: this.carInfo,
  1028. ownerInfo: this.ownerInfo,
  1029. policyHolderInfo: this.policyHolderInfo,
  1030. insuredPersonInfo: this.insuredPersonInfo,
  1031. riskList: this.riskList,
  1032. kindList: this.kindList
  1033. })
  1034. }
  1035. }, "navigateTo", true);
  1036. },
  1037. // 重新选择方案
  1038. toInsureItems() {
  1039. this.navigate({
  1040. url: '/pages/carInsure1/insureItems1',
  1041. success: (res) => {
  1042. res.eventChannel.emit("acceptData", {
  1043. carInfo: this.carInfo,
  1044. ownerInfo: this.ownerInfo,
  1045. policyHolderInfo: this.policyHolderInfo,
  1046. insuredPersonInfo: this.insuredPersonInfo,
  1047. riskList: this.riskList,
  1048. kindList: this.kindList,
  1049. vehicleModel: this.vehicleModel,
  1050. })
  1051. }
  1052. }, "navigateTo", true);
  1053. },
  1054. toQuoteDetail(orderno) {
  1055. this.navigate({
  1056. url: "/pages/carInsure1/quoteDetail1?orderno=" + orderno
  1057. }, "navigateTo", true);
  1058. },
  1059. // 显示报错信息
  1060. ErrorMsg(msg) {
  1061. this.content = msg;
  1062. this.msgshow = true;
  1063. },
  1064. //选择正确的车型
  1065. async chooseCarType(item) {
  1066. this.carInfo.brandName = item.modelname; //品牌型号
  1067. this.carInfo.ciModelCode = item.vehiclecode; //行业车型编码
  1068. this.carInfo.modelCode = item.modelcode;
  1069. this.carInfo.seatCount = item.seatmax + '';
  1070. this.carInfo.caryear = item.caryear;
  1071. this.carInfo.exhaustScale = (item.exhaustscale * 1000) + '';
  1072. this.carInfo.factory = item.factory;
  1073. this.carInfo.factoryid = item.factorycode;
  1074. this.carInfo.cimodelclass = item.inscarclassname;
  1075. this.carInfo.powertype = item.powerType;
  1076. this.carInfo.purchasePrice = item.purchaseprice + '';
  1077. this.carInfo.modelcname = item.modelname;
  1078. this.$refs.carTypePopup.hide()
  1079. let a = await this.huanongquote(0);
  1080. this.totalCompanyList[0].result = a;
  1081. if (this.totalCompanyList[0].quoteCode != '4') {
  1082. this.quoteCompanyCount++;
  1083. let c = await this.zhongmeiquote(2);
  1084. this.totalCompanyList[2].result = c;
  1085. this.quoteCompanyCount++;
  1086. let d = await this.tiananquote(1);
  1087. this.totalCompanyList[1].result = d;
  1088. this.quoteCompanyCount++;
  1089. let b = await this.hengbangquote(3);
  1090. this.totalCompanyList[3].result = b;
  1091. this.quoteCompanyCount++;
  1092. }
  1093. },
  1094. oneYearPast(time) {
  1095. var date = new Date(time);
  1096. date.setFullYear(date.getFullYear() + 1); //一年后
  1097. date.setTime(date.getTime() - 24 * 60 * 60 * 1000); //一年后的前一天
  1098. var strYear = date.getFullYear();
  1099. var strMonth = date.getMonth() + 1;
  1100. var strDay = date.getDate();
  1101. var hh = date.getHours();
  1102. if (hh < 10) {
  1103. hh = "0" + hh;
  1104. }
  1105. if (strMonth < 10) {
  1106. strMonth = "0" + strMonth;
  1107. }
  1108. if (strDay < 10) {
  1109. strDay = "0" + strDay;
  1110. }
  1111. var datastr = strYear + "-" + strMonth + "-" + strDay + ' ' + hh + ':00:00';
  1112. return datastr;
  1113. },
  1114. }
  1115. }
  1116. </script>
  1117. <style lang="scss" scoped>
  1118. @import '@/style/mixin.scss';
  1119. /* 头部车辆信息和特权Start */
  1120. .carInfo {
  1121. height: 330upx;
  1122. background: -webkit-linear-gradient(0deg, rgba($themeColor, 0.6), rgba($themeColor, 0.8));
  1123. background-size: 100% 100%;
  1124. }
  1125. .carInfo .topLeft {
  1126. width: 120upx;
  1127. font-size: 90upx;
  1128. color: #FFFFFF;
  1129. }
  1130. .carInfo .topRight .brandName {
  1131. width: 400upx;
  1132. overflow: hidden;
  1133. text-overflow: ellipsis;
  1134. white-space: nowrap;
  1135. }
  1136. .carInfo .other {
  1137. background-color: #FFFFFF;
  1138. height: 80upx;
  1139. border-radius: 15upx;
  1140. box-sizing: border-box;
  1141. }
  1142. .carInfo .other .privilege {
  1143. background-color: rgba($themeColor, 0.6);
  1144. font-size: 24upx;
  1145. color: #FFFFFF;
  1146. font-weight: bold;
  1147. }
  1148. .carInfo .other .content {
  1149. width: 460upx;
  1150. margin-left: 15upx;
  1151. overflow: hidden;
  1152. text-overflow: ellipsis;
  1153. white-space: nowrap;
  1154. }
  1155. .carInfo .other .icon {
  1156. width: 30upx;
  1157. }
  1158. /* 头部车辆信息和特权End */
  1159. .pageContent {
  1160. position: relative;
  1161. top: -50upx;
  1162. padding-bottom: 100px;
  1163. }
  1164. /* 报价方案Start */
  1165. .quotePlan {
  1166. background: #FFFFFF;
  1167. position: relative;
  1168. border-radius: 20upx;
  1169. }
  1170. .quotePlan .header {
  1171. height: 80upx;
  1172. position: relative;
  1173. border-bottom: 1px solid #E6E8EA;
  1174. }
  1175. .quotePlan .header .title {
  1176. // font-size: 30upx;
  1177. font-weight: bold;
  1178. padding-left: 25upx;
  1179. }
  1180. .quotePlan .header .title:before {
  1181. content: "";
  1182. position: absolute;
  1183. left: 30upx;
  1184. top: 25upx;
  1185. width: 8upx;
  1186. height: 30upx;
  1187. background-color: $themeColor;
  1188. }
  1189. .quotePlan .body {
  1190. padding: 0 30upx 10upx;
  1191. }
  1192. .quotePlan .body .insurance {
  1193. padding-bottom: 20upx;
  1194. border-bottom: 1px dashed #E6E8EA;
  1195. }
  1196. .carTypeItem {
  1197. padding: 0 30upx 20upx;
  1198. border-bottom: 1px solid #e5e5e5;
  1199. margin-top: 20upx;
  1200. width: 100%;
  1201. box-sizing: border-box;
  1202. }
  1203. .carTypeItem .nav .carseriesName {
  1204. font-size: 34upx;
  1205. width: 360upx;
  1206. font-family: PingFangSC-Medium, PingFangSC;
  1207. color: #4a4a4a;
  1208. overflow: hidden;
  1209. text-overflow: ellipsis;
  1210. white-space: nowrap;
  1211. }
  1212. .carTypeItem .nav .modelName {
  1213. font-size: 26upx;
  1214. width: 400upx;
  1215. font-family: PingFangSC-Medium, PingFangSC;
  1216. overflow: hidden;
  1217. text-overflow: ellipsis;
  1218. white-space: nowrap;
  1219. }
  1220. .carTypeItem .nav .nav_box {
  1221. margin: 10upx 0;
  1222. }
  1223. .carTypeItem .nav .nav_box .zid {
  1224. display: inline-block;
  1225. padding: 6upx 10upx;
  1226. font-size: 24upx;
  1227. height: 40upx;
  1228. background: #AFC9F7;
  1229. border-radius: 25upx;
  1230. color: #007AFF;
  1231. font-weight: bold;
  1232. line-height: 40upx;
  1233. }
  1234. .carTypeItem .nav .nav_box>p {
  1235. margin-left: 30upx;
  1236. color: #999;
  1237. font-size: 24upx;
  1238. }
  1239. .carTypeItem .price {
  1240. font-size: 16px;
  1241. width: 200upx;
  1242. flex-shrink: 0;
  1243. font-family: PingFangSC-Regular, PingFangSC;
  1244. font-weight: 400;
  1245. color: #007AFF;
  1246. }
  1247. .quotePlan .body .row {
  1248. height: 70upx;
  1249. }
  1250. .quotePlan .body .date {
  1251. background-color: $themeColor;
  1252. color: $themeColor;
  1253. font-size: 22upx;
  1254. padding: 0upx 7upx;
  1255. border-radius: 3upx;
  1256. margin: 10upx;
  1257. margin-right: 10upx;
  1258. }
  1259. /* 报价方案End */
  1260. /* 报价公司Start */
  1261. .quoteCompany {
  1262. margin: 20upx 30upx;
  1263. box-sizing: border-box;
  1264. /* background:#FFFFFF; */
  1265. position: relative;
  1266. border-radius: 20upx;
  1267. }
  1268. .quoteCompany .header {
  1269. height: 80upx;
  1270. padding: 0 30upx;
  1271. position: relative;
  1272. }
  1273. .quoteCompany .header .title {
  1274. font-size: 30upx;
  1275. font-weight: bold;
  1276. padding-left: 25upx;
  1277. }
  1278. .quoteCompany .header .title:before {
  1279. content: "";
  1280. position: absolute;
  1281. left: 30upx;
  1282. top: 25upx;
  1283. width: 8upx;
  1284. height: 30upx;
  1285. background-color: rgba($themeColor, 0.6);
  1286. }
  1287. .quoteCompany .header .title .icon {
  1288. color: rgba($themeColor, 0.6);
  1289. margin-left: 15upx;
  1290. }
  1291. .quoteCompanyItem {
  1292. margin-bottom: 20upx;
  1293. background: #FFFFFF;
  1294. border-radius: 15upx;
  1295. padding: 10px 20px;
  1296. box-sizing: border-box;
  1297. cursor: pointer;
  1298. }
  1299. .quoteCompanyItem .top {
  1300. position: relative;
  1301. }
  1302. .quoteCompanyItem .top .companyIcon {
  1303. flex-shrink: 0;
  1304. }
  1305. .quoteCompanyItem .top .companyIcon image {
  1306. width: 34px;
  1307. height: 34px;
  1308. margin-right: 10px;
  1309. }
  1310. .quoteCompanyItem .top .companyName {
  1311. font-size: 32upx;
  1312. font-weight: bold;
  1313. width: 180upx;
  1314. overflow: hidden;
  1315. text-overflow: ellipsis;
  1316. white-space: nowrap;
  1317. }
  1318. .quoteCompanyItem .top .totalMoney {
  1319. font-size: 40upx;
  1320. font-weight: bold;
  1321. color: $themeColor;
  1322. position: absolute;
  1323. top: -15upx;
  1324. right: 0;
  1325. }
  1326. .quoteCompanyItem .top .tip {
  1327. font-size: 26upx;
  1328. font-weight: bold;
  1329. color: #999;
  1330. position: absolute;
  1331. top: 0upx;
  1332. right: 0;
  1333. }
  1334. .sum {
  1335. color: #ea552d;
  1336. font-size: 22px;
  1337. font-weight: bold;
  1338. }
  1339. .quoteCompanyItem .top .signs {
  1340. width: 500upx;
  1341. overflow: hidden;
  1342. text-overflow: ellipsis;
  1343. white-space: nowrap;
  1344. }
  1345. .quoteCompanyItem .top .sign {
  1346. height: 40upx;
  1347. margin: 0upx 10upx;
  1348. background: rgba($themeColor, 0.6);
  1349. color: $themeColor;
  1350. font-size: 20upx;
  1351. margin-right: 10upx;
  1352. border-radius: 6upx;
  1353. padding: 0 2px;
  1354. line-height: 40upx;
  1355. }
  1356. .jqsign {
  1357. height: 20px;
  1358. background: rgba(255, 177, 177, 0.55);
  1359. color: #fd0a0a;
  1360. font-size: 20upx;
  1361. border-radius: 6upx;
  1362. padding: 0 10px;
  1363. box-sizing: border-box;
  1364. }
  1365. .quoteCompanyItem .body {
  1366. padding: 20upx 0;
  1367. flex-wrap: wrap;
  1368. }
  1369. .quoteCompanyItem .body>view {
  1370. flex-shrink: 0;
  1371. width: 50%;
  1372. overflow: hidden;
  1373. text-overflow: ellipsis;
  1374. white-space: nowrap;
  1375. }
  1376. .quoteCompanyItem .body .icon-exchange {
  1377. margin-right: 15upx;
  1378. display: inline-block;
  1379. }
  1380. /* 报价公司End */
  1381. /* 查看详情按钮Start */
  1382. .btn {
  1383. font-size: 16px;
  1384. color: #fff;
  1385. background-color: #ea552d;
  1386. margin-top: 10px;
  1387. }
  1388. /* 底部的样式Start */
  1389. .infoBottom {
  1390. height: 140upx;
  1391. position: fixed;
  1392. bottom: 0;
  1393. left: 0;
  1394. right: 0;
  1395. background: #FFFFFF;
  1396. border-top: 1upx solid #EEEEEE;
  1397. z-index: 99;
  1398. }
  1399. .infoBottom>button {
  1400. // font-size: 30upx;
  1401. background: $themeColor;
  1402. color: #FFFFFF;
  1403. flex: 1;
  1404. margin: 0upx 30upx;
  1405. }
  1406. /* 查看详情按钮End */
  1407. </style>