shish hai 6 meses
pai
achega
13e1f3bd77
Modificáronse 2 ficheiros con 80 adicións e 28 borrados
  1. 40 14
      ghsApp/src/admin/home/register.vue
  2. 40 14
      hdApp/src/admin/home/register.vue

+ 40 - 14
ghsApp/src/admin/home/register.vue

@@ -1,10 +1,20 @@
 <template>
-	<view style="font-size:30upx;">
-        <view style="padding:0upx 8upx 30upx 8upx">
-        <view v-for="(item, index) in itemData" :key="index">
-            <view :class="[item.gap == 2 ? 'hasGap':'noGap',item.bold == 2 ? 'hasBold':'noBold']">{{item.content}}</view>
-        </view>
-        </view>
+	<view class="register-container">
+		<view class="register-content" v-if="itemData.length > 0">
+			<view 
+				v-for="(item, index) in itemData" 
+				:key="index"
+				:class="{
+					'register-item': true,
+					'hasBold': item.bold === 2,
+					'noBold': item.bold !== 2,
+					'hasGap': item.gap === 2,
+					'noGap': item.gap !== 2
+				}"
+			>
+				{{ item.content }}
+			</view>
+		</view>
 	</view>
 </template>
 <script>
@@ -71,16 +81,32 @@ export default {
 };
 </script>
 <style lang="scss" scoped>
-.hasGap{
-	margin-top:49upx;
+.register-container {
+	padding: 30upx 30upx 30upx 30upx;
+	font-size: 30upx;
 }
-.hasBold{
-	font-weight:bold;
+
+.register-content {
+	line-height: 1.6;
 }
-.noGap{
-	margin-top:0upx;
+
+.register-item {
+	padding: 15upx 0;
 }
-.noBold{
-	font-weight:normal;
+
+.hasGap {
+	margin-top: 40upx;
+}
+
+.hasBold {
+	font-weight: bold;
+}
+
+.noGap {
+	margin-top: 0upx;
+}
+
+.noBold {
+	font-weight: normal;
 }
 </style>

+ 40 - 14
hdApp/src/admin/home/register.vue

@@ -1,10 +1,20 @@
 <template>
-	<view style="font-size:30upx;">
-        <view style="padding:0upx 8upx 30upx 8upx">
-        <view v-for="(item, index) in itemData" :key="index">
-            <view :class="[item.gap == 2 ? 'hasGap':'noGap',item.bold == 2 ? 'hasBold':'noBold']">{{item.content}}</view>
-        </view>
-        </view>
+	<view class="register-container">
+		<view class="register-content" v-if="itemData.length > 0">
+			<view 
+				v-for="(item, index) in itemData" 
+				:key="index"
+				:class="{
+					'register-item': true,
+					'hasBold': item.bold === 2,
+					'noBold': item.bold !== 2,
+					'hasGap': item.gap === 2,
+					'noGap': item.gap !== 2
+				}"
+			>
+				{{ item.content }}
+			</view>
+		</view>
 	</view>
 </template>
 <script>
@@ -71,16 +81,32 @@ export default {
 };
 </script>
 <style lang="scss" scoped>
-.hasGap{
-	margin-top:49upx;
+.register-container {
+	padding: 30upx 30upx 30upx 30upx;
+	font-size: 30upx;
 }
-.hasBold{
-	font-weight:bold;
+
+.register-content {
+	line-height: 1.6;
 }
-.noGap{
-	margin-top:0upx;
+
+.register-item {
+	padding: 15upx 0;
 }
-.noBold{
-	font-weight:normal;
+
+.hasGap {
+	margin-top: 40upx;
+}
+
+.hasBold {
+	font-weight: bold;
+}
+
+.noGap {
+	margin-top: 0upx;
+}
+
+.noBold {
+	font-weight: normal;
 }
 </style>