packageDetails.vue 21 KB

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