esoftplay-event 0.0.1-i → 0.0.1-k

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.
package/config.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "fonts": {
3
- "mono": "mono.ttf",
4
3
  "Arial": "Arial.ttf",
5
4
  "ArialBold": "ArialBold.ttf",
6
5
  "SFProText": "SFProText.ttf",
6
+ "mono": "mono.ttf",
7
7
  "MonoSpace": "MonoSpace.ttf",
8
8
  "DecoNumbers": "DecoNumbers.ttf",
9
9
  "digital": "digital.ttf"
@@ -0,0 +1,44 @@
1
+ // withHooks
2
+ import { useEffect } from 'react';
3
+
4
+ import { EventHeader } from 'esoftplay/cache/event/header/import';
5
+ import { LibCurl } from 'esoftplay/cache/lib/curl/import';
6
+ import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
7
+ import { LibToastProperty } from 'esoftplay/cache/lib/toast/import';
8
+ import esp from 'esoftplay/esp';
9
+ import useSafeState from 'esoftplay/state';
10
+ import React from 'react';
11
+ import { View } from 'react-native';
12
+
13
+
14
+ export interface EventArtist_detailv2Args {
15
+
16
+ }
17
+ export interface EventArtist_detailv2Props {
18
+
19
+ }
20
+ export default function m(props: EventArtist_detailv2Props): any {
21
+ const { url_price } = LibNavigation.getArgsAll(props)
22
+ const [priceList, setPriceList] = useSafeState<any>()
23
+
24
+ useEffect(() => {
25
+ loadData()
26
+ }, [])
27
+
28
+ function loadData() {
29
+ new LibCurl(url_price, null, (res, msg) => {
30
+ esp.log(res);
31
+ setPriceList(res)
32
+ }, (err) => {
33
+ LibToastProperty.show(err?.message)
34
+ LibNavigation.back()
35
+ })
36
+ }
37
+
38
+ return (
39
+ <View style={{ flex: 1 }}>
40
+ <EventHeader title={esp.lang("event/artist_detail", "title")} /* subtitle={data?.title} */ />
41
+
42
+ </View>
43
+ )
44
+ }
@@ -1,11 +1,12 @@
1
1
  // withHooks
2
2
 
3
- import { EventCountdownProperty } from 'esoftplay/cache/event/countdown/import';
4
3
  import { EventFirebase_socket, EventFirebase_socketProperty } from 'esoftplay/cache/event/firebase_socket/import';
5
4
  import { EventHeader } from 'esoftplay/cache/event/header/import';
6
5
  import { EventIndexProperty } from 'esoftplay/cache/event/index/import';
6
+ import { EventMessage } from 'esoftplay/cache/event/message/import';
7
7
  import { LibCarrousel } from 'esoftplay/cache/lib/carrousel/import';
8
8
  import { LibCurl } from 'esoftplay/cache/lib/curl/import';
9
+ import { LibList } from 'esoftplay/cache/lib/list/import';
9
10
  import { LibLoading } from 'esoftplay/cache/lib/loading/import';
10
11
  import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
11
12
  import { LibPicture } from 'esoftplay/cache/lib/picture/import';
@@ -17,7 +18,6 @@ import moment from 'esoftplay/moment';
17
18
  import useSafeState from 'esoftplay/state';
18
19
  import React, { useEffect } from 'react';
19
20
  import { Text, TouchableOpacity, View } from 'react-native';
20
- import { ScrollView } from 'react-native-gesture-handler';
21
21
 
22
22
 
23
23
  moment().locale('id')
@@ -81,95 +81,34 @@ export default function m(props: EventArtistv2Props): any {
81
81
 
82
82
  function renderIt(item: any, i: number) {
83
83
  const styleId_Z2g4Hs7: any = { backgroundColor: '#FFC523', width: itemWidth, height: itemHeight, margin: 0.5, justifyContent: 'center', alignItems: 'center' }
84
- return (
85
- <LibCarrousel
86
- delay={4000}
87
- style={{ height: sliderHeight, width: width }}
88
- autoplay
89
- >
90
- {
91
- item?.images?.map((item1: any, ii: number) => {
92
- return (
93
- <TouchableOpacity onPress={() => {
94
- esp.log("start");
95
- // EventIndexProperty.isLogin(async () => {
96
- // esp.log("1");
97
- // if (item.status == 1) {
98
- // esp.log("2");
99
- // if (isInPricingQueueConfig(item.event_id)) {
100
- // esp.log("3");
101
- // LibNavigation.navigateForResult('event/queue_pricing', { event_id: item?.event_id, autoPass: false })
102
- // }
103
- // esp.log("4");
104
- // EventCountdownProperty.countdownTime.set(moment().add(EventFirebase_socketProperty.eventQueueConfig.get(item?.event_id).time, 'seconds').localeFormat('YYYY-MM-DD HH:mm:ss'))
105
- // esp.log("5");
106
- // LibNavigation.navigate(item?.config?.hasOwnProperty('multiprice') && item?.config?.multiprice == 1 ?
107
- // 'event/artist_detail_multi' :
108
- // 'event/artist_detail', { url_price: item.url })
109
- // } else {
110
- // esp.log("6");
111
- // LibToastProperty.show(esp.lang("event/artist", "ticket_not_available"))
112
- // }
113
- // })
114
- }} style={{ height: sliderHeight, width: width }} >
115
- <LibPicture source={{ uri: item1 }} style={{ height: sliderHeight, width: width, resizeMode: 'cover', backgroundColor: "#f1f2f3" }} />
116
- </TouchableOpacity>
117
- )
118
- })
119
- }
120
- </LibCarrousel>
121
- )
122
- return (
123
- <TouchableOpacity onPress={() => {
124
- esp.log("start");
125
- EventIndexProperty.isLogin(async () => {
126
- esp.log("1");
127
- if (item.status == 1) {
128
- esp.log("2");
129
- if (isInPricingQueueConfig(item.event_id)) {
130
- esp.log("3");
131
- LibNavigation.navigateForResult('event/queue_pricing', { event_id: item?.event_id, autoPass: false })
132
- }
133
- esp.log("4");
134
- EventCountdownProperty.countdownTime.set(moment().add(EventFirebase_socketProperty.eventQueueConfig.get(item?.event_id).time, 'seconds').localeFormat('YYYY-MM-DD HH:mm:ss'))
135
- esp.log("5");
136
- LibNavigation.navigate(item?.config?.hasOwnProperty('multiprice') && item?.config?.multiprice == 1 ?
137
- 'event/artist_detail_multi' :
138
- 'event/artist_detail', { url_price: item.url })
139
- } else {
140
- esp.log("6");
141
- LibToastProperty.show(esp.lang("event/artist", "ticket_not_available"))
142
- }
143
- })
144
- }} >
145
- <LibCarrousel
146
- delay={4000}
147
- style={{ height: sliderHeight, width: width }}
148
- autoplay
149
- >
150
- {
151
- item?.images?.map((item1: any, ii: number) => {
152
- return (
153
- <LibPicture key={ii} source={{ uri: item1 }} style={{ height: sliderHeight, width: width, resizeMode: 'cover', backgroundColor: "#f1f2f3" }} />
154
- )
155
- })
156
- }
157
- </LibCarrousel>
158
- {/* <View style={styleId_Z2g4Hs7}>
159
84
 
160
- </View> */}
161
- </TouchableOpacity>
162
- )
163
-
164
- }
165
-
166
- function renderItem(item: any, index: number) {
167
- const styleId_Z2g4Hs7: any = { backgroundColor: '#FFC523', width: itemWidth, height: itemHeight, margin: 0.5, justifyContent: 'center', alignItems: 'center' }
85
+ const handlePress = () => {
86
+ EventIndexProperty.isLogin(async () => {
87
+ if (item.status == 1) {
88
+ if (isInPricingQueueConfig(item.event_id)) {
89
+ LibNavigation.navigateForResult('event/queue_pricing', {
90
+ event_id: item?.event_id,
91
+ autoPass: false,
92
+ });
93
+ }
94
+ // EventCountdownProperty.countdownTime.set(moment().add(EventFirebase_socketProperty.eventQueueConfig.get(item?.event_id).time, 'seconds').localeFormat('YYYY-MM-DD HH:mm:ss'));
95
+ LibNavigation.navigate(
96
+ // item?.config?.multiprice == 1
97
+ // ? 'event/artist_detail_multi'
98
+ // :
99
+ 'event/artist_detailv2',
100
+ { url_price: item.url }
101
+ );
102
+ } else {
103
+ LibToastProperty.show(esp.lang("event/artist", "ticket_not_available"));
104
+ }
105
+ });
106
+ };
168
107
 
169
- if (item?.images?.length > 0) {
108
+ if (item?.images?.length > 1) {
170
109
  return (
171
110
  <LibCarrousel
172
- key={"p_slider"}
111
+ key={i}
173
112
  delay={4000}
174
113
  style={{ height: sliderHeight, width: width }}
175
114
  autoplay
@@ -177,28 +116,7 @@ export default function m(props: EventArtistv2Props): any {
177
116
  {
178
117
  item?.images?.map((item1: any, ii: number) => {
179
118
  return (
180
- <TouchableOpacity key={ii} onPress={() => {
181
- esp.log("start");
182
- EventIndexProperty.isLogin(async () => {
183
- esp.log("1");
184
- if (item.status == 1) {
185
- esp.log("2");
186
- if (isInPricingQueueConfig(item.event_id)) {
187
- esp.log("3");
188
- LibNavigation.navigateForResult('event/queue_pricing', { event_id: item?.event_id, autoPass: false })
189
- }
190
- esp.log("4");
191
- EventCountdownProperty.countdownTime.set(moment().add(EventFirebase_socketProperty.eventQueueConfig.get(item?.event_id).time, 'seconds').localeFormat('YYYY-MM-DD HH:mm:ss'))
192
- esp.log("5");
193
- LibNavigation.navigate(item?.config?.hasOwnProperty('multiprice') && item?.config?.multiprice == 1 ?
194
- 'event/artist_detail_multi' :
195
- 'event/artist_detail', { url_price: item.url })
196
- } else {
197
- esp.log("6");
198
- LibToastProperty.show(esp.lang("event/artist", "ticket_not_available"))
199
- }
200
- })
201
- }} >
119
+ <TouchableOpacity key={ii} onPress={handlePress} >
202
120
  <LibPicture key={ii} source={{ uri: item1 }} style={{ height: sliderHeight, width: width, resizeMode: 'cover', backgroundColor: "#f1f2f3" }} />
203
121
  </TouchableOpacity>
204
122
  )
@@ -208,64 +126,19 @@ export default function m(props: EventArtistv2Props): any {
208
126
  )
209
127
  } else if (item?.images?.length == 1) {
210
128
  return (
211
- <TouchableOpacity key={index} onPress={() => {
212
- esp.log("start");
213
- EventIndexProperty.isLogin(async () => {
214
- esp.log("1");
215
- if (item.status == 1) {
216
- esp.log("2");
217
- if (isInPricingQueueConfig(item.event_id)) {
218
- esp.log("3");
219
- LibNavigation.navigateForResult('event/queue_pricing', { event_id: item?.event_id, autoPass: false })
220
- }
221
- esp.log("4");
222
- EventCountdownProperty.countdownTime.set(moment().add(EventFirebase_socketProperty.eventQueueConfig.get(item?.event_id).time, 'seconds').localeFormat('YYYY-MM-DD HH:mm:ss'))
223
- esp.log("5");
224
- LibNavigation.navigate(item?.config?.hasOwnProperty('multiprice') && item?.config?.multiprice == 1 ?
225
- 'event/artist_detail_multi' :
226
- 'event/artist_detail', { url_price: item.url })
227
- } else {
228
- esp.log("6");
229
- LibToastProperty.show(esp.lang("event/artist", "ticket_not_available"))
230
- }
231
- })
232
- }} >
129
+ <TouchableOpacity key={i} onPress={handlePress} >
233
130
  <LibPicture style={{ height: sliderHeight, width: width, resizeMode: 'cover', backgroundColor: "#f1f2f3" }} source={{ uri: item.images[0] }} />
234
131
  </TouchableOpacity>
235
132
  )
236
133
  } else {
237
134
  return (
238
- <TouchableOpacity key={index} onPress={() => {
239
- esp.log("start");
240
- EventIndexProperty.isLogin(async () => {
241
- esp.log("1");
242
- if (item.status == 1) {
243
- esp.log("2");
244
- if (isInPricingQueueConfig(item.event_id)) {
245
- esp.log("3");
246
- LibNavigation.navigateForResult('event/queue_pricing', { event_id: item?.event_id, autoPass: false })
247
- }
248
- esp.log("4");
249
- EventCountdownProperty.countdownTime.set(moment().add(EventFirebase_socketProperty.eventQueueConfig.get(item?.event_id).time, 'seconds').localeFormat('YYYY-MM-DD HH:mm:ss'))
250
- esp.log("5");
251
- LibNavigation.navigate(item?.config?.hasOwnProperty('multiprice') && item?.config?.multiprice == 1 ?
252
- 'event/artist_detail_multi' :
253
- 'event/artist_detail', { url_price: item.url })
254
- } else {
255
- esp.log("6");
256
- LibToastProperty.show(esp.lang("event/artist", "ticket_not_available"))
257
- }
258
- })
259
- }} style={styleId_Z2g4Hs7}>
260
- <Text numberOfLines={2} style={styleId_2cYE4h}>{item.title}</Text>
261
-
135
+ <TouchableOpacity key={i} onPress={handlePress} style={styleId_Z2g4Hs7}>
136
+ <Text allowFontScaling={false} numberOfLines={2} style={styleId_2cYE4h}>{item.title}</Text>
262
137
  </TouchableOpacity>
263
138
  )
264
139
  }
265
140
  }
266
141
 
267
-
268
-
269
142
  return (
270
143
  <View style={{ flex: 1, backgroundColor: 'white' }} >
271
144
  <EventHeader title={title ? title : resultEvent?.event_title} iconShare={resultEvent?.url_share_artist && resultEvent?.url_share_artist !== ""}
@@ -274,21 +147,21 @@ export default function m(props: EventArtistv2Props): any {
274
147
  }} />
275
148
  {
276
149
  !result && !error ? <LibLoading /> :
277
- <ScrollView>
278
- {
279
- result?.map(renderIt)
150
+ // <ScrollView>
151
+ // {
152
+ // result?.map(renderIt)
153
+ // }
154
+ // </ScrollView>
155
+ <LibList
156
+ data={result}
157
+ // keyExtractor={(item) => item.id}
158
+ onRefresh={loadData}
159
+ staticHeight={itemHeight + 1}
160
+ renderItem={renderIt}
161
+ ListEmptyComponent={
162
+ <EventMessage message={error} />
280
163
  }
281
- </ScrollView>
282
- // <LibList
283
- // data={result}
284
- // // keyExtractor={(item) => item.id}
285
- // onRefresh={loadData}
286
- // staticHeight={itemHeight + 1}
287
- // renderItem={renderIt}
288
- // ListEmptyComponent={
289
- // <EventMessage message={error} />
290
- // }
291
- // />
164
+ />
292
165
  }
293
166
  </View>
294
167
  )
@@ -0,0 +1,42 @@
1
+ // withHooks
2
+
3
+ import { EventOrder_itemProperty } from 'esoftplay/cache/event/order_item/import';
4
+ import { LibGradient } from 'esoftplay/cache/lib/gradient/import';
5
+ import { LibIcon } from 'esoftplay/cache/lib/icon/import';
6
+ import { LibStyle } from 'esoftplay/cache/lib/style/import';
7
+ import React from 'react';
8
+ import { Text, TouchableOpacity, View } from 'react-native';
9
+
10
+
11
+ export interface EventButton_order_detailArgs {
12
+
13
+ }
14
+ export interface EventButton_order_detailProps {
15
+ onPress: () => void
16
+ title: string
17
+ info?: string
18
+ color: any,
19
+ icon: any
20
+ }
21
+ export default function m(props: EventButton_order_detailProps): any {
22
+ return (
23
+ <TouchableOpacity onPress={props.onPress}>
24
+ <View style={{ borderWidth: 1, borderColor: '#ccc', margin: 15, borderRadius: 7, marginBottom: 0, overflow: 'hidden', flexDirection: 'row' }}>
25
+ <LibGradient
26
+ colors={[props.color, props.color, "#f1f2f3",]}
27
+ direction='left-to-right'
28
+ style={{ margin: 3, borderRadius: 5, padding: 7, flex: 4, alignContent: 'center', justifyContent: 'center' }}
29
+ >
30
+ <Text allowFontScaling={false} numberOfLines={2} ellipsizeMode='tail' style={{ color: EventOrder_itemProperty.textColor(props?.color), fontSize: 16, fontWeight: 'bold' }}>{props.title}</Text>
31
+ {
32
+ props.info != "" &&
33
+ <Text allowFontScaling={false} numberOfLines={2} ellipsizeMode='tail' style={{ color: EventOrder_itemProperty.textColor(props?.color), fontSize: 12, fontWeight: 'normal' }}>{props?.info}</Text>
34
+ }
35
+ </LibGradient>
36
+ <View style={{ flex: 1, margin: 3, borderRadius: 5, ...LibStyle.elevation(2), backgroundColor: props.color, justifyContent: 'center', alignContent: 'center', alignItems: 'center' }}>
37
+ <LibIcon name={props.icon} size={40} color={EventOrder_itemProperty.textColor(props.color)} style={{ opacity: 1 }} />
38
+ </View>
39
+ </View>
40
+ </TouchableOpacity>
41
+ )
42
+ }
@@ -20,16 +20,15 @@ import { UserClass } from 'esoftplay/cache/user/class/import';
20
20
 
21
21
  import { applyStyle } from 'esoftplay';
22
22
  import { EventAlert } from 'esoftplay/cache/event/alert/import';
23
+ import { EventButton_order_detail } from 'esoftplay/cache/event/button_order_detail/import';
23
24
  import { EventConfigProperty } from 'esoftplay/cache/event/config/import';
24
25
  import { EventHtmltext } from 'esoftplay/cache/event/htmltext/import';
25
26
  import { EventIndexProperty } from 'esoftplay/cache/event/index/import';
26
- import { EventOrder_detail_upgrade_button } from 'esoftplay/cache/event/order_detail_upgrade_button/import';
27
27
  import { EventPopup } from 'esoftplay/cache/event/popup/import';
28
28
  import { EventQr_bg } from 'esoftplay/cache/event/qr_bg/import';
29
29
  import { EventRating } from 'esoftplay/cache/event/rating/import';
30
30
  import { EventSecure_page } from 'esoftplay/cache/event/secure_page/import';
31
31
  import { EventStep } from 'esoftplay/cache/event/step/import';
32
- import { LibGradient } from 'esoftplay/cache/lib/gradient/import';
33
32
  import { LibSlidingup } from 'esoftplay/cache/lib/slidingup/import';
34
33
  import { UseCondition } from 'esoftplay/cache/use/condition/import';
35
34
  import esp from 'esoftplay/esp';
@@ -527,40 +526,35 @@ export default function m(props: EventOrder_detailProps): any {
527
526
  </UseCondition>
528
527
 
529
528
  <UseCondition if={result?.is_upgradable == 1} >
530
- <EventOrder_detail_upgrade_button onPress={() => {
531
- LibNavigation.navigate('event/order_detail_upgrade', {
532
- url: result?.url_upgrade,
533
- dataTicket: result,
534
- })
535
- }} />
529
+ <EventButton_order_detail
530
+ color={LibStyle.colorPrimary}
531
+ onPress={() => {
532
+ LibNavigation.navigate('event/order_detail_upgrade', {
533
+ url: result?.url_upgrade,
534
+ dataTicket: result,
535
+ })
536
+ }}
537
+ icon={'chevron-up-circle'}
538
+ title={esp.lang("event/order_detail_upgrade_button", "upgrade")}
539
+ info={esp.lang("event/order_detail_upgrade_button", "eays")}
540
+ />
536
541
  </UseCondition>
537
542
 
538
543
 
539
- {/* tombol add on */}
540
544
 
545
+ {/* tombol add on */}
541
546
  {
542
547
  result?.addons?.length > 0 && result?.addons?.map((item: any, i: number) => {
543
548
  return (
544
- <TouchableOpacity key={i} onPress={() => {
545
- loadDataAddons(item?.addons_id, item?.url)
546
- }}>
547
- <LibGradient
548
- colors={["#F2789F", "#F9C5D5", "#F9C5D5", "#F2789F",]}
549
- direction='top-to-bottom'
550
- style={{ margin: 15, flexDirection: 'row', backgroundColor: '#F2789F', marginBottom: 0, borderWidth: 1, borderColor: 'red', borderRadius: 7, overflow: 'hidden' }}
551
- >
552
- <View style={{ padding: 10, paddingHorizontal: 15, borderTopLeftRadius: 7, borderBottomLeftRadius: 7 }}>
553
- <LibIcon name='plus-circle' size={40} color='#fff' style={{ opacity: 1 }} />
554
- </View>
555
- <View style={{ flex: 1, backgroundColor: '#fff', borderTopRightRadius: 7, borderBottomRightRadius: 7, borderTopLeftRadius: 50, borderBottomLeftRadius: 50, alignContent: 'center', justifyContent: 'center', paddingLeft: 30 }}>
556
- <Text allowFontScaling={false} style={{ fontSize: 16, fontWeight: 'bold' }}>{item.title}</Text>
557
- {
558
- item.hasOwnProperty('info') && item?.info != "" &&
559
- <Text allowFontScaling={false} numberOfLines={2} ellipsizeMode='tail' style={{ fontSize: 12, fontWeight: 'normal' }}>{item?.info}</Text>
560
- }
561
- </View>
562
- </LibGradient>
563
- </TouchableOpacity>
549
+ <EventButton_order_detail
550
+ color={result?.color}
551
+ onPress={() => {
552
+ loadDataAddons(item?.addons_id, item?.url)
553
+ }}
554
+ icon={'plus-circle'}
555
+ title={item.title}
556
+ info={item.info}
557
+ />
564
558
  )
565
559
  })
566
560
  }
@@ -49,11 +49,11 @@ export default function m(props: EventScan_itemProps): any {
49
49
  <View style={{}}>
50
50
  {
51
51
  props?.item?.hall_scanned && props?.item?.hall_scanned != "0000-00-00 00:00:00" &&
52
- <Text allowFontScaling={false} ellipsizeMode={'tail'} numberOfLines={2} style={applyStyle({ color: "#c9c9c9", marginBottom: 4, fontSize: 14, letterSpacing: 1.5 })}>{esp.lang("event/scan_item", "scan_on") + LibUtils.moment(props?.item?.hall_scanned).serverFormat("DD MMMM YYYY H:m:s ", props?.item?.timezone) + props.item?.timezone_locale || ""}</Text>
52
+ <Text allowFontScaling={false} ellipsizeMode={'tail'} numberOfLines={2} style={applyStyle({ color: "#c9c9c9", marginBottom: 4, fontSize: 14, letterSpacing: 1.5 })}>{esp.lang("event/scan_item", "scan_on") + LibUtils.moment(props?.item?.hall_scanned).serverFormat("DD MMMM YYYY H:m:s ", props?.item?.scanned_detail?.timezone) + props.item?.scanned_detail?.timezone_locale || ""}</Text>
53
53
  }
54
54
  {
55
55
  !Array.isArray(props?.item?.scanned_detail) && props?.item?.scanned_detail?.scanned != "" && props?.item?.scanned_detail?.scanned != "0000-00-00 00:00:00" &&
56
- <Text allowFontScaling={false} ellipsizeMode={'tail'} numberOfLines={2} style={applyStyle({ color: LibStyle.colorRed, marginBottom: 4, fontSize: 14, letterSpacing: 1.5 })}>{esp.lang("event/scan_item", "scan_on") + LibUtils.moment(props?.item?.scanned_detail?.scanned).serverFormat("DD MMMM YYYY H:m:s ", props?.item?.timezone) + props.item?.timezone_locale || ""}</Text>
56
+ <Text allowFontScaling={false} ellipsizeMode={'tail'} numberOfLines={2} style={applyStyle({ color: LibStyle.colorRed, marginBottom: 4, fontSize: 14, letterSpacing: 1.5 })}>{esp.lang("event/scan_item", "scan_on") + LibUtils.moment(props?.item?.scanned_detail?.scanned).serverFormat("DD MMMM YYYY H:m:s ", props?.item?.scanned_detail?.timezone) + props.item?.scanned_detail?.timezone_locale || ""}</Text>
57
57
  }
58
58
  {
59
59
  props.item?.status == 1 &&
@@ -105,7 +105,7 @@ export default function m(props: EventTms_in_successProps): any {
105
105
  is_tms: 1,
106
106
  qty: _qty,
107
107
  tms_id: UserClass.state().get()?.id,
108
- scanned: LibUtils.moment().format('YYYY-MM-DD HH:mm:ss'),
108
+ scanned: LibUtils.moment().localeFormat('YYYY-MM-DD HH:mm:ss'),
109
109
  }
110
110
  EventTms_homeProperty.addCounterEntranceOpenGate(1, selectedTicket?.price_id)
111
111
  syncUsedTiketState.set(LibObject.push(syncUsedTiketState.get(), [url, post])())
package/event/tms_out.tsx CHANGED
@@ -71,7 +71,7 @@ export default function m(props: EventTms_outProps): any {
71
71
  gate_id: selectGate?.id,
72
72
  trx_id: new Date().getTime() + "" + UserClass.state().get()?.id,
73
73
  price_id: modifyList?.filter((item: any) => item.checked == 1).map((it: any) => it.price_id),
74
- scanned_out: LibUtils.moment().format('YYYY-MM-DD HH:mm:ss'),
74
+ scanned_out: LibUtils.moment().localeFormat('YYYY-MM-DD HH:mm:ss'),
75
75
  }
76
76
  let urlOut = "event_tms_out_confirm"
77
77
  LibNavigation.replace('event/tms_out_success', { data: finalData, ...args, url: urlOut, post: postOut })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay-event",
3
- "version": "0.0.1-i",
3
+ "version": "0.0.1-k",
4
4
  "description": "event module on esoftplay framework",
5
5
  "main": "index.js",
6
6
  "scripts": {