| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <html>
- <head>
- <meta charset="utf-8" />
- <title>选择子女</title>
- <style>
- </style>
- </head>
- <body>
- <div>
- <input id="checkRyid" type="hidden" value="${chkRyid}"/> <%-- ="$@{current_znryid}"。Lin --%>
- <rpt.ss name="znList" id="item">
- <%-- 改,onclick= 改为只是打勾 -- 切换子女功能移到 绑定 按钮。Lin
- <div class="list-background list list-normal" style="min-height: 41px;line-height: 41px;width: calc(100% - 4px);box-sizing: border-box;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" onclick="cutover(this,'${item.ryid}')" ryid="${item.ryid}"> --%>
- <div class="list-background list list-normal" onclick="chk(this,'${item.ryid}')" ryid="${item.ryid}" style="min-height: 41px;line-height: 41px;width: calc(100% - 4px);box-sizing: border-box;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
- <span flag="child" class="icon-unchecked" style="display: inline-block; width: 28px; height: 40px; float: left;"></span>
- <span class="icon-doc"></span>
- <div flag="child">
- ${item.xm}
- <equal.ss val="${item.ryid == bindRyid}" val2="true"> <%-- 不能写 val="${item.ryid}" val2="${bindRyid}"。val 为 BigDecimal,来自 gdba.doSelMapListByC(,val2 为 Long。Lin --%>
- (当前绑定的子女)
- </equal.ss>
- </div>
- </div>
- </rpt.ss>
- </div>
- <div>
- <br>
- 绑定子女的账号后,系统的菜单和个人信息部件是子女的,但待办部件仍为您的。<br><br>
- 绑定后,您可以再进入此界面进行解除绑定操作。
- </div>
- <div class="bottom-div">
- <div class="bottom-down-div border-top">
- <input type="button" id="bind" value="绑定" class="bottom-button" style="letter-spacing: 6px;"
- onclick='window.top.location.href="/service?ssServ=bindChildAcct&znryid="+ $("#checkRyid").val();'/>
- <input type="button" id="unbind" value="解除绑定" class="bottom-button" style="letter-spacing: 6px;"
- onclick='window.top.location.href="/service?ssServ=unbindChildAcct"'/>
- <input type="button" value="关闭" class="bottom-button" onclick="wd.display.closeDialog()" style="letter-spacing: 6px;"/>
- </div>
- </div>
- <script>
- var checkClass = "icon-checked";
- var uncheckClass = "icon-unchecked";
- $(function(){
- var checkRyid = $("#checkRyid").val();
- $("div[ryid='" + checkRyid + "']").find("span:eq(0)").removeClass(uncheckClass).addClass(checkClass);
- /// 增加,刷新 绑定、解除绑定 按钮。Lin
- var ryid = $("div[ryid='" + checkRyid + "']").attr("ryid");
- if (ryid == '${bindRyid}') {
- $("#bind").hide();
- $("#unbind").show();
- } else {
- $("#bind").show();
- $("#unbind").hide();
- }
- ///
- })
- /* 改,分开 chk( 和 bind( 功能。Lin
- * 刷新 绑定、解除绑定 按钮
- * 改用 window.top.location.href="/service?ssServ=bindChildAcct" -- 切换子女时,刷新到最顶层窗口
- function cutover(obj, ryid) {
- var target = obj;
- var isChild = $(target).attr("falg");
- if (isChild) {
- target = target.parentElement;
- }
- var checkRyid = $("#checkRyid").val();
- //保存当前选中人员
- var ryid = $(target).attr("ryid");
- if (checkRyid == ryid) {
- return;
- }
- var spanList = $("span[falg]");
- spanList.removeClass(checkClass).addClass(uncheckClass);
- $(target).find("span:eq(0)").removeClass(uncheckClass).addClass(checkClass);
- $.ajax({
- type: "post",
- url: "@service{name:'p_znqh_qh'}@",
- data: {
- znryid: ryid,
- targetDevice: "WdApp"
- },
- dataType: "json",
- success: function(res) {
- wd.display.alert(res.msg)
- $("#checkRyid").val(ryid);
- }
- });
- }
- */
- function chk(obj, ryid) {
- var target = obj;
- var isChild = $(target).attr("flag");
- if (isChild) {
- target = target.parentElement;
- }
- var checkRyid = $("#checkRyid").val();
- //保存当前选中人员
- var ryid = $(target).attr("ryid");
- document.getElementById('checkRyid').value = ryid; // 增加,原没保存。$("#checkRyid").val/value = 赋值不了。Lin
- // 刷新 打勾。Lin
- var spanList = $("span[flag]");
- spanList.removeClass(checkClass).addClass(uncheckClass);
- $(target).find("span:eq(0)").removeClass(uncheckClass).addClass(checkClass);
- // 刷新 绑定、解除绑定 按钮。Lin
- if (ryid == '${bindRyid}') {
- $("#bind").hide();
- $("#unbind").show();
- } else {
- $("#bind").show();
- $("#unbind").hide();
- }
- }
- </script>
- </body>
- </html>
|