Pārlūkot izejas kodu

Merge branch 'main' of http://git.ycjcjy.com/marketing/miniapp into main

张延森 3 gadus atpakaļ
vecāks
revīzija
5fd88c2eb7

+ 4
- 2
src/pages/mine/components/UserDetailFollowRecord/index.jsx Parādīt failu

2
 import { ScrollView } from '@tarojs/components'
2
 import { ScrollView } from '@tarojs/components'
3
 import { fetch } from '@/utils/request'
3
 import { fetch } from '@/utils/request'
4
 import { API_FOLLOW_LIST } from '@/constants/api'
4
 import { API_FOLLOW_LIST } from '@/constants/api'
5
-import dayjs from 'dayjs'
5
+import getDateFormat from "@/utils/chatDate";
6
 import './index.scss'
6
 import './index.scss'
7
 
7
 
8
+const formatDate = (dtStr, formatStr) => getDateFormat((new Date(dtStr)).valueOf(), true, formatStr)
9
+
8
 export default function UserDetailFollowRecord (props) {
10
 export default function UserDetailFollowRecord (props) {
9
   const { CustomerId = null, AddFollow = () => {}, AddFollowCounts = 0 } = props
11
   const { CustomerId = null, AddFollow = () => {}, AddFollowCounts = 0 } = props
10
   const [PageList, setPageList] = useState([])
12
   const [PageList, setPageList] = useState([])
65
               PageList.map((item, index) => (
67
               PageList.map((item, index) => (
66
                 <view className='flex-h' key={`Item-${index}`}>
68
                 <view className='flex-h' key={`Item-${index}`}>
67
                   <view className='flex-item'>
69
                   <view className='flex-item'>
68
-                    <text>{dayjs(item.createDate).format('YYYY年MM月DD日 HH:mm:ss')}</text>
70
+                    <text>{formatDate(item.createDate, 'YYYY年MM月DD日 HH:mm:ss')}</text>
69
                   </view>
71
                   </view>
70
                   <view className='Line'>
72
                   <view className='Line'>
71
                     <view></view>
73
                     <view></view>