Jelajahi Sumber

样式开发

tanxue 2 minggu lalu
induk
melakukan
2861a8c1c7

+ 0 - 1
common/styles/global/components.scss

@@ -347,7 +347,6 @@ view{box-sizing: border-box;}
 }
 
 
-  
 /***** 考试须知 *****/
 .ksxz-dialog{
 	width: 640rpx;font-size: 28rpx;color: #333;max-height: 70vh;overflow: auto;border-radius: 20rpx;background-color: #fff;

+ 8 - 6
common/styles/global/pages.scss

@@ -48,19 +48,21 @@
 
 		//meul-box
 		.index-meul-box {
+			display: flex;
 			.lli-grid-item {
-				flex: 1;
-				/* #ifndef APP-NVUE */
-				display: flex;
-				/* #endif */
-				flex-direction: column;align-items: center;justify-content: center;padding: 15px 0;
+				display: flex;flex-direction: column;align-items: center;justify-content: center;
+				padding: 15px 0;flex: 1;position: relative;
 			}
 
 			.grid-item-image {width: 99rpx;height: 113rpx;}
 
 			.grid-item-text {font-size: 24rpx;color: $uni-text-color;}
 
-			.grid-dot {position: absolute;top: 5px;right: 15px;}
+			.grid-dot {
+				min-width: 32rpx;height: 32rpx;padding: 0 4rpx;line-height: 30rpx;
+				display: flex;justify-content: center;align-items: center;font-size: 24rpx;
+				color: #fff;border-radius: 100rpx;background-color: rgb(255, 85, 81);
+				position: absolute;top:26rpx;right: 28rpx;}
 		}
 
 		// title-box

+ 5 - 10
pages/index/index.vue

@@ -7,16 +7,11 @@
 		</view>
 		<!-- meul-box -->
 		<view class="index-meul-box">
-			<view :column="4" :show-border="false" :square="false" @change="gridClick">
-				<view v-for="(item ,index) in menuList" :index="index" :key="index">
-					<view class="lli-grid-item">
-						<image class="grid-item-image" :src="item.url" mode="aspectFill" />
-						<text class="grid-item-text">{{item.text}}</text>
-						<view v-if="item.badge" class="grid-dot">
-							<uni-badge :text="item.badge" :type="item.type" :customStyle="{background: '#FF5551'}" />
-						</view>
-					</view>
-				</view>
+			<view v-for="(item ,index) in menuList" :index="index" :key="index"
+			 @change="gridClick(index)" class="lli-grid-item">
+				<image class="grid-item-image" :src="item.url" mode="aspectFill" />
+				<text class="grid-item-text">{{item.text}}</text>
+				<view v-if="item.badge" class="grid-dot">{{item.badge}}</view>
 			</view>
 		</view>
 

+ 1 - 0
subpkgScore/pages/score/kaoshiChengjiInfo.vue

@@ -101,6 +101,7 @@
 	import {
 		useQuestionTools
 	} from "@/components/questions/useQuestionTools.js";
+	import customNavbarVue from "@/components/custom-navbar/custom-navbar.vue";
 
 	const {
 		checkDanxuanReply,