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