packageDetails.vue 24 KB

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