lisenzhou 2 yıl önce
ebeveyn
işleme
1399e39317

+ 2
- 2
src/pages/mine/components/MyCustomerListItem/index.jsx Dosyayı Görüntüle

3
 import Taro from '@tarojs/taro'
3
 import Taro from '@tarojs/taro'
4
 import { BIZ_STATUS, ROLE_CODE } from '@/constants/user'
4
 import { BIZ_STATUS, ROLE_CODE } from '@/constants/user'
5
 import { useSelector } from "react-redux";
5
 import { useSelector } from "react-redux";
6
+import { formatDate } from '@/utils/chatDate'
6
 import './index.scss'
7
 import './index.scss'
7
 
8
 
8
 const addDays = (dt, days) => {
9
 const addDays = (dt, days) => {
18
   const person = useSelector((state) => state.user.userInfo.person);
19
   const person = useSelector((state) => state.user.userInfo.person);
19
   const { expirationDate, customerStatus, createDate } = data
20
   const { expirationDate, customerStatus, createDate } = data
20
   const expStr = expirationDate && customerStatus === '1' ? `${addDays(createDate, expirationDate)} 回收` : ''
21
   const expStr = expirationDate && customerStatus === '1' ? `${addDays(createDate, expirationDate)} 回收` : ''
21
-
22
   const gotoDetail = () => {
22
   const gotoDetail = () => {
23
 
23
 
24
     if(person.personType===ROLE_CODE.BROKER){
24
     if(person.personType===ROLE_CODE.BROKER){
63
         </view>
63
         </view>
64
         <view className='Time flex-h'>
64
         <view className='Time flex-h'>
65
           <text className='flex-item'>楼盘名称:{data.buildingName}</text>
65
           <text className='flex-item'>楼盘名称:{data.buildingName}</text>
66
-
66
+          <text>{formatDate(data.createDate,'yyyy-MM-dd')}</text>
67
         </view>
67
         </view>
68
       </view>
68
       </view>
69
     </view>
69
     </view>

+ 6
- 2
src/pages/mine/components/MyCustomerListItem/index.scss Dosyayı Görüntüle

38
       &.Time {
38
       &.Time {
39
         margin-top: 16px;
39
         margin-top: 16px;
40
         >text {
40
         >text {
41
-          font-size: 28px;
42
-          color: #666;
41
+          font-size: 20px;
42
+          color: #999;
43
           white-space: nowrap;
43
           white-space: nowrap;
44
           line-height: 1;
44
           line-height: 1;
45
           &.active {
45
           &.active {
46
             color: #193C83;
46
             color: #193C83;
47
           }
47
           }
48
+          &:first-child {
49
+            font-size: 32px;
50
+            color: #666;
51
+          }
48
         }
52
         }
49
       }
53
       }
50
     }
54
     }