Leon hai 1 ano
pai
achega
4b3521aa88

+ 1 - 0
src/_health/pages/recents.config.ts

@@ -3,6 +3,7 @@ export default definePageConfig({
         // 'ec-canvas': '../../lib/ec-canvas/ec-canvas',
         // 'demo':'../../components/demo'
     },
+    disableScroll:true,
     "navigationBarTitleText": "",
     "navigationBarBackgroundColor":"#f5f5f5",
 })

+ 3 - 3
src/_health/pages/timeline_detail.tsx

@@ -353,7 +353,7 @@ export default function TimelineDetail() {
             setShowPop(true)
         }
 
-        Taro.eventCenter.on('refresh_timeline',getDatas)
+        Taro.eventCenter.on('refresh_timeline', getDatas)
 
         return () => {
             Taro.eventCenter.off('refresh_timeline')
@@ -1060,7 +1060,7 @@ export default function TimelineDetail() {
                             {/* <Text className="h24 g02">{publish.edited ? '编辑于' : '发布于'}{dayjs(publish.timestamp).format('M月D日 HH:mm')}</Text> */}
                             <Text className="h24 g02">{footerTime(publish)}</Text>
                             <View style={{ flex: 1 }} />
-                            {global.allowShare && <View className="share_btn_bg">
+                            <View className="share_btn_bg">
 
                                 <View className="share_icon_bg">
                                     <IconShare color={MainColorType.link + 'cc'} width={rpxToPx(32)} />
@@ -1068,7 +1068,7 @@ export default function TimelineDetail() {
                                 <Button className="share_btn" openType="share">1</Button>
                             </View>
 
-                            }
+
                             {
                                 moreBtn()
                             }

+ 1 - 1
src/pages/moment/moment_item.tsx

@@ -212,7 +212,7 @@ export default function MomentItem(props: { data: any, del?: any }) {
                 />
                         } */}
                 <NewButton type={NewButtonType.custom} onClick={tapShare}>
-                    <IconShare color={MainColorType.g02} width={20} />
+                    <IconShare color={MainColorType.link + 'cc'} width={20} />
                 </NewButton>
                 {my.isLogin && my.id == user.id && <View style={{width:rpxToPx(16)}}/>}
                 {

+ 1 - 0
src/pages/moment/moment_main.tsx

@@ -134,6 +134,7 @@ export default function MomentMain() {
     }
 
     function refreshItem(e){
+        if (!e) return
         var list = JSON.parse(JSON.stringify(moments))
         list.map((item)=>{
             if (item.id == e.id){