packageDetails.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878
  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" @click.stop="doShare(item)">
  148. 分享
  149. <!-- <button class="contact-btn" data-name="shareBtn" open-type="share">分享</button> -->
  150. </view>
  151. </view>
  152. </view>
  153. <!-- 分享弹窗 -->
  154. <u-popup :show="showShare" @close="showShare = false" >
  155. <share-box :shareItem="shareItem" @closeShare='showShare = false' ></share-box>
  156. </u-popup>
  157. </view>
  158. </template>
  159. <script>
  160. import { caculateTimeago } from '@/utils/tools.js';
  161. import {getConfigByKey} from '@/api/common.js'
  162. import {getPackageById,getPackageDoctorList,getNewOrderByPackageId} from '@/api/package.js'
  163. export default {
  164. data() {
  165. return {
  166. displayText:"查看更多",
  167. displayMore:0,
  168. imgs:[],
  169. activeImg: 1,
  170. doctorShow:false,
  171. doctors:[],
  172. products:[],
  173. packageId:null,
  174. item:{},
  175. describe:null,
  176. doctorId:null,
  177. doctorPageNum:1,
  178. doctorLastPage:false,
  179. doctorTotal:0,
  180. showShare:false,
  181. isH5:false,
  182. shareItem:{ imageUrl:"",title:"",path:""},
  183. boxHeight: 94,
  184. marginTop: 30,
  185. animate:false,
  186. timer:null,
  187. notics:[],
  188. };
  189. },
  190. onLoad(option) {
  191. this.packageId=option.packageId;
  192. this.companyId=uni.getStorageSync('companyId');
  193. this.companyUserId=uni.getStorageSync('companyUserId');
  194. },
  195. onShow() {
  196. //#ifdef H5
  197. this.isH5=true;
  198. //#endif
  199. this.getPackageById();
  200. this.getPackageDoctorList();
  201. },
  202. onShareAppMessage(res) {
  203. return {
  204. title: this.item.packageName,
  205. path: '/pages/store/packageDetails?packageId='+this.packageId+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId,
  206. imageUrl: this.item.imgUrl //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  207. }
  208. },
  209. onReady() {
  210. this.getNewOrderByPackageId()
  211. },
  212. onUnload() {
  213. if(this.timer) clearInterval(this.timer)
  214. },
  215. methods:{
  216. scroll() {
  217. this.animate = true;
  218. setTimeout(() => {
  219. this.notics.push(this.notics[0]);
  220. this.notics.shift();
  221. this.animate = false;
  222. }, 1000);
  223. },
  224. getText() {
  225. const query = uni.createSelectorQuery().in(this);
  226. query
  227. .select(".buy-txtbox")
  228. .boundingClientRect((data) => {
  229. this.marginTop = data.height + 7
  230. if(this.notics.length>2) {
  231. this.boxHeight = this.marginTop * 3 + 4
  232. } else {
  233. this.boxHeight = this.marginTop * this.notics.length + 4
  234. }
  235. })
  236. .exec();
  237. },
  238. getNewOrderByPackageId() {
  239. if(this.timer) clearInterval(this.timer)
  240. getNewOrderByPackageId({packageId:this.packageId}).then(res=>{
  241. if(res.code== 200) {
  242. this.notics = res.data
  243. if(res.data&&res.data.length > 0) {
  244. this.notics = res.data.map(item=>({
  245. ...item,
  246. timeTxt: caculateTimeago(new Date(item.payTime).getTime(),1)
  247. }))
  248. this.$nextTick(()=>{
  249. this.getText()
  250. this.timer = setInterval(this.scroll, 1200);
  251. })
  252. }
  253. } else {
  254. this.notics = []
  255. }
  256. })
  257. },
  258. showMore(){
  259. this.displayMore=this.displayMore==1?0:1;
  260. this.displayText=this.displayMore==1?'收起':'查看更多'
  261. console.log(this.displayText)
  262. },
  263. swiperChange(event) {
  264. this.activeImg = event.detail.current + 1
  265. },
  266. handleDoctorClick(item){
  267. this.doctorShow=false;
  268. this.doctorId=item.doctorId
  269. uni.navigateTo({
  270. url:"/pages/store/packageForm?packageId="+this.packageId+"&doctorId="+this.doctorId
  271. })
  272. },
  273. lower(event) {
  274. if(this.doctorTotal>this.doctors.length){
  275. this.doctorPageNum++;
  276. this.getPackageDoctorList();
  277. }
  278. },
  279. doctorOpen(){
  280. this.doctorShow=true;
  281. },
  282. doctorClose(){
  283. this.doctorShow=false;
  284. },
  285. showImg() {
  286. //预览图片
  287. uni.previewImage({
  288. urls: this.imgs,
  289. current: this.imgs[0]
  290. });
  291. },
  292. getPackageDoctorList(){
  293. if(this.doctorLastPage){
  294. return;
  295. }
  296. var data = {
  297. packageId:this.packageId,
  298. pageNum: this.doctorPageNum,
  299. pageSize: 10
  300. };
  301. var that=this;
  302. getPackageDoctorList(data).then(
  303. res => {
  304. if(res.code==200){
  305. //设置列表数据
  306. if (this.doctorPageNum == 0) {
  307. that.doctors = res.data.list;
  308. } else {
  309. that.doctors = that.doctors.concat(res.data.list);
  310. }
  311. this.doctorLastPage=res.data.isLastPage;
  312. this.doctorTotal=res.data.total
  313. }else{
  314. uni.showToast({
  315. icon:'none',
  316. title: "请求失败",
  317. });
  318. }
  319. },
  320. rej => {}
  321. );
  322. },
  323. getPackageById(){
  324. let data = {packageId:this.packageId};
  325. getPackageById(data).then(
  326. res => {
  327. if(res.code==200){
  328. this.item=res.data;
  329. if(res.data.images!=null){
  330. this.imgs=res.data.images.split(",")
  331. }
  332. else{
  333. this.activeImg=0;
  334. }
  335. this.describe=JSON.parse(this.item.describeJson);
  336. if(this.item.productJson!=null){
  337. this.products=JSON.parse(this.item.productJson);
  338. }
  339. // console.log(this.imgs)
  340. }else{
  341. uni.showToast({
  342. icon:'none',
  343. title: "请求失败",
  344. });
  345. }
  346. },
  347. rej => {}
  348. );
  349. },
  350. doShare(item){
  351. if(this.isH5){
  352. return;
  353. }
  354. this.getConfigByKey()
  355. },
  356. getConfigByKey(){
  357. let param = {key:"app.config"};
  358. getConfigByKey(param).then(
  359. res => {
  360. if(res.code==200){
  361. let data=res.data ? JSON.parse(res.data) : {};
  362. const fsPackage = data.fsPackage&&data.fsPackage.length > 0 ? data.fsPackage[0] : {}
  363. this.getShareItem(this.item,fsPackage.packageId)
  364. }else{
  365. uni.showToast({
  366. icon:'none',
  367. title: "请求失败",
  368. });
  369. }
  370. },
  371. rej => {}
  372. );
  373. },
  374. getShareItem(item,packageId) {
  375. this.shareItem.title=item.packageName;
  376. this.shareItem.imageUrl=item.imgUrl;
  377. this.shareItem.compressImage = 1;
  378. this.shareItem.summary=!this.$isEmpty(item.description)?item.description:"";
  379. let cdn=uni.getStorageSync('h5Path');
  380. this.shareItem.isMini=true;
  381. if(packageId && packageId == this.packageId) {
  382. this.shareItem.url=cdn+"/pages/store/packageDetails?choose=2&packageId="+this.packageId+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId;
  383. this.shareItem.path="/pages_index/packageDetails?choose=2&packageId="+this.packageId+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId;
  384. } else {
  385. this.shareItem.url=cdn+"/pages/store/packageDetails?packageId="+this.packageId+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId;
  386. this.shareItem.path="/pages_index/packageDetails?packageId="+this.packageId+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId;
  387. }
  388. this.showShare=true;
  389. }
  390. }
  391. }
  392. </script>
  393. <style lang="scss">
  394. page{
  395. height: 100%;
  396. }
  397. .buy-lists{
  398. height: 94px;
  399. background-color:transparent;
  400. overflow: hidden;
  401. width: 60%;
  402. position: absolute;
  403. z-index: 99;
  404. top: 20vh;
  405. left: 20rpx;
  406. }
  407. .buy-list{
  408. height: 23px;
  409. font-size: 26rpx;
  410. margin-top: 7px;
  411. overflow: hidden;
  412. color: #fff;
  413. .buy-item {
  414. display: inline-flex;
  415. align-items: center;
  416. height: 100%;
  417. line-height: 100%;
  418. overflow: hidden;
  419. background-color: rgba(0, 0, 0, 0.35);
  420. border-radius: 10rpx;
  421. padding: 0 20rpx;
  422. box-sizing: border-box;
  423. word-break: break-all;
  424. white-space: nowrap;
  425. }
  426. .buy-name {
  427. width: 50%;
  428. margin-right: 10rpx;
  429. }
  430. text {
  431. word-break: break-all;
  432. white-space: nowrap;
  433. }
  434. }
  435. .buy-top {
  436. transition: all 0.8s ease-in;
  437. margin-top: -30px;
  438. }
  439. .content{
  440. height: 100%;
  441. display: flex;
  442. flex-direction: column;
  443. .cont-box{
  444. padding-bottom: 121rpx;
  445. .package-box{
  446. background-color: #fff;
  447. padding: 20rpx;
  448. width: 100%;
  449. display: flex;
  450. flex-direction: column;
  451. align-items: flex-start;
  452. justify-content: flex-start;
  453. .title{
  454. font-weight: bold;
  455. font-size: 34upx;
  456. font-family: PingFang SC;
  457. color: #111;
  458. }
  459. .desc{
  460. margin-top: 15rpx;
  461. display: flex;
  462. align-items: flex-start;
  463. justify-content: flex-start;
  464. .cycle{
  465. background-color: #eee;
  466. border-radius: 30rpx;
  467. padding: 5rpx 15rpx;
  468. font-size: 26upx;
  469. font-family: PingFang SC;
  470. color: #FF5030;
  471. }
  472. .duration{
  473. margin-left: 10rpx;
  474. background-color: #eee;
  475. border-radius: 30rpx;
  476. padding: 5rpx 15rpx;
  477. font-size: 26upx;
  478. font-family: PingFang SC;
  479. color: #FF5030;
  480. }
  481. }
  482. .num-box{
  483. margin-top: 15rpx;
  484. flex: 1;
  485. display: flex;
  486. align-items: flex-end;
  487. justify-content: space-between;
  488. width: 100%;
  489. .price-box{
  490. display: flex;
  491. align-items: center;
  492. justify-content: flex-start;
  493. .price{
  494. margin-right: 10rpx;
  495. padding: 5rpx 10rpx;
  496. background-color: #FF5030;
  497. border-radius: 30rpx;
  498. font-size: 20upx;
  499. font-family: PingFang SC;
  500. color: #ffffff;
  501. }
  502. }
  503. .count{
  504. font-size: 24upx;
  505. font-family: PingFang SC;
  506. color: #333333;
  507. }
  508. }
  509. }
  510. .desc-box{
  511. background-color: #fff;
  512. padding: 20rpx;
  513. margin-top: 10rpx;
  514. .title-box{
  515. display: flex;
  516. flex-direction: row;
  517. align-items: center;
  518. justify-content: flex-start;
  519. .title{
  520. font-size: 32upx;
  521. font-family: PingFang SC;
  522. font-weight: bold;
  523. color: #111111;
  524. }
  525. .line{
  526. margin-right: 15rpx;
  527. height: 30rpx;
  528. width: 6rpx;
  529. background-color: #FF5030;
  530. }
  531. }
  532. .desc{
  533. margin-top: 15rpx;
  534. font-size: 28upx;
  535. font-family: PingFang SC;
  536. color: #9a9a9c;
  537. }
  538. }
  539. .drug-box{
  540. background-color: #fff;
  541. padding: 20rpx;
  542. margin-top: 10rpx;
  543. .title-box{
  544. display: flex;
  545. flex-direction: row;
  546. align-items: center;
  547. justify-content: flex-start;
  548. .title{
  549. font-size: 32upx;
  550. font-family: PingFang SC;
  551. font-weight: bold;
  552. color: #111111;
  553. }
  554. .line{
  555. margin-right: 15rpx;
  556. height: 30rpx;
  557. width: 6rpx;
  558. background-color: #FF5030;
  559. }
  560. }
  561. .drug-list{
  562. margin-top: 15rpx;
  563. .drug-item{
  564. .drug{
  565. padding-bottom: 15upx;
  566. border-bottom: 1px soli #F0F0F0;
  567. display: flex;
  568. align-items: center;
  569. .img-box{
  570. width: 160upx;
  571. height: 160upx;
  572. margin-right: 30upx;
  573. flex-shrink: 0;
  574. image{
  575. width: 100%;
  576. height: 100%;
  577. }
  578. }
  579. .drug-info{
  580. width: calc(100% - 190upx);
  581. height: 160upx;
  582. display: flex;
  583. flex-direction: column;
  584. justify-content: space-between;
  585. .name-box{
  586. font-size: 28upx;
  587. font-family: PingFang SC;
  588. font-weight: 500;
  589. color: #111111;
  590. line-height: 40upx;
  591. .tag{
  592. display: inline-block;
  593. padding: 0 6upx;
  594. height: 30upx;
  595. background: linear-gradient(90deg, #2BC7B9 0%, #2BC7A4 100%);
  596. border-radius: 4upx;
  597. margin-right: 10upx;
  598. font-size: 22upx;
  599. font-family: PingFang SC;
  600. font-weight: bold;
  601. color: #FFFFFF;
  602. line-height: 30upx;
  603. float: left;
  604. margin-top: 7upx;
  605. }
  606. }
  607. .spec{
  608. font-size: 24upx;
  609. font-family: PingFang SC;
  610. font-weight: 500;
  611. color: #999999;
  612. line-height: 1;
  613. margin-top: 10upx;
  614. }
  615. .num-box{
  616. display: flex;
  617. align-items: center;
  618. justify-content: space-between;
  619. .price{
  620. display: flex;
  621. align-items: flex-end;
  622. .unit{
  623. font-size: 24upx;
  624. font-family: PingFang SC;
  625. font-weight: 500;
  626. color: #111111;
  627. line-height: 1.2;
  628. margin-right: 4upx;
  629. }
  630. .num{
  631. font-size: 32upx;
  632. font-family: PingFang SC;
  633. font-weight: 500;
  634. color: #111111;
  635. line-height: 1;
  636. }
  637. }
  638. .use{
  639. font-size: 24upx;
  640. font-family: PingFang SC;
  641. color: #999999;
  642. }
  643. .amount{
  644. font-size: 24upx;
  645. font-family: PingFang SC;
  646. font-weight: 500;
  647. color: #999999;
  648. line-height: 1;
  649. }
  650. }
  651. }
  652. }
  653. }
  654. }
  655. .display-more{
  656. font-size: 24upx;
  657. font-family: PingFang SC;
  658. font-weight: 500;
  659. color: #999999;
  660. display: flex;
  661. align-items: center;
  662. justify-content: center;
  663. }
  664. }
  665. }
  666. }
  667. .btn-foot{
  668. box-sizing: border-box;
  669. width: 100%;
  670. height: 121upx;
  671. background: #FFFFFF;
  672. padding: 0 32upx 0 28upx;
  673. display: flex;
  674. align-items: center;
  675. justify-content: space-between;
  676. position: fixed;
  677. left: 0;
  678. bottom: 0;
  679. z-index: 99;
  680. .p-price-box{
  681. display: flex;
  682. align-items: center;
  683. .p-name{
  684. font-size: 28upx;
  685. font-family: PingFang SC;
  686. font-weight: 500;
  687. color: #FF6633;
  688. }
  689. .p-price{
  690. margin-left: 10rpx;
  691. color: #FF6633;
  692. font-size: 32upx;
  693. font-family: PingFang SC;
  694. font-weight: bold;
  695. }
  696. }
  697. .btn-box{
  698. display: flex;
  699. align-items: center;
  700. .btn{
  701. width: 200upx;
  702. height: 88upx;
  703. line-height: 88upx;
  704. text-align: center;
  705. border-radius: 44upx;
  706. margin-left: 20upx;
  707. font-size: 30upx;
  708. font-family: PingFang SC;
  709. font-weight: bold;
  710. color: #FFFFFF;
  711. &:first-child{
  712. margin-left: 0;
  713. }
  714. &.buy{
  715. background: #FF5030;
  716. }
  717. .contact-btn{
  718. display: inline-block;
  719. position: absolute;
  720. top: 0;
  721. left: 0;
  722. width: 100%;
  723. height: 100%;
  724. opacity: 0;
  725. z-index: 9999;
  726. }
  727. }
  728. }
  729. }
  730. .doctors{
  731. overflow-y: auto;
  732. padding: 20rpx;
  733. height: 650rpx;
  734. width: 100%;
  735. display: flex;
  736. flex-direction: column;
  737. align-items: flex-start;
  738. justify-content: flex-start;
  739. box-sizing: border-box;
  740. .scroll-list{
  741. height: 650upx;
  742. }
  743. .doctor{
  744. width: 100%;
  745. margin-bottom: 15rpx;
  746. background: #f9f8fe;
  747. padding: 20rpx;
  748. display: flex;
  749. flex-direction: column;
  750. align-items: flex-start;
  751. justify-content: flex-start;
  752. &:last-child{
  753. margin-bottom: 0rpx;
  754. }
  755. .item{
  756. width: 100%;
  757. display: flex;
  758. align-items: center;
  759. justify-content: space-between;
  760. .left{
  761. flex: 1;
  762. width: 100%;
  763. display: flex;
  764. align-items: flex-start;
  765. justify-content: flex-start;
  766. .doc-img{
  767. width:80rpx;
  768. height:80rpx;
  769. border-radius: 50%;
  770. }
  771. .right{
  772. width: calc(100% - 100rpx);
  773. margin-left: 20rpx;
  774. display: flex;
  775. flex-direction: column;
  776. align-items: flex-start;
  777. justify-content: flex-start;
  778. .doc-box{
  779. display: flex;
  780. align-items: center;
  781. justify-content: space-between;
  782. .doc-name{
  783. font-size: 28upx;
  784. font-family: PingFang SC;
  785. font-weight: bold;
  786. color: #111111;
  787. }
  788. .doc-position{
  789. margin-left: 50rpx;
  790. font-size: 26upx;
  791. font-family: PingFang SC;
  792. color: #2d2b36;
  793. }
  794. }
  795. .hospital{
  796. margin-top: 10rpx;
  797. font-size: 24upx;
  798. font-family: PingFang SC;
  799. color: #9a9a9c;
  800. }
  801. }
  802. }
  803. .btn{
  804. padding: 10rpx 30rpx;
  805. text-align: center;
  806. border-radius: 30upx;
  807. font-size: 28upx;
  808. font-family: PingFang SC;
  809. color: #FF5030;
  810. border:1rpx solid #FF5030;
  811. }
  812. }
  813. }
  814. }
  815. .goods-banner{
  816. height: 756upx;
  817. background-color: #FFFFFF;
  818. position: relative;
  819. .swiper-item{
  820. box-sizing: border-box;
  821. }
  822. .swiper,
  823. .swiper-item,
  824. .swiper-item image{
  825. width: 100%;
  826. height: 100%;
  827. }
  828. .num-box{
  829. width: 80upx;
  830. height: 44upx;
  831. line-height: 44upx;
  832. text-align: center;
  833. font-size: 24upx;
  834. font-family: PingFang SC;
  835. font-weight: 500;
  836. color: #FFFFFF;
  837. background: rgba(0, 0, 0, .3);
  838. border-radius: 22upx;
  839. position: absolute;
  840. right: 30upx;
  841. bottom: 30upx;
  842. z-index: 10;
  843. }
  844. }
  845. </style>