esoftplay-event 0.0.2-g → 0.0.2-h
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/event/artist_detail.tsx
CHANGED
|
@@ -287,29 +287,50 @@ export default function m(props: EventArtist_detailProps): any {
|
|
|
287
287
|
}
|
|
288
288
|
}} activeOpacity={itemT?.status == 1 ? 0 : 1} key={iT} style={{ flex: 1, flexDirection: 'row', backgroundColor: colorBackground, justifyContent: 'space-between', padding: 10, alignItems: 'center' }}>
|
|
289
289
|
{
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
:
|
|
293
|
-
|
|
294
|
-
<View style={applyStyle({ marginLeft: 10, marginHorizontal: 20, width: 42, height: 42, borderRadius: 5, backgroundColor: "#fff", borderStyle: "solid", borderWidth: 1, borderColor: _selectedTicket ? "#3ea4dc" : '#999', alignContent: 'center', alignItems: 'center', justifyContent: 'center' })}>
|
|
290
|
+
ticketWithDate ?
|
|
291
|
+
// view untuk yang ada tanggalnya
|
|
292
|
+
<View style={{ flex: 1, flexDirection: 'row', alignContent: 'center', alignItems: 'center', }}>
|
|
293
|
+
<View style={applyStyle({ marginLeft: 10, marginHorizontal: 20, width: 42, height: 42, borderRadius: 5, backgroundColor: colorBackground, borderStyle: "solid", borderWidth: textOpacity, borderColor: _selectedTicket ? "#3ea4dc" : '#999', alignContent: 'center', alignItems: 'center', justifyContent: 'center' })}>
|
|
295
294
|
<Text allowFontScaling={false} style={applyStyle({ opacity: textOpacity, fontFamily: "Arial", fontSize: 20, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0.23, textAlign: "center", color: _selectedTicket ? "#3ea4dc" : '#999' })}>{LibUtils.moment(itemT.ondate).localeFormat('DD')}</Text>
|
|
296
295
|
</View>
|
|
297
296
|
<View style={applyStyle({ flexDirection: 'column', flex: 1 })}>
|
|
298
297
|
{
|
|
299
|
-
item?.status == 1 && itemT
|
|
298
|
+
item?.status == 1 && itemT.status != 1 &&
|
|
300
299
|
<View style={applyStyle({ flexDirection: 'row', marginBottom: 5 })}>
|
|
301
|
-
<View style={applyStyle({ alignContent: 'center', alignItems: 'center', justifyContent: 'center', marginTop: 5, borderWidth: 1, backgroundColor: itemT
|
|
302
|
-
<Text allowFontScaling={false} style={applyStyle({ fontSize: 10, fontStyle: "normal", letterSpacing: 0, color
|
|
300
|
+
<View style={applyStyle({ alignContent: 'center', alignItems: 'center', justifyContent: 'center', marginTop: 5, borderWidth: 1, backgroundColor: itemT.status == 0 ? LibStyle.colorRed : "#4cd964", borderColor: itemT.status == 0 ? LibStyle.colorRed : "#4cd964", borderRadius: 5, padding: 3, opacity: 0.8 })}>
|
|
301
|
+
<Text allowFontScaling={false} style={applyStyle({ fontSize: 10, fontStyle: "normal", letterSpacing: 0, color: /* itemT.status == 2 ? "#000" : */ "#fff", fontWeight: 'bold' })}>{itemT.status == 0 ? esp.lang("event/ticket_list", "sold_out") : esp.lang("event/ticket_list", "coming_soon")}</Text>
|
|
303
302
|
</View>
|
|
304
303
|
</View>
|
|
305
304
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
<
|
|
309
|
-
|
|
310
|
-
|
|
305
|
+
<>
|
|
306
|
+
<Text allowFontScaling={false} style={applyStyle({ opacity: textOpacity, fontFamily: "Arial", fontSize: 14, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, color: _selectedTicket ? "#3ea4dc" : '#999' })}>{LibUtils.moment(itemT.ondate).localeFormat('dddd')}</Text>
|
|
307
|
+
<View style={applyStyle({ flexDirection: 'row', alignItems: "center" })}>
|
|
308
|
+
<Text allowFontScaling={false} style={applyStyle({ opacity: textOpacity, fontFamily: "Arial", fontSize: 12, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, color: _selectedTicket ? "#3ea4dc" : '#999' })}>{LibUtils.moment(itemT.ondate).localeFormat('MMMM')}</Text>
|
|
309
|
+
<Text allowFontScaling={false} style={applyStyle({ opacity: textOpacity, marginLeft: 5, fontFamily: "Arial", fontSize: 12, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, color: _selectedTicket ? "#3ea4dc" : '#999' })}>{LibUtils.moment(itemT.ondate).localeFormat('YYYY')}</Text>
|
|
310
|
+
</View>
|
|
311
|
+
</>
|
|
312
|
+
</View>
|
|
313
|
+
</View>
|
|
314
|
+
:
|
|
315
|
+
// view untuk yang undangan dan khusus
|
|
316
|
+
<View style={{ flex: 1, flexDirection: 'row', alignContent: 'center', alignItems: 'center' }}>
|
|
317
|
+
<LibPicture source={esp.assets('icons/ic_special2.png')} style={{ height: 42, width: 42 }} />
|
|
318
|
+
<View style={{ marginLeft: 14, flex: 1 }} >
|
|
319
|
+
{
|
|
320
|
+
item?.status == 1 && itemT.status != 1 &&
|
|
321
|
+
<View style={applyStyle({ flexDirection: 'row', marginBottom: 5 })}>
|
|
322
|
+
<View style={applyStyle({ alignContent: 'center', alignItems: 'center', justifyContent: 'center', marginTop: 5, borderWidth: 1, backgroundColor: itemT.status == 0 ? LibStyle.colorRed : LibStyle.colorPrimary, borderColor: itemT.status == 0 ? LibStyle.colorRed : LibStyle.colorPrimary, borderRadius: 5, padding: 3, opacity: 0.8 })}>
|
|
323
|
+
<Text allowFontScaling={false} style={applyStyle({ fontSize: 10, fontStyle: "normal", letterSpacing: 0, color: "#fff", fontWeight: 'bold' })}>{itemT.status == 0 ? esp.lang("event/ticket_list", "sold_out") : esp.lang("event/ticket_list", "coming_soon")}</Text>
|
|
324
|
+
</View>
|
|
325
|
+
</View>
|
|
326
|
+
}
|
|
327
|
+
{/* <Text allowFontScaling={false} style={{ fontFamily: "Arial", fontSize: 14, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, color: _selectedTicket ? "#3ea4dc" : '#999' }}>{item.type}</Text> */}
|
|
328
|
+
{
|
|
329
|
+
item.info != "" &&
|
|
330
|
+
<EventHtmltext allowFontScaling={false} style={{ flexWrap: 'wrap', fontFamily: "Arial", fontSize: 11, fontStyle: "normal", letterSpacing: 0, color: _selectedTicket ? "#3ea4dc" : '#999' }}>{item.info}</EventHtmltext>
|
|
331
|
+
}
|
|
311
332
|
</View>
|
|
312
|
-
|
|
333
|
+
</View>
|
|
313
334
|
}
|
|
314
335
|
|
|
315
336
|
<View style={applyStyle({ marginRight: 5, marginLeft: 5, flexDirection: 'column' })} >
|
|
@@ -438,6 +459,7 @@ export default function m(props: EventArtist_detailProps): any {
|
|
|
438
459
|
|
|
439
460
|
let textOpacity = item?.status == 1 ? 1 : 0.3
|
|
440
461
|
let selTic = item.price_id == selectedTicket?.price_id
|
|
462
|
+
let ticketWithDate = item.price_date == 1 && item.use_code == 0
|
|
441
463
|
return (
|
|
442
464
|
<Pressable onPress={() => {
|
|
443
465
|
|
|
@@ -467,7 +489,7 @@ export default function m(props: EventArtist_detailProps): any {
|
|
|
467
489
|
}
|
|
468
490
|
</View>
|
|
469
491
|
{
|
|
470
|
-
item.info != "" &&
|
|
492
|
+
item.info != "" && ticketWithDate &&
|
|
471
493
|
<View style={{ marginTop: 3, alignContent: 'center', alignItems: 'center', flexDirection: 'row', marginRight: 5 }}>
|
|
472
494
|
<Text allowFontScaling={false} style={{ fontSize: 12, color: LibStyle.colorBlue }}>{item.info}</Text>
|
|
473
495
|
</View>
|
|
@@ -78,6 +78,8 @@ export default function m(props: EventOrder_detail_upgradeProps): any {
|
|
|
78
78
|
)
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
esp.log(result);
|
|
82
|
+
|
|
81
83
|
return (
|
|
82
84
|
<View style={{ flex: 1 }} >
|
|
83
85
|
<EventHeader title={esp.lang("event/order_detail_upgrade", "header_title")} subtitle={dataTicket?.event_name} />
|
|
@@ -122,15 +124,22 @@ export default function m(props: EventOrder_detail_upgradeProps): any {
|
|
|
122
124
|
}
|
|
123
125
|
}} key={i} style={{
|
|
124
126
|
...LibStyle.elevation(2), marginHorizontal: 15, marginTop: 2.5, marginBottom: 10, borderRadius: 10,
|
|
125
|
-
backgroundColor: item.status != 1 ? LibStyle.colorBgGrey : selectedTicket?.selected_ticket?.id == item.id ? LibStyle.colorGreen : "#fff", padding: 10, alignContent: 'center', alignItems: 'center', justifyContent: 'center'
|
|
127
|
+
backgroundColor: item.status != 1 ? LibStyle.colorBgGrey : selectedTicket?.selected_ticket?.id == item.id ? LibStyle.colorGreen : "#fff", padding: 10, /* alignContent: 'center', alignItems: 'center', justifyContent: 'center' */
|
|
126
128
|
}}>
|
|
127
|
-
{
|
|
129
|
+
{
|
|
130
|
+
item?.status != 1 &&
|
|
131
|
+
<View style={applyStyle({ flexDirection: 'row' })}>
|
|
132
|
+
<View style={applyStyle({ alignContent: 'center', alignItems: 'center', justifyContent: 'center', borderWidth: 1, backgroundColor: (item.status == 0 || item?.status == 3) ? LibStyle.colorRed : "#4cd964", borderColor: (item.status == 0 || item?.status == 3) ? LibStyle.colorRed : "#4cd964", borderRadius: 5, padding: 3, opacity: 0.8 })}>
|
|
133
|
+
<Text allowFontScaling={false} style={applyStyle({ fontSize: 10, fontStyle: "normal", letterSpacing: 0, color: "#fff", fontWeight: 'bold' })}>{item?.status_text}</Text>
|
|
134
|
+
</View>
|
|
135
|
+
</View>
|
|
136
|
+
}
|
|
128
137
|
<EventHtmltext allowFontScaling={false} style={{ marginHorizontal: 5, fontSize: 16, color: item.status != 1 ? "#c9c9c9" : selectedTicket?.selected_ticket?.id == item.id ? "#fff" : "#000", textAlign: 'center', fontWeight: 'bold' }} numberOfLines={2} ellipsizeMode={'tail'}>{item?.price_name_to}</EventHtmltext>
|
|
129
|
-
<Text allowFontScaling={false} style={{ fontSize: 14, fontWeight: 'bold', marginTop: 5, color: item.status != 1 ? "#c9c9c9" : selectedTicket?.selected_ticket?.id == item.id ? "#fff" : "#000" }}>{"+ " + LibUtils.money(Number(dataTicket?.qty_upgrade) * Number(item?.amount), item?.currency)}</Text>
|
|
138
|
+
<Text allowFontScaling={false} style={{ textAlign: 'center', fontSize: 14, fontWeight: 'bold', marginTop: 5, color: item.status != 1 ? "#c9c9c9" : selectedTicket?.selected_ticket?.id == item.id ? "#fff" : "#000" }}>{"+ " + LibUtils.money(Number(dataTicket?.qty_upgrade) * Number(item?.amount), item?.currency)}</Text>
|
|
130
139
|
|
|
131
140
|
{
|
|
132
141
|
item.info &&
|
|
133
|
-
<Text allowFontScaling={false} style={{ marginTop: 10, fontSize: 12, color: selectedTicket?.selected_ticket?.id == item.id ? "#fff" : "#c9c9c9" }}>{item.info}</Text>
|
|
142
|
+
<Text allowFontScaling={false} style={{ textAlign: 'center', marginTop: 10, fontSize: 12, color: selectedTicket?.selected_ticket?.id == item.id ? "#fff" : "#c9c9c9" }}>{item.info}</Text>
|
|
134
143
|
}
|
|
135
144
|
|
|
136
145
|
</Pressable>
|
|
@@ -119,6 +119,7 @@ export default function m(props: EventOrder_detail_visitorProps): any {
|
|
|
119
119
|
<View style={{ margin: 15, borderRadius: 10, backgroundColor: '#fff', padding: 10 }}>
|
|
120
120
|
{
|
|
121
121
|
result?.tickets?.map((item: any, i: number) => {
|
|
122
|
+
const [front, end] = item?.seat_name?.split("#") || ["", ""];
|
|
122
123
|
return (
|
|
123
124
|
<View key={i} style={{ marginLeft: 14, marginBottom: 15, flexDirection: 'row', alignContent: 'center', alignItems: 'center', justifyContent: 'space-between' }}>
|
|
124
125
|
<View style={{ flex: 1, flexDirection: 'row', alignContent: 'center', alignItems: 'center' }}>
|
|
@@ -151,10 +152,15 @@ export default function m(props: EventOrder_detail_visitorProps): any {
|
|
|
151
152
|
</View>
|
|
152
153
|
<View style={{ alignContent: 'center', alignItems: 'center' }}>
|
|
153
154
|
{
|
|
154
|
-
item.hasOwnProperty('seat_name') && item?.seat_name != "" &&
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
item.hasOwnProperty('seat_name') && item?.seat_name != "" && item?.seat_name?.includes('#') ?
|
|
156
|
+
<View key={i} style={{ flexDirection: 'row', alignItems: 'center', paddingVertical: 5, marginBottom: 7, paddingHorizontal: 5, backgroundColor: '#fff', borderRadius: 5, marginRight: 7, ...LibStyle.elevation(5), }}>
|
|
157
|
+
<Text allowFontScaling={false} style={{ fontWeight: 'bold', fontSize: 16, color: "#000" }}> {front} </Text>
|
|
158
|
+
<Text allowFontScaling={false} style={{ marginLeft: 3, fontWeight: 'bold', fontSize: 16, color: '#000', }}> {end} </Text>
|
|
159
|
+
</View>
|
|
160
|
+
:
|
|
161
|
+
<View key={i} style={{ flexDirection: 'row', alignItems: 'center', paddingVertical: 5, marginBottom: 7, paddingHorizontal: 5, backgroundColor: '#fff', borderRadius: 5, marginRight: 7, ...LibStyle.elevation(5), }}>
|
|
162
|
+
<Text allowFontScaling={false} style={{ fontWeight: 'bold', fontSize: 20, color: "#000" }}>{item?.seat_name}</Text>
|
|
163
|
+
</View>
|
|
158
164
|
}
|
|
159
165
|
</View>
|
|
160
166
|
</View>
|