esoftplay-event 0.0.1-x → 0.0.1-z
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/order_lottery.tsx +40 -34
- package/id.json +2 -2
- package/package.json +1 -1
package/event/order_lottery.tsx
CHANGED
|
@@ -97,45 +97,51 @@ export default function m(props: EventOrder_lotteryProps): any {
|
|
|
97
97
|
<View key={i} style={{ flexDirection: 'row', margin: 15 }}>
|
|
98
98
|
<Pressable onPress={() => { }} style={{ flex: 1, flexDirection: 'row', alignContent: 'center', alignItems: 'center', justifyContent: 'center', paddingLeft: 50, marginLeft: 35, borderRadius: 5, padding: 10, backgroundColor: '#fff' }}>
|
|
99
99
|
<View style={{ flex: 1, marginRight: 5, }}>
|
|
100
|
-
<
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
<View style={applyStyle({ padding: 1, borderRadius: 6, backgroundColor: "#ecf0f1", alignContent: 'center', alignItems: 'center' })}>
|
|
111
|
-
<LibIcon name="minus" color="#e74c3c" />
|
|
112
|
-
</View>
|
|
113
|
-
</TouchableOpacity>
|
|
114
|
-
<Text style={applyStyle({ fontFamily: "Arial", fontSize: 20, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, color: "#9b9b9b", marginLeft: 13, marginRight: 13 })}>{item.qty}</Text>
|
|
115
|
-
<TouchableOpacity onPressIn={() => {
|
|
116
|
-
const currentTotalQty = getTotalQty();
|
|
117
|
-
if (currentTotalQty < result.coupon) {
|
|
118
|
-
let updatedQty = item.qty + 1;
|
|
119
|
-
if (currentTotalQty + 1 > result.coupon) {
|
|
120
|
-
updatedQty = item.qty + (result.coupon - currentTotalQty);
|
|
100
|
+
<View style={{ flexDirection: 'row' }}>
|
|
101
|
+
<View style={{ flex: 1.5, }}>
|
|
102
|
+
<Text allowFontScaling={false} numberOfLines={1} ellipsizeMode='tail' style={{ fontWeight: 'bold', fontSize: 16 }} >{item.title}</Text>
|
|
103
|
+
<EventHtmltext allowFontScaling={false} style={{ fontSize: 12, color: 'grey' }}>{item.description}</EventHtmltext>
|
|
104
|
+
</View>
|
|
105
|
+
<View style={applyStyle({ flex: 1, justifyContent: 'flex-end', flexDirection: 'row', alignContent: 'center', alignItems: 'center' })}>
|
|
106
|
+
<TouchableOpacity onPressIn={() => {
|
|
107
|
+
if (item.qty > 0) {
|
|
108
|
+
let updatedList = LibObject.set(result, item.qty - 1)('list', i, 'qty');
|
|
109
|
+
setResult(updatedList);
|
|
121
110
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
<
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
111
|
+
}} hitSlop={{ top: 15, left: 15, right: 15, bottom: 15 }} testID='minus_btn' onPress={() => { }}>
|
|
112
|
+
<View style={applyStyle({ padding: 1, borderRadius: 6, backgroundColor: "#ecf0f1", alignContent: 'center', alignItems: 'center' })}>
|
|
113
|
+
<LibIcon name="minus" color="#e74c3c" />
|
|
114
|
+
</View>
|
|
115
|
+
</TouchableOpacity>
|
|
116
|
+
<Text style={applyStyle({ fontFamily: "Arial", fontSize: 20, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, color: "#9b9b9b", marginLeft: 13, marginRight: 13 })}>{item.qty}</Text>
|
|
117
|
+
<TouchableOpacity onPressIn={() => {
|
|
118
|
+
const currentTotalQty = getTotalQty();
|
|
119
|
+
if (currentTotalQty < result.coupon) {
|
|
120
|
+
let updatedQty = item.qty + 1;
|
|
121
|
+
if (currentTotalQty + 1 > result.coupon) {
|
|
122
|
+
updatedQty = item.qty + (result.coupon - currentTotalQty);
|
|
123
|
+
}
|
|
124
|
+
let updatedList = LibObject.set(result, updatedQty)('list', i, 'qty');
|
|
125
|
+
setResult(updatedList);
|
|
126
|
+
} else {
|
|
127
|
+
LibToastProperty.show(esp.lang("event/order_lottery", "your_maks_token_is") + result?.coupon)
|
|
128
|
+
}
|
|
129
|
+
}} hitSlop={{ top: 15, left: 15, right: 15, bottom: 15 }} testID='plus_btn' onPress={() => { }}>
|
|
130
|
+
<View style={applyStyle({ padding: 1, borderRadius: 6, backgroundColor: "#ecf0f1", alignContent: 'center', alignItems: 'center' })}>
|
|
131
|
+
<LibIcon name="plus" color="#16a085" />
|
|
132
|
+
</View>
|
|
133
|
+
</TouchableOpacity>
|
|
134
|
+
</View>
|
|
132
135
|
</View>
|
|
133
136
|
|
|
137
|
+
|
|
134
138
|
</View>
|
|
135
139
|
</Pressable>
|
|
136
|
-
<
|
|
137
|
-
|
|
138
|
-
|
|
140
|
+
<TouchableOpacity onPress={() => {
|
|
141
|
+
LibNavigation.navigate('lib/gallery', { image: item.image })
|
|
142
|
+
}} style={{ position: 'absolute', top: 10, height: 70, width: 70, borderRadius: 35, alignContent: 'center', alignItems: 'center', justifyContent: 'center', backgroundColor: '#fff' }}>
|
|
143
|
+
<LibPicture style={{ height: 60, width: 60, borderRadius: 30, backgroundColor: '#000' }} resizeMode='cover' source={{ uri: item.image }} />
|
|
144
|
+
</TouchableOpacity>
|
|
139
145
|
</View>
|
|
140
146
|
)
|
|
141
147
|
}
|
package/id.json
CHANGED
|
@@ -930,8 +930,8 @@
|
|
|
930
930
|
"event/order_detail": {
|
|
931
931
|
"Checked_within_10_minutes_after_payment_is_made": "Dicek dalam 10 menit setelah pembayaran dilakukan",
|
|
932
932
|
"This_Event_Has_Changed_the_Event_Date_Please_Reschedule_or_Refund": "Event ini Mengalami Perubahan Tanggal Event, Silahkan Reschedule atau Melakukan Refund",
|
|
933
|
-
"already_follow": "Sudah
|
|
934
|
-
"already_join_lucky_draw": "Sudah
|
|
933
|
+
"already_follow": "Sudah memilih ",
|
|
934
|
+
"already_join_lucky_draw": "Sudah memilih lucky draw",
|
|
935
935
|
"back_err": "Oops",
|
|
936
936
|
"back_to_homepage": "Kembali ke Halaman Utama",
|
|
937
937
|
"birtdate": "Tanggal Lahir",
|