packageDetails.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934
  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. choose: 0
  204. };
  205. },
  206. onLoad(option) {
  207. this.packageId=option.packageId;
  208. this.choose = option.choose || 0
  209. if(!this.$isEmpty(option.companyId)){
  210. this.companyId=option.companyId
  211. }
  212. if(!this.$isEmpty(option.companyUserId)){
  213. this.companyUserId=option.companyUserId
  214. }
  215. },
  216. onShow() {
  217. var that=this;
  218. this.$isLogin().then(
  219. res => {
  220. if(res){
  221. var data = {companyUserId:this.companyUserId};
  222. bindCompanyUser(data).then(
  223. res => {
  224. if(res.code==200){
  225. }
  226. },
  227. rej => {}
  228. );
  229. //获取订单数
  230. data = {};
  231. getOrderCount(data).then(
  232. res => {
  233. if(res.code==200){
  234. that.orderCount=res.count;
  235. }
  236. },
  237. rej => {}
  238. );
  239. }
  240. else{
  241. uni.navigateTo({
  242. url:'/pages/auth/login'
  243. })
  244. }
  245. }
  246. );
  247. this.getPackageById();
  248. this.getPackageDoctorList();
  249. },
  250. onShareAppMessage(res) {
  251. return {
  252. title: this.item.packageName,
  253. path: '/pages_index/packageDetails?packageId='+this.packageId+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId+"&choose="+this.choose || '',
  254. imageUrl: this.item.imgUrl //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  255. }
  256. },
  257. methods:{
  258. closeOrder(){
  259. this.messageShow=false;
  260. },
  261. showOrder(){
  262. uni.navigateTo({
  263. url:'/pages_order/packageOrderList?status=1'
  264. })
  265. },
  266. showMore(){
  267. this.displayMore=this.displayMore==1?0:1;
  268. this.displayText=this.displayMore==1?'收起':'查看更多'
  269. console.log(this.displayText)
  270. },
  271. swiperChange(event) {
  272. this.activeImg = event.detail.current + 1
  273. },
  274. handleDoctorClick(item){
  275. this.doctorShow=false;
  276. this.doctorId=item.doctorId
  277. this.doSubmit();
  278. },
  279. lower(event) {
  280. if(this.doctorTotal>this.doctors.length){
  281. this.doctorPageNum++;
  282. this.getPackageDoctorList();
  283. }
  284. },
  285. doSubmit(){
  286. var that=this
  287. this.$isLogin().then(
  288. res => {
  289. if(res){
  290. that.submit();
  291. }
  292. else{
  293. uni.navigateTo({
  294. url:'/pages/auth/login'
  295. })
  296. }
  297. }
  298. );
  299. },
  300. submit(){
  301. if(this.doctors.length>0&&this.doctorId==null){
  302. this.doctorShow=true;
  303. }
  304. else{
  305. uni.navigateTo({
  306. url:"/pages_index/packageForm?packageId="+this.packageId+"&doctorId="+this.doctorId+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId+"&choose="+this.choose || '',
  307. })
  308. // if(this.isDrug==1){
  309. // }
  310. // else{
  311. // this.createOrder();
  312. // }
  313. }
  314. },
  315. createOrder(){
  316. uni.showLoading({
  317. title:"处理中..."
  318. })
  319. var data={
  320. companyId:this.companyId,
  321. companyUserId:this.companyUserId,
  322. packageId:this.packageId,
  323. doctorId:this.doctorId,
  324. }
  325. var that=this;
  326. create(data).then(res => {
  327. uni.hideLoading()
  328. if(res.code==200){
  329. uni.navigateTo({
  330. url: '/pages_order/packageOrderPay?orderId='+res.order.orderId
  331. })
  332. }else{
  333. uni.showToast({
  334. icon:'none',
  335. title: res.msg,
  336. });
  337. }
  338. });
  339. },
  340. doctorOpen(){
  341. this.doctorShow=true;
  342. },
  343. doctorClose(){
  344. this.doctorShow=false;
  345. },
  346. showImg() {
  347. //预览图片
  348. uni.previewImage({
  349. urls: this.imgs,
  350. current: this.imgs[0]
  351. });
  352. },
  353. getPackageDoctorList(){
  354. if(this.doctorLastPage){
  355. return;
  356. }
  357. var data = {
  358. packageId:this.packageId,
  359. pageNum: this.doctorPageNum,
  360. pageSize: 10
  361. };
  362. var that=this;
  363. getPackageDoctorList(data).then(
  364. res => {
  365. if(res.code==200){
  366. //设置列表数据
  367. if (this.doctorPageNum == 0) {
  368. that.doctors = res.data.list;
  369. } else {
  370. that.doctors = that.doctors.concat(res.data.list);
  371. }
  372. this.doctorLastPage=res.data.isLastPage;
  373. this.doctorTotal=res.data.total
  374. console.log(that.doctors)
  375. }else{
  376. uni.showToast({
  377. icon:'none',
  378. title: "请求失败",
  379. });
  380. }
  381. },
  382. rej => {}
  383. );
  384. },
  385. getPackageById(){
  386. var that=this;
  387. let data = {packageId:this.packageId};
  388. getPackageById(data).then(
  389. res => {
  390. if(res.code==200){
  391. this.item=res.data;
  392. this.storeName=res.storeName;
  393. if(res.data.images!=null){
  394. this.imgs=res.data.images.split(",")
  395. }
  396. else{
  397. this.activeImg=0;
  398. }
  399. this.describe=JSON.parse(this.item.describeJson);
  400. if(this.item.productJson!=null){
  401. this.products=JSON.parse(this.item.productJson);
  402. // this.isDrug=0;
  403. // this.products.forEach(function(element) {
  404. // if(element.isDrug!=null&&element.isDrug==1){
  405. // that.isDrug=1;
  406. // }
  407. // });
  408. }
  409. console.log(this.imgs)
  410. }else{
  411. uni.showToast({
  412. icon:'none',
  413. title: "请求失败",
  414. });
  415. }
  416. },
  417. rej => {}
  418. );
  419. },
  420. }
  421. }
  422. </script>
  423. <style lang="scss">
  424. page{
  425. height: 100%;
  426. }
  427. .content{
  428. height: 100%;
  429. display: flex;
  430. flex-direction: column;
  431. .cont-box{
  432. padding-bottom: 121rpx;
  433. .package-box{
  434. background-color: #fff;
  435. padding: 20rpx;
  436. width: 100%;
  437. display: flex;
  438. flex-direction: column;
  439. align-items: flex-start;
  440. justify-content: flex-start;
  441. .title{
  442. font-weight: bold;
  443. font-size: 34upx;
  444. font-family: PingFang SC;
  445. color: #111;
  446. }
  447. .desc{
  448. margin-top: 15rpx;
  449. display: flex;
  450. align-items: flex-start;
  451. justify-content: flex-start;
  452. .cycle{
  453. background-color: #eee;
  454. border-radius: 30rpx;
  455. padding: 5rpx 15rpx;
  456. font-size: 26upx;
  457. font-family: PingFang SC;
  458. color: #C39A58;
  459. }
  460. .duration{
  461. margin-left: 10rpx;
  462. background-color: #eee;
  463. border-radius: 30rpx;
  464. padding: 5rpx 15rpx;
  465. font-size: 26upx;
  466. font-family: PingFang SC;
  467. color: #C39A58;
  468. }
  469. }
  470. .num-box{
  471. margin-top: 15rpx;
  472. flex: 1;
  473. display: flex;
  474. align-items: flex-end;
  475. justify-content: space-between;
  476. width: 100%;
  477. .price-box{
  478. display: flex;
  479. align-items: center;
  480. justify-content: flex-start;
  481. .price{
  482. margin-right: 10rpx;
  483. padding: 5rpx 10rpx;
  484. background-color: #C39A58;
  485. border-radius: 30rpx;
  486. font-size: 20upx;
  487. font-family: PingFang SC;
  488. color: #ffffff;
  489. }
  490. }
  491. .count{
  492. font-size: 24upx;
  493. font-family: PingFang SC;
  494. color: #333333;
  495. }
  496. }
  497. }
  498. .desc-box{
  499. background-color: #fff;
  500. padding: 20rpx;
  501. margin-top: 10rpx;
  502. .title-box{
  503. display: flex;
  504. flex-direction: row;
  505. align-items: center;
  506. justify-content: flex-start;
  507. .title{
  508. font-size: 32upx;
  509. font-family: PingFang SC;
  510. font-weight: bold;
  511. color: #111111;
  512. }
  513. .line{
  514. margin-right: 15rpx;
  515. height: 30rpx;
  516. width: 6rpx;
  517. background-color: #C39A58;
  518. }
  519. }
  520. .desc{
  521. margin-top: 15rpx;
  522. font-size: 28upx;
  523. font-family: PingFang SC;
  524. color: #9a9a9c;
  525. }
  526. .html{
  527. margin-top: 15rpx;
  528. font-size: 0px;
  529. vertical-align: middle;
  530. }
  531. }
  532. .drug-box{
  533. background-color: #fff;
  534. padding: 20rpx;
  535. margin-top: 10rpx;
  536. .title-box{
  537. display: flex;
  538. flex-direction: row;
  539. align-items: center;
  540. justify-content: flex-start;
  541. .title{
  542. font-size: 32upx;
  543. font-family: PingFang SC;
  544. font-weight: bold;
  545. color: #111111;
  546. }
  547. .line{
  548. margin-right: 15rpx;
  549. height: 30rpx;
  550. width: 6rpx;
  551. background-color: #C39A58;
  552. }
  553. }
  554. .drug-list{
  555. margin-top: 15rpx;
  556. .drug-item{
  557. .drug{
  558. padding-bottom: 15upx;
  559. border-bottom: 1px soli #F0F0F0;
  560. display: flex;
  561. align-items: center;
  562. .img-box{
  563. width: 160upx;
  564. height: 160upx;
  565. margin-right: 30upx;
  566. flex-shrink: 0;
  567. image{
  568. width: 100%;
  569. height: 100%;
  570. }
  571. }
  572. .drug-info{
  573. width: calc(100% - 190upx);
  574. height: 160upx;
  575. display: flex;
  576. flex-direction: column;
  577. justify-content: space-between;
  578. .name-box{
  579. font-size: 28upx;
  580. font-family: PingFang SC;
  581. font-weight: 500;
  582. color: #111111;
  583. line-height: 40upx;
  584. .tag{
  585. display: inline-block;
  586. padding: 0 6upx;
  587. height: 30upx;
  588. background: linear-gradient(90deg, #2BC7B9 0%, #2BC7A4 100%);
  589. border-radius: 4upx;
  590. margin-right: 10upx;
  591. font-size: 22upx;
  592. font-family: PingFang SC;
  593. font-weight: bold;
  594. color: #FFFFFF;
  595. line-height: 30upx;
  596. float: left;
  597. margin-top: 7upx;
  598. }
  599. }
  600. .spec{
  601. font-size: 24upx;
  602. font-family: PingFang SC;
  603. font-weight: 500;
  604. color: #999999;
  605. line-height: 1;
  606. margin-top: 10upx;
  607. }
  608. .num-box{
  609. display: flex;
  610. align-items: center;
  611. justify-content: space-between;
  612. .price{
  613. display: flex;
  614. align-items: flex-end;
  615. .unit{
  616. font-size: 24upx;
  617. font-family: PingFang SC;
  618. font-weight: 500;
  619. color: #111111;
  620. line-height: 1.2;
  621. margin-right: 4upx;
  622. }
  623. .num{
  624. font-size: 32upx;
  625. font-family: PingFang SC;
  626. font-weight: 500;
  627. color: #111111;
  628. line-height: 1;
  629. }
  630. }
  631. .use{
  632. font-size: 24upx;
  633. font-family: PingFang SC;
  634. color: #999999;
  635. }
  636. .amount{
  637. font-size: 24upx;
  638. font-family: PingFang SC;
  639. font-weight: 500;
  640. color: #999999;
  641. line-height: 1;
  642. }
  643. }
  644. }
  645. }
  646. }
  647. }
  648. .display-more{
  649. font-size: 24upx;
  650. font-family: PingFang SC;
  651. font-weight: 500;
  652. color: #999999;
  653. display: flex;
  654. align-items: center;
  655. justify-content: center;
  656. }
  657. .tip{
  658. margin-top: 10rpx;
  659. display: flex;
  660. align-items: center;
  661. justify-content: flex-start;
  662. .img{
  663. width: 20rpx;
  664. height:20rpx;
  665. }
  666. .text{
  667. margin-left: 10rpx;
  668. font-size: 26upx;
  669. font-family: PingFang SC;
  670. font-weight: 500;
  671. color: #999999;
  672. }
  673. }
  674. }
  675. }
  676. }
  677. .btn-foot{
  678. box-sizing: border-box;
  679. width: 100%;
  680. height: 121upx;
  681. background: #FFFFFF;
  682. padding: 0 32upx 0 28upx;
  683. display: flex;
  684. align-items: center;
  685. justify-content: space-between;
  686. position: fixed;
  687. left: 0;
  688. bottom: 0;
  689. z-index: 99;
  690. .p-price-box{
  691. display: flex;
  692. align-items: center;
  693. .p-name{
  694. font-size: 28upx;
  695. font-family: PingFang SC;
  696. font-weight: 500;
  697. color: #FF6633;
  698. }
  699. .p-price{
  700. margin-left: 10rpx;
  701. color: #FF6633;
  702. font-size: 38upx;
  703. font-family: PingFang SC;
  704. font-weight: bold;
  705. }
  706. }
  707. .btn-box{
  708. display: flex;
  709. align-items: center;
  710. .btn{
  711. width: 200upx;
  712. height: 88upx;
  713. line-height: 88upx;
  714. text-align: center;
  715. border-radius: 44upx;
  716. margin-left: 20upx;
  717. font-size: 30upx;
  718. font-family: PingFang SC;
  719. font-weight: bold;
  720. color: #FFFFFF;
  721. &:first-child{
  722. margin-left: 0;
  723. }
  724. &.buy{
  725. background: #C39A58;
  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: #C39A58;
  810. border:1rpx solid #C39A58;
  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. .message-box{
  846. box-sizing: border-box;
  847. width: 693upx;
  848. height: 84upx;
  849. background: #ffffff;
  850. opacity: 0.9;
  851. border: 1px solid #E2C99E;
  852. // box-shadow: 0px 4upx 12upx 0px rgba(90, 203, 138, 0.16);
  853. border-radius: 16upx;
  854. position: fixed;
  855. left: 50%;
  856. transform: translateX(-50%);
  857. bottom: 128upx;
  858. z-index: 99;
  859. display: flex;
  860. align-items: center;
  861. justify-content: space-between;
  862. padding: 0 20upx 0 30upx;
  863. .left{
  864. width: 80%;
  865. display: flex;
  866. align-items: center;
  867. image{
  868. width: 24upx;
  869. height: 24upx;
  870. margin-right: 18upx;
  871. }
  872. .text{
  873. width: 90%;
  874. font-size: 28upx;
  875. font-family: PingFang SC;
  876. font-weight: 500;
  877. color: #C39A58;
  878. }
  879. }
  880. .btn{
  881. width: 100upx;
  882. height: 48upx;
  883. line-height: 48upx;
  884. text-align: center;
  885. font-size: 24upx;
  886. font-family: PingFang SC;
  887. font-weight: 500;
  888. color: #FFFFFF;
  889. border: 1px solid #D2E6FF;
  890. background: linear-gradient(135deg, #C39A58 0%, #E2C99E 100%);
  891. border-radius: 24upx;
  892. margin-left: 30upx;
  893. }
  894. }
  895. </style>