storeProductPackageDetails.vue 19 KB

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