quote1.vue 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494
  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.carInfoRmation = data.carInfoRmation; //车辆
  613. this.ownerInfoRmation = data.ownerInfoRmation; //车主
  614. this.policyHolderInfoRmation = data.policyHolderInfoRmation; //投保
  615. this.insuredPersonInfoRmation = data.insuredPersonInfoRmation; //被保人
  616. this.orderno = data.orderno;
  617. this.quoteno = data.quoteno;
  618. if (this.riskList.length > 0) {
  619. for (let i = 0; i < this.riskList.length; i++) {
  620. if (this.riskList[i].riskCode == '0507') {
  621. this.jqstartDate = this.riskList[i].startDate;
  622. }
  623. if (this.riskList[i].riskCode == '0510') {
  624. this.systartDate = this.riskList[i].startDate;
  625. this.kindList.map(ele1 => {
  626. this.insureList.map(ele2 => {
  627. if (ele2.kindCode == ele1.kindCode) {
  628. switch (ele1.kindCode) {
  629. case 'D4':
  630. case 'SY_FJ_YBW2':
  631. ele2.amount = ele1.unitAmount;
  632. break;
  633. case "MJ1":
  634. case "MJ2":
  635. case "MJ3":
  636. case "MJ4":
  637. ele2.amount = ele1.deductibleRate;
  638. break;
  639. default:
  640. ele2.amount = ele1.amount;
  641. }
  642. }
  643. })
  644. })
  645. }
  646. }
  647. }
  648. })
  649. this.commpanyList();
  650. },
  651. methods: {
  652. //查看详情
  653. querydetial(id) {
  654. this.navigate({
  655. url: "/pages/carInsure1/quoteDetail1?companyId=" + id
  656. },
  657. "navigateTo", true);
  658. },
  659. //选择协议
  660. selectConfirm(e, index) {
  661. this.totalCompanyList[index].agreementId = e[0].value;
  662. this.totalCompanyList[index].agreementName = e[0].label;
  663. this.totalCompanyList[index].apiType = e[0].extra;
  664. },
  665. //获取保险公司列表
  666. async commpanyList() {
  667. let commpanykad = await this.$http.get('/insurance/order/getAgreementInsCompany');
  668. commpanykad.data.map(ele => {
  669. ele["result"] = {};
  670. ele["quoteCode"] = 0;
  671. ele["checked"] = false;
  672. ele["msg"] = "";
  673. ele["agreementId"] = "";
  674. ele["agreementName"] = "";
  675. ele["apiType"] = "";
  676. ele["selectShow"] = false;
  677. })
  678. this.totalCompanyList = commpanykad.data;
  679. },
  680. async toNext() {
  681. if (this.quoteno) {
  682. this.OrderStageProcessing();
  683. } else {
  684. let getquote = await this.$http.get('/ins/tool/getQuoteNo');
  685. this.quoteno = getquote.data;
  686. this.OrderStageProcessing();
  687. }
  688. },
  689. async OrderStageProcessing() {
  690. await this.$http.post('/ins/taskImage/uploadImages', {
  691. imageIdList: this.carInfoRmation,
  692. imageType: "C01",
  693. quoteNo: this.quoteno
  694. })
  695. await this.$http.post('/ins/taskImage/uploadImages', {
  696. imageIdList: this.ownerInfoRmation,
  697. imageType: "C02",
  698. quoteNo: this.quoteno
  699. })
  700. await this.$http.post('/ins/taskImage/uploadImages', {
  701. imageIdList: this.policyHolderInfoRmation,
  702. imageType: "C03",
  703. quoteNo: this.quoteno
  704. })
  705. await this.$http.post('/ins/taskImage/uploadImages', {
  706. imageIdList: this.insuredPersonInfoRmation,
  707. imageType: "C04",
  708. quoteNo: this.quoteno
  709. })
  710. let param = {
  711. userId: this.userInfo.sysUser.id,
  712. quoteno: this.quoteno,
  713. orderNo: this.orderno ? this.orderno : "",
  714. carInfo: this.carInfo,
  715. insuredPersonInfo: this.insuredPersonInfo,
  716. ownerInfo: this.ownerInfo,
  717. policyHolderInfo: this.policyHolderInfo,
  718. kindList: this.kindList,
  719. riskList: this.riskList
  720. };
  721. let orders = await this.$http.post('/insurance/order/generateOrder', param);
  722. if (orders.code == '200') {
  723. this.orderno = orders.data.orderno;
  724. this.totalCompanyList.map((ele, index) => {
  725. if (ele.checked) {
  726. //动态调用报价接口
  727. ele.quoteCode = "1";
  728. console.log(ele.quoteCode)
  729. this.ToolClickFun(ele.cnName, index, ele.id);
  730. }
  731. });
  732. }
  733. },
  734. //动态函数
  735. ToolClickFun(MethodName, Parameter, companyId) {
  736. this[`${MethodName}`](Parameter, companyId)
  737. },
  738. //永安报价
  739. async yongan(num, id) {
  740. let params = {
  741. orderNo: this.orderno,
  742. companyId: id
  743. };
  744. let quote = await this.$http('/order/yongAn/quote', params);
  745. if (quote.msg == "重复投保" && quote.code == "501") {
  746. if (!!quote.data.jqStartDate && !quote.data.syStartDate) {
  747. this.jqstartDate = quote.data.jqStartDate;
  748. this.jqendDate = quote.data.jqEndDate;
  749. if (this.riskList.length > 0) {
  750. for (let i = 0; i < this.riskList.length; i++) {
  751. if (this.riskList[i].riskCode == "0507") {
  752. this.riskList[i].startDate = quote.data.jqStartDate;
  753. this.riskList[i].endDate = quote.data.jqEndDate;
  754. }
  755. }
  756. }
  757. let param = {
  758. userId: this.userInfo.sysUser.id,
  759. quoteno: this.quoteno,
  760. orderNo: this.orderno,
  761. carInfo: this.carInfo,
  762. insuredPersonInfo: this.insuredPersonInfo,
  763. ownerInfo: this.ownerInfo,
  764. policyHolderInfo: this.policyHolderInfo,
  765. kindList: this.kindList,
  766. riskList: this.riskList
  767. };
  768. await this.$http.post('/insurance/order/generateOrder', param);
  769. return this.yongan(num, id);
  770. } else if (!!quote.data.syStartDate && !quote.data.jqStartDate) {
  771. } else if (!!quote.data.syStartDate && !!quote.data.jqStartDate) {
  772. } else {
  773. this.totalCompanyList[num].quoteCode = "3";
  774. this.totalCompanyList[num].msg = "重复投保";
  775. }
  776. } else if (quote.code == "500" || quote.code == "502" || quote.code == "-9999") {
  777. this.totalCompanyList[num].quoteCode = "-9999";
  778. this.totalCompanyList[num].msg = quote.msg;
  779. } else {
  780. this.totalCompanyList[num].quoteCode = 200;
  781. this.totalCompanyList[num].result = quote.data;
  782. }
  783. },
  784. //中煤报价
  785. async zhongmei(num, id) {
  786. let params = {
  787. accidentalDrivingVo: this.zmDrivingForm,
  788. orderNo: this.orderno,
  789. companyId: id,
  790. agreementId: this.totalCompanyList[num].agreementId,
  791. };
  792. let res = await this.$http.post('/order/zhongMeiApi/quote', params);
  793. this.totalCompanyList[num].msg = res.msg;
  794. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  795. this.totalCompanyList[num].quoteCode = "4";
  796. this.totalCompanyList[num].msg = res.msg;
  797. return;
  798. } else if (
  799. res.data == null &&
  800. res.msg.indexOf("交强险平台返回") > -1 &&
  801. res.msg.indexOf(";终保日期") > -1
  802. ) {
  803. let time =
  804. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  805. this.jqstartDate = time;
  806. this.jqendDate = this.oneYearPast(time);
  807. this.systartDate = time;
  808. this.syendDate = this.oneYearPast(time);
  809. if (this.riskList.length > 0) {
  810. for (let i = 0; i < this.riskList.length; i++) {
  811. if (this.riskList[i].riskCode == "0507") {
  812. this.riskList[i].startDate = time;
  813. this.riskList[i].endDate = this.oneYearPast(time);
  814. } else if (this.riskList[i].riskCode == "0510") {
  815. this.riskList[i].startDate = time;
  816. this.riskList[i].endDate = this.oneYearPast(time);
  817. }
  818. }
  819. }
  820. let param = {
  821. userId: this.userInfo.sysUser.id,
  822. quoteno: this.quoteno,
  823. orderNo: this.orderno,
  824. carInfo: this.carInfo,
  825. insuredPersonInfo: this.insuredPersonInfo,
  826. ownerInfo: this.ownerInfo,
  827. policyHolderInfo: this.policyHolderInfo,
  828. kindList: this.kindList,
  829. riskList: this.riskList
  830. };
  831. await this.$http.post('/insurance/order/generateOrder', param);
  832. return this.zhongmei(num, id);
  833. } else if (!!res.data) {
  834. this.totalCompanyList[num].quoteCode = 200;
  835. this.totalCompanyList[num].result = res.data;
  836. } else {
  837. this.totalCompanyList[num].quoteCode = "3";
  838. this.totalCompanyList[num].msg = res.msg;
  839. return;
  840. }
  841. },
  842. //永诚报价
  843. async yongcheng(num, id) {
  844. let accidentalDrivingVo = {};
  845. if (this.accidentForm.id) {
  846. let data = this.accidentDataList.find(
  847. val => val.id == this.accidentForm.accidentType
  848. );
  849. accidentalDrivingVo = {
  850. rideRiskCode: data.code ? data.code : "",
  851. rideRiskName: data.name ? data.name : "",
  852. quantity: this.accidentForm.fen ? this.accidentForm.fen : ""
  853. };
  854. }
  855. let params = {
  856. accidentalDrivingVo,
  857. orderNo: this.orderno,
  858. companyId: id,
  859. cqryCdeJq: this.cqryCdeJq,
  860. cqryCdeSy: this.cqryCdeSy,
  861. renewalCodeJq: this.renewalCodeJq,
  862. renewalCodeSy: this.renewalCodeSy
  863. };
  864. let res = await this.$http('/api/yongCheng/quote', params);
  865. this.totalCompanyList[num].msg = res.msg;
  866. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  867. this.totalCompanyList[num].quoteCode = "4";
  868. this.totalCompanyList[num].msg = res.msg;
  869. return;
  870. } else if (
  871. res.data == null &&
  872. res.msg.indexOf("车险平台返回") > -1 &&
  873. res.msg.indexOf(";终保日期") > -1
  874. ) {
  875. let time =
  876. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  877. let Aortime = this.transformTime2(time); //终保日期的后一天
  878. this.jqstartDate = Aortime;
  879. this.jqendDate = this.oneYearPast(Aortime);
  880. this.systartDate = Aortime;
  881. this.syendDate = this.oneYearPast(Aortime);
  882. if (this.riskList.length > 0) {
  883. for (let i = 0; i < this.riskList.length; i++) {
  884. if (this.riskList[i].riskCode == "0507") {
  885. this.riskList[i].startDate = Aortime;
  886. this.riskList[i].endDate = this.oneYearPast(Aortime);
  887. } else if (this.riskList[i].riskCode == "0510") {
  888. this.riskList[i].startDate = Aortime;
  889. this.riskList[i].endDate = this.oneYearPast(Aortime);
  890. }
  891. }
  892. }
  893. let param = {
  894. userId: this.userInfo.sysUser.id,
  895. quoteno: this.quoteno,
  896. orderNo: this.orderno,
  897. carInfo: this.carInfo,
  898. insuredPersonInfo: this.insuredPersonInfo,
  899. ownerInfo: this.ownerInfo,
  900. policyHolderInfo: this.policyHolderInfo,
  901. kindList: this.kindList,
  902. riskList: this.riskList
  903. };
  904. await this.$http.post('/insurance/order/generateOrder', param);
  905. return this.yongcheng(num, id);
  906. } else if (res.code == "200") {
  907. this.totalCompanyList[num].quoteCode = 200;
  908. this.totalCompanyList[num].result = res.data;
  909. } else if (res.code == "101") {
  910. this.totalCompanyList[num].quoteCode = "101";
  911. this.totalCompanyList[num].msg = res.msg;
  912. this.cqryCdeJq = res.data.cqryCdeJq;
  913. this.cqryCdeSy = res.data.cqryCdeSy;
  914. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  915. let jqBase64 = `data:image/png;base64,${jq}`;
  916. this.renewalCodeJqImg = jqBase64;
  917. if (res.data.renewalCodeSy) {
  918. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  919. let syBase64 = `data:image/png;base64,${sy}`;
  920. this.renewalCodeSyImg = syBase64;
  921. }
  922. this.renewalCodedialogVisible = true;
  923. } else {
  924. this.totalCompanyList[num].quoteCode = "3";
  925. this.totalCompanyList[num].msg = res.msg;
  926. return;
  927. }
  928. },
  929. //爬虫统一报价接口
  930. async quoteInsurance(num, id, apiType) {
  931. let api = apiType === 2 ? "/insurance/crawler/quote" : "anshengquote";
  932. let params = {
  933. orderNo: this.orderno,
  934. companyId: id,
  935. agreementId: this.totalCompanyList[num].agreementId,
  936. };
  937. let res = await this.$http.post(`${api}`, params);
  938. this.totalCompanyList[num].msg = res.msg;
  939. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  940. this.totalCompanyList[num].quoteCode = "4";
  941. this.totalCompanyList[num].msg = res.msg;
  942. return;
  943. } else if (
  944. res.data == null &&
  945. res.msg.indexOf("交强险平台返回") > -1 &&
  946. res.msg.indexOf(";终保日期") > -1
  947. ) {
  948. let time =
  949. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  950. this.jqstartDate = time;
  951. this.jqendDate = this.oneYearPast(time);
  952. this.systartDate = time;
  953. this.syendDate = this.oneYearPast(time);
  954. if (this.riskList.length > 0) {
  955. for (let i = 0; i < this.riskList.length; i++) {
  956. if (this.riskList[i].riskCode == "0507") {
  957. this.riskList[i].startDate = time;
  958. this.riskList[i].endDate = this.oneYearPast(time);
  959. } else if (this.riskList[i].riskCode == "0510") {
  960. this.riskList[i].startDate = time;
  961. this.riskList[i].endDate = this.oneYearPast(time);
  962. }
  963. }
  964. }
  965. let param = {
  966. userId: this.userInfo.sysUser.id,
  967. quoteno: this.quoteno,
  968. orderNo: this.orderno,
  969. carInfo: this.carInfo,
  970. insuredPersonInfo: this.insuredPersonInfo,
  971. ownerInfo: this.ownerInfo,
  972. policyHolderInfo: this.policyHolderInfo,
  973. kindList: this.kindList,
  974. riskList: this.riskList
  975. };
  976. await this.$http.post('/insurance/order/generateOrder', param);
  977. return this.quoteInsurance(num, id, apiType);
  978. } else if (!!res.data) {
  979. this.totalCompanyList[num].quoteCode = 200;
  980. this.totalCompanyList[num].result = res.data;
  981. } else {
  982. this.totalCompanyList[num].quoteCode = "3";
  983. this.totalCompanyList[num].msg = res.msg;
  984. return;
  985. }
  986. },
  987. //安盛天平
  988. ansheng(num, id) {
  989. this.quoteInsurance(num, id, this.totalCompanyList[num].apiType);
  990. },
  991. //众安
  992. zhongan(num, id) {
  993. this.quoteInsurance(num, id, this.totalCompanyList[num].apiType);
  994. },
  995. //人寿
  996. renshou(num, id) {
  997. this.quoteInsurance(num, id, this.totalCompanyList[num].apiType);
  998. },
  999. //恒邦
  1000. hengbang(num, id) {
  1001. this.quoteInsurance(num, id, this.totalCompanyList[num].apiType);
  1002. },
  1003. /**
  1004. * 选择保险公司方法
  1005. * @param {String} event change选中事件
  1006. * @param {String} code 保险公司ID
  1007. * @param {String} name 保险公司主体全拼
  1008. * @param {String} index 选中下标
  1009. */
  1010. checkboxChange(event, code, name, index) {
  1011. this.totalCompanyList[index].checked = event.value;
  1012. let arr = this.totalCompanyList[index].agreement;
  1013. let list = [];
  1014. list = arr.filter(item => {
  1015. return item.licenseNo.length > 0 ? item.licenseNo.includes(this.carInfo.licenseNo.slice(
  1016. 0,
  1017. 2)) : "true"
  1018. })
  1019. list.map(ele => {
  1020. ele.extra = ele.apiType;
  1021. return ele;
  1022. })
  1023. this.agreementList = list;
  1024. },
  1025. // 重新选择车型
  1026. toCarInfo() {
  1027. this.navigate({
  1028. url: '/pages/carInsure1/carInfo1',
  1029. success: (res) => {
  1030. res.eventChannel.emit("acceptData", {
  1031. carInfo: this.carInfo,
  1032. ownerInfo: this.ownerInfo,
  1033. policyHolderInfo: this.policyHolderInfo,
  1034. insuredPersonInfo: this.insuredPersonInfo,
  1035. riskList: this.riskList,
  1036. kindList: this.kindList,
  1037. carInfoRmation: this.carInfoRmation, //车辆
  1038. ownerInfoRmation: this.ownerInfoRmation, //车主
  1039. policyHolderInfoRmation: this.policyHolderInfoRmation, //投保
  1040. insuredPersonInfoRmation: this.insuredPersonInfoRmation, //被保人
  1041. })
  1042. }
  1043. }, "navigateTo", true);
  1044. },
  1045. // 重新选择方案
  1046. toInsureItems() {
  1047. this.navigate({
  1048. url: '/pages/carInsure1/insureItems1',
  1049. success: (res) => {
  1050. res.eventChannel.emit("acceptData", {
  1051. carInfo: this.carInfo,
  1052. ownerInfo: this.ownerInfo,
  1053. policyHolderInfo: this.policyHolderInfo,
  1054. insuredPersonInfo: this.insuredPersonInfo,
  1055. riskList: this.riskList,
  1056. kindList: this.kindList,
  1057. carInfoRmation: this.carInfoRmation, //车辆
  1058. ownerInfoRmation: this.ownerInfoRmation, //车主
  1059. policyHolderInfoRmation: this.policyHolderInfoRmation, //投保
  1060. insuredPersonInfoRmation: this.insuredPersonInfoRmation, //被保人
  1061. vehicleModel: this.vehicleModel,
  1062. })
  1063. }
  1064. }, "navigateTo", true);
  1065. },
  1066. toQuoteDetail(orderno) {
  1067. this.navigate({
  1068. url: "/pages/carInsure1/quoteDetail1?orderno=" + orderno
  1069. }, "navigateTo", true);
  1070. },
  1071. // 显示报错信息
  1072. ErrorMsg(msg) {
  1073. this.content = msg;
  1074. this.msgshow = true;
  1075. },
  1076. //选择正确的车型
  1077. async chooseCarType(item) {
  1078. this.carInfo.brandName = item.modelname; //品牌型号
  1079. this.carInfo.ciModelCode = item.vehiclecode; //行业车型编码
  1080. this.carInfo.modelCode = item.modelcode;
  1081. this.carInfo.seatCount = item.seatmax + '';
  1082. this.carInfo.caryear = item.caryear;
  1083. this.carInfo.exhaustScale = (item.exhaustscale * 1000) + '';
  1084. this.carInfo.factory = item.factory;
  1085. this.carInfo.factoryid = item.factorycode;
  1086. this.carInfo.cimodelclass = item.inscarclassname;
  1087. this.carInfo.powertype = item.powerType;
  1088. this.carInfo.purchasePrice = item.purchaseprice + '';
  1089. this.carInfo.modelcname = item.modelname;
  1090. this.$refs.carTypePopup.hide()
  1091. let a = await this.huanongquote(0);
  1092. this.totalCompanyList[0].result = a;
  1093. if (this.totalCompanyList[0].quoteCode != '4') {
  1094. this.quoteCompanyCount++;
  1095. let c = await this.zhongmeiquote(2);
  1096. this.totalCompanyList[2].result = c;
  1097. this.quoteCompanyCount++;
  1098. let d = await this.tiananquote(1);
  1099. this.totalCompanyList[1].result = d;
  1100. this.quoteCompanyCount++;
  1101. let b = await this.hengbangquote(3);
  1102. this.totalCompanyList[3].result = b;
  1103. this.quoteCompanyCount++;
  1104. }
  1105. },
  1106. oneYearPast(time) {
  1107. var date = new Date(time);
  1108. date.setFullYear(date.getFullYear() + 1); //一年后
  1109. date.setTime(date.getTime() - 24 * 60 * 60 * 1000); //一年后的前一天
  1110. var strYear = date.getFullYear();
  1111. var strMonth = date.getMonth() + 1;
  1112. var strDay = date.getDate();
  1113. var hh = date.getHours();
  1114. if (hh < 10) {
  1115. hh = "0" + hh;
  1116. }
  1117. if (strMonth < 10) {
  1118. strMonth = "0" + strMonth;
  1119. }
  1120. if (strDay < 10) {
  1121. strDay = "0" + strDay;
  1122. }
  1123. var datastr = strYear + "-" + strMonth + "-" + strDay + ' ' + hh + ':00:00';
  1124. return datastr;
  1125. },
  1126. }
  1127. }
  1128. </script>
  1129. <style lang="scss" scoped>
  1130. @import '@/style/mixin.scss';
  1131. /* 头部车辆信息和特权Start */
  1132. .carInfo {
  1133. height: 330upx;
  1134. background: -webkit-linear-gradient(0deg, rgba($themeColor, 0.6), rgba($themeColor, 0.8));
  1135. background-size: 100% 100%;
  1136. }
  1137. .carInfo .topLeft {
  1138. width: 120upx;
  1139. font-size: 90upx;
  1140. color: #FFFFFF;
  1141. }
  1142. .carInfo .topRight .brandName {
  1143. width: 400upx;
  1144. overflow: hidden;
  1145. text-overflow: ellipsis;
  1146. white-space: nowrap;
  1147. }
  1148. .carInfo .other {
  1149. background-color: #FFFFFF;
  1150. height: 80upx;
  1151. border-radius: 15upx;
  1152. box-sizing: border-box;
  1153. }
  1154. .carInfo .other .privilege {
  1155. background-color: rgba($themeColor, 0.6);
  1156. font-size: 24upx;
  1157. color: #FFFFFF;
  1158. font-weight: bold;
  1159. }
  1160. .carInfo .other .content {
  1161. width: 460upx;
  1162. margin-left: 15upx;
  1163. overflow: hidden;
  1164. text-overflow: ellipsis;
  1165. white-space: nowrap;
  1166. }
  1167. .carInfo .other .icon {
  1168. width: 30upx;
  1169. }
  1170. /* 头部车辆信息和特权End */
  1171. .pageContent {
  1172. position: relative;
  1173. top: -50upx;
  1174. padding-bottom: 100px;
  1175. }
  1176. /* 报价方案Start */
  1177. .quotePlan {
  1178. background: #FFFFFF;
  1179. position: relative;
  1180. border-radius: 20upx;
  1181. }
  1182. .quotePlan .header {
  1183. height: 80upx;
  1184. position: relative;
  1185. border-bottom: 1px solid #E6E8EA;
  1186. }
  1187. .quotePlan .header .title {
  1188. // font-size: 30upx;
  1189. font-weight: bold;
  1190. padding-left: 25upx;
  1191. }
  1192. .quotePlan .header .title:before {
  1193. content: "";
  1194. position: absolute;
  1195. left: 30upx;
  1196. top: 25upx;
  1197. width: 8upx;
  1198. height: 30upx;
  1199. background-color: $themeColor;
  1200. }
  1201. .quotePlan .body {
  1202. padding: 0 30upx 10upx;
  1203. }
  1204. .quotePlan .body .insurance {
  1205. padding-bottom: 20upx;
  1206. border-bottom: 1px dashed #E6E8EA;
  1207. }
  1208. .carTypeItem {
  1209. padding: 0 30upx 20upx;
  1210. border-bottom: 1px solid #e5e5e5;
  1211. margin-top: 20upx;
  1212. width: 100%;
  1213. box-sizing: border-box;
  1214. }
  1215. .carTypeItem .nav .carseriesName {
  1216. font-size: 34upx;
  1217. width: 360upx;
  1218. font-family: PingFangSC-Medium, PingFangSC;
  1219. color: #4a4a4a;
  1220. overflow: hidden;
  1221. text-overflow: ellipsis;
  1222. white-space: nowrap;
  1223. }
  1224. .carTypeItem .nav .modelName {
  1225. font-size: 26upx;
  1226. width: 400upx;
  1227. font-family: PingFangSC-Medium, PingFangSC;
  1228. overflow: hidden;
  1229. text-overflow: ellipsis;
  1230. white-space: nowrap;
  1231. }
  1232. .carTypeItem .nav .nav_box {
  1233. margin: 10upx 0;
  1234. }
  1235. .carTypeItem .nav .nav_box .zid {
  1236. display: inline-block;
  1237. padding: 6upx 10upx;
  1238. font-size: 24upx;
  1239. height: 40upx;
  1240. background: #AFC9F7;
  1241. border-radius: 25upx;
  1242. color: #007AFF;
  1243. font-weight: bold;
  1244. line-height: 40upx;
  1245. }
  1246. .carTypeItem .nav .nav_box>p {
  1247. margin-left: 30upx;
  1248. color: #999;
  1249. font-size: 24upx;
  1250. }
  1251. .carTypeItem .price {
  1252. font-size: 16px;
  1253. width: 200upx;
  1254. flex-shrink: 0;
  1255. font-family: PingFangSC-Regular, PingFangSC;
  1256. font-weight: 400;
  1257. color: #007AFF;
  1258. }
  1259. .quotePlan .body .row {
  1260. height: 70upx;
  1261. }
  1262. .quotePlan .body .date {
  1263. background-color: $themeColor;
  1264. color: $themeColor;
  1265. font-size: 22upx;
  1266. padding: 0upx 7upx;
  1267. border-radius: 3upx;
  1268. margin: 10upx;
  1269. margin-right: 10upx;
  1270. }
  1271. /* 报价方案End */
  1272. /* 报价公司Start */
  1273. .quoteCompany {
  1274. margin: 20upx 30upx;
  1275. box-sizing: border-box;
  1276. /* background:#FFFFFF; */
  1277. position: relative;
  1278. border-radius: 20upx;
  1279. }
  1280. .quoteCompany .header {
  1281. height: 80upx;
  1282. padding: 0 30upx;
  1283. position: relative;
  1284. }
  1285. .quoteCompany .header .title {
  1286. font-size: 30upx;
  1287. font-weight: bold;
  1288. padding-left: 25upx;
  1289. }
  1290. .quoteCompany .header .title:before {
  1291. content: "";
  1292. position: absolute;
  1293. left: 30upx;
  1294. top: 25upx;
  1295. width: 8upx;
  1296. height: 30upx;
  1297. background-color: rgba($themeColor, 0.6);
  1298. }
  1299. .quoteCompany .header .title .icon {
  1300. color: rgba($themeColor, 0.6);
  1301. margin-left: 15upx;
  1302. }
  1303. .quoteCompanyItem {
  1304. margin-bottom: 20upx;
  1305. background: #FFFFFF;
  1306. border-radius: 15upx;
  1307. padding: 10px 20px;
  1308. box-sizing: border-box;
  1309. cursor: pointer;
  1310. }
  1311. .quoteCompanyItem .top {
  1312. position: relative;
  1313. }
  1314. .quoteCompanyItem .top .companyIcon {
  1315. flex-shrink: 0;
  1316. }
  1317. .quoteCompanyItem .top .companyIcon image {
  1318. width: 34px;
  1319. height: 34px;
  1320. margin-right: 10px;
  1321. }
  1322. .quoteCompanyItem .top .companyName {
  1323. font-size: 32upx;
  1324. font-weight: bold;
  1325. width: 180upx;
  1326. overflow: hidden;
  1327. text-overflow: ellipsis;
  1328. white-space: nowrap;
  1329. }
  1330. .quoteCompanyItem .top .totalMoney {
  1331. font-size: 40upx;
  1332. font-weight: bold;
  1333. color: $themeColor;
  1334. position: absolute;
  1335. top: -15upx;
  1336. right: 0;
  1337. }
  1338. .quoteCompanyItem .top .tip {
  1339. font-size: 26upx;
  1340. font-weight: bold;
  1341. color: #999;
  1342. position: absolute;
  1343. top: 0upx;
  1344. right: 0;
  1345. }
  1346. .sum {
  1347. color: #ea552d;
  1348. font-size: 22px;
  1349. font-weight: bold;
  1350. }
  1351. .quoteCompanyItem .top .signs {
  1352. width: 500upx;
  1353. overflow: hidden;
  1354. text-overflow: ellipsis;
  1355. white-space: nowrap;
  1356. }
  1357. .quoteCompanyItem .top .sign {
  1358. height: 40upx;
  1359. margin: 0upx 10upx;
  1360. background: rgba($themeColor, 0.6);
  1361. color: $themeColor;
  1362. font-size: 20upx;
  1363. margin-right: 10upx;
  1364. border-radius: 6upx;
  1365. padding: 0 2px;
  1366. line-height: 40upx;
  1367. }
  1368. .jqsign {
  1369. height: 20px;
  1370. background: rgba(255, 177, 177, 0.55);
  1371. color: #fd0a0a;
  1372. font-size: 20upx;
  1373. border-radius: 6upx;
  1374. padding: 0 10px;
  1375. box-sizing: border-box;
  1376. }
  1377. .quoteCompanyItem .body {
  1378. padding: 20upx 0;
  1379. flex-wrap: wrap;
  1380. }
  1381. .quoteCompanyItem .body>view {
  1382. flex-shrink: 0;
  1383. width: 50%;
  1384. overflow: hidden;
  1385. text-overflow: ellipsis;
  1386. white-space: nowrap;
  1387. }
  1388. .quoteCompanyItem .body .icon-exchange {
  1389. margin-right: 15upx;
  1390. display: inline-block;
  1391. }
  1392. /* 报价公司End */
  1393. /* 查看详情按钮Start */
  1394. .btn {
  1395. font-size: 16px;
  1396. color: #fff;
  1397. background-color: #ea552d;
  1398. margin-top: 10px;
  1399. }
  1400. /* 底部的样式Start */
  1401. .infoBottom {
  1402. height: 140upx;
  1403. position: fixed;
  1404. bottom: 0;
  1405. left: 0;
  1406. right: 0;
  1407. background: #FFFFFF;
  1408. border-top: 1upx solid #EEEEEE;
  1409. z-index: 99;
  1410. }
  1411. .infoBottom>button {
  1412. // font-size: 30upx;
  1413. background: $themeColor;
  1414. color: #FFFFFF;
  1415. flex: 1;
  1416. margin: 0upx 30upx;
  1417. }
  1418. /* 查看详情按钮End */
  1419. </style>