index.vue 54 KB

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