Browse Source

新增资讯简介

gcz 1 year ago
parent
commit
4c9cf727de
2 changed files with 3 additions and 3 deletions
  1. 2 2
      pages/index/index.vue
  2. 1 1
      pages/news.vue

+ 2 - 2
pages/index/index.vue

@@ -65,7 +65,7 @@
 						<image class="img" :src="item.mainImg"></image>
 						<view class="text" style="padding-bottom: 10px;">
 							<view class="name u-line-2">{{item.title}}</view>
-							<!-- <view class="con u-line-1" v-html="item.centent"></view> -->
+							<view class="con u-line-1">{{item.infoSnapshot}}</view>
 							<view class="time u-flex u-row-between">
 								<view class="left">{{$u.timeFormat(item.onlineTime, 'yyyy-mm-dd')}}</view>
 								<image class="icon" :src="staticUrl+'/img/arrow-right-ico.png'" ></image>
@@ -458,7 +458,7 @@ $pagegap:32rpx;
 			height: 174rpx;
 		}
 		.text{
-			padding: 30rpx 20rpx 22rpx;
+			padding: 30rpx 20rpx 28rpx;
 			.name{
 				font-size: 28rpx;
 				font-weight: bold;

+ 1 - 1
pages/news.vue

@@ -29,7 +29,7 @@
 					<view v-for="(item,index) in dataList" class="item u-flex" :class="{ show: show }" @click="itemClick(item)" :key="item.id">
 						<view class="text">
 							<view class="title u-line-1">{{ item.title }}</view>
-							<view class="con u-line-2" v-html="item.centent"></view>
+							<view class="con u-line-2">{{item.infoSnapshot}}</view>
 							<view class="time">{{ $u.timeFormat(item.onlineTime, 'yyyy-mm-dd') }}</view>
 						</view>
 						<image class="img" :src="item.mainImg" mode=""></image>