storeProductPackageDetails.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911
  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. this.getOrderCount();
  161. }
  162. this.getStoreProductPackageDetails();
  163. },
  164. methods: {
  165. getOrderCount(){
  166. getOrderCount().then(
  167. res => {
  168. if(res.code==200){
  169. this.count0=res.count0;
  170. if(this.count0>0){
  171. this.messageShow=true;
  172. }
  173. }
  174. },
  175. rej => {}
  176. );
  177. },
  178. showOrder(){
  179. this.utils.isLogin().then(res => {
  180. if(res){
  181. uni.navigateTo({
  182. url: '/pages_user/user/storeOrder?status=0'
  183. })
  184. }
  185. })
  186. },
  187. closeOrder(){
  188. this.messageShow=false;
  189. },
  190. showImg() {
  191. //预览图片
  192. uni.previewImage({
  193. urls: this.banner,
  194. current: this.banner[0]
  195. });
  196. },
  197. getStoreProductPackageDetails(){
  198. let data = {packageId:this.packageId};
  199. getStoreProductPackageDetails(data).then(
  200. res => {
  201. if(res.code==200){
  202. this.package=res.data;
  203. if(this.package.images!=null){
  204. this.banner=this.package.images.split(',')
  205. }
  206. else{
  207. this.banner=[]
  208. }
  209. this.products=JSON.parse(this.package.products);
  210. }else{
  211. uni.showToast({
  212. icon:'none',
  213. title: "请求失败",
  214. });
  215. }
  216. },
  217. rej => {}
  218. );
  219. },
  220. //swiper变化事件
  221. swiperChange(event) {
  222. this.activeBanner = event.detail.current + 1
  223. },
  224. buy() {
  225. this.utils.isLogin().then(res => {
  226. if(res){
  227. uni.navigateTo({
  228. url: '/pages_shopping/shopping/confirmPackageOrder?packageId='+this.packageId+"&companyUserId="+this.companyUserId
  229. })
  230. }
  231. })
  232. },
  233. //回到首页
  234. goHome() {
  235. uni.switchTab({
  236. url: '/pages/home/index'
  237. })
  238. },
  239. //跳转页面
  240. navgetTo(url) {
  241. this.utils.isLogin().then(res => {
  242. if(res){
  243. uni.navigateTo({
  244. url: url
  245. })
  246. }
  247. })
  248. },
  249. }
  250. }
  251. </script>
  252. <style lang="scss">
  253. .shop-banner{
  254. height: 756upx;
  255. background-color: #FFFFFF;
  256. position: relative;
  257. .swiper-item{
  258. box-sizing: border-box;
  259. }
  260. .swiper,
  261. .swiper-item,
  262. .swiper-item image{
  263. width: 100%;
  264. height: 100%;
  265. }
  266. .banner-mask{
  267. width: 100%;
  268. height: 44upx;
  269. // background: linear-gradient(0deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0));
  270. // opacity: 0.8;
  271. position: absolute;
  272. left: 0;
  273. bottom: 0;
  274. z-index: 9;
  275. background-image: url(/static/images/black_mask.png);
  276. background-size: 20upx 44upx;
  277. background-repeat: repeat-x;
  278. }
  279. .num-box{
  280. width: 80upx;
  281. height: 44upx;
  282. line-height: 44upx;
  283. text-align: center;
  284. font-size: 24upx;
  285. font-family: PingFang SC;
  286. font-weight: 500;
  287. color: #FFFFFF;
  288. background: rgba(0, 0, 0, .3);
  289. border-radius: 22upx;
  290. position: absolute;
  291. right: 30upx;
  292. bottom: 30upx;
  293. z-index: 10;
  294. }
  295. }
  296. .det-info{
  297. background: #FFFFFF;
  298. padding: 36upx 30upx 25upx;
  299. .price-box{
  300. display: flex;
  301. align-items: center;
  302. justify-content: space-between;
  303. .price{
  304. display: flex;
  305. align-items: flex-end;
  306. .label{
  307. color: #333;
  308. font-size: 28upx;
  309. font-family: PingFang SC;
  310. line-height: 1.3;
  311. margin-right: 5upx;
  312. }
  313. .unit{
  314. font-size: 28upx;
  315. font-family: PingFang SC;
  316. font-weight: bold;
  317. color: #FF6633;
  318. line-height: 1.3;
  319. }
  320. .num{
  321. font-size: 40upx;
  322. font-family: PingFang SC;
  323. font-weight: bold;
  324. color: #FF6633;
  325. margin: 0 20upx 0 10upx;
  326. line-height: 1;
  327. }
  328. .old{
  329. font-size: 28upx;
  330. font-family: PingFang SC;
  331. font-weight: 500;
  332. text-decoration: line-through;
  333. color: #BBBBBB;
  334. line-height: 1.3;
  335. }
  336. }
  337. .share-box{
  338. width: 120upx;
  339. height: 46upx;
  340. border: 1px solid #018C39;
  341. border-radius: 23upx;
  342. display: flex;
  343. align-items: center;
  344. justify-content: center;
  345. position: relative;
  346. .text{
  347. font-size: 26upx;
  348. font-family: PingFang SC;
  349. font-weight: 500;
  350. color: #018C39;
  351. }
  352. image{
  353. margin-left: 2rpx;
  354. width: 25upx;
  355. height: 24upx;
  356. }
  357. .share{
  358. display: inline-block;
  359. position: absolute;
  360. top: 0;
  361. left: 0;
  362. width: 100%;
  363. height: 100%rpx;
  364. opacity: 0;
  365. }
  366. }
  367. .spec{
  368. font-size: 24upx;
  369. font-family: PingFang SC;
  370. font-weight: 500;
  371. color: #999999;
  372. line-height: 36upx;
  373. }
  374. }
  375. .name-box{
  376. font-size: 32upx;
  377. font-family: PingFang SC;
  378. font-weight: bold;
  379. color: #111111;
  380. line-height: 44upx;
  381. margin-top: 32upx;
  382. .tag{
  383. display: inline-block;
  384. padding: 0 6upx;
  385. height: 30upx;
  386. background: linear-gradient(90deg, #38e663 0%, #018C39 100%);
  387. border-radius: 4upx;
  388. margin-right: 10upx;
  389. font-size: 22upx;
  390. font-family: PingFang SC;
  391. font-weight: bold;
  392. color: #FFFFFF;
  393. line-height: 30upx;
  394. float: left;
  395. margin-top: 7upx;
  396. }
  397. }
  398. .intro{
  399. font-size: 26upx;
  400. font-family: PingFang SC;
  401. font-weight: 500;
  402. color: #999999;
  403. line-height: 36upx;
  404. padding: 18upx 0;
  405. // border-bottom: 1px solid #f7f7f7;
  406. }
  407. .safe-box{
  408. display: flex;
  409. align-items: center;
  410. padding-top: 24upx;
  411. image{
  412. width: 20upx;
  413. height: 24upx;
  414. margin-right: 20upx;
  415. }
  416. .text{
  417. font-size: 22upx;
  418. font-family: PingFang SC;
  419. font-weight: 500;
  420. color: #999999;
  421. line-height: 1;
  422. }
  423. .line{
  424. width: 1px;
  425. height: 23upx;
  426. background: #EDEEEF;
  427. margin: 0 20upx;
  428. }
  429. }
  430. }
  431. .inventor{
  432. height: 88upx;
  433. padding: 0 39upx 0 30upx;
  434. margin-top: 10upx;
  435. background: #FFFFFF;
  436. display: flex;
  437. align-items: center;
  438. justify-content: space-between;
  439. .left{
  440. display: flex;
  441. align-items: center;
  442. .head-box{
  443. margin-right: 27upx;
  444. display: flex;
  445. align-items: center;
  446. .head{
  447. width: 48upx;
  448. height: 48upx;
  449. border-radius: 50%;
  450. overflow: hidden;
  451. box-shadow: 0 0 0 1px #fff;
  452. margin-right: -10upx;
  453. image{
  454. width: 100%;
  455. height: 100%;
  456. }
  457. }
  458. }
  459. .num-box{
  460. font-size: 24upx;
  461. font-family: PingFang SC;
  462. font-weight: 500;
  463. color: #999999;
  464. .text{
  465. font-size: 24upx;
  466. font-family: PingFang SC;
  467. font-weight: 500;
  468. color: #666666;
  469. }
  470. }
  471. }
  472. .right{
  473. font-size: 24upx;
  474. font-family: PingFang SC;
  475. font-weight: 500;
  476. color: #999999;
  477. .text{
  478. font-size: 24upx;
  479. font-family: PingFang SC;
  480. font-weight: 500;
  481. color: #666666;
  482. }
  483. }
  484. }
  485. .effect{
  486. box-sizing: border-box;
  487. padding: 20upx 30upx;
  488. background: #FFFFFF;
  489. font-size: 28upx;
  490. font-family: PingFang SC;
  491. font-weight: 500;
  492. color: #666666;
  493. line-height: 1.8;
  494. margin-top: 10upx;
  495. display: flex;
  496. flex-direction: row;
  497. align-items: center;
  498. justify-content: space-between;
  499. .label{
  500. font-size: 28upx;
  501. font-family: PingFang SC;
  502. font-weight: 500;
  503. color: #111111;
  504. line-height: 1.8;
  505. }
  506. }
  507. .det-box{
  508. margin-top: 10upx;
  509. padding: 40upx 30upx 130upx 30upx;
  510. background-color: #FFFFFF;
  511. .title{
  512. font-size: 30upx;
  513. font-family: PingFang SC;
  514. font-weight: bold;
  515. color: #333333;
  516. line-height: 1;
  517. margin-bottom: 25upx;
  518. }
  519. }
  520. .btn-foot{
  521. box-sizing: border-box;
  522. width: 100%;
  523. height: 121upx;
  524. background: #FFFFFF;
  525. padding: 0 32upx 0 28upx;
  526. display: flex;
  527. align-items: center;
  528. justify-content: space-between;
  529. position: fixed;
  530. left: 0;
  531. bottom: 0;
  532. z-index: 99;
  533. .menu-box{
  534. display: flex;
  535. align-items: center;
  536. .item{
  537. display: flex;
  538. align-items: center;
  539. flex-direction: column;
  540. margin-right: 48upx;
  541. &:last-child{
  542. margin-right: 0;
  543. }
  544. image{
  545. width: 36upx;
  546. height: 36upx;
  547. margin-bottom: 10upx;
  548. }
  549. .label{
  550. font-size: 20upx;
  551. font-family: PingFang SC;
  552. font-weight: 500;
  553. color: #666666;
  554. text-align: center;
  555. }
  556. }
  557. /deep/.uni-badge--x{
  558. display: flex;
  559. align-items: center;
  560. justify-content: center;
  561. }
  562. /deep/.uni-badge{
  563. border: none;
  564. background-color: #FF3636;
  565. font-family: Roboto;
  566. }
  567. }
  568. .btn-box{
  569. display: flex;
  570. align-items: center;
  571. .btn{
  572. width: 200upx;
  573. height: 88upx;
  574. line-height: 88upx;
  575. text-align: center;
  576. border-radius: 44upx;
  577. margin-left: 20upx;
  578. font-size: 30upx;
  579. font-family: PingFang SC;
  580. font-weight: bold;
  581. color: #FFFFFF;
  582. &:first-child{
  583. margin-left: 0;
  584. }
  585. &.cart{
  586. background: #FF6633;
  587. }
  588. &.buy{
  589. background: #018C39;
  590. }
  591. }
  592. }
  593. }
  594. .product-spec{
  595. .pro-info{
  596. display: flex;
  597. align-items: center;
  598. .img-box{
  599. width: 200upx;
  600. height: 200upx;
  601. background: #FFFFFF;
  602. border-radius: 16upx;
  603. overflow: hidden;
  604. margin-right: 30upx;
  605. image{
  606. width: 100%;
  607. height: 100%;
  608. }
  609. }
  610. .info-text{
  611. height: 200upx;
  612. display: flex;
  613. flex-direction: column;
  614. justify-content: space-between;
  615. .price{
  616. display: flex;
  617. align-items: flex-end;
  618. .unit{
  619. font-size: 32upx;
  620. font-family: PingFang SC;
  621. font-weight: bold;
  622. color: #FF6633;
  623. line-height: 1.2;
  624. margin-right: 10upx;
  625. }
  626. .num{
  627. font-size: 50upx;
  628. font-family: PingFang SC;
  629. font-weight: bold;
  630. color: #FF6633;
  631. line-height: 1;
  632. }
  633. }
  634. .desc-box{
  635. display: flex;
  636. flex-direction: column;
  637. padding-bottom: 9upx;
  638. .text{
  639. font-size: 26upx;
  640. font-family: PingFang SC;
  641. font-weight: 500;
  642. color: #999999;
  643. margin-top: 27upx;
  644. line-height: 1;
  645. &:first-child{
  646. margin-top: 0;
  647. }
  648. }
  649. }
  650. }
  651. }
  652. .spec-box{
  653. padding-top: 50upx;
  654. .title{
  655. font-size: 34upx;
  656. font-family: PingFang SC;
  657. font-weight: bold;
  658. color: #111111;
  659. line-height: 1;
  660. }
  661. .spec-list{
  662. display: flex;
  663. flex-wrap: wrap;
  664. margin-top: 30upx;
  665. .item{
  666. box-sizing: border-box;
  667. height: 64upx;
  668. padding: 0 30upx;
  669. line-height: 64upx;
  670. font-size: 28upx;
  671. font-family: PingFang SC;
  672. font-weight: 500;
  673. color: #111111;
  674. background: #F7F7F7;
  675. border: 1px solid #F7F7F7;
  676. border-radius: 32upx;
  677. margin-right: 20upx;
  678. margin-bottom: 30upx;
  679. &.active{
  680. background: #F1FFFE;
  681. border: 1px solid #8AD5CE;
  682. color: #018C39;
  683. }
  684. }
  685. }
  686. }
  687. .price-num{
  688. display: flex;
  689. align-items: center;
  690. justify-content: space-between;
  691. margin-top: 14upx;
  692. .label{
  693. font-size: 34upx;
  694. font-family: PingFang SC;
  695. font-weight: bold;
  696. color: #111111;
  697. }
  698. .num-box{
  699. display: flex;
  700. align-items: center;
  701. .img-box{
  702. width: 60upx;
  703. height: 60upx;
  704. // border-radius: 4upx;
  705. border: 1px solid #dddddd;
  706. display: flex;
  707. align-items: center;
  708. justify-content: center;
  709. image{
  710. width: 25rpx;
  711. height: 25rpx;
  712. }
  713. }
  714. input{
  715. width: 60upx;
  716. height: 60upx;
  717. line-height: 60upx;
  718. font-size: 28upx;
  719. font-family: PingFang SC;
  720. font-weight: 500;
  721. color: #111111;
  722. // border-radius: 4upx;
  723. border-top: 1px solid #dddddd;
  724. border-bottom: 1px solid #dddddd;
  725. text-align: center;
  726. // margin: 0 16upx;
  727. }
  728. }
  729. }
  730. .sub-btn{
  731. width: 100%;
  732. height: 88upx;
  733. line-height: 88upx;
  734. text-align: center;
  735. font-size: 30upx;
  736. font-family: PingFang SC;
  737. font-weight: bold;
  738. color: #FFFFFF;
  739. background: #018C39;
  740. border-radius: 44upx;
  741. margin-top: 30upx;
  742. // margin-bottom: 30upx;
  743. }
  744. }
  745. .contact-btn{
  746. display: inline-block;
  747. position: absolute;
  748. top: 0;
  749. left: 0;
  750. width: 100%;
  751. height: 100%;
  752. opacity: 0;
  753. z-index: 9999;
  754. }
  755. .drug-box{
  756. margin: 10upx 0 10upx;
  757. padding: 40upx 30upx;
  758. background-color: #FFFFFF;
  759. .drug-list{
  760. .drug-item{
  761. padding: 30upx 0;
  762. border-bottom: 1px soli #F0F0F0;
  763. display: flex;
  764. align-items: center;
  765. .img-box{
  766. width: 160upx;
  767. height: 160upx;
  768. margin-right: 30upx;
  769. flex-shrink: 0;
  770. image{
  771. width: 100%;
  772. height: 100%;
  773. }
  774. }
  775. .drug-info{
  776. width: calc(100% - 190upx);
  777. height: 160upx;
  778. display: flex;
  779. flex-direction: column;
  780. justify-content: space-between;
  781. .name-box{
  782. font-size: 28upx;
  783. font-family: PingFang SC;
  784. font-weight: 500;
  785. color: #111111;
  786. line-height: 40upx;
  787. .tag{
  788. display: inline-block;
  789. padding: 0 6upx;
  790. height: 30upx;
  791. background: linear-gradient(90deg, #38e663 0%, #018C39 100%);
  792. border-radius: 4upx;
  793. margin-right: 10upx;
  794. font-size: 22upx;
  795. font-family: PingFang SC;
  796. font-weight: bold;
  797. color: #FFFFFF;
  798. line-height: 30upx;
  799. float: left;
  800. margin-top: 7upx;
  801. }
  802. }
  803. .spec{
  804. font-size: 24upx;
  805. font-family: PingFang SC;
  806. font-weight: 500;
  807. color: #999999;
  808. line-height: 1;
  809. margin-top: 10upx;
  810. }
  811. .num-box{
  812. display: flex;
  813. align-items: center;
  814. justify-content: space-between;
  815. .price{
  816. display: flex;
  817. align-items: flex-end;
  818. .unit{
  819. font-size: 24upx;
  820. font-family: PingFang SC;
  821. font-weight: 500;
  822. color: #111111;
  823. line-height: 1.2;
  824. margin-right: 4upx;
  825. }
  826. .num{
  827. font-size: 32upx;
  828. font-family: PingFang SC;
  829. font-weight: 500;
  830. color: #111111;
  831. line-height: 1;
  832. }
  833. }
  834. .amount{
  835. font-size: 24upx;
  836. font-family: PingFang SC;
  837. font-weight: 500;
  838. color: #999999;
  839. line-height: 1;
  840. }
  841. }
  842. }
  843. }
  844. }
  845. }
  846. .message-box{
  847. box-sizing: border-box;
  848. width: 693upx;
  849. height: 84upx;
  850. background: #F3FFFD;
  851. border: 1px solid #C7E9E5;
  852. box-shadow: 0px 4upx 12upx 0px rgba(90, 203, 138, 0.16);
  853. border-radius: 16upx;
  854. position: fixed;
  855. left: 50%;
  856. transform: translateX(-50%);
  857. bottom: 128upx;
  858. z-index: 99;
  859. display: flex;
  860. align-items: center;
  861. justify-content: space-between;
  862. padding: 0 20upx 0 30upx;
  863. .left{
  864. width: 80%;
  865. display: flex;
  866. align-items: center;
  867. image{
  868. width: 24upx;
  869. height: 24upx;
  870. margin-right: 18upx;
  871. }
  872. .text{
  873. width: 90%;
  874. font-size: 28upx;
  875. font-family: PingFang SC;
  876. font-weight: 500;
  877. color: #018C39;
  878. }
  879. }
  880. .btn{
  881. width: 100upx;
  882. height: 48upx;
  883. line-height: 48upx;
  884. text-align: center;
  885. font-size: 24upx;
  886. font-family: PingFang SC;
  887. font-weight: 500;
  888. color: #FFFFFF;
  889. border: 1px solid #D2E6FF;
  890. background: linear-gradient(135deg, #38e663 0%, #018C39 100%);
  891. border-radius: 24upx;
  892. margin-left: 30upx;
  893. }
  894. }
  895. </style>