add Img Coupon

This commit is contained in:
miggaze 2021-03-01 13:56:44 +07:00
parent 16c16fa6ed
commit 0a6cc72644
10 changed files with 107 additions and 30 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View file

@ -371,9 +371,29 @@
Var CouponExireA_D = "" Var CouponExireA_D = ""
Var CouponExireA_M = "" Var CouponExireA_M = ""
Var CouponExireA_Y = "" Var CouponExireA_Y = ""
Var CouponTypeA = ""
Var CouponNameA = ""
SPLIT CouponInfoA "/" 2 CouponTypeA
SPLIT CouponInfoA "/" 4 CouponExireA_D SPLIT CouponInfoA "/" 4 CouponExireA_D
SPLIT CouponInfoA "/" 5 CouponExireA_M SPLIT CouponInfoA "/" 5 CouponExireA_M
SPLIT CouponInfoA "/" 6 CouponExireA_Y SPLIT CouponInfoA "/" 6 CouponExireA_Y
If CouponTypeA = "100" Then
Var CouponNameA = "/imgCouponC33.png"
EndIf
If CouponTypeA = "101" Then
Var CouponNameA = "/imgCouponC44.png"
EndIf
If CouponTypeA = "102" Then
Var CouponNameA = "/imgCouponC39.png"
EndIf
If CouponTypeA = "103" Then
Var CouponNameA = "/imgCouponC40.png"
EndIf
INT CouponExireA_D INT CouponExireA_D
INT CouponExireA_Y INT CouponExireA_Y
Var CouponExireA_Y = CouponExireA_Y + 0 Var CouponExireA_Y = CouponExireA_Y + 0
@ -443,9 +463,28 @@
Var CouponExireB_D = "" Var CouponExireB_D = ""
Var CouponExireB_M = "" Var CouponExireB_M = ""
Var CouponExireB_Y = "" Var CouponExireB_Y = ""
Var CouponTypeB = ""
Var CouponNameB = ""
SPLIT CouponInfoB "/" 2 CouponTypeB
SPLIT CouponInfoB "/" 4 CouponExireB_D SPLIT CouponInfoB "/" 4 CouponExireB_D
SPLIT CouponInfoB "/" 5 CouponExireB_M SPLIT CouponInfoB "/" 5 CouponExireB_M
SPLIT CouponInfoB "/" 6 CouponExireB_Y SPLIT CouponInfoB "/" 6 CouponExireB_Y
If CouponTypeB = "100" Then
Var CouponNameB = "/imgCouponC33.png"
EndIf
If CouponTypeB = "101" Then
Var CouponNameB = "/imgCouponC44.png"
EndIf
If CouponTypeB = "102" Then
Var CouponNameB = "/imgCouponC39.png"
EndIf
If CouponTypeB = "103" Then
Var CouponNameB = "/imgCouponC40.png"
EndIf
INT CouponExireB_D INT CouponExireB_D
INT CouponExireB_Y INT CouponExireB_Y
Var CouponExireB_Y = CouponExireB_Y + 0 Var CouponExireB_Y = CouponExireB_Y + 0
@ -522,9 +561,27 @@
Var CouponExireA_D = "" Var CouponExireA_D = ""
Var CouponExireA_M = "" Var CouponExireA_M = ""
Var CouponExireA_Y = "" Var CouponExireA_Y = ""
Var CouponTypeA = ""
Var CouponNameA = ""
SPLIT CouponInfoA "/" 2 CouponTypeA
SPLIT CouponInfoA "/" 4 CouponExireA_D SPLIT CouponInfoA "/" 4 CouponExireA_D
SPLIT CouponInfoA "/" 5 CouponExireA_M SPLIT CouponInfoA "/" 5 CouponExireA_M
SPLIT CouponInfoA "/" 6 CouponExireA_Y SPLIT CouponInfoA "/" 6 CouponExireA_Y
If CouponTypeA = "100" Then
Var CouponNameA = "/imgCouponC33.png"
EndIf
If CouponTypeA = "101" Then
Var CouponNameA = "/imgCouponC44.png"
EndIf
If CouponTypeA = "102" Then
Var CouponNameA = "/imgCouponC39.png"
EndIf
If CouponTypeA = "103" Then
Var CouponNameA = "/imgCouponC40.png"
EndIf
INT CouponExireA_D INT CouponExireA_D
INT CouponExireA_Y INT CouponExireA_Y
Var CouponExireA_Y = CouponExireA_Y + 543 Var CouponExireA_Y = CouponExireA_Y + 543
@ -594,9 +651,27 @@
Var CouponExireB_D = "" Var CouponExireB_D = ""
Var CouponExireB_M = "" Var CouponExireB_M = ""
Var CouponExireB_Y = "" Var CouponExireB_Y = ""
Var CouponTypeB = ""
Var CouponNameB = ""
SPLIT CouponInfoB "/" 2 CouponTypeB
SPLIT CouponInfoB "/" 4 CouponExireB_D SPLIT CouponInfoB "/" 4 CouponExireB_D
SPLIT CouponInfoB "/" 5 CouponExireB_M SPLIT CouponInfoB "/" 5 CouponExireB_M
SPLIT CouponInfoB "/" 6 CouponExireB_Y SPLIT CouponInfoB "/" 6 CouponExireB_Y
If CouponTypeB = "100" Then
Var CouponNameB = "/imgCouponC33.png"
EndIf
If CouponTypeB = "101" Then
Var CouponNameB = "/imgCouponC44.png"
EndIf
If CouponTypeB = "102" Then
Var CouponNameB = "/imgCouponC39.png"
EndIf
If CouponTypeB = "103" Then
Var CouponNameB = "/imgCouponC40.png"
EndIf
INT CouponExireB_D INT CouponExireB_D
INT CouponExireB_Y INT CouponExireB_Y
Var CouponExireB_Y = CouponExireB_Y + 543 Var CouponExireB_Y = CouponExireB_Y + 543
@ -873,56 +948,58 @@
<X> 243 </X> <X> 243 </X>
<Y> 1131 </Y> <Y> 1131 </Y>
<State> CouponSTA </State> <State> CouponSTA </State>
<Filename> Var( DirImage + "/imgCouponFree.png" )</Filename> <Filename> Var( DirImage + CouponNameA )</Filename>
<FilenamePress> Var( DirImage + "/imgCouponFree.png" )</FilenamePress> <FilenamePress> Var( DirImage + CouponNameA )</FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound> <Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume> <Volume> SoundVolume </Volume>
<EventClick> <EventClick>
; goto lid straw ; goto lid straw
Var CouponSendSms = CouponIDA Var CouponSendSms = CouponIDA
Var CouponExpireDate = CouponExpireA Var CouponExpireDate = "Expires " + CouponExpireA
Var CouponName = CouponNameA
Open "ROOT/taobin_project/xml/page_check_member3.xml" Open "ROOT/taobin_project/xml/page_check_member3.xml"
</EventClick> </EventClick>
</Button> </Button>
<Text> ;<Text>
<X> 480 </X> ;<X> 480 </X>
<Y> 1287 </Y> ;<Y> 1287 </Y>
<Size> 15 </Size> ;<Size> 15 </Size>
<Width> 120 </Width> ;<Width> 120 </Width>
<Font> KanitRegularTTF </Font> ;<Font> KanitRegularTTF </Font>
<Color> 0x746253 </Color> ;<Color> 0x746253 </Color>
<Value> CouponExpireA </Value> ;<Value> CouponTypeA </Value>
</Text> ;</Text>
<Button> <Button>
<X> 243 </X> <X> 243 </X>
<Y> 1355 </Y> <Y> 1355 </Y>
<State> CouponSTB </State> <State> CouponSTB </State>
<Filename> Var( DirImage + "/imgCouponFree.png" )</Filename> <Filename> Var( DirImage + CouponNameB )</Filename>
<FilenamePress> Var( DirImage + "/imgCouponFree.png" )</FilenamePress> <FilenamePress> Var( DirImage + CouponNameB )</FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound> <Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume> <Volume> SoundVolume </Volume>
<EventClick> <EventClick>
; goto lid straw ; goto lid straw
Var CouponSendSms = CouponIDB Var CouponSendSms = CouponIDB
Var CouponExpireDate = CouponExpireB Var CouponExpireDate = "Expires " + CouponExpireB
Var CouponName = CouponNameB
Open "ROOT/taobin_project/xml/page_check_member3.xml" Open "ROOT/taobin_project/xml/page_check_member3.xml"
</EventClick> </EventClick>
</Button> </Button>
<Text> ;<Text>
<X> 480 </X> ;<X> 480 </X>
<Y> 1511 </Y> ;<Y> 1511 </Y>
<Size> 15 </Size> ;<Size> 15 </Size>
<Width> 120 </Width> ;<Width> 120 </Width>
<Font> KanitRegularTTF </Font> ;<Font> KanitRegularTTF </Font>
<Color> 0x746253 </Color> ;<Color> 0x746253 </Color>
<Value> CouponExpireB </Value> ;<Value> CouponExpireB </Value>
</Text> ;</Text>
<Button> <Button>

