index.vue 54 KB

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