packageDetails.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041
  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" :key="index" 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">
  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" :key="index">
  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">您有{{orderCount}}个待支付订单</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, 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. // 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: 94px;
  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: 23px;
  504. font-size: 26rpx;
  505. margin-top: 7px;
  506. overflow: hidden;
  507. color: #fff;
  508. .buy-item {
  509. display: inline-flex;
  510. align-items: center;
  511. height: 100%;
  512. line-height: 100%;
  513. overflow: hidden;
  514. background-color: rgba(0, 0, 0, 0.35);
  515. border-radius: 10rpx;
  516. padding: 0 20rpx;
  517. box-sizing: border-box;
  518. word-break: break-all;
  519. white-space: nowrap;
  520. }
  521. .buy-name {
  522. width: 50%;
  523. margin-right: 10rpx;
  524. }
  525. text {
  526. word-break: break-all;
  527. white-space: nowrap;
  528. }
  529. }
  530. .buy-top {
  531. transition: all 0.8s ease-in;
  532. margin-top: -30px;
  533. }
  534. .content{
  535. height: 100%;
  536. display: flex;
  537. flex-direction: column;
  538. .cont-box{
  539. padding-bottom: 121rpx;
  540. .package-box{
  541. background-color: #fff;
  542. padding: 20rpx;
  543. width: 100%;
  544. display: flex;
  545. flex-direction: column;
  546. align-items: flex-start;
  547. justify-content: flex-start;
  548. .title{
  549. font-weight: bold;
  550. font-size: 34upx;
  551. font-family: PingFang SC;
  552. color: #111;
  553. }
  554. .desc{
  555. margin-top: 15rpx;
  556. display: flex;
  557. align-items: flex-start;
  558. justify-content: flex-start;
  559. .cycle{
  560. background-color: #eee;
  561. border-radius: 30rpx;
  562. padding: 5rpx 15rpx;
  563. font-size: 26upx;
  564. font-family: PingFang SC;
  565. color: #C39A58;
  566. }
  567. .duration{
  568. margin-left: 10rpx;
  569. background-color: #eee;
  570. border-radius: 30rpx;
  571. padding: 5rpx 15rpx;
  572. font-size: 26upx;
  573. font-family: PingFang SC;
  574. color: #C39A58;
  575. }
  576. }
  577. .num-box{
  578. margin-top: 15rpx;
  579. flex: 1;
  580. display: flex;
  581. align-items: flex-end;
  582. justify-content: space-between;
  583. width: 100%;
  584. .price-box{
  585. display: flex;
  586. align-items: center;
  587. justify-content: flex-start;
  588. .price{
  589. margin-right: 10rpx;
  590. padding: 5rpx 10rpx;
  591. background-color: #C39A58;
  592. border-radius: 30rpx;
  593. font-size: 20upx;
  594. font-family: PingFang SC;
  595. color: #ffffff;
  596. }
  597. }
  598. .count{
  599. font-size: 24upx;
  600. font-family: PingFang SC;
  601. color: #333333;
  602. }
  603. }
  604. }
  605. .desc-box{
  606. background-color: #fff;
  607. padding: 20rpx;
  608. margin-top: 10rpx;
  609. .title-box{
  610. display: flex;
  611. flex-direction: row;
  612. align-items: center;
  613. justify-content: flex-start;
  614. .title{
  615. font-size: 32upx;
  616. font-family: PingFang SC;
  617. font-weight: bold;
  618. color: #111111;
  619. }
  620. .line{
  621. margin-right: 15rpx;
  622. height: 30rpx;
  623. width: 6rpx;
  624. background-color: #C39A58;
  625. }
  626. }
  627. .desc{
  628. margin-top: 15rpx;
  629. font-size: 28upx;
  630. font-family: PingFang SC;
  631. color: #9a9a9c;
  632. }
  633. .html{
  634. margin-top: 15rpx;
  635. font-size: 0px;
  636. vertical-align: middle;
  637. }
  638. }
  639. .drug-box{
  640. background-color: #fff;
  641. padding: 20rpx;
  642. margin-top: 10rpx;
  643. .title-box{
  644. display: flex;
  645. flex-direction: row;
  646. align-items: center;
  647. justify-content: flex-start;
  648. .title{
  649. font-size: 32upx;
  650. font-family: PingFang SC;
  651. font-weight: bold;
  652. color: #111111;
  653. }
  654. .line{
  655. margin-right: 15rpx;
  656. height: 30rpx;
  657. width: 6rpx;
  658. background-color: #C39A58;
  659. }
  660. }
  661. .drug-list{
  662. margin-top: 15rpx;
  663. .drug-item{
  664. .drug{
  665. padding-bottom: 15upx;
  666. border-bottom: 1px soli #F0F0F0;
  667. display: flex;
  668. align-items: center;
  669. .img-box{
  670. width: 160upx;
  671. height: 160upx;
  672. margin-right: 30upx;
  673. flex-shrink: 0;
  674. image{
  675. width: 100%;
  676. height: 100%;
  677. }
  678. }
  679. .drug-info{
  680. width: calc(100% - 190upx);
  681. height: 160upx;
  682. display: flex;
  683. flex-direction: column;
  684. justify-content: space-between;
  685. .name-box{
  686. font-size: 28upx;
  687. font-family: PingFang SC;
  688. font-weight: 500;
  689. color: #111111;
  690. line-height: 40upx;
  691. .tag{
  692. display: inline-block;
  693. padding: 0 6upx;
  694. height: 30upx;
  695. background: linear-gradient(90deg, #2BC7B9 0%, #2BC7A4 100%);
  696. border-radius: 4upx;
  697. margin-right: 10upx;
  698. font-size: 22upx;
  699. font-family: PingFang SC;
  700. font-weight: bold;
  701. color: #FFFFFF;
  702. line-height: 30upx;
  703. float: left;
  704. margin-top: 7upx;
  705. }
  706. }
  707. .spec{
  708. font-size: 24upx;
  709. font-family: PingFang SC;
  710. font-weight: 500;
  711. color: #999999;
  712. line-height: 1;
  713. margin-top: 10upx;
  714. }
  715. .num-box{
  716. display: flex;
  717. align-items: center;
  718. justify-content: space-between;
  719. .price{
  720. display: flex;
  721. align-items: flex-end;
  722. .unit{
  723. font-size: 24upx;
  724. font-family: PingFang SC;
  725. font-weight: 500;
  726. color: #111111;
  727. line-height: 1.2;
  728. margin-right: 4upx;
  729. }
  730. .num{
  731. font-size: 32upx;
  732. font-family: PingFang SC;
  733. font-weight: 500;
  734. color: #111111;
  735. line-height: 1;
  736. }
  737. }
  738. .use{
  739. font-size: 24upx;
  740. font-family: PingFang SC;
  741. color: #999999;
  742. }
  743. .amount{
  744. font-size: 24upx;
  745. font-family: PingFang SC;
  746. font-weight: 500;
  747. color: #999999;
  748. line-height: 1;
  749. }
  750. }
  751. }
  752. }
  753. }
  754. }
  755. .display-more{
  756. font-size: 24upx;
  757. font-family: PingFang SC;
  758. font-weight: 500;
  759. color: #999999;
  760. display: flex;
  761. align-items: center;
  762. justify-content: center;
  763. }
  764. .tip{
  765. margin-top: 10rpx;
  766. display: flex;
  767. align-items: center;
  768. justify-content: flex-start;
  769. .img{
  770. width: 20rpx;
  771. height:20rpx;
  772. }
  773. .text{
  774. margin-left: 10rpx;
  775. font-size: 26upx;
  776. font-family: PingFang SC;
  777. font-weight: 500;
  778. color: #999999;
  779. }
  780. }
  781. }
  782. }
  783. }
  784. .btn-foot{
  785. box-sizing: border-box;
  786. width: 100%;
  787. height: 121upx;
  788. background: #FFFFFF;
  789. padding: 0 32upx 0 28upx;
  790. display: flex;
  791. align-items: center;
  792. justify-content: space-between;
  793. position: fixed;
  794. left: 0;
  795. bottom: 0;
  796. z-index: 99;
  797. .p-price-box{
  798. display: flex;
  799. align-items: center;
  800. .p-name{
  801. font-size: 28upx;
  802. font-family: PingFang SC;
  803. font-weight: 500;
  804. color: #FF6633;
  805. }
  806. .p-price{
  807. margin-left: 10rpx;
  808. color: #FF6633;
  809. font-size: 38upx;
  810. font-family: PingFang SC;
  811. font-weight: bold;
  812. }
  813. }
  814. .btn-box{
  815. display: flex;
  816. align-items: center;
  817. .btn{
  818. width: 200upx;
  819. height: 88upx;
  820. line-height: 88upx;
  821. text-align: center;
  822. border-radius: 44upx;
  823. margin-left: 20upx;
  824. font-size: 30upx;
  825. font-family: PingFang SC;
  826. font-weight: bold;
  827. color: #FFFFFF;
  828. &:first-child{
  829. margin-left: 0;
  830. }
  831. &.buy{
  832. background: #C39A58;
  833. }
  834. }
  835. }
  836. }
  837. .doctors{
  838. overflow-y: auto;
  839. padding: 20rpx;
  840. height: 650rpx;
  841. width: 100%;
  842. display: flex;
  843. flex-direction: column;
  844. align-items: flex-start;
  845. justify-content: flex-start;
  846. box-sizing: border-box;
  847. .scroll-list{
  848. height: 650upx;
  849. }
  850. .doctor{
  851. width: 100%;
  852. margin-bottom: 15rpx;
  853. background: #f9f8fe;
  854. padding: 20rpx;
  855. display: flex;
  856. flex-direction: column;
  857. align-items: flex-start;
  858. justify-content: flex-start;
  859. &:last-child{
  860. margin-bottom: 0rpx;
  861. }
  862. .item{
  863. width: 100%;
  864. display: flex;
  865. align-items: center;
  866. justify-content: space-between;
  867. .left{
  868. flex: 1;
  869. width: 100%;
  870. display: flex;
  871. align-items: flex-start;
  872. justify-content: flex-start;
  873. .doc-img{
  874. width:80rpx;
  875. height:80rpx;
  876. border-radius: 50%;
  877. }
  878. .right{
  879. width: calc(100% - 100rpx);
  880. margin-left: 20rpx;
  881. display: flex;
  882. flex-direction: column;
  883. align-items: flex-start;
  884. justify-content: flex-start;
  885. .doc-box{
  886. display: flex;
  887. align-items: center;
  888. justify-content: space-between;
  889. .doc-name{
  890. font-size: 28upx;
  891. font-family: PingFang SC;
  892. font-weight: bold;
  893. color: #111111;
  894. }
  895. .doc-position{
  896. margin-left: 50rpx;
  897. font-size: 26upx;
  898. font-family: PingFang SC;
  899. color: #2d2b36;
  900. }
  901. }
  902. .hospital{
  903. margin-top: 10rpx;
  904. font-size: 24upx;
  905. font-family: PingFang SC;
  906. color: #9a9a9c;
  907. }
  908. }
  909. }
  910. .btn{
  911. padding: 10rpx 30rpx;
  912. text-align: center;
  913. border-radius: 30upx;
  914. font-size: 28upx;
  915. font-family: PingFang SC;
  916. color: #C39A58;
  917. border:1rpx solid #C39A58;
  918. }
  919. }
  920. }
  921. }
  922. .goods-banner{
  923. height: 756upx;
  924. background-color: #FFFFFF;
  925. position: relative;
  926. .swiper-item{
  927. box-sizing: border-box;
  928. }
  929. .swiper,
  930. .swiper-item,
  931. .swiper-item image{
  932. width: 100%;
  933. height: 100%;
  934. }
  935. .num-box{
  936. width: 80upx;
  937. height: 44upx;
  938. line-height: 44upx;
  939. text-align: center;
  940. font-size: 24upx;
  941. font-family: PingFang SC;
  942. font-weight: 500;
  943. color: #FFFFFF;
  944. background: rgba(0, 0, 0, .3);
  945. border-radius: 22upx;
  946. position: absolute;
  947. right: 30upx;
  948. bottom: 30upx;
  949. z-index: 10;
  950. }
  951. }
  952. .message-box{
  953. box-sizing: border-box;
  954. width: 693upx;
  955. height: 84upx;
  956. background: #ffffff;
  957. opacity: 0.9;
  958. border: 1px solid #E2C99E;
  959. // box-shadow: 0px 4upx 12upx 0px rgba(90, 203, 138, 0.16);
  960. border-radius: 16upx;
  961. position: fixed;
  962. left: 50%;
  963. transform: translateX(-50%);
  964. bottom: 128upx;
  965. z-index: 99;
  966. display: flex;
  967. align-items: center;
  968. justify-content: space-between;
  969. padding: 0 20upx 0 30upx;
  970. .left{
  971. width: 80%;
  972. display: flex;
  973. align-items: center;
  974. image{
  975. width: 24upx;
  976. height: 24upx;
  977. margin-right: 18upx;
  978. }
  979. .text{
  980. width: 90%;
  981. font-size: 28upx;
  982. font-family: PingFang SC;
  983. font-weight: 500;
  984. color: #C39A58;
  985. }
  986. }
  987. .btn{
  988. width: 100upx;
  989. height: 48upx;
  990. line-height: 48upx;
  991. text-align: center;
  992. font-size: 24upx;
  993. font-family: PingFang SC;
  994. font-weight: 500;
  995. color: #FFFFFF;
  996. border: 1px solid #D2E6FF;
  997. background: linear-gradient(135deg, #C39A58 0%, #E2C99E 100%);
  998. border-radius: 24upx;
  999. margin-left: 30upx;
  1000. }
  1001. }
  1002. </style>