packageDetails.vue 26 KB

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