|
@@ -13,7 +13,7 @@ import TableCell from "@/components/layout/TableCell";
|
|
|
import { useEffect, useState } from "react";
|
|
import { useEffect, useState } from "react";
|
|
|
import { jumpPage } from "@/features/trackTimeDuration/hooks/Common";
|
|
import { jumpPage } from "@/features/trackTimeDuration/hooks/Common";
|
|
|
import Tabbar from "@/components/navigation/TabBar";
|
|
import Tabbar from "@/components/navigation/TabBar";
|
|
|
-import { getInfoSuccess } from "@/store/user";
|
|
|
|
|
|
|
+import { getInfoSuccess, updateDebug } from "@/store/user";
|
|
|
import TitleView from "@/features/trackTimeDuration/components/TitleView";
|
|
import TitleView from "@/features/trackTimeDuration/components/TitleView";
|
|
|
import showAlert from "@/components/basic/Alert";
|
|
import showAlert from "@/components/basic/Alert";
|
|
|
import { rpxToPx } from "@/utils/tools";
|
|
import { rpxToPx } from "@/utils/tools";
|
|
@@ -61,6 +61,7 @@ export default function Page() {
|
|
|
setSwitchOn(e.detail.value)
|
|
setSwitchOn(e.detail.value)
|
|
|
Taro.setStorageSync('isDebug', e.detail.value)
|
|
Taro.setStorageSync('isDebug', e.detail.value)
|
|
|
global.isDebug = e.detail.value
|
|
global.isDebug = e.detail.value
|
|
|
|
|
+ dispatch(updateDebug({ is_debug: e.detail.value }))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function alertChanged(e) {
|
|
function alertChanged(e) {
|
|
@@ -171,8 +172,8 @@ export default function Page() {
|
|
|
</TitleView>
|
|
</TitleView>
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function memberdesc(){
|
|
|
|
|
- if (!accessObj.access){
|
|
|
|
|
|
|
+ function memberdesc() {
|
|
|
|
|
+ if (!accessObj.access) {
|
|
|
return ''
|
|
return ''
|
|
|
}
|
|
}
|
|
|
if (accessObj.access.member.type == 'NON_CONSUMABLE') {
|
|
if (accessObj.access.member.type == 'NON_CONSUMABLE') {
|
|
@@ -185,7 +186,7 @@ export default function Page() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function member_expire() {
|
|
function member_expire() {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (global.language == 'en') {
|
|
if (global.language == 'en') {
|
|
|
return dayjs(accessObj.access.member.expire).format('MMM D HH:mm')
|
|
return dayjs(accessObj.access.member.expire).format('MMM D HH:mm')
|
|
|
}
|
|
}
|
|
@@ -217,9 +218,9 @@ export default function Page() {
|
|
|
|
|
|
|
|
<Box>
|
|
<Box>
|
|
|
{
|
|
{
|
|
|
- (!user.isLogin||(accessObj && accessObj.access && accessObj.access.member.status == 'NON_MEMBER')) ? <View className="balance" onClick={tapBalance}>
|
|
|
|
|
|
|
+ (!user.isLogin || (accessObj && accessObj.access && accessObj.access.member.status == 'NON_MEMBER')) ? <View className="balance" onClick={tapBalance}>
|
|
|
<Text className="title">{t('page.more.stone')}</Text>
|
|
<Text className="title">{t('page.more.stone')}</Text>
|
|
|
- <Text className="desc" style={{height:process.env.TARO_ENV=='weapp'?rpxToPx(32):rpxToPx(64)}}>{t('page.more.stone_desc')}</Text>
|
|
|
|
|
|
|
+ <Text className="desc" style={{ height: process.env.TARO_ENV == 'weapp' ? rpxToPx(32) : rpxToPx(64) }}>{t('page.more.stone_desc')}</Text>
|
|
|
</View> :
|
|
</View> :
|
|
|
<View className="balance" onClick={tapBalance}>
|
|
<View className="balance" onClick={tapBalance}>
|
|
|
<Text className="title">{t('page.more.pro_member')}</Text>
|
|
<Text className="title">{t('page.more.pro_member')}</Text>
|