见面会历史详情

main
king 1 year ago
parent ba21531bba
commit 7947e62663
  1. 6
      src/pages/index/components/search.tsx
  2. 26
      src/pages/index/index.module.scss
  3. 5
      src/pages/index/index.tsx
  4. 8
      src/pages/manage/meetings/meetings.tsx
  5. 16
      src/pages/manage/spotMeeting/spotMeeting.tsx

@ -5,11 +5,9 @@ import Icon from "@/components/icon";
export const Search: FC = () => { export const Search: FC = () => {
return ( return (
<View className={styles.search}> <View className={styles.search}>
<View>
<Icon name='search' size={18}/> <Icon name='search' size={18}/>
<Text></Text> <Text className='ml-1'></Text>
</View> </View>
</View>
) )
} }

@ -23,22 +23,16 @@
} }
.search { .search {
View { width: 710rpx;
width: 710rpx; margin: 34rpx 0 0;
margin: 34rpx 0 0; background: #fff;
background: #fff; border-radius: 100px;
border-radius: 100px; line-height: 68rpx;
line-height: 68rpx; color: #bbb;
color: #bbb; font-size: 28rpx;
font-size: 28rpx; display: flex;
display: flex; align-items: center;
align-items: center; justify-content: center;
justify-content: center;
Text {
padding-right: 20px;
}
}
} }
.videoListBox { .videoListBox {

@ -6,7 +6,7 @@ import Tabs, {OnChangOpt, TabList} from "@/components/tabs/tabs";
import {CoursesKey} from "@/api/public"; import {CoursesKey} from "@/api/public";
import Taro from '@tarojs/taro' import Taro from '@tarojs/taro'
import {Profile} from '@/store' import {Profile} from '@/store'
// import {Search} from "@/pages/index/components/search"; import {Search} from "./components/search";
const Index: FC = () => { const Index: FC = () => {
@ -28,8 +28,7 @@ const Index: FC = () => {
<> <>
<View className={styles.content} style={`paddingTop:${globalData.statusBarHeight}px`}> <View className={styles.content} style={`paddingTop:${globalData.statusBarHeight}px`}>
{process.env.TARO_ENV !== "h5" && <View className='text-center font-weight font-34 mt-3'></View>} {process.env.TARO_ENV !== "h5" && <View className='text-center font-weight font-34 mt-3'></View>}
<Search/>
{/*<Search/>*/}
<Tabs tabList={category} onChange={tabChange} current={categoryKey}/> <Tabs tabList={category} onChange={tabChange} current={categoryKey}/>
<VideoList categoryKey={categoryKey} ready={!!token}/> <VideoList categoryKey={categoryKey} ready={!!token}/>
</View> </View>

@ -41,6 +41,10 @@ const MeetingsConfig: FC = () => {
} }
} }
function jumpInfo(id: number) {
Taro.navigateTo({url: `/pages/manage/spotMeeting/spotMeeting?id=${id}`})
}
useReachBottom(useCallback(() => { useReachBottom(useCallback(() => {
if (meeting?.length < total) { if (meeting?.length < total) {
setPage(page + 1) setPage(page + 1)
@ -56,8 +60,8 @@ const MeetingsConfig: FC = () => {
{ {
meeting.length ? meeting.length ?
meeting.map((d, index) => <View className={styles.meeting}> meeting.map((d, index) => <View className={styles.meeting} key={d.id}>
<View className={styles.title}> <View className={styles.title} onClick={() => jumpInfo(d.id)}>
<View className='font-weight mb-1'>{d.name}</View> <View className='font-weight mb-1'>{d.name}</View>
<View>{formatDate(new Date(d.estimate_start_time), "MM-dd")} {formatDate(new Date(d.estimate_start_time), "MM-dd")}</View> <View>{formatDate(new Date(d.estimate_start_time), "MM-dd")} {formatDate(new Date(d.estimate_start_time), "MM-dd")}</View>

@ -133,17 +133,20 @@ const SpotMeeting: FC = () => {
} }
}, },
fail() { fail() {
Taro.hideLoading()
Taro.showModal({title: '二维码生成失败'}) Taro.showModal({title: '二维码生成失败'})
}, },
complete() { complete() {
setLoading(false) setLoading(false)
Taro.hideLoading()
} }
}) })
} else { } else {
setTimeout(() => {setImgUrl(url)}) setTimeout(() => {
if (down) {handleSaveCode()} setImgUrl(url)
Taro.hideLoading() })
if (down) {
handleSaveCode()
}
setLoading(false) setLoading(false)
} }
} }
@ -182,7 +185,7 @@ const SpotMeeting: FC = () => {
setLoading(false) setLoading(false)
} }
function jumpMeeings() { function jumpMeetings() {
Taro.navigateTo({url: '/pages/manage/meetings/meetings'}) Taro.navigateTo({url: '/pages/manage/meetings/meetings'})
} }
@ -273,7 +276,8 @@ const SpotMeeting: FC = () => {
</Form> </Form>
</View> </View>
<View className='text-center text-muted my-3' onClick={jumpMeeings}> <Icon name='chevron-right'/></View>
{!params.id && <View className='text-center text-muted my-3' onClick={jumpMeetings}> <Icon name='chevron-right'/></View>}
</View> </View>
</View> </View>

Loading…
Cancel
Save