Commit 5abb7931 authored by hewenhao's avatar hewenhao

feat: catch touch move

parent a8297aaa
...@@ -18,7 +18,7 @@ const Scene = () => { ...@@ -18,7 +18,7 @@ const Scene = () => {
} }
return ( return (
<View className={styles.wrap}> <View className={styles.wrap} catchMove>
<Image src={assetsGuide['cat-2.png'].u} className={styles.cat} /> <Image src={assetsGuide['cat-2.png'].u} className={styles.cat} />
<View className={styles.dialog}> <View className={styles.dialog}>
<View> <View>
......
...@@ -91,13 +91,13 @@ const CreatePk = (props: CreatePkProps) => { ...@@ -91,13 +91,13 @@ const CreatePk = (props: CreatePkProps) => {
return ( return (
<> <>
{visible && (<PkGuide />)} {visible && (<PkGuide />)}
<View className={classNames(styles.close_wrap, visible && styles.is_show)} style={closeStyle}> <View className={classNames(styles.close_wrap, visible && styles.is_show)} style={closeStyle} catchMove>
<View className={styles.close} onTouchStart={closeModal} data-name="关闭发起PK"> <View className={styles.close} onTouchStart={closeModal} data-name="关闭发起PK">
<Image src={assetsMainNext['pk-close.png'].u} className={styles.close_icon}></Image> <Image src={assetsMainNext['pk-close.png'].u} className={styles.close_icon}></Image>
</View> </View>
</View> </View>
<View className={classNames(styles.top, visible && styles.is_show)}> <View className={classNames(styles.top, visible && styles.is_show)} catchMove>
<Image src={assetsMainNext['pk-top.png'].u} className={styles.bg_top} mode="widthFix"></Image> <Image src={assetsMainNext['pk-top.png'].u} className={styles.bg_top} mode="widthFix"></Image>
<View className={styles.top_content}> <View className={styles.top_content}>
<View className={styles.pk_history} style={historyStyle} onClick={() => navigateTo({ url: '/pages/battles/index' })}> <View className={styles.pk_history} style={historyStyle} onClick={() => navigateTo({ url: '/pages/battles/index' })}>
...@@ -115,7 +115,7 @@ const CreatePk = (props: CreatePkProps) => { ...@@ -115,7 +115,7 @@ const CreatePk = (props: CreatePkProps) => {
</View> </View>
</View> </View>
<View className={classNames(styles.bottom, visible && styles.is_show)}> <View className={classNames(styles.bottom, visible && styles.is_show)} catchMove>
<Image src={assetsMainNext['pk-slogen.png'].u} className={styles.pk_slogan}></Image> <Image src={assetsMainNext['pk-slogen.png'].u} className={styles.pk_slogan}></Image>
<Image src={assetsMainNext['pk-bottom.png'].u} className={styles.bg_bottom} mode="widthFix"></Image> <Image src={assetsMainNext['pk-bottom.png'].u} className={styles.bg_bottom} mode="widthFix"></Image>
<View className={styles.bottom_content}> <View className={styles.bottom_content}>
......
...@@ -18,7 +18,7 @@ const Scene = () => { ...@@ -18,7 +18,7 @@ const Scene = () => {
} }
return ( return (
<View className={styles.wrap}> <View className={styles.wrap} catchMove>
<Image src={assetsGuide['cat-2.png'].u} className={styles.cat} /> <Image src={assetsGuide['cat-2.png'].u} className={styles.cat} />
<View className={styles.dialog}> <View className={styles.dialog}>
<View> <View>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment