@ledvance/ui-biz-bundle 1.1.59 → 1.1.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/package.json +1 -1
  2. package/src/modules/flags/FlagEditPage.tsx +22 -14
  3. package/src/modules/flags/FlagPage.tsx +7 -18
  4. package/src/modules/mood/DynamicMoodEditorPage.tsx +12 -14
  5. package/src/modules/mood/FantasyMoodEditPage.tsx +12 -14
  6. package/src/modules/mood/StaticMoodEditorPage.tsx +12 -13
  7. package/src/modules/timer/TimerPage.tsx +58 -56
  8. package/src/newModules/biorhythm/BiorhythmActions.ts +374 -0
  9. package/src/newModules/biorhythm/BiorhythmBean.ts +230 -0
  10. package/src/newModules/biorhythm/BiorhythmEditPage.tsx +267 -0
  11. package/src/newModules/biorhythm/BiorhythmPage.tsx +638 -0
  12. package/src/newModules/biorhythm/IconSelect.tsx +85 -0
  13. package/src/newModules/biorhythm/Router.ts +34 -0
  14. package/src/newModules/biorhythm/circular/ItemIcon.d.ts +22 -0
  15. package/src/newModules/biorhythm/circular/ItemIcon.tsx +173 -0
  16. package/src/newModules/biorhythm/circular/Progress.d.ts +24 -0
  17. package/src/newModules/biorhythm/circular/Progress.tsx +372 -0
  18. package/src/newModules/biorhythm/circular/TimeCircular.d.ts +11 -0
  19. package/src/newModules/biorhythm/circular/TimeCircular.tsx +64 -0
  20. package/src/newModules/biorhythm/circular/biorhythm_plantimer.png +0 -0
  21. package/src/newModules/biorhythm/circular/rhythm_icon.png +0 -0
  22. package/src/newModules/biorhythm/iconListData.ts +30 -0
  23. package/src/newModules/biorhythm/pIdList.ts +36 -0
  24. package/src/newModules/biorhythm/res/BiologicalRes.d.ts +43 -0
  25. package/src/newModules/biorhythm/res/BiologicalRes.ts +42 -0
  26. package/src/newModules/biorhythm/res/Biological_Rhythm.png +0 -0
  27. package/src/newModules/biorhythm/res/Biological_Rhythm_12.png +0 -0
  28. package/src/newModules/biorhythm/res/Biological_Rhythm_new.png +0 -0
  29. package/src/newModules/biorhythm/res/Biological_Rhythm_new_12.png +0 -0
  30. package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups.png +0 -0
  31. package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups@2x.png +0 -0
  32. package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups@3x.png +0 -0
  33. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd.png +0 -0
  34. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@2x.png +0 -0
  35. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@3x.png +0 -0
  36. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos.png +0 -0
  37. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@2x.png +0 -0
  38. package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@3x.png +0 -0
  39. package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome.png +0 -0
  40. package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@2x.png +0 -0
  41. package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@3x.png +0 -0
  42. package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder.png +0 -0
  43. package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@2x.png +0 -0
  44. package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@3x.png +0 -0
  45. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed.png +0 -0
  46. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed@2x.png +0 -0
  47. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed@3x.png +0 -0
  48. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter.png +0 -0
  49. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@2x.png +0 -0
  50. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@3x.png +0 -0
  51. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair.png +0 -0
  52. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair@2x.png +0 -0
  53. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair@3x.png +0 -0
  54. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee.png +0 -0
  55. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@2x.png +0 -0
  56. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@3x.png +0 -0
  57. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar.png +0 -0
  58. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@2x.png +0 -0
  59. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@3x.png +0 -0
  60. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter.png +0 -0
  61. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@2x.png +0 -0
  62. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@3x.png +0 -0
  63. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones.png +0 -0
  64. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@2x.png +0 -0
  65. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@3x.png +0 -0
  66. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook.png +0 -0
  67. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@2x.png +0 -0
  68. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@3x.png +0 -0
  69. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote.png +0 -0
  70. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@2x.png +0 -0
  71. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@3x.png +0 -0
  72. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone.png +0 -0
  73. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@2x.png +0 -0
  74. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@3x.png +0 -0
  75. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant.png +0 -0
  76. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@2x.png +0 -0
  77. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@3x.png +0 -0
  78. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant.png +0 -0
  79. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@2x.png +0 -0
  80. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@3x.png +0 -0
  81. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied.png +0 -0
  82. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@2x.png +0 -0
  83. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@3x.png +0 -0
  84. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports.png +0 -0
  85. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@2x.png +0 -0
  86. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@3x.png +0 -0
  87. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv.png +0 -0
  88. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv@2x.png +0 -0
  89. package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv@3x.png +0 -0
  90. package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm.png +0 -0
  91. package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@2x.png +0 -0
  92. package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@3x.png +0 -0
  93. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime.png +0 -0
  94. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@2x.png +0 -0
  95. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@3x.png +0 -0
  96. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay.png +0 -0
  97. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@2x.png +0 -0
  98. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@3x.png +0 -0
  99. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline.png +0 -0
  100. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@2x.png +0 -0
  101. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@3x.png +0 -0
  102. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny.png +0 -0
  103. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@2x.png +0 -0
  104. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@3x.png +0 -0
  105. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight.png +0 -0
  106. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@2x.png +0 -0
  107. package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@3x.png +0 -0
  108. package/src/newModules/energyConsumption/EnergyConsumptionDetail.tsx +84 -83
  109. package/src/newModules/energyConsumption/EnergyConsumptionPage.tsx +133 -132
  110. package/src/newModules/energyConsumption/component/EnergyModal.tsx +119 -117
  111. package/src/newModules/energyConsumption/component/Overview.tsx +38 -36
  112. package/src/newModules/mood/AddMoodPage.tsx +37 -21
  113. package/src/newModules/mood/DynamicMoodEditorPage.tsx +7 -2
  114. package/src/newModules/mood/MixDynamicMoodEditor.tsx +8 -2
  115. package/src/newModules/mood/StaticMoodEditorPage.tsx +9 -2
  116. package/src/newModules/timeSchedule/Interface.ts +1 -0
  117. package/src/newModules/timeSchedule/TimeScheduleDetailPage.tsx +203 -202
  118. package/src/newModules/timeSchedule/TimeSchedulePage.tsx +35 -34
  119. package/src/newModules/timeSchedule/components/ManuaSettings.tsx +11 -10
  120. package/src/newModules/timeSchedule/components/ScheduleCard.tsx +63 -60
