packageDetails.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850
  1. <template>
  2. <view class="content">
  3. <!-- <view class="img-box" @click="showImg()">
  4. <image :src="item.imgUrl"></image>
  5. </view> -->
  6. <!-- 购买轮播列表 -->
  7. <view class="buy-lists" v-if="notics&&notics.length>0" :style="{height: boxHeight+'px'}">
  8. <view :class="{'buy-top': animate == true }" :style="{marginTop: animate == true ? `-${marginTop}px`:'0'}">
  9. <view class="buy-list buy-txtbox" v-for="(item,index) in notics" :key="index">
  10. <view class="buy-item"><text class="textOne buy-name" >{{item.fsUserName|| ''}}</text><text>{{item.timeTxt}} 已下单</text></view>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="cont-box">
  15. <view class="goods-banner" @click="showImg()">
  16. <swiper
  17. class="swiper"
  18. :indicator-dots="false"
  19. :circular="true"
  20. :autoplay="true"
  21. :interval="3000"
  22. :duration="1000"
  23. indicator-color="rgba(255, 255, 255, 0.6)"
  24. indicator-active-color="#ffffff"
  25. @change="swiperChange"
  26. >
  27. <swiper-item class="swiper-item" v-for="(item,index) in imgs" :key="index">
  28. <image :src="item" mode="aspectFit"></image>
  29. </swiper-item>
  30. </swiper>
  31. <!-- 数量 -->
  32. <view class="num-box">{{ activeImg }}/{{ imgs.length }}</view>
  33. </view>
  34. <view class="package-box">
  35. <view class="title">{{item.packageName}}</view>
  36. <view class="desc">
  37. <view class="cycle" v-if="item.cycle>0">服务周期{{item.cycle}}天</view>
  38. <view class="duration" v-if="item.duration>0">签约时长{{item.duration}}天</view>
  39. </view>
  40. <view class="num-box">
  41. <view class="price-box">
  42. <view class="price" v-if="item!=null">¥{{item.price.toFixed(2)}}元/日</view>
  43. <view class="price" v-if="item!=null&&item.packageSubType==1">咨询包</view>
  44. <view class="price" v-if="item!=null&&item.packageSubType==2">治疗包</view>
  45. <view class="price" v-if="item!=null&&item.packageSubType==3">产品包</view>
  46. </view>
  47. <view class="count">{{item.sales}}人已购</view>
  48. </view>
  49. </view>
  50. <view class="drug-box" v-if="products.length>0 ">
  51. <view class="title-box">
  52. <view class="line"></view>
  53. <view class="title">产品列表</view>
  54. </view>
  55. <view class="drug-list" >
  56. <view v-for="(product,index) in products" class="drug-item" >
  57. <view class="drug" v-if="displayMore==0?index<2:true" >
  58. <view class="img-box">
  59. <image :src="product.image" mode="aspectFill"></image>
  60. </view>
  61. <view class="drug-info" >
  62. <view>
  63. <view class="name-box ellipsis2">
  64. {{product.productName}}
  65. </view>
  66. <view class="spec">{{product.sku}}</view>
  67. </view>
  68. <view class="num-box">
  69. <view class="use">
  70. {{product.usageMethod}}
  71. </view>
  72. <view class="price">
  73. <!-- <text class="unit">¥</text>
  74. <text class="num">{{product.price.toFixed(2)}}</text> -->
  75. </view>
  76. <!-- <view class="amount">x{{product.count}}</view> -->
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <view v-if="products.length>2" class="display-more" @click="showMore()" >{{displayText}}</view>
  83. </view>
  84. <view class="desc-box" v-if="describe.use!=null">
  85. <view class="title-box">
  86. <view class="line"></view>
  87. <view class="title">疗程</view>
  88. </view>
  89. <view class="desc" v-if="describe!=null" v-html="describe.use">
  90. </view>
  91. </view>
  92. <view class="desc-box" v-if="item.indication!=null">
  93. <view class="title-box">
  94. <view class="line"></view>
  95. <view class="title">功能主治</view>
  96. </view>
  97. <view class="desc" v-if="item!=null" v-html="item.indication">
  98. </view>
  99. </view>
  100. <view class="desc-box" v-if="describe.usageMethod!=null">
  101. <view class="title-box">
  102. <view class="line"></view>
  103. <view class="title">服用/使用方式</view>
  104. </view>
  105. <view class="desc" v-html="describe.usageMethod">
  106. </view>
  107. </view>
  108. <view class="desc-box" v-if="describe.forPeople!=null">
  109. <view class="title-box">
  110. <view class="line"></view>
  111. <view class="title">适宜人群</view>
  112. </view>
  113. <view class="desc" v-html="describe.forPeople">
  114. </view>
  115. </view>
  116. <view class="desc-box" v-if="describe.tabooPeople!=null">
  117. <view class="title-box">
  118. <view class="line"></view>
  119. <view class="title">禁忌人群</view>
  120. </view>
  121. <view class="desc" v-html="describe.tabooPeople">
  122. </view>
  123. </view>
  124. <view class="desc-box" v-if="item.explain!=null">
  125. <view class="title-box">
  126. <view class="line"></view>
  127. <view class="title">方解/搭配优势</view>
  128. </view>
  129. <view class="desc" v-html="item.explain">
  130. </view>
  131. </view>
  132. <view class="desc-box">
  133. <view class="title-box">
  134. <view class="line"></view>
  135. <view class="title">疗法详情</view>
  136. </view>
  137. <view class="desc" v-html="item.desc">
  138. </view>
  139. </view>
  140. </view>
  141. <view class="btn-foot">
  142. <view class="p-price-box">
  143. <view class="p-name">¥</view>
  144. <view class="p-price" v-if="item!=null">{{item.totalPrice.toFixed(2)}}</view>
  145. </view>
  146. <view class="btn-box">
  147. <view class="btn buy" >
  148. 分享
  149. <button class="contact-btn" data-name="shareBtn" open-type="share">分享</button>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. </template>
  155. <script>
  156. import { caculateTimeago } from '@/pages/TUIKit/utils/date.ts';
  157. import {getConfigByKey} from '@/api/common'
  158. import {getPackageById,getPackageDoctorList,getNewOrderByPackageId} from '@/api/package.js'
  159. export default {
  160. data() {
  161. return {
  162. displayText:"查看更多",
  163. displayMore:0,
  164. imgs:[],
  165. activeImg: 1,
  166. doctorShow:false,
  167. doctors:[],
  168. products:[],
  169. packageId:null,
  170. item:{},
  171. describe:null,
  172. doctorId:null,
  173. doctorPageNum:1,
  174. doctorLastPage:false,
  175. doctorTotal:0,
  176. choose: 0,
  177. boxHeight: 94,
  178. marginTop: 30,
  179. animate:false,
  180. timer:null,
  181. notics:[],
  182. };
  183. },
  184. onLoad(option) {
  185. this.packageId=option.packageId;
  186. this.companyId=uni.getStorageSync('companyId');
  187. this.companyUserId=uni.getStorageSync('companyUserId');
  188. },
  189. onReady() {
  190. this.getNewOrderByPackageId()
  191. },
  192. onUnload() {
  193. if(this.timer) clearInterval(this.timer)
  194. },
  195. onShow() {
  196. this.getPackageById();
  197. this.getPackageDoctorList();
  198. if(this.packageId) {
  199. this.getConfigByKey()
  200. }
  201. },
  202. onShareAppMessage(res) {
  203. return {
  204. title: this.item.packageName,
  205. path: '/pages_index/packageDetails?packageId='+this.packageId+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId+'&choose='+this.choose|| '',
  206. imageUrl: this.item.imgUrl //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  207. }
  208. },
  209. methods:{
  210. getNewOrderByPackageId() {
  211. if(this.timer) clearInterval(this.timer)
  212. getNewOrderByPackageId({packageId:this.packageId}).then(res=>{
  213. if(res.code== 200) {
  214. this.notics = res.data
  215. if(res.data&&res.data.length > 0) {
  216. this.notics = res.data.map(item=>({
  217. ...item,
  218. timeTxt: caculateTimeago(new Date(item.payTime).getTime(),1)
  219. }))
  220. this.getText()
  221. this.timer = setInterval(this.scroll, 1400);
  222. }
  223. } else {
  224. this.notics = []
  225. }
  226. })
  227. },
  228. scroll() {
  229. this.animate = true;
  230. setTimeout(() => {
  231. this.notics.push(this.notics[0]);
  232. this.notics.shift();
  233. this.animate = false;
  234. }, 1000);
  235. },
  236. getText() {
  237. const query = uni.createSelectorQuery().in(this);
  238. query
  239. .select(".buy-txtbox")
  240. .boundingClientRect((data) => {
  241. this.marginTop = data.height + uni.upx2px(14)
  242. if(this.notics.length>2) {
  243. this.boxHeight = this.marginTop * 3 + uni.upx2px(8)
  244. } else {
  245. this.boxHeight = this.marginTop * this.notics.length + uni.upx2px(8)
  246. }
  247. })
  248. .exec();
  249. },
  250. showMore(){
  251. this.displayMore=this.displayMore==1?0:1;
  252. this.displayText=this.displayMore==1?'收起':'查看更多'
  253. console.log(this.displayText)
  254. },
  255. swiperChange(event) {
  256. this.activeImg = event.detail.current + 1
  257. },
  258. handleDoctorClick(item){
  259. this.doctorShow=false;
  260. this.doctorId=item.doctorId
  261. uni.navigateTo({
  262. url:"/pages_index/packageForm?packageId="+this.packageId+"&doctorId="+this.doctorId
  263. })
  264. },
  265. lower(event) {
  266. if(this.doctorTotal>this.doctors.length){
  267. this.doctorPageNum++;
  268. this.getPackageDoctorList();
  269. }
  270. },
  271. doctorOpen(){
  272. this.doctorShow=true;
  273. },
  274. doctorClose(){
  275. this.doctorShow=false;
  276. },
  277. showImg() {
  278. //预览图片
  279. uni.previewImage({
  280. urls: this.imgs,
  281. current: this.imgs[0]
  282. });
  283. },
  284. getPackageDoctorList(){
  285. if(this.doctorLastPage){
  286. return;
  287. }
  288. var data = {
  289. packageId:this.packageId,
  290. pageNum: this.doctorPageNum,
  291. pageSize: 10
  292. };
  293. var that=this;
  294. getPackageDoctorList(data).then(
  295. res => {
  296. if(res.code==200){
  297. //设置列表数据
  298. if (this.doctorPageNum == 0) {
  299. that.doctors = res.data.list;
  300. } else {
  301. that.doctors = that.doctors.concat(res.data.list);
  302. }
  303. this.doctorLastPage=res.data.isLastPage;
  304. this.doctorTotal=res.data.total
  305. console.log(that.doctors)
  306. }else{
  307. uni.showToast({
  308. icon:'none',
  309. title: "请求失败",
  310. });
  311. }
  312. },
  313. rej => {}
  314. );
  315. },
  316. getPackageById(){
  317. let data = {packageId:this.packageId};
  318. getPackageById(data).then(
  319. res => {
  320. if(res.code==200){
  321. this.item=res.data;
  322. if(res.data.images!=null){
  323. this.imgs=res.data.images.split(",")
  324. }
  325. else{
  326. this.activeImg=0;
  327. }
  328. this.describe=JSON.parse(this.item.describeJson);
  329. if(this.item.productJson!=null){
  330. this.products=JSON.parse(this.item.productJson);
  331. }
  332. console.log(this.imgs)
  333. }else{
  334. uni.showToast({
  335. icon:'none',
  336. title: "请求失败",
  337. });
  338. }
  339. },
  340. rej => {}
  341. );
  342. },
  343. getConfigByKey(){
  344. let param = {key:"app.config"};
  345. getConfigByKey(param).then(
  346. res => {
  347. if(res.code==200){
  348. let data=res.data ? JSON.parse(res.data) : {};
  349. const fsPackage = data.fsPackage&&data.fsPackage.length > 0 ? data.fsPackage[0] : {}
  350. this.choose = fsPackage&&fsPackage.packageId == this.packageId ? 2 : 0
  351. }else{
  352. uni.showToast({
  353. icon:'none',
  354. title: "请求失败",
  355. });
  356. }
  357. },
  358. rej => {}
  359. );
  360. },
  361. }
  362. }
  363. </script>
  364. <style lang="scss">
  365. page{
  366. height: 100%;
  367. }
  368. .textOne {
  369. overflow: hidden;
  370. white-space: nowrap;
  371. text-overflow: ellipsis;
  372. }
  373. .buy-lists{
  374. height: 188rpx;
  375. background-color:transparent;
  376. overflow: hidden;
  377. width: 60%;
  378. position: absolute;
  379. z-index: 99;
  380. top: 20vh;
  381. left: 20rpx;
  382. }
  383. .buy-list{
  384. height: 46rpx;
  385. font-size: 26rpx;
  386. margin-top: 14rpx;
  387. overflow: hidden;
  388. color: #fff;
  389. .buy-item {
  390. display: inline-flex;
  391. align-items: center;
  392. height: 100%;
  393. overflow: hidden;
  394. background-color: rgba(0, 0, 0, 0.35);
  395. border-radius: 10rpx;
  396. padding: 0 20rpx;
  397. box-sizing: border-box;
  398. }
  399. .buy-name {
  400. width: 50%;
  401. margin-right: 10rpx;
  402. }
  403. text {
  404. word-break: break-all;
  405. white-space: nowrap;
  406. }
  407. }
  408. .buy-top {
  409. transition: all 1.5s ease-in;
  410. margin-top: -60rpx;
  411. }
  412. .content{
  413. height: 100%;
  414. display: flex;
  415. flex-direction: column;
  416. .cont-box{
  417. padding-bottom: 121rpx;
  418. .package-box{
  419. background-color: #fff;
  420. padding: 20rpx;
  421. width: 100%;
  422. display: flex;
  423. flex-direction: column;
  424. align-items: flex-start;
  425. justify-content: flex-start;
  426. .title{
  427. font-weight: bold;
  428. font-size: 34upx;
  429. font-family: PingFang SC;
  430. color: #111;
  431. }
  432. .desc{
  433. margin-top: 15rpx;
  434. display: flex;
  435. align-items: flex-start;
  436. justify-content: flex-start;
  437. .cycle{
  438. background-color: #eee;
  439. border-radius: 30rpx;
  440. padding: 5rpx 15rpx;
  441. font-size: 26upx;
  442. font-family: PingFang SC;
  443. color: #C39A58;
  444. }
  445. .duration{
  446. margin-left: 10rpx;
  447. background-color: #eee;
  448. border-radius: 30rpx;
  449. padding: 5rpx 15rpx;
  450. font-size: 26upx;
  451. font-family: PingFang SC;
  452. color: #C39A58;
  453. }
  454. }
  455. .num-box{
  456. margin-top: 15rpx;
  457. flex: 1;
  458. display: flex;
  459. align-items: flex-end;
  460. justify-content: space-between;
  461. width: 100%;
  462. .price-box{
  463. display: flex;
  464. align-items: center;
  465. justify-content: flex-start;
  466. .price{
  467. margin-right: 10rpx;
  468. padding: 5rpx 10rpx;
  469. background-color: #C39A58;
  470. border-radius: 30rpx;
  471. font-size: 20upx;
  472. font-family: PingFang SC;
  473. color: #ffffff;
  474. }
  475. }
  476. .count{
  477. font-size: 24upx;
  478. font-family: PingFang SC;
  479. color: #333333;
  480. }
  481. }
  482. }
  483. .desc-box{
  484. background-color: #fff;
  485. padding: 20rpx;
  486. margin-top: 10rpx;
  487. .title-box{
  488. display: flex;
  489. flex-direction: row;
  490. align-items: center;
  491. justify-content: flex-start;
  492. .title{
  493. font-size: 32upx;
  494. font-family: PingFang SC;
  495. font-weight: bold;
  496. color: #111111;
  497. }
  498. .line{
  499. margin-right: 15rpx;
  500. height: 30rpx;
  501. width: 6rpx;
  502. background-color: #C39A58;
  503. }
  504. }
  505. .desc{
  506. margin-top: 15rpx;
  507. font-size: 28upx;
  508. font-family: PingFang SC;
  509. color: #9a9a9c;
  510. }
  511. }
  512. .drug-box{
  513. background-color: #fff;
  514. padding: 20rpx;
  515. margin-top: 10rpx;
  516. .title-box{
  517. display: flex;
  518. flex-direction: row;
  519. align-items: center;
  520. justify-content: flex-start;
  521. .title{
  522. font-size: 32upx;
  523. font-family: PingFang SC;
  524. font-weight: bold;
  525. color: #111111;
  526. }
  527. .line{
  528. margin-right: 15rpx;
  529. height: 30rpx;
  530. width: 6rpx;
  531. background-color: #C39A58;
  532. }
  533. }
  534. .drug-list{
  535. margin-top: 15rpx;
  536. .drug-item{
  537. .drug{
  538. padding-bottom: 15upx;
  539. border-bottom: 1px soli #F0F0F0;
  540. display: flex;
  541. align-items: center;
  542. .img-box{
  543. width: 160upx;
  544. height: 160upx;
  545. margin-right: 30upx;
  546. flex-shrink: 0;
  547. image{
  548. width: 100%;
  549. height: 100%;
  550. }
  551. }
  552. .drug-info{
  553. width: calc(100% - 190upx);
  554. height: 160upx;
  555. display: flex;
  556. flex-direction: column;
  557. justify-content: space-between;
  558. .name-box{
  559. font-size: 28upx;
  560. font-family: PingFang SC;
  561. font-weight: 500;
  562. color: #111111;
  563. line-height: 40upx;
  564. .tag{
  565. display: inline-block;
  566. padding: 0 6upx;
  567. height: 30upx;
  568. background: linear-gradient(90deg, #2BC7B9 0%, #2BC7A4 100%);
  569. border-radius: 4upx;
  570. margin-right: 10upx;
  571. font-size: 22upx;
  572. font-family: PingFang SC;
  573. font-weight: bold;
  574. color: #FFFFFF;
  575. line-height: 30upx;
  576. float: left;
  577. margin-top: 7upx;
  578. }
  579. }
  580. .spec{
  581. font-size: 24upx;
  582. font-family: PingFang SC;
  583. font-weight: 500;
  584. color: #999999;
  585. line-height: 1;
  586. margin-top: 10upx;
  587. }
  588. .num-box{
  589. display: flex;
  590. align-items: center;
  591. justify-content: space-between;
  592. .price{
  593. display: flex;
  594. align-items: flex-end;
  595. .unit{
  596. font-size: 24upx;
  597. font-family: PingFang SC;
  598. font-weight: 500;
  599. color: #111111;
  600. line-height: 1.2;
  601. margin-right: 4upx;
  602. }
  603. .num{
  604. font-size: 32upx;
  605. font-family: PingFang SC;
  606. font-weight: 500;
  607. color: #111111;
  608. line-height: 1;
  609. }
  610. }
  611. .use{
  612. font-size: 24upx;
  613. font-family: PingFang SC;
  614. color: #999999;
  615. }
  616. .amount{
  617. font-size: 24upx;
  618. font-family: PingFang SC;
  619. font-weight: 500;
  620. color: #999999;
  621. line-height: 1;
  622. }
  623. }
  624. }
  625. }
  626. }
  627. }
  628. .display-more{
  629. font-size: 24upx;
  630. font-family: PingFang SC;
  631. font-weight: 500;
  632. color: #999999;
  633. display: flex;
  634. align-items: center;
  635. justify-content: center;
  636. }
  637. }
  638. }
  639. }
  640. .btn-foot{
  641. box-sizing: border-box;
  642. width: 100%;
  643. height: 121upx;
  644. background: #FFFFFF;
  645. padding: 0 32upx 0 28upx;
  646. display: flex;
  647. align-items: center;
  648. justify-content: space-between;
  649. position: fixed;
  650. left: 0;
  651. bottom: 0;
  652. z-index: 99;
  653. .p-price-box{
  654. display: flex;
  655. align-items: center;
  656. .p-name{
  657. font-size: 28upx;
  658. font-family: PingFang SC;
  659. font-weight: 500;
  660. color: #FF6633;
  661. }
  662. .p-price{
  663. margin-left: 10rpx;
  664. color: #FF6633;
  665. font-size: 32upx;
  666. font-family: PingFang SC;
  667. font-weight: bold;
  668. }
  669. }
  670. .btn-box{
  671. display: flex;
  672. align-items: center;
  673. .btn{
  674. width: 200upx;
  675. height: 88upx;
  676. line-height: 88upx;
  677. text-align: center;
  678. border-radius: 44upx;
  679. margin-left: 20upx;
  680. font-size: 30upx;
  681. font-family: PingFang SC;
  682. font-weight: bold;
  683. color: #FFFFFF;
  684. &:first-child{
  685. margin-left: 0;
  686. }
  687. &.buy{
  688. background: #C39A58;
  689. }
  690. .contact-btn{
  691. display: inline-block;
  692. position: absolute;
  693. top: 0;
  694. left: 0;
  695. width: 100%;
  696. height: 100%;
  697. opacity: 0;
  698. z-index: 9999;
  699. }
  700. }
  701. }
  702. }
  703. .doctors{
  704. overflow-y: auto;
  705. padding: 20rpx;
  706. height: 650rpx;
  707. width: 100%;
  708. display: flex;
  709. flex-direction: column;
  710. align-items: flex-start;
  711. justify-content: flex-start;
  712. box-sizing: border-box;
  713. .scroll-list{
  714. height: 650upx;
  715. }
  716. .doctor{
  717. width: 100%;
  718. margin-bottom: 15rpx;
  719. background: #f9f8fe;
  720. padding: 20rpx;
  721. display: flex;
  722. flex-direction: column;
  723. align-items: flex-start;
  724. justify-content: flex-start;
  725. &:last-child{
  726. margin-bottom: 0rpx;
  727. }
  728. .item{
  729. width: 100%;
  730. display: flex;
  731. align-items: center;
  732. justify-content: space-between;
  733. .left{
  734. flex: 1;
  735. width: 100%;
  736. display: flex;
  737. align-items: flex-start;
  738. justify-content: flex-start;
  739. .doc-img{
  740. width:80rpx;
  741. height:80rpx;
  742. border-radius: 50%;
  743. }
  744. .right{
  745. width: calc(100% - 100rpx);
  746. margin-left: 20rpx;
  747. display: flex;
  748. flex-direction: column;
  749. align-items: flex-start;
  750. justify-content: flex-start;
  751. .doc-box{
  752. display: flex;
  753. align-items: center;
  754. justify-content: space-between;
  755. .doc-name{
  756. font-size: 28upx;
  757. font-family: PingFang SC;
  758. font-weight: bold;
  759. color: #111111;
  760. }
  761. .doc-position{
  762. margin-left: 50rpx;
  763. font-size: 26upx;
  764. font-family: PingFang SC;
  765. color: #2d2b36;
  766. }
  767. }
  768. .hospital{
  769. margin-top: 10rpx;
  770. font-size: 24upx;
  771. font-family: PingFang SC;
  772. color: #9a9a9c;
  773. }
  774. }
  775. }
  776. .btn{
  777. padding: 10rpx 30rpx;
  778. text-align: center;
  779. border-radius: 30upx;
  780. font-size: 28upx;
  781. font-family: PingFang SC;
  782. color: #C39A58;
  783. border:1rpx solid #C39A58;
  784. }
  785. }
  786. }
  787. }
  788. .goods-banner{
  789. height: 756upx;
  790. background-color: #FFFFFF;
  791. position: relative;
  792. .swiper-item{
  793. box-sizing: border-box;
  794. }
  795. .swiper,
  796. .swiper-item,
  797. .swiper-item image{
  798. width: 100%;
  799. height: 100%;
  800. }
  801. .num-box{
  802. width: 80upx;
  803. height: 44upx;
  804. line-height: 44upx;
  805. text-align: center;
  806. font-size: 24upx;
  807. font-family: PingFang SC;
  808. font-weight: 500;
  809. color: #FFFFFF;
  810. background: rgba(0, 0, 0, .3);
  811. border-radius: 22upx;
  812. position: absolute;
  813. right: 30upx;
  814. bottom: 30upx;
  815. z-index: 10;
  816. }
  817. }
  818. </style>