mirror of
https://github.com/QIDITECH/QIDIStudio.git
synced 2026-02-02 18:08:51 +03:00
update
This commit is contained in:
83
resources/web/guide/11/11.js
Normal file
83
resources/web/guide/11/11.js
Normal file
@@ -0,0 +1,83 @@
|
||||
var m_OldRegion='';
|
||||
var m_Region='';
|
||||
|
||||
function OnInit()
|
||||
{
|
||||
//let strInput=JSON.stringify(cData);
|
||||
//HandleStudio(strInput);
|
||||
|
||||
TranslatePage();
|
||||
|
||||
RequestProfile();
|
||||
}
|
||||
|
||||
|
||||
function RequestProfile()
|
||||
{
|
||||
var tSend={};
|
||||
tSend['sequence_id']=Math.round(new Date() / 1000);
|
||||
tSend['command']="request_userguide_profile";
|
||||
|
||||
SendWXMessage( JSON.stringify(tSend) );
|
||||
}
|
||||
|
||||
function HandleStudio( pVal )
|
||||
{
|
||||
let strCmd=pVal['command'];
|
||||
//alert(strCmd);
|
||||
|
||||
if(strCmd=='response_userguide_profile')
|
||||
{
|
||||
HandleRegionlList(pVal['response']);
|
||||
}
|
||||
}
|
||||
|
||||
function HandleRegionlList( pItem )
|
||||
{
|
||||
m_OldRegion=pItem['region'];
|
||||
|
||||
let nNum=$(".RegionItem[region='"+m_OldRegion+"']").length;
|
||||
if( nNum==1 )
|
||||
ChooseRegion(m_OldRegion);
|
||||
}
|
||||
|
||||
|
||||
function ChooseRegion( strRegion )
|
||||
{
|
||||
m_Region=strRegion;
|
||||
|
||||
$('.RegionItem').removeClass('RegionSelected');
|
||||
$(".RegionItem[region='"+strRegion+"']").addClass('RegionSelected');
|
||||
}
|
||||
ZY2
|
||||
/*function GotoPolicyPage()
|
||||
{
|
||||
let ItemSelected=$('.RegionSelected')[0];
|
||||
let RegionFinal=$(ItemSelected).attr("region");
|
||||
|
||||
var tSend={};
|
||||
tSend['sequence_id']=Math.round(new Date() / 1000);
|
||||
tSend['command']="save_region";
|
||||
tSend['region']=RegionFinal;
|
||||
|
||||
SendWXMessage( JSON.stringify(tSend) );
|
||||
|
||||
window.location.href="../3/index.html?region="+RegionFinal;
|
||||
}*/
|
||||
//ZY2
|
||||
function GotoNextPage()
|
||||
{
|
||||
let ItemSelected=$('.RegionSelected')[0];
|
||||
let RegionFinal=$(ItemSelected).attr("region");
|
||||
|
||||
var tSend={};
|
||||
tSend['sequence_id']=Math.round(new Date() / 1000);
|
||||
tSend['command']="save_region";
|
||||
tSend['region']=RegionFinal;
|
||||
|
||||
SendWXMessage( JSON.stringify(tSend) );
|
||||
|
||||
window.location.href="../21/index.html";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user