index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786
  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.getCarList();
  201. this.queryHomeCardList()
  202. }else{
  203. this.uniLogin()
  204. }
  205. },
  206. methods: {
  207. addCar(){
  208. if(!this.userInfo){
  209. this.authorizShow=true;
  210. }else{
  211. }
  212. },
  213. information(){
  214. },
  215. changeCar(){
  216. },
  217. goRoter(url){
  218. if(!this.userInfo){
  219. this.authorizShow=true;
  220. }else{
  221. uni.navigateTo({
  222. url:url
  223. })
  224. }
  225. },
  226. decryptPhoneNumber: function(e) {
  227. console.log(e);
  228. this.code=e.detail.code
  229. this.wxPhoneLogin()
  230. },
  231. wxgologin(){
  232. var that=this;
  233. uni.getUserProfile({
  234. lang:'zh_CN',
  235. desc:'登录',
  236. success:(res)=>{
  237. console.log(res);
  238. that.wxdata=res;
  239. uni.setStorage({
  240. key: 'wxdata',
  241. data: res,
  242. success: function () {
  243. that.uniLogin()
  244. }
  245. });
  246. },
  247. fail:(res)=>{
  248. console.log(res)
  249. }
  250. });
  251. },
  252. uniLogin(){
  253. var that=this;
  254. uni.login({
  255. provider: 'weixin',
  256. success: function (loginRes) {
  257. console.log(loginRes);
  258. that.getWxOpenID(loginRes)
  259. }
  260. });
  261. },
  262. getWxOpenID(e){
  263. var that=this;
  264. // this.code=e.code;
  265. this.$http('miniApp2/sys/getWxOpenID', {
  266. code:e.code,
  267. unionId:'EEADACCD-8A19-499D-8AD7-6975D2C93243'
  268. },'GET').then(res => {
  269. this.wxOpenData=res.data;
  270. that.queryHomeCardList()
  271. //that.wxPhoneLogin()
  272. uni.setStorage({
  273. key: 'wxOpenData',
  274. data: that.wxOpenData,
  275. success: function () {
  276. // that.uniLogin()
  277. }
  278. });
  279. if(this.wxOpenData.loginInfo){
  280. uni.setStorage({
  281. key: 'userInfo',
  282. data: that.wxOpenData.loginInfo.openUser,
  283. success: function () {
  284. that.getCarList()
  285. }
  286. });
  287. }
  288. })
  289. },
  290. wxPhoneLogin(){
  291. var that=this;
  292. this.$http('miniApp2/sys/wxPhoneLogin', {
  293. appId:'wx33053a645546ec31',
  294. unionId:'EEADACCD-8A19-499D-8AD7-6975D2C93243',
  295. code:this.code,
  296. openId:this.wxOpenData.openid
  297. },'POST').then(res => {
  298. var data = res.data;
  299. if(data.loginInfo){
  300. this.userInfo=data.loginInfo.openUser
  301. uni.setStorage({
  302. key: 'userInfo',
  303. data: data.loginInfo.openUser,
  304. success: function () {
  305. that.getCarList()
  306. that.queryHomeCardList()
  307. }
  308. });
  309. }
  310. })
  311. },
  312. getCarList(){
  313. this.$http('opencarOwnerHome/queryCarInfoList', {
  314. },'GET').then(res => {
  315. this.carInfo=res.data[0]
  316. this.$store.commit('mutationscarInfo', this.carInfo)
  317. })
  318. },
  319. queryHomeCardList(){
  320. this.$http('openHome/queryHomeCardList', {
  321. },'GET').then(res => {
  322. this.homeCardList=res.data
  323. })
  324. }
  325. }
  326. }
  327. </script>
  328. <style scoped>
  329. .authorizBox{
  330. width: 100vw;
  331. height: 100vh;
  332. background: rgba(0, 0, 0, 0.5);
  333. position: fixed;
  334. top: 0;
  335. left: 0;
  336. }
  337. .authorizCont{
  338. margin-top: 30vh;
  339. width: 564rpx;
  340. height: 484rpx;
  341. background: #FFFFFF;
  342. border-radius: 24rpx;
  343. margin-left: 93rpx;
  344. position: relative;
  345. }
  346. .authorizCloseImg{
  347. width: 62rpx;
  348. height: 62rpx;
  349. }
  350. .sqLogoBox{
  351. width: 180rpx;
  352. height: 180rpx;
  353. background: #FFFFFF;
  354. border-radius: 90rpx;
  355. text-align: center;
  356. position: absolute;
  357. top: -50rpx;
  358. left: 192rpx;
  359. }
  360. .authorizName{
  361. color: #333333;
  362. line-height: 42rpx;
  363. font-size: 30rpx;
  364. text-align: center;
  365. padding-top: 140rpx;
  366. }
  367. .authorizMs{
  368. color: #999999;
  369. line-height: 36rpx;
  370. font-size: 26rpx;
  371. width: 452rpx;
  372. padding-top: 24rpx;
  373. text-align: center;
  374. margin-left: 56rpx;
  375. }
  376. .authorizContbutton{
  377. width: 422rpx;
  378. height: 88rpx;
  379. background: #D53533;
  380. border-radius: 44rpx;
  381. line-height: 88rpx;
  382. text-align: center;
  383. font-size:30rpx;
  384. color: #FFFFFF;
  385. margin-top: 62rpx;
  386. margin-left:71rpx;
  387. }
  388. .content{
  389. min-height: 100vh;
  390. background: #F4F5F7;
  391. }
  392. .topBox{
  393. width: 750rpx;
  394. height: 200rpx;
  395. background: #D53533;
  396. }
  397. .yuanhu{
  398. width: 750rpx;
  399. height: 50rpx;
  400. background: #D53533;
  401. border-radius: 0 0 100% 100%;
  402. }
  403. .carinfoBox{
  404. width: 702rpx;
  405. height: 250rpx;
  406. background: #FFFFFF;
  407. border-radius: 10rpx;
  408. margin-left: 24rpx;
  409. overflow: hidden;
  410. }
  411. .carinfoBox2{
  412. width: 702rpx;
  413. height: 180rpx;
  414. background: #FFFFFF;
  415. border-radius: 10rpx;
  416. margin-left: 24rpx;
  417. overflow: hidden;
  418. }
  419. .carinfoBox2{
  420. }
  421. .carinfoBox .carLogo{
  422. width: 72rpx;height: 72rpx;
  423. }
  424. .carinfoBoxTop{
  425. display: flex;
  426. justify-content: space-between;
  427. padding-top: 29rpx;
  428. padding-left: 24rpx;
  429. padding-right: 20rpx;
  430. padding-bottom: 24rpx;
  431. border: 1px solid #EEEEEE;
  432. }
  433. .carinfoBoxTopCont{
  434. width: 454rpx;
  435. }
  436. .carinfoBoxTopContTop{
  437. display: flex;
  438. }
  439. .carInfoplateNumber{
  440. font-weight: 500;
  441. color: #3C3C3C;
  442. font-size: 30rpx;
  443. line-height: 42rpx;
  444. padding-right: 16rpx;
  445. }
  446. .carTnfomilage{
  447. color: #F19D01;
  448. font-size: 22rpx;
  449. padding: 0rpx 10rpx;
  450. border-radius: 4rpx;
  451. border: 1px solid #F19D01;
  452. height: 32rpx;
  453. line-height: 34rpx;
  454. margin-top: 2rpx;
  455. margin-left: 2rpx;
  456. }
  457. .carInfocarModel{
  458. width: 454rpx;
  459. color: #666666;
  460. font-size: 26rpx;
  461. white-space: nowrap;
  462. overflow: hidden;
  463. text-overflow: ellipsis;
  464. }
  465. .carinfoBoxTopRight{
  466. display: flex;padding-top: 25rpx;
  467. }
  468. .carinfoBoxTopRightIcon{
  469. width: 29rpx;
  470. height: 31rpx;
  471. }
  472. .huancheBtn{
  473. color: #666666; font-size: 26rpx;line-height: 31rpx;
  474. padding-left: 10rpx;
  475. }
  476. .carInfoBottom{
  477. display: flex;
  478. justify-content: space-around;
  479. }
  480. .carInfoBottomLineTitle{
  481. color: #999999;font-size: 24rpx;
  482. text-align: center;
  483. padding-top: 24rpx;
  484. }
  485. .carInfoBottomLineTxt{
  486. color: #3C3C3C;
  487. font-size: 26rpx;
  488. padding-top: 5rpx;
  489. text-align: center;
  490. }
  491. .carinfonocarIcon{
  492. width: 72rpx;
  493. height: 72rpx;
  494. }
  495. .carinfoBoxNocar{
  496. display: flex;
  497. padding-top: 50rpx;
  498. padding-left: 20rpx;
  499. }
  500. .carinfoBoxNocarRightTitle{
  501. font-weight: 500;
  502. color: #3C3C3C;
  503. font-size: 30rpx;
  504. }
  505. .carinfoBoxNocarRightMS{
  506. color: #666666;
  507. font-size: 26rpx;
  508. }
  509. .carinfoBoxNocarRight{
  510. padding-left: 24rpx;
  511. }
  512. .shoptopbox{
  513. margin-top: -200rpx;
  514. }
  515. .shoptopbox2{
  516. margin-top: -160rpx;
  517. }
  518. .adviser{
  519. width: 662rpx;
  520. margin-left: 24rpx;
  521. background: #FFFFFF;
  522. border-radius: 10px;
  523. display: flex;
  524. justify-content: space-between;
  525. padding: 18rpx 20rpx;
  526. margin-top: 20rpx;
  527. }
  528. .adviserLeft{
  529. display: flex;
  530. }
  531. .advisertx{
  532. width: 62rpx;height: 62rpx;
  533. }
  534. .adviserNema{
  535. color: #333333;font-size: 30rpx;
  536. line-height: 62rpx;padding-left: 24rpx;
  537. }
  538. .adviserms{
  539. width: 118rpx;
  540. height: 36rpx;
  541. border-radius: 4rpx;
  542. border: 1px solid #D53533;
  543. line-height: 36rpx;
  544. text-align: center;
  545. margin-top: 12rpx;
  546. margin-left: 20rpx;
  547. color: #D53533;
  548. font-size: 24rpx;
  549. }
  550. .adviserJt{
  551. width: 12rpx;
  552. height: 20rpx;
  553. margin-top: 16rpx;
  554. }
  555. .modular{
  556. width: 702rpx;
  557. height: 313rpx;
  558. background: #FFFFFF;
  559. border-radius: 10px;
  560. margin-top: 20rpx;
  561. margin-left: 24rpx;
  562. }
  563. .swiper-item{
  564. display: flex;
  565. flex-wrap: wrap;
  566. }
  567. .itemImg{
  568. width: 46rpx;
  569. height: 46rpx;
  570. }
  571. .Menusline{
  572. font-size: 24rpx;
  573. color: #333333;
  574. }
  575. .itemLine{
  576. width: 25%;
  577. text-align: center;
  578. padding-top: 40rpx;
  579. }
  580. .advertisement{
  581. width: 702rpx;
  582. height: 280rpx;
  583. margin-top: 20rpx;
  584. margin-left: 24rpx;
  585. border-radius: 20rpx;
  586. }
  587. .swiper-item2{
  588. width: 702rpx;
  589. height: 280px;
  590. }
  591. .swiper-item2Img{
  592. width: 702rpx;
  593. height: 280rpx;
  594. }
  595. .hotMoreJt{
  596. width: 12rpx;
  597. height: 20rpx;
  598. margin-top: 6rpx;
  599. }
  600. .Hot{
  601. width: 702rpx;
  602. margin-top: 20rpx;
  603. margin-left: 24rpx;
  604. }
  605. .hotTop{
  606. display: flex;
  607. justify-content: space-between;
  608. }
  609. .hotSx{
  610. width: 8rpx;
  611. height: 30rpx;
  612. background: #F03B3B;
  613. border-radius: 5rpx;
  614. }
  615. .hotLeft{
  616. display: flex;
  617. }
  618. .hottitle{
  619. font-weight: 500;
  620. color: #333333;
  621. font-size: 30rpx;
  622. line-height: 30rpx;
  623. margin-left: 16rpx;
  624. }
  625. .hotRight{
  626. display: flex;
  627. }
  628. .hotMore{
  629. line-height: 30rpx;color: #666666;font-size: 24rpx;
  630. margin-right: 16rpx;
  631. }
  632. .hotLineTopImg{
  633. width: 702rpx;
  634. height: 280rpx;
  635. }
  636. .hotLineTop{
  637. position: relative;
  638. height: 280rpx;
  639. }
  640. .hotLine{
  641. margin-top: 20rpx;
  642. border-radius: 10rpx;
  643. background: #FFFFFF;
  644. overflow: hidden;
  645. }
  646. .hotlinestate1{
  647. width: 102rpx;
  648. height: 44rpx;
  649. background:#FBBF00 ;
  650. line-height: 44rpx;
  651. font-weight: 500;
  652. color: #333333;
  653. font-size: 24rpx;
  654. text-align: center;
  655. }
  656. .hotlinestate2{
  657. width: 102rpx;
  658. height: 44rpx;
  659. background:#F03B3B ;
  660. line-height: 44rpx;
  661. font-weight: 500;
  662. color: #FFFFFF;
  663. font-size: 24rpx;
  664. text-align: center;
  665. }
  666. .hotlineTimebox{
  667. position: absolute;
  668. left: 0;
  669. bottom: 0;
  670. background: rgba(0, 0, 0, 0.5);
  671. display: flex;
  672. }
  673. .hotTime{
  674. font-weight: 400;
  675. color: #FFFFFF;
  676. font-size: 24rpx;
  677. line-height: 44rpx;
  678. padding: 0 20rpx;
  679. }
  680. .hotName{
  681. padding: 24rpx 20rpx;
  682. color: #333333;
  683. line-height: 40rpx;
  684. font-size: 28rpx;
  685. }
  686. .hotGoodsLine{
  687. margin-top: 20rpx;
  688. padding: 20rpx;
  689. background: #FFFFFF;
  690. border-radius: 16rpx;
  691. display: flex;
  692. }
  693. .hotGoodsLineImg{
  694. width: 208rpx;
  695. height: 194rpx;
  696. border-radius: 16rpx;
  697. border: 1px solid #EEEEEE;
  698. }
  699. .goodsName{
  700. font-size: 28rpx;
  701. font-family: PingFangSC-Regular, PingFang SC;
  702. font-weight: 400;
  703. color: #333333;
  704. line-height: 40rpx;
  705. text-overflow: -o-ellipsis-lastline;
  706. overflow: hidden;
  707. text-overflow: ellipsis;
  708. display: -webkit-box;
  709. -webkit-line-clamp: 2;
  710. line-clamp: 2;
  711. -webkit-box-orient: vertical;
  712. }
  713. .hotGoodsLineRIght{
  714. padding-left: 24rpx;
  715. }
  716. .goodsPrice{
  717. display: flex;
  718. padding-top: 10rpx;
  719. }
  720. .goodsPrice1{
  721. font-size: 24rpx;
  722. font-weight: 400;
  723. color: #F03B3B;
  724. }
  725. .goodsPrice2{
  726. font-size: 22rpx;
  727. font-weight: 400;
  728. color: #F03B3B;
  729. }
  730. .goodsPrice3{
  731. font-size: 32rpx;
  732. font-weight: 400;
  733. color: #F03B3B;
  734. }
  735. .goodsPrice3{
  736. font-size: 24rpx;
  737. font-weight: 400;
  738. color: #999999;
  739. }
  740. .Sold{
  741. font-weight: 400;
  742. color: #999999;
  743. font-size: 24rpx;
  744. padding-top: 8rpx;
  745. }
  746. </style>