leon 1 năm trước cách đây
mục cha
commit
9fdc413c08

+ 1 - 1
src/_health/components/add_label.tsx

@@ -237,7 +237,7 @@ export default function AddLabel(props: {
     >
         <View>
             <View className="body1">
-                <Input className="input_lb" placeholder={isEat() ? t('health.choose_enter_meal_label') : t('health.choose_enter_activity_name')} value={value} onInput={(e: any) => {
+                <Input className="input_lb" placeholder={isEat() ? t('health.meal_label') : t('health.activity_title')} value={value} onInput={(e: any) => {
                     setValue(e.target.value)
                 }} />
                 <ScrollView scrollX style={{ width: rpxToPx(750), height: rpxToPx(164) }} showScrollbar={false}>

+ 2 - 2
src/_health/pages/add_moment.tsx

@@ -98,7 +98,7 @@ export default function AddMoment() {
         }
         else {
             Taro.enableAlertBeforeUnload({
-                message: t('health.quit_tip'),
+                message: t('health.back_no_save'),
                 success(res) {
 
                 },
@@ -422,7 +422,7 @@ export default function AddMoment() {
             </View>
 
             <Input className="meal_name" value={title}
-                placeholder={health.mode == 'EAT' ? 'Meal Name' : 'Active Name'}
+                placeholder={health.mode == 'EAT' ? t('health.meal_label') : t('health.activity_title')}
                 style={{ caretColor: getThemeColor(health.mode) }}
                 // cursorColor='#ff0000'
                 onFocus={() => {

+ 2 - 0
src/context/locales/en.js

@@ -1077,5 +1077,7 @@ export default {
         del_title:'Confirm Delete',
         del_confirm:'Delete',
         del_cancel:'Cancel',
+        meal_label:'Meal Label',
+        activity_title:'Activity Title',
     }
 }

+ 2 - 1
src/context/locales/zh.js

@@ -1080,6 +1080,7 @@ export default {
         del_title:'确认删除',
         del_confirm:'删除',
         del_cancel:'取消',
-
+        meal_label:'餐次标签',
+        activity_title:'活动标题',
     }
 }

+ 1 - 1
src/features/health/MainConsole.tsx

@@ -511,7 +511,7 @@ export default function MainConsole(props: { type: WindowType }) {
                 break;
             case t('health.log_more'):
                 if (health.mode == 'EAT') {
-                    jumpPage(`/_health/pages/add_moment?title=加餐&is_temp=${true}`)
+                    jumpPage(`/_health/pages/add_moment?title=&is_temp=${true}`)
                 }
                 else {
                     jumpPage(`/_health/pages/add_moment?title=&is_temp=${true}`)