packageDetails.vue 26 KB

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