index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  1. <template>
  2. <view class="goods-detail">
  3. <!-- swiper -->
  4. <view class="home-swiper">
  5. <!-- <uni-swiper-dot :info="info" :current="current1" :mode="mode" :dots-styles="dotsStyles">
  6. <swiper class="swiper-box" @change="change1" circular>
  7. <swiper-item v-for="(item ,index) in info" :key="index">
  8. <view class="swiper-item" >
  9. <image style="width: 100%;height:576rpx;" :src="item.img" mode="aspectFill"></image>
  10. </view>
  11. </swiper-item>
  12. </swiper>
  13. </uni-swiper-dot> -->
  14. <uni-swiper-dot :mode="mode" :info="info" :current="current1" :dots-styles="dotsStyles">
  15. <swiper class="swiper-box" @change="change1" circular>
  16. <swiper-item v-for="(item ,index) in info" :key="index" v-if="resource_type == 1 ">
  17. <view class="swiper-item">
  18. <image style="width: 100%;height:576rpx;" :src="item.img" mode="aspectFill"></image>
  19. </view>
  20. </swiper-item>
  21. <swiper-item v-if="resource_type == 2 ">
  22. <view class="swiper-item">
  23. <video class="baner-video" id="myVideo" ref="myVideo" style="width: 100%; height: 564rpx;"
  24. :src="video_url" controls :enable-progress-gesture="false">
  25. </video>
  26. </view>
  27. </swiper-item>
  28. </swiper>
  29. </uni-swiper-dot>
  30. </view>
  31. <view style="background-color: #f9f9f9;">
  32. <!-- 价格 -->
  33. <view class="price">
  34. <view class="price-top" v-if="produceType == 1">
  35. <text>¥</text>
  36. <text>{{productDetail.price}}</text>
  37. </view>
  38. <view class="price-top" v-if="produceType == 2">
  39. <text>{{productDetail.integral}}</text>
  40. <text>积分</text>
  41. </view>
  42. <text class="price-text">{{productDetail.name}}</text>
  43. <view @click="goOther" class="price-banner" :style="{backgroundImage:'url('+backImageUrl+')'}">
  44. <text>加入IHG优悦会会员享受更多福利</text>
  45. <image style="width: 12rpx;height: 20rpx;" src="/static/icon/right02.png" mode=""></image>
  46. </view>
  47. <!--规格-->
  48. <view class="price-specs" @click="Recipientopen()">
  49. <view class="price-specs-left">
  50. <text>选择</text>
  51. </view>
  52. <view class="price-specs-main" @click="Recipientopen()">
  53. <text>{{specsText||'请选择规格'}}</text>
  54. </view>
  55. <view @click="Recipientopen()">
  56. <image style="width: 12rpx;height: 20rpx;" src="/static/icon/right03.png" mode=""></image>
  57. </view>
  58. </view>
  59. </view>
  60. <!--酒店信息 -->
  61. <view class="about">
  62. <text class="about-title">可购买酒店信息</text>
  63. <text class="about-name">{{hotelDetail.name}}</text>
  64. <view class="about-address">
  65. <text style="margin-right:20rpx ;">地址:</text>
  66. <text>{{hotelDetail.address}}</text>
  67. </view>
  68. <view class="about-phone">
  69. <text style="margin-right:20rpx ;">电话:</text>
  70. <text>{{hotelDetail.phone}}</text>
  71. </view>
  72. <view class="about-all">
  73. <text @click="goGoodsHotel(product_id)" style="margin-right: 16rpx;">全部酒店</text>
  74. <image @click="goGoodsHotel(product_id)" style="width: 12rpx;height: 20rpx;" src="/static/icon/right04.png"
  75. mode=""></image>
  76. </view>
  77. </view>
  78. <!-- 产品介绍 -->
  79. <view class="produce">
  80. <view class="produce-title">
  81. <text>产品简介</text>
  82. </view>
  83. <view class="produce-text" v-html="productDetail.details"></view>
  84. </view>
  85. </view>
  86. <view class="buy-btn">
  87. <view class="buy-btn-left" @click="goHome">
  88. <image style="width: 40rpx;height: 42rpx;" src="/static/icon/home01.png" mode=""></image>
  89. <text>首页</text>
  90. </view>
  91. <view class="buy-btn-right" @click="$refs.codePurchase.open()" v-if="produceType==1">
  92. <text>立即购买</text>
  93. </view>
  94. <view v-if="produceType==2" class="buy-btn-right" @click="goIntegralOrder(product_id)">
  95. <text>立即兑换</text>
  96. </view>
  97. </view>
  98. <view style="height: 90px;background-color: #f9f9f9;"></view>
  99. <!-- 选择规格 -->
  100. <uni-popup ref="Recipient" type="bottom" mask-background-color=" rgba(0,0,0,0.3);">
  101. <view class="pop">
  102. <view class="pop-price">
  103. <view class="pop-price-left">
  104. <image style="width: 180rpx;height: 136rpx; border-radius:12rpx ;"
  105. src="http://t9.9026.com/imgs/special01.png" mode="" ></image>
  106. <view class="pop-price-left-money" v-if="produceType == 1">
  107. <text>¥</text>
  108. <text>{{productDetail.price}}</text>
  109. </view>
  110. <view class="pop-price-left-money" v-if="produceType == 2">
  111. <text>{{productDetail.integral}}</text>
  112. <text>积分</text>
  113. </view>
  114. </view>
  115. <image style="width: 52rpx;height: 52rpx;" src="/static/icon/close01.png" mode="" @click="Recipientclose"></image>
  116. </view>
  117. <view class="pop-flavor">
  118. <text>口味</text>
  119. <view class="tab_flavor">
  120. <view class="flavorTitle-item" :class="{'flavorTitle-item-active':flavorIsActive === index}" v-for="(item,index) in flavorList" :key="index"
  121. @click="flavorchecked(index,item.attr_name)">
  122. <view :class="{'active-flavor':flavorIsActive === index}">
  123. {{item.attr_name}}
  124. </view>
  125. </view>
  126. </view>
  127. </view>
  128. <view class="pop-flavor" style="margin-top: 44rpx;">
  129. <text>重量</text>
  130. <view class="tab_flavor">
  131. <view class="flavorTitle-item" :class="{'flavorTitle-item-active':weightIsActive === index}" v-for="(item,index) in weightList" :key="index"
  132. @click="weightchecked(index,item.attr_name)">
  133. <view :class="{'active-flavor':weightIsActive === index}">
  134. {{item.attr_name}}
  135. </view>
  136. </view>
  137. </view>
  138. </view>
  139. <view class="pop-flavor" style="margin-top: 44rpx;">
  140. <text>包装</text>
  141. <view class="tab_flavor">
  142. <view class="flavorTitle-item" :class="{'flavorTitle-item-active':packIsActive === index}" v-for="(item,index) in packList" :key="index"
  143. @click="packchecked(index,item.title)">
  144. <view :class="{'active-flavor':packIsActive === index}">
  145. {{item.title}}
  146. </view>
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. <view class="purchase" v-if="produceType == 1" @click="goIntegralOrder(product_id)">
  152. <view class="purchase-btn">立即购买</view>
  153. </view>
  154. <view class="purchase" v-if="produceType == 2" @click="selectSpecs">
  155. <!-- <view class="purchase-btn">立即兑换</view> -->
  156. <view class="purchase-btn">确认</view>
  157. </view>
  158. </uni-popup>
  159. <!-- 二维码购买 -->
  160. <uni-popup ref="codePurchase" type="center">
  161. <view class="code-purchase">
  162. <view class="title"><text>识别下方二维码即可购买</text></view>
  163. <view style="margin-left:30rpx;width: 580rpx;height: 2rpx;background: #F0F0F0;"></view>
  164. <view class="img">
  165. <image src="http://t9.9026.com/imgs/Kudosbg.png"></image>
  166. </view>
  167. <view class="btn">
  168. <view class="cancel" @click="dialogClose"><text>取消</text></view>
  169. <view class="download" @click="dialogConfirm"><text>保存图片</text></view>
  170. </view>
  171. </view>
  172. </uni-popup>
  173. </view>
  174. </template>
  175. <script>
  176. export default {
  177. data() {
  178. return {
  179. jump_type: '',
  180. jump_config: '',
  181. resource_type: '',
  182. //1:第三方产品2:积分兑换产品
  183. produceType:'',
  184. // 规格
  185. specsText:'',
  186. specs:{
  187. pack:'',
  188. weight:'',
  189. flavor:'',
  190. },
  191. // 产品详情
  192. productDetail:'',
  193. // 酒店详情
  194. hotelDetail:'',
  195. // 产品id
  196. product_id:'',
  197. packList: [{
  198. title: '礼盒'
  199. },
  200. {
  201. title: '普通'
  202. }
  203. ],
  204. weightList: [{
  205. attr_name: '50g'
  206. }, {
  207. attr_name: '100g'
  208. }, {
  209. attr_name: '150g'
  210. }],
  211. flavorList: [{
  212. attr_name: '五仁'
  213. }, {
  214. attr_name: '豆沙'
  215. }, {
  216. attr_name: '水果'
  217. }],
  218. //激活指定table菜单
  219. isActive: 0,
  220. flavorIsActive:0,
  221. weightIsActive:0,
  222. packIsActive:0,
  223. backImageUrl: require('../../../static/icon/add01.png'),
  224. //轮播图
  225. info: [{
  226. img: 'http://t9.9026.com/imgs/swiper01.png',
  227. name: '酒店预订'
  228. }, ],
  229. dotsStyles: {
  230. backgroundColor: 'rgba(255, 255, 255, .3)',
  231. border: '1px rgba(255, 255, 255, .3) solid',
  232. color: '#fff',
  233. selectedBackgroundColor: 'rgba(255, 255, 255, 1)',
  234. selectedBorder: '1px rgba(255, 255, 255, 1) solid'
  235. },
  236. //指示点显示位置
  237. current1: 0,
  238. //指示点模式
  239. mode: 'dot',
  240. }
  241. },
  242. onReady: function(res) {
  243. this.videoContext = uni.createVideoContext('myVideo')
  244. },
  245. onLoad(op) {
  246. this.admin = this.$store.getters.userInfo
  247. console.log(this.admin);
  248. this.product_id=op.id
  249. this.produceType = op.type
  250. console.log(this.product_id,this.produceType,"产品id")
  251. this.getProductDetail(op.id)
  252. },
  253. methods: {
  254. //获取当前页面路径
  255. getPageUrl() {
  256. const pages = getCurrentPages();
  257. if(pages.length==1){
  258. const currentPage = pages[0];
  259. console.log(currentPage.options,'--------->currentPage.options')
  260. let pageUrl = `/${currentPage.route}?type=${currentPage.options.type}`;
  261. return pageUrl
  262. console.log('当前页面url:', pageUrl);
  263. }else{
  264. const currentPage = pages[pages.length - 1];
  265. console.log(currentPage.options,'--------->currentPage.options')
  266. let pageUrl = `/${currentPage.route}?type=${currentPage.options.type}`;
  267. return pageUrl
  268. console.log('当前页面url:', pageUrl);
  269. }
  270. },
  271. // 跳转其他小程序
  272. goOther() {
  273. let _this = this
  274. wx.navigateToMiniProgram({
  275. appId: 'wx255b58f0992b3c53', //appid
  276. path: 'newUIMain/enrollment/enrollment', //path
  277. extraData: { //参数
  278. foo: 'bar'
  279. },
  280. // envVersion: 'develop', //开发版develop 开发版 trial 体验版 release 正式版
  281. success(res) {
  282. let page = _this.getPageUrl()
  283. let user_id = ''
  284. if(_this.admin != null ){
  285. user_id = _this.admin.id
  286. }else{
  287. user_id = 0
  288. }
  289. console.log('成功',page)
  290. _this.$api.my.userMemberAdd({
  291. user_id,
  292. page,
  293. }).then(res=>{
  294. console.log(res.data);
  295. })
  296. // 打开成功
  297. },
  298. fail(e) {
  299. console.log(e, '失败')
  300. }
  301. })
  302. },
  303. //视频自动播放
  304. openVideoPlay() {
  305. this.videoContext.play()
  306. },
  307. // 获取商品详情
  308. getProductDetail(id){
  309. this.$api.product.getProductDetail({
  310. product_id:id
  311. }).then(res=>{
  312. console.log(res,"产品详情")
  313. // console.log(res.data.attr_group,"产品规格")
  314. if(res.code==0){
  315. this.productDetail=res.data
  316. this.info = JSON.parse(res.data.img_urls).map(item => {
  317. return {
  318. img: item
  319. }
  320. })
  321. //跳转h5和小程序
  322. this.jump_type = res.data.jump_type,
  323. this.jump_config = res.data.jump_config
  324. //banner展示视频或者图片
  325. this.resource_type = res.data.resource_type
  326. this.video_url = res.data.video_url
  327. console.log(this.video_url, '--->this.video_url');
  328. //视频自动播放
  329. this.openVideoPlay()
  330. // 口味
  331. // this.flavorList=JSON.parse(res.data.attr_group)[0].attr_list
  332. // 重量
  333. // this.weightList=JSON.parse(res.data.attr_group)[1].attr_list
  334. this.getHotelDetail(res.data.hotel_id)
  335. }
  336. })
  337. },
  338. // 获取酒店详情
  339. getHotelDetail(id){
  340. this.$api.hotel.getHotelDetail({
  341. hotel_id:id
  342. }).then(res=>{
  343. console.log(res,"酒店详情")
  344. this.hotelDetail=res.data
  345. })
  346. },
  347. //跳转酒店列表
  348. goGoodsHotel(id) {
  349. uni.navigateTo({
  350. url: '/pages/goods/goods-hotel/index?product_id='+id
  351. })
  352. },
  353. //首页
  354. goHome() {
  355. uni.switchTab({
  356. url: '/pages/index/index'
  357. })
  358. },
  359. //二维码购买确认按钮
  360. dialogConfirm() {
  361. console.log('确认');
  362. this.codePurchaseClose()
  363. },
  364. //二维码购买取消按钮
  365. dialogClose() {
  366. console.log('取消');
  367. this.codePurchaseClose()
  368. },
  369. //菜单index切换
  370. checked(index) {
  371. this.isActive = index
  372. },
  373. // 口味切换
  374. flavorchecked(index,name) {
  375. this.flavorIsActive = index
  376. this.specs.flavor=name
  377. },
  378. // 重量切换
  379. weightchecked(index,name) {
  380. this.weightIsActive = index
  381. this.specs.weight=name
  382. },
  383. // 包装切换
  384. packchecked(index,name) {
  385. this.packIsActive = index
  386. this.specs.pack=name
  387. },
  388. // 选择规格
  389. selectSpecs(){
  390. this.specs.flavor='五仁'
  391. this.specs.weight='50g'
  392. this.specs.pack='礼盒'
  393. console.log(this.specs)
  394. this.specsText=this.specs.flavor+'--'+this.specs.weight+'--'+this.specs.pack
  395. this.Recipientclose()
  396. },
  397. Recipientopen() {
  398. this.$refs.Recipient.open('bottom')
  399. },
  400. Recipientclose() {
  401. this.$refs.Recipient.close()
  402. },
  403. codePurchaseClose(){
  404. this.$refs.codePurchase.close()
  405. },
  406. // 切换轮播图指示点
  407. change1(e) {
  408. this.current1 = e.detail.current;
  409. },
  410. // 跳转积分兑换
  411. goIntegralOrder(id){
  412. uni.navigateTo({
  413. url:'/pages/my/integral/integralOrder?product_id='+id
  414. })
  415. },
  416. }
  417. }
  418. </script>
  419. <style lang="scss" scoped>
  420. $pageColor:#F9F9F9;
  421. $bgColor:#FFFFFF;
  422. @mixin flexlayout {
  423. display: flex;
  424. align-items: center;
  425. justify-content: center;
  426. }
  427. page {
  428. height: 100% !important;
  429. background: #F9F9F9 !important;
  430. }
  431. .code-purchase {
  432. width: 640rpx;
  433. height: 764rpx;
  434. background: $bgColor;
  435. border-radius: 20rpx;
  436. padding-top: 64rpx;
  437. box-sizing: border-box;
  438. .title {
  439. @include flexlayout();
  440. margin-bottom: 24rpx;
  441. text {
  442. font-size: 34rpx;
  443. font-family: PingFangSC-Medium, PingFang SC;
  444. font-weight: 500;
  445. color: #333333;
  446. }
  447. }
  448. .img {
  449. margin-top: 10rpx;
  450. margin-left: 48rpx;
  451. width: 544rpx;
  452. height: 468rpx;
  453. background: $bgColor;
  454. border-radius: 2rpx;
  455. @include flexlayout();
  456. image {
  457. width: 392rpx;
  458. height: 390rpx;
  459. }
  460. }
  461. .btn {
  462. margin-top: 40rpx;
  463. width: 100%;
  464. height: 110rpx;
  465. display: flex;
  466. align-items: center;
  467. .cancel {
  468. @include flexlayout();
  469. width: 50%;
  470. height: 100%;
  471. border-top: #E5E5E5 solid 1rpx;
  472. border-right: #E5E5E5 solid 1rpx;
  473. text {
  474. font-size: 32rpx;
  475. font-family: PingFangSC-Medium, PingFang SC;
  476. font-weight: 500;
  477. color: #666666;
  478. }
  479. }
  480. .download {
  481. border-top: #E5E5E5 solid 1rpx;
  482. // border-left:#E5E5E5 solid 0.3rpx;
  483. @include flexlayout();
  484. height: 100%;
  485. width: 50%;
  486. text {
  487. font-size: 32rpx;
  488. font-family: PingFangSC-Medium, PingFang SC;
  489. font-weight: 500;
  490. color: #FF7119;
  491. }
  492. }
  493. }
  494. }
  495. .purchase {
  496. position: fixed;
  497. bottom: 0;
  498. width: 100%;
  499. height: 148rpx;
  500. background: #FFFFFF;
  501. box-shadow: 0px -4px 8px 0px rgba(0, 0, 0, 0.05);
  502. padding: 0 30rpx;
  503. display: flex;
  504. align-items: center;
  505. justify-content: center;
  506. .purchase-btn {
  507. width: 100%;
  508. height: 92rpx;
  509. background: linear-gradient(270deg, #FF6200 0%, #FF9342 100%);
  510. border-radius: 12rpx;
  511. display: flex;
  512. align-items: center;
  513. justify-content: center;
  514. font-weight: bold;
  515. color: #FFFFFF;
  516. font-size: 30rpx;
  517. }
  518. }
  519. .pop {
  520. padding: 32rpx 30rpx 80rpx;
  521. width: 100%;
  522. height: 914rpx;
  523. background: #FFFFFF;
  524. border-radius: 22rpx 22rpx 0px 0px;
  525. overflow-y: scroll;
  526. position: relative;
  527. .pop-price {
  528. display: flex;
  529. align-items: flex-start;
  530. justify-content: space-between;
  531. .pop-price-left {
  532. flex: 1;
  533. display: flex;
  534. align-items: center;
  535. justify-content: flex-start;
  536. .pop-price-left-money {
  537. font-weight: 800;
  538. color: #FF6200;
  539. font-size: 48rpx;
  540. margin-left: 20rpx;
  541. }
  542. }
  543. }
  544. .pop-flavor {
  545. width: 100%;
  546. margin-top: 64rpx;
  547. font-weight: bold;
  548. color: #333333;
  549. font-size: 32rpx;
  550. }
  551. }
  552. //口味切换
  553. .tab_flavor {
  554. margin-top: 14rpx;
  555. width: 100%;
  556. display: flex;
  557. justify-content: flex-start;
  558. align-items: center;
  559. font-family: PingFang-SC-Heavy, PingFang-SC;
  560. flex-wrap: wrap;
  561. }
  562. .tab_flavor .flavorTitle-item {
  563. width: 220rpx;
  564. height: 60rpx;
  565. background-color: #FFF;
  566. border: 2rpx solid #CCCCCC;
  567. border-radius: 30rpx;
  568. font-size: 30rpx;
  569. color: #999;
  570. display: flex;
  571. justify-content: center;
  572. align-items: center;
  573. margin-right: 15rpx;
  574. font-weight: normal;
  575. margin-top: 16rpx;
  576. &:nth-child(3n) {
  577. margin-right: 0;
  578. }
  579. }
  580. .flavorTitle-item-active{
  581. border: none !important;
  582. }
  583. .active-flavor {
  584. width: 220rpx;
  585. height: 60rpx;
  586. border-radius: 30rpx;
  587. background-color: #FF6200;
  588. border: none;
  589. color: #fff;
  590. display: flex;
  591. justify-content: center;
  592. align-items: center;
  593. }
  594. .buy-btn {
  595. position: fixed;
  596. bottom: 0;
  597. width: 100%;
  598. padding: 0 30rpx 0 58rpx;
  599. height: 148rpx;
  600. background: #FFFFFF;
  601. display: flex;
  602. align-items: center;
  603. justify-content: space-between;
  604. .buy-btn-left {
  605. flex: none;
  606. display: flex;
  607. flex-direction: column;
  608. align-items: center;
  609. justify-content: center;
  610. color: #FF6200;
  611. font-size: 22rpx;
  612. }
  613. .buy-btn-right {
  614. display: flex;
  615. align-items: center;
  616. justify-content: center;
  617. margin-left: 40rpx;
  618. flex: 1;
  619. height: 92rpx;
  620. background: linear-gradient(270deg, #FF6200 0%, #FF9342 100%);
  621. border-radius: 12rpx;
  622. font-weight: bold;
  623. color: #FFFFFF;
  624. font-size: 30rpx;
  625. }
  626. }
  627. .goods-detail {
  628. height: 100%;
  629. background: #F9F9F9;
  630. }
  631. .produce {
  632. margin-top: 24rpx;
  633. padding: 40rpx 30rpx 36rpx;
  634. background: #FFFFFF;
  635. box-shadow: 0px 4rpx 8rpx 0px rgba(0, 0, 0, 0.02);
  636. border-radius: 16rpx;
  637. .produce-title {
  638. font-size: 32rpx;
  639. font-weight: bold;
  640. color: #333333;
  641. }
  642. .produce-text {
  643. margin-top: 26rpx;
  644. font-size: 30rpx;
  645. color: #333333;
  646. line-height: 48rpx;
  647. }
  648. }
  649. .about {
  650. padding: 40rpx 30rpx 40rpx;
  651. width: 100%;
  652. // height: 350rpx;
  653. background: #FFFFFF;
  654. box-shadow: 0px 4rpx 8rpx 0px rgba(0, 0, 0, 0.02);
  655. border-radius: 16rpx;
  656. display: flex;
  657. flex-direction: column;
  658. align-items: flex-start;
  659. justify-content: flex-start;
  660. .about-title {
  661. font-size: 32rpx;
  662. font-weight: bold;
  663. color: #333333;
  664. }
  665. .about-name {
  666. margin: 30rpx 0 20rpx;
  667. font-size: 30rpx;
  668. color: #333333;
  669. }
  670. .about-address {
  671. font-size: 30rpx;
  672. color: #333333;
  673. }
  674. .about-phone {
  675. margin: 20rpx 0 48rpx;
  676. font-size: 30rpx;
  677. color: #333333;
  678. }
  679. .about-all {
  680. width: 100%;
  681. display: flex;
  682. align-items: center;
  683. justify-content: center;
  684. font-size: 32rpx;
  685. color: #FF6200;
  686. }
  687. }
  688. .home-swiper {
  689. height: 576rpx;
  690. .swiper-box {
  691. height: 576rpx;
  692. }
  693. }
  694. ::v-deep .uni-swiper__dots-box {
  695. bottom: 48rpx !important;
  696. }
  697. .price {
  698. padding: 32rpx 30rpx 0rpx;
  699. position: relative;
  700. top: -20rpx;
  701. // height: 406rpx;
  702. background: #FFFFFF;
  703. box-shadow: 0px 4rpx 8rpx 0px rgba(0, 0, 0, 0.02);
  704. border-radius: 16rpx;
  705. display: flex;
  706. flex-direction: column;
  707. align-items: flex-start;
  708. justify-content: flex-start;
  709. .price-top {
  710. font-size: 48rpx;
  711. font-weight: 800;
  712. color: #FF6200;
  713. }
  714. .price-text {
  715. margin: 30rpx 0 26rpx;
  716. font-size: 32rpx;
  717. font-weight: bold;
  718. color: #333333;
  719. }
  720. .price-banner {
  721. padding: 0 24rpx;
  722. width: 100%;
  723. height: 80rpx;
  724. background-repeat: no-repeat;
  725. background-size: cover;
  726. background-position: center;
  727. font-size: 32rpx;
  728. color: #FFFFFF;
  729. display: flex;
  730. align-items: center;
  731. justify-content: space-between;
  732. }
  733. .price-specs {
  734. margin-top: 48rpx;
  735. width: 100%;
  736. height: 110rpx;
  737. display: flex;
  738. align-items: center;
  739. justify-content: space-between;
  740. border-top: 2rpx solid #F0F0F0;
  741. .price-specs-left {
  742. flex: none;
  743. font-size: 32rpx;
  744. font-weight: bold;
  745. color: #333333;
  746. }
  747. .price-specs-main {
  748. flex: 1;
  749. margin-left: 28rpx;
  750. font-size: 30rpx;
  751. color: #666666;
  752. }
  753. }
  754. }
  755. </style>