esoftplay-event 0.0.1-i → 0.0.1-j
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_detailv2.tsx +44 -0
- package/event/artistv2.tsx +69 -197
- package/event/button_order_detail.tsx +42 -0
- package/event/order_detail.tsx +23 -29
- package/package.json +1 -1
|
@@ -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
|
+
}
|
package/event/artistv2.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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';
|
|
7
|
-
import {
|
|
6
|
+
import { EventMessage } from 'esoftplay/cache/event/message/import';
|
|
8
7
|
import { LibCurl } from 'esoftplay/cache/lib/curl/import';
|
|
8
|
+
import { LibList } from 'esoftplay/cache/lib/list/import';
|
|
9
9
|
import { LibLoading } from 'esoftplay/cache/lib/loading/import';
|
|
10
10
|
import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
|
|
11
11
|
import { LibPicture } from 'esoftplay/cache/lib/picture/import';
|
|
@@ -16,8 +16,7 @@ import esp from 'esoftplay/esp';
|
|
|
16
16
|
import moment from 'esoftplay/moment';
|
|
17
17
|
import useSafeState from 'esoftplay/state';
|
|
18
18
|
import React, { useEffect } from 'react';
|
|
19
|
-
import {
|
|
20
|
-
import { ScrollView } from 'react-native-gesture-handler';
|
|
19
|
+
import { TouchableOpacity, View } from 'react-native';
|
|
21
20
|
|
|
22
21
|
|
|
23
22
|
moment().locale('id')
|
|
@@ -81,191 +80,64 @@ export default function m(props: EventArtistv2Props): any {
|
|
|
81
80
|
|
|
82
81
|
function renderIt(item: any, i: number) {
|
|
83
82
|
const styleId_Z2g4Hs7: any = { backgroundColor: '#FFC523', width: itemWidth, height: itemHeight, margin: 0.5, justifyContent: 'center', alignItems: 'center' }
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
})
|
|
83
|
+
|
|
84
|
+
const handlePress = () => {
|
|
85
|
+
EventIndexProperty.isLogin(async () => {
|
|
86
|
+
if (item.status == 1) {
|
|
87
|
+
if (isInPricingQueueConfig(item.event_id)) {
|
|
88
|
+
LibNavigation.navigateForResult('event/queue_pricing', {
|
|
89
|
+
event_id: item?.event_id,
|
|
90
|
+
autoPass: false,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
// EventCountdownProperty.countdownTime.set(moment().add(EventFirebase_socketProperty.eventQueueConfig.get(item?.event_id).time, 'seconds').localeFormat('YYYY-MM-DD HH:mm:ss'));
|
|
94
|
+
LibNavigation.navigate(
|
|
95
|
+
// item?.config?.multiprice == 1
|
|
96
|
+
// ? 'event/artist_detail_multi'
|
|
97
|
+
// :
|
|
98
|
+
'event/artist_detailv2',
|
|
99
|
+
{ url_price: item.url }
|
|
100
|
+
);
|
|
101
|
+
} else {
|
|
102
|
+
LibToastProperty.show(esp.lang("event/artist", "ticket_not_available"));
|
|
119
103
|
}
|
|
120
|
-
|
|
121
|
-
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
// if (item?.images?.length > 0) {
|
|
108
|
+
// return (
|
|
109
|
+
// <LibCarrousel
|
|
110
|
+
// key={i}
|
|
111
|
+
// delay={4000}
|
|
112
|
+
// style={{ height: sliderHeight, width: width }}
|
|
113
|
+
// autoplay
|
|
114
|
+
// >
|
|
115
|
+
// {
|
|
116
|
+
// item?.images?.map((item1: any, ii: number) => {
|
|
117
|
+
// return (
|
|
118
|
+
// <TouchableOpacity key={ii} onPress={handlePress} >
|
|
119
|
+
// <LibPicture key={ii} source={{ uri: item1 }} style={{ height: sliderHeight, width: width, resizeMode: 'cover', backgroundColor: "#f1f2f3" }} />
|
|
120
|
+
// </TouchableOpacity>
|
|
121
|
+
// )
|
|
122
|
+
// })
|
|
123
|
+
// }
|
|
124
|
+
// </LibCarrousel>
|
|
125
|
+
// )
|
|
126
|
+
// } else if (item?.images?.length == 1) {
|
|
122
127
|
return (
|
|
123
|
-
<TouchableOpacity onPress={
|
|
124
|
-
|
|
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
|
-
|
|
160
|
-
</View> */}
|
|
128
|
+
<TouchableOpacity key={i} onPress={handlePress} >
|
|
129
|
+
<LibPicture style={{ height: sliderHeight, width: width, resizeMode: 'cover', backgroundColor: "#f1f2f3" }} source={{ uri: item.images[0] }} />
|
|
161
130
|
</TouchableOpacity>
|
|
162
131
|
)
|
|
163
|
-
|
|
132
|
+
// } else {
|
|
133
|
+
// return (
|
|
134
|
+
// <TouchableOpacity key={i} onPress={handlePress} style={styleId_Z2g4Hs7}>
|
|
135
|
+
// <Text allowFontScaling={false} numberOfLines={2} style={styleId_2cYE4h}>{item.title}</Text>
|
|
136
|
+
// </TouchableOpacity>
|
|
137
|
+
// )
|
|
138
|
+
// }
|
|
164
139
|
}
|
|
165
140
|
|
|
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' }
|
|
168
|
-
|
|
169
|
-
if (item?.images?.length > 0) {
|
|
170
|
-
return (
|
|
171
|
-
<LibCarrousel
|
|
172
|
-
key={"p_slider"}
|
|
173
|
-
delay={4000}
|
|
174
|
-
style={{ height: sliderHeight, width: width }}
|
|
175
|
-
autoplay
|
|
176
|
-
>
|
|
177
|
-
{
|
|
178
|
-
item?.images?.map((item1: any, ii: number) => {
|
|
179
|
-
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
|
-
}} >
|
|
202
|
-
<LibPicture key={ii} source={{ uri: item1 }} style={{ height: sliderHeight, width: width, resizeMode: 'cover', backgroundColor: "#f1f2f3" }} />
|
|
203
|
-
</TouchableOpacity>
|
|
204
|
-
)
|
|
205
|
-
})
|
|
206
|
-
}
|
|
207
|
-
</LibCarrousel>
|
|
208
|
-
)
|
|
209
|
-
} else if (item?.images?.length == 1) {
|
|
210
|
-
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
|
-
}} >
|
|
233
|
-
<LibPicture style={{ height: sliderHeight, width: width, resizeMode: 'cover', backgroundColor: "#f1f2f3" }} source={{ uri: item.images[0] }} />
|
|
234
|
-
</TouchableOpacity>
|
|
235
|
-
)
|
|
236
|
-
} else {
|
|
237
|
-
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
|
-
|
|
262
|
-
</TouchableOpacity>
|
|
263
|
-
)
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
141
|
return (
|
|
270
142
|
<View style={{ flex: 1, backgroundColor: 'white' }} >
|
|
271
143
|
<EventHeader title={title ? title : resultEvent?.event_title} iconShare={resultEvent?.url_share_artist && resultEvent?.url_share_artist !== ""}
|
|
@@ -274,21 +146,21 @@ export default function m(props: EventArtistv2Props): any {
|
|
|
274
146
|
}} />
|
|
275
147
|
{
|
|
276
148
|
!result && !error ? <LibLoading /> :
|
|
277
|
-
<ScrollView>
|
|
278
|
-
|
|
279
|
-
|
|
149
|
+
// <ScrollView>
|
|
150
|
+
// {
|
|
151
|
+
// result?.map(renderIt)
|
|
152
|
+
// }
|
|
153
|
+
// </ScrollView>
|
|
154
|
+
<LibList
|
|
155
|
+
data={result}
|
|
156
|
+
// keyExtractor={(item) => item.id}
|
|
157
|
+
onRefresh={loadData}
|
|
158
|
+
staticHeight={itemHeight + 1}
|
|
159
|
+
renderItem={renderIt}
|
|
160
|
+
ListEmptyComponent={
|
|
161
|
+
<EventMessage message={error} />
|
|
280
162
|
}
|
|
281
|
-
|
|
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
|
-
// />
|
|
163
|
+
/>
|
|
292
164
|
}
|
|
293
165
|
</View>
|
|
294
166
|
)
|
|
@@ -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
|
+
}
|
package/event/order_detail.tsx
CHANGED
|
@@ -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
|
-
<
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
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
|
-
<
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
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
|
}
|