diff --git a/projects/fangjia-bkoff/src/main/webapp/apiUser/add.ftl b/projects/fangjia-bkoff/src/main/webapp/apiUser/add.ftl index 29ae67e83..907506c9f 100644 --- a/projects/fangjia-bkoff/src/main/webapp/apiUser/add.ftl +++ b/projects/fangjia-bkoff/src/main/webapp/apiUser/add.ftl @@ -1,169 +1,206 @@ <#ftl attributes={"content_type":"text/html; charset=UTF-8"}> <#compress> - - - - - api用户新增 - - <#include "/common_js.ftl" /> - - - - <#include "/layout/header.ftl" /> -
-${msg!''} - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- 栏位 - - 值 -
昵称
用户名
密码
账户类型 - -
账户用途 - -
是否监控 - 不监控 - 监控 -
Email
销售负责人
公司
估价调整比率(注意:设置该参数后估价接口的返回价格将乘以该系数)
siteName
到期时间
ip地址(每行一个IP地址)
-
-
- + + + <#include "/layout/header.ftl" /> +
+ ${msg!''} + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 栏位 + + 值 +
昵称
用户名
密码
账户类型 + +
账户用途 + +
是否监控 + 不监控 + 监控 +
Email
销售负责人
公司
估价调整比率(注意:设置该参数后估价接口的返回价格将乘以该系数) +
siteName
到期时间
ip地址(每行一个IP地址) +
+
+
+ - - + function getRandomElement(arr) { + return arr[parseInt(Math.random() * arr.length)]; + } + + function createPassword() { + var password = ""; + + // 确保至少包含一个特殊字符 + password += getRandomElement(special); + + // 随机选择其余7个字符 + for (var i = 0; i < 7; i++) { + password += getRandomElement(numAndengAndENGAndSpecial); + } + + // 将生成的密码打乱顺序 + password = password.split('').sort(() => 0.5 - Math.random()).join(''); + + return password; + } + + + + \ No newline at end of file diff --git a/projects/fangjia-bkoff/src/main/webapp/apiUser/editPwd.ftl b/projects/fangjia-bkoff/src/main/webapp/apiUser/editPwd.ftl index 3ccfe2210..fe85acf7b 100644 --- a/projects/fangjia-bkoff/src/main/webapp/apiUser/editPwd.ftl +++ b/projects/fangjia-bkoff/src/main/webapp/apiUser/editPwd.ftl @@ -26,7 +26,7 @@ 新密码 - + @@ -48,6 +48,37 @@ var re = /^(\d+)(\.(\d+)){0,3}$/g //匹配IP地址的正则表达式 return re.test(strIP) } + var num = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]; + var english = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]; + var ENGLISH = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]; + var special = ["!", "@", "#", "$", "%", "^", "&", "*"]; + var numAndengAndENGAndSpecial = num.concat(english).concat(ENGLISH).concat(special); + var randomNumAndengAndENGAndSpecial = ""; + + function getRandomElement(arr) { + return arr[parseInt(Math.random() * arr.length)]; + } + + function createPassword() { + var password = ""; + + // 确保至少包含一个特殊字符 + password += getRandomElement(special); + + // 随机选择其余7个字符 + for (var i = 0; i < 7; i++) { + password += getRandomElement(numAndengAndENGAndSpecial); + } + + // 将生成的密码打乱顺序 + password = password.split('').sort(() => 0.5 - Math.random()).join(''); + + return password; + } + $("#generatePassword").click(function () { + var password = createPassword(); + $("#password").val(password); + }); diff --git a/projects/fangjia-bkoff/src/main/webapp/township/edit.ftl b/projects/fangjia-bkoff/src/main/webapp/township/edit.ftl index 560488e30..ea92a03c6 100644 --- a/projects/fangjia-bkoff/src/main/webapp/township/edit.ftl +++ b/projects/fangjia-bkoff/src/main/webapp/township/edit.ftl @@ -1,11 +1,12 @@ <#ftl attributes={"content_type":"text/html; charset=UTF-8"}> <#compress> - + - + 乡镇编辑 - + @@ -16,49 +17,43 @@ 乡镇街道列表   -
+
<#if township??> - +
- + + - + + - + + - + + - + + - + -
- - 省份:
- - 城市:
- - 区域:
- - 民政部区域:
- - 乡镇街道:
- - - + 别名:(别名用,隔开)
- + +
@@ -68,18 +63,18 @@