Revert "调整号源列表样式"

This reverts commit ed0542f8b9.
main
岩仔88 4 weeks ago
parent ed0542f8b9
commit 611b285778

@ -20,7 +20,7 @@
</view> </view>
<view class="hengxian"></view> <view class="hengxian"></view>
<view class="timelist"> <view class="timelist">
<view v-for="(item,index) in dataInfo.list" @click="timeClick(item)" :class="[(item.status==2 || item.is_lock==1)?'used':'', (item.time==selectedTime)?'selectedtime':'', 'time']">{{item.time.substring(0, 5)}}</view> <view v-for="(item,index) in dataInfo.list" @click="timeClick(item)" :class="(item.time==selectedTime)?'time selectedtime':'time'" ><span :class="(item.status==2 || item.is_lock==1)?'used':''">{{item.time.substring(0, 5)}}</span></view>
</view> </view>
</view> </view>
</template> </template>
@ -170,6 +170,11 @@
/* background-color: #239EA3; */ /* background-color: #239EA3; */
color: #008F96 !important; color: #008F96 !important;
} }
.selectedtime{
background-color: #239EA3;
color: #fff !important;
}
.zhou_title { .zhou_title {
font-size: 28rpx; font-size: 28rpx;
margin-top: 6rpx; margin-top: 6rpx;
@ -221,32 +226,37 @@
} }
.timelist { .timelist {
display: grid; display: flex;
grid-template-columns: repeat(6, 1fr); flex-wrap: wrap;
grid-row-gap: 30px; justify-content: space-between;
column-gap: 0; justify-content: flex-start;
margin-top: 30px; }
.timelist::after {
content: '';
flex: auto;
/* 或者 flex: 1; */
} }
.time { .time {
width: 100%; font-size: 28rpx;
height: 30px;
line-height: 30px;
text-align: center; text-align: center;
border-radius: 7px; margin-top: 40rpx;
font-size: 15px; border-radius: 14rpx;
color: #239ea3; padding: 10rpx 16rpx;
font-weight: 600; flex: 0 0 calc(16.3% - 32rpx);
box-sizing: border-box; /* 假设一行有4个项目减去想要的间隔 */
}
/* 设置右侧边距 */
color: #008F96;
.selectedtime {
background-color: #239ea3;
color: #fff !important;
} }
.used { .time:nth-child(6n) {
color: #a5a5a5; margin-right: 0;
font-weight: normal; }
.used{
color:#B5B5B6;
} }
</style> </style>

@ -1,7 +1,7 @@
const app_type = 'gzh' const app_type = 'gzh'
//const base_url = "https://api.hainan2024.sa0.online" //开发环境 //const base_url = "https://api.hainan2024.sa0.online" //开发环境
//const base_url="https://tj-h5.hnxdfe.com" //正式环境 const base_url="https://tj-h5.hnxdfe.com" //正式环境
const base_url="http://124.225.137.54:39081" //测试环境 //const base_url="http://124.225.137.54:39081" //测试环境
const config = { const config = {
api_map_url: base_url + '/api/ApiMap/h5', api_map_url: base_url + '/api/ApiMap/h5',
base_assets_url: base_url, base_assets_url: base_url,

Loading…
Cancel
Save