1002884655 пре 3 година
родитељ
комит
fb934e1bdb

+ 3
- 3
src/pages/index/activityList/index.jsx Прегледај датотеку

@@ -1,6 +1,6 @@
1
-import React, { useState, useEffect } from 'react'
2
-import './index.scss'
1
+import { useState, useEffect } from 'react'
3 2
 import { ScrollView } from '@tarojs/components'
3
+import './index.scss'
4 4
 import ActivityListItem from '../components/ActivityListItem/index'
5 5
 
6 6
 export default function MyCollectForActivity (props) {
@@ -24,7 +24,7 @@ export default function MyCollectForActivity (props) {
24 24
 
25 25
   return (
26 26
     <view className='components activityList'>
27
-      <ScrollView scroll-y={true} refresher-enabled={true} refresher-triggered={IsPull} onrefresherrefresh={PageRefresh} refresher-background='#f8f8f8'>
27
+      <ScrollView scroll-y refresher-enabled refresher-triggered={IsPull} onrefresherrefresh={PageRefresh} refresher-background='#f8f8f8'>
28 28
         <view className='PageContent'>
29 29
           <view className='List'>
30 30
             {

+ 1
- 1
src/pages/index/components/ActivityListItem/index.jsx Прегледај датотеку

@@ -6,7 +6,7 @@ import Taro from '@tarojs/taro'
6 6
 export default function ActivityListItem (props) {
7 7
   const { Data = {} } = props
8 8
   return (
9
-    <view className='components ActivityListItem' onClick={() => { Taro.navigateTo({ url: `/pages/index/newsDetail/index?id=${Data.id}` }) }}>
9
+    <view className='components ActivityListItem' onClick={() => { Taro.navigateTo({ url: `/pages/index/activityDetail/index?id=${Data.id}` }) }}>
10 10
       <view className='Img'>
11 11
         <Image mode='aspectFill' src={null} className='centerLabel'></Image>
12 12
       </view>