packageDetails.vue 21 KB

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