esoftplay-event 0.0.2-s → 0.0.2-u
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/htmltext.tsx +40 -28
- package/event/message.tsx +2 -2
- package/event/order_detail.tsx +45 -555
- package/event/order_detail_addons.tsx +60 -0
- package/event/order_detail_addons_booked.tsx +61 -0
- package/event/order_detail_coupon.tsx +66 -0
- package/event/order_detail_instruction.tsx +96 -0
- package/event/order_detail_payment.tsx +1 -1
- package/event/order_detail_reschedule.tsx +109 -0
- package/event/order_detail_return.tsx +1 -1
- package/event/order_detail_review.tsx +174 -0
- package/event/order_detail_share.tsx +9 -6
- package/event/order_detail_tnc.tsx +76 -0
- package/event/review_add.tsx +2 -2
- package/event/seat.tsx +130 -378
- package/event/seat_map.tsx +8 -8
- package/event/seat_map_new.tsx +191 -24
- package/event/test.tsx +8 -8
- package/id.json +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// withHooks
|
|
2
|
+
import { EventMessage } from 'esoftplay/cache/event/message/import';
|
|
3
|
+
import { EventStep } from 'esoftplay/cache/event/step/import';
|
|
4
|
+
import { LibCollaps } from 'esoftplay/cache/lib/collaps/import';
|
|
5
|
+
import { LibCurl_view } from 'esoftplay/cache/lib/curl_view/import';
|
|
6
|
+
import { LibIcon } from 'esoftplay/cache/lib/icon/import';
|
|
7
|
+
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
8
|
+
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { Text, View } from 'react-native';
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
export interface EventOrder_detail_tncArgs {
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
export interface EventOrder_detail_tncProps {
|
|
17
|
+
dataTicket: any
|
|
18
|
+
}
|
|
19
|
+
export default function m(props: EventOrder_detail_tncProps): any {
|
|
20
|
+
let result = props?.dataTicket
|
|
21
|
+
|
|
22
|
+
function renderTermItem(item: any, i: number) {
|
|
23
|
+
return (
|
|
24
|
+
<View key={i} style={{ marginTop: 10 }}>
|
|
25
|
+
<EventStep text={item} />
|
|
26
|
+
</View>
|
|
27
|
+
)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<View style={{ backgroundColor: '#fff', marginTop: 1, borderRadius: 7, overflow: 'hidden', marginHorizontal: 15, marginBottom: 0 }}>
|
|
32
|
+
<LibCurl_view
|
|
33
|
+
url={result?.url_term}
|
|
34
|
+
onSuccess={(res, msg): any => {
|
|
35
|
+
if (Array.isArray(res)) {
|
|
36
|
+
return (
|
|
37
|
+
<View>
|
|
38
|
+
{res?.map(renderTermItem)}
|
|
39
|
+
</View>
|
|
40
|
+
)
|
|
41
|
+
} else {
|
|
42
|
+
return (
|
|
43
|
+
<View>
|
|
44
|
+
{
|
|
45
|
+
Object.entries(res).map(([title, items]: any) => {
|
|
46
|
+
return (
|
|
47
|
+
<View key={title}>
|
|
48
|
+
<LibCollaps header={(show) =>
|
|
49
|
+
<View style={{ padding: 15, paddingRight: 25, paddingLeft: 20, paddingBottom: 10, borderBottomWidth: 1, borderColor: LibStyle.colorBgGrey, alignContent: 'center', alignItems: 'center', borderRadius: 7, backgroundColor: '#f9f9f9', flexDirection: 'row' }}>
|
|
50
|
+
<View style={{ flex: 1 }}>
|
|
51
|
+
<Text allowFontScaling={false} style={{ fontFamily: "Arial", fontSize: 12, fontWeight: "bold", fontStyle: "normal", letterSpacing: 1.5, color: "#495057" }}>{title}</Text>
|
|
52
|
+
</View>
|
|
53
|
+
<LibIcon name={!show ? "chevron-down" : "chevron-up"} color='#495057' />
|
|
54
|
+
</View>
|
|
55
|
+
}>
|
|
56
|
+
{items.map(renderTermItem)}
|
|
57
|
+
</LibCollaps>
|
|
58
|
+
</View>
|
|
59
|
+
)
|
|
60
|
+
})
|
|
61
|
+
}
|
|
62
|
+
</View>
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
}}
|
|
66
|
+
onError={(err) => {
|
|
67
|
+
return (
|
|
68
|
+
<EventMessage
|
|
69
|
+
message={err?.message}
|
|
70
|
+
/>
|
|
71
|
+
)
|
|
72
|
+
}}
|
|
73
|
+
/>
|
|
74
|
+
</View>
|
|
75
|
+
)
|
|
76
|
+
}
|
package/event/review_add.tsx
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { EventButton } from 'esoftplay/cache/event/button/import';
|
|
4
4
|
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
5
|
+
import { EventOrder_detailProperty } from 'esoftplay/cache/event/order_detail/import';
|
|
5
6
|
import { EventRating } from 'esoftplay/cache/event/rating/import';
|
|
6
7
|
import { LibCurl } from 'esoftplay/cache/lib/curl/import';
|
|
7
8
|
import { LibDialog } from 'esoftplay/cache/lib/dialog/import';
|
|
@@ -12,7 +13,6 @@ import { LibNet_status } from 'esoftplay/cache/lib/net_status/import';
|
|
|
12
13
|
import { LibObject } from 'esoftplay/cache/lib/object/import';
|
|
13
14
|
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle/import';
|
|
14
15
|
import { LibToastProperty } from 'esoftplay/cache/lib/toast/import';
|
|
15
|
-
import { EventOrder_detailProperty } from 'esoftplay/cache/event/order_detail/import';
|
|
16
16
|
import esp from 'esoftplay/esp';
|
|
17
17
|
import useGlobalState, { useGlobalReturn } from 'esoftplay/global';
|
|
18
18
|
import useLazyState from 'esoftplay/lazy';
|
|
@@ -326,7 +326,7 @@ export default function m(props: EventReview_addProps): any {
|
|
|
326
326
|
defaultValue={inputReview}
|
|
327
327
|
base
|
|
328
328
|
multiline={true}
|
|
329
|
-
style={{ height: 100, borderColor: 'gray', borderWidth: 1, borderRadius: 8, padding: 10, textAlignVertical: 'top' }}
|
|
329
|
+
style={{ color: '#000', height: 100, borderColor: 'gray', borderWidth: 1, borderRadius: 8, padding: 10, textAlignVertical: 'top' }}
|
|
330
330
|
onChangeText={(t) => { inputReview = t }}
|
|
331
331
|
/>
|
|
332
332
|
</ScrollView>
|