123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790 |
- <template>
- <view class="detail-page">
- <cu-custom isBack="true" bgColor="#000000">
- <view slot="content" style="color: #FFFFFF">UU睡眠</view>
- </cu-custom>
-
- <scroll-view class="tab" id="tab" :show-scrollbar="false" :scroll-x="true" :scroll-into-view="tabScrollInto">
- <view class="tabContent" style="display: flex; flex-direction: column;">
- <view style="display: flex;flex-direction: row;">
- <view class="tabItem" v-for="(tab,tabItemIndex) in tabList" :key="tab.id" :id="tab.id" :data-id="tabItemIndex"
- :data-current="tabItemIndex" @click="pressScrollViewItem">
- <text class="tabItemTitle"
- :class="tabIndex==tabItemIndex ? 'tabItemTitleActive' : ''"
- :style="{width:tabList[tabItemIndex].width + 'px'}"
- >{{tab.title}}</text>
- </view>
- </view>
- <view class="tabLineView">
- <!-- <view class="tabLine" :class="isPress ? 'tabLineActive':'tabLineActive'" -->
- <!-- :style="{left: tabItemLineLeft + 'px', width: tabItemLineWidth + 'px'}"></view> -->
- </view>
- </view>
- </scroll-view>
- <swiper class="childPageView" :current="tabIndex" :duration="250" @change="swiperChange"
- @animationfinish="swiperChangeEnd" @onAnimationEnd="swiperChangeEnd" :style="{height: swiperHeight+'px'}">
- <swiper-item class="childPageViewItem" v-for="(page, childPageViewItemIndex) in tabList" :key="childPageViewItemIndex">
- <scroll-view v-if="childPageViewItemIndex == 0" scroll-y="true" :style="{height: swiperHeight+'px'}">
-
- <view class="tab-detail">
- <view class="title-tab-detail">睡眠效率</view>
- <view class="flex-col data-tab-detail">
- <view class="justify-between header-data-tab flex-row">
- <text class="self-start">睡眠效率0%</text>
- <text class="self-end">较差</text>
- </view>
-
- <view class="justify-between flex-row middle-tab-detail">
- <view class="self-start">
- <view class="text-middle-tab">昨天 暂无</view>
- <view class="text-middle-tab">前天 暂无</view>
- </view>
- <image
- src="../../static/report/reportAlertBg.png"
- class="self-end image-middle-tab"
- />
- </view>
-
- <text class="footer-tab-detail">注:睡眠效率=睡眠总时长/在床时间</text>
- </view>
-
- <view class="justify-between flex-row tip-tab-detail">
- <image
- class="image-tip-tab self-end"
- src="../../static/mine/myAvatar.png" />
- <view class="text-tip-tab flex-auto">
- <text class="title-tip-tab">睡眠小贴士</text>
- <text class="content-tip-tab">如果当前睡眠效率偏低,建议通过以下方式进行改善。
- 1.聆听平淡而有节律的睡眠音乐
- 2. 睡前喝一杯加糖的热牛奶
- 了. 合适的睡姿:左侧卧,仰卧,俯卧(即
- 趴着睡)
- 4.用热水泡脚,一般半个小左右,有高血糖的朋友十分钟效果最佳。
- </text>
- </view>
- </view>
-
- <view class="post-tab-detail">
- <div class="title-post-tab">健康小知识</div>
- <image
- class="image-post-tab"
- src="../../static/report/reportAlertBg.png"
- />
- <div class="content-post-tab">
- 提高睡眠效率的方法
- 1要有睡觉的积极意识,不要在睡觉的时候还想一些烦心事。要让心静下来。
- 2.睡觉前不能吃的太多,这样胃会感到不适,身体不舒服,自然睡不着。
- 了.每天多参加户外活动和体育锻炼。提高身体免疫力和抵抗力。拥有一个强健的体魄。
- </div>
- </view>
- </view>
- </scroll-view>
- <scroll-view v-if="childPageViewItemIndex == 1" scroll-y="true" :style="{height: swiperHeight+'px'}">
-
- <view class="tab-detail">
- <view class="justify-between flex-row">
- <view class="title-tab-detail">深浅睡眠</view>
- <view class="subtile-tab-detail self-end">平均心率61次/分</view>
- </view>
-
- <view class="charts-sleep-item"></view>
-
- <view class="data-sleep-item">
- <view class="date-sleep-item">2023.06.12</view>
- <view class="flex-row justify-between">
- <view>清醒:0H10M</view>
- <view>清醒:0H10M</view>
- <view>清醒:0H10M</view>
- <view>清醒:0H10M</view>
- </view>
- </view>
-
- <view class="data-sleep-item">
- <view class="date-sleep-item">2023.06.12</view>
- <view class="flex-row justify-between">
- <view>清醒:0H10M</view>
- <view>清醒:0H10M</view>
- <view>清醒:0H10M</view>
- <view>清醒:0H10M</view>
- </view>
- </view>
-
- <view class="data-sleep-item">
- <view class="date-sleep-item">2023.06.12</view>
- <view class="flex-row justify-between">
- <view>清醒:0H10M</view>
- <view>清醒:0H10M</view>
- <view>清醒:0H10M</view>
- <view>清醒:0H10M</view>
- </view>
- </view>
-
- <view class="justify-between flex-row tip-tab-detail">
- <image
- class="image-tip-tab self-end"
- src="../../static/mine/myAvatar.png" />
- <view class="text-tip-tab flex-auto">
- <text class="title-tip-tab">睡眠小贴士</text>
- <text class="content-tip-tab">如果当前睡眠效率偏低,建议通过以下方式进行改善。
- 1.聆听平淡而有节律的睡眠音乐
- 2. 睡前喝一杯加糖的热牛奶
- 了. 合适的睡姿:左侧卧,仰卧,俯卧(即
- 趴着睡)
- 4.用热水泡脚,一般半个小左右,有高血糖的朋友十分钟效果最佳。
- </text>
- </view>
- </view>
-
- <view class="post-tab-detail">
- <div class="title-post-tab">健康小知识</div>
- <image
- class="image-post-tab"
- src="../../static/report/reportAlertBg.png"
- />
- <div class="content-post-tab">
- 提高睡眠效率的方法
- 1要有睡觉的积极意识,不要在睡觉的时候还想一些烦心事。要让心静下来。
- 2.睡觉前不能吃的太多,这样胃会感到不适,身体不舒服,自然睡不着。
- 了.每天多参加户外活动和体育锻炼。提高身体免疫力和抵抗力。拥有一个强健的体魄。
- </div>
- </view>
- </view>
- </scroll-view>
-
-
- <scroll-view v-if="childPageViewItemIndex == 2" scroll-y="true" :style="{height: swiperHeight+'px'}">
-
- <view class="tab-detail">
- <view class="title-tab-detail">安稳度</view>
- <view class="flex-col data-tab-detail">
- <view class="justify-between header-data-tab flex-row">
- <text class="self-start">入睡时长</text>
- </view>
-
- <view class="justify-between flex-row middle-tab-detail">
- <view class="self-start">
- <view class="text-middle-tab">今日 10m</view>
- <view class="text-middle-tab">昨天 暂无</view>
- <view class="text-middle-tab">前天 暂无</view>
- </view>
- <image
- src="../../static/report/reportAlertBg.png"
- class="self-end image-middle-tab"
- />
- </view>
- </view>
-
- <view class="flex-col data-tab-detail">
- <view class="justify-between header-data-tab flex-row">
- <text class="self-start">离床次数</text>
- </view>
-
- <view class="flex-row justify-between data-sleep-condition">
- <view class="flex-col align-start item-sleep-condition">
- <text class="title-sleep-condition class="subtitle-sleep-condition>今天</text>
- <text class="subtitle-sleep-condition">入睡前:0次</text>
- <text class="subtitle-sleep-condition">入睡后:0次</text>
- </view>
- <view class="flex-col align-start item-sleep-condition">
- <text class="title-sleep-condition class="subtitle-sleep-condition>今天</text>
- <text class="subtitle-sleep-condition">入睡前:0次</text>
- <text class="subtitle-sleep-condition">入睡后:0次</text>
- </view>
- <view class="flex-col align-start item-sleep-condition">
- <text class="title-sleep-condition class="subtitle-sleep-condition>今天</text>
- <text class="subtitle-sleep-condition">入睡前:0次</text>
- <text class="subtitle-sleep-condition">入睡后:0次</text>
- </view>
- <image
- src="../../static/report/reportAlertBg.png"
- class="image-sleep-condition self-baseline"
- />
- </view>
- </view>
-
- <view class="flex-col data-tab-detail">
- <view class="justify-between header-data-tab flex-row">
- <text class="self-start">体动次数</text>
- </view>
-
- <view class="flex-row justify-between data-sleep-condition">
- <view class="flex-col align-start item-sleep-condition">
- <text class="title-sleep-condition class="subtitle-sleep-condition>今天</text>
- <text class="subtitle-sleep-condition">入睡前:0次</text>
- <text class="subtitle-sleep-condition">入睡后:0次</text>
- </view>
- <view class="flex-col align-start item-sleep-condition">
- <text class="title-sleep-condition class="subtitle-sleep-condition>今天</text>
- <text class="subtitle-sleep-condition">入睡前:0次</text>
- <text class="subtitle-sleep-condition">入睡后:0次</text>
- </view>
- <view class="flex-col align-start item-sleep-condition">
- <text class="title-sleep-condition class="subtitle-sleep-condition>今天</text>
- <text class="subtitle-sleep-condition">入睡前:0次</text>
- <text class="subtitle-sleep-condition">入睡后:0次</text>
- </view>
- <image
- src="../../static/report/reportAlertBg.png"
- class="image-sleep-condition self-baseline"
- />
- </view>
- </view>
-
- <view class="justify-between flex-row tip-tab-detail">
- <image
- class="image-tip-tab self-end"
- src="../../static/mine/myAvatar.png" />
- <view class="text-tip-tab flex-auto">
- <text class="title-tip-tab">睡眠小贴士</text>
- <text class="content-tip-tab">如果当前睡眠效率偏低,建议通过以下方式进行改善。
- 1.聆听平淡而有节律的睡眠音乐
- 2. 睡前喝一杯加糖的热牛奶
- 了. 合适的睡姿:左侧卧,仰卧,俯卧(即
- 趴着睡)
- 4.用热水泡脚,一般半个小左右,有高血糖的朋友十分钟效果最佳。
- </text>
- </view>
- </view>
-
- <view class="post-tab-detail">
- <div class="title-post-tab">健康小知识</div>
- <image
- class="image-post-tab"
- src="../../static/report/reportAlertBg.png"
- />
- <div class="content-post-tab">
- 提高睡眠效率的方法
- 1要有睡觉的积极意识,不要在睡觉的时候还想一些烦心事。要让心静下来。
- 2.睡觉前不能吃的太多,这样胃会感到不适,身体不舒服,自然睡不着。
- 了.每天多参加户外活动和体育锻炼。提高身体免疫力和抵抗力。拥有一个强健的体魄。
- </div>
- </view>
- </view>
- </scroll-view>
-
- <scroll-view v-if="childPageViewItemIndex == 3" scroll-y="true" :style="{height: swiperHeight+'px'}">
-
- <view class="tab-detail">
- <view class="justify-between flex-row">
- <view class="title-tab-detail">心率</view>
- <view class="subtile-tab-detail self-end">平均心率61次/分</view>
- </view>
-
- <view class="charts-sleep-item"></view>
-
- <view class="data-sleep-item">
- <view class="date-sleep-item">2023.06.12</view>
- <view class="flex-row justify-between">
- <view>最高心率:76</view>
- <view>最低心率:30</view>
- <view>平均心率:66</view>
- </view>
- </view>
-
- <view class="data-sleep-item">
- <view class="date-sleep-item">2023.06.12</view>
- <view class="flex-row justify-between">
- <view>最高心率:76</view>
- <view>最低心率:30</view>
- <view>平均心率:66</view>
- </view>
- </view>
-
- <view class="data-sleep-item">
- <view class="date-sleep-item">2023.06.12</view>
- <view class="flex-row justify-between">
- <view>最高心率:76</view>
- <view>最低心率:30</view>
- <view>平均心率: 66</view>
- </view>
- </view>
-
- <view class="justify-between flex-row tip-tab-detail">
- <image
- class="image-tip-tab self-end"
- src="../../static/mine/myAvatar.png" />
- <view class="text-tip-tab flex-auto">
- <text class="title-tip-tab">睡眠小贴士</text>
- <text class="content-tip-tab">如果当前睡眠效率偏低,建议通过以下方式进行改善。
- 1.聆听平淡而有节律的睡眠音乐
- 2. 睡前喝一杯加糖的热牛奶
- 了. 合适的睡姿:左侧卧,仰卧,俯卧(即
- 趴着睡)
- 4.用热水泡脚,一般半个小左右,有高血糖的朋友十分钟效果最佳。
- </text>
- </view>
- </view>
-
- <view class="post-tab-detail">
- <div class="title-post-tab">健康小知识</div>
- <image
- class="image-post-tab"
- src="../../static/report/reportAlertBg.png"
- />
- <div class="content-post-tab">
- 提高睡眠效率的方法
- 1要有睡觉的积极意识,不要在睡觉的时候还想一些烦心事。要让心静下来。
- 2.睡觉前不能吃的太多,这样胃会感到不适,身体不舒服,自然睡不着。
- 了.每天多参加户外活动和体育锻炼。提高身体免疫力和抵抗力。拥有一个强健的体魄。
- </div>
- </view>
- </view>
- </scroll-view>
-
- <scroll-view v-if="childPageViewItemIndex == 4" scroll-y="true" :style="{height: swiperHeight+'px'}">
-
- <view class="tab-detail">
- <view class="justify-between flex-row">
- <view class="title-tab-detail">呼吸率</view>
- <view class="subtile-tab-detail self-end">平均呼吸率12次/分</view>
- </view>
-
- <view class="charts-sleep-item">
-
- </view>
-
- <view class="data-sleep-item">
- <view class="date-sleep-item">2023.06.12</view>
- <view class="flex-row justify-between">
- <view>最高呼吸率:19</view>
- <view>最低呼吸率:2</view>
- <view>平均呼吸率:10</view>
- </view>
- </view>
-
- <view class="data-sleep-item">
- <view class="date-sleep-item">2023.06.12</view>
- <view class="flex-row justify-between">
- <view>最高呼吸率:19</view>
- <view>最低呼吸率:2</view>
- <view>平均呼吸率:10</view>
- </view>
- </view>
-
- <view class="data-sleep-item">
- <view class="date-sleep-item">2023.06.12</view>
- <view class="flex-row justify-between">
- <view>最高呼吸率:19</view>
- <view>最低呼吸率:2</view>
- <view>平均呼吸率:10</view>
- </view>
- </view>
-
- <view class="justify-between flex-row tip-tab-detail">
- <image
- class="image-tip-tab self-end"
- src="../../static/mine/myAvatar.png" />
- <view class="text-tip-tab flex-auto">
- <text class="title-tip-tab">睡眠小贴士</text>
- <text class="content-tip-tab">如果当前睡眠效率偏低,建议通过以下方式进行改善。
- 1.聆听平淡而有节律的睡眠音乐
- 2. 睡前喝一杯加糖的热牛奶
- 了. 合适的睡姿:左侧卧,仰卧,俯卧(即
- 趴着睡)
- 4.用热水泡脚,一般半个小左右,有高血糖的朋友十分钟效果最佳。
- </text>
- </view>
- </view>
-
- <view class="post-tab-detail">
- <div class="title-post-tab">健康小知识</div>
- <image
- class="image-post-tab"
- src="../../static/report/reportAlertBg.png"
- />
- <div class="content-post-tab">
- 提高睡眠效率的方法
- 1要有睡觉的积极意识,不要在睡觉的时候还想一些烦心事。要让心静下来。
- 2.睡觉前不能吃的太多,这样胃会感到不适,身体不舒服,自然睡不着。
- 了.每天多参加户外活动和体育锻炼。提高身体免疫力和抵抗力。拥有一个强健的体魄。
- </div>
- </view>
- </view>
- </scroll-view>
-
- <scroll-view v-if="childPageViewItemIndex == 5" scroll-y="true" :style="{height: swiperHeight+'px'}">
-
- <view class="tab-detail">
- <view class="title-tab-detail">异常状况</view>
-
- <view class="charts-sleep-item"></view>
-
- <view class="flex-col data-tab-detail">
- <view class="justify-between header-data-tab flex-row">
- <text class="self-start">疑似呼吸暂停</text>
- </view>
-
- <view class="justify-between flex-row middle-tab-detail">
- <view class="self-start">
- <view class="text-middle-tab">今日 10m</view>
- <view class="text-middle-tab">昨天 暂无</view>
- <view class="text-middle-tab">前天 暂无</view>
- </view>
- <image
- src="../../static/report/reportAlertBg.png"
- class="self-end image-middle-tab"
- />
- </view>
- </view>
-
- <view class="justify-between flex-row tip-tab-detail">
- <image
- class="image-tip-tab self-end"
- src="../../static/mine/myAvatar.png" />
- <view class="text-tip-tab flex-auto">
- <text class="title-tip-tab">睡眠小贴士</text>
- <text class="content-tip-tab">如果当前睡眠效率偏低,建议通过以下方式进行改善。
- 1.聆听平淡而有节律的睡眠音乐
- 2. 睡前喝一杯加糖的热牛奶
- 了. 合适的睡姿:左侧卧,仰卧,俯卧(即
- 趴着睡)
- 4.用热水泡脚,一般半个小左右,有高血糖的朋友十分钟效果最佳。
- </text>
- </view>
- </view>
-
- <view class="post-tab-detail">
- <div class="title-post-tab">健康小知识</div>
- <image
- class="image-post-tab"
- src="../../static/report/reportAlertBg.png"
- />
- <div class="content-post-tab">
- 提高睡眠效率的方法
- 1要有睡觉的积极意识,不要在睡觉的时候还想一些烦心事。要让心静下来。
- 2.睡觉前不能吃的太多,这样胃会感到不适,身体不舒服,自然睡不着。
- 了.每天多参加户外活动和体育锻炼。提高身体免疫力和抵抗力。拥有一个强健的体魄。
- </div>
- </view>
- </view>
- </scroll-view>
- </swiper-item>
- </swiper>
- </view>
- </template>
- <script>
- import cell from './cell.vue';
- export default {
- components: {
- cell
- },
- data() {
- return {
- tabList: [{
- id: "tabItem0",
- title: '睡眠效率',
- width:70,
- }, {
- id: "tabItem1",
- title: '深浅睡眠',
- width:70,
- }, {
- id: "tabItem2",
- title: '安稳度',
- width:70,
- }, {
- id: "tabItem3",
- title: '心率',
- width:70,
- }, {
- id: "tabItem4",
- title: '呼吸率',
- width:70,
- }, {
- id: "tabItem5",
- title: '异常状况',
- width:70,
- }],
- tabIndex: 0,
- tabScrollInto: "",
- tabListSize: {},
- tabItemLineLeft: 0,
- tabItemLineWidth: 0,
- isPress: false,
- swiperHeight: 0
- }
- },
- onLoad(option) {
- let system = uni.getSystemInfoSync();
- this.swiperHeight = system.windowHeight - 44;
- console.log(this.swiperHeight);
-
- // 跳转时传递index打开指定页面
- console.log(option.index)
- this.setTabSelect(option.index)
- },
- onReady() {
- this.setTabItemDistance();
- this.setTabSelect(this.tabIndex);
- },
- methods: {
- pressScrollViewItem(e) {
- let index = e.target.dataset.current || e.currentTarget.dataset.current;
- this.isPress = true;
- this.setTabSelect(index);
- },
- swiperChange(e) {
- let index = e.target.current || e.detail.current;
- this.tabIndex = index;
- this.setTabSelect(this.tabIndex);
- },
- setTabItemDistance() {
- var queryTabSize = uni.createSelectorQuery().in(this);
- for (var i = 0; i < this.tabList.length; i++) {
- queryTabSize.select('#' + this.tabList[i].id).boundingClientRect();
- }
- queryTabSize.exec(rects => {
- rects.forEach((rect) => {
- this.tabListSize[rect.dataset.id] = rect;
- })
- console.log(this.tabListSize);
- this.setTabItemLinePosition(this.tabListSize[this.tabIndex].left, this.tabListSize[this.tabIndex].width);
- });
- },
- setTabItemLinePosition(left, width) {
- this.tabItemLineLeft = left;
- this.tabItemLineWidth = width;
- },
- swiperChangeEnd(e) {
- this.setTabItemLinePosition(this.tabListSize[this.tabIndex].left, this.tabListSize[this.tabIndex].width);
- },
- setTabSelect(index) {
- this.tabIndex = index;
- this.tabScrollInto = this.tabList[index].id;
- console.log(this.tabScrollInto);
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .data-sleep-condition {
- margin-top: 10px;
-
- .item-sleep-condition {
- .title-sleep-condition {
- font-size: 16px;
- line-height: 20px;
- }
- .subtitle-sleep-condition {
- font-size: 11px;
- line-height: 20px;
- }
- }
- .image-sleep-condition {
- height: 60px;
- width: 60px;
- }
- }
- .charts-sleep-item {
- background: #0233C699;
- backdrop-filter: blur(20px);
- border-radius: 15px;
- padding: 10px;
- margin-top: 10px;
- height: 100px;
- }
-
- .data-sleep-item {
- background: #0233C699;
- backdrop-filter: blur(20px);
- border-radius: 15px;
- padding: 10px;
- margin-top: 10px;
- font-size: 13px;
-
- .date-sleep-item {
- margin-bottom: 7px;
- }
- }
- .detail-page {
- display: flex;
- flex-direction: column;
- overflow: hidden;
- background-image: url("http://wdklmall.oss-cn-shenzhen.aliyuncs.com/mallgoods/goods/3C62AD507C8345D49AEB2AAD8F7584BB.png");
- background-size: 100% 100%;
- background-repeat: no-repeat;
- height: 100%;
-
- .childPageView {
- padding-bottom: 1.25rem;
- background-image: linear-gradient(180deg, #1e1ef7f2 0%, #1dbff79c 100%);
- backdrop-filter: blur(0.19rem);
- height: 100%;
- }
- }
- .tab-detail {
- color: #ffffff;
- font-size: 15px;
- padding: 15px;
-
- .title-tab-detail {
- font-size: 18px;
- }
- .subtile-tab-detail {
- font-size: 14px;
- }
- .data-tab-detail {
- background: #0233C699;
- backdrop-filter: blur(20px);
- border-radius: 15px;
- margin-top: 10px;
- padding: 15px 10px;
-
- .header-data-tab {
- border-bottom: 1px solid #FFFFFF99;
- padding-bottom: 10px;
- }
- .middle-tab-detail {
- padding: 10px 0;
- border-bottom: 1px solid #FFFFFF99;
-
- .image-middle-tab {
- width: 100px;
- height: 30px;
- }
- .text-middle-tab {
- line-height: 25px;
- }
- }
- .footer-tab-detail {
- padding-top: 10px;
- font-size: 13px;
- }
- }
- .tip-tab-detail {
- margin-top: 30px;
-
- .image-tip-tab {
- width: 100px;
- height: 100px;
- margin-right: 10px;
- }
- .text-tip-tab {
- border: 1px solid #ffffff7d;
- border-radius: 5px;
- padding: 10px;
-
- .title-tip-tab {
- font-size: 17px;
- font-weight: 500;
- display: block;
- text-align: center;
- margin-bottom: 3px;
- }
- .content-tip-tab {
- font-size: 13px;
- }
- }
- }
- .post-tab-detail {
- margin-top: 40px;
- padding-bottom: 100px;
-
- .title-post-tab {
- font-size: 20px;
- font-weight: 500;
- }
- .image-post-tab {
- width: 100%;
- display: block;
- margin-top: 10px;
- }
- .content-post-tab {
- margin-top: 10px;
- line-height: 28px;
- font-size: 15px;
- }
- }
- }
- .tab {
- width: 100vw;
- height: 44px;
- display: flex;
- flex-direction: row;
- white-space: nowrap;
- background: #1e1ef7f2;
- -webkit-backdrop-filter: blur(0.19rem);
- backdrop-filter: blur(0.19rem);
- color: #ffffff;
- }
- .tab ::-webkit-scrollbar {
- display: none;
- width: 0 !important;
- height: 0 !important;
- -webkit-appearance: none;
- background: transparent;
- }
- .tabLineView {
- position: relative;
- height: 2px;
- background-color: transparent;
-
- }
- .tabLine {
- position: absolute;
- top: 0;
- bottom: 0;
- width: 0;
- background-color: #ffffff;
- }
- .tabLineActive {
- transition-duration: 0.3s;
- transition-property: left;
- }
- .childPageView {
- display: flex;
- flex-direction: column;
- }
- .tabItem {
- display: flex;
- }
- .tabItemTitle {
- color: #FFFFFF99;
- font-size: 15px;
- height: 42px;
- line-height: 40px;
- display: flex;
- flex-wrap: nowrap;
- align-items: center;
- justify-content: center;
- }
- .tabItemTitleActive {
- color: #FFFFFF;
- }
- .childPageViewItem {
- flex: 1;
- flex-direction: column;
- }
- </style>
|