浏览代码

南岸小程序公开样式,政策文件列表样式

zwq 2 年之前
父节点
当前提交
37e26b462e

+ 1 - 1
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/publics/fileList/file.wxml

@@ -9,7 +9,7 @@
 		<li style="position: relative;" wx:for-item="item" wx:for-index="index" wx:key="index" wx:for="{{fileList}}">
       <view bindtap="goTOFileDetail" data-url="{{item.DOCPUBURL}}" data-item="{{item.DOCID}}" style="font-size: 20rpx;font-weight: 600;position: absolute;top: 25rpx;">·</view>
 			<text bindtap="goTOFileDetail" data-url="{{item.DOCPUBURL}}" data-item="{{item.DOCID}}" class="title">{{item.DOCTITLE}}</text>
-			<text bindtap="goTOFileDetail" data-url="{{item.DOCPUBURL}}" data-item="{{item.DOCID}}" class="time">{{item.DOCRELTIME}}</text>
+			<text bindtap="goTOFileDetail" data-url="{{item.DOCPUBURL}}" data-item="{{item.DOCID}}" class="time">{{filter.formatTime(item.DOCRELTIME)}}</text>
 		</li>
 	</ul>
 </view>

+ 10 - 2
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/publics/fileList/util.wxs

@@ -6,9 +6,17 @@ var filter = {
 		} else {
 			return ''
 		}
-	}
+  },
+  formatTime: function(time) {
+    if (time && time != '') {
+			return time.slice(0,-3)
+		} else {
+			return ''
+		}
+  }
 }
 // 导出对外暴露的属性
 module.exports = {
-	formateDate: filter.formateDate
+  formateDate: filter.formateDate,
+  formatTime: filter.formatTime
 }

+ 2 - 2
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/publics/index/index.wxml

@@ -125,10 +125,10 @@
 					<view class="navigate-item" id="item{{index}}" wx:for="{{policyInterpretation}}" wx:key="index" data-index="{{index}}" bindtap="tabNav">
 						<view class="names">{{item.name}}</view>
 						<view class="currtline {{currentTab === index ? 'active' : ''}}" wx:if="{{currentTab === index}}"></view>
-						<view wx:if="{{ currentTab === index }}" style="position: absolute;width: 0;height: 0;border-left: 10rpx solid transparent;border-right: 10rpx solid transparent;border-top: 10rpx solid #508FF4;bottom: -5rpx;left: 40rpx;" />
+						<view wx:if="{{ currentTab === index }}" style="position: absolute;width: 0;height: 0;border-left: 10rpx solid transparent;border-right: 10rpx solid transparent;border-top: 10rpx solid #508FF4;bottom: -5rpx;left: 45rpx;" />
 					</view>
 				</scroll-view>
-				<swiper current="{{currentTab}}" bindchange="handleSwiper" autoplay="{{false}}" style="padding: 0 10px;margin-top: 15rpx;height: 320rpx;">
+				<swiper current="{{currentTab}}" bindchange="handleSwiper" autoplay="{{false}}" style="padding: 0 10px;margin-top: 0rpx;height: 320rpx;">
 					<!-- 文字解读 -->
 					<swiper-item>
 						<view bindtap="gotoZCJDDetail" data-channelid="{{item.CHNLID}}" wx:key="index" wx:for="{{textInterpretationList}}" style="display: flex;align-items: center;justify-content: space-between;flex-wrap: wrap;height: 107rpx;font-size: 28rpx;color: #666666;width: 639rpx;margin-left: 23rpx;border-bottom: 2rpx solid #CCCCCC;">

+ 1 - 0
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/publics/index/index.wxss

@@ -186,5 +186,6 @@
 /* 滑动块 */
 .currtline.active {
   background: #508FF4;
+  height: 7rpx;
   transition: all .3s;
 }