index.vue 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648
  1. <template>
  2. <view class="content">
  3. <!-- 背景图片 -->
  4. <image class="bg" src="https://kuanyitang-1317640934.cos.ap-shanghai.myqcloud.com/shop04/hp_top_bg.png" mode=""></image>
  5. <view>
  6. <view class="top-inner">
  7. <view class="fixed-top-box" :style="{ background: bgColor }">
  8. <!-- 这里是状态栏 -->
  9. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  10. <view class="top-title">
  11. <view class="name">宽益堂九
  12. </view>
  13. <!-- <view class="dot">•</view><view class="sub-name">七彩互联网医院</view> -->
  14. </view>
  15. <!-- 搜索框、购物车、客服 -->
  16. <view class="func-cont">
  17. <view class="search-cont" :style="{width:userinfoa.isShow==0 || isuser==true?'633rpx':''}">
  18. <image class="icon-search"
  19. src="https://kuanyitang-1317640934.cos.ap-shanghai.myqcloud.com/shop04/search.png" mode="">
  20. </image>
  21. <input type="text" value="" placeholder="请输入产品名称"
  22. placeholder-style="font-size:28rpx;color:#BBBBBB;font-family: PingFang SC;"
  23. @click="toSearch" />
  24. </view>
  25. <!-- 购物车 -->
  26. <uni-badge size="small" :text="cartCount" absolute="rightTop" type="error"
  27. v-show="userinfoa.isShow==1&&isuser==false">
  28. <view class="img-item" @click="goAuthUrl('../shopping/cart')">
  29. <image src="https://kuanyitang-1317640934.cos.ap-shanghai.myqcloud.com/shop04/cart_wihte.png"
  30. mode=""></image>
  31. </view>
  32. </uni-badge>
  33. <view class="img-item" style="position: relative;">
  34. <image src="https://kuanyitang-1317640934.cos.ap-shanghai.myqcloud.com/shop04/customer.png" mode="">
  35. </image>
  36. <button class="contact-btn" open-type="contact"></button>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <!-- 头部间距 -->
  42. <view style="padding-bottom:220rpx">
  43. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  44. </view>
  45. <!-- 轮播图 -->
  46. <view class="banner-box">
  47. <view class="inner">
  48. <swiper class="swiper" :indicator-dots="true" :circular="true" :autoplay="true" :interval="3000"
  49. :duration="1000" indicator-color="rgba(255, 255, 255, 0.6)" indicator-active-color="#ffffff">
  50. <swiper-item class="swiper-item" v-for="(item,index) in advList" :key="index"
  51. @click="handleAdvClick(item)">
  52. <image :src="item.imageUrl" mode=""></image>
  53. </swiper-item>
  54. </swiper>
  55. </view>
  56. </view>
  57. <!-- 菜单 -->
  58. <view class="menu-content">
  59. <view class="menu-box">
  60. <Menu :list="menus" @menuClick="menuClick" v-if="menus.length>0" style="width:100%;"></Menu>
  61. </view>
  62. </view>
  63. </view>
  64. <!-- <view class="open-class bgf radius12">
  65. <view class="title-box">
  66. <text class="title">健康大讲堂</text>
  67. <view class="more" @click="goClassList(1)">
  68. <text>查看全部</text>
  69. <image src="https://kuanyitang-1317640934.cos.ap-shanghai.myqcloud.com/shop04/toright.png"></image>
  70. </view>
  71. </view>
  72. <view class="justify-start">
  73. <view class="class-item" @click="goClass(item.courseId,1)" v-for="(item, index) in classList"
  74. :key="index">
  75. <view class="img-box">
  76. <image :src="item.imgUrl || 'https://kuanyitang-1317640934.cos.ap-shanghai.myqcloud.com/shop04/no-img.png'" ></image>
  77. </view>
  78. <view>{{item.courseName}}</view>
  79. </view>
  80. </view>
  81. </view> -->
  82. <view class="modules">
  83. <view class="module">
  84. <!--养生有道-->
  85. <!-- <view class="depts">
  86. <view class="title">养生有道</view>
  87. <view class="dept-box">
  88. <view @click="yangshengClick(item)" class="dept" :key="index" v-for="(item,index) in yangshengs" >
  89. <image class="icon" :src="item.icon"></image>
  90. <view class="title" >{{item.title}} </view>
  91. </view>
  92. </view>
  93. </view>
  94. -->
  95. <!-- <view class="doctor-articles" >
  96. <view class="title-box">
  97. <view class="title">养生讲堂</view>
  98. <view class="more" @click="navTo('/pages_index/index/doctorArticleList')" >
  99. <view class="text">更多</view>
  100. <image src="https://kuanyitang-1317640934.cos.ap-shanghai.myqcloud.com/shop04/arrow_gray.png"></image>
  101. </view>
  102. </view>
  103. <scroll-view :scroll-x="true" style="white-space: nowrap;">
  104. <view class="article-box" >
  105. <view class="article" @click="navTo('/pages_index/index/doctorArticleDetails?articleId='+item.articleId)" v-for="(item,index) in doctocArticles" :key="index">
  106. <view class="image-box">
  107. <image mode="aspectFill" :src="item.imageUrl"></image>
  108. <view class="views">
  109. {{item.views}}人观看
  110. </view>
  111. <view class="doctor">
  112. <image mode="aspectFill" :src="item.avatar"></image>
  113. <view class="right">
  114. <view class="doc-name ellipsis">{{item.doctorName}}</view>
  115. <view class="doc-position ellipsis">{{item.position}}</view>
  116. </view>
  117. </view>
  118. </view>
  119. <view class="article-title-box">
  120. <view class="article-title ellipsis">{{item.title}}</view>
  121. </view>
  122. </view>
  123. </view>
  124. </scroll-view>
  125. </view> -->
  126. <!--养生干货-->
  127. <!-- <view class="articles" >
  128. <view class="title-box">
  129. <view class="title">养生干货</view>
  130. <view class="more" @click="navTo('/pages_index/index/articleList')">
  131. <view class="text">更多</view>
  132. <image src="https://kuanyitang-1317640934.cos.ap-shanghai.myqcloud.com/shop04/arrow_gray.png"></image>
  133. </view>
  134. </view>
  135. <view class="article-box" v-if="articles.length>0">
  136. <view class="item" :key="index" @click="navTo('/pages_index/index/articleDetails?articleId='+item.articleId)" v-for="(item,index) in articles">
  137. <view class="left">
  138. <view class="title">
  139. {{item.title}}
  140. </view>
  141. <view class="views">
  142. 浏览量 {{item.views}}
  143. </view>
  144. </view>
  145. <view class="right">
  146. <image :src="item.imageUrl"></image>
  147. </view>
  148. </view>
  149. </view>
  150. </view> -->
  151. </view>
  152. </view>
  153. <view class="index-cont">
  154. <!-- 热门榜单 -->
  155. <!-- <NewProduct :detail="newProductList" /> -->
  156. <HotProduct :detail="hotProductList" />
  157. <!-- 健康百科 -->
  158. <!-- <view class="pub-item" style="margin-top: 20rpx;" >
  159. <view class="pub-title-box">
  160. <text class="left">健康百科</text>
  161. <view class="right" @click="switchTo('../healthy/index')">
  162. <text class="text">更多</text>
  163. <image src="https://kuanyitang-1317640934.cos.ap-shanghai.myqcloud.com/shop04/arrow_gray.png" mode=""></image>
  164. </view>
  165. </view>
  166. <view class="inner">
  167. <view class="pub-tab-box">
  168. <view class="tab-inner">
  169. <view
  170. v-for="(item,index) in articleCateList"
  171. :key="index"
  172. :class="item.cateId == cateId?'item active':'item'"
  173. @click="articleCateChange(item)">
  174. <view class="text">
  175. {{ item.cateName }}
  176. <image v-show="item.cateId == cateId" class="tab-bg" src="https://kuanyitang-1317640934.cos.ap-shanghai.myqcloud.com/shop04/tab_bg.png" mode=""></image>
  177. </view>
  178. </view>
  179. </view>
  180. <image class="right-mask" src="https://kuanyitang-1317640934.cos.ap-shanghai.myqcloud.com/shop04/mask.png" mode=""></image>
  181. </view>
  182. <view class="know-list">
  183. <view class="item" v-for="(item,index) in articleList" :key="index" @click="showArticle(item)">
  184. <view class="left">
  185. <view class="title ellipsis2">{{ item.title }}</view>
  186. <view class="info-box">
  187. <view class="readers">
  188. <view class="head-box" v-if="item.viewsList!=null&&item.viewsList.length>0">
  189. <view class="head" v-for="(subitem,j) in item.viewsList" :key="j" v-if="subitem!=null" >
  190. <image :src="subitem.avatar==null?'https://kuanyitang-1317640934.cos.ap-shanghai.myqcloud.com/shop04/detault_head.jpg':subitem.avatar" mode=""></image>
  191. </view>
  192. </view>
  193. <view class="readings">
  194. <image class="eye" src="https://kuanyitang-1317640934.cos.ap-shanghai.myqcloud.com/shop04/eye.png" mode=""></image>
  195. <text class="num">{{item.views}}</text>
  196. </view>
  197. </view>
  198. <view class="time">{{item.publishTime}}</view>
  199. </view>
  200. </view>
  201. <view class="right">
  202. <image :src="item.imageUrl" mode="aspectFill"></image>
  203. </view>
  204. </view>
  205. </view>
  206. </view>
  207. </view> -->
  208. <!-- 精选药品 -->
  209. <TuiProduct ref="tuiProduct" />
  210. </view>
  211. <!-- 限时消息 -->
  212. <!-- <view class="message-box" >
  213. <view class="left">
  214. <image src="https://kuanyitang-1317640934.cos.ap-shanghai.myqcloud.com/shop04/close24.png" mode="" @click="closeMsg"></image>
  215. <view class="text ellipsis">关注公众号了解更新</view>
  216. </view>
  217. <view class="btn">查看</view>
  218. </view> -->
  219. <!-- #ifdef MP-WEIXIN -->
  220. <view class="official-account">
  221. <official-account @load="bindload" @error="binderror"></official-account>
  222. </view>
  223. <!-- #endif -->
  224. <view class="popup-box" v-if="activityShow">
  225. <view class="info-mask" @tap="closeActivity()"></view>
  226. <view class="info-form">
  227. <image :src="activity.logoUrl" @tap="showActivity()" />
  228. </view>
  229. </view>
  230. <z-modal :show="tuiModalControl" placeholderText="请输入邀请码" :btnGroup="btnGroup" :contentType="2"
  231. titleText="填写邀请码" @cancle="cancleTui" @sure="submitTui"></z-modal>
  232. <!-- <tabbar :actindex="0"></tabbar> -->
  233. </view>
  234. </template>
  235. <script>
  236. import {
  237. courseList,
  238. courseListB
  239. } from '@/api/class.js'
  240. import zModal from '@/components/z-modal/z-modal.vue'
  241. import {
  242. getStoreActivity
  243. } from '@/api/activity.js'
  244. import {
  245. getDepartmentList
  246. } from '@/api/doctorOrder.js'
  247. import {
  248. getMenu,
  249. getCanvas,
  250. getIndexData,
  251. getTuiDoctor,
  252. getTuiArticle,
  253. getTuiDoctorOrder,
  254. getCartCount,
  255. getpro
  256. } from '@/api/index'
  257. import {
  258. getDoctorArticleList
  259. } from '@/api/doctorArticle.js'
  260. import {
  261. getArticleList
  262. } from '@/api/article.js'
  263. import {
  264. getStoreConfig
  265. } from '@/api/common'
  266. // import tabBg from "https://kuanyitang-1317640934.cos.ap-shanghai.myqcloud.com/shop04/tab_bg.png"
  267. import freeAudio from '@/components/chengpeng-audio/free-audio.vue'
  268. import Menu from '@/components/Menu.vue'
  269. import HotProduct from './components/HotProduct.vue'
  270. import NewProduct from './components/NewProduct.vue'
  271. import TuiProduct from '@/components/tuiProduct.vue'
  272. import {
  273. getUserInfo,
  274. bindPromoter
  275. } from '@/api/user'
  276. export default {
  277. components: {
  278. zModal,
  279. freeAudio,
  280. Menu,
  281. HotProduct,
  282. NewProduct,
  283. TuiProduct
  284. },
  285. data() {
  286. return {
  287. classList: [],
  288. btnGroup: [{
  289. text: '取消',
  290. color: '#FFFFFF',
  291. bgColor: '#999999',
  292. width: '150rpx',
  293. height: '80rpx',
  294. shape: 'fillet',
  295. eventName: 'cancle'
  296. }, {
  297. text: '确定',
  298. color: '#FFFFFF',
  299. bgColor: '#C39A58',
  300. width: '150rpx',
  301. height: '80rpx',
  302. shape: 'fillet',
  303. eventName: 'sure'
  304. }],
  305. tuiModalControl: false,
  306. activity: null,
  307. activityShow: false,
  308. newProductList: [],
  309. hotProductList: [],
  310. tuiProductList: [],
  311. menus: [],
  312. canvas: [],
  313. allDoctorTitle: "全部医生",
  314. topLen: 0,
  315. deptId: 0,
  316. depts: [],
  317. docTab: 1,
  318. top: 0,
  319. cartCount: 0,
  320. doctorOrderList: [],
  321. orderType: 0,
  322. cateId: null,
  323. articleList: [],
  324. advList: [],
  325. doctorList: [],
  326. articleCateList: [],
  327. doctocArticles: [], //养生讲堂
  328. articles: [], //养生干货
  329. // 状态栏的高度
  330. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  331. tabBg: "https://kuanyitang-1317640934.cos.ap-shanghai.myqcloud.com/shop04/tab_bg.png", // tab切换背景
  332. // 问诊案例类型
  333. orderTypes: [{
  334. name: '全部',
  335. id: 0,
  336. }, {
  337. name: '图文',
  338. id: 1,
  339. }, {
  340. name: '语音',
  341. id: 2,
  342. }],
  343. // 限时消息是否显示
  344. messageShow: true,
  345. yangshengs: [{
  346. id: "1",
  347. title: "药膳食疗",
  348. page: "/pages_index/index/medicatedFoodList",
  349. icon: "https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/3cfbd47911cf4753aa9497eac500728d.png"
  350. },
  351. {
  352. id: "2",
  353. title: "经络穴位",
  354. page: "/pages_index/index/vesselList",
  355. icon: "https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/e93536a9dc1a4f8ca09545097b12fdea.png"
  356. },
  357. {
  358. id: "3",
  359. title: "问答专区",
  360. page: "/pages_index/index/questionsList",
  361. icon: "https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/e896972bd56f4e358188af36f2c5af42.png"
  362. },
  363. {
  364. id: "4",
  365. title: "疾病",
  366. page: "/pages_index/index/diseaseList",
  367. icon: "https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/d6f1851cccae414b8baf2ba07782f91b.png"
  368. },
  369. {
  370. id: "5",
  371. title: "中药图解",
  372. page: "/pages_index/index/chineseMedicineList",
  373. icon: "https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/ff43572d0d004285b5a3b0ef2663c471.png"
  374. },
  375. {
  376. id: "6",
  377. title: "名方今用",
  378. page: "/pages_index/index/famousPrescribeList",
  379. icon: "https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/45db770e58c34963b0d2ba24a958b617.png"
  380. },
  381. {
  382. id: "7",
  383. title: "康复医案",
  384. page: "/pages_index/index/doctorArticleList",
  385. icon: "https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/e793942797b24035b51f94d894bdfa0b.png"
  386. },
  387. {
  388. id: "8",
  389. title: "更多",
  390. page: "",
  391. icon: "https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/3ee6160289914ee4a8126573fe4dc0ae.png"
  392. }
  393. ],
  394. userinfoa: [],
  395. isuser: false,
  396. menvKey: [],
  397. classListb:{}
  398. }
  399. // this.getStoreActivity();
  400. },
  401. onLoad(option) {
  402. if (option.userCode != null) {
  403. uni.setStorageSync('userCode', option.userCode);
  404. if (this.utils.checkLoginState()) {
  405. this.getUserInfo();
  406. }
  407. }
  408. if (option.hasOwnProperty('q') && option.q) {
  409. // 通过下面这步解码,可以拿到url的值
  410. const url = decodeURIComponent(option.q)
  411. this.url = url;
  412. // // 对url中携带的参数提取处理
  413. const obj = this.utils.urlToObj(url)
  414. uni.setStorageSync('userCode', obj.userCode);
  415. if (this.utils.checkLoginState()) {
  416. this.getUserInfo();
  417. }
  418. }
  419. // this.getStoreActivity()
  420. },
  421. // 暂停所有音频(一般用于页面切换时停止正在播放的音频)
  422. onUnload() { //普通页面在 onUnload 生命周期中执行
  423. uni.$emit('stop')
  424. },
  425. onHide() { //tabBar页面在onHide生命周期中执行
  426. uni.$emit('stop')
  427. },
  428. onPageScroll(e) {
  429. //console.log(e)
  430. this.top = e.scrollTop;
  431. },
  432. mounted() {
  433. this.getCourseList()
  434. //this.getDepartmentList();
  435. },
  436. onShareAppMessage(res) {
  437. return {
  438. title: '宽益堂九-您的专属健康解决方案',
  439. path: `/pages/common/launch`,
  440. imageUrl: this.$store.state.imgpath+'/app/image/logo.png'//分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  441. }
  442. },
  443. onReachBottom() {
  444. // console.log("onReachBottom")
  445. this.$refs.tuiProduct.getTuiProducts();
  446. },
  447. //分享到朋友圈
  448. onShareTimeline(res) {
  449. return {
  450. title: '宽益堂九-您的专属健康解决方案',
  451. query: '', //页面参数
  452. imageUrl: this.$store.state.imgpath+'/app/image/logo.png'//分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  453. }
  454. },
  455. computed: {
  456. // 计算属性的 getter
  457. bgColor: function() {
  458. var top = this.top / 30;
  459. return 'rgba(253,205,145, ' + top + ')';
  460. },
  461. imgPath() {
  462. return this.$store.state.imgpath
  463. },
  464. },
  465. onShow() {
  466. this.getMenu();
  467. this.getIndexData()
  468. //this.getTuiDoctorOrder();
  469. // console.log(uni.getStorageSync('isLocation'))
  470. // if(uni.getStorageSync('isLocation')==""){
  471. // this.getLocation();
  472. // }
  473. if (uni.getStorageSync('AppToken')) {
  474. this.getUserInfo()
  475. } else {
  476. this.isuser = true
  477. }
  478. if (this.utils.checkLoginState()) {
  479. this.getCartCount();
  480. }
  481. this.getStoreConfig();
  482. //this.getTuiDoctor()
  483. this.getCanvas();
  484. this.getDoctorArticleList();
  485. this.getArticleList();
  486. this.getshowmanv()
  487. },
  488. methods: {
  489. getCourseList() {
  490. courseList().then(res => {
  491. if (res.code == 200) {
  492. console.log('公域',res.data)
  493. this.classList = res.data.slice(0, 3)
  494. } else {
  495. uni.hideLoading();
  496. uni.showToast({
  497. title: res.msg,
  498. icon: 'none'
  499. });
  500. }
  501. })
  502. },
  503. goClass(id,type) {
  504. // console.log(id)
  505. uni.navigateTo({
  506. url:'/pages_course/learn?courseId='+id+'&type='+type
  507. })
  508. },
  509. goClassList(type) {
  510. uni.navigateTo({
  511. url: '/pages_course/teacherClassroom?type='+type
  512. })
  513. },
  514. getshowmanv() {
  515. const data = {
  516. key: "store.appShow"
  517. }
  518. getpro(data).then(res => {
  519. this.menvKey = JSON.parse(res.data)
  520. // console.log('排序', this.menvKey[0])
  521. })
  522. },
  523. getUserInfo() {
  524. getUserInfo().then(
  525. res => {
  526. if (res.code == 200) {
  527. if (res.user != null) {
  528. this.userinfoa = res.user
  529. // if(res.user.isPromoter==null||res.user.isPromoter==0){
  530. // this.tuiModalControl=true
  531. // }
  532. }
  533. } else {
  534. uni.showToast({
  535. icon: 'none',
  536. title: "请求失败",
  537. });
  538. }
  539. },
  540. rej => {}
  541. );
  542. },
  543. cancleTui(e) {
  544. this.tuiModalControl = false
  545. },
  546. submitTui(e) {
  547. // console.log(e)
  548. if (e.inputText == null || e.inputText == "") {
  549. uni.showToast({
  550. icon: 'none',
  551. title: "请输入邀请码",
  552. });
  553. return;
  554. }
  555. var data = {
  556. userCode: e.inputText
  557. };
  558. bindPromoter(data).then(
  559. res => {
  560. if (res.code == 200) {
  561. uni.showToast({
  562. icon: 'none',
  563. title: res.msg,
  564. });
  565. this.tuiModalControl = false
  566. } else {
  567. uni.showToast({
  568. icon: 'none',
  569. title: res.msg,
  570. });
  571. }
  572. },
  573. rej => {}
  574. );
  575. },
  576. bindload: function(detail) {},
  577. binderror: function(detail) {},
  578. closeActivity() {
  579. this.activityShow = false;
  580. // uni.setStorageSync(this.activity.activityId,null);
  581. },
  582. getStoreActivity() {
  583. let data = {}
  584. getStoreActivity(data).then(res => {
  585. this.activity = res.activity;
  586. if (this.activity != null) {
  587. // if(uni.getStorageSync(this.activity.activityId)!=null)
  588. // {
  589. // uni.setStorageSync(this.activity.activityId,1);
  590. // this.activityShow=true;
  591. // }
  592. // else{
  593. // this.activityShow=false;
  594. // }
  595. this.activityShow = true;
  596. } else {
  597. this.activityShow = false;
  598. }
  599. })
  600. },
  601. showActivity() {
  602. this.activityShow = false;
  603. uni.navigateTo({
  604. url: '/pages_shopping/shopping/activityDetails?activityId=' + this.activity.activityId
  605. })
  606. },
  607. menuClick(item) {
  608. if (item.linkType == 1) {
  609. if (item.linkUrl == "/pages/shopping/index") {
  610. uni.switchTab({
  611. url: item.linkUrl
  612. })
  613. } else if (item.linkUrl == "/pages/healthy/index") {
  614. uni.switchTab({
  615. url: item.linkUrl
  616. })
  617. } else {
  618. uni.navigateTo({
  619. url: item.linkUrl
  620. })
  621. }
  622. } else if (item.linkType == 0) {
  623. uni.showToast({
  624. icon: 'none',
  625. title: "开发中...",
  626. });
  627. }
  628. },
  629. goDev() {
  630. uni.showToast({
  631. icon: 'none',
  632. title: "开发中...",
  633. });
  634. },
  635. handleAdvClick(item) {
  636. console.log(item);
  637. if (item.showType == 1) {
  638. uni.setStorageSync('url', item.advUrl);
  639. uni.navigateTo({
  640. url: "h5"
  641. })
  642. } else if (item.showType == 2) {
  643. uni.navigateTo({
  644. url: item.advUrl
  645. })
  646. } else if (item.showType == 3) {
  647. uni.setStorageSync('content', item.content);
  648. uni.navigateTo({
  649. url: "content"
  650. })
  651. }
  652. },
  653. deptChange(item) {
  654. this.deptId = item.departmentId;
  655. this.getTuiDoctor();
  656. },
  657. getMenu() {
  658. this.menus = [];
  659. getMenu().then(res => {
  660. if (res.code == 200) {
  661. // for (var i = 0; i < res.data.length; i++) {
  662. // const item=res.data[i];
  663. // if(item.menuName.indexOf('健康百科')>=0 || item.menuName.indexOf('健康自测')>=0
  664. // || item.menuName.indexOf('健康档案')>=0 ||item.menuName.indexOf('用药咨询')>=0){
  665. // this.menus.push(item);
  666. // }
  667. // }
  668. // console.log('图标', res.data)
  669. // const menuNames = ['健康百科', '健康自测', '健康档案', '药品', '领券中心', '会员'];
  670. this.menus = res.data
  671. // this.menus = res.data.filter(item => menuNames.some(menuName => item.menuName.includes(menuName)) );
  672. } else {
  673. }
  674. });
  675. },
  676. getCanvas() {
  677. getCanvas().then(res => {
  678. if (res.code == 200) {
  679. // console.log(res.data)
  680. this.canvas = JSON.parse(res.data.json)
  681. }
  682. });
  683. },
  684. getDepartmentList() {
  685. this.depts = [];
  686. getDepartmentList().then(res => {
  687. if (res.code == 200) {
  688. var allDept = {
  689. departmentId: 0,
  690. departmentName: "全部"
  691. }
  692. this.depts.push(allDept);
  693. this.depts = this.depts.concat(res.data);
  694. } else {
  695. uni.showToast({
  696. icon: 'none',
  697. title: "请求失败",
  698. });
  699. }
  700. });
  701. },
  702. getTuiDoctor() {
  703. let data = {
  704. departmentId: this.deptId,
  705. doctorType: this.docTab
  706. };
  707. getTuiDoctor(data).then(
  708. res => {
  709. if (res.code == 200) {
  710. this.doctorList = res.data;
  711. } else {
  712. uni.showToast({
  713. icon: 'none',
  714. title: "请求失败",
  715. });
  716. }
  717. },
  718. rej => {}
  719. );
  720. },
  721. docTabChange(val) {
  722. if (val == 1) {
  723. this.allDoctorTitle = "全部医师"
  724. }
  725. if (val == 2) {
  726. this.allDoctorTitle = "全部药师"
  727. }
  728. if (val == 3) {
  729. this.allDoctorTitle = "全部营养师"
  730. }
  731. this.docTab = val;
  732. this.getTuiDoctor();
  733. },
  734. showImg(urls) {
  735. var imgArr = urls.split(',');
  736. //预览图片
  737. uni.previewImage({
  738. urls: imgArr,
  739. current: imgArr[0]
  740. });
  741. },
  742. getStoreConfig() {
  743. getStoreConfig().then(
  744. res => {
  745. if (res.code == 200) {
  746. uni.setStorageSync('config', JSON.stringify(res.data));
  747. }
  748. },
  749. rej => {}
  750. );
  751. },
  752. goAuthUrl(url) {
  753. this.utils.isLogin().then(res => {
  754. if (res) {
  755. uni.navigateTo({
  756. url: url
  757. })
  758. }
  759. })
  760. },
  761. // 跳转页面
  762. navTo(url) {
  763. uni.navigateTo({
  764. url: url
  765. })
  766. },
  767. getLocation() {
  768. var that = this;
  769. uni.authorize({
  770. scope: 'scope.userLocation',
  771. success() {
  772. uni.getLocation({
  773. type: 'gcj02', //腾讯地图使用gcj02获取位置坐标
  774. success: function(res) {
  775. uni.setStorageSync('isLocation', 1);
  776. uni.setStorageSync('lng', res.longitude);
  777. uni.setStorageSync('lat', res.latitude);
  778. },
  779. })
  780. },
  781. fail(err) {
  782. console.log(err)
  783. }
  784. })
  785. },
  786. getIndexData() {
  787. let data = {};
  788. getIndexData(data).then(
  789. res => {
  790. if (res.code == 200) {
  791. this.advList = res.data.advList;
  792. this.articleCateList = res.data.articleCateList;
  793. if (this.articleCateList != null && this.articleCateList.length > 0) {
  794. this.cateId = this.articleCateList[0].cateId;
  795. this.getTuiArticle()
  796. }
  797. this.tuiProductList = res.data.tuiProductList
  798. this.newProductList = res.data.newProductList
  799. this.hotProductList = res.data.hotProductList
  800. } else {
  801. uni.showToast({
  802. icon: 'none',
  803. title: "请求失败",
  804. });
  805. }
  806. },
  807. rej => {}
  808. );
  809. },
  810. getCartCount() {
  811. this.utils.isLogin().then(res => {
  812. if (res) {
  813. getCartCount().then(
  814. cartRes => {
  815. if (cartRes.code == 200) {
  816. this.cartCount = cartRes.data;
  817. }
  818. },
  819. rej => {}
  820. );
  821. }
  822. })
  823. },
  824. getTuiArticle() {
  825. let data = {
  826. cateId: this.cateId
  827. };
  828. getTuiArticle(data).then(
  829. res => {
  830. if (res.code == 200) {
  831. this.articleList = res.data;
  832. } else {
  833. uni.showToast({
  834. icon: 'none',
  835. title: "请求失败",
  836. });
  837. }
  838. },
  839. rej => {}
  840. );
  841. },
  842. getTuiDoctorOrder() {
  843. let data = {
  844. orderType: this.orderType
  845. };
  846. getTuiDoctorOrder(data).then(
  847. res => {
  848. if (res.code == 200) {
  849. this.doctorOrderList = res.data;
  850. } else {
  851. uni.showToast({
  852. icon: 'none',
  853. title: "请求失败",
  854. });
  855. }
  856. },
  857. rej => {}
  858. );
  859. },
  860. showArticle(item) {
  861. uni.navigateTo({
  862. url: '../healthy/detail?articleId=' + item.articleId
  863. })
  864. },
  865. showProduct(item) {
  866. uni.navigateTo({
  867. url: '../shopping/productDetails?productId=' + item.productId
  868. })
  869. },
  870. // 顶部搜索
  871. toSearch() {
  872. uni.navigateTo({
  873. url: './productSearch'
  874. })
  875. },
  876. // 健康知识选中
  877. articleCateChange(item) {
  878. this.cateId = item.cateId;
  879. this.getTuiArticle();
  880. },
  881. // 问诊案例选中
  882. orderTypeChange(item) {
  883. this.orderType = item.id;
  884. console.log(this.orderType)
  885. this.getTuiDoctorOrder();
  886. },
  887. // 关闭限时消息
  888. closeMsg() {
  889. this.messageShow = false
  890. },
  891. // 查看全部
  892. viewAll(url) {
  893. uni.navigateTo({
  894. url: '/pages/home/' + url,
  895. });
  896. },
  897. shopDoctor(item) {
  898. console.log(item);
  899. uni.navigateTo({
  900. url: "/pages_doctor/doctorDetail?doctorId=" + item.doctorId
  901. })
  902. },
  903. switchTo(url) {
  904. uni.switchTab({
  905. url: url
  906. })
  907. return
  908. },
  909. yangshengClick(item) {
  910. if (item.page == "") {
  911. uni.showToast({
  912. icon: "none",
  913. title: '暂无更多'
  914. })
  915. return;
  916. }
  917. uni.navigateTo({
  918. url: item.page
  919. })
  920. },
  921. // 在线问诊
  922. openIm() {
  923. uni.navigateTo({
  924. url: '/pages_doctor/doctorOrderIM?orderId=10'
  925. })
  926. },
  927. getDoctorArticleList() {
  928. //联网加载数据
  929. var that = this;
  930. var data = {
  931. pageNum: 1,
  932. pageSize: 10
  933. };
  934. getDoctorArticleList(data).then(res => {
  935. if (res.code == 200) {
  936. this.doctocArticles = res.data.list;
  937. }
  938. });
  939. },
  940. getArticleList() {
  941. //联网加载数据
  942. var that = this;
  943. var data = {
  944. isTui: 1,
  945. pageNum: 1,
  946. pageSize: 10,
  947. };
  948. getArticleList(data).then(res => {
  949. if (res.code == 200) {
  950. this.articles = res.data.list;
  951. } else {
  952. uni.showToast({
  953. icon: 'none',
  954. title: "请求失败",
  955. });
  956. }
  957. });
  958. },
  959. }
  960. }
  961. </script>
  962. <style lang="scss">
  963. .fixed-top-box {
  964. width: 100%;
  965. position: fixed;
  966. top: 0;
  967. left: 0;
  968. z-index: 1000;
  969. transition: all 0.5s;
  970. background-color: #C39A58;
  971. &.show-back {
  972. // background: linear-gradient(135deg, #f95d44 0%, #C39A58 100%);
  973. }
  974. .status_bar {
  975. width: 100%;
  976. }
  977. }
  978. .content {
  979. width: 100%;
  980. position: relative;
  981. .bg {
  982. width: 100%;
  983. height: 380rpx;
  984. position: absolute;
  985. top: 0;
  986. left: 0;
  987. }
  988. .top-inner {
  989. width: 100%;
  990. position: absolute;
  991. top: 0;
  992. left: 0;
  993. z-index: 5;
  994. .top-title {
  995. height: 88upx;
  996. line-height: 88upx;
  997. display: flex;
  998. align-items: center;
  999. justify-content: flex-start;
  1000. .name {
  1001. font-size: 42upx;
  1002. font-family: Source Han Sans CN;
  1003. font-weight: bold;
  1004. color: #000;
  1005. padding-left: 41upx;
  1006. }
  1007. .dot {
  1008. margin: 0upx 10upx;
  1009. font-size: 28upx;
  1010. color: #FFFFFF;
  1011. opacity: 0.5;
  1012. }
  1013. .sub-name {
  1014. font-size: 30upx;
  1015. font-family: Source Han Sans CN;
  1016. color: #FFFFFF;
  1017. }
  1018. }
  1019. .func-cont {
  1020. box-sizing: border-box;
  1021. display: flex;
  1022. align-items: center;
  1023. padding: 30upx 20upx 30upx 20upx;
  1024. .search-cont {
  1025. box-sizing: border-box;
  1026. display: flex;
  1027. align-items: center;
  1028. width: 552upx;
  1029. height: 72upx;
  1030. background: #FFFFFF;
  1031. border-radius: 36upx;
  1032. padding: 0 30upx;
  1033. .icon-search {
  1034. width: 28upx;
  1035. height: 28upx;
  1036. margin-right: 20upx;
  1037. }
  1038. input {
  1039. height: 60upx;
  1040. line-height: 60upx;
  1041. flex: 1;
  1042. }
  1043. }
  1044. :deep(.uni-badge) {
  1045. border: none;
  1046. background-color: #FF3636;
  1047. font-family: Roboto;
  1048. }
  1049. .img-item {
  1050. width: 44upx;
  1051. height: 44upx;
  1052. margin-left: 30upx;
  1053. image {
  1054. width: 100%;
  1055. height: 100%;
  1056. }
  1057. }
  1058. }
  1059. .tips {
  1060. margin: 0upx 20rpx 30rpx;
  1061. height: 40upx;
  1062. line-height: 40upx;
  1063. display: flex;
  1064. justify-content: space-between;
  1065. align-items: center;
  1066. .left {
  1067. font-size: 30upx;
  1068. color: #FFFFFF;
  1069. }
  1070. .right {
  1071. padding: 5upx 20rpx;
  1072. font-size: 24upx;
  1073. color: #FFFFFF;
  1074. background-color: #C39A58;
  1075. border-radius: 50rpx;
  1076. }
  1077. }
  1078. }
  1079. .banner-box {
  1080. padding: 0 20upx;
  1081. .inner {
  1082. width: 100%;
  1083. height: 236upx;
  1084. border-radius: 10upx;
  1085. overflow: hidden;
  1086. .swiper,
  1087. .swiper-item,
  1088. .swiper-item image {
  1089. width: 100%;
  1090. height: 100%;
  1091. }
  1092. }
  1093. }
  1094. .menu-content {
  1095. // width: 100%;
  1096. background-color: #fff;
  1097. overflow: hidden;
  1098. padding: 20upx 20upx 0;
  1099. }
  1100. .menu-box {
  1101. display: flex;
  1102. align-items: center;
  1103. background-color: #FFFFFF;
  1104. }
  1105. .online-inquiry {
  1106. box-sizing: border-box;
  1107. width: 100%;
  1108. height: 170upx;
  1109. padding: 20upx;
  1110. background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 62%, rgba(255, 255, 255, 0) 100%);
  1111. display: flex;
  1112. justify-content: space-between;
  1113. .item {
  1114. // width: 46.13%;
  1115. width: 346upx;
  1116. height: 150upx;
  1117. position: relative;
  1118. .bg-img,
  1119. .inner {
  1120. width: 100%;
  1121. height: 100%;
  1122. position: absolute;
  1123. top: 0;
  1124. left: 0;
  1125. z-index: 1;
  1126. }
  1127. .inner {
  1128. box-sizing: border-box;
  1129. z-index: 2;
  1130. display: flex;
  1131. flex-direction: column;
  1132. justify-content: center;
  1133. padding-left: 32upx;
  1134. .title {
  1135. font-size: 30upx;
  1136. line-height: 1;
  1137. font-family: PingFang SC;
  1138. font-weight: 500;
  1139. color: #111111;
  1140. margin-bottom: 20upx;
  1141. }
  1142. .sub-title {
  1143. font-size: 24upx;
  1144. font-family: PingFang SC;
  1145. font-weight: 500;
  1146. color: #666666;
  1147. }
  1148. image {
  1149. width: 80upx;
  1150. height: 90upx;
  1151. position: absolute;
  1152. right: 7upx;
  1153. bottom: 7upx;
  1154. }
  1155. }
  1156. }
  1157. }
  1158. .index-cont {
  1159. box-sizing: border-box;
  1160. padding: 0 20upx 120rpx;
  1161. .pub-item {
  1162. background: #FFFFFF;
  1163. border-radius: 16upx;
  1164. margin-bottom: 20upx;
  1165. .tabs {
  1166. width: 100%;
  1167. display: flex;
  1168. align-items: center;
  1169. justify-content: flex-start;
  1170. height: 110rpx;
  1171. background-color: #F0F3F4;
  1172. .tab {
  1173. height: 110rpx;
  1174. display: flex;
  1175. align-items: center;
  1176. justify-content: center;
  1177. position: relative;
  1178. flex: 1;
  1179. .img {
  1180. z-index: 1;
  1181. position: absolute;
  1182. top: 0rpx;
  1183. left: 0rpx;
  1184. width: 100%;
  1185. height: 100%;
  1186. }
  1187. .inner {
  1188. z-index: 2;
  1189. .title {
  1190. font-size: 32upx;
  1191. font-family: PingFang SC;
  1192. font-weight: bold;
  1193. color: #666666;
  1194. }
  1195. .active {
  1196. color: #C39A58;
  1197. }
  1198. }
  1199. }
  1200. }
  1201. .pub-title-box {
  1202. box-sizing: border-box;
  1203. padding: 36upx 30upx;
  1204. display: flex;
  1205. align-items: center;
  1206. justify-content: space-between;
  1207. .left {
  1208. font-size: 32upx;
  1209. line-height: 1;
  1210. font-family: PingFang SC;
  1211. font-weight: bold;
  1212. color: #111111;
  1213. }
  1214. .right {
  1215. display: flex;
  1216. align-items: center;
  1217. justify-content: center;
  1218. .text {
  1219. font-size: 24rpx;
  1220. line-height: 1;
  1221. font-family: PingFang SC;
  1222. font-weight: 500;
  1223. color: #999999;
  1224. margin-right: 10upx;
  1225. }
  1226. image {
  1227. width: 14upx;
  1228. height: 24upx;
  1229. }
  1230. }
  1231. }
  1232. .doc-tab-box {
  1233. padding: 14rpx 30rpx 0rpx 30rpx;
  1234. position: relative;
  1235. .tab-inner {
  1236. padding: 14upx 0 30upx;
  1237. display: flex;
  1238. overflow-x: auto;
  1239. }
  1240. .item {
  1241. font-size: 28upx;
  1242. white-space: nowrap;
  1243. line-height: 1;
  1244. font-family: PingFang SC;
  1245. font-weight: 500;
  1246. color: #666666;
  1247. margin-right: 40upx;
  1248. position: relative;
  1249. &:last-child {
  1250. margin-right: 0;
  1251. }
  1252. &.active {
  1253. font-weight: bold;
  1254. color: #333333;
  1255. }
  1256. &.cases {
  1257. margin-right: 60upx;
  1258. }
  1259. .text {
  1260. position: relative;
  1261. z-index: 1;
  1262. }
  1263. .tab-bg {
  1264. width: 72upx;
  1265. height: 28upx;
  1266. position: absolute;
  1267. top: 17upx;
  1268. left: 50%;
  1269. transform: translateX(-36upx);
  1270. z-index: -1;
  1271. }
  1272. }
  1273. .right-mask {
  1274. width: 56upx;
  1275. height: 34upx;
  1276. position: absolute;
  1277. top: 25upx;
  1278. right: 0upx;
  1279. z-index: 1;
  1280. }
  1281. }
  1282. .doc-list {
  1283. padding: 20upx;
  1284. .item {
  1285. box-sizing: border-box;
  1286. background: #FFFFFF;
  1287. // border-radius: 16upx;
  1288. display: flex;
  1289. border-bottom: 1px solid #F0F0F0;
  1290. margin-bottom: 30rpx;
  1291. .head-box {
  1292. width: 120upx;
  1293. height: 120upx;
  1294. background: #EDF1F4;
  1295. border-radius: 50%;
  1296. overflow: hidden;
  1297. margin-right: 30upx;
  1298. image {
  1299. width: 100%;
  1300. height: 100%;
  1301. }
  1302. }
  1303. .info {
  1304. width: calc(100% - 150upx);
  1305. .top {
  1306. display: flex;
  1307. align-items: center;
  1308. font-family: PingFang SC;
  1309. line-height: 1;
  1310. .name {
  1311. font-size: 34upx;
  1312. font-weight: bold;
  1313. color: #111111;
  1314. }
  1315. .line {
  1316. width: 1px;
  1317. height: 26upx;
  1318. background: #DDDDDD;
  1319. margin: 0 20upx;
  1320. }
  1321. .other {
  1322. font-size: 28upx;
  1323. font-weight: 500;
  1324. color: #333333;
  1325. }
  1326. }
  1327. .unit-box {
  1328. display: flex;
  1329. margin-top: 24upx;
  1330. .level {
  1331. padding: 0 10upx;
  1332. height: 30upx;
  1333. line-height: 30upx;
  1334. font-size: 22upx;
  1335. font-family: PingFang SC;
  1336. font-weight: 500;
  1337. color: #FFFFFF;
  1338. background: #C39A58;
  1339. border-radius: 10upx 4upx 10upx 4upx;
  1340. margin-right: 12upx;
  1341. }
  1342. .name {
  1343. font-size: 28upx;
  1344. font-family: PingFang SC;
  1345. font-weight: 500;
  1346. color: #333333;
  1347. line-height: 30upx;
  1348. }
  1349. }
  1350. .expertise {
  1351. font-size: 26upx;
  1352. font-family: PingFang SC;
  1353. font-weight: 500;
  1354. color: #666666;
  1355. line-height: 42upx;
  1356. margin: 22upx 0 26upx;
  1357. }
  1358. .rate-box {
  1359. display: flex;
  1360. align-items: center;
  1361. .star {
  1362. display: flex;
  1363. align-items: center;
  1364. image {
  1365. width: 22upx;
  1366. height: 22upx;
  1367. margin-right: 10upx;
  1368. }
  1369. text {
  1370. font-size: 26upx;
  1371. font-family: PingFang SC;
  1372. font-weight: bold;
  1373. color: #CEA764;
  1374. line-height: 1;
  1375. }
  1376. }
  1377. .line {
  1378. width: 1px;
  1379. height: 20upx;
  1380. background: #DDDDDD;
  1381. margin: 0 20upx;
  1382. }
  1383. .num-box {
  1384. display: flex;
  1385. align-items: center;
  1386. font-family: PingFang SC;
  1387. .label {
  1388. font-size: 24upx;
  1389. font-weight: 500;
  1390. color: #999999;
  1391. line-height: 1;
  1392. margin-right: 7px;
  1393. }
  1394. .num {
  1395. font-size: 26upx;
  1396. font-weight: bold;
  1397. color: #CEA764;
  1398. line-height: 1;
  1399. }
  1400. }
  1401. }
  1402. .price-box {
  1403. display: flex;
  1404. align-items: center;
  1405. margin-top: 38upx;
  1406. .btn-item {
  1407. display: flex;
  1408. align-items: center;
  1409. justify-content: center;
  1410. width: 164upx;
  1411. height: 56upx;
  1412. line-height: 56upx;
  1413. border: 1px solid rgba(43, 199, 185, 0.5);
  1414. border-radius: 28upx;
  1415. font-family: PingFang SC;
  1416. margin-right: 30upx;
  1417. &:last-child {
  1418. margin-right: 0;
  1419. }
  1420. .label {
  1421. font-size: 26upx;
  1422. font-weight: 500;
  1423. color: #C39A58;
  1424. margin-right: 5upx;
  1425. }
  1426. .num {
  1427. font-size: 28upx;
  1428. font-weight: bold;
  1429. color: #C39A58;
  1430. }
  1431. }
  1432. }
  1433. }
  1434. }
  1435. .item:last-child {
  1436. border-bottom: none;
  1437. margin-bottom: 0rpx;
  1438. }
  1439. .bottom-title {
  1440. height: 50rpx;
  1441. display: flex;
  1442. align-items: center;
  1443. justify-content: center;
  1444. font-size: 26rpx;
  1445. font-family: PingFang SC;
  1446. font-weight: bold;
  1447. color: #C39A58;
  1448. image {
  1449. margin-left: 8rpx;
  1450. width: 14rpx;
  1451. height: 24rpx;
  1452. }
  1453. }
  1454. }
  1455. // 医师团队
  1456. .doc-cont {
  1457. box-sizing: border-box;
  1458. padding: 0 30upx;
  1459. .inner {
  1460. padding: 4upx 0 40upx;
  1461. display: flex;
  1462. overflow-x: auto;
  1463. }
  1464. .item {
  1465. display: flex;
  1466. align-items: center;
  1467. flex-direction: column;
  1468. margin-right: 40upx;
  1469. &:last-child {
  1470. margin-right: 0;
  1471. }
  1472. .head-box {
  1473. width: 120upx;
  1474. height: 120upx;
  1475. background: #F2F5F9;
  1476. border-radius: 50%;
  1477. margin-bottom: 20upx;
  1478. overflow: hidden;
  1479. image {
  1480. width: 100%;
  1481. height: 100%;
  1482. }
  1483. }
  1484. .name {
  1485. max-width: 120upx;
  1486. font-size: 28upx;
  1487. line-height: 1;
  1488. font-family: PingFang SC;
  1489. font-weight: 500;
  1490. color: #111111;
  1491. margin-bottom: 16upx;
  1492. text-align: center;
  1493. }
  1494. .position {
  1495. max-width: 120upx;
  1496. font-size: 24upx;
  1497. line-height: 1;
  1498. font-family: PingFang SC;
  1499. font-weight: 500;
  1500. color: #999999;
  1501. text-align: center;
  1502. }
  1503. }
  1504. }
  1505. .inner {
  1506. padding: 0 30upx;
  1507. }
  1508. // 健康知识
  1509. .pub-tab-box {
  1510. position: relative;
  1511. .tab-inner {
  1512. padding: 14upx 0 30upx;
  1513. display: flex;
  1514. overflow-x: auto;
  1515. }
  1516. .item {
  1517. font-size: 28upx;
  1518. white-space: nowrap;
  1519. line-height: 1;
  1520. font-family: PingFang SC;
  1521. font-weight: 500;
  1522. color: #666666;
  1523. margin-right: 40upx;
  1524. position: relative;
  1525. &:last-child {
  1526. margin-right: 0;
  1527. }
  1528. &.active {
  1529. font-weight: bold;
  1530. color: #333333;
  1531. }
  1532. &.cases {
  1533. margin-right: 60upx;
  1534. }
  1535. .text {
  1536. position: relative;
  1537. z-index: 1;
  1538. }
  1539. .tab-bg {
  1540. width: 72upx;
  1541. height: 28upx;
  1542. position: absolute;
  1543. top: 17upx;
  1544. left: 50%;
  1545. transform: translateX(-36upx);
  1546. z-index: -1;
  1547. }
  1548. }
  1549. .right-mask {
  1550. width: 56upx;
  1551. height: 34upx;
  1552. position: absolute;
  1553. top: 14upx;
  1554. right: -30upx;
  1555. z-index: 1;
  1556. }
  1557. }
  1558. .know-list {
  1559. padding-right: 10upx;
  1560. .item {
  1561. padding: 30upx 0;
  1562. display: flex;
  1563. align-items: center;
  1564. justify-content: space-between;
  1565. border-bottom: 1px solid #F0F0F0;
  1566. &:last-child {
  1567. border-bottom: none;
  1568. }
  1569. .left {
  1570. flex: 1;
  1571. padding-right: 40upx;
  1572. height: 190upx;
  1573. display: flex;
  1574. flex-direction: column;
  1575. justify-content: space-between;
  1576. .title {
  1577. font-size: 32upx;
  1578. font-family: PingFang SC;
  1579. font-weight: 500;
  1580. color: #111111;
  1581. line-height: 48upx;
  1582. }
  1583. .info-box {
  1584. width: 100%;
  1585. display: flex;
  1586. align-items: center;
  1587. justify-content: space-between;
  1588. .readers {
  1589. display: flex;
  1590. align-items: center;
  1591. .head-box {
  1592. margin-right: 27upx;
  1593. display: flex;
  1594. align-items: center;
  1595. .head {
  1596. width: 48upx;
  1597. height: 48upx;
  1598. border-radius: 50%;
  1599. overflow: hidden;
  1600. box-shadow: 0 0 0 1px #fff;
  1601. margin-right: -10upx;
  1602. image {
  1603. width: 100%;
  1604. height: 100%;
  1605. }
  1606. }
  1607. }
  1608. .readings {
  1609. display: flex;
  1610. align-items: center;
  1611. .eye {
  1612. width: 26upx;
  1613. height: 20upx;
  1614. margin-right: 9upx;
  1615. }
  1616. .num {
  1617. font-size: 24upx;
  1618. font-family: PingFang SC;
  1619. font-weight: 500;
  1620. color: #999999;
  1621. line-height: 1;
  1622. }
  1623. }
  1624. }
  1625. .time {
  1626. font-size: 24upx;
  1627. line-height: 1;
  1628. font-family: PingFang SC;
  1629. font-weight: 500;
  1630. color: #999999;
  1631. }
  1632. }
  1633. }
  1634. .right {
  1635. width: 250upx;
  1636. height: 190upx;
  1637. border-radius: 8upx;
  1638. overflow: hidden;
  1639. image {
  1640. width: 100%;
  1641. height: 100%;
  1642. }
  1643. }
  1644. }
  1645. }
  1646. // 问诊案例
  1647. .cases-list {
  1648. padding-bottom: 10upx;
  1649. .item {
  1650. padding: 30upx 0;
  1651. border-bottom: 1px solid #F0F0F0;
  1652. &:last-child {
  1653. border-bottom: none;
  1654. }
  1655. .dec-text {
  1656. font-size: 32upx;
  1657. font-family: PingFang SC;
  1658. font-weight: bold;
  1659. color: #111111;
  1660. line-height: 48upx;
  1661. }
  1662. .images-box {
  1663. margin-top: 10upx;
  1664. display: flex;
  1665. flex-wrap: wrap;
  1666. .img-item {
  1667. width: 155upx;
  1668. height: 155upx;
  1669. background: #F5F5F5;
  1670. border-radius: 8upx;
  1671. margin: 0 10upx 10upx 0;
  1672. overflow: hidden;
  1673. image {
  1674. width: 100%;
  1675. height: 100%;
  1676. }
  1677. &:nth-child(4n) {
  1678. margin-right: 0;
  1679. }
  1680. }
  1681. }
  1682. .doc-info {
  1683. display: flex;
  1684. align-items: center;
  1685. margin: 30upx 0 20upx;
  1686. .head {
  1687. width: 60upx;
  1688. height: 60upx;
  1689. background: #F2F5F9;
  1690. border-radius: 50%;
  1691. margin-right: 20upx;
  1692. overflow: hidden;
  1693. image {
  1694. width: 100%;
  1695. height: 100%;
  1696. }
  1697. }
  1698. .name {
  1699. font-size: 28upx;
  1700. line-height: 1;
  1701. font-family: PingFang SC;
  1702. font-weight: 500;
  1703. color: #111111;
  1704. }
  1705. .line {
  1706. width: 1px;
  1707. height: 22upx;
  1708. background: #DDDDDD;
  1709. margin: 0 16upx;
  1710. }
  1711. .posit,
  1712. .address {
  1713. font-size: 26upx;
  1714. font-family: PingFang SC;
  1715. font-weight: 500;
  1716. color: #999999;
  1717. }
  1718. }
  1719. .answer-box {
  1720. width: 100%;
  1721. background: #F5F7F7;
  1722. border-radius: 10upx;
  1723. display: flex;
  1724. flex-direction: column;
  1725. justify-content: center;
  1726. .text-inner {
  1727. // height: 84upx;
  1728. font-size: 28upx;
  1729. font-family: PingFang SC;
  1730. font-weight: 500;
  1731. color: #666666;
  1732. line-height: 42upx;
  1733. padding: 15upx;
  1734. }
  1735. }
  1736. .read-box {
  1737. margin-top: 30upx;
  1738. display: flex;
  1739. align-items: center;
  1740. justify-content: flex-end;
  1741. image {
  1742. width: 24upx;
  1743. height: 19upx;
  1744. margin-right: 10upx;
  1745. }
  1746. .text {
  1747. font-size: 24upx;
  1748. font-family: PingFang SC;
  1749. font-weight: 500;
  1750. color: #999999;
  1751. }
  1752. }
  1753. }
  1754. }
  1755. }
  1756. // 精选药品
  1757. .feat-title {
  1758. margin-top: 30upx;
  1759. padding: 10upx 0 33upx;
  1760. display: flex;
  1761. align-items: center;
  1762. justify-content: center;
  1763. image {
  1764. width: 37upx;
  1765. height: 37upx;
  1766. margin: 0upx 20upx;
  1767. }
  1768. text {
  1769. font-size: 36upx;
  1770. line-height: 1;
  1771. font-family: PingFang SC;
  1772. font-weight: bold;
  1773. color: #111111;
  1774. }
  1775. }
  1776. .drug-list {
  1777. display: flex;
  1778. flex-wrap: wrap;
  1779. .item {
  1780. margin-right: 20rpx;
  1781. margin-bottom: 20rpx;
  1782. width: 345rpx;
  1783. background: #FFFFFF;
  1784. box-shadow: 0px 0px 10rpx 4rpx rgba(199, 199, 199, 0.22);
  1785. border-radius: 20rpx;
  1786. overflow: hidden;
  1787. &:nth-child(2n) {
  1788. margin-right: 0;
  1789. }
  1790. .img-box {
  1791. width: 100%;
  1792. height: 334upx;
  1793. image {
  1794. width: 100%;
  1795. height: 100%;
  1796. }
  1797. }
  1798. .info-box {
  1799. box-sizing: border-box;
  1800. height: 182upx;
  1801. padding: 20upx;
  1802. .title {
  1803. height: 80upx;
  1804. font-size: 26upx;
  1805. font-family: PingFang SC;
  1806. font-weight: 500;
  1807. color: #111111;
  1808. line-height: 40upx;
  1809. }
  1810. .price-box {
  1811. display: flex;
  1812. align-items: center;
  1813. margin-top: 20upx;
  1814. .now {
  1815. color: #FF6633;
  1816. display: flex;
  1817. align-items: flex-end;
  1818. margin-right: 20upx;
  1819. font-family: PingFang SC;
  1820. .unit {
  1821. font-size: 24upx;
  1822. line-height: 1.4;
  1823. margin-right: 4upx;
  1824. }
  1825. .num {
  1826. font-size: 36upx;
  1827. font-weight: bold;
  1828. line-height: 1;
  1829. }
  1830. }
  1831. .old {
  1832. font-size: 26upx;
  1833. font-family: PingFang SC;
  1834. text-decoration: line-through;
  1835. color: #BBBBBB;
  1836. line-height: 1;
  1837. }
  1838. }
  1839. }
  1840. }
  1841. }
  1842. }
  1843. // 健康生活大讲堂
  1844. .open-class {
  1845. padding: 20rpx;
  1846. margin: 20rpx 15rpx 0rpx;
  1847. // background-color: #f0f4f7;
  1848. .title-box {
  1849. display: flex;
  1850. justify-content: space-between;
  1851. align-items: center;
  1852. .title {
  1853. font-size: 32rpx;
  1854. font-weight: bold;
  1855. }
  1856. .more {
  1857. font-size: 24rpx;
  1858. padding-left: 30rpx;
  1859. color: #999999;
  1860. display: flex;
  1861. align-items: center;
  1862. image {
  1863. width: 24rpx;
  1864. height: 24rpx;
  1865. }
  1866. }
  1867. }
  1868. .class-item {
  1869. font-size: 24rpx;
  1870. margin-top: 24rpx;
  1871. background-color: #fff;
  1872. border-radius: 16rpx;
  1873. padding: 0 16rpx;
  1874. margin-right: 14rpx;
  1875. width: 250rpx;
  1876. height: 280rpx;
  1877. font-size: 26rpx;
  1878. font-weight: 500;
  1879. .img-box {
  1880. height: 220rpx;
  1881. border-radius: 16rpx;
  1882. overflow: hidden;
  1883. margin-bottom: 12rpx;
  1884. image {
  1885. width: 100%;
  1886. height: 100%;
  1887. }
  1888. }
  1889. &:last-child {
  1890. margin-right: 0rpx;
  1891. }
  1892. }
  1893. }
  1894. .modules {
  1895. .module {
  1896. .depts {
  1897. z-index: 101;
  1898. margin: 20rpx 15rpx 0rpx;
  1899. padding: 20rpx;
  1900. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  1901. background-color: #fff;
  1902. border-radius: 15rpx;
  1903. .title {
  1904. font-size: 32upx;
  1905. font-family: PingFang SC;
  1906. font-weight: bold;
  1907. color: #2A2B2E;
  1908. }
  1909. .dept-box {
  1910. margin-top: 15rpx;
  1911. display: flex;
  1912. align-items: center;
  1913. justify-content: flex-start;
  1914. flex-wrap: wrap;
  1915. .dept {
  1916. padding: 15rpx 5rpx;
  1917. width: 25%;
  1918. display: flex;
  1919. flex-direction: column;
  1920. align-items: center;
  1921. justify-content: center;
  1922. padding: 14rpx 0;
  1923. .icon {
  1924. width: 58rpx;
  1925. height: 58rpx;
  1926. }
  1927. .title {
  1928. margin-top: 10rpx;
  1929. font-size: 24upx;
  1930. font-family: PingFang SC;
  1931. font-weight: 500;
  1932. color: #111111;
  1933. }
  1934. }
  1935. }
  1936. }
  1937. .doctor-articles {
  1938. z-index: 101;
  1939. margin: 20rpx 15rpx 0rpx;
  1940. padding: 20rpx;
  1941. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  1942. background-color: #fff;
  1943. border-radius: 15rpx;
  1944. .title-box {
  1945. display: flex;
  1946. flex-direction: row;
  1947. align-items: center;
  1948. justify-content: space-between;
  1949. .title {
  1950. font-size: 32upx;
  1951. font-family: PingFang SC;
  1952. font-weight: bold;
  1953. color: #111111;
  1954. }
  1955. .more {
  1956. display: flex;
  1957. align-items: center;
  1958. justify-content: flex-end;
  1959. .text {
  1960. font-size: 24rpx;
  1961. font-family: PingFang SC;
  1962. color: #9B9B9B;
  1963. }
  1964. image {
  1965. margin-left: 10rpx;
  1966. width: 15rpx;
  1967. height: 20rpx;
  1968. }
  1969. }
  1970. }
  1971. .article-box {
  1972. padding: 20rpx 0rpx;
  1973. overflow-x: auto;
  1974. box-sizing: border-box;
  1975. display: flex;
  1976. align-items: center;
  1977. justify-content: flex-start;
  1978. .article {
  1979. width: 300rpx;
  1980. margin-right: 20rpx;
  1981. background: #f9f8fe;
  1982. display: flex;
  1983. flex-direction: column;
  1984. align-items: flex-start;
  1985. justify-content: flex-start;
  1986. &:last-child {
  1987. margin-right: 0rpx;
  1988. }
  1989. .image-box {
  1990. width: 300rpx;
  1991. height: 400rpx;
  1992. position: relative;
  1993. border-radius: 20rpx;
  1994. image {
  1995. border-radius: 20rpx;
  1996. width: 300rpx;
  1997. height: 400rpx;
  1998. }
  1999. .views {
  2000. position: absolute;
  2001. top: 0rpx;
  2002. left: 0rpx;
  2003. padding: 5rpx 10rpx;
  2004. background: rgba(0, 0, 0, 0.25);
  2005. border-radius: 12rpx 0px 12rpx 0px;
  2006. opacity: 1;
  2007. font-size: 20rpx;
  2008. font-family: PingFang SC-Bold, PingFang SC;
  2009. font-weight: bold;
  2010. color: #FFFFFF;
  2011. }
  2012. .doctor {
  2013. margin: 10rpx;
  2014. display: flex;
  2015. align-items: center;
  2016. justify-content: flex-start;
  2017. position: absolute;
  2018. bottom: 0rpx;
  2019. left: 0rpx;
  2020. image {
  2021. border-radius: 50%;
  2022. width: 64rpx;
  2023. height: 64rpx;
  2024. }
  2025. .right {
  2026. width: 200rpx;
  2027. margin-left: 10rpx;
  2028. display: flex;
  2029. flex-direction: column;
  2030. align-items: flex-start;
  2031. justify-content: space-between;
  2032. .doc-name {
  2033. width: 200rpx;
  2034. font-size: 30rpx;
  2035. font-weight: bold;
  2036. font-family: PingFang SC;
  2037. color: #fff;
  2038. }
  2039. .doc-position {
  2040. width: 100%;
  2041. font-size: 28rpx;
  2042. font-family: PingFang SC;
  2043. color: #fff;
  2044. font-weight: bold;
  2045. opacity: 0.8;
  2046. }
  2047. }
  2048. }
  2049. }
  2050. .article-title-box {
  2051. width: 100%;
  2052. margin-top: 10rpx;
  2053. display: flex;
  2054. align-items: center;
  2055. justify-content: flex-start;
  2056. .article-title {
  2057. font-size: 30rpx;
  2058. font-weight: bold;
  2059. font-family: PingFang SC;
  2060. color: #2A2B2E;
  2061. }
  2062. }
  2063. }
  2064. }
  2065. }
  2066. .doctors {
  2067. z-index: 101;
  2068. margin: 20rpx 15rpx;
  2069. padding: 20rpx;
  2070. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  2071. background-color: #fff;
  2072. border-radius: 15rpx;
  2073. .title-box {
  2074. display: flex;
  2075. flex-direction: row;
  2076. align-items: center;
  2077. justify-content: space-between;
  2078. .title {
  2079. font-size: 32upx;
  2080. font-family: PingFang SC;
  2081. font-weight: bold;
  2082. color: #111111;
  2083. }
  2084. .more {
  2085. display: flex;
  2086. align-items: center;
  2087. justify-content: flex-end;
  2088. .text {
  2089. font-size: 24rpx;
  2090. font-family: PingFang SC;
  2091. color: #9B9B9B;
  2092. }
  2093. image {
  2094. margin-left: 10rpx;
  2095. width: 15rpx;
  2096. height: 20rpx;
  2097. }
  2098. }
  2099. }
  2100. }
  2101. .articles {
  2102. z-index: 101;
  2103. margin: 20rpx 15rpx;
  2104. padding: 20rpx;
  2105. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  2106. background-color: #fff;
  2107. border-radius: 15rpx;
  2108. .title-box {
  2109. display: flex;
  2110. flex-direction: row;
  2111. align-items: center;
  2112. justify-content: space-between;
  2113. .title {
  2114. font-size: 32upx;
  2115. font-family: PingFang SC;
  2116. font-weight: bold;
  2117. color: #111111;
  2118. }
  2119. .more {
  2120. display: flex;
  2121. align-items: center;
  2122. justify-content: flex-end;
  2123. .text {
  2124. font-size: 24rpx;
  2125. font-family: PingFang SC;
  2126. color: #9B9B9B;
  2127. }
  2128. image {
  2129. margin-left: 10rpx;
  2130. width: 15rpx;
  2131. height: 20rpx;
  2132. }
  2133. }
  2134. }
  2135. .article-box {
  2136. margin-top: 15rpx;
  2137. padding: 20rpx 0rpx 0rpx;
  2138. display: flex;
  2139. flex-direction: column;
  2140. align-items: flex-start;
  2141. justify-content: flex-start;
  2142. .item {
  2143. width: 100%;
  2144. margin-bottom: 20rpx;
  2145. display: flex;
  2146. align-items: flex-start;
  2147. justify-content: flex-start;
  2148. &:last-child {
  2149. margin-bottom: 0rpx;
  2150. }
  2151. .left {
  2152. flex: 1;
  2153. height: 160rpx;
  2154. margin-right: 15rpx;
  2155. display: flex;
  2156. flex-direction: column;
  2157. align-items: flex-start;
  2158. justify-content: space-between;
  2159. .title {
  2160. font-size: 28upx;
  2161. font-family: PingFang SC;
  2162. font-weight: bold;
  2163. color: #111111;
  2164. }
  2165. .views {
  2166. font-size: 24upx;
  2167. font-family: PingFang SC;
  2168. color: #9a9a9c;
  2169. }
  2170. }
  2171. .right {
  2172. image {
  2173. border-radius: 10rpx;
  2174. width: 220rpx;
  2175. height: 160rpx;
  2176. border: 1px solid #eeeeee;
  2177. }
  2178. }
  2179. }
  2180. }
  2181. }
  2182. .packages {
  2183. z-index: 101;
  2184. margin: 20rpx 15rpx;
  2185. padding: 20rpx;
  2186. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  2187. background-color: #fff;
  2188. border-radius: 15rpx;
  2189. .title-box {
  2190. display: flex;
  2191. flex-direction: row;
  2192. align-items: center;
  2193. justify-content: space-between;
  2194. .title {
  2195. font-size: 32upx;
  2196. font-family: PingFang SC;
  2197. font-weight: bold;
  2198. color: #111111;
  2199. }
  2200. .more {
  2201. display: flex;
  2202. align-items: center;
  2203. justify-content: flex-end;
  2204. .text {
  2205. font-size: 24rpx;
  2206. font-family: PingFang SC;
  2207. color: #9B9B9B;
  2208. }
  2209. image {
  2210. margin-left: 10rpx;
  2211. width: 15rpx;
  2212. height: 20rpx;
  2213. }
  2214. }
  2215. }
  2216. .package-box {
  2217. padding: 20rpx 0rpx 0rpx;
  2218. display: flex;
  2219. align-items: flex-start;
  2220. justify-content: flex-start;
  2221. flex-wrap: wrap;
  2222. .item {
  2223. width: calc(50% - 20rpx);
  2224. border-radius: 15rpx;
  2225. margin: 10rpx;
  2226. display: flex;
  2227. flex-direction: column;
  2228. align-items: flex-start;
  2229. justify-content: flex-start;
  2230. &:last-child {}
  2231. .top {
  2232. width: 100%;
  2233. height: 300rpx;
  2234. image {
  2235. border-radius: 15rpx 15rpx 0rpx 0rpx;
  2236. width: 100%;
  2237. height: 300rpx;
  2238. }
  2239. }
  2240. .bottom {
  2241. width: 100%;
  2242. margin-top: 15rpx;
  2243. .title {
  2244. font-weight: bold;
  2245. font-size: 28upx;
  2246. font-family: PingFang SC;
  2247. color: #111111;
  2248. }
  2249. .price-box {
  2250. margin-top: 10rpx;
  2251. display: flex;
  2252. align-items: center;
  2253. justify-content: space-between;
  2254. width: 100%;
  2255. .price {
  2256. padding: 5rpx 10rpx;
  2257. background-color: #C39A58;
  2258. border-radius: 30rpx;
  2259. font-size: 20upx;
  2260. font-family: PingFang SC;
  2261. color: #ffffff;
  2262. }
  2263. .count {
  2264. font-size: 24upx;
  2265. font-family: PingFang SC;
  2266. color: #333333;
  2267. }
  2268. }
  2269. }
  2270. }
  2271. }
  2272. }
  2273. }
  2274. }
  2275. }
  2276. .official-account {
  2277. box-sizing: border-box;
  2278. width: 100%;
  2279. height: 100upx;
  2280. position: fixed;
  2281. bottom: 30upx;
  2282. z-index: 99;
  2283. padding: 0 20upx 180rpx 20upx;
  2284. }
  2285. // 消息
  2286. .message-box {
  2287. box-sizing: border-box;
  2288. width: 100%;
  2289. height: 84upx;
  2290. background: #F3FFFD;
  2291. border: 1px solid #C7E9E5;
  2292. box-shadow: 0px 4upx 12upx 0px rgba(90, 203, 138, 0.16);
  2293. border-radius: 16upx;
  2294. position: fixed;
  2295. left: 50%;
  2296. transform: translateX(-50%);
  2297. bottom: 30upx;
  2298. z-index: 99;
  2299. display: flex;
  2300. align-items: center;
  2301. justify-content: space-between;
  2302. padding: 0 20upx 0 30upx;
  2303. .left {
  2304. flex: 1;
  2305. display: flex;
  2306. align-items: center;
  2307. image {
  2308. width: 24upx;
  2309. height: 24upx;
  2310. margin-right: 18upx;
  2311. }
  2312. .text {
  2313. width: 90%;
  2314. font-size: 28upx;
  2315. font-family: PingFang SC;
  2316. font-weight: 500;
  2317. color: #C39A58;
  2318. }
  2319. }
  2320. .btn {
  2321. width: 100upx;
  2322. height: 48upx;
  2323. line-height: 48upx;
  2324. text-align: center;
  2325. font-size: 24upx;
  2326. font-family: PingFang SC;
  2327. font-weight: 500;
  2328. color: #FFFFFF;
  2329. border: 1px solid #D2E6FF;
  2330. background: linear-gradient(135deg, #f95d44 0%, #C39A58 100%);
  2331. border-radius: 24upx;
  2332. margin-left: 30upx;
  2333. }
  2334. }
  2335. .contact-btn {
  2336. display: inline-block;
  2337. position: absolute;
  2338. top: 0;
  2339. left: 0;
  2340. width: 100%;
  2341. height: 100%;
  2342. opacity: 0;
  2343. }
  2344. .popup-box {
  2345. position: fixed;
  2346. top: 0;
  2347. right: 0;
  2348. left: 0;
  2349. bottom: 0;
  2350. z-index: 999;
  2351. display: flex;
  2352. justify-content: center;
  2353. align-items: center;
  2354. .info-mask {
  2355. position: fixed;
  2356. top: 0;
  2357. right: 0;
  2358. bottom: 0;
  2359. left: 0;
  2360. background-color: rgba($color: #000000, $alpha: 0.5);
  2361. z-index: 999;
  2362. }
  2363. .info-form {
  2364. z-index: 1000;
  2365. width: 450rpx;
  2366. display: flex;
  2367. flex-direction: column;
  2368. justify-content: center;
  2369. align-items: center;
  2370. position: relative;
  2371. image {
  2372. width: 100%;
  2373. }
  2374. }
  2375. }
  2376. </style>