storeProductPackageDetails.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916
  1. <template>
  2. <view class="content">
  3. <!-- 商品轮播图片 -->
  4. <view class="shop-banner" @click="showImg()">
  5. <swiper
  6. class="swiper"
  7. :indicator-dots="false"
  8. :circular="true"
  9. :autoplay="true"
  10. :interval="3000"
  11. :duration="1000"
  12. indicator-color="rgba(255, 255, 255, 0.6)"
  13. indicator-active-color="#ffffff"
  14. @change="swiperChange"
  15. >
  16. <swiper-item class="swiper-item" v-for="(item,index) in banner" :key="index">
  17. <image :src="item" mode="aspectFit"></image>
  18. </swiper-item>
  19. </swiper>
  20. <!-- 底部遮罩 -->
  21. <view class="banner-mask"></view>
  22. <!-- 数量 -->
  23. <view class="num-box">{{ activeBanner }}/{{ banner.length }}</view>
  24. </view>
  25. <!-- 详细信息 -->
  26. <view class="det-info">
  27. <view class="price-box">
  28. <view class="price">
  29. <text class="label">会员价</text>
  30. <text class="unit">¥</text>
  31. <text class="num" v-if="package!=null" >{{package.payMoney.toFixed(2)}}</text>
  32. <text class="label">零售价</text>
  33. <text class="old" v-if="package!=null" >¥{{package.money.toFixed(2)}}</text>
  34. </view>
  35. </view>
  36. <view class="name-box">
  37. {{package.title}}
  38. </view>
  39. <view class="intro">
  40. {{package.descs}}
  41. </view>
  42. </view>
  43. <!-- <view class="drug-box">
  44. <view class="title">组合套餐</view>
  45. <view class="inner">
  46. <view class="drug-list" >
  47. <view v-for="(subItem,index) in products" :key="index" class="drug-item">
  48. <view class="img-box">
  49. <image :src="subItem.image" mode="aspectFill"></image>
  50. </view>
  51. <view class="drug-info" >
  52. <view>
  53. <view class="name-box ellipsis2">
  54. {{subItem.productName}}
  55. </view>
  56. <view class="spec">{{subItem.sku}}</view>
  57. </view>
  58. <view class="num-box">
  59. <view class="price">
  60. <text class="unit">¥</text>
  61. <text class="num">{{subItem.price.toFixed(2)}}</text>
  62. </view>
  63. <view class="amount">x{{subItem.count}}</view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. </view> -->
  70. <!-- 图文详情 -->
  71. <view class="det-box">
  72. <view class="title">图文详情</view>
  73. <view class="inner">
  74. <view v-html="package.content" style="font-size:0" ></view>
  75. </view>
  76. </view>
  77. <!-- 底部按钮 -->
  78. <view class="btn-foot">
  79. <view class="menu-box">
  80. <view class="item" @click="goHome">
  81. <image src="/static/images/back_home.png" mode=""></image>
  82. <text class="label">首页</text>
  83. </view>
  84. <view class="item" style="position: relative;">
  85. <image src="/static/images/consult_small.png" mode=""></image>
  86. <text class="label">咨询</text>
  87. <button class="contact-btn" open-type="contact"></button>
  88. </view>
  89. </view>
  90. <view class="btn-box">
  91. <view class="btn buy" @click="buy">立即购买</view>
  92. </view>
  93. </view>
  94. <view class="message-box" v-if="messageShow">
  95. <view class="left">
  96. <image src="/static/images/close24.png" mode="" @click="closeOrder()" ></image>
  97. <view class="text ellipsis">您有{{count0}}个待支付订单</view>
  98. </view>
  99. <view class="btn" @click="showOrder()">查看</view>
  100. </view>
  101. </view>
  102. </template>
  103. <script>
  104. import {getOrderCount} from '@/api/storeOrder'
  105. import {getStoreProductPackageDetails} from '@/api/storeProductPackage'
  106. export default {
  107. data() {
  108. return {
  109. count0:0,
  110. messageShow:false,
  111. banner:[],
  112. packageId:null,
  113. package:null,
  114. products:[],
  115. // 当前轮播的图片
  116. activeBanner: 1,
  117. };
  118. },
  119. onLoad(options) {
  120. if (options.hasOwnProperty('q') && options.q) {
  121. // 通过下面这步解码,可以拿到url的值
  122. const url = decodeURIComponent(options.q)
  123. this.url=url;
  124. // // 对url中携带的参数提取处理
  125. const obj = this.utils.urlToObj(url)
  126. this.packageId = obj.packageId;
  127. this.companyId = obj.companyId;
  128. this.companyUserId = obj.companyUserId;
  129. }
  130. else{
  131. this.packageId = options.packageId;
  132. this.companyId = options.companyId;
  133. this.companyUserId = options.companyUserId;
  134. }
  135. uni.showShareMenu({
  136. withShareTicket:true,
  137. //小程序的原生菜单中显示分享按钮,才能够让发送给朋友与分享到朋友圈两个按钮可以点击
  138. menus:["shareAppMessage","shareTimeline"] //不设置默认发送给朋友
  139. })
  140. },
  141. //发送给朋友
  142. onShareAppMessage(res) {
  143. return {
  144. title: this.package.title,
  145. path: `/pages_company/storeProductPackageDetails?packageId=${this.package.packageId}`+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId,
  146. imageUrl: this.package.imgUrl //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  147. }
  148. },
  149. //分享到朋友圈
  150. onShareTimeline(res) {
  151. return {
  152. title: this.package.title,
  153. query:'packageId='+this.package.packageId+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId,//页面参数
  154. imageUrl: this.package.imgUrl //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  155. }
  156. },
  157. onShow() {
  158. console.log("onshow")
  159. // if(this.utils.isLogin()){
  160. // console.log(123)
  161. // this.getOrderCount();
  162. // }
  163. if(uni.getStorageSync('AppToken')){
  164. console.log(123)
  165. this.getOrderCount();
  166. }
  167. this.getStoreProductPackageDetails();
  168. },
  169. methods: {
  170. getOrderCount(){
  171. getOrderCount().then(
  172. res => {
  173. if(res.code==200){
  174. this.count0=res.count0;
  175. if(this.count0>0){
  176. this.messageShow=true;
  177. }
  178. }
  179. },
  180. rej => {}
  181. );
  182. },
  183. showOrder(){
  184. this.utils.isLogin().then(res => {
  185. if(res){
  186. uni.navigateTo({
  187. url: '/pages_user/user/storeOrder?status=0'
  188. })
  189. }
  190. })
  191. },
  192. closeOrder(){
  193. this.messageShow=false;
  194. },
  195. showImg() {
  196. //预览图片
  197. uni.previewImage({
  198. urls: this.banner,
  199. current: this.banner[0]
  200. });
  201. },
  202. getStoreProductPackageDetails(){
  203. let data = {packageId:this.packageId};
  204. getStoreProductPackageDetails(data).then(
  205. res => {
  206. if(res.code==200){
  207. this.package=res.data;
  208. if(this.package.images!=null){
  209. this.banner=this.package.images.split(',')
  210. }
  211. else{
  212. this.banner=[]
  213. }
  214. this.products=JSON.parse(this.package.products);
  215. }else{
  216. uni.showToast({
  217. icon:'none',
  218. title: "请求失败",
  219. });
  220. }
  221. },
  222. rej => {}
  223. );
  224. },
  225. //swiper变化事件
  226. swiperChange(event) {
  227. this.activeBanner = event.detail.current + 1
  228. },
  229. buy() {
  230. this.utils.isLogin().then(res => {
  231. if(res){
  232. uni.navigateTo({
  233. url: '/pages/shopping/confirmPackageOrder?packageId='+this.packageId+"&companyUserId="+this.companyUserId
  234. })
  235. }
  236. })
  237. },
  238. //回到首页
  239. goHome() {
  240. uni.switchTab({
  241. url: '/pages/home/index'
  242. })
  243. },
  244. //跳转页面
  245. navgetTo(url) {
  246. this.utils.isLogin().then(res => {
  247. if(res){
  248. uni.navigateTo({
  249. url: url
  250. })
  251. }
  252. })
  253. },
  254. }
  255. }
  256. </script>
  257. <style lang="scss">
  258. .shop-banner{
  259. height: 756upx;
  260. background-color: #FFFFFF;
  261. position: relative;
  262. .swiper-item{
  263. box-sizing: border-box;
  264. }
  265. .swiper,
  266. .swiper-item,
  267. .swiper-item image{
  268. width: 100%;
  269. height: 100%;
  270. }
  271. .banner-mask{
  272. width: 100%;
  273. height: 44upx;
  274. // background: linear-gradient(0deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0));
  275. // opacity: 0.8;
  276. position: absolute;
  277. left: 0;
  278. bottom: 0;
  279. z-index: 9;
  280. background-image: url(/static/images/black_mask.png);
  281. background-size: 20upx 44upx;
  282. background-repeat: repeat-x;
  283. }
  284. .num-box{
  285. width: 80upx;
  286. height: 44upx;
  287. line-height: 44upx;
  288. text-align: center;
  289. font-size: 24upx;
  290. font-family: PingFang SC;
  291. font-weight: 500;
  292. color: #FFFFFF;
  293. background: rgba(0, 0, 0, .3);
  294. border-radius: 22upx;
  295. position: absolute;
  296. right: 30upx;
  297. bottom: 30upx;
  298. z-index: 10;
  299. }
  300. }
  301. .det-info{
  302. background: #FFFFFF;
  303. padding: 36upx 30upx 25upx;
  304. .price-box{
  305. display: flex;
  306. align-items: center;
  307. justify-content: space-between;
  308. .price{
  309. display: flex;
  310. align-items: flex-end;
  311. .label{
  312. color: #333;
  313. font-size: 28upx;
  314. font-family: PingFang SC;
  315. line-height: 1.3;
  316. margin-right: 5upx;
  317. }
  318. .unit{
  319. font-size: 28upx;
  320. font-family: PingFang SC;
  321. font-weight: bold;
  322. color: #FF6633;
  323. line-height: 1.3;
  324. }
  325. .num{
  326. font-size: 40upx;
  327. font-family: PingFang SC;
  328. font-weight: bold;
  329. color: #FF6633;
  330. margin: 0 20upx 0 10upx;
  331. line-height: 1;
  332. }
  333. .old{
  334. font-size: 28upx;
  335. font-family: PingFang SC;
  336. font-weight: 500;
  337. text-decoration: line-through;
  338. color: #BBBBBB;
  339. line-height: 1.3;
  340. }
  341. }
  342. .share-box{
  343. width: 120upx;
  344. height: 46upx;
  345. border: 1px solid #2BC7B9;
  346. border-radius: 23upx;
  347. display: flex;
  348. align-items: center;
  349. justify-content: center;
  350. position: relative;
  351. .text{
  352. font-size: 26upx;
  353. font-family: PingFang SC;
  354. font-weight: 500;
  355. color: #2BC7B9;
  356. }
  357. image{
  358. margin-left: 2rpx;
  359. width: 25upx;
  360. height: 24upx;
  361. }
  362. .share{
  363. display: inline-block;
  364. position: absolute;
  365. top: 0;
  366. left: 0;
  367. width: 100%;
  368. height: 100%rpx;
  369. opacity: 0;
  370. }
  371. }
  372. .spec{
  373. font-size: 24upx;
  374. font-family: PingFang SC;
  375. font-weight: 500;
  376. color: #999999;
  377. line-height: 36upx;
  378. }
  379. }
  380. .name-box{
  381. font-size: 32upx;
  382. font-family: PingFang SC;
  383. font-weight: bold;
  384. color: #111111;
  385. line-height: 44upx;
  386. margin-top: 32upx;
  387. .tag{
  388. display: inline-block;
  389. padding: 0 6upx;
  390. height: 30upx;
  391. background: linear-gradient(90deg, #2BC7B9 0%, #2BC7A4 100%);
  392. border-radius: 4upx;
  393. margin-right: 10upx;
  394. font-size: 22upx;
  395. font-family: PingFang SC;
  396. font-weight: bold;
  397. color: #FFFFFF;
  398. line-height: 30upx;
  399. float: left;
  400. margin-top: 7upx;
  401. }
  402. }
  403. .intro{
  404. font-size: 26upx;
  405. font-family: PingFang SC;
  406. font-weight: 500;
  407. color: #999999;
  408. line-height: 36upx;
  409. padding: 18upx 0;
  410. // border-bottom: 1px solid #f7f7f7;
  411. }
  412. .safe-box{
  413. display: flex;
  414. align-items: center;
  415. padding-top: 24upx;
  416. image{
  417. width: 20upx;
  418. height: 24upx;
  419. margin-right: 20upx;
  420. }
  421. .text{
  422. font-size: 22upx;
  423. font-family: PingFang SC;
  424. font-weight: 500;
  425. color: #999999;
  426. line-height: 1;
  427. }
  428. .line{
  429. width: 1px;
  430. height: 23upx;
  431. background: #EDEEEF;
  432. margin: 0 20upx;
  433. }
  434. }
  435. }
  436. .inventor{
  437. height: 88upx;
  438. padding: 0 39upx 0 30upx;
  439. margin-top: 10upx;
  440. background: #FFFFFF;
  441. display: flex;
  442. align-items: center;
  443. justify-content: space-between;
  444. .left{
  445. display: flex;
  446. align-items: center;
  447. .head-box{
  448. margin-right: 27upx;
  449. display: flex;
  450. align-items: center;
  451. .head{
  452. width: 48upx;
  453. height: 48upx;
  454. border-radius: 50%;
  455. overflow: hidden;
  456. box-shadow: 0 0 0 1px #fff;
  457. margin-right: -10upx;
  458. image{
  459. width: 100%;
  460. height: 100%;
  461. }
  462. }
  463. }
  464. .num-box{
  465. font-size: 24upx;
  466. font-family: PingFang SC;
  467. font-weight: 500;
  468. color: #999999;
  469. .text{
  470. font-size: 24upx;
  471. font-family: PingFang SC;
  472. font-weight: 500;
  473. color: #666666;
  474. }
  475. }
  476. }
  477. .right{
  478. font-size: 24upx;
  479. font-family: PingFang SC;
  480. font-weight: 500;
  481. color: #999999;
  482. .text{
  483. font-size: 24upx;
  484. font-family: PingFang SC;
  485. font-weight: 500;
  486. color: #666666;
  487. }
  488. }
  489. }
  490. .effect{
  491. box-sizing: border-box;
  492. padding: 20upx 30upx;
  493. background: #FFFFFF;
  494. font-size: 28upx;
  495. font-family: PingFang SC;
  496. font-weight: 500;
  497. color: #666666;
  498. line-height: 1.8;
  499. margin-top: 10upx;
  500. display: flex;
  501. flex-direction: row;
  502. align-items: center;
  503. justify-content: space-between;
  504. .label{
  505. font-size: 28upx;
  506. font-family: PingFang SC;
  507. font-weight: 500;
  508. color: #111111;
  509. line-height: 1.8;
  510. }
  511. }
  512. .det-box{
  513. margin-top: 10upx;
  514. padding: 40upx 30upx 130upx 30upx;
  515. background-color: #FFFFFF;
  516. .title{
  517. font-size: 30upx;
  518. font-family: PingFang SC;
  519. font-weight: bold;
  520. color: #333333;
  521. line-height: 1;
  522. margin-bottom: 25upx;
  523. }
  524. }
  525. .btn-foot{
  526. box-sizing: border-box;
  527. width: 100%;
  528. height: 121upx;
  529. background: #FFFFFF;
  530. padding: 0 32upx 0 28upx;
  531. display: flex;
  532. align-items: center;
  533. justify-content: space-between;
  534. position: fixed;
  535. left: 0;
  536. bottom: 0;
  537. z-index: 99;
  538. .menu-box{
  539. display: flex;
  540. align-items: center;
  541. .item{
  542. display: flex;
  543. align-items: center;
  544. flex-direction: column;
  545. margin-right: 48upx;
  546. &:last-child{
  547. margin-right: 0;
  548. }
  549. image{
  550. width: 36upx;
  551. height: 36upx;
  552. margin-bottom: 10upx;
  553. }
  554. .label{
  555. font-size: 20upx;
  556. font-family: PingFang SC;
  557. font-weight: 500;
  558. color: #666666;
  559. text-align: center;
  560. }
  561. }
  562. /deep/.uni-badge--x{
  563. display: flex;
  564. align-items: center;
  565. justify-content: center;
  566. }
  567. /deep/.uni-badge{
  568. border: none;
  569. background-color: #FF3636;
  570. font-family: Roboto;
  571. }
  572. }
  573. .btn-box{
  574. display: flex;
  575. align-items: center;
  576. .btn{
  577. width: 200upx;
  578. height: 88upx;
  579. line-height: 88upx;
  580. text-align: center;
  581. border-radius: 44upx;
  582. margin-left: 20upx;
  583. font-size: 30upx;
  584. font-family: PingFang SC;
  585. font-weight: bold;
  586. color: #FFFFFF;
  587. &:first-child{
  588. margin-left: 0;
  589. }
  590. &.cart{
  591. background: #FF6633;
  592. }
  593. &.buy{
  594. background: #2BC7B9;
  595. }
  596. }
  597. }
  598. }
  599. .product-spec{
  600. .pro-info{
  601. display: flex;
  602. align-items: center;
  603. .img-box{
  604. width: 200upx;
  605. height: 200upx;
  606. background: #FFFFFF;
  607. border-radius: 16upx;
  608. overflow: hidden;
  609. margin-right: 30upx;
  610. image{
  611. width: 100%;
  612. height: 100%;
  613. }
  614. }
  615. .info-text{
  616. height: 200upx;
  617. display: flex;
  618. flex-direction: column;
  619. justify-content: space-between;
  620. .price{
  621. display: flex;
  622. align-items: flex-end;
  623. .unit{
  624. font-size: 32upx;
  625. font-family: PingFang SC;
  626. font-weight: bold;
  627. color: #FF6633;
  628. line-height: 1.2;
  629. margin-right: 10upx;
  630. }
  631. .num{
  632. font-size: 50upx;
  633. font-family: PingFang SC;
  634. font-weight: bold;
  635. color: #FF6633;
  636. line-height: 1;
  637. }
  638. }
  639. .desc-box{
  640. display: flex;
  641. flex-direction: column;
  642. padding-bottom: 9upx;
  643. .text{
  644. font-size: 26upx;
  645. font-family: PingFang SC;
  646. font-weight: 500;
  647. color: #999999;
  648. margin-top: 27upx;
  649. line-height: 1;
  650. &:first-child{
  651. margin-top: 0;
  652. }
  653. }
  654. }
  655. }
  656. }
  657. .spec-box{
  658. padding-top: 50upx;
  659. .title{
  660. font-size: 34upx;
  661. font-family: PingFang SC;
  662. font-weight: bold;
  663. color: #111111;
  664. line-height: 1;
  665. }
  666. .spec-list{
  667. display: flex;
  668. flex-wrap: wrap;
  669. margin-top: 30upx;
  670. .item{
  671. box-sizing: border-box;
  672. height: 64upx;
  673. padding: 0 30upx;
  674. line-height: 64upx;
  675. font-size: 28upx;
  676. font-family: PingFang SC;
  677. font-weight: 500;
  678. color: #111111;
  679. background: #F7F7F7;
  680. border: 1px solid #F7F7F7;
  681. border-radius: 32upx;
  682. margin-right: 20upx;
  683. margin-bottom: 30upx;
  684. &.active{
  685. background: #F1FFFE;
  686. border: 1px solid #8AD5CE;
  687. color: #2BC7B9;
  688. }
  689. }
  690. }
  691. }
  692. .price-num{
  693. display: flex;
  694. align-items: center;
  695. justify-content: space-between;
  696. margin-top: 14upx;
  697. .label{
  698. font-size: 34upx;
  699. font-family: PingFang SC;
  700. font-weight: bold;
  701. color: #111111;
  702. }
  703. .num-box{
  704. display: flex;
  705. align-items: center;
  706. .img-box{
  707. width: 60upx;
  708. height: 60upx;
  709. // border-radius: 4upx;
  710. border: 1px solid #dddddd;
  711. display: flex;
  712. align-items: center;
  713. justify-content: center;
  714. image{
  715. width: 25rpx;
  716. height: 25rpx;
  717. }
  718. }
  719. input{
  720. width: 60upx;
  721. height: 60upx;
  722. line-height: 60upx;
  723. font-size: 28upx;
  724. font-family: PingFang SC;
  725. font-weight: 500;
  726. color: #111111;
  727. // border-radius: 4upx;
  728. border-top: 1px solid #dddddd;
  729. border-bottom: 1px solid #dddddd;
  730. text-align: center;
  731. // margin: 0 16upx;
  732. }
  733. }
  734. }
  735. .sub-btn{
  736. width: 100%;
  737. height: 88upx;
  738. line-height: 88upx;
  739. text-align: center;
  740. font-size: 30upx;
  741. font-family: PingFang SC;
  742. font-weight: bold;
  743. color: #FFFFFF;
  744. background: #2BC7B9;
  745. border-radius: 44upx;
  746. margin-top: 30upx;
  747. // margin-bottom: 30upx;
  748. }
  749. }
  750. .contact-btn{
  751. display: inline-block;
  752. position: absolute;
  753. top: 0;
  754. left: 0;
  755. width: 100%;
  756. height: 100%;
  757. opacity: 0;
  758. z-index: 9999;
  759. }
  760. .drug-box{
  761. margin: 10upx 0 10upx;
  762. padding: 40upx 30upx;
  763. background-color: #FFFFFF;
  764. .drug-list{
  765. .drug-item{
  766. padding: 30upx 0;
  767. border-bottom: 1px soli #F0F0F0;
  768. display: flex;
  769. align-items: center;
  770. .img-box{
  771. width: 160upx;
  772. height: 160upx;
  773. margin-right: 30upx;
  774. flex-shrink: 0;
  775. image{
  776. width: 100%;
  777. height: 100%;
  778. }
  779. }
  780. .drug-info{
  781. width: calc(100% - 190upx);
  782. height: 160upx;
  783. display: flex;
  784. flex-direction: column;
  785. justify-content: space-between;
  786. .name-box{
  787. font-size: 28upx;
  788. font-family: PingFang SC;
  789. font-weight: 500;
  790. color: #111111;
  791. line-height: 40upx;
  792. .tag{
  793. display: inline-block;
  794. padding: 0 6upx;
  795. height: 30upx;
  796. background: linear-gradient(90deg, #2BC7B9 0%, #2BC7A4 100%);
  797. border-radius: 4upx;
  798. margin-right: 10upx;
  799. font-size: 22upx;
  800. font-family: PingFang SC;
  801. font-weight: bold;
  802. color: #FFFFFF;
  803. line-height: 30upx;
  804. float: left;
  805. margin-top: 7upx;
  806. }
  807. }
  808. .spec{
  809. font-size: 24upx;
  810. font-family: PingFang SC;
  811. font-weight: 500;
  812. color: #999999;
  813. line-height: 1;
  814. margin-top: 10upx;
  815. }
  816. .num-box{
  817. display: flex;
  818. align-items: center;
  819. justify-content: space-between;
  820. .price{
  821. display: flex;
  822. align-items: flex-end;
  823. .unit{
  824. font-size: 24upx;
  825. font-family: PingFang SC;
  826. font-weight: 500;
  827. color: #111111;
  828. line-height: 1.2;
  829. margin-right: 4upx;
  830. }
  831. .num{
  832. font-size: 32upx;
  833. font-family: PingFang SC;
  834. font-weight: 500;
  835. color: #111111;
  836. line-height: 1;
  837. }
  838. }
  839. .amount{
  840. font-size: 24upx;
  841. font-family: PingFang SC;
  842. font-weight: 500;
  843. color: #999999;
  844. line-height: 1;
  845. }
  846. }
  847. }
  848. }
  849. }
  850. }
  851. .message-box{
  852. box-sizing: border-box;
  853. width: 693upx;
  854. height: 84upx;
  855. background: #F3FFFD;
  856. border: 1px solid #C7E9E5;
  857. box-shadow: 0px 4upx 12upx 0px rgba(90, 203, 138, 0.16);
  858. border-radius: 16upx;
  859. position: fixed;
  860. left: 50%;
  861. transform: translateX(-50%);
  862. bottom: 128upx;
  863. z-index: 99;
  864. display: flex;
  865. align-items: center;
  866. justify-content: space-between;
  867. padding: 0 20upx 0 30upx;
  868. .left{
  869. width: 80%;
  870. display: flex;
  871. align-items: center;
  872. image{
  873. width: 24upx;
  874. height: 24upx;
  875. margin-right: 18upx;
  876. }
  877. .text{
  878. width: 90%;
  879. font-size: 28upx;
  880. font-family: PingFang SC;
  881. font-weight: 500;
  882. color: #2BC7B9;
  883. }
  884. }
  885. .btn{
  886. width: 100upx;
  887. height: 48upx;
  888. line-height: 48upx;
  889. text-align: center;
  890. font-size: 24upx;
  891. font-family: PingFang SC;
  892. font-weight: 500;
  893. color: #FFFFFF;
  894. border: 1px solid #D2E6FF;
  895. background: linear-gradient(135deg, #2BC7B9 0%, #60CDC3 100%);
  896. border-radius: 24upx;
  897. margin-left: 30upx;
  898. }
  899. }
  900. </style>