✨ feat(发货列表): 已完成发货列表对接
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
|
||||
|
||||
.time-box {
|
||||
padding: 40px;
|
||||
}
|
||||
|
||||
.sure-box {
|
||||
// padding: 16px 102px 30px 102px;
|
||||
margin-left: 102px;
|
||||
margin-right: 102px;
|
||||
height: 80px;
|
||||
background: #337FFF;
|
||||
border-radius: 44px;
|
||||
font-size: 28px;
|
||||
font-weight: 500;
|
||||
color: #FFFFFF;
|
||||
text-align: center;
|
||||
line-height: 80px;
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
import Popup from '@/components/popup'
|
||||
import React, { useState, memo, useEffect } from "react";
|
||||
import Taro, { getCurrentInstance } from "@tarojs/taro";
|
||||
import { View, Swiper, SwiperItem, Text } from "@tarojs/components";
|
||||
// import { AtIcon } from 'taro-ui'
|
||||
import './index.scss'
|
||||
import classnames from "classnames";
|
||||
import AtCalendar from "@/components/calendar/index"
|
||||
|
||||
type DateArg = string | number | Date
|
||||
interface Props {
|
||||
showTime: true | false,
|
||||
closePopup?: () => void,
|
||||
end?: DateArg
|
||||
start?: DateArg,
|
||||
onSelectDate?: (any) => void
|
||||
}
|
||||
|
||||
export default memo((props: Props) => {
|
||||
let {
|
||||
showTime = false,
|
||||
closePopup,
|
||||
start = "",
|
||||
end = "",
|
||||
onSelectDate
|
||||
} = props
|
||||
const [time, setTime] = useState<any>({})
|
||||
|
||||
const handTime = (e) => {
|
||||
setTime(e)
|
||||
}
|
||||
return (
|
||||
<Popup title={'选择时间'} show={showTime} onClose={() => closePopup?.()}>
|
||||
<View className='time-box'>
|
||||
<AtCalendar
|
||||
isMultiSelect
|
||||
currentDate={{
|
||||
start: start,
|
||||
end: end
|
||||
}}
|
||||
onSelectDate={(e) => handTime?.(e)}
|
||||
/>
|
||||
</View>
|
||||
<View className='sure-box' onClick={() => onSelectDate?.(time)}>确认</View>
|
||||
</Popup >
|
||||
)
|
||||
})
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
mpenumreturnType
|
||||
} from "@/api/refound"
|
||||
import Tabs from "./components/tabs"
|
||||
import TimePicker from "./components/timePicker"
|
||||
import TimePicker from "@/components/timePicker"
|
||||
export default () => {
|
||||
|
||||
|
||||
@@ -375,4 +375,4 @@ export default () => {
|
||||
></TimePicker>
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user