@@ -22,6 +22,7 @@ import EnergyPopup, {EnergyData} from "./component/EnergyModal";
22
22
  import {carbonDioxideEmission, countryAndRegion} from "./co2Data";
23
23
 
24
24
  const { convertX: cx } = Utils.RatioUtils
25
+ const { withTheme } = Utils.ThemeUtils
25
26
 
26
27
  export interface EnergyConsumptionDetailProps {
27
28
  addEleDpCode: string
@@ -31,8 +32,8 @@ export interface EnergyConsumptionDetailProps {
31
32
  updateEnergyData: (data: EnergyData) => {}
32
33
  }
33
34
 
34
- const EnergyConsumptionDetail = () => {
35
- const props = useRoute().params as EnergyConsumptionDetailProps
35
+ const EnergyConsumptionDetail = (props: {theme?: any}) => {
36
+ const params = useRoute().params as EnergyConsumptionDetailProps
36
37
  const devId = useDeviceId()
37
38
  const isSolarPlug = useEngergyGeneration()
38
39
  const navigation = useNavigation()
@@ -52,8 +53,8 @@ const EnergyConsumptionDetail = () => {
52
53
  })
53
54
 
54
55
  useEffect(() => {
55
- state.price = props.price
56
- state.unit = props.unit
56
+ state.price = params.price
57
+ state.unit = params.unit
57
58
  getElectricity().then()
58
59
  }, [])
59
60
 
@@ -65,14 +66,14 @@ const EnergyConsumptionDetail = () => {
65
66
  }, [state.totalElectricity, timeZoneCity])
66
67
 
67
68
  const getElectricity = async () => {
68
- const startDay = props.curMonth.headlineText + '01'
69
- const endDay = props.curMonth.headlineText + dayjs(props.curMonth.headlineText + '01').daysInMonth()
69
+ const startDay = params.curMonth.headlineText + '01'
70
+ const endDay = params.curMonth.headlineText + dayjs(params.curMonth.headlineText + '01').daysInMonth()
70
71
  state.over365Days = overDays(startDay, 365)
71
72
  if (state.over365Days) {
72
73
  state.overviewList = []
73
74
  return
74
75
  }
75
- const res = await getDataWithSpecified(devId, props.addEleDpCode, startDay, endDay, 'sum')
76
+ const res = await getDataWithSpecified(devId, params.addEleDpCode, startDay, endDay, 'sum')
76
77
  if (!isEmpty(res) && res.result) {
77
78
  const dayList = res.result
78
79
  const dayData = Object.keys(dayList).filter(v => Number(dayList[v]) > 0).map(time => {
@@ -106,7 +107,7 @@ const EnergyConsumptionDetail = () => {
106
107
  if (state.over7Days) {
107
108
  return []
108
109
  }
109
- const res = await getDpResultByHour(devId, props.addEleDpCode, date, 'sum')
110
+ const res = await getDpResultByHour(devId, params.addEleDpCode, date, 'sum')
110
111
  const list: Array<object> = []
111
112
  const resData = Object.keys(res)?.map(val => {
112
113
  return { key: Number(val?.slice(8, 10)), value: Number(res[val]) }
@@ -122,10 +123,71 @@ const EnergyConsumptionDetail = () => {
122
123
  return list
123
124
  }
124
125
 
126
+ const styles = StyleSheet.create({
127
+ showTip: {
128
+ marginHorizontal: cx(24)
129
+ },
130
+ cardContainer: {
131
+ flex: 1,
132
+ marginHorizontal: cx(24),
133
+ padding: cx(16)
134
+ },
135
+ cardTitle: {
136
+ color: props.theme.global.fontColor,
137
+ fontSize: cx(16),
138
+ fontWeight: 'bold'
139
+ },
140
+ consumedEnergyContent: {
141
+ flex: 1,
142
+ flexDirection: 'row',
143
+ },
144
+ consumptionNum: {
145
+ color: props.theme.global.secondBrand,
146
+ fontFamily: 'helvetica_neue_lt_std_bd',
147
+ },
148
+ subContent: {
149
+ flex: 1,
150
+ alignItems: 'center',
151
+ marginBottom: cx(9)
152
+ },
153
+ valueText: {
154
+ fontSize: cx(24),
155
+ fontWeight: 'bold',
156
+ color: props.theme.global.secondBrand,
157
+ },
158
+ titleText: {
159
+ fontFamily: 'helvetica_neue_lt_std_roman',
160
+ fontSize: cx(14),
161
+ color: props.theme.global.secondFontColor,
162
+ textAlign: 'center',
163
+ },
164
+ priceBg: {
165
+ height: cx(40),
166
+ width: cx(40),
167
+ borderRadius: cx(40),
168
+ backgroundColor: props.theme.global.thirdBrand,
169
+ justifyContent: 'center',
170
+ alignItems: 'center',
171
+ marginRight: cx(10)
172
+ },
173
+ priceNum: {
174
+ marginRight: cx(10)
175
+ },
176
+ priceButton: {
177
+ borderRadius: cx(5),
178
+ paddingHorizontal: cx(10),
179
+ paddingVertical: cx(8),
180
+ marginTop: cx(8),
181
+ backgroundColor: props.theme.button.active,
182
+ alignItems: 'center',
183
+ justifyContent: 'center'
184
+ }
185
+ })
186
+
125
187
  return (
126
188
  <Page
127
189
  backText={I18n.getLang('consumption_data_annual_bar_chart_system_back_text')}
128
- headlineText={props.curMonth.key}
190
+ headlineText={params.curMonth.key}
129
191
  headlineIcon={res.download_icon}
130
192
  onHeadlineIconClick={() => { }}
131
193
  showGreenery={false}
@@ -139,10 +201,10 @@ const EnergyConsumptionDetail = () => {
139
201
  <Card
140
202
  style={styles.cardContainer}
141
203
  >
142
- <Text style={styles.cardTitle}>{props.curMonth.key}</Text>
204
+ <Text style={styles.cardTitle}>{params.curMonth.key}</Text>
143
205
  <Spacer height={cx(15)} />
144
206
  <View style={{ flexDirection: 'row', alignItems: 'flex-end' }}>
145
- <Text style={[styles.consumptionNum, { fontSize: cx(38), marginRight: cx(8) }]}>{props.curMonth.value}</Text>
207
+ <Text style={[styles.consumptionNum, { fontSize: cx(38), marginRight: cx(8) }]}>{params.curMonth.value}</Text>
146
208
  <Text style={[styles.consumptionNum, { fontSize: cx(22), marginBottom: cx(4) }]}>kWh</Text>
147
209
  </View>
148
210
  <Spacer />
@@ -153,12 +215,12 @@ const EnergyConsumptionDetail = () => {
153
215
  <Image
154
216
  source={res.energy_consumption_cash}
155
217
  resizeMode="contain"
156
- style={{ height: cx(20), width: cx(20), tintColor: '#FF6600' }}
218
+ style={{ height: cx(20), width: cx(20), tintColor: props.theme.button.active }}
157
219
  />
158
220
  </View>
159
221
  <View style={styles.priceNum}>
160
222
  <View style={{ flexDirection: 'row' }}>
161
- <Text style={{ color: '#666', marginRight: cx(5) }}>{I18n.getLang('consumption_data_field3_co2_topic_text')}</Text>
223
+ <Text style={{ color: props.theme.global.secondFontColor, marginRight: cx(5) }}>{I18n.getLang('consumption_data_field3_co2_topic_text')}</Text>
162
224
  <TouchableOpacity
163
225
  onPress={() => {
164
226
  state.showPopup = true
@@ -168,11 +230,11 @@ const EnergyConsumptionDetail = () => {
168
230
  <Image
169
231
  source={res.co2Icon}
170
232
  resizeMode="contain"
171
- style={{ height: cx(20), width: cx(20), tintColor: '#FF6600' }}
233
+ style={{ height: cx(20), width: cx(20), tintColor: props.theme.button.action }}
172
234
  />
173
235
  </TouchableOpacity>
174
236
  </View>
175
- <Text style={{ color: '#000', fontWeight: 'bold' }}>{`${state.co2Saved} kg`}</Text>
237
+ <Text style={{ color: props.theme.global.fontColor, fontWeight: 'bold' }}>{`${state.co2Saved} kg`}</Text>
176
238
  </View>
177
239
  </View>
178
240
  <Spacer height={cx(10)} />
@@ -183,20 +245,20 @@ const EnergyConsumptionDetail = () => {
183
245
  <Image
184
246
  source={res.energy_consumption_cash}
185
247
  resizeMode="contain"
186
- style={{ height: cx(20), width: cx(20), tintColor: '#FF6600' }}
248
+ style={{ height: cx(20), width: cx(20), tintColor: props.theme.button.active }}
187
249
  />
188
250
  </View>
189
251
  <View>
190
252
  <View style={styles.priceNum}>
191
- <Text style={{ color: '#666' }}>{I18n.getLang('consumption_data_field3_value_text2')}</Text>
192
- <Text style={{ color: '#000', fontWeight: 'bold' }}>{state.price ? `${localeNumber(Number(state.price ) * Number(props.curMonth.value), 2)} ${state.unit}` : '-'}</Text>
253
+ <Text style={{ color: props.theme.global.secondFontColor }}>{I18n.getLang('consumption_data_field3_value_text2')}</Text>
254
+ <Text style={{ color: props.theme.global.fontColor, fontWeight: 'bold' }}>{state.price ? `${localeNumber(Number(state.price ) * Number(params.curMonth.value), 2)} ${state.unit}` : '-'}</Text>
193
255
  </View>
194
256
  <TouchableOpacity onPress={() => {
195
257
  state.showPopup = true
196
258
  state.popupType = 'money'
197
259
  }}>
198
260
  <View style={styles.priceButton}>
199
- <Text style={{ color: '#fff' }}>{I18n.getLang('consumption_data_field3_button_text')}</Text>
261
+ <Text style={{ color: props.theme.button.fontColor }}>{I18n.getLang('consumption_data_field3_button_text')}</Text>
200
262
  </View>
201
263
  </TouchableOpacity>
202
264
  </View>
@@ -209,7 +271,7 @@ const EnergyConsumptionDetail = () => {
209
271
  headlineText={I18n.getLang('consumption_data_monthly_overview_field2_headline_text')}
210
272
  headlineClick={() => {
211
273
  navigation.navigate(ui_biz_routerKey.ui_biz_energy_consumption_chart, {
212
- headlineText: props.curMonth.key,
274
+ headlineText: params.curMonth.key,
213
275
  chartData: state.overviewList,
214
276
  over365Days: state.over365Days
215
277
  } as EnergyConsumptionChartProps)
@@ -238,7 +300,7 @@ const EnergyConsumptionDetail = () => {
238
300
  state.popupType = ''
239
301
  state.showPopup = false
240
302
  if(energyData){
241
- props.updateEnergyData({
303
+ params.updateEnergyData({
242
304
  ...energyData,
243
305
  price: exchangeNumber(energyData.price)
244
306
  })
@@ -257,65 +319,4 @@ const EnergyConsumptionDetail = () => {
257
319
  )
258
320
  }
259
321
 
260
- const styles = StyleSheet.create({
261
- showTip: {
262
- marginHorizontal: cx(24)
263
- },
264
- cardContainer: {
265
- flex: 1,
266
- marginHorizontal: cx(24),
267
- padding: cx(16)
268
- },
269
- cardTitle: {
270
- color: '#000',
271
- fontSize: cx(16),
272
- fontWeight: 'bold'
273
- },
274
- consumedEnergyContent: {
275
- flex: 1,
276
- flexDirection: 'row',
277
- },
278
- consumptionNum: {
279
- color: '#FF8555',
280
- fontFamily: 'helvetica_neue_lt_std_bd',
281
- },
282
- subContent: {
283
- flex: 1,
284
- alignItems: 'center',
285
- marginBottom: cx(9)
286
- },
287
- valueText: {
288
- fontSize: cx(24),
289
- fontWeight: 'bold',
290
- color: '#ff8555',
291
- },
292
- titleText: {
293
- fontFamily: 'helvetica_neue_lt_std_roman',
294
- fontSize: cx(14),
295
- color: '#666666',
296
- textAlign: 'center',
297
- },
298
- priceBg: {
299
- height: cx(40),
300
- width: cx(40),
301
- borderRadius: cx(40),
302
- backgroundColor: '#FFE0D4',
303
- justifyContent: 'center',
304
- alignItems: 'center',
305
- marginRight: cx(10)
306
- },
307
- priceNum: {
308
- marginRight: cx(10)
309
- },
310
- priceButton: {
311
- borderRadius: cx(5),
312
- paddingHorizontal: cx(10),
313
- paddingVertical: cx(8),
314
- marginTop: cx(8),
315
- backgroundColor: '#FF6600',
316
- alignItems: 'center',
317
- justifyContent: 'center'
318
- }
319
- })
320
-
321
- export default EnergyConsumptionDetail
322
+ export default withTheme(EnergyConsumptionDetail)