index.vue 24 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015
  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. uni.navigateTo({
  279. url:'../index/personalCard?adInfo='+JSON.stringify(this.managerInfo)
  280. })
  281. }
  282. },
  283. goGoods(item){
  284. if(!this.userInfo){
  285. this.authorizShow=true;
  286. }else{
  287. uni.navigateTo({
  288. url:'../shop/goodsDetail?id='+item.id
  289. })
  290. }
  291. },
  292. goRoter(item){
  293. console.log(item)
  294. if(!this.userInfo){
  295. this.authorizShow=true;
  296. }else{
  297. if(item.bizType==0){
  298. }else if(item.bizType==1){ //紧急救援
  299. uni.navigateTo({
  300. url:'rescue'
  301. })
  302. }else if(item.bizType==2){ //钣金喷漆
  303. uni.navigateTo({
  304. url:'paint'
  305. })
  306. }else if(item.bizType==3){ //保养
  307. uni.navigateTo({
  308. url:'maintain'
  309. })
  310. }else if(item.bizType==4){ //在线预约
  311. uni.navigateTo({
  312. url:'onlineBooking?naShopId='+item.naShopId
  313. })
  314. }else if(item.bizType==5){ //导航
  315. this.getShopinfo(5,item.reShopId)
  316. }else if(item.bizType==6){ //联系本店
  317. this.getShopinfo(6,item.orShopId)
  318. }else if(item.bizType==7){ //7门店列表
  319. uni.navigateTo({
  320. url:'shopList'
  321. })
  322. }else if(item.bizType==8){ //我的会员卡
  323. uni.navigateTo({
  324. url:'vipCard'
  325. })
  326. }else if(item.bizType==9){ //我的优惠券
  327. uni.navigateTo({
  328. url:'discountCard'
  329. })
  330. }else if(item.bizType==10){ //我的订单
  331. uni.navigateTo({
  332. url:'../user/myOrder/myOrder'
  333. })
  334. }else if(item.bizType==11){ //我的预约
  335. uni.navigateTo({
  336. url:'../user/myBespeak'
  337. })
  338. }else if(item.bizType==12){ //历史消费
  339. uni.navigateTo({
  340. url:'../user/historySpend'
  341. })
  342. }else if(item.bizType==12){ //历史消费
  343. uni.navigateTo({
  344. url:'../user/historySpend'
  345. })
  346. }else if(item.bizType==13){ //车检报告
  347. uni.navigateTo({
  348. url:'../user/checkReport'
  349. })
  350. }else if(item.bizType==14){ //指定商品分类
  351. uni.setStorage({
  352. key: 'shopcategoryID',
  353. data: item.bizId,
  354. success: function () {
  355. getApp().globalData.shopcategoryID=item.bizId;
  356. uni.switchTab({
  357. url:'../shop/shop?shopcategoryID='+ item.bizId
  358. })
  359. }
  360. });
  361. }else if(item.bizType==15){ //商品详情
  362. uni.navigateTo({
  363. url:'../shop/goodsDetail?id=CD2D70DC-706C-4441-9864-33BD19457CAE'
  364. })
  365. }
  366. // uni.navigateTo({
  367. // url:url
  368. // })
  369. }
  370. },
  371. decryptPhoneNumber: function(e) {
  372. console.log(e);
  373. this.code=e.detail.code
  374. this.wxPhoneLogin()
  375. this.authorizShow=false;
  376. },
  377. wxgologin(){
  378. var that=this;
  379. uni.getUserProfile({
  380. lang:'zh_CN',
  381. desc:'登录',
  382. success:(res)=>{
  383. console.log(res);
  384. that.wxdata=res;
  385. uni.setStorage({
  386. key: 'wxdata',
  387. data: res,
  388. success: function () {
  389. that.uniLogin()
  390. }
  391. });
  392. },
  393. fail:(res)=>{
  394. console.log(res)
  395. }
  396. });
  397. },
  398. uniLogin(){
  399. var that=this;
  400. uni.login({
  401. provider: 'weixin',
  402. success: function (loginRes) {
  403. console.log(loginRes);
  404. that.getWxOpenID(loginRes)
  405. }
  406. });
  407. },
  408. getWxOpenID(e){
  409. var that=this;
  410. uni.showLoading({
  411. title: '加载中'
  412. })
  413. this.$http('miniApp2/sys/getWxOpenID', {
  414. code:e.code,
  415. unionId:this.unionId
  416. },'GET').then(res => {
  417. this.wxOpenData=res.data;
  418. that.queryHomeCardList()
  419. //that.wxPhoneLogin()
  420. this.$store.commit('mutationswxOpenData', that.wxOpenData)
  421. uni.setStorage({
  422. key: 'wxOpenData',
  423. data: that.wxOpenData,
  424. success: function () {
  425. // that.uniLogin()
  426. }
  427. });
  428. if(this.wxOpenData.loginInfo){
  429. this.$store.commit('mutationsuserInfo', that.wxOpenData.loginInfo.openUser)
  430. this.userInfo=that.wxOpenData.loginInfo.openUser
  431. that.queryManagerInfo()
  432. uni.setStorage({
  433. key: 'userInfo',
  434. data: that.wxOpenData.loginInfo.openUser,
  435. success: function () {
  436. that.getCarList()
  437. }
  438. });
  439. }else{
  440. this.authorizShow=true;
  441. }
  442. })
  443. },
  444. wxPhoneLogin(){
  445. var that=this;
  446. this.$http('miniApp2/sys/wxPhoneLogin', {
  447. appId:this.ext.appId,
  448. unionId:this.unionId,
  449. code:this.code,
  450. openId:this.wxOpenData.openid
  451. },'POST').then(res => {
  452. var data = res.data;
  453. if(data.loginInfo){
  454. this.userInfo=data.loginInfo.openUser;
  455. this.$store.commit('mutationsuserInfo', this.userInfo);
  456. this.$store.commit('mutationswxOpenData', data.loginInfo)
  457. uni.setStorage({
  458. key: 'userInfo',
  459. data: data.loginInfo.openUser,
  460. success: function () {
  461. that.getCarList()
  462. that.queryHomeCardList()
  463. that.queryManagerInfo()
  464. }
  465. });
  466. }
  467. })
  468. },
  469. getCarList(){
  470. this.$http('opencarOwnerHome/queryCarInfoList', {
  471. },'GET').then(res => {
  472. if(res.code==401){
  473. this.uniLogin()
  474. }else{
  475. this.carInfo=res.data[0]
  476. this.$store.commit('mutationscarInfo', this.carInfo)
  477. }
  478. })
  479. },
  480. queryManagerInfo(){
  481. console.log("11")
  482. this.$http('openHome/queryManagerInfo', {
  483. },'GET').then(res => {
  484. this.managerInfo=res.data
  485. })
  486. },
  487. queryHomeCardList(){
  488. //console.log(this.wxOpenData)
  489. this.$http('openHome/queryHomeCardList', {
  490. unionId:this.unionId
  491. },'GET').then(res => {
  492. uni.hideLoading();
  493. this.homeCardList=res.data
  494. })
  495. },
  496. getShopinfo(num,shopId){
  497. var that=this;
  498. uni.showLoading({
  499. title: '加载中'
  500. })
  501. if(!shopId){
  502. shopId=''
  503. }
  504. this.$http('openmy/getShopinfo', {
  505. shopId:shopId
  506. },'GET').then(res => {
  507. uni.hideLoading();
  508. var res=res.data
  509. if(num==5){
  510. uni.openLocation({
  511. latitude:Number(res.lat),
  512. longitude:Number(res.lng),
  513. name: res.shopName,
  514. address: res.address,
  515. success: function() {
  516. console.log('success');
  517. },
  518. fail(err) {
  519. console.log(err)
  520. }
  521. });
  522. }else{
  523. uni.makePhoneCall({
  524. phoneNumber: res.contactorPhone
  525. });
  526. }
  527. })
  528. }
  529. }
  530. }
  531. </script>
  532. <style scoped>
  533. .indexTop{
  534. background: #D53533;
  535. width: 750rpx;
  536. position: fixed;
  537. top: 0;
  538. left: 0;
  539. z-index: 11;
  540. }
  541. .indexnav{
  542. height: 44px;
  543. line-height: 44px;
  544. text-align: center;
  545. font-size: 36rpx;
  546. color: #FFFFFF;
  547. }
  548. .authorizBox{
  549. width: 100vw;
  550. height: 100vh;
  551. background: rgba(0, 0, 0, 0.5);
  552. position: fixed;
  553. top: 0;
  554. left: 0;
  555. }
  556. .authorizCont{
  557. margin-top: 30vh;
  558. width: 564rpx;
  559. height: 408rpx;
  560. background: #FFFFFF;
  561. border-radius: 24rpx;
  562. margin-left: 93rpx;
  563. position: relative;
  564. }
  565. .authorizCloseImg{
  566. width: 62rpx;
  567. height: 62rpx;
  568. }
  569. .sqLogoBox{
  570. width: 180rpx;
  571. height: 180rpx;
  572. background: #FFFFFF;
  573. border-radius: 90rpx;
  574. text-align: center;
  575. position: absolute;
  576. top: -50rpx;
  577. left: 192rpx;
  578. }
  579. .authorizName{
  580. color: #333333;
  581. line-height: 42rpx;
  582. font-size: 30rpx;
  583. text-align: center;
  584. padding-top: 58rpx;
  585. }
  586. .authorizMs{
  587. color: #999999;
  588. line-height: 36rpx;
  589. font-size: 26rpx;
  590. width: 452rpx;
  591. padding-top: 24rpx;
  592. text-align: center;
  593. margin-left: 56rpx;
  594. }
  595. .authorizContbutton{
  596. width: 422rpx;
  597. height: 88rpx;
  598. background: #D53533;
  599. border-radius: 44rpx;
  600. line-height: 88rpx;
  601. text-align: center;
  602. font-size:30rpx;
  603. color: #FFFFFF;
  604. margin-top: 62rpx;
  605. margin-left:71rpx;
  606. }
  607. .content{
  608. min-height: 100vh;
  609. background: #F4F5F7;
  610. }
  611. .topBox{
  612. width: 750rpx;
  613. height: 150rpx;
  614. background: #D53533;
  615. }
  616. .yuanhu{
  617. width: 750rpx;
  618. height: 50rpx;
  619. background: #D53533;
  620. border-radius: 0 0 100% 100%;
  621. }
  622. .carinfoBox{
  623. width: 702rpx;
  624. height: 250rpx;
  625. background: #FFFFFF;
  626. border-radius: 10rpx;
  627. margin-left: 24rpx;
  628. overflow: hidden;
  629. }
  630. .carinfoBox2{
  631. width: 702rpx;
  632. height: 180rpx;
  633. background: #FFFFFF;
  634. border-radius: 10rpx;
  635. margin-left: 24rpx;
  636. overflow: hidden;
  637. }
  638. .carinfoBox2{
  639. }
  640. .carinfoBox .carLogo{
  641. width: 72rpx;height: 72rpx;
  642. }
  643. .carinfoBoxTop{
  644. display: flex;
  645. justify-content: space-between;
  646. padding-top: 29rpx;
  647. padding-left: 24rpx;
  648. padding-right: 20rpx;
  649. padding-bottom: 24rpx;
  650. border: 1px solid #EEEEEE;
  651. }
  652. .carinfoBoxTopCont{
  653. width: 454rpx;
  654. }
  655. .carinfoBoxTopContTop{
  656. display: flex;
  657. }
  658. .carInfoplateNumber{
  659. font-weight: 500;
  660. color: #3C3C3C;
  661. font-size: 30rpx;
  662. line-height: 42rpx;
  663. padding-right: 16rpx;
  664. }
  665. .carTnfomilage{
  666. color: #F19D01;
  667. font-size: 22rpx;
  668. padding: 0rpx 10rpx;
  669. border-radius: 4rpx;
  670. border: 1px solid #F19D01;
  671. height: 32rpx;
  672. line-height: 34rpx;
  673. margin-top: 2rpx;
  674. margin-left: 2rpx;
  675. }
  676. .carInfocarModel{
  677. width: 454rpx;
  678. color: #666666;
  679. font-size: 26rpx;
  680. white-space: nowrap;
  681. overflow: hidden;
  682. text-overflow: ellipsis;
  683. }
  684. .carinfoBoxTopRight{
  685. display: flex;padding-top: 25rpx;
  686. }
  687. .carinfoBoxTopRightIcon{
  688. width: 29rpx;
  689. height: 31rpx;
  690. }
  691. .huancheBtn{
  692. color: #666666; font-size: 26rpx;line-height: 31rpx;
  693. padding-left: 10rpx;
  694. }
  695. .carInfoBottom{
  696. display: flex;
  697. justify-content: space-around;
  698. }
  699. .carInfoBottomLineTitle{
  700. color: #999999;font-size: 24rpx;
  701. text-align: center;
  702. padding-top: 24rpx;
  703. }
  704. .carInfoBottomLineTxt{
  705. color: #3C3C3C;
  706. font-size: 26rpx;
  707. padding-top: 5rpx;
  708. text-align: center;
  709. }
  710. .carinfonocarIcon{
  711. width: 72rpx;
  712. height: 72rpx;
  713. }
  714. .carinfoBoxNocar{
  715. display: flex;
  716. padding-top: 50rpx;
  717. padding-left: 20rpx;
  718. }
  719. .carinfoBoxNocarRightTitle{
  720. font-weight: 500;
  721. color: #3C3C3C;
  722. font-size: 30rpx;
  723. }
  724. .carinfoBoxNocarRightMS{
  725. color: #666666;
  726. font-size: 26rpx;
  727. }
  728. .carinfoBoxNocarRight{
  729. padding-left: 24rpx;
  730. }
  731. .shoptopbox{
  732. margin-top: -170rpx;
  733. }
  734. .shoptopbox2{
  735. margin-top: -170rpx;
  736. }
  737. .adviser{
  738. width: 662rpx;
  739. margin-left: 24rpx;
  740. background: #FFFFFF;
  741. border-radius: 10px;
  742. display: flex;
  743. justify-content: space-between;
  744. padding: 18rpx 20rpx;
  745. margin-top: 20rpx;
  746. }
  747. .adviserLeft{
  748. display: flex;
  749. }
  750. .advisertx{
  751. width: 62rpx;height: 62rpx;
  752. }
  753. .adviserNema{
  754. color: #333333;font-size: 30rpx;
  755. line-height: 62rpx;padding-left: 24rpx;
  756. }
  757. .adviserms{
  758. width: 118rpx;
  759. height: 36rpx;
  760. border-radius: 4rpx;
  761. border: 1px solid #D53533;
  762. line-height: 36rpx;
  763. text-align: center;
  764. margin-top: 12rpx;
  765. margin-left: 20rpx;
  766. color: #D53533;
  767. font-size: 24rpx;
  768. }
  769. .adviserJt{
  770. width: 12rpx;
  771. height: 20rpx;
  772. margin-top: 16rpx;
  773. }
  774. .modular{
  775. width: 702rpx;
  776. /* height: 313rpx; */
  777. background: #FFFFFF;
  778. border-radius: 10px;
  779. margin-top: 20rpx;
  780. margin-left: 24rpx;
  781. padding-bottom: 40rpx;
  782. }
  783. .swiper-item{
  784. display: flex;
  785. flex-wrap: wrap;
  786. }
  787. .itemImg{
  788. width: 46rpx;
  789. height: 46rpx;
  790. }
  791. .Menusline{
  792. font-size: 24rpx;
  793. color: #333333;
  794. }
  795. .itemLine{
  796. width: 20%;
  797. text-align: center;
  798. padding-top: 40rpx;
  799. }
  800. .advertisement{
  801. width: 702rpx;
  802. height: 280rpx;
  803. margin-top: 20rpx;
  804. margin-left: 24rpx;
  805. border-radius: 20rpx;
  806. }
  807. .swiper-item2{
  808. width: 702rpx;
  809. height: 280px;
  810. }
  811. .swiper-item2Img{
  812. width: 702rpx;
  813. height: 280rpx;
  814. }
  815. .hotMoreJt{
  816. width: 12rpx;
  817. height: 20rpx;
  818. margin-top: 6rpx;
  819. }
  820. .Hot{
  821. width: 702rpx;
  822. margin-top: 20rpx;
  823. margin-left: 24rpx;
  824. }
  825. .hotTop{
  826. display: flex;
  827. justify-content: space-between;
  828. padding: 6rpx 0;
  829. }
  830. .hotSx{
  831. width: 8rpx;
  832. height: 30rpx;
  833. background: #FF0000;
  834. border-radius: 5rpx;
  835. }
  836. .hotLeft{
  837. display: flex;
  838. }
  839. .hottitle{
  840. font-weight: 500;
  841. color: #333333;
  842. font-size: 30rpx;
  843. line-height: 30rpx;
  844. margin-left: 16rpx;
  845. }
  846. .hotRight{
  847. display: flex;
  848. }
  849. .hotMore{
  850. line-height: 30rpx;color: #666666;font-size: 24rpx;
  851. margin-right: 16rpx;
  852. }
  853. .hotLineTopImg{
  854. width: 702rpx;
  855. height: 280rpx;
  856. }
  857. .hotLineTop{
  858. position: relative;
  859. height: 280rpx;
  860. }
  861. .hotLine{
  862. margin-top: 20rpx;
  863. border-radius: 10rpx;
  864. background: #FFFFFF;
  865. overflow: hidden;
  866. }
  867. .hotlinestate1{
  868. width: 102rpx;
  869. height: 44rpx;
  870. background:#FBBF00 ;
  871. line-height: 44rpx;
  872. font-weight: 500;
  873. color: #333333;
  874. font-size: 24rpx;
  875. text-align: center;
  876. }
  877. .hotlinestate2{
  878. width: 102rpx;
  879. height: 44rpx;
  880. background:#FF0000 ;
  881. line-height: 44rpx;
  882. font-weight: 500;
  883. color: #FFFFFF;
  884. font-size: 24rpx;
  885. text-align: center;
  886. }
  887. .hotlineTimebox{
  888. position: absolute;
  889. left: 0;
  890. bottom: 0;
  891. background: rgba(0, 0, 0, 0.5);
  892. display: flex;
  893. }
  894. .hotTime{
  895. font-weight: 400;
  896. color: #FFFFFF;
  897. font-size: 24rpx;
  898. line-height: 44rpx;
  899. padding: 0 20rpx;
  900. }
  901. .hotName{
  902. padding: 24rpx 20rpx;
  903. color: #333333;
  904. line-height: 40rpx;
  905. font-size: 28rpx;
  906. }
  907. .hotGoodsLine{
  908. margin-top: 30rpx;
  909. padding: 20rpx;
  910. background: #FFFFFF;
  911. border-radius: 16rpx;
  912. display: flex;
  913. }
  914. .hotGoodsLineImg{
  915. width: 208rpx;
  916. height: 194rpx;
  917. border-radius: 16rpx;
  918. border: 1px solid #EEEEEE;
  919. display: block;
  920. }
  921. .goodsName{
  922. font-size: 28rpx;
  923. font-family: PingFangSC-Regular, PingFang SC;
  924. font-weight: 400;
  925. color: #333333;
  926. line-height: 40rpx;
  927. text-overflow: -o-ellipsis-lastline;
  928. overflow: hidden;
  929. text-overflow: ellipsis;
  930. display: -webkit-box;
  931. -webkit-line-clamp: 2;
  932. line-clamp: 2;
  933. -webkit-box-orient: vertical;
  934. }
  935. .hotGoodsLineRIght{
  936. padding-left: 24rpx;
  937. }
  938. .goodsPrice{
  939. display: flex;
  940. padding-top: 10rpx;
  941. }
  942. .goodsPrice1{
  943. font-size: 24rpx;
  944. font-weight: 400;
  945. color: #FF0000;
  946. padding-top: 8rpx;
  947. }
  948. .goodsPrice2{
  949. font-size: 22rpx;
  950. font-weight: 400;
  951. color: #FF0000;
  952. padding-top: 10rpx;
  953. }
  954. .goodsPrice3{
  955. font-size: 32rpx;
  956. font-weight: 500;
  957. color: #FF0000;
  958. }
  959. .goodsPrice4{
  960. font-size: 24rpx;
  961. font-weight: 400;
  962. color: #999999;
  963. padding-top: 8rpx;
  964. padding-left: 10rpx;
  965. text-decoration:line-through;
  966. }
  967. .Sold{
  968. font-weight: 400;
  969. color: #999999;
  970. font-size: 24rpx;
  971. padding-top: 8rpx;
  972. }
  973. </style>