packageDetails.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853
  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">
  93. <view class="title-box">
  94. <view class="line"></view>
  95. <view class="title">疗法详情</view>
  96. </view>
  97. <view class="desc" v-html="item.desc">
  98. </view>
  99. </view>
  100. <view class="desc-box" v-if="item.indication!=null">
  101. <view class="title-box">
  102. <view class="line"></view>
  103. <view class="title">功能主治</view>
  104. </view>
  105. <view class="desc" v-if="item!=null" v-html="item.indication">
  106. </view>
  107. </view>
  108. <view class="desc-box" v-if="describe.usageMethod!=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.usageMethod">
  114. </view>
  115. </view>
  116. <view class="desc-box" v-if="describe.forPeople!=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.forPeople">
  122. </view>
  123. </view>
  124. <view class="desc-box" v-if="describe.tabooPeople!=null">
  125. <view class="title-box">
  126. <view class="line"></view>
  127. <view class="title">禁忌人群</view>
  128. </view>
  129. <view class="desc" v-html="describe.tabooPeople">
  130. </view>
  131. </view>
  132. <view class="desc-box" v-if="item.explain!=null">
  133. <view class="title-box">
  134. <view class="line"></view>
  135. <view class="title">方解/搭配优势</view>
  136. </view>
  137. <view class="desc" v-html="item.explain">
  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, 1200);
  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 + 7
  242. if(this.notics.length>2) {
  243. this.boxHeight = this.marginTop * 3 + 4
  244. } else {
  245. this.boxHeight = this.marginTop * this.notics.length + 4
  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: 94px;
  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: 23px;
  385. font-size: 26rpx;
  386. margin-top: 7px;
  387. overflow: hidden;
  388. color: #fff;
  389. .buy-item {
  390. display: inline-flex;
  391. align-items: center;
  392. height: 100%;
  393. line-height: 100%;
  394. overflow: hidden;
  395. background-color: rgba(0, 0, 0, 0.35);
  396. border-radius: 10rpx;
  397. padding: 0 20rpx;
  398. box-sizing: border-box;
  399. word-break: break-all;
  400. white-space: nowrap;
  401. }
  402. .buy-name {
  403. width: 50%;
  404. margin-right: 10rpx;
  405. }
  406. text {
  407. word-break: break-all;
  408. white-space: nowrap;
  409. }
  410. }
  411. .buy-top {
  412. transition: all 0.8s ease-in;
  413. margin-top: -30px;
  414. }
  415. .content{
  416. height: 100%;
  417. display: flex;
  418. flex-direction: column;
  419. .cont-box{
  420. padding-bottom: 121rpx;
  421. .package-box{
  422. background-color: #fff;
  423. padding: 20rpx;
  424. width: 100%;
  425. display: flex;
  426. flex-direction: column;
  427. align-items: flex-start;
  428. justify-content: flex-start;
  429. .title{
  430. font-weight: bold;
  431. font-size: 34upx;
  432. font-family: PingFang SC;
  433. color: #111;
  434. }
  435. .desc{
  436. margin-top: 15rpx;
  437. display: flex;
  438. align-items: flex-start;
  439. justify-content: flex-start;
  440. .cycle{
  441. background-color: #eee;
  442. border-radius: 30rpx;
  443. padding: 5rpx 15rpx;
  444. font-size: 26upx;
  445. font-family: PingFang SC;
  446. color: #C39A58;
  447. }
  448. .duration{
  449. margin-left: 10rpx;
  450. background-color: #eee;
  451. border-radius: 30rpx;
  452. padding: 5rpx 15rpx;
  453. font-size: 26upx;
  454. font-family: PingFang SC;
  455. color: #C39A58;
  456. }
  457. }
  458. .num-box{
  459. margin-top: 15rpx;
  460. flex: 1;
  461. display: flex;
  462. align-items: flex-end;
  463. justify-content: space-between;
  464. width: 100%;
  465. .price-box{
  466. display: flex;
  467. align-items: center;
  468. justify-content: flex-start;
  469. .price{
  470. margin-right: 10rpx;
  471. padding: 5rpx 10rpx;
  472. background-color: #C39A58;
  473. border-radius: 30rpx;
  474. font-size: 20upx;
  475. font-family: PingFang SC;
  476. color: #ffffff;
  477. }
  478. }
  479. .count{
  480. font-size: 24upx;
  481. font-family: PingFang SC;
  482. color: #333333;
  483. }
  484. }
  485. }
  486. .desc-box{
  487. background-color: #fff;
  488. padding: 20rpx;
  489. margin-top: 10rpx;
  490. .title-box{
  491. display: flex;
  492. flex-direction: row;
  493. align-items: center;
  494. justify-content: flex-start;
  495. .title{
  496. font-size: 32upx;
  497. font-family: PingFang SC;
  498. font-weight: bold;
  499. color: #111111;
  500. }
  501. .line{
  502. margin-right: 15rpx;
  503. height: 30rpx;
  504. width: 6rpx;
  505. background-color: #C39A58;
  506. }
  507. }
  508. .desc{
  509. margin-top: 15rpx;
  510. font-size: 28upx;
  511. font-family: PingFang SC;
  512. color: #9a9a9c;
  513. }
  514. }
  515. .drug-box{
  516. background-color: #fff;
  517. padding: 20rpx;
  518. margin-top: 10rpx;
  519. .title-box{
  520. display: flex;
  521. flex-direction: row;
  522. align-items: center;
  523. justify-content: flex-start;
  524. .title{
  525. font-size: 32upx;
  526. font-family: PingFang SC;
  527. font-weight: bold;
  528. color: #111111;
  529. }
  530. .line{
  531. margin-right: 15rpx;
  532. height: 30rpx;
  533. width: 6rpx;
  534. background-color: #C39A58;
  535. }
  536. }
  537. .drug-list{
  538. margin-top: 15rpx;
  539. .drug-item{
  540. .drug{
  541. padding-bottom: 15upx;
  542. border-bottom: 1px soli #F0F0F0;
  543. display: flex;
  544. align-items: center;
  545. .img-box{
  546. width: 160upx;
  547. height: 160upx;
  548. margin-right: 30upx;
  549. flex-shrink: 0;
  550. image{
  551. width: 100%;
  552. height: 100%;
  553. }
  554. }
  555. .drug-info{
  556. width: calc(100% - 190upx);
  557. height: 160upx;
  558. display: flex;
  559. flex-direction: column;
  560. justify-content: space-between;
  561. .name-box{
  562. font-size: 28upx;
  563. font-family: PingFang SC;
  564. font-weight: 500;
  565. color: #111111;
  566. line-height: 40upx;
  567. .tag{
  568. display: inline-block;
  569. padding: 0 6upx;
  570. height: 30upx;
  571. background: linear-gradient(90deg, #2BC7B9 0%, #2BC7A4 100%);
  572. border-radius: 4upx;
  573. margin-right: 10upx;
  574. font-size: 22upx;
  575. font-family: PingFang SC;
  576. font-weight: bold;
  577. color: #FFFFFF;
  578. line-height: 30upx;
  579. float: left;
  580. margin-top: 7upx;
  581. }
  582. }
  583. .spec{
  584. font-size: 24upx;
  585. font-family: PingFang SC;
  586. font-weight: 500;
  587. color: #999999;
  588. line-height: 1;
  589. margin-top: 10upx;
  590. }
  591. .num-box{
  592. display: flex;
  593. align-items: center;
  594. justify-content: space-between;
  595. .price{
  596. display: flex;
  597. align-items: flex-end;
  598. .unit{
  599. font-size: 24upx;
  600. font-family: PingFang SC;
  601. font-weight: 500;
  602. color: #111111;
  603. line-height: 1.2;
  604. margin-right: 4upx;
  605. }
  606. .num{
  607. font-size: 32upx;
  608. font-family: PingFang SC;
  609. font-weight: 500;
  610. color: #111111;
  611. line-height: 1;
  612. }
  613. }
  614. .use{
  615. font-size: 24upx;
  616. font-family: PingFang SC;
  617. color: #999999;
  618. }
  619. .amount{
  620. font-size: 24upx;
  621. font-family: PingFang SC;
  622. font-weight: 500;
  623. color: #999999;
  624. line-height: 1;
  625. }
  626. }
  627. }
  628. }
  629. }
  630. }
  631. .display-more{
  632. font-size: 24upx;
  633. font-family: PingFang SC;
  634. font-weight: 500;
  635. color: #999999;
  636. display: flex;
  637. align-items: center;
  638. justify-content: center;
  639. }
  640. }
  641. }
  642. }
  643. .btn-foot{
  644. box-sizing: border-box;
  645. width: 100%;
  646. height: 121upx;
  647. background: #FFFFFF;
  648. padding: 0 32upx 0 28upx;
  649. display: flex;
  650. align-items: center;
  651. justify-content: space-between;
  652. position: fixed;
  653. left: 0;
  654. bottom: 0;
  655. z-index: 99;
  656. .p-price-box{
  657. display: flex;
  658. align-items: center;
  659. .p-name{
  660. font-size: 28upx;
  661. font-family: PingFang SC;
  662. font-weight: 500;
  663. color: #FF6633;
  664. }
  665. .p-price{
  666. margin-left: 10rpx;
  667. color: #FF6633;
  668. font-size: 32upx;
  669. font-family: PingFang SC;
  670. font-weight: bold;
  671. }
  672. }
  673. .btn-box{
  674. display: flex;
  675. align-items: center;
  676. .btn{
  677. width: 200upx;
  678. height: 88upx;
  679. line-height: 88upx;
  680. text-align: center;
  681. border-radius: 44upx;
  682. margin-left: 20upx;
  683. font-size: 30upx;
  684. font-family: PingFang SC;
  685. font-weight: bold;
  686. color: #FFFFFF;
  687. &:first-child{
  688. margin-left: 0;
  689. }
  690. &.buy{
  691. background: #C39A58;
  692. }
  693. .contact-btn{
  694. display: inline-block;
  695. position: absolute;
  696. top: 0;
  697. left: 0;
  698. width: 100%;
  699. height: 100%;
  700. opacity: 0;
  701. z-index: 9999;
  702. }
  703. }
  704. }
  705. }
  706. .doctors{
  707. overflow-y: auto;
  708. padding: 20rpx;
  709. height: 650rpx;
  710. width: 100%;
  711. display: flex;
  712. flex-direction: column;
  713. align-items: flex-start;
  714. justify-content: flex-start;
  715. box-sizing: border-box;
  716. .scroll-list{
  717. height: 650upx;
  718. }
  719. .doctor{
  720. width: 100%;
  721. margin-bottom: 15rpx;
  722. background: #f9f8fe;
  723. padding: 20rpx;
  724. display: flex;
  725. flex-direction: column;
  726. align-items: flex-start;
  727. justify-content: flex-start;
  728. &:last-child{
  729. margin-bottom: 0rpx;
  730. }
  731. .item{
  732. width: 100%;
  733. display: flex;
  734. align-items: center;
  735. justify-content: space-between;
  736. .left{
  737. flex: 1;
  738. width: 100%;
  739. display: flex;
  740. align-items: flex-start;
  741. justify-content: flex-start;
  742. .doc-img{
  743. width:80rpx;
  744. height:80rpx;
  745. border-radius: 50%;
  746. }
  747. .right{
  748. width: calc(100% - 100rpx);
  749. margin-left: 20rpx;
  750. display: flex;
  751. flex-direction: column;
  752. align-items: flex-start;
  753. justify-content: flex-start;
  754. .doc-box{
  755. display: flex;
  756. align-items: center;
  757. justify-content: space-between;
  758. .doc-name{
  759. font-size: 28upx;
  760. font-family: PingFang SC;
  761. font-weight: bold;
  762. color: #111111;
  763. }
  764. .doc-position{
  765. margin-left: 50rpx;
  766. font-size: 26upx;
  767. font-family: PingFang SC;
  768. color: #2d2b36;
  769. }
  770. }
  771. .hospital{
  772. margin-top: 10rpx;
  773. font-size: 24upx;
  774. font-family: PingFang SC;
  775. color: #9a9a9c;
  776. }
  777. }
  778. }
  779. .btn{
  780. padding: 10rpx 30rpx;
  781. text-align: center;
  782. border-radius: 30upx;
  783. font-size: 28upx;
  784. font-family: PingFang SC;
  785. color: #C39A58;
  786. border:1rpx solid #C39A58;
  787. }
  788. }
  789. }
  790. }
  791. .goods-banner{
  792. height: 756upx;
  793. background-color: #FFFFFF;
  794. position: relative;
  795. .swiper-item{
  796. box-sizing: border-box;
  797. }
  798. .swiper,
  799. .swiper-item,
  800. .swiper-item image{
  801. width: 100%;
  802. height: 100%;
  803. }
  804. .num-box{
  805. width: 80upx;
  806. height: 44upx;
  807. line-height: 44upx;
  808. text-align: center;
  809. font-size: 24upx;
  810. font-family: PingFang SC;
  811. font-weight: 500;
  812. color: #FFFFFF;
  813. background: rgba(0, 0, 0, .3);
  814. border-radius: 22upx;
  815. position: absolute;
  816. right: 30upx;
  817. bottom: 30upx;
  818. z-index: 10;
  819. }
  820. }
  821. </style>