index.vue 24 KB

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