index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784
  1. <template>
  2. <view class="container">
  3. <image class="home_top_bg" src="@/static/image/hall/home_top_bg.png" mode="widthFix"></image>
  4. <view class="tabbox">
  5. <view ref="tabbar" class="tabbar">
  6. <view :id="index" :class="activeTab == index ? 'active tabbar-item':'tabbar-item'"
  7. v-for="(tab,index) in tabList" :key="tab.id" @click="handleTab(index)">{{tab.name}}</view>
  8. </view>
  9. <view ref="underline" class="tabbar-tabline tabbar-tabline-animation" :style="{left: indicatorLineLeft + 'px', width: indicatorLineWidth + 'px'}">
  10. <image class="tabbar-tabline-image" src="@/static/image/hall/hall_on_icon.png" mode="aspectFill"></image>
  11. </view>
  12. </view>
  13. <!-- 新手指引 -->
  14. <view class="guidebox" v-if="showGuide" @touchmove.stop.prevent @click="closeGuide('mask')">
  15. <view class="guide" :style="guideStyle" @click.stop.prevent>
  16. <!-- 学习中心新手指引 -->
  17. <!-- <view class="guide-step-tips" :style="tipPosition" v-if="activeTab == 1">
  18. <image class="Frame2612" src="@/static/images/guide/Frame2612.png" mode="aspectFill"></image>
  19. 你可以在这里查询在学课程、学习笔记、收藏课程,对你学习进度进行跟踪。
  20. </view> -->
  21. <!-- 名医讲堂新手指引 -->
  22. <view class="guide3-step-tips2" :style="tipPosition" v-if="activeTab == 0">
  23. <view class="guide3-toptip">
  24. <view class="guide3-toptip-head">
  25. <image class="Frame2611" src="@/static/images/guide/Frame2611.png" mode="aspectFill"></image>
  26. <text>知名中医大师、达人亲自授课</text>
  27. <image class="guide3-toptip-headbg" src="@/static/images/guide/Frame2614.png" mode="widthFix"></image>
  28. </view>
  29. <view>分享他们在各自专业领域的丰富经验和独到见解。 </view>
  30. </view>
  31. <view :style="tipsCenter"></view>
  32. <view class="guide3-btn" @click="closeGuide()">我知道啦</view>
  33. </view>
  34. </view>
  35. <!-- 名医讲堂新手指引(图片模式) -->
  36. <!-- <view class="guide" v-if="activeTab != 1" @click.stop.prevent>
  37. <view class="guide3-step-tips">
  38. <view class="guide3-step-tipsbox">
  39. <view class="guide3-toptip">
  40. <view class="guide3-toptip-head">
  41. <image class="Frame2611" src="@/static/images/guide/Frame2611.png" mode="aspectFill"></image>
  42. <text>知名中医大师、达人亲自授课</text>
  43. <image class="guide3-toptip-headbg" src="@/static/images/guide/Frame2614.png" mode="widthFix"></image>
  44. </view>
  45. <view>分享他们在各自专业领域的丰富经验和独到见解。 </view>
  46. </view>
  47. <image class="Frame2291" src="@/static/images/guide/Frame2291.png" mode="widthFix"></image>
  48. </view>
  49. <view class="guide3-btn" @click="closeGuide()">我知道啦</view>
  50. </view>
  51. </view> -->
  52. </view>
  53. <!-- 内容 -->
  54. <swiper :current="activeTab" @change="onSwiperChange" :style="'height:' + clientHeight + 'px;'">
  55. <swiper-item>
  56. <scroll-view scroll-y="true" :style="'height:' + clientHeight + 'px;'" :scroll-top="scrollTopHall" @scroll="scroll($event,'scrollTopHall')">
  57. <studyCenter ref="studyCenter"/>
  58. </scroll-view>
  59. </swiper-item>
  60. <swiper-item>
  61. <scroll-view scroll-y="true" :style="'height:' + clientHeight + 'px;'" :scroll-top="scrollTopStudy" @scroll="scroll($event,'scrollTopStudy')">
  62. <doctorHall ref="doctorHall" :swiperAutoplay="swiperAutoplay" @loadFamousCourse="loadFamousCourse(0)"/>
  63. </scroll-view>
  64. </swiper-item>
  65. </swiper>
  66. <!-- 新用户72h内弹免费领礼品弹窗 -->
  67. <giftPopup ref="giftPopup"></giftPopup>
  68. </view>
  69. </template>
  70. <script>
  71. import doctorHall from './components/doctorHall.vue';
  72. import studyCenter from './components/studyCenter.vue';
  73. import giftPopup from './components/giftPopup.vue';
  74. import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
  75. import mescrollBody from "@/uni_modules/mescroll-uni/components/mescroll-body/mescroll-body.vue";
  76. import { getDictByKey } from '@/api/common'
  77. import { getCourseCate,getCourseList } from '@/api/course'
  78. import { getAdvList} from '@/api/adv.js'
  79. import { isCreateAd } from '@/api/user.js'
  80. export default {
  81. mixins: [MescrollMixin], // 使用mixin
  82. components: {
  83. mescrollBody,
  84. doctorHall,
  85. studyCenter,
  86. giftPopup
  87. },
  88. data() {
  89. return {
  90. headerHeight:44,
  91. statusBarBG:"none",
  92. headerIndex:98,
  93. downOption: { //下拉刷新
  94. auto: true // 不自动加载 (mixin已处理第一个tab触发downCallback)
  95. },
  96. upOption: { //上拉加载
  97. auto: false, // 不自动加载
  98. page: {
  99. num: 0, // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
  100. size: 10 // 每页数据的数量
  101. },
  102. noMoreSize: 5, //如果列表已无数据,可设置列表的总数量要大于半页才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看; 默认5
  103. empty: {
  104. tip: '~ 空空如也 ~' // 提示
  105. // btnText: '去看看'
  106. }
  107. },
  108. //imageList:["../../static/image/home/banner.png"],
  109. imageList:[],
  110. advs:[],
  111. mtabs:[],
  112. tabIndex: 0, // 当前tab的下标
  113. fixedTop: false,
  114. top:0,
  115. cateId:0,
  116. isBest:false,
  117. dataList:[],
  118. recommendList:[],
  119. swHeightArr:{},
  120. swHeight: "400px",
  121. keyWord:"",
  122. dataItem:{},
  123. swiperAutoplay:true,
  124. famousItemHei:0,
  125. scrollTopHall: 0,
  126. scrollTopStudy: 0,
  127. old: {
  128. scrollTopStudy: 0,
  129. scrollTopHall: 0,
  130. },
  131. activeTab: 0,
  132. indicatorLineLeft: 0,
  133. indicatorLineWidth: 0,
  134. tabList: [
  135. {
  136. id: "tab01",
  137. name: '学习中心'
  138. }, {
  139. id: "tab02",
  140. name: '明医讲堂'
  141. }
  142. ],
  143. clientHeight:0,
  144. scrollViewId:'scrollView0',
  145. showGuide: false, // 是否显示引导
  146. guideStyle: "",
  147. tipPosition: "",
  148. tipsCenter: "",
  149. isShowGiftPopup: false
  150. }
  151. },
  152. onPageScroll(e) {
  153. this.top=e.scrollTop;
  154. },
  155. computed: {
  156. // 计算属性的 getter
  157. headerBG:function() {
  158. var top=this.top/88;
  159. return 'rgba(255,92,3, ' + top + ')';
  160. },
  161. },
  162. onReady() {
  163. uni.getSystemInfo({
  164. success: (res) => {
  165. this.clientHeight = res.windowHeight - uni.upx2px(120) - res.statusBarHeight;
  166. }
  167. })
  168. this.tabListSize = {};
  169. this.selectorQuery();
  170. },
  171. onShow(){
  172. if(!this.$isLogin()){
  173. uni.navigateTo({
  174. url: '/pages/auth/loginIndex'
  175. })
  176. return;
  177. }
  178. this.$updateMsgDot()
  179. this.swiperAutoplay=true;
  180. this.getCreateAd()
  181. if(this.activeTab == 1) {
  182. this.$nextTick(()=>{
  183. this.$refs['studyCenter'].onShowFun()
  184. });
  185. }
  186. },
  187. onHide() {
  188. this.swiperAutoplay=false;
  189. },
  190. onLoad(){
  191. // #ifdef APP-PLUS
  192. if(plus.runtime.isAgreePrivacy()) {
  193. if(plus.runtime.channel=="baidu"){ //获取渠道标识
  194. let bdCmdType=uni.getStorageSync("bdCmdType");
  195. console.log("qxj bdCmdType:"+bdCmdType);
  196. if(this.$isEmpty(bdCmdType)){
  197. this.$registerIdCode("activate",0,0);
  198. }
  199. }
  200. }
  201. // #endif
  202. uni.$on('loginOut', function() {
  203. uni.setStorageSync("AppToken",null);
  204. uni.removeStorageSync("onLaunch")
  205. uni.removeStorageSync("imUnread")
  206. uni.$emit("refreshUserInfo");
  207. let pages = getCurrentPages();
  208. let url = pages[ pages.length - 1]; //当前页页面实例
  209. //如果登录界面已打开,自动关闭
  210. if(url!=undefined&&url.route=="pages/auth/loginIndex"){
  211. return;
  212. }
  213. uni.navigateTo({
  214. url: '/pages/auth/loginIndex'
  215. });
  216. });
  217. },
  218. mounted() {
  219. try {
  220. const system = uni.getSystemInfoSync();
  221. let itemWid=(system.windowWidth-40-32)*0.5*0.95;
  222. let tempHei=itemWid*0.5;
  223. tempHei=uni.upx2px(tempHei)+30;
  224. this.famousItemHei=tempHei;
  225. } catch (e) {
  226. }
  227. },
  228. methods: {
  229. scroll(e,type) {
  230. this.old[type] = e.detail.scrollTop
  231. },
  232. handleTab(activeTab) {
  233. this.activeTab = activeTab
  234. this.changeGuide(activeTab);
  235. this.$nextTick(()=>{
  236. this.selectorQuery()
  237. })
  238. },
  239. loadFamousCourse(val){
  240. this.changeGuide(val);
  241. },
  242. updateIndicator(left, width) {
  243. this.indicatorLineLeft = left;
  244. this.indicatorLineWidth = width;
  245. },
  246. selectorQuery() {
  247. uni.createSelectorQuery().in(this).selectAll('.tabbar-item').boundingClientRect((rects) => {
  248. rects.forEach((rect) => {
  249. this.tabListSize[rect.id] = rect;
  250. })
  251. this.updateIndicator(this.tabListSize[this.activeTab].left, this.tabListSize[this.activeTab].width);
  252. }).exec();
  253. },
  254. // swiper划动
  255. onSwiperChange(e){
  256. this.changeIdx(e.detail.current);
  257. },
  258. // 更新当前页
  259. changeIdx(index){
  260. if(this.activeTab === index) return;
  261. this.activeTab = index;
  262. this.scrollViewId = 'scrollView'+this.activeTab;
  263. this.$nextTick(()=>{
  264. this.selectorQuery()
  265. });
  266. },
  267. /*下拉刷新的回调 */
  268. downCallback() {
  269. this.mescroll.resetUpScroll(true);
  270. var that=this;
  271. this.requestData();
  272. },
  273. /*上拉加载的回调*/
  274. upCallback(page) {
  275. this.mescroll.endByPage(1, 1);
  276. },
  277. requestData(){
  278. //this.getCourseCate();
  279. },
  280. getCourseCate:function(){
  281. let that=this;
  282. getCourseCate().then(res => {
  283. if(res.code==200){
  284. this.mtabs=res.data;
  285. let findIdx=this.mtabs.findIndex(item=>item.dictLabel=='精选');
  286. // console.log("qxj findIdx:"+findIdx);
  287. if(findIdx==-1){
  288. let dictItem={"dictValue":0,"dictLabel": "精选"};
  289. this.mtabs.unshift(dictItem);
  290. }
  291. this.isBest=true;
  292. if(this.mtabs.length>0){
  293. this.cateId=this.mtabs[0].dictValue;
  294. for (let i = 0; i < this.mtabs.length; i++) {
  295. if(i<=4){
  296. this.tabChange(i);
  297. }
  298. }
  299. //this.tabIndex=0;
  300. //this.dataItem=this.dataList[this.tabIndex.toString()]
  301. this.tabChange(0);
  302. }
  303. }
  304. },
  305. rej => {}
  306. );
  307. },
  308. getFamousCourseList:function(index){
  309. let that=this;
  310. let params={};
  311. if(this.isBest){
  312. params={"isBest":1};
  313. }else{
  314. params={"cateId":this.cateId};
  315. }
  316. if(this.dataList.hasOwnProperty(index+"")){
  317. this.updateSwiperHeight(index);
  318. return;
  319. }
  320. getCourseList(params,1,6).then(res => {
  321. if(res.code==200){
  322. this.dataList[index+""]=res.data.list;
  323. //this.$nextTick(() => {
  324. this.updateSwiperHeight(index);
  325. //});
  326. }
  327. },
  328. rej => {}
  329. );
  330. },
  331. getRecommendList:function(){
  332. let that=this;
  333. const params={"isTui":1};
  334. getCourseList(params,1,10).then(res => {
  335. if(res.code==200){
  336. this.recommendList=res.data.list;
  337. }
  338. },
  339. rej => {}
  340. );
  341. },
  342. swiperChange(e){
  343. // console.log("qxj swiperChange");
  344. this.tabIndex = e.detail.current;
  345. this.tabChange(this.tabIndex);
  346. },
  347. tabChange(index){
  348. // console.log("qxj tabChange index:"+index);
  349. this.tabIndex=index;
  350. const item=this.mtabs[index];
  351. if(item){
  352. if(item.dictLabel=='精选'){
  353. this.isBest=true;
  354. }else{
  355. this.isBest=false;
  356. }
  357. this.cateId=item.dictValue;
  358. this.getFamousCourseList(index);
  359. }
  360. },
  361. onTransition(){
  362. },
  363. animationfinish(){
  364. this.updateSwiperHeight();
  365. },
  366. onSwiperResize() {
  367. //console.log("qxj onSwiperResize");
  368. },
  369. updateSwiperHeight() {
  370. let dataArr=this.dataList[this.tabIndex.toString()];
  371. if(dataArr==undefined || dataArr.length==0){
  372. this.swHeight=150;
  373. }else{
  374. uni.createSelectorQuery().in(this).select('#swiper-content').boundingClientRect(rect => {
  375. //console.log("qxj swHeight:"+this.swHeight);
  376. if(rect!=null){
  377. this.swHeight = rect.height+20;
  378. }
  379. if(this.swHeight<=100){
  380. //所以(total + pagesize -1) / pagesize就得到总页数
  381. // console.log("qxj famousItemHei:"+this.famousItemHei);
  382. this.swHeight=(dataArr.length+1)/2*this.famousItemHei;
  383. return;
  384. }
  385. }).exec();
  386. }
  387. },
  388. getAdvList() {
  389. //联网加载数据
  390. var that = this;
  391. var data = { advType:12,status:1}
  392. getAdvList(data).then(res => {
  393. if(res.code==200){
  394. that.imageList=[];
  395. that.advs=[];
  396. res.data.forEach(function(element) {
  397. if(element.imageUrl!=null&&element.imageUrl!=""){
  398. that.advs.push(element);
  399. that.imageList.push(element.imageUrl);
  400. }
  401. });
  402. }else{
  403. uni.showToast({icon:'none',title: "请求失败"});
  404. }
  405. });
  406. },
  407. goToMsg(){
  408. if(!this.$isLogin()){
  409. this.$showLoginPage();
  410. return;
  411. }else{
  412. let registrationID=uni.getStorageSync("registrationID");
  413. let token = uni.getStorageSync('AppToken');
  414. }
  415. },
  416. // 页面跳转
  417. navTo(url) {
  418. console.log("qxj url:"+url);
  419. uni.navigateTo({
  420. url: url
  421. });
  422. },
  423. loginNavTo(url){
  424. if(!this.$isLogin()){
  425. this.$showLoginPage();
  426. return;
  427. }
  428. this.$navTo(url);
  429. },
  430. changeImg(){
  431. },
  432. handleAdvClick(index){
  433. var ad=this.advs[index];
  434. if(ad.showType==1){
  435. uni.setStorageSync('url',ad.appAdvUrl);
  436. uni.navigateTo({
  437. url:"h5"
  438. });
  439. }
  440. else if(ad.showType==2){
  441. // console.log(ad.appAdvUrl);
  442. uni.navigateTo({
  443. url:ad.appAdvUrl
  444. });
  445. }
  446. else if(ad.showType==3){
  447. uni.setStorageSync('content',ad.content);
  448. uni.navigateTo({url:"content"});
  449. }
  450. },
  451. changeGuide(val){
  452. let guide = ''
  453. let ele = ""
  454. if(val == 1) {
  455. // guide = uni.getStorageSync("studyCenterGuide");
  456. // ele = "#guide4"
  457. }
  458. else {
  459. guide = uni.getStorageSync("doctorHallGuide");
  460. ele = "#guide3"
  461. }
  462. if ((guide!=undefined && !guide) &&ele) {
  463. setTimeout(e=>{
  464. this.showGuide = true;
  465. this.getGuideInfo(ele);
  466. },val==0?1000:500);
  467. } else {
  468. this.showGuide = false;
  469. }
  470. },
  471. getGuideInfo(el) {
  472. const refname = this.activeTab == 1 ? 'studyCenter' : 'doctorHall'
  473. const query = uni.createSelectorQuery().in(this.$refs[refname]);
  474. this.$nextTick(function() {
  475. query.select(el).boundingClientRect()
  476. let _this = this;
  477. query.exec(function(res) {
  478. if(!res) return
  479. const {
  480. width,
  481. height,
  482. left,
  483. top,
  484. style = 'border-radius: 12rpx;margin: 0'
  485. } = res[0]
  486. if(el == '#guide3') {
  487. // 滑动至顶部(减去导航栏高度)
  488. _this.scrollTopHall = uni.upx2px(100) - 44
  489. _this.getGuide3item(res[0])
  490. } else {
  491. _this.scrollTopStudy = _this.old.scrollTopStudy
  492. _this.$nextTick(()=> {
  493. _this.scrollTopStudy = 0
  494. });
  495. // 减去我的评价宽度
  496. const relwidth = width
  497. let newstyle = "width:" + relwidth + "px;";
  498. newstyle += "height:" + height + "px;";
  499. newstyle += "left:" + uni.upx2px(24) + "px;";
  500. newstyle += "top:" + top + "px;";
  501. newstyle += style;
  502. _this.guideStyle = newstyle
  503. let tipsTop = height + uni.upx2px(20);
  504. _this.tipPosition = "top:" + tipsTop + 'px;left:' + uni.upx2px(88) + "px;";
  505. }
  506. })
  507. });
  508. },
  509. getGuide3item(res) {
  510. const {
  511. width,
  512. height,
  513. left,
  514. top,
  515. style = 'border-radius: 12rpx;margin: 0'
  516. } = res
  517. const refname = this.activeTab == 1 ? 'studyCenter' : 'doctorHall'
  518. const query = uni.createSelectorQuery().in(this.$refs[refname]);
  519. let _this = this;
  520. query.select(".guide3item").boundingClientRect((data) => {
  521. if(!data) return
  522. const relwidth = width + uni.upx2px(24)
  523. const relheight = height + data.height + uni.upx2px(30)
  524. console.log("qxj getGuide3item top:"+top+" scrollTopHall:"+ _this.scrollTopHall);
  525. // const reltop = top;
  526. const reltop = top - _this.scrollTopHall
  527. let newstyle = "width:" + relwidth + "px;";
  528. newstyle += "height:" + relheight + "px;";
  529. newstyle += "left:" + uni.upx2px(14) + "px;";
  530. newstyle += "top:" + reltop + "px;";
  531. newstyle += style;
  532. console.log("qxj guide3Style:"+JSON.stringify(newstyle));
  533. _this.guideStyle = newstyle
  534. const tipsCenter = relheight + uni.upx2px(50)
  535. _this.tipsCenter = "height:" + tipsCenter +"px";
  536. let tipsTop = - uni.upx2px(180);
  537. _this.tipPosition = "top:" + tipsTop + 'px;left:' + uni.upx2px(66) + "px;";
  538. }).exec();
  539. },
  540. closeGuide(type) {
  541. if(type == 'mask' && this.activeTab==0) {
  542. return
  543. }
  544. this.showGuide = false;
  545. if(this.activeTab == 1) {
  546. uni.setStorageSync("studyCenterGuide", true);
  547. // setTimeout(e=>{
  548. // uni.switchTab({url: '/pages/course/video/living-app' });
  549. // },500);
  550. }else {
  551. uni.setStorageSync("doctorHallGuide", true);
  552. // this.handleTab(1);
  553. setTimeout(e=>{
  554. uni.switchTab({
  555. url: '/pages/course/video/living-app',
  556. complete: () => {
  557. this.getCreateAd()
  558. }
  559. });
  560. },500);
  561. }
  562. this.scrollTopHall = this.old.scrollTopHall
  563. this.scrollTopStudy = this.old.scrollTopStudy
  564. this.$nextTick(()=> {
  565. this.scrollTopHall = 0
  566. this.scrollTopStudy = 0
  567. });
  568. },
  569. // 礼品弹窗
  570. getCreateAd() {
  571. // #ifdef APP-PLUS
  572. if(plus.runtime.isAgreePrivacy()) {
  573. if(plus.runtime.channel=="yyb" || plus.runtime.channel=="yybadv" || plus.runtime.channel=="yybadv1"){
  574. let guide = uni.getStorageSync("doctorHallGuide");
  575. let ele = "#guide3"
  576. if (guide && ele) {
  577. isCreateAd().then(res=>{
  578. if(res.code == 200 && res.isCreate) {
  579. this.$nextTick(()=>{
  580. this.$refs.giftPopup.openPop()
  581. })
  582. } else {
  583. this.$nextTick(()=>{
  584. this.$refs.giftPopup.closePop()
  585. })
  586. }
  587. })
  588. }
  589. }
  590. }
  591. // #endif
  592. }
  593. }
  594. }
  595. </script>
  596. <style scoped lang="scss">
  597. @mixin u-flex($flexD, $alignI, $justifyC) {
  598. display: flex;
  599. flex-direction: $flexD;
  600. align-items: $alignI;
  601. justify-content: $justifyC;
  602. }
  603. .guidebox {
  604. position: fixed;
  605. left: 0;
  606. top: 0;
  607. width: 100%;
  608. height: 100%;
  609. z-index: 1000;
  610. .guide {
  611. position: absolute;
  612. z-index: 10001;
  613. box-shadow: rgb(33 33 33 / 80%) 0px 0px 0px 0px, rgb(33 33 33 / 50%) 0px 0px 0px 5000px;
  614. }
  615. .guide-step-tips {
  616. position: absolute;
  617. top: 0;
  618. left: 0;
  619. z-index: 10001;
  620. padding: 18rpx 18rpx 18rpx 90rpx;
  621. box-sizing: border-box;
  622. border-radius: 24rpx;
  623. font-family: PingFang SC, PingFang SC;
  624. font-weight: 400;
  625. font-size: 26rpx;
  626. color: #FFFFFF;
  627. line-height: 40rpx;
  628. background: linear-gradient(90deg, #FCAC34, #F9622F);
  629. }
  630. .Frame2612 {
  631. height: 158rpx;
  632. width: 158rpx;
  633. position: absolute;
  634. left: -66rpx;
  635. top: -102rpx;
  636. }
  637. .guide3-step-tips2 {
  638. display: flex;
  639. flex-direction: column;
  640. align-items: center;
  641. justify-content: center;
  642. position: absolute;
  643. }
  644. .guide3-step-tips {
  645. width: 100vw;
  646. display: flex;
  647. flex-direction: column;
  648. align-items: center;
  649. justify-content: center;
  650. height: 100vh;
  651. position: absolute;
  652. }
  653. .guide3-step-tipsbox {
  654. display: flex;
  655. flex-direction: column;
  656. align-items: flex-end;
  657. }
  658. .guide3-btn{
  659. width: 272rpx;
  660. height: 84rpx;
  661. margin: 0 auto;
  662. background: #FF5C03;
  663. border-radius: 42rpx 42rpx 42rpx 42rpx;
  664. font-family: PingFang SC, PingFang SC;
  665. font-weight: 500;
  666. font-size: 32rpx;
  667. color: #FFFFFF;
  668. line-height: 84rpx;
  669. text-align: center;
  670. }
  671. .guide3-toptip {
  672. width: 640rpx;
  673. height: 160rpx;
  674. padding: 26rpx;
  675. box-sizing: border-box;
  676. position: relative;
  677. font-family: PingFang SC, PingFang SC;
  678. font-weight: 400;
  679. font-size: 26rpx;
  680. color: #FFFFFF;
  681. line-height: 30rpx;
  682. }
  683. .guide3-toptip-head {
  684. // position: relative;
  685. margin-bottom: 8rpx;
  686. font-family: PingFang SC, PingFang SC;
  687. font-weight: 600;
  688. font-size: 34rpx;
  689. color: #FFFFFF;
  690. line-height: 40rpx;
  691. }
  692. .guide3-toptip-headbg {
  693. width: 640rpx;
  694. height: 160rpx;
  695. position: absolute;
  696. top: 0;
  697. left: 0;
  698. z-index: -1;
  699. }
  700. .Frame2611 {
  701. width: 188rpx;
  702. height: 184rpx;
  703. position: absolute;
  704. top: -90rpx;
  705. right: 0;
  706. }
  707. .Frame2291 {
  708. width: 702rpx;
  709. // height: 684rpx;
  710. margin: 24rpx 0 40rpx 0;
  711. }
  712. }
  713. .container {
  714. font-family: PingFang SC, PingFang SC;
  715. padding-top: var(--status-bar-height);
  716. position: relative;
  717. z-index: 2;
  718. }
  719. .home_top_bg {
  720. width: 100%;
  721. height: auto;
  722. position: absolute;
  723. top: 0;
  724. left: 0;
  725. z-index: -1;
  726. }
  727. .tabbox {
  728. position: relative;
  729. margin-bottom: 22rpx;
  730. position: relative;
  731. .tabbar {
  732. height: 88rpx;
  733. @include u-flex(row,center,center);
  734. font-weight: 600;
  735. font-size: 32rpx;
  736. color: #222222;
  737. line-height: 88rpx;
  738. position: relative;
  739. .tabbar-item {
  740. margin: 0 24rpx;
  741. }
  742. .active {
  743. font-weight: 600;
  744. font-size: 40rpx;
  745. color: #FF5C03;
  746. position: relative;
  747. }
  748. }
  749. .tabbar-tabline-image {
  750. width: 36rpx;
  751. height: 12rpx;
  752. }
  753. .tabbar-tabline {
  754. position: absolute;
  755. bottom: 0;
  756. width: 0;
  757. height: 12rpx;
  758. display: flex;
  759. align-items: center;
  760. justify-content: center;
  761. }
  762. .tabbar-tabline-animation {
  763. transition-duration: 0.2s;
  764. transition-property: left;
  765. }
  766. }
  767. </style>