fix: 修复重新发布球局入口条件判断
This commit is contained in:
@@ -128,7 +128,7 @@ export default forwardRef(function GameManagePopup(props, ref) {
|
|||||||
onClose();
|
onClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleRepubGame () {
|
function handleRepubGame() {
|
||||||
Taro.navigateTo({
|
Taro.navigateTo({
|
||||||
url: `/publish_pages/publishBall/index?gameId=${detail.id}&republish=1`,
|
url: `/publish_pages/publishBall/index?gameId=${detail.id}&republish=1`,
|
||||||
});
|
});
|
||||||
@@ -199,9 +199,11 @@ export default forwardRef(function GameManagePopup(props, ref) {
|
|||||||
<View className={styles.button} onClick={handleEditGame}>
|
<View className={styles.button} onClick={handleEditGame}>
|
||||||
编辑活动
|
编辑活动
|
||||||
</View>
|
</View>
|
||||||
|
{finished && (
|
||||||
<View className={styles.button} onClick={handleRepubGame}>
|
<View className={styles.button} onClick={handleRepubGame}>
|
||||||
重新发布
|
重新发布
|
||||||
</View>
|
</View>
|
||||||
|
)}
|
||||||
{!finished && (
|
{!finished && (
|
||||||
<View className={styles.button} onClick={handleCancelGame}>
|
<View className={styles.button} onClick={handleCancelGame}>
|
||||||
取消活动
|
取消活动
|
||||||
|
|||||||
Reference in New Issue
Block a user