Browse Source

修改身份卡认证时间

roose 4 years ago
parent
commit
7c44016173
3 changed files with 9 additions and 8 deletions
  1. 6 5
      pages/idCardDetail/idCardDetail.wxml
  2. 1 1
      utils/photoUrl.wxs
  3. 2 2
      utils/util.js

+ 6 - 5
pages/idCardDetail/idCardDetail.wxml

@@ -1,4 +1,5 @@
 <wxs module="urls" src="../../utils/photoUrl.wxs"></wxs>
+<wxs module="times" src="../../utils/time.wxs"></wxs>
 <view class="home">
 	<image class="bg-photo" src="/images/shenfenka.jpg"></image>
 	<!-- style="width:750rpx;height:1334rpx" -->
@@ -8,14 +9,14 @@
 		<view>{{info.userName}}</view>
 	</view>
 	<view class="userInfo">
-		<view style="display: flex;">
-			<view class="title1">身份证号:</view>
+		<view style="display: flex;" wx:if='{{info.idCardNumber}}'>
+			<view class="title1" >身份证号:</view>
 			<view class="title2">{{info.idCardNumber}}</view>
 		</view>
-		<!-- <view style="display:flex;margin-top:15rpx">
+		<view style="display:flex;margin-top:15rpx">
 			<view class="title1">认证时间:</view>
-			<view class="title2">2020年09月15日</view>
-		</view> -->
+			<view class="title2">{{times.formatDate(info.time)}}</view>
+		</view>
 		<view style="display: flex;margin-top:15rpx">
 			<view class="title1">认证地点:</view>
 			<view class="title2">{{info.dept1.name}}{{info.dept2.name}}{{info.dept3.name}}{{info.dept4.name}}{{info.dept5.name}}</view>

+ 1 - 1
utils/photoUrl.wxs

@@ -1,5 +1,5 @@
 var url = function (val) {
-  // return  'https://info.windd.cn/collection' + val
+  //  return  'https://info.windd.cn/collection' + val
   return 'http://10.16.4.7:7001' + val
 }
 module.exports = {

+ 2 - 2
utils/util.js

@@ -1,9 +1,9 @@
 const globalData = {
   // publicUrl: 'http://info.windd.cn:8080/test',//测试
-   publicUrl: 'https://info.windd.cn/collection',//正式
+  //  publicUrl: 'https://info.windd.cn/collection',//正式
   //publicUrl: 'http://10.16.4.12:7001',
   //publicUrl: 'http://10.16.4.8:7001',
-  //publicUrl:'http://10.16.4.7:7001'//立秋
+  publicUrl:'http://10.16.4.7:7001'//立秋
 };
 module.exports = {
   globalData: globalData,