storeProductPackageDetails.vue 19 KB

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