index.vue 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757
  1. <template>
  2. <view class="content">
  3. <view class="cont">
  4. <view class="bg">
  5. <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/home_top_bg.png">
  6. </image>
  7. </view>
  8. <view class="top-box" :style="{ background: bg }">
  9. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  10. <view class="top-title">
  11. <view class="name" :style="{ color: titleColor }">泰安泰医堂中医医院</view>
  12. <view class="desc-box">
  13. <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/dui1.png"></image>
  14. <view class="desc" :style="{ color: descColor }">国家卫健委权威认证机构</view>
  15. </view>
  16. </view>
  17. <view class="search">
  18. <view class="search-box" @click="navTo('/pages_index/search')">
  19. <!-- <view class="position-box">
  20. <image class="position-img" src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/positon.png" mode=""></image>
  21. <view class="position-text">
  22. {{positiontext}}
  23. </view>
  24. </view> -->
  25. <image class="img" src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/icon_search.png" mode=""></image>
  26. <!-- <input disabled type="text" placeholder="请输入疾病 | 科室 | 医生 | 知识" placeholder-class="input-place"> -->
  27. <view class="input-box">
  28. <view class="input-text" v-for="(item,index) in inputtext" :key="index">
  29. {{item}}
  30. </view>
  31. </view>
  32. </view>
  33. <view class="msg">
  34. <image class="msg" src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/msg1.png"></image>
  35. <button class='contact-btn' open-type="contact">
  36. </button>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="cont-box">
  41. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  42. <view style="padding-bottom:178rpx">
  43. </view>
  44. <view class="banner" v-if="advImgs.length>0">
  45. <u-swiper
  46. :list="advImgs"
  47. indicator
  48. indicatorMode="line"
  49. circular
  50. height="233rpx"
  51. @click="handleAdvClick">
  52. </u-swiper>
  53. </view>
  54. <view class="btns">
  55. <view class="btn1" @click="navTo('/pages_doctor/doctorList')">
  56. <view class="title-box">
  57. <view class="title">专家问诊</view>
  58. <view class="desc">名医问诊处方</view>
  59. </view>
  60. <image
  61. src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/expert_consultation_icon56.png">
  62. </image>
  63. <image class="mask" src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/mask.png"></image>
  64. </view>
  65. <view class="btn2" @click="navTo('/pages_order/inquirySelectType')">
  66. <view class="title-box">
  67. <view class="title">健康咨询</view>
  68. <view class="desc">快速健康咨询</view>
  69. </view>
  70. <image
  71. src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/quick_consultation_icon56.png">
  72. </image>
  73. <image class="mask" src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/mask.png"></image>
  74. </view>
  75. </view>
  76. <view class="modules">
  77. <view class="module" v-for="(it,index) in layouts" :key="index">
  78. <view class="menus" v-if="it.id==1&&it.isShow">
  79. <view class="title">{{it.name}}</view>
  80. <view class="menu-box">
  81. <view class="menu" v-for="(item,index) in menuarr" :key="index" @click="golist(index)">
  82. <view class="image" :style="{'backgroundImage':'url(' + item.img + ')'}">
  83. <view class="text-box">
  84. <view class="image-title1" v-if="index==0">
  85. {{item.title}}
  86. </view>
  87. <view class="image-title2" v-if="index==1">
  88. {{item.title}}
  89. </view>
  90. <view class="image-title3" v-if="index==2">
  91. {{item.title}}
  92. </view>
  93. <view class="image-title4" v-if="index==3">
  94. {{item.title}}
  95. </view>
  96. <view class="image-content1" v-if="index==0">
  97. {{item.content}}
  98. </view>
  99. <view class="image-content2" v-if="index==1">
  100. {{item.content}}
  101. </view>
  102. <view class="image-content3" v-if="index==2">
  103. {{item.content}}
  104. </view>
  105. <view class="image-content4" v-if="index==3">
  106. {{item.content}}
  107. </view>
  108. <view class="image-button1" v-if="index==0">
  109. {{item.button}}
  110. </view>
  111. <view class="image-button2" v-if="index==1">
  112. {{item.button}}
  113. </view>
  114. <view class="image-button3" v-if="index==2">
  115. {{item.button}}
  116. </view>
  117. <view class="image-button4" v-if="index==3">
  118. {{item.button}}
  119. </view>
  120. </view>
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. <view class="depts" v-if="it.id==2&&it.isShow">
  126. <view class="title">
  127. {{it.name}}
  128. </view>
  129. <view class="dept-box">
  130. <view @click="navTo('/pages_doctor/doctorList?deptId='+item.deptId)" class="dept"
  131. v-for="(item,index) in depts" :key="index">
  132. <image class="icon" :src="item.iconUrl"></image>
  133. <view class="title">{{item.deptName}}</view>
  134. </view>
  135. <view @click="navTo('/pages_doctor/doctorList?deptId=0')" class="dept">
  136. <image class="icon"
  137. src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/gengduokeshi_icon28.png">
  138. </image>
  139. <view class="title">更多科室</view>
  140. </view>
  141. </view>
  142. </view>
  143. <view class="depts" v-if="it.id==3&&it.isShow">
  144. <view class="title">
  145. {{it.name}}
  146. </view>
  147. <view class="dept-box">
  148. <view @click="yangshengClick(item)" class="dept" v-for="(item,index) in yangshengs"
  149. :key="index">
  150. <image class="icon" :src="item.icon"></image>
  151. <view class="title">{{item.title}}</view>
  152. </view>
  153. </view>
  154. </view>
  155. <view class="doctor-articles" v-if="it.id==4&&it.isShow">
  156. <view class="title-box">
  157. <view class="title">{{it.name}}</view>
  158. <view class="more" @click="navTo('/pages_doctor/doctorArticleList')">
  159. <view class="text">更多讲堂</view>
  160. <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/arrow_gray.png"></image>
  161. </view>
  162. </view>
  163. <view class="article-box">
  164. <view class="article"
  165. @click="navTo('/pages_doctor/doctorArticleDetails?articleId='+item.articleId)"
  166. v-for="(item,index) in doctocArticles" :key="index">
  167. <view class="image-box">
  168. <image mode="aspectFill" :src="item.imageUrl"></image>
  169. <view class="views" v-if="item.views.toString().split('').length<5">
  170. {{item.views}}人观看
  171. </view>
  172. <view class="views" v-else>
  173. {{item.views.toString().split('').slice(0,-4).join('')}}万人观看
  174. </view>
  175. <view class="doctor">
  176. <image mode="aspectFill" :src="item.avatar"></image>
  177. <view class="right">
  178. <view class="doc-name ellipsis" v-if="item.doctorName">
  179. {{item.doctorName}}
  180. </view>
  181. <view class="doc-position ellipsis" v-if="item.position">
  182. {{item.position}}
  183. </view>
  184. </view>
  185. </view>
  186. </view>
  187. <view class="article-title-box">
  188. <view class="article-title ellipsis">{{item.title}}</view>
  189. </view>
  190. </view>
  191. </view>
  192. </view>
  193. <view class="doctors" v-if="it.id==5&&it.isShow">
  194. <view class="title-box">
  195. <view class="title">{{it.name}}</view>
  196. <view class="more" @click="navTo('/pages_doctor/doctorList')">
  197. <view class="text">更多医生</view>
  198. <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/arrow_gray.png"></image>
  199. </view>
  200. </view>
  201. <view class="doctor-box" v-if="doctors.length>0">
  202. <view class="doctor"
  203. @click="navTo('/pages_doctor/doctorDetails?doctorId='+item.doctorId)"
  204. v-for="(item,index) in doctors" :key="index">
  205. <view class="item">
  206. <view class="left">
  207. <view class="head-box">
  208. <image mode="aspectFill" class="doc-img" :src="item.avatar"></image>
  209. <view class="isline" v-if="item.workStatus==1">
  210. <view class="img">
  211. <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/isline.png"></image>
  212. <view class="name">在线</view>
  213. </view>
  214. </view>
  215. </view>
  216. </view>
  217. <view class="right">
  218. <view class="doc-box">
  219. <view class="doc-name">
  220. {{item.doctorName}}
  221. </view>
  222. <view class="doc-position" v-if="item.position">{{item.position}}</view>
  223. <view class="doc-dept" v-if="item.deptName">{{item.deptName}}</view>
  224. </view>
  225. <view class="hospital-box">
  226. <view class="tag" v-if="item.hospitalLevel!=null">
  227. <text>{{$getDictLabelName(hosLevelOptions,item.hospitalLevel)}}</text>
  228. </view>
  229. <view class="name">{{item.hospitalName}} </view>
  230. </view>
  231. <view class="doc-spec">
  232. <view class="spec ellipsis2">{{item.speciality}}</view>
  233. </view>
  234. <view class="doc-count">
  235. <view class="name">好评:</view>
  236. <view class="count">{{item.pingStar}}分</view>
  237. <view class="name">接诊量:</view>
  238. <view class="count">{{item.orderNumber}}</view>
  239. <view class="name">平均响应:</view>
  240. <view class="count"></view>
  241. </view>
  242. <view class="doc-price">
  243. <view class="pricebutton">
  244. <span>立即咨询</span>
  245. <text v-for="(price,index) in item.prices" :key="index">
  246. ¥{{price.price.toFixed(2)}} <text v-if="index==0">/</text>
  247. </text>
  248. </view>
  249. </view>
  250. </view>
  251. </view>
  252. </view>
  253. </view>
  254. </view>
  255. <view class="articles" v-if="it.id==6&&it.isShow">
  256. <view class="title-box">
  257. <view class="title">{{it.name}}</view>
  258. <view class="more" @click="navTo('/pages_index/articleList')">
  259. <view class="text">更多</view>
  260. <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/arrow_gray.png"></image>
  261. </view>
  262. </view>
  263. <view class="article-box" v-if="articles.length>0">
  264. <view class="item"
  265. @click="navTo('/pages_index/articleDetails?articleId='+item.articleId)"
  266. v-for="(item,index) in articles" :key="index">
  267. <view class="left">
  268. <view class="title">
  269. {{item.title}}
  270. </view>
  271. <view class="views">
  272. 阅读 {{item.views}}
  273. </view>
  274. </view>
  275. <view class="right">
  276. <image :src="item.imageUrl"></image>
  277. </view>
  278. </view>
  279. </view>
  280. </view>
  281. <view class="packages" v-if="it.id==7&&it.isShow">
  282. <view class="title-box">
  283. <view class="title">{{it.name}}</view>
  284. <view class="more" @click="navTo('/pages_index/packageList')">
  285. <view class="text">更多</view>
  286. <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/arrow_gray.png"></image>
  287. </view>
  288. </view>
  289. <view class="package-box">
  290. <view class="item"
  291. @click="navTo('/pages_index/packageDetails?packageId='+item.packageId)"
  292. v-for="(item,index) in packages" :key="index">
  293. <view class="top">
  294. <image :src="item.imgUrl"></image>
  295. </view>
  296. <view class="bottom">
  297. <view class="title ellipsis2">
  298. {{item.packageName}}
  299. </view>
  300. <view class="price-box">
  301. <view class="price">¥
  302. <span
  303. class="price-one">{{item.price.toFixed(2).toString().split('.')[0]}}
  304. </span>
  305. <span>.</span>
  306. <span>{{item.price.toFixed(2).toString().split('.')[1]}}</span>
  307. <span>元/日</span>
  308. </view>
  309. <view class="count">{{item.sales}}人已购</view>
  310. </view>
  311. </view>
  312. </view>
  313. </view>
  314. </view>
  315. </view>
  316. </view>
  317. </view>
  318. </view>
  319. </view>
  320. </template>
  321. <script>
  322. import {
  323. getConfigByKey
  324. } from '@/api/common'
  325. import {
  326. getPackageList
  327. } from '@/api/package.js'
  328. import {
  329. getDoctorArticleList
  330. } from '@/api/doctorArticle.js'
  331. import {
  332. getDoctorList
  333. } from '@/api/doctor.js'
  334. import {
  335. getArticleList
  336. } from '@/api/article.js'
  337. import {
  338. getAdvList
  339. } from '@/api/adv.js'
  340. import {
  341. getDepartmentList
  342. } from '@/api/department.js'
  343. import {
  344. getDictByKey
  345. } from '@/api/common.js'
  346. export default {
  347. data() {
  348. return {
  349. layouts: [],
  350. yangshengs: [
  351. // {
  352. // id: "0",
  353. // title: "AI舌诊",
  354. // page: "/pages_user/tongue/index",
  355. // icon: "https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/tongue_diagnosis_icon28.png"
  356. // },
  357. {
  358. id: "1",
  359. title: "药膳食疗",
  360. page: "/pages_index/medicatedFoodList",
  361. icon: "https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/medicinal_cuisine_icon2.png"
  362. },
  363. {
  364. id: "2",
  365. title: "经络穴位",
  366. page: "/pages_index/vesselList",
  367. icon: "https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/meridian_acupoints_icon28.png"
  368. },
  369. {
  370. id: "3",
  371. title: "问答专区",
  372. page: "/pages_index/questionsList",
  373. icon: "https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/ques_section_icon28.png"
  374. },
  375. {
  376. id: "4",
  377. title: "疾病",
  378. page: "/pages_index/diseaseList",
  379. icon: "https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/disease_icon28.png"
  380. },
  381. {
  382. id: "5",
  383. title: "中药图解",
  384. page: "/pages_index/chineseMedicineList",
  385. icon: "https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/traditional_illustration_icon28.png"
  386. },
  387. {
  388. id: "6",
  389. title: "名方今用",
  390. page: "/pages_index/famousPrescribeList",
  391. icon: "https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/mingfangjinyong_icon28.png"
  392. },
  393. {
  394. id: "7",
  395. title: "康复医案",
  396. page: "/pages_doctor/doctorArticleList",
  397. icon: "https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/rehabilitation_consilia_icon28.png"
  398. }
  399. ],
  400. isTop: false,
  401. titleColor: "#fff",
  402. descColor: "#fff",
  403. top: 0,
  404. // 状态栏的高度
  405. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  406. advImgs: [],
  407. doctors: [],
  408. advs: [],
  409. articles: [],
  410. depts: [],
  411. doctocArticles: [],
  412. hosLevelOptions: [],
  413. packages: [],
  414. inputtext: ['请输入疾病', '科室', '医生', '知识'],
  415. menuarr: [{
  416. img: 'https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/mini_source_myhk_jiankangzice_img1.png',
  417. title: '健康自测',
  418. content: '一测便知身体好不好',
  419. button: '测一测'
  420. },
  421. {
  422. img: 'https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/mini_source_myhk_jiankangzice_img2.png',
  423. title: '积分商城',
  424. content: '健康好药 免费兑换',
  425. button: '领一领'
  426. },
  427. {
  428. img: 'https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/anfanggouyao_img.png',
  429. title: '按方购药',
  430. content: '简单、便捷、便宜',
  431. button: '试一试'
  432. },
  433. {
  434. img: 'https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/jiankangshangcheng_img.png',
  435. title: '健康产品',
  436. content: '千万用户的健康选择',
  437. button: '逛一逛'
  438. },
  439. ],
  440. }
  441. },
  442. onLoad() {
  443. this.getDictByKey("sys_hospital_level");
  444. uni.$on('refreshMsgCount', () => {
  445. try {
  446. let totalUnreadCount = uni.$TUIKit.getTotalUnreadMessageCount();
  447. if (totalUnreadCount > 0) {
  448. try {
  449. uni.setTabBarBadge({ //显示数字
  450. index: 1, //tabbar下标
  451. text: totalUnreadCount + "" //数字
  452. })
  453. } catch (e) {
  454. }
  455. } else {
  456. try {
  457. uni.hideTabBarRedDot({ //隐藏红点
  458. index: 1 //tabbar下标
  459. })
  460. } catch (e) {
  461. }
  462. }
  463. } catch (e) {}
  464. })
  465. },
  466. onShow() {
  467. this.getDoctorList();
  468. this.getArticleList();
  469. this.getAdvList();
  470. this.getDepartmentList();
  471. this.getDoctorArticleList();
  472. this.getPackageList();
  473. this.getConfigByKey("his.appShow");
  474. var that = this;
  475. uni.$emit('refreshMsgCount');
  476. },
  477. onPageScroll(e) {
  478. this.top = e.scrollTop;
  479. },
  480. //发送给朋友
  481. onShareAppMessage(res) {
  482. if (this.$isLogin()) {
  483. return {
  484. title: "泰安泰医堂中医医院",
  485. path: '/pages/index/index',
  486. imageUrl: 'https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/logo.jpg' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  487. }
  488. }
  489. },
  490. //分享到朋友圈
  491. onShareTimeline(res) {
  492. if (this.utils.isLogin()) {
  493. return {
  494. title: "泰安泰医堂中医医院",
  495. imageUrl: 'https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/logo.jpg' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  496. }
  497. }
  498. },
  499. computed: {
  500. bg: function() {
  501. var top = this.top / 120;
  502. // console.log(top)
  503. if (top > 0) {
  504. this.isTop = true;
  505. this.titleColor = "#fff"
  506. this.descColor = "#fff"
  507. } else {
  508. this.isTop = false;
  509. this.titleColor = "#fff"
  510. this.descColor = "#fff"
  511. }
  512. return 'rgba(7, 140, 157, ' + top + ')';
  513. },
  514. },
  515. methods: {
  516. dev() {
  517. uni.showToast({
  518. icon: "none",
  519. title: '敬请期待'
  520. })
  521. },
  522. getConfigByKey(key) {
  523. var that = this;
  524. var data = {
  525. key: key
  526. }
  527. getConfigByKey(data).then(
  528. res => {
  529. if (res.code == 200) {
  530. this.layouts = JSON.parse(res.data);
  531. this.layouts.sort((a, b) => a.sort - b.sort)
  532. console.log(this.layouts)
  533. this.layouts.forEach(function(element) {
  534. if (element.id == "7") {
  535. }
  536. });
  537. }
  538. },
  539. rej => {}
  540. );
  541. },
  542. yangshengClick(item) {
  543. if (item.id == 0) {
  544. // this.$isLogin().then(
  545. // res => {
  546. // if(res){
  547. uni.navigateTo({
  548. url: item.page
  549. })
  550. } else {
  551. if (item.page == "") {
  552. uni.showToast({
  553. icon: "none",
  554. title: '暂无更多'
  555. })
  556. return;
  557. }
  558. uni.navigateTo({
  559. url: item.page
  560. })
  561. }
  562. },
  563. switchTab(url) {
  564. uni.switchTab({
  565. url: url
  566. })
  567. },
  568. navToMiniProgram() {
  569. uni.navigateToMiniProgram({
  570. // appid 写你要跳转的小程序的 appid
  571. appId: 'wx45cf09091aead547',
  572. // 路径写 src下的路径,假如你跳转的是pages下的页面,就可以写pages/index
  573. path: '/pages/common/launch',
  574. extraData: {
  575. // 'type': 'out'
  576. },
  577. // 这个不写的话会显示开发环境,不能正常跳转,写上就能正常跳转了
  578. envVersion: 'develop',
  579. success(res) {
  580. // 打开成功
  581. // uni.showToast({
  582. // title: '跳转成功'
  583. // })
  584. },
  585. fail(err) {
  586. // 打开失败/取消
  587. uni.showToast({
  588. title: '跳转不成功',
  589. icon: 'none',
  590. })
  591. }
  592. })
  593. },
  594. getDictByKey(key) {
  595. var data = {
  596. key: key
  597. }
  598. getDictByKey(data).then(
  599. res => {
  600. if (res.code == 200) {
  601. if (key == "sys_hospital_level") {
  602. this.hosLevelOptions = res.data;
  603. }
  604. }
  605. },
  606. err => {}
  607. );
  608. },
  609. getDoctorArticleList(page) {
  610. //联网加载数据
  611. var that = this;
  612. var data = {
  613. pageNum: 1,
  614. pageSize: 10,
  615. };
  616. getDoctorArticleList(data).then(res => {
  617. if (res.code == 200) {
  618. this.doctocArticles = res.data.list;
  619. } else {}
  620. });
  621. },
  622. getDepartmentList(page) {
  623. //联网加载数据
  624. var that = this;
  625. var data = {
  626. isTui: 1
  627. };
  628. getDepartmentList(data).then(res => {
  629. if (res.code == 200) {
  630. this.depts = res.data;
  631. }
  632. });
  633. },
  634. handleAdvClick(index) {
  635. var ad = this.advs[index];
  636. console.log(ad.advUrl);
  637. if (ad.showType == 1) {
  638. uni.setStorageSync('url', ad.advUrl);
  639. uni.navigateTo({
  640. url: "h5"
  641. })
  642. } else if (ad.showType == 2) {
  643. uni.navigateTo({
  644. url: ad.advUrl
  645. })
  646. } else if (ad.showType == 3) {
  647. uni.setStorageSync('content', ad.content);
  648. uni.navigateTo({
  649. url: "content"
  650. })
  651. }
  652. },
  653. getAdvList() {
  654. //联网加载数据
  655. var that = this;
  656. var data = {
  657. advType: 1
  658. };
  659. getAdvList(data).then(res => {
  660. if (res.code == 200) {
  661. that.advImgs = [];
  662. that.advs = [];
  663. res.data.forEach(function(element) {
  664. if (element.imageUrl != null && element.imageUrl != "") {
  665. that.advs.push(element);
  666. that.advImgs.push(element.imageUrl);
  667. }
  668. });
  669. } else {
  670. uni.showToast({
  671. icon: 'none',
  672. title: "请求失败",
  673. });
  674. }
  675. });
  676. },
  677. getArticleList() {
  678. //联网加载数据
  679. var that = this;
  680. var data = {
  681. isTui: 1,
  682. pageNum: 1,
  683. pageSize: 10,
  684. };
  685. getArticleList(data).then(res => {
  686. if (res.code == 200) {
  687. this.articles = res.data.list;
  688. } else {
  689. uni.showToast({
  690. icon: 'none',
  691. title: "请求失败",
  692. });
  693. }
  694. });
  695. },
  696. getDoctorList() {
  697. //联网加载数据
  698. var that = this;
  699. var data = {
  700. isTui: 1,
  701. pageNum: 1,
  702. pageSize: 10,
  703. };
  704. getDoctorList(data).then(res => {
  705. if (res.code == 200) {
  706. this.doctors = res.data.list;
  707. this.doctors.forEach(function(value, index, array) {
  708. value.prices = JSON.parse(value.priceJson)
  709. });
  710. } else {
  711. uni.showToast({
  712. icon: 'none',
  713. title: "请求失败",
  714. });
  715. }
  716. });
  717. },
  718. getPackageList() {
  719. //联网加载数据
  720. var that = this;
  721. var data = {
  722. isShow: 1,
  723. pageNum: 1,
  724. pageSize: 10,
  725. };
  726. getPackageList(data).then(res => {
  727. if (res.code == 200) {
  728. this.packages = res.data.list;
  729. } else {
  730. uni.showToast({
  731. icon: 'none',
  732. title: "请求失败",
  733. });
  734. }
  735. });
  736. },
  737. loginNavTo(url) {
  738. this.$isLogin().then(
  739. res => {
  740. if (res) {
  741. console.log(res)
  742. uni.navigateTo({
  743. url: url
  744. })
  745. } else {
  746. uni.navigateTo({
  747. url: '/pages/auth/login'
  748. })
  749. }
  750. }
  751. );
  752. },
  753. navTo(url) {
  754. if (url == "dev") {
  755. uni.showToast({
  756. icon: 'none',
  757. title: "尽情期待...",
  758. });
  759. return;
  760. }
  761. console.log(url)
  762. uni.navigateTo({
  763. url: url
  764. })
  765. },
  766. navToTest() {
  767. const course = {
  768. "companyId": 100,
  769. "companyUserId": 6806,
  770. "corpId": "ww5a88c4f879f204c5",
  771. "courseId": 63,
  772. "link": "1899022782092541952",
  773. "linkType": 3,
  774. "qwExternalId": 9914983,
  775. "qwUserId": "18931",
  776. "videoId": 409
  777. }
  778. uni.navigateTo({
  779. url: '/pages_course/video?course=' + JSON.stringify(course)
  780. })
  781. },
  782. golist(index) {
  783. if (index == 3) {
  784. uni.navigateTo({
  785. url: '/pages_shopping/index'
  786. })
  787. } else if (index == 0) {
  788. uni.navigateTo({
  789. url: '/pages_index/testList'
  790. })
  791. } else if (index == 1) {
  792. uni.navigateTo({
  793. url: '/pages_user/integralGoodsList'
  794. })
  795. } else if (index == 2) {
  796. uni.navigateTo({
  797. url: '/pages_order/inquirySelect?inquiryType=3'
  798. })
  799. }
  800. }
  801. }
  802. }
  803. </script>
  804. <style scoped lang="scss">
  805. .content {
  806. height: 100%;
  807. .cont {
  808. position: relative;
  809. width: 100%;
  810. display: flex;
  811. flex-direction: column;
  812. .bg {
  813. width: 100%;
  814. height: 450rpx;
  815. // background-color: #2BC7B9;
  816. // background: linear-gradient(#2BC7B9, #88e2da);
  817. position: fixed;
  818. image {
  819. border-radius: 0rpx 0rpx 50rpx 50rpx;
  820. width: 100%;
  821. height: 100%;
  822. }
  823. }
  824. .top-box {
  825. width: 100%;
  826. position: fixed;
  827. top: 0;
  828. left: 0;
  829. z-index: 1001;
  830. .top-title {
  831. height: 88upx;
  832. // line-height: 88upx;
  833. display: flex;
  834. flex-direction: column;
  835. align-items: flex-start;
  836. justify-content: center;
  837. margin-left: 15rpx;
  838. .name {
  839. font-size: 32upx;
  840. font-family: Source Han Sans CN;
  841. font-weight: bold;
  842. color: #2A2B2E;
  843. }
  844. .desc-box {
  845. display: flex;
  846. align-items: center;
  847. justify-content: flex-start;
  848. margin-top: 10rpx;
  849. image {
  850. width: 24rpx;
  851. height: 24rpx;
  852. }
  853. .desc {
  854. margin-left: 5rpx;
  855. font-size: 20upx;
  856. font-family: Source Han Sans CN;
  857. color: #626468;
  858. }
  859. }
  860. }
  861. .search {
  862. box-sizing: border-box;
  863. z-index: 101;
  864. padding: 15rpx;
  865. width: 100%;
  866. display: flex;
  867. align-items: center;
  868. justify-content: center;
  869. .search-box {
  870. flex: 1;
  871. margin-right: 10rpx;
  872. height: 60upx;
  873. line-height: 60upx;
  874. border-radius: 30upx;
  875. background-color: #fff;
  876. padding: 0 30upx;
  877. display: flex;
  878. align-items: center;
  879. transition: all .5s;
  880. .position-box {
  881. display: flex;
  882. justify-content: center;
  883. align-items: center;
  884. position: relative;
  885. &::after {
  886. content: "";
  887. position: absolute;
  888. width: 10rpx;
  889. height: 26upx;
  890. border-right: 1rpx solid rgba(0, 0, 0, 0.15);
  891. right: 0rpx;
  892. top: 17rpx;
  893. }
  894. .position-img {
  895. width: 30upx;
  896. height: 30upx;
  897. margin-right: 10rpx;
  898. margin-left: 2rpx;
  899. }
  900. .position-text {
  901. font-size: 24upx;
  902. width: 120upx;
  903. overflow: hidden; //超出的文本隐藏
  904. text-overflow: ellipsis; //溢出用省略号显示
  905. white-space: nowrap; //溢出不换行
  906. margin-right: 10rpx;
  907. font-family: PingFang SC;
  908. font-weight: 600;
  909. }
  910. }
  911. .img {
  912. width: 30upx;
  913. height: 30upx;
  914. margin-right: 10upx;
  915. margin-left: 10rpx;
  916. }
  917. .input-box {
  918. display: flex;
  919. font-size: 24upx;
  920. color: #878787;
  921. .input-text {
  922. position: relative;
  923. margin-right: 20rpx;
  924. &:not(:last-child)::after {
  925. content: "";
  926. position: absolute;
  927. width: 10rpx;
  928. height: 22upx;
  929. border-right: 1rpx solid rgba(0, 0, 0, 0.3);
  930. right: -11rpx;
  931. top: 21rpx;
  932. }
  933. }
  934. }
  935. input {
  936. flex: 1;
  937. font-size: 24upx;
  938. color: #000;
  939. }
  940. // .input-place{
  941. // font-size: 24upx;
  942. // color: #878787;
  943. // }
  944. }
  945. .msg {
  946. position: relative;
  947. width: 50rpx;
  948. height: 50rpx;
  949. image {
  950. width: 100%;
  951. height: 100%;
  952. }
  953. .contact-btn {
  954. top: 0;
  955. position: absolute;
  956. width: 100%;
  957. height: 100%;
  958. opacity: 0;
  959. }
  960. }
  961. }
  962. }
  963. .cont-box {
  964. z-index: 1000;
  965. .banner {
  966. margin-top: 20rpx;
  967. width: calc(100% - 40upx);
  968. margin: auto;
  969. border-radius: 20rpx;
  970. overflow: hidden;
  971. .swiper-item {
  972. width: 100%;
  973. height: 100%;
  974. }
  975. .swiper-item image {
  976. width: 100%;
  977. height: 100%;
  978. }
  979. }
  980. .btns {
  981. padding: 0 20upx;
  982. margin-top: 20rpx;
  983. width: 100%;
  984. display: flex;
  985. align-items: center;
  986. justify-content: center;
  987. .btn1 {
  988. position: relative;
  989. background: linear-gradient( 180deg, #51BFEF 0%, #22AAD5 100%);
  990. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  991. margin-right: 30rpx;
  992. border-radius: 15rpx;
  993. height: 180rpx;
  994. padding: 15rpx 30rpx;
  995. width: 50%;
  996. display: flex;
  997. align-items: center;
  998. justify-content: space-between;
  999. &:last-child {
  1000. margin-right: 0rpx;
  1001. }
  1002. image {
  1003. width: 104rpx;
  1004. height: 104rpx;
  1005. }
  1006. .mask {
  1007. position: absolute;
  1008. top: 0rpx;
  1009. right: 0rpx;
  1010. width: 100rpx;
  1011. height: 100rpx;
  1012. }
  1013. .title-box {
  1014. display: flex;
  1015. align-items: flex-start;
  1016. justify-content: center;
  1017. flex-direction: column;
  1018. .title {
  1019. font-size: 36upx;
  1020. font-weight: bold;
  1021. color: #ffffff;
  1022. }
  1023. .desc {
  1024. margin-top: 6rpx;
  1025. opacity: 0.8;
  1026. font-size: 26upx;
  1027. color: #ffffff;
  1028. }
  1029. }
  1030. }
  1031. .btn2 {
  1032. position: relative;
  1033. background: linear-gradient( 180deg, #40D4B6 0%, #05B6AC 100%);
  1034. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  1035. margin-right: 30rpx;
  1036. border-radius: 15rpx;
  1037. height: 180rpx;
  1038. padding: 15rpx 30rpx;
  1039. width: 50%;
  1040. display: flex;
  1041. align-items: center;
  1042. justify-content: space-between;
  1043. &:last-child {
  1044. margin-right: 0rpx;
  1045. }
  1046. image {
  1047. width: 104rpx;
  1048. height: 104rpx;
  1049. }
  1050. .mask {
  1051. position: absolute;
  1052. top: 0rpx;
  1053. right: 0rpx;
  1054. width: 100rpx;
  1055. height: 100rpx;
  1056. }
  1057. .title-box {
  1058. display: flex;
  1059. align-items: flex-start;
  1060. justify-content: center;
  1061. flex-direction: column;
  1062. .title {
  1063. font-size: 36upx;
  1064. font-weight: bold;
  1065. color: #ffffff;
  1066. }
  1067. .desc {
  1068. margin-top: 6rpx;
  1069. opacity: 0.8;
  1070. font-size: 26upx;
  1071. font-weight: bold;
  1072. color: #ffffff;
  1073. }
  1074. }
  1075. }
  1076. }
  1077. .modules {
  1078. .module {
  1079. .menus {
  1080. z-index: 101;
  1081. margin: 20rpx 15rpx 0rpx;
  1082. padding: 20rpx;
  1083. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  1084. background-color: #fff;
  1085. border-radius: 15rpx;
  1086. .title {
  1087. font-size: 32upx;
  1088. font-family: PingFang SC;
  1089. font-weight: bold;
  1090. color: #2A2B2E;
  1091. }
  1092. .menu-box {
  1093. display: flex;
  1094. align-items: center;
  1095. justify-content: flex-start;
  1096. flex-wrap: wrap;
  1097. .menu {
  1098. padding: 15rpx;
  1099. width: 50%;
  1100. display: flex;
  1101. flex-direction: column;
  1102. align-items: center;
  1103. justify-content: center;
  1104. flex-wrap: wrap;
  1105. .image {
  1106. width: 100%;
  1107. height: 180rpx;
  1108. background-size: 100% 100%;
  1109. border-radius: 16rpx;
  1110. .text-box {
  1111. margin-left: 20rpx;
  1112. margin-top: 20rpx;
  1113. [class^='image-title'] {
  1114. font-weight: bold;
  1115. font-size: 28rpx;
  1116. }
  1117. [class^='image-content'] {
  1118. font-size: 20rpx;
  1119. margin-top: 15rpx;
  1120. }
  1121. [class^='image-button'] {
  1122. font-size: 20rpx;
  1123. color: white;
  1124. border-radius: 20rpx;
  1125. width: 100rpx;
  1126. padding: 6rpx 20rpx;
  1127. margin-top: 15rpx;
  1128. }
  1129. .image-title1 {
  1130. color: #140300;
  1131. }
  1132. .image-title2 {
  1133. color: #140300;
  1134. }
  1135. .image-title3 {
  1136. color: #140300;
  1137. }
  1138. .image-title4 {
  1139. color: #140300;
  1140. }
  1141. .image-content1 {
  1142. color: #626468;
  1143. }
  1144. .image-content2 {
  1145. color: #626468;
  1146. }
  1147. .image-content3 {
  1148. color: #626468;
  1149. }
  1150. .image-content4 {
  1151. color: #626468;
  1152. }
  1153. .image-button1 {
  1154. background-color: #E9662C;
  1155. }
  1156. .image-button2 {
  1157. background-color: #32C8BE;
  1158. }
  1159. .image-button3 {
  1160. background-color: #208BED;
  1161. }
  1162. .image-button4 {
  1163. background-color: #ED8A24;
  1164. }
  1165. }
  1166. }
  1167. }
  1168. }
  1169. }
  1170. .depts {
  1171. z-index: 101;
  1172. margin: 20rpx 15rpx 0rpx;
  1173. padding: 20rpx;
  1174. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  1175. background-color: #fff;
  1176. border-radius: 15rpx;
  1177. .title {
  1178. font-size: 32upx;
  1179. font-family: PingFang SC;
  1180. font-weight: bold;
  1181. color: #2A2B2E;
  1182. }
  1183. .dept-box {
  1184. margin-top: 15rpx;
  1185. display: flex;
  1186. align-items: center;
  1187. justify-content: flex-start;
  1188. flex-wrap: wrap;
  1189. .dept {
  1190. padding: 15rpx 5rpx;
  1191. width: 20%;
  1192. display: flex;
  1193. flex-direction: column;
  1194. align-items: center;
  1195. justify-content: center;
  1196. .icon {
  1197. width: 58rpx;
  1198. height: 58rpx;
  1199. }
  1200. .title {
  1201. margin-top: 10rpx;
  1202. font-size: 24upx;
  1203. font-family: PingFang SC;
  1204. font-weight: 500;
  1205. color: #111111;
  1206. }
  1207. }
  1208. }
  1209. }
  1210. .doctor-articles {
  1211. z-index: 101;
  1212. margin: 20rpx 15rpx 0rpx;
  1213. padding: 20rpx;
  1214. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  1215. background-color: #fff;
  1216. border-radius: 15rpx;
  1217. .title-box {
  1218. display: flex;
  1219. flex-direction: row;
  1220. align-items: center;
  1221. justify-content: space-between;
  1222. .title {
  1223. font-size: 32upx;
  1224. font-family: PingFang SC;
  1225. font-weight: bold;
  1226. color: #111111;
  1227. }
  1228. .more {
  1229. display: flex;
  1230. align-items: center;
  1231. justify-content: flex-end;
  1232. .text {
  1233. font-size: 24rpx;
  1234. font-family: PingFang SC;
  1235. color: #9B9B9B;
  1236. }
  1237. image {
  1238. margin-left: 10rpx;
  1239. width: 15rpx;
  1240. height: 20rpx;
  1241. }
  1242. }
  1243. }
  1244. .article-box {
  1245. padding: 20rpx 0rpx;
  1246. overflow-x: auto;
  1247. overflow-y: auto;
  1248. box-sizing: border-box;
  1249. display: flex;
  1250. .article {
  1251. width: 300rpx;
  1252. margin-right: 20rpx;
  1253. background: #f9f8fe;
  1254. display: flex;
  1255. flex-direction: column;
  1256. align-items: flex-start;
  1257. justify-content: flex-start;
  1258. background-color: white;
  1259. &:last-child {
  1260. margin-right: 0rpx;
  1261. }
  1262. .image-box {
  1263. width: 300rpx;
  1264. height: 400rpx;
  1265. position: relative;
  1266. border-radius: 20rpx;
  1267. image {
  1268. border-radius: 20rpx;
  1269. width: 300rpx;
  1270. height: 400rpx;
  1271. }
  1272. .views {
  1273. position: absolute;
  1274. top: 0rpx;
  1275. left: 0rpx;
  1276. padding: 5rpx 10rpx;
  1277. background: rgba(0, 0, 0, 0.25);
  1278. border-radius: 12rpx 0px 12rpx 0px;
  1279. opacity: 1;
  1280. font-size: 20rpx;
  1281. font-family: PingFang SC-Bold, PingFang SC;
  1282. font-weight: bold;
  1283. color: #FFFFFF;
  1284. }
  1285. .doctor {
  1286. margin: 10rpx;
  1287. display: flex;
  1288. align-items: center;
  1289. justify-content: flex-start;
  1290. position: absolute;
  1291. bottom: 0rpx;
  1292. left: 0rpx;
  1293. image {
  1294. border-radius: 50%;
  1295. width: 64rpx;
  1296. height: 64rpx;
  1297. }
  1298. .right {
  1299. width: 200rpx;
  1300. margin-left: 10rpx;
  1301. display: flex;
  1302. flex-direction: column;
  1303. align-items: flex-start;
  1304. justify-content: space-between;
  1305. .doc-name {
  1306. width: 200rpx;
  1307. font-size: 30rpx;
  1308. font-weight: bold;
  1309. font-family: PingFang SC;
  1310. color: #fff;
  1311. }
  1312. .doc-position {
  1313. width: 100%;
  1314. font-size: 28rpx;
  1315. font-family: PingFang SC;
  1316. color: #fff;
  1317. font-weight: bold;
  1318. opacity: 0.8;
  1319. }
  1320. }
  1321. }
  1322. }
  1323. .article-title-box {
  1324. width: 100%;
  1325. margin-top: 10rpx;
  1326. display: flex;
  1327. align-items: center;
  1328. justify-content: flex-start;
  1329. background-color: white;
  1330. .article-title {
  1331. font-size: 30rpx;
  1332. font-weight: bold;
  1333. font-family: PingFang SC;
  1334. color: #2A2B2E;
  1335. }
  1336. }
  1337. }
  1338. }
  1339. }
  1340. .doctors {
  1341. z-index: 101;
  1342. margin: 20rpx 15rpx;
  1343. padding: 20rpx;
  1344. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  1345. background-color: white;
  1346. border-radius: 15rpx;
  1347. .doctor-box {
  1348. background-color: white;
  1349. .doctor {
  1350. background-color: white;
  1351. .right {
  1352. .tag {
  1353. display: flex;
  1354. .tag-item {
  1355. background-color: #E4EFFF;
  1356. color: #3D74F7;
  1357. font-size: 22rpx;
  1358. padding: 6rpx 12rpx;
  1359. margin-right: 10rpx;
  1360. border-radius: 4rpx;
  1361. margin-top: 20rpx;
  1362. }
  1363. }
  1364. }
  1365. }
  1366. }
  1367. .title-box {
  1368. display: flex;
  1369. flex-direction: row;
  1370. align-items: center;
  1371. justify-content: space-between;
  1372. .doc-price {}
  1373. .title {
  1374. font-size: 32upx;
  1375. font-family: PingFang SC;
  1376. font-weight: bold;
  1377. color: #111111;
  1378. }
  1379. .more {
  1380. display: flex;
  1381. align-items: center;
  1382. justify-content: flex-end;
  1383. .text {
  1384. font-size: 24rpx;
  1385. font-family: PingFang SC;
  1386. color: #9B9B9B;
  1387. }
  1388. image {
  1389. margin-left: 10rpx;
  1390. width: 15rpx;
  1391. height: 20rpx;
  1392. }
  1393. }
  1394. }
  1395. }
  1396. .articles {
  1397. z-index: 101;
  1398. margin: 20rpx 15rpx;
  1399. padding: 20rpx;
  1400. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  1401. background-color: #fff;
  1402. border-radius: 15rpx;
  1403. .title-box {
  1404. display: flex;
  1405. flex-direction: row;
  1406. align-items: center;
  1407. justify-content: space-between;
  1408. .title {
  1409. font-size: 32upx;
  1410. font-family: PingFang SC;
  1411. font-weight: bold;
  1412. color: #111111;
  1413. }
  1414. .more {
  1415. display: flex;
  1416. align-items: center;
  1417. justify-content: flex-end;
  1418. .text {
  1419. font-size: 24rpx;
  1420. font-family: PingFang SC;
  1421. color: #9B9B9B;
  1422. }
  1423. image {
  1424. margin-left: 10rpx;
  1425. width: 15rpx;
  1426. height: 20rpx;
  1427. }
  1428. }
  1429. }
  1430. .article-box {
  1431. margin-top: 15rpx;
  1432. padding: 20rpx 0rpx 0rpx;
  1433. display: flex;
  1434. flex-direction: column;
  1435. align-items: flex-start;
  1436. justify-content: flex-start;
  1437. .item {
  1438. width: 100%;
  1439. margin-bottom: 20rpx;
  1440. display: flex;
  1441. align-items: flex-start;
  1442. justify-content: flex-start;
  1443. &:last-child {
  1444. margin-bottom: 0rpx;
  1445. }
  1446. .left {
  1447. flex: 1;
  1448. height: 160rpx;
  1449. margin-right: 15rpx;
  1450. display: flex;
  1451. flex-direction: column;
  1452. align-items: flex-start;
  1453. justify-content: space-between;
  1454. .title {
  1455. font-size: 28upx;
  1456. font-family: PingFang SC;
  1457. font-weight: bold;
  1458. color: #111111;
  1459. }
  1460. .views {
  1461. font-size: 24upx;
  1462. font-family: PingFang SC;
  1463. color: #9a9a9c;
  1464. }
  1465. }
  1466. .right {
  1467. image {
  1468. border-radius: 10rpx;
  1469. width: 220rpx;
  1470. height: 160rpx;
  1471. border: 1px solid #eeeeee;
  1472. }
  1473. }
  1474. }
  1475. }
  1476. }
  1477. .packages {
  1478. z-index: 101;
  1479. margin: 20rpx 15rpx;
  1480. padding: 20rpx;
  1481. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  1482. background-color: #fff;
  1483. border-radius: 15rpx;
  1484. .title-box {
  1485. display: flex;
  1486. flex-direction: row;
  1487. align-items: center;
  1488. justify-content: space-between;
  1489. .title {
  1490. font-size: 32upx;
  1491. font-family: PingFang SC;
  1492. font-weight: bold;
  1493. color: #111111;
  1494. }
  1495. .more {
  1496. display: flex;
  1497. align-items: center;
  1498. justify-content: flex-end;
  1499. .text {
  1500. font-size: 24rpx;
  1501. font-family: PingFang SC;
  1502. color: #9B9B9B;
  1503. }
  1504. image {
  1505. margin-left: 10rpx;
  1506. width: 15rpx;
  1507. height: 20rpx;
  1508. }
  1509. }
  1510. }
  1511. .package-box {
  1512. padding: 20rpx 0rpx 0rpx;
  1513. display: flex;
  1514. align-items: flex-start;
  1515. justify-content: flex-start;
  1516. flex-wrap: wrap;
  1517. .item {
  1518. width: calc(50% - 20rpx);
  1519. border-radius: 15rpx;
  1520. margin: 10rpx;
  1521. display: flex;
  1522. flex-direction: column;
  1523. align-items: flex-start;
  1524. justify-content: flex-start;
  1525. &:last-child {}
  1526. .top {
  1527. width: 100%;
  1528. height: 300rpx;
  1529. image {
  1530. border-radius: 15rpx 15rpx 0rpx 0rpx;
  1531. width: 100%;
  1532. height: 300rpx;
  1533. }
  1534. }
  1535. .bottom {
  1536. width: 100%;
  1537. margin-top: 15rpx;
  1538. .title {
  1539. font-weight: bold;
  1540. font-size: 28upx;
  1541. font-family: PingFang SC;
  1542. color: #111111;
  1543. }
  1544. .price-box {
  1545. margin-top: 10rpx;
  1546. display: flex;
  1547. align-items: center;
  1548. justify-content: space-between;
  1549. width: 100%;
  1550. .price {
  1551. padding: 5rpx 10rpx;
  1552. border-radius: 30rpx;
  1553. font-size: 20upx;
  1554. font-family: PingFang SC;
  1555. color: #FB4F43;
  1556. font-weight: 600;
  1557. .price-one {
  1558. font-size: 32upx;
  1559. }
  1560. }
  1561. .count {
  1562. font-size: 26upx;
  1563. font-family: PingFang SC;
  1564. color: #757575;
  1565. }
  1566. }
  1567. }
  1568. }
  1569. }
  1570. }
  1571. }
  1572. }
  1573. }
  1574. }
  1575. }
  1576. .pricebutton {
  1577. background-color: #F9F4F0;
  1578. color: #96663D;
  1579. display: inline-block;
  1580. padding: 10rpx 26rpx;
  1581. border-radius: 40rpx;
  1582. text {
  1583. color: #EA2C2C;
  1584. font-weight: bold;
  1585. }
  1586. span {
  1587. margin-right: 15rpx;
  1588. font-weight: bold;
  1589. }
  1590. }
  1591. </style>