物联网平台 +Web 组态
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

133 lines
4.2 KiB

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="com.lp.cfg.ProConfig"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html>
<head>
<title><%=ProConfig.PROJECT_NAME %></title>
<%@ include file="/WEB-INF/wechat/iot/common/resource_lib.jsp"%>
<style type="text/css">
.body-container{
background: #fff ;
padding-top: 20px;
/* padding: 0px 5px 0 5px; */
}
.weui-cells{
margin-top: 0;
font-size: 15px;
}
.qrcode{
position: absolute;
width: 24px;
top: 10px;
right: 35px;
}
</style>
</head>
<body>
<div class="container">
<div class="t-c title-info">
<span id="titlename">增加子账户</span>
<div class="back" onclick="forward('/wiot/maccount')" style=" position: fixed;top: 0px;" >返回</div>
</div>
<div style="height: 50px;"></div>
<div class="body-container jui-form_submit" id="form_submit"
data-options=" url:'/user/info',
submit:'#saveBtn',
success:'sunccessReturn' ">
<div id="form_submit_update" config-option=" url:'/user/info', method :'put',
submit :'#saveBtn',
success:'sunccessReturn' " >
<div id="detail_get" config-option=" url:'/user/info?id=$#init-id$' ">
<input type="hidden" id="init-id" type-name="id">
<div class="weui-cells weui-cells_form">
<div class="weui-cell">
<div class="weui-cell__hd">
<label class="weui-label">用户名:</label>
</div>
<div class="weui-cell__bd">
<input class="weui-input" validate="empty" type-name="name" placeholder="请输入账户名,由6位以上字母组成">
</div>
</div>
<div class="weui-cell" style="position: relative;">
<div class="weui-cell__hd">
<label class="weui-label">密码:</label>
</div>
<div class="weui-cell__bd">
<input class="weui-input" type="password" validate="empty" type-name="password" placeholder="请输入6位以上密码">
</div>
</div>
<div class="weui-cell">
<div class="weui-cell__hd">
<label class="weui-label">手机号:</label>
</div>
<div class="weui-cell__bd">
<input class="weui-input" type="text" type-name="phone" validate="phone:请输入正确的手机格式" placeholder="请输入手机号" >
</div>
</div>
<div class="weui-cell" style="position: relative;">
<div class="weui-cell__hd">
<label class="weui-label">邮箱:</label>
</div>
<div class="weui-cell__bd">
<input class="weui-input" type-name="email" validate="email:请输入正确的邮箱格式" placeholder="请输入邮箱">
</div>
</div>
<div class="weui-cell">
<div class="weui-cell__hd">
<label class="weui-label">账户类型:</label>
</div>
<div class="weui-cell__bd">
<select class="weui-input jui-selecter" type-name="type" validate="empty:请选择用户类型"
data-options="'method':'GET','url':'/dictionary?ids=7,8','key':'code','value':'name',
'init_value':'请选择用户类型','type':'list' " placeholder="请选择设账户类型" type="text" readonly="true">
</select>
</div>
</div>
</div></div>
</div>
<div class="width80 m-auto" style="padding: 30px 0;">
<a class="weui-btn" style="background: #3499da;" href="javascript:" id="saveBtn">保存</a>
</div>
</div>
</div>
</body>
<script type="text/javascript">
$(function(){
if(GetQueryString("id") !=null ){
$("#detail_get").addClass("jui-detail_get");
$("#form_submit_update").addClass("jui-form_submit");
$("#form_submit").removeClass("jui-form_submit");
$("#init-id").val( GetQueryString("id"));
$("#titlename").html("子账户编辑");
}
})
function sunccessReturn(data){
if(isOK(data)){
tip("成功");
setTimeout(function() {
forward('/wiot/maccount');
}, 300);
}
}
$("#seq").picker({
title: "请选择排列顺序",
cols: [
{
textAlign: 'center',
values: [1,2,3,4,5,6,7,8,9,10],
displayValues: ["1 [最靠前]","2 [次靠前]","2 [较靠前]",4,5,6,7,8,"9 [较靠后]","10[最靠后]" ]
}
]
});
</script>
</html>