index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796
  1. <template>
  2. <view class="content">
  3. <view class="topBox"></view>
  4. <view class="yuanhu"></view>
  5. <view class="shoptopbox2" v-if="!carInfo">
  6. <view class="carinfoBox2">
  7. <view class="carinfoBoxNocar" @click="addCar">
  8. <img src="../../static/timg/addcar.png" alt="" class="carinfonocarIcon">
  9. <view class="carinfoBoxNocarRight">
  10. <view class="carinfoBoxNocarRightTitle">添加我的爱车</view>
  11. <view class="carinfoBoxNocarRightMS">按照车型推荐合适的商品</view>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="shoptopbox" v-if="carInfo">
  17. <view class="carinfoBox" >
  18. <view class="carinfoBoxTop">
  19. <img :src="carInfo.brandLogo" alt="" class="carLogo" v-if="carInfo.brandLogo">
  20. <img src="../../static/timg/nocar.png" alt="" class="carLogo" v-else>
  21. <view class="carinfoBoxTopCont">
  22. <view class="carinfoBoxTopContTop">
  23. <view class="carInfoplateNumber">{{carInfo.plateNumber}}</view>
  24. <view class="carTnfomilage">{{carInfo.milage?carInfo.milage:0}}km</view>
  25. </view>
  26. <view class="carInfocarModel" v-if="carInfo.carModel">{{carInfo.carModel}}</view>
  27. <view class="carInfocarModel" v-else>暂无</view>
  28. </view>
  29. <view class="carinfoBoxTopRight" @click="changeCar">
  30. <img src="../../static/timg/icon_change@2x.png" alt="" class="carinfoBoxTopRightIcon">
  31. <view class="huancheBtn">换车</view>
  32. </view>
  33. </view>
  34. <view class="carInfoBottom">
  35. <view class="carInfoBottomLine">
  36. <view class="carInfoBottomLineTitle">下次保养里程</view>
  37. <view class="carInfoBottomLineTxt" v-if="carInfo.nextCareMilage">{{carInfo.nextCareMilage}}</view>
  38. <view class="carInfoBottomLineTxt" v-else>暂无</view>
  39. </view>
  40. <view class="carInfoBottomLine">
  41. <view class="carInfoBottomLineTitle">下次保养日期</view>
  42. <view class="carInfoBottomLineTxt" v-if="carInfo.nextCareDate">{{carInfo.nextCareDate.slice(0,10)}}</view>
  43. <view class="carInfoBottomLineTxt" v-else>暂无</view>
  44. </view>
  45. <view class="carInfoBottomLine">
  46. <view class="carInfoBottomLineTitle">保养手册</view>
  47. <view class="carInfoBottomLineTxt" @click="information">点击查看</view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <!-- 服务顾问 -->
  53. <view class="adviser" v-if="homeCardList.openMUsers" @click="goRoter">
  54. <view class="adviserLeft">
  55. <img src="../../static/timg/pic_def_ava@2x.png" alt="" class="advisertx">
  56. <view class="adviserNema">{{homeCardList.openMUsers.operatorName}}</view>
  57. <view class="adviserms">服务顾问</view>
  58. </view>
  59. <img src="../../static/timg/icon_arrow_right.png" alt="" class="adviserJt">
  60. </view>
  61. <!-- 中间轮播模块 -->
  62. <view class="modular" v-if="homeCardList.application.length>0">
  63. <swiper class="swiper" circular :autoplay="false" :interval="interval"
  64. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#D53533">
  65. <swiper-item>
  66. <view class="swiper-item">
  67. <view class="itemLine" @click="goRoter('onlineBooking')" v-for="(item,index) in homeCardList.application">
  68. <view><img :src="item.icon" alt="" class="itemImg"></view>
  69. <view class="Menusline">{{item.name}}</view>
  70. </view>
  71. </view>
  72. </swiper-item>
  73. <!-- <swiper-item>
  74. <view class="swiper-item">
  75. </view>
  76. </swiper-item> -->
  77. </swiper>
  78. </view>
  79. <view class="advertisement" v-if="homeCardList.ad1.length>0">
  80. <swiper class="swiper2" circular :autoplay="false" :interval="interval"
  81. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#D53533">
  82. <swiper-item v-for="(item,index) in homeCardList.ad1">
  83. <view class="swiper-item2">
  84. <image class="swiper-item2Img" :src="item.icon" mode=""></image>
  85. </view>
  86. </swiper-item>
  87. </swiper>
  88. </view>
  89. <!-- 热门活动 -->
  90. <view class="Hot">
  91. <view class="hotTop">
  92. <view class="hotLeft">
  93. <view class="hotSx"></view>
  94. <view class="hottitle">热门活动</view>
  95. </view>
  96. <view class="hotRight">
  97. <view class="hotMore">更多</view>
  98. <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
  99. </view>
  100. </view>
  101. <view class="hotLine">
  102. <view class="hotLineTop">
  103. <image class="hotLineTopImg" src="http://phone.66km.cn:8088/thFiles/C678448A-C874-4B42-9EAE-4F8F21D71D27.jpg" mode=""></image>
  104. <view class="hotlineTimebox">
  105. <view class="hotlinestate1">进行中</view>
  106. <view class="hotTime">2022.01.21-2022.02.14</view>
  107. </view>
  108. </view>
  109. <view class="hotName">博世 7月促【CX-200715003】</view>
  110. </view>
  111. <view class="hotLine">
  112. <view class="hotLineTop">
  113. <image class="hotLineTopImg" src="http://phone.66km.cn:8088/thFiles/C678448A-C874-4B42-9EAE-4F8F21D71D27.jpg" mode=""></image>
  114. <view class="hotlineTimebox">
  115. <view class="hotlinestate2">未开始</view>
  116. <view class="hotTime">2022.01.21-2022.02.14</view>
  117. </view>
  118. </view>
  119. <view class="hotName">博世 7月促【CX-200715003】</view>
  120. </view>
  121. </view>
  122. <!-- 热门商品 -->
  123. <view class="Hot">
  124. <view class="hotTop">
  125. <view class="hotLeft">
  126. <view class="hotSx"></view>
  127. <view class="hottitle">热门商品</view>
  128. </view>
  129. <view class="hotRight">
  130. <view class="hotMore">更多</view>
  131. <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
  132. </view>
  133. </view>
  134. <view class="hotGoodsLine" v-for="(item,index) in 5">
  135. <view>
  136. <image src="../../static/timg/nocar.png" mode="" class="hotGoodsLineImg"></image>
  137. </view>
  138. <view class="hotGoodsLineRIght">
  139. <view class="goodsName">德国马牌 Continental 全新升级6代 TechContct德国马牌 Continental 全新升级6代 TechContct</view>
  140. <view class="Sold">已售 999</view>
  141. <view class="goodsPrice">
  142. <view class="goodsPrice1">店庆价</view>
  143. <view class="goodsPrice2">¥</view>
  144. <view class="goodsPrice3">999</view>
  145. <view class="goodsPrice3">¥893</view>
  146. </view>
  147. </view>
  148. </view>
  149. </view>
  150. <view style="height: 60rpx;"></view>
  151. <!-- 手机号授权 -->
  152. <view class="authorizBox" v-if="authorizShow" @click="authorizShow=false">
  153. <view class="authorizCont" @click.stop="">
  154. <view class="sqLogoBox">
  155. logo
  156. </view>
  157. <view class="authorizName">这是小程序名称</view>
  158. <view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
  159. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  160. </view>
  161. <view style="text-align: center;padding-top: 56rpx;">
  162. <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  163. </view>
  164. </view>
  165. <!-- <view @getphonenumber="decryptPhoneNumber" >shopId:{{shopId}}</view>
  166. -->
  167. </view>
  168. </template>
  169. <script>
  170. export default {
  171. data() {
  172. return {
  173. shopId: '',
  174. url:'',
  175. wxOpenData:'',
  176. code:'',
  177. carInfo:'',
  178. homeCardList:'',
  179. authorizShow:false,
  180. }
  181. },
  182. onLoad() {
  183. var that=this;
  184. this.$common.getExtStoreId()
  185. var ext=this.$common.getExtStoreId();
  186. console.log(ext)
  187. this.shopId=ext.shopId;
  188. this.url=ext.url;
  189. // uni.setStorage({
  190. // key: 'extdata',
  191. // data: {
  192. // shopId:'E37BB296-5A08-4534-859D-B351BA611AF9',
  193. // },
  194. // success: function () {
  195. // that.uniLogin()
  196. // }
  197. // });
  198. this.userInfo = uni.getStorageSync("userInfo");
  199. if(this.userInfo){
  200. //this.wxOpenData = uni.getStorageSync("wxOpenData");
  201. this.getCarList();
  202. this.queryHomeCardList()
  203. }else{
  204. this.uniLogin()
  205. }
  206. },
  207. methods: {
  208. addCar(){
  209. if(!this.userInfo){
  210. this.authorizShow=true;
  211. }else{
  212. }
  213. },
  214. information(){
  215. },
  216. changeCar(){
  217. },
  218. goRoter(url){
  219. if(!this.userInfo){
  220. this.authorizShow=true;
  221. }else{
  222. uni.navigateTo({
  223. url:url
  224. })
  225. }
  226. },
  227. decryptPhoneNumber: function(e) {
  228. console.log(e);
  229. this.code=e.detail.code
  230. this.wxPhoneLogin()
  231. },
  232. wxgologin(){
  233. var that=this;
  234. uni.getUserProfile({
  235. lang:'zh_CN',
  236. desc:'登录',
  237. success:(res)=>{
  238. console.log(res);
  239. that.wxdata=res;
  240. uni.setStorage({
  241. key: 'wxdata',
  242. data: res,
  243. success: function () {
  244. that.uniLogin()
  245. }
  246. });
  247. },
  248. fail:(res)=>{
  249. console.log(res)
  250. }
  251. });
  252. },
  253. uniLogin(){
  254. var that=this;
  255. uni.login({
  256. provider: 'weixin',
  257. success: function (loginRes) {
  258. console.log(loginRes);
  259. that.getWxOpenID(loginRes)
  260. }
  261. });
  262. },
  263. getWxOpenID(e){
  264. var that=this;
  265. // this.code=e.code;
  266. this.$http('miniApp2/sys/getWxOpenID', {
  267. code:e.code,
  268. unionId:'EEADACCD-8A19-499D-8AD7-6975D2C93243'
  269. },'GET').then(res => {
  270. this.wxOpenData=res.data;
  271. that.queryHomeCardList()
  272. //that.wxPhoneLogin()
  273. uni.setStorage({
  274. key: 'wxOpenData',
  275. data: that.wxOpenData,
  276. success: function () {
  277. // that.uniLogin()
  278. }
  279. });
  280. if(this.wxOpenData.loginInfo){
  281. uni.setStorage({
  282. key: 'userInfo',
  283. data: that.wxOpenData.loginInfo.openUser,
  284. success: function () {
  285. that.getCarList()
  286. }
  287. });
  288. }else{
  289. this.authorizShow=true;
  290. }
  291. })
  292. },
  293. wxPhoneLogin(){
  294. var that=this;
  295. this.$http('miniApp2/sys/wxPhoneLogin', {
  296. appId:'wx33053a645546ec31',
  297. unionId:'EEADACCD-8A19-499D-8AD7-6975D2C93243',
  298. code:this.code,
  299. openId:this.wxOpenData.openid
  300. },'POST').then(res => {
  301. var data = res.data;
  302. if(data.loginInfo){
  303. this.userInfo=data.loginInfo.openUser
  304. uni.setStorage({
  305. key: 'userInfo',
  306. data: data.loginInfo.openUser,
  307. success: function () {
  308. that.getCarList()
  309. that.queryHomeCardList()
  310. }
  311. });
  312. }
  313. })
  314. },
  315. getCarList(){
  316. this.$http('opencarOwnerHome/queryCarInfoList', {
  317. },'GET').then(res => {
  318. if(res.code==401){
  319. this.uniLogin()
  320. }else{
  321. this.carInfo=res.data[0]
  322. this.$store.commit('mutationscarInfo', this.carInfo)
  323. }
  324. })
  325. },
  326. queryHomeCardList(){
  327. //console.log(this.wxOpenData)
  328. this.$http('openHome/queryHomeCardList', {
  329. unionId:'EEADACCD-8A19-499D-8AD7-6975D2C93243'
  330. },'GET').then(res => {
  331. this.homeCardList=res.data
  332. })
  333. }
  334. }
  335. }
  336. </script>
  337. <style scoped>
  338. .authorizBox{
  339. width: 100vw;
  340. height: 100vh;
  341. background: rgba(0, 0, 0, 0.5);
  342. position: fixed;
  343. top: 0;
  344. left: 0;
  345. }
  346. .authorizCont{
  347. margin-top: 30vh;
  348. width: 564rpx;
  349. height: 484rpx;
  350. background: #FFFFFF;
  351. border-radius: 24rpx;
  352. margin-left: 93rpx;
  353. position: relative;
  354. }
  355. .authorizCloseImg{
  356. width: 62rpx;
  357. height: 62rpx;
  358. }
  359. .sqLogoBox{
  360. width: 180rpx;
  361. height: 180rpx;
  362. background: #FFFFFF;
  363. border-radius: 90rpx;
  364. text-align: center;
  365. position: absolute;
  366. top: -50rpx;
  367. left: 192rpx;
  368. }
  369. .authorizName{
  370. color: #333333;
  371. line-height: 42rpx;
  372. font-size: 30rpx;
  373. text-align: center;
  374. padding-top: 140rpx;
  375. }
  376. .authorizMs{
  377. color: #999999;
  378. line-height: 36rpx;
  379. font-size: 26rpx;
  380. width: 452rpx;
  381. padding-top: 24rpx;
  382. text-align: center;
  383. margin-left: 56rpx;
  384. }
  385. .authorizContbutton{
  386. width: 422rpx;
  387. height: 88rpx;
  388. background: #D53533;
  389. border-radius: 44rpx;
  390. line-height: 88rpx;
  391. text-align: center;
  392. font-size:30rpx;
  393. color: #FFFFFF;
  394. margin-top: 62rpx;
  395. margin-left:71rpx;
  396. }
  397. .content{
  398. min-height: 100vh;
  399. background: #F4F5F7;
  400. }
  401. .topBox{
  402. width: 750rpx;
  403. height: 200rpx;
  404. background: #D53533;
  405. }
  406. .yuanhu{
  407. width: 750rpx;
  408. height: 50rpx;
  409. background: #D53533;
  410. border-radius: 0 0 100% 100%;
  411. }
  412. .carinfoBox{
  413. width: 702rpx;
  414. height: 250rpx;
  415. background: #FFFFFF;
  416. border-radius: 10rpx;
  417. margin-left: 24rpx;
  418. overflow: hidden;
  419. }
  420. .carinfoBox2{
  421. width: 702rpx;
  422. height: 180rpx;
  423. background: #FFFFFF;
  424. border-radius: 10rpx;
  425. margin-left: 24rpx;
  426. overflow: hidden;
  427. }
  428. .carinfoBox2{
  429. }
  430. .carinfoBox .carLogo{
  431. width: 72rpx;height: 72rpx;
  432. }
  433. .carinfoBoxTop{
  434. display: flex;
  435. justify-content: space-between;
  436. padding-top: 29rpx;
  437. padding-left: 24rpx;
  438. padding-right: 20rpx;
  439. padding-bottom: 24rpx;
  440. border: 1px solid #EEEEEE;
  441. }
  442. .carinfoBoxTopCont{
  443. width: 454rpx;
  444. }
  445. .carinfoBoxTopContTop{
  446. display: flex;
  447. }
  448. .carInfoplateNumber{
  449. font-weight: 500;
  450. color: #3C3C3C;
  451. font-size: 30rpx;
  452. line-height: 42rpx;
  453. padding-right: 16rpx;
  454. }
  455. .carTnfomilage{
  456. color: #F19D01;
  457. font-size: 22rpx;
  458. padding: 0rpx 10rpx;
  459. border-radius: 4rpx;
  460. border: 1px solid #F19D01;
  461. height: 32rpx;
  462. line-height: 34rpx;
  463. margin-top: 2rpx;
  464. margin-left: 2rpx;
  465. }
  466. .carInfocarModel{
  467. width: 454rpx;
  468. color: #666666;
  469. font-size: 26rpx;
  470. white-space: nowrap;
  471. overflow: hidden;
  472. text-overflow: ellipsis;
  473. }
  474. .carinfoBoxTopRight{
  475. display: flex;padding-top: 25rpx;
  476. }
  477. .carinfoBoxTopRightIcon{
  478. width: 29rpx;
  479. height: 31rpx;
  480. }
  481. .huancheBtn{
  482. color: #666666; font-size: 26rpx;line-height: 31rpx;
  483. padding-left: 10rpx;
  484. }
  485. .carInfoBottom{
  486. display: flex;
  487. justify-content: space-around;
  488. }
  489. .carInfoBottomLineTitle{
  490. color: #999999;font-size: 24rpx;
  491. text-align: center;
  492. padding-top: 24rpx;
  493. }
  494. .carInfoBottomLineTxt{
  495. color: #3C3C3C;
  496. font-size: 26rpx;
  497. padding-top: 5rpx;
  498. text-align: center;
  499. }
  500. .carinfonocarIcon{
  501. width: 72rpx;
  502. height: 72rpx;
  503. }
  504. .carinfoBoxNocar{
  505. display: flex;
  506. padding-top: 50rpx;
  507. padding-left: 20rpx;
  508. }
  509. .carinfoBoxNocarRightTitle{
  510. font-weight: 500;
  511. color: #3C3C3C;
  512. font-size: 30rpx;
  513. }
  514. .carinfoBoxNocarRightMS{
  515. color: #666666;
  516. font-size: 26rpx;
  517. }
  518. .carinfoBoxNocarRight{
  519. padding-left: 24rpx;
  520. }
  521. .shoptopbox{
  522. margin-top: -200rpx;
  523. }
  524. .shoptopbox2{
  525. margin-top: -160rpx;
  526. }
  527. .adviser{
  528. width: 662rpx;
  529. margin-left: 24rpx;
  530. background: #FFFFFF;
  531. border-radius: 10px;
  532. display: flex;
  533. justify-content: space-between;
  534. padding: 18rpx 20rpx;
  535. margin-top: 20rpx;
  536. }
  537. .adviserLeft{
  538. display: flex;
  539. }
  540. .advisertx{
  541. width: 62rpx;height: 62rpx;
  542. }
  543. .adviserNema{
  544. color: #333333;font-size: 30rpx;
  545. line-height: 62rpx;padding-left: 24rpx;
  546. }
  547. .adviserms{
  548. width: 118rpx;
  549. height: 36rpx;
  550. border-radius: 4rpx;
  551. border: 1px solid #D53533;
  552. line-height: 36rpx;
  553. text-align: center;
  554. margin-top: 12rpx;
  555. margin-left: 20rpx;
  556. color: #D53533;
  557. font-size: 24rpx;
  558. }
  559. .adviserJt{
  560. width: 12rpx;
  561. height: 20rpx;
  562. margin-top: 16rpx;
  563. }
  564. .modular{
  565. width: 702rpx;
  566. height: 313rpx;
  567. background: #FFFFFF;
  568. border-radius: 10px;
  569. margin-top: 20rpx;
  570. margin-left: 24rpx;
  571. }
  572. .swiper-item{
  573. display: flex;
  574. flex-wrap: wrap;
  575. }
  576. .itemImg{
  577. width: 46rpx;
  578. height: 46rpx;
  579. }
  580. .Menusline{
  581. font-size: 24rpx;
  582. color: #333333;
  583. }
  584. .itemLine{
  585. width: 25%;
  586. text-align: center;
  587. padding-top: 40rpx;
  588. }
  589. .advertisement{
  590. width: 702rpx;
  591. height: 280rpx;
  592. margin-top: 20rpx;
  593. margin-left: 24rpx;
  594. border-radius: 20rpx;
  595. }
  596. .swiper-item2{
  597. width: 702rpx;
  598. height: 280px;
  599. }
  600. .swiper-item2Img{
  601. width: 702rpx;
  602. height: 280rpx;
  603. }
  604. .hotMoreJt{
  605. width: 12rpx;
  606. height: 20rpx;
  607. margin-top: 6rpx;
  608. }
  609. .Hot{
  610. width: 702rpx;
  611. margin-top: 20rpx;
  612. margin-left: 24rpx;
  613. }
  614. .hotTop{
  615. display: flex;
  616. justify-content: space-between;
  617. padding: 6rpx 0;
  618. }
  619. .hotSx{
  620. width: 8rpx;
  621. height: 30rpx;
  622. background: #FF0000;
  623. border-radius: 5rpx;
  624. }
  625. .hotLeft{
  626. display: flex;
  627. }
  628. .hottitle{
  629. font-weight: 500;
  630. color: #333333;
  631. font-size: 30rpx;
  632. line-height: 30rpx;
  633. margin-left: 16rpx;
  634. }
  635. .hotRight{
  636. display: flex;
  637. }
  638. .hotMore{
  639. line-height: 30rpx;color: #666666;font-size: 24rpx;
  640. margin-right: 16rpx;
  641. }
  642. .hotLineTopImg{
  643. width: 702rpx;
  644. height: 280rpx;
  645. }
  646. .hotLineTop{
  647. position: relative;
  648. height: 280rpx;
  649. }
  650. .hotLine{
  651. margin-top: 20rpx;
  652. border-radius: 10rpx;
  653. background: #FFFFFF;
  654. overflow: hidden;
  655. }
  656. .hotlinestate1{
  657. width: 102rpx;
  658. height: 44rpx;
  659. background:#FBBF00 ;
  660. line-height: 44rpx;
  661. font-weight: 500;
  662. color: #333333;
  663. font-size: 24rpx;
  664. text-align: center;
  665. }
  666. .hotlinestate2{
  667. width: 102rpx;
  668. height: 44rpx;
  669. background:#FF0000 ;
  670. line-height: 44rpx;
  671. font-weight: 500;
  672. color: #FFFFFF;
  673. font-size: 24rpx;
  674. text-align: center;
  675. }
  676. .hotlineTimebox{
  677. position: absolute;
  678. left: 0;
  679. bottom: 0;
  680. background: rgba(0, 0, 0, 0.5);
  681. display: flex;
  682. }
  683. .hotTime{
  684. font-weight: 400;
  685. color: #FFFFFF;
  686. font-size: 24rpx;
  687. line-height: 44rpx;
  688. padding: 0 20rpx;
  689. }
  690. .hotName{
  691. padding: 24rpx 20rpx;
  692. color: #333333;
  693. line-height: 40rpx;
  694. font-size: 28rpx;
  695. }
  696. .hotGoodsLine{
  697. margin-top: 20rpx;
  698. padding: 20rpx;
  699. background: #FFFFFF;
  700. border-radius: 16rpx;
  701. display: flex;
  702. }
  703. .hotGoodsLineImg{
  704. width: 208rpx;
  705. height: 194rpx;
  706. border-radius: 16rpx;
  707. border: 1px solid #EEEEEE;
  708. }
  709. .goodsName{
  710. font-size: 28rpx;
  711. font-family: PingFangSC-Regular, PingFang SC;
  712. font-weight: 400;
  713. color: #333333;
  714. line-height: 40rpx;
  715. text-overflow: -o-ellipsis-lastline;
  716. overflow: hidden;
  717. text-overflow: ellipsis;
  718. display: -webkit-box;
  719. -webkit-line-clamp: 2;
  720. line-clamp: 2;
  721. -webkit-box-orient: vertical;
  722. }
  723. .hotGoodsLineRIght{
  724. padding-left: 24rpx;
  725. }
  726. .goodsPrice{
  727. display: flex;
  728. padding-top: 10rpx;
  729. }
  730. .goodsPrice1{
  731. font-size: 24rpx;
  732. font-weight: 400;
  733. color: #FF0000;
  734. }
  735. .goodsPrice2{
  736. font-size: 22rpx;
  737. font-weight: 400;
  738. color: #FF0000;
  739. }
  740. .goodsPrice3{
  741. font-size: 32rpx;
  742. font-weight: 400;
  743. color: #FF0000;
  744. }
  745. .goodsPrice3{
  746. font-size: 24rpx;
  747. font-weight: 400;
  748. color: #999999;
  749. }
  750. .Sold{
  751. font-weight: 400;
  752. color: #999999;
  753. font-size: 24rpx;
  754. padding-top: 8rpx;
  755. }
  756. </style>