树展示形式修改

This commit is contained in:
@fawn-nine
2024-06-28 16:14:34 +08:00
parent 8488a10f77
commit bf13ad1868
2 changed files with 23 additions and 15 deletions

View File

@@ -28,12 +28,14 @@
v-for="(item2, index2) in item1.children" :key="index2" v-for="(item2, index2) in item1.children" :key="index2"
@click.stop="clickCourseInfo(item2)"> @click.stop="clickCourseInfo(item2)">
<text class="textss">{{item2.title}}</text> <text class="textss">{{item2.title}}</text>
<view class="sub3List" v-if="item2.children"> <view class="sub3List" v-if="item2.children && item2.children.length > 0">
<view :class="['item', 'leve4']" <!-- <view :class="['item', 'leve4']" -->
v-for="(item3, index3) in item2.children" :key="index3" <!-- <template> -->
@click.stop="clickCourseInfo(item3)"> <text class="textss" v-for="(item3, index3) in item2.children"
<text class="textss">{{item3.title}}</text> :key="index3"
</view> @click.stop="clickCourseInfo(item3)">{{item3.title}}</text>
<!-- </view> -->
<!-- </template> -->
</view> </view>
</view> </view>
</view> </view>
@@ -122,8 +124,8 @@
.item { .item {
background-color: #fff; background-color: #fff;
line-height: 80rpx; line-height: 80rpx;
font-size: 26rpx; font-size: 28rpx;
color: #497387; color: #1b2a32;
// border-bottom: 1px solid #dae8f0; // border-bottom: 1px solid #dae8f0;
text { text {
@@ -160,8 +162,13 @@
} }
.leve3 { .leve3 {
.sub3List{
border-bottom: 1px solid #ebeef5; padding-left: 60rpx;
.textss{background-color: #ebeef5; border-radius: 20rpx; padding: 10rpx 14rpx !important;}
}
.textss { .textss {
padding-left: 60rpx; padding-left: 60rpx; display: inline; margin-right: 20rpx; border:none !important;
} }
} }
@@ -170,14 +177,15 @@
padding-left: 80rpx; padding-left: 80rpx;
} }
} }
} }
.proTitle { .proTitle {
text-align: center; text-align: center;
padding: 20rpx 0; padding: 20rpx 0;
margin-top: 60rpx; margin-top: 60rpx;
// margin-bottom: 20rpx; // margin-bottom: 20rpx;
color: #666; color: #888;
font-size: 26rpx; font-size: 28rpx;
} }
.close { .close {
display: flex; display: flex;

View File

@@ -5,8 +5,8 @@ if (process.env.NODE_ENV === 'development') {
// baseUrl = "http://localhost:7001/"; // baseUrl = "http://localhost:7001/";
// socketUrl = "ws://localhost:6001/"; // socketUrl = "ws://localhost:6001/";
// baseUrl = "https://twin-ui.com/demo/"; // baseUrl = "https://twin-ui.com/demo/";
baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境 // baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
// baseUrl = "https://api.nuttyreading.com/"; // 线上正式 baseUrl = "https://api.nuttyreading.com/"; // 线上正式
// baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑 // baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
// baseUrl = "http://59.110.212.44:9200/pb/"; // baseUrl = "http://59.110.212.44:9200/pb/";
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑 // baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