index.vue 24 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012
  1. <template>
  2. <view class="content">
  3. <view class="indexTop">
  4. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  5. <view class="indexnav">首页</view>
  6. </view>
  7. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  8. <view style="height: 43px;"></view>
  9. <view class="topBox"></view>
  10. <view class="yuanhu"></view>
  11. <view class="shoptopbox2" v-if="!carInfo">
  12. <view class="carinfoBox2">
  13. <view class="carinfoBoxNocar" @click="addCar">
  14. <img src="../../static/timg/addcar.png" alt="" class="carinfonocarIcon">
  15. <view class="carinfoBoxNocarRight">
  16. <view class="carinfoBoxNocarRightTitle">添加我的爱车</view>
  17. <view class="carinfoBoxNocarRightMS">按照车型推荐合适的商品</view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="shoptopbox" v-if="carInfo">
  23. <view class="carinfoBox" >
  24. <view class="carinfoBoxTop">
  25. <img :src="carInfo.brandLogo" alt="" class="carLogo" v-if="carInfo.brandLogo">
  26. <img src="../../static/timg/nocar.png" alt="" class="carLogo" v-else>
  27. <view class="carinfoBoxTopCont">
  28. <view class="carinfoBoxTopContTop">
  29. <view class="carInfoplateNumber">{{carInfo.plateNumber}}</view>
  30. <view class="carTnfomilage" v-if="carInfo.milage">{{carInfo.milage}}km</view>
  31. </view>
  32. <view class="carInfocarModel" v-if="carInfo.carModel">{{carInfo.carModel}}</view>
  33. <view class="carInfocarModel" v-else>暂无</view>
  34. </view>
  35. <view class="carinfoBoxTopRight" @click="changeCar">
  36. <img src="../../static/timg/icon_change@2x.png" alt="" class="carinfoBoxTopRightIcon">
  37. <view class="huancheBtn">换车</view>
  38. </view>
  39. </view>
  40. <view class="carInfoBottom">
  41. <view class="carInfoBottomLine">
  42. <view class="carInfoBottomLineTitle">下次保养里程</view>
  43. <view class="carInfoBottomLineTxt" v-if="carInfo.nextCareMilage">{{carInfo.nextCareMilage}}</view>
  44. <view class="carInfoBottomLineTxt" v-else>暂无</view>
  45. </view>
  46. <view class="carInfoBottomLine">
  47. <view class="carInfoBottomLineTitle">下次保养日期</view>
  48. <view class="carInfoBottomLineTxt" v-if="carInfo.nextCareDate">{{carInfo.nextCareDate.slice(0,10)}}</view>
  49. <view class="carInfoBottomLineTxt" v-else>暂无</view>
  50. </view>
  51. <view class="carInfoBottomLine">
  52. <view class="carInfoBottomLineTitle">保养手册</view>
  53. <view class="carInfoBottomLineTxt" @click="information">点击查看</view>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <!-- 服务顾问 -->
  59. <view class="adviser" v-if="managerInfo" @click="goMUsers">
  60. <view class="adviserLeft">
  61. <img v-if="managerInfo.avatar" :src="managerInfo.avatar" alt="" class="advisertx">
  62. <img v-else src="../../static/timg/pic_def_ava@2x.png" alt="" class="advisertx">
  63. <view class="adviserNema">{{managerInfo.name}}</view>
  64. <view class="adviserms">服务顾问</view>
  65. </view>
  66. <img src="../../static/timg/icon_arrow_right.png" alt="" class="adviserJt">
  67. </view>
  68. <!-- 中间功能应用模块 -->
  69. <view class="modular" v-if="homeCardList.application.length>0">
  70. <view class="swiper-item">
  71. <view class="itemLine" @click="goRoter(item)" v-for="(item,index) in homeCardList.application">
  72. <view><img :src="item.icon" alt="" class="itemImg"></view>
  73. <view class="Menusline">{{item.name}}</view>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="advertisement" v-if="homeCardList.ad1.length>0">
  78. <swiper class="swiper2" circular :autoplay="false" :interval="interval"
  79. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#D53533">
  80. <swiper-item v-for="(item,index) in homeCardList.ad1">
  81. <view class="swiper-item2" @click="goRoter(item)">
  82. <image class="swiper-item2Img" :src="item.icon" mode=""></image>
  83. </view>
  84. </swiper-item>
  85. </swiper>
  86. </view>
  87. <view class="advertisement" v-if="homeCardList.ad2.length>0">
  88. <swiper class="swiper2" circular :autoplay="false" :interval="interval"
  89. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#D53533">
  90. <swiper-item v-for="(item,index) in homeCardList.ad2">
  91. <view class="swiper-item2" @click="goRoter(item)">
  92. <image class="swiper-item2Img" :src="item.icon" mode=""></image>
  93. </view>
  94. </swiper-item>
  95. </swiper>
  96. </view>
  97. <view class="advertisement" v-if="homeCardList.ad3.length>0">
  98. <swiper class="swiper2" circular :autoplay="false" :interval="interval"
  99. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#D53533">
  100. <swiper-item v-for="(item,index) in homeCardList.ad3">
  101. <view class="swiper-item2" @click="goRoter(item)">
  102. <image class="swiper-item2Img" :src="item.icon" mode=""></image>
  103. </view>
  104. </swiper-item>
  105. </swiper>
  106. </view>
  107. <!-- 热门活动 -->
  108. <view class="Hot">
  109. <view class="hotTop">
  110. <view class="hotLeft">
  111. <view class="hotSx"></view>
  112. <view class="hottitle">热门活动</view>
  113. </view>
  114. <view class="hotRight">
  115. <view class="hotMore">更多</view>
  116. <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
  117. </view>
  118. </view>
  119. <view class="hotLine" @click="goRoter('paint')">
  120. <view class="hotLineTop">
  121. <image class="hotLineTopImg" src="http://phone.66km.cn:8088/thFiles/C678448A-C874-4B42-9EAE-4F8F21D71D27.jpg" mode=""></image>
  122. <view class="hotlineTimebox">
  123. <view class="hotlinestate1">进行中</view>
  124. <view class="hotTime">2022.01.21-2022.02.14</view>
  125. </view>
  126. </view>
  127. <view class="hotName">博世 7月促【CX-200715003】</view>
  128. </view>
  129. <view class="hotLine">
  130. <view class="hotLineTop">
  131. <image class="hotLineTopImg" src="http://phone.66km.cn:8088/thFiles/C678448A-C874-4B42-9EAE-4F8F21D71D27.jpg" mode=""></image>
  132. <view class="hotlineTimebox">
  133. <view class="hotlinestate2">未开始</view>
  134. <view class="hotTime">2022.01.21-2022.02.14</view>
  135. </view>
  136. </view>
  137. <view class="hotName">博世 7月促【CX-200715003】</view>
  138. </view>
  139. </view>
  140. <!-- 热门商品 -->
  141. <view class="" v-if="homeCardList">
  142. <view class="Hot" v-if="homeCardList.openMGoods.showType==1">
  143. <view class="hotTop">
  144. <view class="hotLeft">
  145. <view class="hotSx"></view>
  146. <view class="hottitle">热门商品</view>
  147. </view>
  148. <view class="hotRight" @click="goShop">
  149. <view class="hotMore">更多</view>
  150. <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
  151. </view>
  152. </view>
  153. <view class="hotGoodsLine" v-for="(item,index) in homeCardList.openMGoods.goodsList" @click="goGoods(item)">
  154. <view>
  155. <image :src="item.url" mode="" class="hotGoodsLineImg"></image>
  156. </view>
  157. <view class="hotGoodsLineRIght">
  158. <view class="goodsName">{{item.name}}</view>
  159. <view class="Sold">
  160. <view v-if="item.showLabel&&item.showLabel.indexOf('3')!=-1">
  161. 已售 {{item.saleQty}}
  162. </view>
  163. </view>
  164. <view class="goodsPrice">
  165. <view class="goodsPrice1">{{item.saleLabel}}</view>
  166. <view class="goodsPrice2">¥</view>
  167. <view class="goodsPrice3">{{item.salePrice}}</view>
  168. <view class="goodsPrice4" v-if="item.showLabel&&item.scribingPrice&&item.showLabel.indexOf('1')!=-1">¥{{item.scribingPrice}}</view>
  169. </view>
  170. </view>
  171. </view>
  172. </view>
  173. </view>
  174. <view style="height: 60rpx;"></view>
  175. <!-- 手机号授权 -->
  176. <view class="authorizBox" v-if="authorizShow" @click="authorizShow=false">
  177. <view class="authorizCont" @click.stop="">
  178. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  179. <view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
  180. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  181. </view>
  182. <view style="text-align: center;padding-top: 56rpx;">
  183. <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  184. </view>
  185. </view>
  186. <!-- <view @getphonenumber="decryptPhoneNumber" >shopId:{{shopId}}</view>
  187. -->
  188. </view>
  189. </template>
  190. <script>
  191. export default {
  192. data() {
  193. return {
  194. shopId: '',
  195. url:'',
  196. wxOpenData:'',
  197. code:'',
  198. carInfo:'',
  199. homeCardList:'',
  200. authorizShow:false,
  201. miniAppName:'',
  202. iStatusBarHeight:'',
  203. managerInfo:'',
  204. unionId:'',
  205. ext:'',
  206. }
  207. },
  208. onLoad() {
  209. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  210. var that=this;
  211. //this.$common.getExtStoreId()
  212. var ext=this.$common.getExtStoreId();
  213. this.ext=ext
  214. console.log(ext)
  215. //console.log( String(Date.now()))
  216. this.shopId=ext.shopId;
  217. this.url=ext.url;
  218. this.unionId=ext.unionId
  219. // uni.setStorage({
  220. // key: 'extdata',
  221. // data: {
  222. // shopId:'E37BB296-5A08-4534-859D-B351BA611AF9',
  223. // },
  224. // success: function () {
  225. // that.uniLogin()
  226. // }
  227. // });
  228. //this.userInfo = uni.getStorageSync("userInfo");
  229. this.userInfo=this.$store.state.userInfo
  230. if(this.userInfo){
  231. //this.wxOpenData = uni.getStorageSync("wxOpenData");
  232. this.getCarList();
  233. this.queryHomeCardList()
  234. this.queryManagerInfo()
  235. }else{
  236. this.uniLogin()
  237. }
  238. },
  239. onShow() {
  240. var indexaddcar = uni.getStorageSync("indexaddcar")
  241. if(indexaddcar==1){
  242. uni.removeStorageSync('indexaddcar');
  243. this.getCarList();
  244. }else{
  245. this.carInfo=this.$store.state.carInfo
  246. }
  247. },
  248. methods: {
  249. addCar(){
  250. if(!this.userInfo){
  251. this.authorizShow=true;
  252. }else{
  253. uni.navigateTo({
  254. url:'../user/addCar/addCar?type=1'
  255. })
  256. }
  257. },
  258. goShop(){
  259. uni.switchTab({
  260. url:'../shop/shop'
  261. })
  262. },
  263. information(){
  264. console.log('车辆信息--',this.carInfo);
  265. uni.navigateTo({
  266. url:'handbook?mileage='+this.carInfo.milage+'&liyangId='+this.carInfo.nLevelID
  267. })
  268. },
  269. changeCar(){
  270. uni.navigateTo({
  271. url:'../user/addCar/cailist'
  272. })
  273. },
  274. goMUsers(){
  275. if(!this.userInfo){
  276. this.authorizShow=true;
  277. }else{
  278. }
  279. },
  280. goGoods(item){
  281. if(!this.userInfo){
  282. this.authorizShow=true;
  283. }else{
  284. uni.navigateTo({
  285. url:'../shop/goodsDetail?id='+item.id
  286. })
  287. }
  288. },
  289. goRoter(item){
  290. console.log(item)
  291. if(!this.userInfo){
  292. this.authorizShow=true;
  293. }else{
  294. if(item.bizType==0){
  295. }else if(item.bizType==1){ //紧急救援
  296. uni.navigateTo({
  297. url:'rescue'
  298. })
  299. }else if(item.bizType==2){ //钣金喷漆
  300. uni.navigateTo({
  301. url:'paint'
  302. })
  303. }else if(item.bizType==3){ //保养
  304. uni.navigateTo({
  305. url:'maintain'
  306. })
  307. }else if(item.bizType==4){ //在线预约
  308. uni.navigateTo({
  309. url:'onlineBooking?naShopId='+item.naShopId
  310. })
  311. }else if(item.bizType==5){ //导航
  312. this.getShopinfo(5,item.reShopId)
  313. }else if(item.bizType==6){ //联系本店
  314. this.getShopinfo(6,item.orShopId)
  315. }else if(item.bizType==7){ //7门店列表
  316. uni.navigateTo({
  317. url:'shopList'
  318. })
  319. }else if(item.bizType==8){ //我的会员卡
  320. uni.navigateTo({
  321. url:'vipCard'
  322. })
  323. }else if(item.bizType==9){ //我的优惠券
  324. uni.navigateTo({
  325. url:'discountCard'
  326. })
  327. }else if(item.bizType==10){ //我的订单
  328. uni.navigateTo({
  329. url:'../user/myOrder/myOrder'
  330. })
  331. }else if(item.bizType==11){ //我的预约
  332. uni.navigateTo({
  333. url:'../user/myBespeak'
  334. })
  335. }else if(item.bizType==12){ //历史消费
  336. uni.navigateTo({
  337. url:'../user/historySpend'
  338. })
  339. }else if(item.bizType==12){ //历史消费
  340. uni.navigateTo({
  341. url:'../user/historySpend'
  342. })
  343. }else if(item.bizType==13){ //车检报告
  344. uni.navigateTo({
  345. url:'../user/checkReport'
  346. })
  347. }else if(item.bizType==14){ //指定商品分类
  348. uni.setStorage({
  349. key: 'shopcategoryID',
  350. data: item.bizId,
  351. success: function () {
  352. getApp().globalData.shopcategoryID=item.bizId;
  353. uni.switchTab({
  354. url:'../shop/shop?shopcategoryID='+ item.bizId
  355. })
  356. }
  357. });
  358. }else if(item.bizType==15){ //商品详情
  359. uni.navigateTo({
  360. url:'../shop/goodsDetail?id=CD2D70DC-706C-4441-9864-33BD19457CAE'
  361. })
  362. }
  363. // uni.navigateTo({
  364. // url:url
  365. // })
  366. }
  367. },
  368. decryptPhoneNumber: function(e) {
  369. console.log(e);
  370. this.code=e.detail.code
  371. this.wxPhoneLogin()
  372. this.authorizShow=false;
  373. },
  374. wxgologin(){
  375. var that=this;
  376. uni.getUserProfile({
  377. lang:'zh_CN',
  378. desc:'登录',
  379. success:(res)=>{
  380. console.log(res);
  381. that.wxdata=res;
  382. uni.setStorage({
  383. key: 'wxdata',
  384. data: res,
  385. success: function () {
  386. that.uniLogin()
  387. }
  388. });
  389. },
  390. fail:(res)=>{
  391. console.log(res)
  392. }
  393. });
  394. },
  395. uniLogin(){
  396. var that=this;
  397. uni.login({
  398. provider: 'weixin',
  399. success: function (loginRes) {
  400. console.log(loginRes);
  401. that.getWxOpenID(loginRes)
  402. }
  403. });
  404. },
  405. getWxOpenID(e){
  406. var that=this;
  407. uni.showLoading({
  408. title: '加载中'
  409. })
  410. this.$http('miniApp2/sys/getWxOpenID', {
  411. code:e.code,
  412. unionId:this.unionId
  413. },'GET').then(res => {
  414. this.wxOpenData=res.data;
  415. that.queryHomeCardList()
  416. //that.wxPhoneLogin()
  417. this.$store.commit('mutationswxOpenData', that.wxOpenData)
  418. uni.setStorage({
  419. key: 'wxOpenData',
  420. data: that.wxOpenData,
  421. success: function () {
  422. // that.uniLogin()
  423. }
  424. });
  425. if(this.wxOpenData.loginInfo){
  426. this.$store.commit('mutationsuserInfo', that.wxOpenData.loginInfo.openUser)
  427. this.userInfo=that.wxOpenData.loginInfo.openUser
  428. that.queryManagerInfo()
  429. uni.setStorage({
  430. key: 'userInfo',
  431. data: that.wxOpenData.loginInfo.openUser,
  432. success: function () {
  433. that.getCarList()
  434. }
  435. });
  436. }else{
  437. this.authorizShow=true;
  438. }
  439. })
  440. },
  441. wxPhoneLogin(){
  442. var that=this;
  443. this.$http('miniApp2/sys/wxPhoneLogin', {
  444. appId:this.ext.appId,
  445. unionId:this.unionId,
  446. code:this.code,
  447. openId:this.wxOpenData.openid
  448. },'POST').then(res => {
  449. var data = res.data;
  450. if(data.loginInfo){
  451. this.userInfo=data.loginInfo.openUser;
  452. this.$store.commit('mutationsuserInfo', this.userInfo);
  453. this.$store.commit('mutationswxOpenData', data.loginInfo)
  454. uni.setStorage({
  455. key: 'userInfo',
  456. data: data.loginInfo.openUser,
  457. success: function () {
  458. that.getCarList()
  459. that.queryHomeCardList()
  460. that.queryManagerInfo()
  461. }
  462. });
  463. }
  464. })
  465. },
  466. getCarList(){
  467. this.$http('opencarOwnerHome/queryCarInfoList', {
  468. },'GET').then(res => {
  469. if(res.code==401){
  470. this.uniLogin()
  471. }else{
  472. this.carInfo=res.data[0]
  473. this.$store.commit('mutationscarInfo', this.carInfo)
  474. }
  475. })
  476. },
  477. queryManagerInfo(){
  478. console.log("11")
  479. this.$http('openHome/queryManagerInfo', {
  480. },'GET').then(res => {
  481. this.managerInfo=res.data
  482. })
  483. },
  484. queryHomeCardList(){
  485. //console.log(this.wxOpenData)
  486. this.$http('openHome/queryHomeCardList', {
  487. unionId:this.unionId
  488. },'GET').then(res => {
  489. uni.hideLoading();
  490. this.homeCardList=res.data
  491. })
  492. },
  493. getShopinfo(num,shopId){
  494. var that=this;
  495. uni.showLoading({
  496. title: '加载中'
  497. })
  498. if(!shopId){
  499. shopId=''
  500. }
  501. this.$http('openmy/getShopinfo', {
  502. shopId:shopId
  503. },'GET').then(res => {
  504. uni.hideLoading();
  505. var res=res.data
  506. if(num==5){
  507. uni.openLocation({
  508. latitude:Number(res.lat),
  509. longitude:Number(res.lng),
  510. name: res.shopName,
  511. address: res.address,
  512. success: function() {
  513. console.log('success');
  514. },
  515. fail(err) {
  516. console.log(err)
  517. }
  518. });
  519. }else{
  520. uni.makePhoneCall({
  521. phoneNumber: res.contactorPhone
  522. });
  523. }
  524. })
  525. }
  526. }
  527. }
  528. </script>
  529. <style scoped>
  530. .indexTop{
  531. background: #D53533;
  532. width: 750rpx;
  533. position: fixed;
  534. top: 0;
  535. left: 0;
  536. z-index: 11;
  537. }
  538. .indexnav{
  539. height: 44px;
  540. line-height: 44px;
  541. text-align: center;
  542. font-size: 36rpx;
  543. color: #FFFFFF;
  544. }
  545. .authorizBox{
  546. width: 100vw;
  547. height: 100vh;
  548. background: rgba(0, 0, 0, 0.5);
  549. position: fixed;
  550. top: 0;
  551. left: 0;
  552. }
  553. .authorizCont{
  554. margin-top: 30vh;
  555. width: 564rpx;
  556. height: 408rpx;
  557. background: #FFFFFF;
  558. border-radius: 24rpx;
  559. margin-left: 93rpx;
  560. position: relative;
  561. }
  562. .authorizCloseImg{
  563. width: 62rpx;
  564. height: 62rpx;
  565. }
  566. .sqLogoBox{
  567. width: 180rpx;
  568. height: 180rpx;
  569. background: #FFFFFF;
  570. border-radius: 90rpx;
  571. text-align: center;
  572. position: absolute;
  573. top: -50rpx;
  574. left: 192rpx;
  575. }
  576. .authorizName{
  577. color: #333333;
  578. line-height: 42rpx;
  579. font-size: 30rpx;
  580. text-align: center;
  581. padding-top: 58rpx;
  582. }
  583. .authorizMs{
  584. color: #999999;
  585. line-height: 36rpx;
  586. font-size: 26rpx;
  587. width: 452rpx;
  588. padding-top: 24rpx;
  589. text-align: center;
  590. margin-left: 56rpx;
  591. }
  592. .authorizContbutton{
  593. width: 422rpx;
  594. height: 88rpx;
  595. background: #D53533;
  596. border-radius: 44rpx;
  597. line-height: 88rpx;
  598. text-align: center;
  599. font-size:30rpx;
  600. color: #FFFFFF;
  601. margin-top: 62rpx;
  602. margin-left:71rpx;
  603. }
  604. .content{
  605. min-height: 100vh;
  606. background: #F4F5F7;
  607. }
  608. .topBox{
  609. width: 750rpx;
  610. height: 150rpx;
  611. background: #D53533;
  612. }
  613. .yuanhu{
  614. width: 750rpx;
  615. height: 50rpx;
  616. background: #D53533;
  617. border-radius: 0 0 100% 100%;
  618. }
  619. .carinfoBox{
  620. width: 702rpx;
  621. height: 250rpx;
  622. background: #FFFFFF;
  623. border-radius: 10rpx;
  624. margin-left: 24rpx;
  625. overflow: hidden;
  626. }
  627. .carinfoBox2{
  628. width: 702rpx;
  629. height: 180rpx;
  630. background: #FFFFFF;
  631. border-radius: 10rpx;
  632. margin-left: 24rpx;
  633. overflow: hidden;
  634. }
  635. .carinfoBox2{
  636. }
  637. .carinfoBox .carLogo{
  638. width: 72rpx;height: 72rpx;
  639. }
  640. .carinfoBoxTop{
  641. display: flex;
  642. justify-content: space-between;
  643. padding-top: 29rpx;
  644. padding-left: 24rpx;
  645. padding-right: 20rpx;
  646. padding-bottom: 24rpx;
  647. border: 1px solid #EEEEEE;
  648. }
  649. .carinfoBoxTopCont{
  650. width: 454rpx;
  651. }
  652. .carinfoBoxTopContTop{
  653. display: flex;
  654. }
  655. .carInfoplateNumber{
  656. font-weight: 500;
  657. color: #3C3C3C;
  658. font-size: 30rpx;
  659. line-height: 42rpx;
  660. padding-right: 16rpx;
  661. }
  662. .carTnfomilage{
  663. color: #F19D01;
  664. font-size: 22rpx;
  665. padding: 0rpx 10rpx;
  666. border-radius: 4rpx;
  667. border: 1px solid #F19D01;
  668. height: 32rpx;
  669. line-height: 34rpx;
  670. margin-top: 2rpx;
  671. margin-left: 2rpx;
  672. }
  673. .carInfocarModel{
  674. width: 454rpx;
  675. color: #666666;
  676. font-size: 26rpx;
  677. white-space: nowrap;
  678. overflow: hidden;
  679. text-overflow: ellipsis;
  680. }
  681. .carinfoBoxTopRight{
  682. display: flex;padding-top: 25rpx;
  683. }
  684. .carinfoBoxTopRightIcon{
  685. width: 29rpx;
  686. height: 31rpx;
  687. }
  688. .huancheBtn{
  689. color: #666666; font-size: 26rpx;line-height: 31rpx;
  690. padding-left: 10rpx;
  691. }
  692. .carInfoBottom{
  693. display: flex;
  694. justify-content: space-around;
  695. }
  696. .carInfoBottomLineTitle{
  697. color: #999999;font-size: 24rpx;
  698. text-align: center;
  699. padding-top: 24rpx;
  700. }
  701. .carInfoBottomLineTxt{
  702. color: #3C3C3C;
  703. font-size: 26rpx;
  704. padding-top: 5rpx;
  705. text-align: center;
  706. }
  707. .carinfonocarIcon{
  708. width: 72rpx;
  709. height: 72rpx;
  710. }
  711. .carinfoBoxNocar{
  712. display: flex;
  713. padding-top: 50rpx;
  714. padding-left: 20rpx;
  715. }
  716. .carinfoBoxNocarRightTitle{
  717. font-weight: 500;
  718. color: #3C3C3C;
  719. font-size: 30rpx;
  720. }
  721. .carinfoBoxNocarRightMS{
  722. color: #666666;
  723. font-size: 26rpx;
  724. }
  725. .carinfoBoxNocarRight{
  726. padding-left: 24rpx;
  727. }
  728. .shoptopbox{
  729. margin-top: -170rpx;
  730. }
  731. .shoptopbox2{
  732. margin-top: -170rpx;
  733. }
  734. .adviser{
  735. width: 662rpx;
  736. margin-left: 24rpx;
  737. background: #FFFFFF;
  738. border-radius: 10px;
  739. display: flex;
  740. justify-content: space-between;
  741. padding: 18rpx 20rpx;
  742. margin-top: 20rpx;
  743. }
  744. .adviserLeft{
  745. display: flex;
  746. }
  747. .advisertx{
  748. width: 62rpx;height: 62rpx;
  749. }
  750. .adviserNema{
  751. color: #333333;font-size: 30rpx;
  752. line-height: 62rpx;padding-left: 24rpx;
  753. }
  754. .adviserms{
  755. width: 118rpx;
  756. height: 36rpx;
  757. border-radius: 4rpx;
  758. border: 1px solid #D53533;
  759. line-height: 36rpx;
  760. text-align: center;
  761. margin-top: 12rpx;
  762. margin-left: 20rpx;
  763. color: #D53533;
  764. font-size: 24rpx;
  765. }
  766. .adviserJt{
  767. width: 12rpx;
  768. height: 20rpx;
  769. margin-top: 16rpx;
  770. }
  771. .modular{
  772. width: 702rpx;
  773. /* height: 313rpx; */
  774. background: #FFFFFF;
  775. border-radius: 10px;
  776. margin-top: 20rpx;
  777. margin-left: 24rpx;
  778. padding-bottom: 40rpx;
  779. }
  780. .swiper-item{
  781. display: flex;
  782. flex-wrap: wrap;
  783. }
  784. .itemImg{
  785. width: 46rpx;
  786. height: 46rpx;
  787. }
  788. .Menusline{
  789. font-size: 24rpx;
  790. color: #333333;
  791. }
  792. .itemLine{
  793. width: 20%;
  794. text-align: center;
  795. padding-top: 40rpx;
  796. }
  797. .advertisement{
  798. width: 702rpx;
  799. height: 280rpx;
  800. margin-top: 20rpx;
  801. margin-left: 24rpx;
  802. border-radius: 20rpx;
  803. }
  804. .swiper-item2{
  805. width: 702rpx;
  806. height: 280px;
  807. }
  808. .swiper-item2Img{
  809. width: 702rpx;
  810. height: 280rpx;
  811. }
  812. .hotMoreJt{
  813. width: 12rpx;
  814. height: 20rpx;
  815. margin-top: 6rpx;
  816. }
  817. .Hot{
  818. width: 702rpx;
  819. margin-top: 20rpx;
  820. margin-left: 24rpx;
  821. }
  822. .hotTop{
  823. display: flex;
  824. justify-content: space-between;
  825. padding: 6rpx 0;
  826. }
  827. .hotSx{
  828. width: 8rpx;
  829. height: 30rpx;
  830. background: #FF0000;
  831. border-radius: 5rpx;
  832. }
  833. .hotLeft{
  834. display: flex;
  835. }
  836. .hottitle{
  837. font-weight: 500;
  838. color: #333333;
  839. font-size: 30rpx;
  840. line-height: 30rpx;
  841. margin-left: 16rpx;
  842. }
  843. .hotRight{
  844. display: flex;
  845. }
  846. .hotMore{
  847. line-height: 30rpx;color: #666666;font-size: 24rpx;
  848. margin-right: 16rpx;
  849. }
  850. .hotLineTopImg{
  851. width: 702rpx;
  852. height: 280rpx;
  853. }
  854. .hotLineTop{
  855. position: relative;
  856. height: 280rpx;
  857. }
  858. .hotLine{
  859. margin-top: 20rpx;
  860. border-radius: 10rpx;
  861. background: #FFFFFF;
  862. overflow: hidden;
  863. }
  864. .hotlinestate1{
  865. width: 102rpx;
  866. height: 44rpx;
  867. background:#FBBF00 ;
  868. line-height: 44rpx;
  869. font-weight: 500;
  870. color: #333333;
  871. font-size: 24rpx;
  872. text-align: center;
  873. }
  874. .hotlinestate2{
  875. width: 102rpx;
  876. height: 44rpx;
  877. background:#FF0000 ;
  878. line-height: 44rpx;
  879. font-weight: 500;
  880. color: #FFFFFF;
  881. font-size: 24rpx;
  882. text-align: center;
  883. }
  884. .hotlineTimebox{
  885. position: absolute;
  886. left: 0;
  887. bottom: 0;
  888. background: rgba(0, 0, 0, 0.5);
  889. display: flex;
  890. }
  891. .hotTime{
  892. font-weight: 400;
  893. color: #FFFFFF;
  894. font-size: 24rpx;
  895. line-height: 44rpx;
  896. padding: 0 20rpx;
  897. }
  898. .hotName{
  899. padding: 24rpx 20rpx;
  900. color: #333333;
  901. line-height: 40rpx;
  902. font-size: 28rpx;
  903. }
  904. .hotGoodsLine{
  905. margin-top: 30rpx;
  906. padding: 20rpx;
  907. background: #FFFFFF;
  908. border-radius: 16rpx;
  909. display: flex;
  910. }
  911. .hotGoodsLineImg{
  912. width: 208rpx;
  913. height: 194rpx;
  914. border-radius: 16rpx;
  915. border: 1px solid #EEEEEE;
  916. display: block;
  917. }
  918. .goodsName{
  919. font-size: 28rpx;
  920. font-family: PingFangSC-Regular, PingFang SC;
  921. font-weight: 400;
  922. color: #333333;
  923. line-height: 40rpx;
  924. text-overflow: -o-ellipsis-lastline;
  925. overflow: hidden;
  926. text-overflow: ellipsis;
  927. display: -webkit-box;
  928. -webkit-line-clamp: 2;
  929. line-clamp: 2;
  930. -webkit-box-orient: vertical;
  931. }
  932. .hotGoodsLineRIght{
  933. padding-left: 24rpx;
  934. }
  935. .goodsPrice{
  936. display: flex;
  937. padding-top: 10rpx;
  938. }
  939. .goodsPrice1{
  940. font-size: 24rpx;
  941. font-weight: 400;
  942. color: #FF0000;
  943. padding-top: 8rpx;
  944. }
  945. .goodsPrice2{
  946. font-size: 22rpx;
  947. font-weight: 400;
  948. color: #FF0000;
  949. padding-top: 10rpx;
  950. }
  951. .goodsPrice3{
  952. font-size: 32rpx;
  953. font-weight: 500;
  954. color: #FF0000;
  955. }
  956. .goodsPrice4{
  957. font-size: 24rpx;
  958. font-weight: 400;
  959. color: #999999;
  960. padding-top: 8rpx;
  961. padding-left: 10rpx;
  962. text-decoration:line-through;
  963. }
  964. .Sold{
  965. font-weight: 400;
  966. color: #999999;
  967. font-size: 24rpx;
  968. padding-top: 8rpx;
  969. }
  970. </style>