packageDetails.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038
  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="../static/images/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" v-if="item.indication!=null">
  94. <view class="title-box">
  95. <view class="line"></view>
  96. <view class="title">功能主治</view>
  97. </view>
  98. <view class="desc" v-if="item!=null" v-html="item.indication">
  99. </view>
  100. </view>
  101. <view class="desc-box" v-if="describe.usageMethod!=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.usageMethod">
  107. </view>
  108. </view>
  109. <view class="desc-box" v-if="describe.forPeople!=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.forPeople">
  115. </view>
  116. </view>
  117. <view class="desc-box" v-if="describe.tabooPeople!=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.tabooPeople">
  123. </view>
  124. </view>
  125. <view class="desc-box" v-if="item.explain!=null">
  126. <view class="title-box">
  127. <view class="line"></view>
  128. <view class="title">方解/搭配优势</view>
  129. </view>
  130. <view class="desc" v-html="item.explain">
  131. </view>
  132. </view>
  133. <view class="desc-box">
  134. <view class="title-box">
  135. <view class="line"></view>
  136. <view class="title">疗法详情</view>
  137. </view>
  138. <view class="html" v-html="item.desc">
  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="/static/images/close.png" mode="" @click="closeOrder()" ></image>
  179. <view class="text ellipsis">您有{{count}}个待支付订单</view>
  180. </view>
  181. <view class="btn" @click="showOrder()">查看</view>
  182. </view>
  183. </view>
  184. </template>
  185. <script>
  186. import { caculateTimeago } from '@/pages/TUIKit/utils/date.ts';
  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, 1400);
  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 + uni.upx2px(14)
  310. if(this.notics.length>2) {
  311. this.boxHeight = this.marginTop * 3 + uni.upx2px(8)
  312. } else {
  313. this.boxHeight = this.marginTop * this.notics.length + uni.upx2px(8)
  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. // if(this.isDrug==1){
  369. // }
  370. // else{
  371. // this.createOrder();
  372. // }
  373. }
  374. },
  375. createOrder(){
  376. uni.showLoading({
  377. title:"处理中..."
  378. })
  379. var data={
  380. companyId:this.companyId,
  381. companyUserId:this.companyUserId,
  382. packageId:this.packageId,
  383. doctorId:this.doctorId,
  384. }
  385. var that=this;
  386. create(data).then(res => {
  387. uni.hideLoading()
  388. if(res.code==200){
  389. uni.navigateTo({
  390. url: '/pages_order/packageOrderPay?orderId='+res.order.orderId
  391. })
  392. }else{
  393. uni.showToast({
  394. icon:'none',
  395. title: res.msg,
  396. });
  397. }
  398. });
  399. },
  400. doctorOpen(){
  401. this.doctorShow=true;
  402. },
  403. doctorClose(){
  404. this.doctorShow=false;
  405. },
  406. showImg() {
  407. //预览图片
  408. uni.previewImage({
  409. urls: this.imgs,
  410. current: this.imgs[0]
  411. });
  412. },
  413. getPackageDoctorList(){
  414. if(this.doctorLastPage){
  415. return;
  416. }
  417. var data = {
  418. packageId:this.packageId,
  419. pageNum: this.doctorPageNum,
  420. pageSize: 10
  421. };
  422. var that=this;
  423. getPackageDoctorList(data).then(
  424. res => {
  425. if(res.code==200){
  426. //设置列表数据
  427. if (this.doctorPageNum == 0) {
  428. that.doctors = res.data.list;
  429. } else {
  430. that.doctors = that.doctors.concat(res.data.list);
  431. }
  432. this.doctorLastPage=res.data.isLastPage;
  433. this.doctorTotal=res.data.total
  434. console.log(that.doctors)
  435. }else{
  436. uni.showToast({
  437. icon:'none',
  438. title: "请求失败",
  439. });
  440. }
  441. },
  442. rej => {}
  443. );
  444. },
  445. getPackageById(){
  446. var that=this;
  447. let data = {packageId:this.packageId};
  448. getPackageById(data).then(
  449. res => {
  450. if(res.code==200){
  451. this.item=res.data;
  452. this.storeName=res.storeName;
  453. if(res.data.images!=null){
  454. this.imgs=res.data.images.split(",")
  455. }
  456. else{
  457. this.activeImg=0;
  458. }
  459. this.describe=JSON.parse(this.item.describeJson);
  460. if(this.item.productJson!=null){
  461. this.products=JSON.parse(this.item.productJson);
  462. // this.isDrug=0;
  463. // this.products.forEach(function(element) {
  464. // if(element.isDrug!=null&&element.isDrug==1){
  465. // that.isDrug=1;
  466. // }
  467. // });
  468. }
  469. console.log(this.imgs)
  470. }else{
  471. uni.showToast({
  472. icon:'none',
  473. title: "请求失败",
  474. });
  475. }
  476. },
  477. rej => {}
  478. );
  479. },
  480. }
  481. }
  482. </script>
  483. <style lang="scss">
  484. page{
  485. height: 100%;
  486. }
  487. .textOne {
  488. overflow: hidden;
  489. white-space: nowrap;
  490. text-overflow: ellipsis;
  491. }
  492. .buy-lists{
  493. height: 188rpx;
  494. background-color:transparent;
  495. overflow: hidden;
  496. width: 60%;
  497. position: absolute;
  498. z-index: 99;
  499. top: 20vh;
  500. left: 20rpx;
  501. }
  502. .buy-list{
  503. height: 46rpx;
  504. font-size: 26rpx;
  505. margin-top: 14rpx;
  506. overflow: hidden;
  507. color: #fff;
  508. .buy-item {
  509. display: inline-flex;
  510. align-items: center;
  511. height: 100%;
  512. overflow: hidden;
  513. background-color: rgba(0, 0, 0, 0.35);
  514. border-radius: 10rpx;
  515. padding: 0 20rpx;
  516. box-sizing: border-box;
  517. }
  518. .buy-name {
  519. width: 50%;
  520. margin-right: 10rpx;
  521. }
  522. text {
  523. word-break: break-all;
  524. white-space: nowrap;
  525. }
  526. }
  527. .buy-top {
  528. transition: all 1.5s ease-in;
  529. margin-top: -60rpx;
  530. }
  531. .content{
  532. height: 100%;
  533. display: flex;
  534. flex-direction: column;
  535. .cont-box{
  536. padding-bottom: 121rpx;
  537. .package-box{
  538. background-color: #fff;
  539. padding: 20rpx;
  540. width: 100%;
  541. display: flex;
  542. flex-direction: column;
  543. align-items: flex-start;
  544. justify-content: flex-start;
  545. .title{
  546. font-weight: bold;
  547. font-size: 34upx;
  548. font-family: PingFang SC;
  549. color: #111;
  550. }
  551. .desc{
  552. margin-top: 15rpx;
  553. display: flex;
  554. align-items: flex-start;
  555. justify-content: flex-start;
  556. .cycle{
  557. background-color: #eee;
  558. border-radius: 30rpx;
  559. padding: 5rpx 15rpx;
  560. font-size: 26upx;
  561. font-family: PingFang SC;
  562. color: #C39A58;
  563. }
  564. .duration{
  565. margin-left: 10rpx;
  566. background-color: #eee;
  567. border-radius: 30rpx;
  568. padding: 5rpx 15rpx;
  569. font-size: 26upx;
  570. font-family: PingFang SC;
  571. color: #C39A58;
  572. }
  573. }
  574. .num-box{
  575. margin-top: 15rpx;
  576. flex: 1;
  577. display: flex;
  578. align-items: flex-end;
  579. justify-content: space-between;
  580. width: 100%;
  581. .price-box{
  582. display: flex;
  583. align-items: center;
  584. justify-content: flex-start;
  585. .price{
  586. margin-right: 10rpx;
  587. padding: 5rpx 10rpx;
  588. background-color: #C39A58;
  589. border-radius: 30rpx;
  590. font-size: 20upx;
  591. font-family: PingFang SC;
  592. color: #ffffff;
  593. }
  594. }
  595. .count{
  596. font-size: 24upx;
  597. font-family: PingFang SC;
  598. color: #333333;
  599. }
  600. }
  601. }
  602. .desc-box{
  603. background-color: #fff;
  604. padding: 20rpx;
  605. margin-top: 10rpx;
  606. .title-box{
  607. display: flex;
  608. flex-direction: row;
  609. align-items: center;
  610. justify-content: flex-start;
  611. .title{
  612. font-size: 32upx;
  613. font-family: PingFang SC;
  614. font-weight: bold;
  615. color: #111111;
  616. }
  617. .line{
  618. margin-right: 15rpx;
  619. height: 30rpx;
  620. width: 6rpx;
  621. background-color: #C39A58;
  622. }
  623. }
  624. .desc{
  625. margin-top: 15rpx;
  626. font-size: 28upx;
  627. font-family: PingFang SC;
  628. color: #9a9a9c;
  629. }
  630. .html{
  631. margin-top: 15rpx;
  632. font-size: 0px;
  633. vertical-align: middle;
  634. }
  635. }
  636. .drug-box{
  637. background-color: #fff;
  638. padding: 20rpx;
  639. margin-top: 10rpx;
  640. .title-box{
  641. display: flex;
  642. flex-direction: row;
  643. align-items: center;
  644. justify-content: flex-start;
  645. .title{
  646. font-size: 32upx;
  647. font-family: PingFang SC;
  648. font-weight: bold;
  649. color: #111111;
  650. }
  651. .line{
  652. margin-right: 15rpx;
  653. height: 30rpx;
  654. width: 6rpx;
  655. background-color: #C39A58;
  656. }
  657. }
  658. .drug-list{
  659. margin-top: 15rpx;
  660. .drug-item{
  661. .drug{
  662. padding-bottom: 15upx;
  663. border-bottom: 1px soli #F0F0F0;
  664. display: flex;
  665. align-items: center;
  666. .img-box{
  667. width: 160upx;
  668. height: 160upx;
  669. margin-right: 30upx;
  670. flex-shrink: 0;
  671. image{
  672. width: 100%;
  673. height: 100%;
  674. }
  675. }
  676. .drug-info{
  677. width: calc(100% - 190upx);
  678. height: 160upx;
  679. display: flex;
  680. flex-direction: column;
  681. justify-content: space-between;
  682. .name-box{
  683. font-size: 28upx;
  684. font-family: PingFang SC;
  685. font-weight: 500;
  686. color: #111111;
  687. line-height: 40upx;
  688. .tag{
  689. display: inline-block;
  690. padding: 0 6upx;
  691. height: 30upx;
  692. background: linear-gradient(90deg, #2BC7B9 0%, #2BC7A4 100%);
  693. border-radius: 4upx;
  694. margin-right: 10upx;
  695. font-size: 22upx;
  696. font-family: PingFang SC;
  697. font-weight: bold;
  698. color: #FFFFFF;
  699. line-height: 30upx;
  700. float: left;
  701. margin-top: 7upx;
  702. }
  703. }
  704. .spec{
  705. font-size: 24upx;
  706. font-family: PingFang SC;
  707. font-weight: 500;
  708. color: #999999;
  709. line-height: 1;
  710. margin-top: 10upx;
  711. }
  712. .num-box{
  713. display: flex;
  714. align-items: center;
  715. justify-content: space-between;
  716. .price{
  717. display: flex;
  718. align-items: flex-end;
  719. .unit{
  720. font-size: 24upx;
  721. font-family: PingFang SC;
  722. font-weight: 500;
  723. color: #111111;
  724. line-height: 1.2;
  725. margin-right: 4upx;
  726. }
  727. .num{
  728. font-size: 32upx;
  729. font-family: PingFang SC;
  730. font-weight: 500;
  731. color: #111111;
  732. line-height: 1;
  733. }
  734. }
  735. .use{
  736. font-size: 24upx;
  737. font-family: PingFang SC;
  738. color: #999999;
  739. }
  740. .amount{
  741. font-size: 24upx;
  742. font-family: PingFang SC;
  743. font-weight: 500;
  744. color: #999999;
  745. line-height: 1;
  746. }
  747. }
  748. }
  749. }
  750. }
  751. }
  752. .display-more{
  753. font-size: 24upx;
  754. font-family: PingFang SC;
  755. font-weight: 500;
  756. color: #999999;
  757. display: flex;
  758. align-items: center;
  759. justify-content: center;
  760. }
  761. .tip{
  762. margin-top: 10rpx;
  763. display: flex;
  764. align-items: center;
  765. justify-content: flex-start;
  766. .img{
  767. width: 20rpx;
  768. height:20rpx;
  769. }
  770. .text{
  771. margin-left: 10rpx;
  772. font-size: 26upx;
  773. font-family: PingFang SC;
  774. font-weight: 500;
  775. color: #999999;
  776. }
  777. }
  778. }
  779. }
  780. }
  781. .btn-foot{
  782. box-sizing: border-box;
  783. width: 100%;
  784. height: 121upx;
  785. background: #FFFFFF;
  786. padding: 0 32upx 0 28upx;
  787. display: flex;
  788. align-items: center;
  789. justify-content: space-between;
  790. position: fixed;
  791. left: 0;
  792. bottom: 0;
  793. z-index: 99;
  794. .p-price-box{
  795. display: flex;
  796. align-items: center;
  797. .p-name{
  798. font-size: 28upx;
  799. font-family: PingFang SC;
  800. font-weight: 500;
  801. color: #FF6633;
  802. }
  803. .p-price{
  804. margin-left: 10rpx;
  805. color: #FF6633;
  806. font-size: 38upx;
  807. font-family: PingFang SC;
  808. font-weight: bold;
  809. }
  810. }
  811. .btn-box{
  812. display: flex;
  813. align-items: center;
  814. .btn{
  815. width: 200upx;
  816. height: 88upx;
  817. line-height: 88upx;
  818. text-align: center;
  819. border-radius: 44upx;
  820. margin-left: 20upx;
  821. font-size: 30upx;
  822. font-family: PingFang SC;
  823. font-weight: bold;
  824. color: #FFFFFF;
  825. &:first-child{
  826. margin-left: 0;
  827. }
  828. &.buy{
  829. background: #C39A58;
  830. }
  831. }
  832. }
  833. }
  834. .doctors{
  835. overflow-y: auto;
  836. padding: 20rpx;
  837. height: 650rpx;
  838. width: 100%;
  839. display: flex;
  840. flex-direction: column;
  841. align-items: flex-start;
  842. justify-content: flex-start;
  843. box-sizing: border-box;
  844. .scroll-list{
  845. height: 650upx;
  846. }
  847. .doctor{
  848. width: 100%;
  849. margin-bottom: 15rpx;
  850. background: #f9f8fe;
  851. padding: 20rpx;
  852. display: flex;
  853. flex-direction: column;
  854. align-items: flex-start;
  855. justify-content: flex-start;
  856. &:last-child{
  857. margin-bottom: 0rpx;
  858. }
  859. .item{
  860. width: 100%;
  861. display: flex;
  862. align-items: center;
  863. justify-content: space-between;
  864. .left{
  865. flex: 1;
  866. width: 100%;
  867. display: flex;
  868. align-items: flex-start;
  869. justify-content: flex-start;
  870. .doc-img{
  871. width:80rpx;
  872. height:80rpx;
  873. border-radius: 50%;
  874. }
  875. .right{
  876. width: calc(100% - 100rpx);
  877. margin-left: 20rpx;
  878. display: flex;
  879. flex-direction: column;
  880. align-items: flex-start;
  881. justify-content: flex-start;
  882. .doc-box{
  883. display: flex;
  884. align-items: center;
  885. justify-content: space-between;
  886. .doc-name{
  887. font-size: 28upx;
  888. font-family: PingFang SC;
  889. font-weight: bold;
  890. color: #111111;
  891. }
  892. .doc-position{
  893. margin-left: 50rpx;
  894. font-size: 26upx;
  895. font-family: PingFang SC;
  896. color: #2d2b36;
  897. }
  898. }
  899. .hospital{
  900. margin-top: 10rpx;
  901. font-size: 24upx;
  902. font-family: PingFang SC;
  903. color: #9a9a9c;
  904. }
  905. }
  906. }
  907. .btn{
  908. padding: 10rpx 30rpx;
  909. text-align: center;
  910. border-radius: 30upx;
  911. font-size: 28upx;
  912. font-family: PingFang SC;
  913. color: #C39A58;
  914. border:1rpx solid #C39A58;
  915. }
  916. }
  917. }
  918. }
  919. .goods-banner{
  920. height: 756upx;
  921. background-color: #FFFFFF;
  922. position: relative;
  923. .swiper-item{
  924. box-sizing: border-box;
  925. }
  926. .swiper,
  927. .swiper-item,
  928. .swiper-item image{
  929. width: 100%;
  930. height: 100%;
  931. }
  932. .num-box{
  933. width: 80upx;
  934. height: 44upx;
  935. line-height: 44upx;
  936. text-align: center;
  937. font-size: 24upx;
  938. font-family: PingFang SC;
  939. font-weight: 500;
  940. color: #FFFFFF;
  941. background: rgba(0, 0, 0, .3);
  942. border-radius: 22upx;
  943. position: absolute;
  944. right: 30upx;
  945. bottom: 30upx;
  946. z-index: 10;
  947. }
  948. }
  949. .message-box{
  950. box-sizing: border-box;
  951. width: 693upx;
  952. height: 84upx;
  953. background: #ffffff;
  954. opacity: 0.9;
  955. border: 1px solid #E2C99E;
  956. // box-shadow: 0px 4upx 12upx 0px rgba(90, 203, 138, 0.16);
  957. border-radius: 16upx;
  958. position: fixed;
  959. left: 50%;
  960. transform: translateX(-50%);
  961. bottom: 128upx;
  962. z-index: 99;
  963. display: flex;
  964. align-items: center;
  965. justify-content: space-between;
  966. padding: 0 20upx 0 30upx;
  967. .left{
  968. width: 80%;
  969. display: flex;
  970. align-items: center;
  971. image{
  972. width: 24upx;
  973. height: 24upx;
  974. margin-right: 18upx;
  975. }
  976. .text{
  977. width: 90%;
  978. font-size: 28upx;
  979. font-family: PingFang SC;
  980. font-weight: 500;
  981. color: #C39A58;
  982. }
  983. }
  984. .btn{
  985. width: 100upx;
  986. height: 48upx;
  987. line-height: 48upx;
  988. text-align: center;
  989. font-size: 24upx;
  990. font-family: PingFang SC;
  991. font-weight: 500;
  992. color: #FFFFFF;
  993. border: 1px solid #D2E6FF;
  994. background: linear-gradient(135deg, #C39A58 0%, #E2C99E 100%);
  995. border-radius: 24upx;
  996. margin-left: 30upx;
  997. }
  998. }
  999. </style>