修改首页布局

This commit is contained in:
@fawn-nine
2024-07-03 11:39:45 +08:00
parent 016b072054
commit 2e9a250be3
3 changed files with 14 additions and 6 deletions

View File

@@ -256,7 +256,10 @@
onShow() { onShow() {
// 隐藏原生的tabbar // 隐藏原生的tabbar
uni.hideTabBar(); uni.hideTabBar();
// #ifdef APP-PLUS
plus.screen.unlockOrientation();
plus.screen.lockOrientation("portrait-primary");
// #endif
}, },
onReachBottom() { onReachBottom() {
console.log('触底'); console.log('触底');

View File

@@ -204,8 +204,10 @@
onShow() { onShow() {
// 隐藏原生的tabbar // 隐藏原生的tabbar
uni.hideTabBar(); uni.hideTabBar();
// #ifdef APP-PLUS
plus.screen.unlockOrientation(); plus.screen.unlockOrientation();
plus.screen.lockOrientation("portrait-primary"); plus.screen.lockOrientation("portrait-primary");
// #endif
this.getData(this.courseId) this.getData(this.courseId)
}, },
onReachBottom() { onReachBottom() {

View File

@@ -12,8 +12,8 @@
</view> </view>
</view> </view>
</view> </view>
<view class="fourBox nopadding "> <view class="fourBox nopadding" style="">
<view class="fourIcon flexbox noRadius" style="justify-content: space-around;"> <view class="fourIcon flexbox noRadius" style="justify-content: space-around; margin-bottom:0; box-shadow: none; ">
<div class="item flexbox" @click="onPageJump('/pages/course/outline')"> <div class="item flexbox" @click="onPageJump('/pages/course/outline')">
<image src="../../static/my_01.png" mode="aspectFit"></image> <image src="../../static/my_01.png" mode="aspectFit"></image>
<text>学习大纲</text> <text>学习大纲</text>
@@ -37,7 +37,7 @@
</view> </view>
</view> </view>
<view class="newLeve2"> <view class="newLeve2">
<view class="home_nar " style="padding: 0; background-color: #fff;"> <view class="home_nar nomargin" style="padding: 0; background-color: #fff;">
<view class="flexbox"> <view class="flexbox">
<view :class="['hn_cl_tit',tabsid==item.id?'active':'']" @click="curseClick(item)" <view :class="['hn_cl_tit',tabsid==item.id?'active':'']" @click="curseClick(item)"
v-for="(item, index) in curseTagList" :key="index"> v-for="(item, index) in curseTagList" :key="index">
@@ -305,8 +305,10 @@
//页面显示 //页面显示
onShow() { onShow() {
uni.hideTabBar(); uni.hideTabBar();
// #ifdef APP-PLUS
plus.screen.unlockOrientation(); plus.screen.unlockOrientation();
plus.screen.lockOrientation("portrait-primary"); plus.screen.lockOrientation("portrait-primary");
// #endif
this.requestAll() this.requestAll()
}, },
onTabItemTap() { onTabItemTap() {
@@ -687,7 +689,7 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/style/mixin.scss'; @import '@/style/mixin.scss';
.nomargin{margin: 0 !important;}
.nopadding{padding: 0 !important;} .nopadding{padding: 0 !important;}
.noRadius{border-radius: 0 !important;} .noRadius{border-radius: 0 !important;}
.appJump { .appJump {
@@ -1343,9 +1345,10 @@
} }
.newLeve2{ .newLeve2{
box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.3); // box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.3);
background-color: #fff; background-color: #fff;
padding: 0 10rpx; padding: 0 10rpx;
border-top: 1px solid #eee;
// padding-bottom:2rpx; // padding-bottom:2rpx;
} }
.home_nar { .home_nar {