ソースを参照

学习资料下载 下载

eraser 4 年 前
コミット
cf21ddb4f2

+ 2 - 7
components/introductionToTheExperiment/syjj_second.vue

@@ -21,8 +21,8 @@
 							{{text.text}}
 						</text>
 						<!-- link -->
-						<text v-for="(link,index) in content.textList" class=".syjj-link" v-show="link.textType=='link'">
-							<a :href="url">{{link.text}}</a>
+						<text v-for="(link,index) in content.textList" v-show="link.textType=='link'">
+							<a :href="url" style="text-decoration:underline;color:blue">{{link.text}}</a>
 						</text>
 					</view>
 					<!-- 图片 -->
@@ -126,9 +126,4 @@
 		width: px2vw(1000);
 	}
 	
-	.syjj-link{
-		color: blue;
-		text-decoration:underline;
-	}
-	
 </style>

+ 10 - 1
components/learningProcess/xxzlxz.vue

@@ -18,9 +18,13 @@
 				 :key="contentI">
 					<!-- 文字 -->
 					<view v-show="content.type=='text'">
-						<text v-for="(text,textI) in content.textList" :key="textI" :class="'syjj-text-'+text.textType">
+						<text v-for="(text,textI) in content.textList" :key="textI" :class="'syjj-text-'+text.textType" v-show="text.textType!='link'">
 							{{text.text}}
 						</text>
+						<!-- link -->
+						<text v-for="(link,index) in content.textList" v-show="link.textType=='link'">
+							<a :href="url" style="text-decoration:underline;color:blue">{{link.text}}</a>
+						</text>
 					</view>
 					<!-- 图片 -->
 					<view class="syjj-pic df jcc" v-show="content.type=='pic'">
@@ -120,4 +124,9 @@
 	.syjj-pic img {
 		max-width: 100%;
 	}
+	
+	.syjj-link{
+		color: #EA252C;
+		text-decoration:underline;
+	}
 </style>