项目

一般

简介

Tab页切换刷新 » 历史记录 » 修订 2

修订 1 (yangdefeng, 2022-06-12 17:30) → 修订 2/3 (yangdefeng, 2022-06-12 17:32)

h4. %{color:firebrick}Tab页切换刷新% 

 *模块说明*  
 点击tab按钮,切换显示内容。通过刷新的方法实现此效果。 

 - 
 - 

 *%{color:deepskyblue}特戒引擎脚本示例:%* 

 *使用前提1* 
 请开启配置开关"isUseCustomOKPanel" 
 |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt 	 | 
 |配置节点|[tjconfig] 					 | 
 |配置项    |isUseCustomOkPanel=1 				 | 


 *使用前提2* 
 请配置补丁资源"lc",即找到以下配置项,加入 %{color:deeppink}lc% 
 |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt 	 | 
 |配置节点|[tjconfig] 					 | 
 |配置项    |patch=aa,bb,lc 				 | 

 - 
 - 

 bq. [<notextile>@</notextile>main] 
 #act 
 [[mov]] s$初始打开 1 
 goto <notextile>@</notextile>外侧tab 
 goto <notextile>@</notextile>会员 
 goto <notextile>@</notextile>界面显示 
 &nbsp; 
 [<notextile>@</notextile>外侧tab] 
 #act 
 mov s$btnList ([[dlg_btnItem_|btnItem]]:ceye01:ceye02:1:254,150:1:-6,20:会员/<notextile>@</notextile>会员) 
 [[inc]] s$btnList (btnItem:ceye01:ceye02:2:254,150:1:-6,20:活动/<notextile>@</notextile>活动) 
 inc s$btnList (btnItem:ceye01:ceye02:2:254,150:1:-6,20:任务/<notextile>@</notextile>任务) 
 &nbsp; 
 [<notextile>@</notextile>界面显示] 
 #act 
 [[openMerchantBigDlg]] ok_di 4 0 0 1 0 0 
 #say 
 <[[dlg_panelsize_|panelSize]]:600:650>\ 
 <[[dlg_btnList_|btnList]]:<$str(s$btnList)>:会员和活动按钮:572:75:1,600,0:30:<$str(s$tabId)>>\ 
 <[[dlg_itemList_|itemList]]:<$str(s$显示内容)>:显示内容:0:0:0,500,0:5>\ 
 &nbsp; 
 [<notextile>@</notextile>会员] 
 #if 
 #act 
 mov s$tabId 1 
 &nbsp; 
 mov s$item ( 
 inc s$item <itemsize:550:600:1> 
 inc s$item <text:会员页面展示内容{scolor=222}:50:50> 
 inc s$item ) 
 &nbsp; 
 %{color:lightGrey};--初始打开界面,创建;否则,刷新--% 
 #if 
 [[equal]] s$初始打开 1 
 #act 
 mov s$显示内容 <$str(s$item)> 
 mov s$初始打开 0 
 goto <notextile>@</notextile>界面显示 
 #elseAct 
 &nbsp; 
 [[refreshItem]] 显示内容 1 <$str(s$item)> 0 
 &nbsp; 
 [<notextile>@</notextile>活动] 
 #act 
 mov s$tabId 2 
 &nbsp; 
 mov s$item ( 
 inc s$item <itemsize:550:600:1> 
 inc s$item <text:活动页面展示内容{scolor=254}:50:50> 
 inc s$item ) 
 &nbsp; 
 refreshItem 显示内容 1 <$str(s$item)> 0 
 &nbsp; 
 [<notextile>@</notextile>任务] 
 #act 
 mov s$tabId 3 
 &nbsp; 
 mov s$item ( 
 inc s$item <itemsize:550:600:1> 
 inc s$item <text:任务页面展示内容{scolor=70}:50:50> 
 inc s$item ) 
 &nbsp; 
 refreshItem 显示内容 1 <$str(s$item)> 0