Tab页切换刷新 » 历史记录 » 版本 1
yangdefeng, 2022-06-12 17:30
1 | 1 | yangdefeng | |
---|---|---|---|
2 | - |
||
3 | - |
||
4 | |||
5 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
6 | |||
7 | *使用前提1* |
||
8 | 请开启配置开关"isUseCustomOKPanel" |
||
9 | |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt | |
||
10 | |配置节点|[tjconfig] | |
||
11 | |配置项 |isUseCustomOkPanel=1 | |
||
12 | |||
13 | |||
14 | *使用前提2* |
||
15 | 请配置补丁资源"lc",即找到以下配置项,加入 %{color:deeppink}lc% |
||
16 | |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt | |
||
17 | |配置节点|[tjconfig] | |
||
18 | |配置项 |patch=aa,bb,lc | |
||
19 | |||
20 | - |
||
21 | - |
||
22 | |||
23 | bq. [<notextile>@</notextile>main] |
||
24 | #act |
||
25 | [[mov]] s$初始打开 1 |
||
26 | goto <notextile>@</notextile>外侧tab |
||
27 | goto <notextile>@</notextile>会员 |
||
28 | goto <notextile>@</notextile>界面显示 |
||
29 | |
||
30 | [<notextile>@</notextile>外侧tab] |
||
31 | #act |
||
32 | mov s$btnList ([[dlg_btnItem_|btnItem]]:ceye01:ceye02:1:254,150:1:-6,20:会员/<notextile>@</notextile>会员) |
||
33 | [[inc]] s$btnList (btnItem:ceye01:ceye02:2:254,150:1:-6,20:活动/<notextile>@</notextile>活动) |
||
34 | inc s$btnList (btnItem:ceye01:ceye02:2:254,150:1:-6,20:任务/<notextile>@</notextile>任务) |
||
35 | |
||
36 | [<notextile>@</notextile>界面显示] |
||
37 | #act |
||
38 | [[openMerchantBigDlg]] ok_di 4 0 0 1 0 0 |
||
39 | #say |
||
40 | <[[dlg_panelsize_|panelSize]]:600:650>\ |
||
41 | <[[dlg_btnList_|btnList]]:<$str(s$btnList)>:会员和活动按钮:572:75:1,600,0:30:<$str(s$tabId)>>\ |
||
42 | <[[dlg_itemList_|itemList]]:<$str(s$显示内容)>:显示内容:0:0:0,500,0:5>\ |
||
43 | |
||
44 | [<notextile>@</notextile>会员] |
||
45 | #if |
||
46 | #act |
||
47 | mov s$tabId 1 |
||
48 | |
||
49 | mov s$item ( |
||
50 | inc s$item <itemsize:550:600:1> |
||
51 | inc s$item <text:会员页面展示内容{scolor=222}:50:50> |
||
52 | inc s$item ) |
||
53 | |
||
54 | %{color:lightGrey};--初始打开界面,创建;否则,刷新--% |
||
55 | #if |
||
56 | [[equal]] s$初始打开 1 |
||
57 | #act |
||
58 | mov s$显示内容 <$str(s$item)> |
||
59 | mov s$初始打开 0 |
||
60 | goto <notextile>@</notextile>界面显示 |
||
61 | #elseAct |
||
62 | |
||
63 | [[refreshItem]] 显示内容 1 <$str(s$item)> 0 |
||
64 | |
||
65 | [<notextile>@</notextile>活动] |
||
66 | #act |
||
67 | mov s$tabId 2 |
||
68 | |
||
69 | mov s$item ( |
||
70 | inc s$item <itemsize:550:600:1> |
||
71 | inc s$item <text:活动页面展示内容{scolor=254}:50:50> |
||
72 | inc s$item ) |
||
73 | |
||
74 | refreshItem 显示内容 1 <$str(s$item)> 0 |
||
75 | |
||
76 | [<notextile>@</notextile>任务] |
||
77 | #act |
||
78 | mov s$tabId 3 |
||
79 | |
||
80 | mov s$item ( |
||
81 | inc s$item <itemsize:550:600:1> |
||
82 | inc s$item <text:任务页面展示内容{scolor=70}:50:50> |
||
83 | inc s$item ) |
||
84 | |
||
85 | refreshItem 显示内容 1 <$str(s$item)> 0 |