index.vue 56 KB

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