项目

一般

简介

Tab页切换刷新 » 历史记录 » 版本 3

tejie, 2024-05-28 13:24

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