见面会历史详情

main
king 1 year ago
parent ba21531bba
commit 7947e62663
  1. 4
      src/pages/index/components/search.tsx
  2. 6
      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

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

@ -23,7 +23,6 @@
}
.search {
View {
width: 710rpx;
margin: 34rpx 0 0;
background: #fff;
@ -34,11 +33,6 @@
display: flex;
align-items: center;
justify-content: center;
Text {
padding-right: 20px;
}
}
}
.videoListBox {

@ -6,7 +6,7 @@ import Tabs, {OnChangOpt, TabList} from "@/components/tabs/tabs";
import {CoursesKey} from "@/api/public";
import Taro from '@tarojs/taro'
import {Profile} from '@/store'
// import {Search} from "@/pages/index/components/search";
import {Search} from "./components/search";
const Index: FC = () => {
@ -28,8 +28,7 @@ const Index: FC = () => {
<>
<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>}
{/*<Search/>*/}
<Search/>
<Tabs tabList={category} onChange={tabChange} current={categoryKey}/>
<VideoList categoryKey={categoryKey} ready={!!token}/>
</View>

@ -41,6 +41,10 @@ const MeetingsConfig: FC = () => {
}
}
function jumpInfo(id: number) {
Taro.navigateTo({url: `/pages/manage/spotMeeting/spotMeeting?id=${id}`})
}
useReachBottom(useCallback(() => {
if (meeting?.length < total) {
setPage(page + 1)
@ -56,8 +60,8 @@ const MeetingsConfig: FC = () => {
{
meeting.length ?
meeting.map((d, index) => <View className={styles.meeting}>
<View className={styles.title}>
meeting.map((d, index) => <View className={styles.meeting} key={d.id}>
<View className={styles.title} onClick={() => jumpInfo(d.id)}>
<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>

@ -133,17 +133,20 @@ const SpotMeeting: FC = () => {
}
},
fail() {
Taro.hideLoading()
Taro.showModal({title: '二维码生成失败'})
},
complete() {
setLoading(false)
Taro.hideLoading()
}
})
} else {
setTimeout(() => {setImgUrl(url)})
if (down) {handleSaveCode()}
Taro.hideLoading()
setTimeout(() => {
setImgUrl(url)
})
if (down) {
handleSaveCode()
}
setLoading(false)
}
}
@ -182,7 +185,7 @@ const SpotMeeting: FC = () => {
setLoading(false)
}
function jumpMeeings() {
function jumpMeetings() {
Taro.navigateTo({url: '/pages/manage/meetings/meetings'})
}
@ -273,7 +276,8 @@ const SpotMeeting: FC = () => {
</Form>
</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>

Loading…
Cancel
Save