|
@@ -2,7 +2,7 @@ import withLayout from '@/layouts'
|
2
|
2
|
import useSave from "@/utils/hooks/useSave"
|
3
|
3
|
import image from '@/assets/icons/ProCard/8kb.jpg'
|
4
|
4
|
import AuthPage from '@/components/AuthPage'
|
5
|
|
-import moment from 'moment'
|
|
5
|
+import formatTimes from '@/utils/formatTime'
|
6
|
6
|
import { useState, useEffect } from 'react'
|
7
|
7
|
import { Button, Radio, Input } from '@tarojs/components'
|
8
|
8
|
import food from '@/assets/icons/ProCard/food.png'
|
|
@@ -103,7 +103,7 @@ export default (props) => {
|
103
|
103
|
<view className='title-text'>{item.description}</view>
|
104
|
104
|
</view>
|
105
|
105
|
<text className='title-money' >¥{item.actualPrice / 100}<text className='title-money-2'>{item.standardPrice / 100}</text></text>
|
106
|
|
- <view className='title-time' >有效期:<text>{moment(item.startTimeal).format('YYYY/MM/DD')}</text> - <text>{moment(item.endTime).format('YYYY/MM/DD')}</text></view>
|
|
106
|
+ <view className='title-time' >有效期:{formatTimes(item.startTime, "yyyy/MM/dd")}-{formatTimes(item.endTime, "yyyy/MM/dd")}</view>
|
107
|
107
|
</view>
|
108
|
108
|
</view>
|
109
|
109
|
<view class='right-complete-two' onClick={ShowMoldeOn} >
|
|
@@ -115,6 +115,7 @@ export default (props) => {
|
115
|
115
|
</view>
|
116
|
116
|
</view>
|
117
|
117
|
</view>
|
|
118
|
+ // {moment(item.startTimeal).format('YYYY/MM/DD')}
|
118
|
119
|
|
119
|
120
|
|
120
|
121
|
)
|