View file

@ -144,7 +144,7 @@
<Button> <Button>
<X> 440 </X> <X> 398 </X>
<Y> 1597 </Y> <Y> 1597 </Y>
<Filename> Var( DirImage + "/bn_cancel2.png" )</Filename> <Filename> Var( DirImage + "/bn_cancel2.png" )</Filename>
<FilenamePress> Var( DirImage + "/bp_cancel2.png" )</FilenamePress> <FilenamePress> Var( DirImage + "/bp_cancel2.png" )</FilenamePress>
@ -170,8 +170,8 @@
<Button> <Button>
<X> 243 </X> <X> 243 </X>
<Y> 661 </Y> <Y> 661 </Y>
<Filename> Var( DirImage + "/imgCouponFree.png" )</Filename> <Filename> Var( DirImage + CouponName )</Filename>
<FilenamePress> Var( DirImage + "/imgCouponFree.png" )</FilenamePress> <FilenamePress> Var( DirImage + CouponName )</FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound> <Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume> <Volume> SoundVolume </Volume>
<EventClick> <EventClick>
@ -181,10 +181,10 @@
<Text> <Text>
<X> 480 </X> <X> 415 </X>
<Y> 815 </Y> <Y> 815 </Y>
<Size> 15 </Size> <Size> 15 </Size>
<Width> 120 </Width> <Width> 300 </Width>
<Font> KanitRegularTTF </Font> <Font> KanitRegularTTF </Font>
<Color> 0x746253 </Color> <Color> 0x746253 </Color>
<Value> CouponExpireDate </Value> <Value> CouponExpireDate </Value>