صفحه اول
نمای مینی اپ به صورت زیر است
کد
<page id="page-1" width="match_parent" height="match_parent" title="تصدیق اصالت سند ازدواج">
<include layout="pages/page1.js.appsan"/>
<frame layout="linear_horizontal" width="wrap_content" height="wrap_content"
borderCornerRadius="0.7" background="#D5E3FF" margin="15" padding="10" weightsum="1">
<text textcolor="#0164BC" textsize="14" weight="1"
text="اسناد ثبت شده از سال ۱۳۹۲ به بعد در سامانه میباشد."/>
<img src="images/Icon.png" width="20" height="20" scaleType="fit_center"/>
</frame>
<frame layout="linear_vertical" width="match_parent" height="match_parent" margin="10">
<text textsize="16" textcolor="#424750" text="تصدیق اصالت سند ازدواج و طلاق"/>
<img src="images/Group.png" width="52.99" height="56.8" scaleType="fit_center" margin="20"/>
<frame layout="linear_vertical" margin="0" weight="1"
margin_top="16" margin_bottom="32">
<!-- شناسه سند-->
<material-textinput id="doc_text_id" margin_left="10" margin_right="10"
rtl="true" expandHint="true" borderCornerRadius="4"
erroricon="images/error_icon.png" hint="شناسه سند" margin="0">
<textinput hintsize="11" hintcolor="#424750" textsize="11" textcolor="black"
id="text-1" padding_top="16"
padding_bottom="16" padding_right="12"
padding_left="12" inputtype="number" text=""
onChange="script/changeScript:chagneBackground()"/>
</material-textinput>
<!--رمز تصدسق-->
<material-textinput margin_left="10" margin_right="10" expandHint="true" rtl="true"
endiconmode="password_toggle" showendicon="true"
hint="رمز تصدیق" borderCornerRadius="4"
hideArrow="true" margin_top="16" margin="0" >
<textinput hintsize="11" hintcolor="#424750" textsize="11" textcolor="black" id="text-2"
padding_top="16" padding_bottom="16" padding_right="12" borderCornerRadius="4"
padding_left="12" inputtype="number_password" text=""
onChange="script/changeScript:chagneBackground()"/>
</material-textinput>
</frame>
</frame>
<frame id="bFrame" margin="15" width="match_parent" height="match_parent" margin_top="110">
<button id="searchButton" text="بررسی" textsize="14" textcolor="#FFFFFF"
textalignment="center" borderCornerRadius="2" enabled="false"
background="#D5E3FF" elevation="0" onclick="dialog/dialog"/>
</frame>
</page>
<script id='changeScript'>
function chagneBackground(){
let shenaseSanad = Appsan.findElementById('text-1').value;
let ramzTasdigh = Appsan.findElementById('text-2').value;
if (shenaseSanad.length > 0 && ramzTasdigh.length > 0){
Appsan.setProperty("searchButton" , "background" , "#0164BC");
Appsan.setProperty("searchButton" , "enabled" , "true");
Appsan.setProperty("lock" , "visibility" , "gone");
Appsan.setProperty("unlock" , "visibility" , "visible");
}
else {
Appsan.setProperty("searchButton" , "enabled" , "false");
Appsan.setProperty("searchButton" , "background" , "#D5E3FF");
Appsan.setProperty("lock" , "visibility" , "visible");
Appsan.setProperty("unlock" , "visibility" , "gone");
}
}
</script>
No Comments