index.vue 56 KB

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