|
@@ -16,40 +16,6 @@ import { useSelector } from 'react-redux';
|
16
|
16
|
import {
|
17
|
17
|
signupActivity,
|
18
|
18
|
queryActivityDetail,
|
19
|
|
-<<<<<<< HEAD
|
20
|
|
-} from '@/services/activity';
|
21
|
|
-import { getImgURL } from '@/utils/image';
|
22
|
|
-import getDateFormat from '@/utils/chatDate';
|
23
|
|
-import useParams from '@/utils/hooks/useParams';
|
24
|
|
-import useShare from '@/utils/hooks/useShare';
|
25
|
|
-import useFavor from '@/utils/hooks/useFavor';
|
26
|
|
-import { times } from '@/utils/tools';
|
27
|
|
-import './index.scss';
|
28
|
|
-
|
29
|
|
-const activityStatusDict = {
|
30
|
|
- 0: {
|
31
|
|
- text: '立即参与',
|
32
|
|
- text1: '立即参团',
|
33
|
|
- className: 'yellow',
|
34
|
|
- },
|
35
|
|
- 1: {
|
36
|
|
- text: '未开始',
|
37
|
|
- text1: '未开始',
|
38
|
|
- className: 'blue',
|
39
|
|
- },
|
40
|
|
- 2: {
|
41
|
|
- text: '已结束',
|
42
|
|
- text1: '已结束',
|
43
|
|
- className: 'grey',
|
44
|
|
- },
|
45
|
|
- 3: {
|
46
|
|
- text: '已参与',
|
47
|
|
- text1: '已结束',
|
48
|
|
- className: 'yellow',
|
49
|
|
- },
|
50
|
|
-};
|
51
|
|
-
|
52
|
|
-=======
|
53
|
19
|
} from "@/services/activity";
|
54
|
20
|
import { getImgURL } from "@/utils/image";
|
55
|
21
|
import getDateFormat from "@/utils/chatDate";
|
|
@@ -61,7 +27,6 @@ import useStatus from './useStatus'
|
61
|
27
|
import { getDownloadURL, times, transferImage } from "@/utils/tools";
|
62
|
28
|
import "./index.scss";
|
63
|
29
|
|
64
|
|
->>>>>>> 9b71da79c5db94acce0d9ed188d5664b36c36c8c
|
65
|
30
|
export default withLayout((props) => {
|
66
|
31
|
const { router, shareContent, trackData, person, page } = props;
|
67
|
32
|
const { id } = router.params;
|
|
@@ -315,87 +280,10 @@ export default withLayout((props) => {
|
315
|
280
|
<view className='flex-item'>
|
316
|
281
|
<text>{detail.enlisted || 0}人已报名</text>
|
317
|
282
|
</view>
|
318
|
|
- <text className='Btn' onClick={handleSignup}>{activityStatusDict[detail.activityStatus]?.text1}</text>
|
|
283
|
+ <button className='Btn' disabled={btnDisabled} onClick={handleSignup}>{btnText}</button>
|
319
|
284
|
</view>
|
320
|
285
|
|
321
|
286
|
</view>
|
322
|
|
- // <view className='houseInfo'>
|
323
|
|
- // {/* <view> */}
|
324
|
|
- // <view className='flex-h'>
|
325
|
|
- // <view className='left'>
|
326
|
|
- // <view className='Title'>
|
327
|
|
- // <view className='flex-item'>
|
328
|
|
- // <text>{detail.title}</text>
|
329
|
|
- // </view>
|
330
|
|
- // </view>
|
331
|
|
- // <view className='flex-h Address'>
|
332
|
|
- // <text className='iconfont icon-dingwei'></text>
|
333
|
|
- // <view className='flex-item'>
|
334
|
|
- // <text>{detail.address}</text>
|
335
|
|
- // </view>
|
336
|
|
- // <text className='price'>价格待定</text>
|
337
|
|
- // </view>
|
338
|
|
- // <text className='flex-h Time'>
|
339
|
|
- // 时间:
|
340
|
|
- // {getDateFormat(
|
341
|
|
- // new Date(detail.startDate).valueOf(),
|
342
|
|
- // true,
|
343
|
|
- // 'yyyy/M/d'
|
344
|
|
- // )}{' '}
|
345
|
|
- // -{' '}
|
346
|
|
- // {getDateFormat(
|
347
|
|
- // new Date(detail.endDate).valueOf(),
|
348
|
|
- // true,
|
349
|
|
- // 'yyyy/M/d'
|
350
|
|
- // )}
|
351
|
|
- // </text>
|
352
|
|
- // </view>
|
353
|
|
- // <view className='right'>
|
354
|
|
- // <view>
|
355
|
|
- // {/* <Button open-type='share'>
|
356
|
|
- // <text className='iconfont icon-fenxiang'></text>
|
357
|
|
- // <text>分享</text>
|
358
|
|
- // </Button> */}
|
359
|
|
- // <text className='iconfont icon-fenxiang'></text>
|
360
|
|
- // <text>分享</text>
|
361
|
|
- // </view>
|
362
|
|
- // <view>
|
363
|
|
- // <text className='iconfont icon-dingwei'></text>
|
364
|
|
- // <text>海报</text>
|
365
|
|
- // </view>
|
366
|
|
- // </view>
|
367
|
|
- // </view>
|
368
|
|
-
|
369
|
|
- // <view className='lastdate'>
|
370
|
|
- // <text className='text'>距离结束还有</text>
|
371
|
|
- // <text className='text day'>7</text>
|
372
|
|
- // <text className='text'>天</text>
|
373
|
|
- // <text className='text time'>2</text>
|
374
|
|
- // <text className='text'>时</text>
|
375
|
|
- // <text className='text time'>4</text>
|
376
|
|
- // <text className='text'>分</text>
|
377
|
|
- // <text className='text time'>5</text>
|
378
|
|
- // <text className='text'>秒</text>
|
379
|
|
- // {/* <view>距离结束还有</view> */}
|
380
|
|
- // </view>
|
381
|
|
-
|
382
|
|
- // <view className='flex-h join'>
|
383
|
|
- // <view className='Collect' onClick={handleFavor}>
|
384
|
|
- // <text className='iconfont icon-shoucang' style={isSaved ? { color: 'red' } : undefined}></text>
|
385
|
|
- // <text>{isSaved ? '已收藏' : '收藏'}</text>
|
386
|
|
- // </view>
|
387
|
|
- // <view className='enlisted'>
|
388
|
|
- // <view>
|
389
|
|
- // <text className='iconfont icon-shoucang'></text>
|
390
|
|
- // <text>{detail.enlisted || 0}人已报名</text>
|
391
|
|
- // </view>
|
392
|
|
- // </view>
|
393
|
|
- // <view className='btn' onClick={handleSignup}>
|
394
|
|
- // <text>{activityStatusDict[detail.activityStatus]?.text1}</text>
|
395
|
|
- // </view>
|
396
|
|
- // </view>
|
397
|
|
- // {/* </view> */}
|
398
|
|
- // </view>
|
399
|
287
|
);
|
400
|
288
|
|
401
|
289
|
return (
|