feat: 添加静态资源文件和实体类

添加了多个图片、音频文件和CSS样式文件,包括QQ、微信相关图片和游戏素材。同时新增了跟进方式实体类gjfs.java和路径工具类PathUtils.java,用于项目功能扩展。

[新增文件包括]
- 图片资源:qq.png, wx.png, logo.jpg等
- 游戏素材:bg.png, CRM.png等
- 实体类:com/xzw/entity/gjfs.java
- 工具类:com/xzw/utils/PathUtils.java
This commit is contained in:
2025-06-17 13:26:03 +08:00
commit cedbe0687c
952 changed files with 476913 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v8.5">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>
+31
View File
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>MobileEncrypt</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**/node_modules/*|**/*.min.js|**/bower_components/*" kind="src" path="src/main/webapp"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>
@@ -0,0 +1,3 @@
eclipse.preferences.version=1
encoding//src/main/java/servlets/Config.properties=UTF-8
encoding/<project>=UTF-8
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="MobileEncrypt">
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<property name="context-root" value="MobileEncrypt"/>
<property name="java-output-path" value="/MobileEncrypt/build/classes"/>
</wb-module>
</project-modules>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Apache Tomcat v8.5"/>
<fixed facet="java"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="jst.web"/>
<installed facet="java" version="1.8"/>
<installed facet="jst.web" version="3.1"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
@@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
@@ -0,0 +1 @@
Window
@@ -0,0 +1,10 @@
# 数据库服务器IP
SERVERIP=127.0.01
# 数据库端口
PORT=3306
# 数据库名
DatabaseName=mycrm
# 数据库用户名
USER=root
# 数据库密码
PWD=baison
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,10 @@
# 数据库服务器IP
SERVERIP=127.0.01
# 数据库端口
PORT=3306
# 数据库名
DatabaseName=mycrm
# 数据库用户名
USER=root
# 数据库密码
PWD=baison
@@ -0,0 +1,101 @@
package servlets;
/*
*
* PDA获取授权状态
*
*
* */
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class Expire extends HttpServlet {
private static final long serialVersionUID = 1L;
public Expire() {
}
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/json");
response.setCharacterEncoding("UTF-8");
PrintWriter out = response.getWriter();
JSONObject jobj = new JSONObject();
dbconn dbconn = new dbconn();
Connection con = dbconn.con;
JSONArray data = null;
String EID = request.getParameter("ID");
String PRODUCT = request.getParameter("PRODUCT");
System.out.println(dbconn.formatDate + " " + EID + "获取"+PRODUCT+"授权状态");
String Ssql = "";
try {
Ssql = "SELECT A.NAME AS KHMC,EID,STATE,JZSJ,EIDVERSION,PRODUCT FROM tb_pda,tb_kehu A "
+ " WHERE KHID=A.ID AND MEID='"+EID+"' AND PRODUCT='"+PRODUCT+"'";
data = dbconn.query3(Ssql, con, new String[0]);
//System.out.println(data);
//获取当前时间
Date date =new Date();
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String nowdate = df.format(date);
if(data.length() == 1) {
JSONObject jsonObject = data.getJSONObject(0);
String state = jsonObject.getString("STATE");
String jzsj = jsonObject.getString("JZSJ");
int result = nowdate.compareTo(jzsj);
if (result < 0) {
if(state.equals("0")) {
//更新最近在线时间
String sql = "update tb_pda set LastSJ = '"+nowdate+"' where MEID ='"+EID+"' AND PRODUCT='"+PRODUCT+"'";
dbconn.update(sql, con, new String[0]);
jobj.put("result", "0");
jobj.put("message", "该设备授权正常");
}else {
jobj.put("result", "1");
jobj.put("message", "授权停止,请联系服务商");
}
}else {
jobj.put("result", "3");
jobj.put("message", "授权过期,请联系服务商");
}
}else {
jobj.put("result", "-1");
jobj.put("message", "设备未授权");
}
} catch (JSONException var17) {
JSONException e = var17;
try {
jobj.put("result", 1);
jobj.put("message", e);
} catch (JSONException var16) {
var16.printStackTrace();
}
var17.printStackTrace();
System.out.println(var17);
} finally {
dbconn.closeAll();
}
out.print(jobj.toString());
}
}
@@ -0,0 +1,63 @@
package servlets;
/*
*
* PDA获取授权码
*
*
* */
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class IMEI extends HttpServlet {
private static final long serialVersionUID = 1L;
public IMEI() {
}
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/json");
response.setCharacterEncoding("UTF-8");
PrintWriter out = response.getWriter();
JSONObject jobj = new JSONObject();
dbconn dbconn = new dbconn();
Connection con = dbconn.con;
JSONArray data = null;
String EID = request.getParameter("ID");
String PRODUCT = request.getParameter("PRODUCT");
System.out.println(dbconn.formatDate + " " + EID + "获取"+PRODUCT+"授权码信息");
String Ssql = "";
try {
Ssql = "SELECT A.NAME AS KHMC,EID,STATE,JZSJ,EIDVERSION,PRODUCT FROM tb_pda,tb_kehu A "
+ " WHERE KHID=A.ID AND MEID='"+EID+"' AND PRODUCT='"+PRODUCT+"'";
data = dbconn.query3(Ssql, con, new String[0]);
//System.out.println(data);
jobj.put("result", data);
} catch (JSONException var17) {
JSONException e = var17;
try {
jobj.put("result", 0);
jobj.put("message", e);
} catch (JSONException var16) {
var16.printStackTrace();
}
var17.printStackTrace();
System.out.println(var17);
} finally {
dbconn.closeAll();
}
out.print(jobj.toString());
}
}
@@ -0,0 +1,946 @@
package servlets;
/**
* @author 作者 ZhiwenXie:
* @version 创建时间:2021年10月28日 下午12:46:51
* 类说明
*/
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.Session;
import java.awt.EventQueue;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Properties;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class dbconn {
public static String ServerVersion = "20211105";
public Connection con = null;
public PreparedStatement ps = null;
public ResultSet rs = null;
public static String DRIVER = "com.mysql.jdbc.Driver";
public static String SQLITEDRIVER = "org.sqlite.JDBC";
private static String DB = null;
private static String SERVERIP = null;
private static String url = null;
private static String PORT = null;
public static String DatabaseName = null;
public static String URL = null;
private static String USER = null;
private static String PWD = null;
private static String characterEncoding = null;
public static String Version = null;
public static String ApkName = null;
public static String AutoUpdate = null;
public static String DLYHSD = null;
public static String IPOSURL = null;
public static String YYK = null;
public static String PayEnable = null;
public static String isPlanClearData = null;
public static String SPCX = null;
public static String XZMS = null;
public static String TCANYC = null;
public static String FKCKZ = null;
public static String SJFW = null;
public static String DJXS = null;
public static String PDDSLXG = null;
public static String SDSRSLTX = null;
public static String JCDZDQR = null;
public static String PHTCDZDQR = null;
public static String HDTCDZDQR = null;
public static String YHSQDZDQR = null;
public static String THSQDZDQR = null;
public static String PDDZDQR = null;
public static String JCDDPDAMS = null;
public static String TCTZDTCMS = null;
public static String KCCX = null;
public static String JCANXS = null;
public static String JCURL = null;
public static String QYPCGL = null;
public static String GLYMM = null;
public static String PDYC = null;
public static String TCYC = null;
public static String JCYC = null;
public static String KCCXYC = null;
public static String SPGGTYKZ = null;
public static String JCDTCMS = null;
public static String AXSH = null;
public static String SJKC = null;
public static String WYMCH = null;
public static String WYMKZ = null;
public static String forbidWrite = null;
public static String TSPZ = null;
public static String TCDQXKZ = null;
public static String DWHS = null;
public static String XZJYDJBH = null;
public static String KCCXHQCXJ = null;
public static String QYTMDZBPCXZ = null;
public static String BOARD_SHOW = null;
public static String BOARD_TIME_SPAN = null;
public static String ControlScanLighting = null;
public static String CXJK = null;
public String formatDate = null;
Statement sqlStatement = null;
private Connection conn = null;
private static String QYSSH = null;
private static String SSHIP = null;
private static String SSHPort = null;
private static String SSHUser = null;
private static String SSHPassword = null;
public static String XZZL = null;
public static String PayURL = null;
public static String PayApp_id = null;
public static String vipTimeSign = null;
public static String PayKey = null;
public static String PayStore_no = null;
public static String PayPrinter = null;
public static String PayPrivateKey = null;
public static String CRM_httpHead = null;
public static String CRM_appKey = null;
public static String CRM_groupId = null;
public static String CRM_appSecret = null;
public dbconn() {
this.initComponents();
}
public void initComponents() {
this.LoadProperties();
new SimpleDateFormat("dd/MM/yyyy");
SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒");
Date date = new Date();
this.formatDate = sdf.format(date);
}
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
}
});
}
public static void updateProperties() {
Properties props = new Properties();
props.setProperty("SERVERIP", SERVERIP);
props.setProperty("url", url);
props.setProperty("PORT", PORT);
props.setProperty("USER", USER);
props.setProperty("PWD", PWD);
props.setProperty("ServerVersion", ServerVersion);
props.setProperty("DatabaseName", DatabaseName);
try {
FileOutputStream fos = new FileOutputStream((new File("")).getAbsolutePath() + "/Config.properties");
props.store(fos, (String)null);
fos.close();
FileInputStream fis = new FileInputStream((new File("")).getAbsolutePath() + "/Config.properties");
props.clear();
props.load(fis);
fis.close();
} catch (IOException var3) {
System.err.println("属性文件更新错误");
}
}
public void LoadProperties() {
Properties p = new Properties();
InputStream inputStream = this.getClass().getResourceAsStream("Config.properties");
try {
p.load(inputStream);
} catch (IOException var4) {
var4.printStackTrace();
}
SERVERIP = p.getProperty("SERVERIP");
url = p.getProperty("url");
PORT = p.getProperty("PORT");
DatabaseName = p.getProperty("DatabaseName");
USER = p.getProperty("USER");
PWD = p.getProperty("PWD");
DB = p.getProperty("DB");
characterEncoding = p.getProperty("characterEncoding");
if (characterEncoding == null) {
characterEncoding = "utf-8";
}
URL = "jdbc:mysql://" + SERVERIP + ":" + PORT + "/" + DatabaseName + "?useUnicode=true&characterEncoding=" + characterEncoding;
if (DB != null && DB.equals("4")) {
URL = "jdbc:sqlite://e:/tim/YsPos.db";
}
Version = p.getProperty("Version");
ApkName = p.getProperty("ApkName");
AutoUpdate = p.getProperty("AutoUpdate");
IPOSURL = p.getProperty("IPOSURL");
YYK = p.getProperty("YYK");
PayEnable = p.getProperty("PayEnable");
isPlanClearData = p.getProperty("isPlanClearData");
SPCX = p.getProperty("SPCX");
XZMS = p.getProperty("XZMS");
TCANYC = p.getProperty("TCANYC");
FKCKZ = p.getProperty("FKCKZ");
Version = p.getProperty("Version");
DLYHSD = p.getProperty("DLYHSD");
AXSH = p.getProperty("AXSH");
SJKC = p.getProperty("SJKC");
WYMCH = p.getProperty("WYMCH");
WYMKZ = p.getProperty("WYMKZ");
forbidWrite = p.getProperty("forbidWrite");
if (DB == null) {
DB = "0";
}
if (FKCKZ == null) {
FKCKZ = "0";
}
SJFW = p.getProperty("SJFW");
if (SJFW == null) {
SJFW = "30";
}
DJXS = p.getProperty("DJXS");
if (DJXS == null) {
DJXS = "0";
}
JCDZDQR = p.getProperty("JCDZDQR");
if (JCDZDQR == null) {
JCDZDQR = "0";
}
PHTCDZDQR = p.getProperty("PHTCDZDQR");
if (PHTCDZDQR == null) {
PHTCDZDQR = "0";
}
HDTCDZDQR = p.getProperty("HDTCDZDQR");
if (HDTCDZDQR == null) {
HDTCDZDQR = "0";
}
YHSQDZDQR = p.getProperty("YHSQDZDQR");
if (YHSQDZDQR == null) {
YHSQDZDQR = "0";
}
THSQDZDQR = p.getProperty("THSQDZDQR");
if (THSQDZDQR == null) {
THSQDZDQR = "0";
}
PDDZDQR = p.getProperty("PDDZDQR");
if (PDDZDQR == null) {
PDDZDQR = "0";
}
PDDSLXG = p.getProperty("PDDSLXG");
if (PDDSLXG == null) {
PDDSLXG = "0";
}
SDSRSLTX = p.getProperty("SDSRSLTX");
if (SDSRSLTX == null) {
SDSRSLTX = "0";
}
KCCX = p.getProperty("KCCX");
if (KCCX == null) {
KCCX = "0";
}
JCANXS = p.getProperty("JCANXS");
if (JCANXS == null) {
JCANXS = "0";
}
JCURL = p.getProperty("JCURL");
if (JCURL == null) {
JCURL = "0";
}
JCDDPDAMS = p.getProperty("JCDDPDAMS");
if (JCDDPDAMS == null) {
JCDDPDAMS = "0";
}
QYPCGL = p.getProperty("QYPCGL");
if (QYPCGL == null) {
QYPCGL = "0";
}
TCTZDTCMS = p.getProperty("TCTZDTCMS");
if (TCTZDTCMS == null) {
TCTZDTCMS = "0";
}
GLYMM = p.getProperty("GLYMM");
if (GLYMM == null) {
GLYMM = "0";
}
PDYC = p.getProperty("PDYC");
if (PDYC == null) {
PDYC = "0";
}
JCYC = p.getProperty("JCYC");
if (JCYC == null) {
JCYC = "0";
}
TCYC = p.getProperty("TCYC");
if (TCYC == null) {
TCYC = "0";
}
KCCXYC = p.getProperty("KCCXYC");
if (KCCXYC == null) {
KCCXYC = "0";
}
SPGGTYKZ = p.getProperty("SPGGTYKZ");
if (SPGGTYKZ == null) {
SPGGTYKZ = "0";
}
JCDTCMS = p.getProperty("JCDTCMS");
if (JCDTCMS == null) {
JCDTCMS = "0";
}
QYSSH = p.getProperty("QYSSH");
if (QYSSH == null) {
QYSSH = "0";
}
SSHIP = p.getProperty("SSHIP");
if (SSHIP == null) {
SSHIP = "";
}
SSHPort = p.getProperty("SSHPort");
if (SSHPort == null) {
SSHPort = "";
}
SSHUser = p.getProperty("SSHUser");
if (SSHUser == null) {
SSHUser = "";
}
SSHPassword = p.getProperty("SSHPassword");
if (SSHPassword == null) {
SSHPassword = "";
}
ServerVersion = p.getProperty("Version");
if (ServerVersion == null) {
ServerVersion = "0";
}
DLYHSD = p.getProperty("DLYHSD");
if (DLYHSD == null) {
DLYHSD = "0";
}
AXSH = p.getProperty("AXSH");
if (AXSH == null) {
AXSH = "0";
}
SJKC = p.getProperty("SJKC");
if (SJKC == null) {
SJKC = "0";
}
WYMCH = p.getProperty("WYMCH");
if (WYMCH == null) {
WYMCH = "0";
}
WYMKZ = p.getProperty("WYMKZ");
if (WYMKZ == null) {
WYMKZ = "0";
}
forbidWrite = p.getProperty("forbidWrite");
if (forbidWrite == null) {
forbidWrite = "0";
}
TSPZ = p.getProperty("TSPZ");
if (TSPZ == null) {
TSPZ = "";
}
TCDQXKZ = p.getProperty("TCDQXKZ");
if (TCDQXKZ == null) {
TCDQXKZ = "";
}
DWHS = p.getProperty("DWHS");
if (DWHS == null) {
DWHS = "0";
}
XZJYDJBH = p.getProperty("XZJYDJBH");
if (XZJYDJBH == null) {
XZJYDJBH = "";
}
XZZL = p.getProperty("XZZL");
if (XZZL == null) {
XZZL = "0";
}
KCCXHQCXJ = p.getProperty("KCCXHQCXJ");
if (KCCXHQCXJ == null) {
KCCXHQCXJ = "0";
}
QYTMDZBPCXZ = p.getProperty("QYTMDZBPCXZ");
if (QYTMDZBPCXZ == null) {
QYTMDZBPCXZ = "0";
}
BOARD_SHOW = p.getProperty("BOARD_SHOW");
if (BOARD_SHOW == null) {
BOARD_SHOW = "0";
}
BOARD_TIME_SPAN = p.getProperty("BOARD_TIME_SPAN");
if (BOARD_TIME_SPAN == null) {
BOARD_TIME_SPAN = "0";
}
ControlScanLighting = p.getProperty("ControlScanLighting");
if (ControlScanLighting == null) {
ControlScanLighting = "0";
}
CXJK = p.getProperty("CXJK");
if (CXJK == null) {
CXJK = "0";
}
PayURL = p.getProperty("PayURL");
if (PayURL == null) {
PayURL = "";
}
PayApp_id = p.getProperty("PayApp_id");
if (PayApp_id == null) {
PayApp_id = "";
}
PayKey = p.getProperty("PayKey");
if (PayKey == null) {
PayKey = "";
}
vipTimeSign = p.getProperty("vipTimeSign");
if (vipTimeSign == null) {
vipTimeSign = "";
}
PayStore_no = p.getProperty("PayStore_no");
if (PayStore_no == null) {
PayStore_no = "";
}
PayPrinter = p.getProperty("PayPrinter");
if (PayPrinter == null) {
PayPrinter = "0";
}
PayPrivateKey = p.getProperty("PayPrivateKey");
if (PayPrivateKey == null) {
PayPrivateKey = "";
}
CRM_httpHead = p.getProperty("CRM_httpHead");
if (CRM_httpHead == null) {
CRM_httpHead = "";
}
CRM_appKey = p.getProperty("CRM_appKey");
if (CRM_appKey == null) {
CRM_appKey = "";
}
CRM_groupId = p.getProperty("CRM_groupId");
if (CRM_groupId == null) {
CRM_groupId = "";
}
CRM_appSecret = p.getProperty("CRM_appSecret");
if (CRM_appSecret == null) {
CRM_appSecret = "";
}
}
public Connection getCon() {
if (QYSSH != null && QYSSH.equals("1")) {
go();
}
if (this.conn == null) {
try {
if (DB.equals("4")) {
Class.forName(SQLITEDRIVER);
} else {
Class.forName(DRIVER);
}
} catch (ClassNotFoundException var3) {
var3.printStackTrace();
}
try {
DriverManager.setLoginTimeout(2);
this.con = DriverManager.getConnection(URL, USER, PWD);
} catch (SQLException var2) {
System.out.print(var2);
var2.printStackTrace();
}
}
return this.con;
}
public void closeAll() {
if (this.rs != null) {
try {
this.rs.close();
} catch (SQLException var5) {
System.out.print(var5);
}
}
if (this.ps != null) {
try {
this.ps.close();
} catch (SQLException var4) {
System.out.print(var4);
}
}
try {
if (this.con != null && !this.con.isClosed()) {
try {
this.con.close();
} catch (SQLException var2) {
System.out.print(var2);
}
}
} catch (SQLException var3) {
var3.printStackTrace();
}
}
public String query(String sql, Connection con, String... pras) throws JSONException {
JSONArray array = new JSONArray();
try {
if (con == null) {
con = this.getCon();
}
this.ps = con.prepareStatement(sql);
if (pras != null) {
for(int i = 0; i < pras.length; ++i) {
this.ps.setString(i + 1, pras[i]);
}
}
this.rs = this.ps.executeQuery();
ResultSetMetaData metaData = this.rs.getMetaData();
int columnCount = metaData.getColumnCount();
while(this.rs.next()) {
JSONObject jsonObj = new JSONObject();
for(int i = 1; i <= columnCount; ++i) {
String columnName = metaData.getColumnLabel(i);
String value = this.rs.getString(columnName);
if (value == null) {
value = "";
}
jsonObj.put(columnName, value);
}
array.put(jsonObj);
}
} catch (SQLException var11) {
var11.printStackTrace();
}
return array.toString();
}
public String query1(String sql, Connection con, String... pras) {
String value = null;
try {
if (con == null) {
con = this.getCon();
}
this.ps = con.prepareStatement(sql);
if (pras != null) {
for(int i = 0; i < pras.length; ++i) {
this.ps.setString(i + 1, pras[i]);
}
}
this.rs = this.ps.executeQuery();
ResultSetMetaData metaData = this.rs.getMetaData();
int columnCount = metaData.getColumnCount();
while(this.rs.next()) {
for(int i = 1; i <= columnCount; ++i) {
String columnName = metaData.getColumnLabel(i);
value = this.rs.getString(columnName);
if (value == null) {
value = "";
}
}
}
} catch (SQLException var9) {
var9.printStackTrace();
}
return value;
}
public String query2(String sql, Connection con, String... pras) {
String value = null;
try {
if (con == null) {
con = this.getCon();
}
this.ps = con.prepareStatement(sql);
if (pras != null) {
for(int i = 0; i < pras.length; ++i) {
this.ps.setString(i + 1, pras[i]);
}
}
this.rs = this.ps.executeQuery();
ResultSetMetaData metaData = this.rs.getMetaData();
int columnCount = metaData.getColumnCount();
while(this.rs.next()) {
for(int i = 1; i <= columnCount; ++i) {
String columnName = metaData.getColumnLabel(i);
value = this.rs.getString(columnName);
if (value == null) {
value = "";
}
}
}
} catch (SQLException var9) {
var9.printStackTrace();
}
return value;
}
public JSONArray query3(String sql, Connection con, String... pras) throws JSONException {
JSONArray array = new JSONArray();
try {
if (con == null) {
con = this.getCon();
}
this.ps = con.prepareStatement(sql);
if (pras != null) {
for(int i = 0; i < pras.length; ++i) {
this.ps.setString(i + 1, pras[i]);
}
}
this.rs = this.ps.executeQuery();
ResultSetMetaData metaData = this.rs.getMetaData();
int columnCount = metaData.getColumnCount();
while(this.rs.next()) {
JSONObject jsonObj = new JSONObject();
for(int i = 1; i <= columnCount; ++i) {
String columnName = metaData.getColumnLabel(i);
String value = this.rs.getString(columnName);
if (value == null) {
value = "";
}
jsonObj.put(columnName, value);
}
array.put(jsonObj);
}
} catch (SQLException var11) {
var11.printStackTrace();
}
return array;
}
public Object query4(String sql, Connection con, String... pras) {
Object value = null;
try {
if (con == null) {
con = this.getCon();
}
this.ps = con.prepareStatement(sql);
if (pras != null) {
for(int i = 0; i < pras.length; ++i) {
this.ps.setString(i + 1, pras[i]);
}
}
this.rs = this.ps.executeQuery();
ResultSetMetaData metaData = this.rs.getMetaData();
int columnCount = metaData.getColumnCount();
while(this.rs.next()) {
for(int i = 1; i <= columnCount; ++i) {
String columnName = metaData.getColumnLabel(i);
value = this.rs.getString(columnName);
if (value == null) {
value = "";
}
}
}
} catch (SQLException var9) {
var9.printStackTrace();
}
return value;
}
public String query5(String sql, Connection con, String... pras) {
String value = null;
try {
if (con == null) {
con = this.getCon();
}
this.ps = con.prepareStatement(sql);
if (pras != null) {
for(int i = 0; i < pras.length; ++i) {
this.ps.setString(i + 1, pras[i]);
}
}
this.rs = this.ps.executeQuery();
ResultSetMetaData metaData = this.rs.getMetaData();
int columnCount = metaData.getColumnCount();
while(this.rs.next()) {
for(int i = 1; i <= columnCount; ++i) {
String columnName = metaData.getColumnLabel(i);
value = this.rs.getString(columnName);
if (value == null) {
value = "";
}
}
}
} catch (SQLException var9) {
var9.printStackTrace();
}
return value;
}
public JSONArray query6(String sql, Connection con, String... pras) throws JSONException {
JSONArray array = new JSONArray();
try {
if (con == null) {
con = this.getCon();
}
this.ps = con.prepareStatement(sql);
if (pras != null) {
for(int i = 0; i < pras.length; ++i) {
this.ps.setString(i + 1, pras[i]);
}
}
this.rs = this.ps.executeQuery();
ResultSetMetaData metaData = this.rs.getMetaData();
int columnCount = metaData.getColumnCount();
while(this.rs.next()) {
JSONObject jsonObj = new JSONObject();
for(int i = 1; i <= columnCount; ++i) {
String columnName = metaData.getColumnLabel(i);
String value = this.rs.getString(columnName);
if (value == null) {
value = "";
}
jsonObj.put(columnName, value);
}
array.put(jsonObj);
}
} catch (SQLException var11) {
var11.printStackTrace();
}
return array;
}
public ArrayList<String> query7(String sql, Connection con, String... pras) throws JSONException {
ArrayList<String> List = new ArrayList();
try {
if (con == null) {
con = this.getCon();
}
this.ps = con.prepareStatement(sql);
if (pras != null) {
for(int i = 0; i < pras.length; ++i) {
this.ps.setString(i + 1, pras[i]);
}
}
this.rs = this.ps.executeQuery();
ResultSetMetaData metaData = this.rs.getMetaData();
int columnCount = metaData.getColumnCount();
while(this.rs.next()) {
for(int i = 1; i <= columnCount; ++i) {
String columnName = metaData.getColumnLabel(i);
String value = this.rs.getString(columnName);
if (value == null) {
value = "";
}
List.add(value);
}
}
} catch (SQLException var10) {
var10.printStackTrace();
}
return List;
}
public int update(String sql, Connection con, String... pras) {
int resu = 0;
try {
if (con == null) {
con = this.getCon();
}
this.ps = con.prepareStatement(sql);
for(int i = 0; i < pras.length; ++i) {
this.ps.setString(i + 1, pras[i]);
}
resu = this.ps.executeUpdate();
} catch (SQLException var6) {
var6.printStackTrace();
}
return resu;
}
public int dbtest() {
try {
return this.getCon() != null ? 1 : -1;
} catch (Exception var2) {
var2.printStackTrace();
System.out.println("连接数据库失败");
return -1;
}
}
public SQLException update1(String sql, Connection con, Object... pras) {
try {
if (con == null) {
con = this.getCon();
}
this.ps = con.prepareStatement(sql);
for(int i = 0; i < pras.length; ++i) {
this.ps.setObject(i + 1, pras[i]);
}
this.ps.addBatch();
this.ps.executeBatch();
return null;
} catch (SQLException var5) {
System.out.println(var5);
return var5;
}
}
public static void go() {
try {
JSch jsch = new JSch();
Session session = jsch.getSession(SSHUser, SSHIP, Integer.parseInt(SSHPort));
session.setPassword(SSHPassword);
session.setConfig("StrictHostKeyChecking", "no");
session.connect();
System.out.println(session.getServerVersion());
session.setPortForwardingL(Integer.parseInt(PORT), SERVERIP, Integer.parseInt(PORT));
} catch (Exception var2) {
var2.printStackTrace();
}
}
public boolean update5(String sql, Connection con) {
try {
if (con == null) {
con = this.getCon();
}
this.ps = con.prepareStatement(sql);
this.ps.executeUpdate();
return true;
} catch (SQLException var4) {
System.out.println(var4);
return false;
}
}
}
@@ -0,0 +1,95 @@
package test;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
import java.nio.channels.FileChannel.MapMode;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class MD5Utils {
protected static char[] hexDigits = new char[]{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
protected static MessageDigest messagedigest;
public static String getFileMD5String_old(File file) throws IOException {
messagedigest.update(new FileInputStream(file).getChannel().map(MapMode.READ_ONLY, 0, file.length()));
return bufferToHex(messagedigest.digest());
}
public static String getFileMD5String(File file) throws IOException {
FileInputStream fileInputStream = new FileInputStream(file);
byte[] bArr = new byte[1024];
while (true) {
int read = fileInputStream.read(bArr);
if (read > 0) {
messagedigest.update(bArr, 0, read);
} else {
fileInputStream.close();
return bufferToHex(messagedigest.digest());
}
}
}
static {
messagedigest = null;
try {
messagedigest = MessageDigest.getInstance("MD5");
} catch (NoSuchAlgorithmException e) {
PrintStream printStream = System.err;
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append(MD5Utils.class.getName());
stringBuilder.append("初始化失败,MessageDigest不支持MD5Util。");
printStream.println(stringBuilder.toString());
e.printStackTrace();
}
}
private static void appendHexPair(byte b, StringBuffer stringBuffer) {
char[] cArr = hexDigits;
char c = cArr[(b & 240) >> 4];
char c2 = cArr[b & 15];
stringBuffer.append(c);
stringBuffer.append(c2);
}
public static String convertMD5(String str) {
char[] toCharArray = str.toCharArray();
for (int i = 0; i < toCharArray.length; i++) {
toCharArray[i] = (char) (toCharArray[i] ^ 116);
}
return new String(toCharArray);
}
private static String bufferToHex(byte[] bArr, int i, int i2) {
StringBuffer stringBuffer = new StringBuffer(i2 * 2);
i2 += i;
while (i < i2) {
appendHexPair(bArr[i], stringBuffer);
i++;
}
return stringBuffer.toString();
}
public static boolean checkPassword(String str, String str2) {
return getMD5String(str).equals(str2);
}
public static String getMD5String(byte[] bArr) {
messagedigest.update(bArr);
return bufferToHex(messagedigest.digest());
}
private static String bufferToHex(byte[] bArr) {
return bufferToHex(bArr, 0, bArr.length);
}
public static String getMD5String(String str) {
return getMD5String(str.getBytes());
}
public static String getMD5String1(String str) throws UnsupportedEncodingException {
return getMD5String(str.getBytes("UTF-8"));
}
}
@@ -0,0 +1,29 @@
package test;
public class VerifyUtil {
public static String Verify_EFast365(String str, String str2) {
StringBuffer stringBuffer = new StringBuffer(str2);
if (str != null) {
stringBuffer.append(str);
}
stringBuffer.append("BSAMDAQ");
str = MD5Utils.getMD5String(stringBuffer.toString().toUpperCase()).toUpperCase();
stringBuffer = new StringBuffer();
int i = 0;
while (i < str2.length()) {
int i2 = i + 1;
int i3 = i + 3;
try {
i3 = Integer.parseInt(str2.substring(i, i2));
} catch (Exception unused) {
}
i += i3;
if (i >= 30) {
i = i3;
}
stringBuffer.append(str.substring(i, i + 1));
i = i2;
}
return stringBuffer.toString();
}
}
+36
View File
@@ -0,0 +1,36 @@
package test;
import java.io.PrintStream;
public class XXX {
public static void main(String[] args) {
// TODO Auto-generated method stub
//String trim ="0AD22AC2883CCAD111" ;
String Verify_EFast365 = VerifyUtil.Verify_EFast365(null, "963148617245693");
//trim = trim.toUpperCase();
PrintStream printStream = System.out;
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append(Verify_EFast365);
//stringBuilder.append("===");
//stringBuilder.append(trim);
//stringBuilder.append("=======");
printStream.println(stringBuilder.toString());
/*if (Verify_EFast365.equals(trim)) {
if (true) {
System.out.println("true")
}
}
toastMsg("验证码错误!");
return false;
}*/
//System.out.println(Verify_EFast365);
}
}
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>MobileEncrypt</display-name>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>Sp_dalei</servlet-name>
<servlet-class>servlets.Sp_dalei</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Sp_dalei</servlet-name>
<url-pattern>/Sp_dalei</url-pattern>
</servlet-mapping>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>Expire</servlet-name>
<servlet-class>servlets.Expire</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Expire</servlet-name>
<url-pattern>/Expire</url-pattern>
</servlet-mapping>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>IMEI</servlet-name>
<servlet-class>servlets.IMEI</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>IMEI</servlet-name>
<url-pattern>/IMEI</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
+12
View File
@@ -0,0 +1,12 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>PDA授权验证接口</title>
</head>
<body>
PDA授权验证接口
</body>
</html>
+188
View File
@@ -0,0 +1,188 @@
/*
Navicat Premium Data Transfer
Source Server : Mysql--A本地
Source Server Type : MySQL
Source Server Version : 50731
Source Host : localhost:3306
Source Schema : mycrm
Target Server Type : MySQL
Target Server Version : 50731
File Encoding : 65001
Date: 15/01/2025 01:28:55
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for tb_admin
-- ----------------------------
DROP TABLE IF EXISTS `tb_admin`;
CREATE TABLE `tb_admin` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`dm` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`pwd` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `admin_dm`(`dm`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Table structure for tb_cpxx
-- ----------------------------
DROP TABLE IF EXISTS `tb_cpxx`;
CREATE TABLE `tb_cpxx` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cpmc` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`bz` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `tb_cpxx_cpmc`(`cpmc`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Table structure for tb_dqtx
-- ----------------------------
DROP TABLE IF EXISTS `tb_dqtx`;
CREATE TABLE `tb_dqtx` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`khid` int(11) NOT NULL,
`rqs` date NOT NULL,
`rqe` date NOT NULL,
`je` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`photo1` mediumblob NULL,
`photo2` mediumblob NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `tb_dqtx`(`khid`) USING BTREE,
CONSTRAINT `fk_dqtx_khid` FOREIGN KEY (`khid`) REFERENCES `tb_kehu` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 33 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Table structure for tb_gjfs
-- ----------------------------
DROP TABLE IF EXISTS `tb_gjfs`;
CREATE TABLE `tb_gjfs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`gjfs` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `gjfs_fs`(`gjfs`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Table structure for tb_gjjl
-- ----------------------------
DROP TABLE IF EXISTS `tb_gjjl`;
CREATE TABLE `tb_gjjl` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`khid` int(11) NOT NULL,
`fsid` int(11) NOT NULL,
`usid` int(11) NOT NULL,
`gjnr` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`rq` datetime(6) NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `gjjl_only`(`khid`, `fsid`, `usid`, `gjnr`, `rq`) USING BTREE,
INDEX `fk_usid`(`usid`) USING BTREE,
INDEX `fk_fsid`(`fsid`) USING BTREE,
CONSTRAINT `fk_fsid` FOREIGN KEY (`fsid`) REFERENCES `tb_gjfs` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
CONSTRAINT `fk_khid` FOREIGN KEY (`khid`) REFERENCES `tb_kehu` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
CONSTRAINT `fk_usid` FOREIGN KEY (`usid`) REFERENCES `tb_user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 11999 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Table structure for tb_kehu
-- ----------------------------
DROP TABLE IF EXISTS `tb_kehu`;
CREATE TABLE `tb_kehu` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '客户id',
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '客户姓名',
`bz` varchar(8000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`pq` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '片区',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `kehu_name`(`name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 207 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Table structure for tb_pda
-- ----------------------------
DROP TABLE IF EXISTS `tb_pda`;
CREATE TABLE `tb_pda` (
`ID` int(10) NOT NULL AUTO_INCREMENT COMMENT '授权ID',
`KHID` int(10) NOT NULL COMMENT '客户ID',
`STATE` int(1) UNSIGNED ZEROFILL NOT NULL COMMENT '状态 1停止 0正常',
`JZSJ` datetime NOT NULL COMMENT '截止日期',
`EIDVERSION` int(1) NOT NULL COMMENT 'EID版本',
`PRODUCT` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品 MDAQ MWMS MIPOS',
`EID` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '密钥',
`MEID` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备ID',
`OptDate` datetime NOT NULL COMMENT '首次授权时间',
`BZ` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`LastSJ` datetime NULL DEFAULT NULL COMMENT '最近在线时间',
PRIMARY KEY (`ID`) USING BTREE,
UNIQUE INDEX `PDA_ONLY`(`KHID`, `PRODUCT`, `MEID`) USING BTREE COMMENT '授权唯一性',
CONSTRAINT `FK_PDA_KHID` FOREIGN KEY (`KHID`) REFERENCES `tb_kehu` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'PDA授权信息记录表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tb_user
-- ----------------------------
DROP TABLE IF EXISTS `tb_user`;
CREATE TABLE `tb_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`dm` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`pwd` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`tybj` int(1) UNSIGNED ZEROFILL NOT NULL,
`photo` mediumblob NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `user_dm`(`dm`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Table structure for tb_zsk
-- ----------------------------
DROP TABLE IF EXISTS `tb_zsk`;
CREATE TABLE `tb_zsk` (
`QuestionId` int(11) NOT NULL,
`Subject` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
`Solution` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
`Product` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`ProductModule` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`FunctionalModule` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`Creater` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`CreateTime` datetime NULL DEFAULT NULL,
PRIMARY KEY (`QuestionId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Function structure for getFirstHanZiCode
-- ----------------------------
DROP FUNCTION IF EXISTS `getFirstHanZiCode`;
delimiter ;;
CREATE FUNCTION `getFirstHanZiCode`(in_string VARCHAR(100))
RETURNS varchar(100) CHARSET utf8
BEGIN
#in_string
DECLARE tmp_str VARCHAR(100) CHARSET gbk DEFAULT '' ;
#
DECLARE tmp_char VARCHAR(2) CHARSET gbk DEFAULT '';
#tmp_str的长度
DECLARE tmp_loc SMALLINT DEFAULT 0;
#in_string赋给tmp_str
SET tmp_str = in_string;
#tmp_str最左端的首个字符
SET tmp_char = LEFT(tmp_str,1);
#
SET tmp_loc=INTERVAL(CONV(HEX(tmp_char),16,10),
0xB0A1,0xB0C5,0xB2C1,0xB4EE,0xB6EA,0xB7A2,0xB8C1,0xB9FE,0xBBF7,0xBFA6,0xC0AC,0xC2E8,0xC4C3,0xC5B6,0xC5BE,0xC6DA,0xC8BB,0xC8F6,0xCBFA,0xCDDA ,0xCEF4,0xD1B9,0xD4D1);
#
IF (LENGTH(tmp_char)>1 AND tmp_loc>0 AND tmp_loc<24) THEN
SELECT ELT(tmp_loc,'A','B','C','D','E','F','G','H','J','K','L','M','N','O','P','Q','R','S','T','W','X','Y','Z') INTO tmp_char; #
END IF;
RETURN tmp_char;#
END
;;
delimiter ;
SET FOREIGN_KEY_CHECKS = 1;
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v8.5"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="build/classes"/>
</classpath>
+31
View File
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>mycrm</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="WebContent"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>
@@ -0,0 +1,3 @@
eclipse.preferences.version=1
encoding//WebContent/static/css/styles.css=UTF-8
encoding/<project>=UTF-8
@@ -0,0 +1,10 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=1.8
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="mycrm">
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<property name="context-root" value="mycrm"/>
<property name="java-output-path" value="/mycrm/build/classes"/>
</wb-module>
</project-modules>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="jst.web"/>
<fixed facet="java"/>
<fixed facet="wst.jsdt.web"/>
<installed facet="jst.web" version="3.1"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="java" version="1.8"/>
</faceted-project>
@@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
@@ -0,0 +1 @@
Window
+3
View File
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>mycrm</display-name>
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
</web-app>
+37
View File
@@ -0,0 +1,37 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!doctype html>
<html>
<head>
<title>HTML5超级玛丽</title>
<link rel="shortcut icon" href=favicon.png />
<link rel=stylesheet type="text/css" href="${basePath}static/cjml/VNkyVaVxUV.css">
<script type="text/javascript" src="${basePath}static/cjml/jquery.js"></script>
</head>
<body>
<h4>方向键:移动 &nbsp;&nbsp;S键:跳跃/进入&nbsp;&nbsp;A键:快跑/射击</h4>
<div class=spacing></div>
<div class=main>
<canvas id=canvas width=640 height=480>
<p style="text-align: center;">糟糕!您的浏览器不支持HTML5 Canvas,玩不了,请尝试用Firefox、Chrome、IE9浏览器</p>
</canvas>
<div class=spacing></div>
</div>
<script src="${basePath}static/cjml/wNGu2CtEMx.js"></script>
<script src="${basePath}static/cjml/QAuIByrkL.js"></script>
<script>$(document).ready(function() { new Enjine.Application().Initialize(new Mario.LoadingState(), 320, 240) });</script>
</body>
</html>
</body>
</html>
+26
View File
@@ -0,0 +1,26 @@
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>HTML5 Canvas实现会跳舞的时间动画DEMO演示</title>
<style>
* {
margin: 0;
padding: 0;
list-style: none;
border: none;
}
#zzsc {
width: 920px;
margin: 300px auto;
}
</style>
<script type="text/javascript" src="${basePath}static/dancetime/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="${basePath}static/dancetime/zzsc.js"></script>
</head>
<body>
<div id="zzsc"></div>
</body>
</html>
+53
View File
@@ -0,0 +1,53 @@
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@page import="java.text.SimpleDateFormat,java.util.Date"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>待开发界面</title>
<link rel="stylesheet" href="${basePath}static/css/gdwz/style.css">
<script type="text/javascript" src='${basePath}static/js/gdwz/jquery.min.js'></script>
<script type="text/javascript" src="${basePath}static/js/gdwz/index.js"></script>
</head>
<body>
<form style="float:right;">
<input type="BUTTON" name="FullScreen" value="全屏显示" onClick="window.open(document.location, 'big', 'fullscreen=yes')">
<input type="BUTTON" name="FullScreen" value="关闭窗口" onClick="window.close(document.location, 'small', 'fullscreen=no')">
</form>
<div style="margin: auto; text-align: center; margin-bottom: 30px;">
<a style="font-size:50px;color:red;"><span class="dateSpan" style="font-style: italic;color: red;"><%=new SimpleDateFormat("yyyy年MM月dd日").format(new Date()) %>&nbsp;&nbsp;<%=new SimpleDateFormat("E").format(new Date()) %></span>&nbsp;&nbsp;此地正在挖掘中...</a>
</div>
<div class="hide"></div>
<div class="choose" style="margin: auto; width: 1000px; display: block;">
<div style="line-height: 50px; float: left;">每日一思:</div>
<div class="options">
<span class="button">&nbsp;<div class="arrow-down"></div></span>
<ul id="scroller">
  <li>主动出击,抢得先机,提高效率</li>
  <li>今日的质量,明日的市场</li>
  <li>团队共作战人人出业绩</li>
  <li>一个疏忽百人忙,人人细心更顺畅</li>
  <li>用心服务,保证服务,品质满意客户需求</li>
  <li>找方法才能成功,找借口只会失败</li>
  <li>优服务高效益大发展</li>
  <li>爱岗敬业求实创新用心服务勇争一流</li>
  <li>今日看客,明日买主</li>
  <li>技巧提升,业绩攀升,持之以恒,业绩骄人</li>
  <li>全心全意为客户服务</li>
  <li>创一流服务品牌,树完美企业形象</li>
  <li>全员齐动,风起云涌,每日拜访,铭记心中</li>
  <li>客户至上,技术争先</li>
<li>要用我们的耐心诚心热情为客户服务</li>
</ul>
</div>
</div>
<div id="text"></div>
</body>
</html>
+24
View File
@@ -0,0 +1,24 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML5/CSS3简易版俄罗斯方块游戏DEMO演示</title>
<link rel="stylesheet" href="${basePath}static/elsfk/css/style.css" media="screen" type="text/css" />
</head>
<body>
<div id="tetris">
<div id="info">
<div id="next_shape">asdfasdf</div>
<p id="level">Level: <span></span></p>
<p id="lines">Lines: <span></span></p>
<p id="score">Score: <span></span></p>
<p id="time">Time: <span></span></p>
</div>
<div id="canvas"></div>
</div>
<script src="${basePath}static/elsfk/js/index.js"></script>
<p style="color:red;font-size:18px;font-weight:bold">方向键进行移动和翻转</p>
</body>
</html>
@@ -0,0 +1,4 @@
22 serialization::archive 19 0 0 0 0 2 1 2
0 0 2 0 109 /volume1/资料/A--开发--A/JAVA 开发/JAVA项目/MyCrm项目开发/20250115/mycrm/WebContent/file/logo.jpg 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 19 1970-01-01 00:00:00 19 2025-01-15 01:28:14 19 2021-08-24 03:22:54 0.000000000e+00 0 0 0 0 0 0 0 180 180 7681 0 0 1 0 0 0 0 0 0 0 0 3 jpg 1 0 0 0 0 6 1 1
1 0 0 -99 0 0 0 0 0 10 1 1
2 0 0 0 0 0 0 0.000000000e+00 0.000000000e+00 0.000000000e+00 0.000000000e+00
@@ -0,0 +1,4 @@
22 serialization::archive 19 0 0 0 0 2 1 2
0 0 2 0 113 /volume1/资料/A--开发--A/JAVA 开发/JAVA项目/MyCrm项目开发/20250115/mycrm/WebContent/file/nofujian.jpg 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 19 1970-01-01 00:00:00 19 2025-01-15 01:28:14 19 2021-09-06 00:19:39 0.000000000e+00 0 0 0 0 0 0 0 1920 1080 134207 0 0 0 0 0 0 0 0 0 0 0 3 jpg 1 0 0 0 0 6 1 1
1 0 0 -99 0 0 0 0 0 10 1 1
2 0 0 0 0 0 0 0.000000000e+00 0.000000000e+00 0.000000000e+00 0.000000000e+00
@@ -0,0 +1,4 @@
22 serialization::archive 19 0 0 0 0 2 1 2
0 0 2 0 113 /volume1/资料/A--开发--A/JAVA 开发/JAVA项目/MyCrm项目开发/20250115/mycrm/WebContent/file/nofujian.png 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 19 1970-01-01 00:00:00 19 2025-01-15 01:28:14 19 2021-09-06 00:22:59 0.000000000e+00 0 0 0 0 0 0 0 1920 1080 44658 0 0 0 0 0 0 0 0 0 0 0 3 png 1 0 0 0 0 6 1 1
1 0 0 -99 0 0 0 0 0 10 1 1
2 0 0 0 0 0 0 0.000000000e+00 0.000000000e+00 0.000000000e+00 0.000000000e+00
@@ -0,0 +1,4 @@
22 serialization::archive 19 0 0 0 0 2 1 2
0 0 2 0 107 /volume1/资料/A--开发--A/JAVA 开发/JAVA项目/MyCrm项目开发/20250115/mycrm/WebContent/file/qq.png 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 19 1970-01-01 00:00:00 19 2025-01-15 01:28:14 19 2021-10-13 00:00:00 0.000000000e+00 0 0 0 0 0 0 0 531 608 203951 0 0 0 0 0 0 0 0 0 0 0 3 png 1 0 0 0 0 6 1 1
1 0 0 -99 0 0 0 0 0 10 1 1
2 0 0 0 0 0 0 0.000000000e+00 0.000000000e+00 0.000000000e+00 0.000000000e+00
@@ -0,0 +1,4 @@
22 serialization::archive 19 0 0 0 0 2 1 2
0 0 2 0 112 /volume1/资料/A--开发--A/JAVA 开发/JAVA项目/MyCrm项目开发/20250115/mycrm/WebContent/file/qq_logo.png 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 19 1970-01-01 00:00:00 19 2025-01-15 01:28:14 19 2021-10-12 00:06:47 0.000000000e+00 0 0 0 0 0 0 0 22 56 1470 0 0 0 0 0 0 0 0 0 0 0 3 png 1 0 0 0 0 6 1 1
1 0 0 -99 0 0 0 0 0 10 1 1
2 0 0 0 0 0 0 0.000000000e+00 0.000000000e+00 0.000000000e+00 0.000000000e+00
@@ -0,0 +1,4 @@
22 serialization::archive 19 0 0 0 0 2 1 2
0 0 2 0 113 /volume1/资料/A--开发--A/JAVA 开发/JAVA项目/MyCrm项目开发/20250115/mycrm/WebContent/file/touxiang.jpg 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 19 1970-01-01 00:00:00 19 2025-01-15 01:28:14 19 2021-09-05 06:20:49 0.000000000e+00 0 0 0 0 0 0 0 1080 1080 257172 0 0 0 0 0 0 0 0 0 0 0 3 jpg 1 0 0 0 0 6 1 1
1 0 0 -99 0 0 0 0 0 10 1 1
2 0 0 0 0 0 0 0.000000000e+00 0.000000000e+00 0.000000000e+00 0.000000000e+00
@@ -0,0 +1,4 @@
22 serialization::archive 19 0 0 0 0 2 1 2
0 0 2 0 107 /volume1/资料/A--开发--A/JAVA 开发/JAVA项目/MyCrm项目开发/20250115/mycrm/WebContent/file/wx.png 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 19 1970-01-01 00:00:00 19 2025-01-15 01:28:14 19 2021-10-12 02:25:10 0.000000000e+00 0 0 0 0 0 0 0 799 792 198346 0 0 0 0 0 0 0 0 0 0 0 3 png 1 0 0 0 0 6 1 1
1 0 0 -99 0 0 0 0 0 10 1 1
2 0 0 0 0 0 0 0.000000000e+00 0.000000000e+00 0.000000000e+00 0.000000000e+00
@@ -0,0 +1,4 @@
22 serialization::archive 19 0 0 0 0 2 1 2
0 0 2 0 112 /volume1/资料/A--开发--A/JAVA 开发/JAVA项目/MyCrm项目开发/20250115/mycrm/WebContent/file/wx_logo.png 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 19 1970-01-01 00:00:00 19 2025-01-15 01:28:14 19 2021-10-12 01:56:38 0.000000000e+00 0 0 0 0 0 0 0 28 56 2792 0 0 0 0 0 0 0 0 0 0 0 3 png 1 0 0 0 0 6 1 1
1 0 0 -99 0 0 0 0 0 10 1 1
2 0 0 0 0 0 0 0.000000000e+00 0.000000000e+00 0.000000000e+00 0.000000000e+00
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

+23
View File
@@ -0,0 +1,23 @@
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML5版Flappy Bird游戏在线演示</title>
<style>
#game_div, p {
width: 400px;
margin: auto;
margin-top: 20px;
}
</style>
<script type="text/javascript" src="${basePath}static/flappybird/phaser.min.js"></script>
<script type="text/javascript" src="${basePath}static/flappybird/main.js"></script>
</head>
<body>
<div id="game_div"> </div>
<p>敲击“空格键” 进行跳跃</p>
</body>
</html>
+80
View File
@@ -0,0 +1,80 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<head>
<meta charset="UTF-8">
<title>原生H5页面模拟APP侧滑删除效果</title>
<meta name="format-detection" content="telephone=no, email=no" />
<meta content="width=device-width, initial-scale=1,maximum-scale=1,maximum-scale=1, user-scalable=no" name="viewport">
<style>
*{ margin:0; padding:0; list-style:none}
body{ font-size:0.12rem; color:#666;}
.ui-loader{ display:none}
.my-address-list{overflow: hidden;}
.my-address-list .touch{background-color: #fff;border-bottom:0.01rem solid #bfc0c0;border-top:0.01rem solid #bfc0c0;margin-top:0.12rem;overflow: hidden;position: relative;}
.my-address-list .item.selected{-webkit-transform: translate(-18%,0);-webkit-transition:all 0.3s linear;}
.my-address-list .item{overflow: hidden;padding:0 0.15rem;width: 120%;-webkit-transition:all 0.3s linear;}
.my-address-list .item a{display:block;float: left; background-color: #ff0000;color: #fff;width: 20%;margin-left: 0.16rem;font-size: 0.14rem;text-align: center; text-decoration:none;}
.my-address-list .item .list{overflow: hidden;width: 2.7rem;font-size: 0.14rem;float: left;}
.my-address-list .item .list .name-phone{overflow: hidden;margin-top:0.05rem;}
.my-address-list .item .list .name-phone span{display: inline-block;}
.my-address-list .item .list .name-phone span.name{float: left;}
.my-address-list .item .list .name-phone span.phone{float: right;}
.my-address-list .item .list .address-info{margin:0.06rem 0;width: 100%;overflow: hidden;white-space: nowrap; text-overflow: ellipsis; -o-text-overflow: ellipsis;}
.my-address-list .item .icon2{overflow: hidden;float: left;margin-left:0.05rem;}
.my-address-list .item .icon2 i{width: 0.14rem;height: 0.14rem;margin-top:0.15rem;display: inline-block;background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAA0CAYAAACZ8ljPAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpEMjZBRDJENDIwOTgxMUU1QkQ1MjkzQTlGNEU3MTc0OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpEMjZBRDJENTIwOTgxMUU1QkQ1MjkzQTlGNEU3MTc0OCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkQyNkFEMkQyMjA5ODExRTVCRDUyOTNBOUY0RTcxNzQ4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkQyNkFEMkQzMjA5ODExRTVCRDUyOTNBOUY0RTcxNzQ4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+0Y0qkAAAASpJREFUeNq81ksOgjAQANAyXsD7uVJXEjdSjyGuDCQmGo9o9ABYtJAgv3Z+kzQspuG10w4hyQ7ZyhhzMb+w+Tm/G8EAjy39uNnM7qTB/ygk0Rq0mij4M0u10G9JHVpqoe0ZaqGdS6OB9m6pNDrUFqIojCWkUJhKSqAwN4EbhZBJnCiETuRCIWZ1HCjEngEVBcxNo6CA7ScsCpSvBgYlgRiUDMaiLGAMygaGoklVVew/Sv7lxUBqDUYgJnZ6EgFFGh9Z0iMoYqkr9QMUsZK1pCEYGxiKsYAxGBmMxUggBkODWAwFUrBokIpFgRxYMMiFBYGc2CzIjU2CEtgoKIUNgpJYD5TGOqAG1oJaWB2L9+u9cc+rBtbsMNfCxtpCDGvAvRtPP7aSWB0fAQYAnk/ypwazBP8AAAAASUVORK5CYII=) no-repeat center center;background-size: 50%;}
.my-address-list .item .mark{background: rgba(0,0,0,0.4);position: absolute;left: 0;top: 0;right: 0;bottom: 0;z-index: 100;text-align: center;}
.my-address-list .item .mark span{display: inline-block;padding:0.05rem 0.1rem;color: #fff;border:0.02rem solid #fff;position: absolute;left: 50%;top: 50%;-webkit-transform: translate(-50%,-50%);-moz-transform: translate(-50%,-50%);transform: translate(-50%,-50%);}
</style>
<script>
var fontSize = 100;
var elm = document.documentElement;
elm.style.fontSize = fontSize * (elm.clientWidth/320) + 'px';
</script>
</head>
<body>
<!-- 代码部分begin -->
<div class="my-address-list" id="my-address-list">
<div id="cc-loading"><span></span>玩命加载中...</div>
</div>
<script src="${basePath}static/hddelete/js/jquery.min.js"></script>
<script src="${basePath}static/hddelete/js/jquery.mobile-1.3.2.min.js"></script>
<script>
$(function(){
document.getElementById('cc-loading').style.display = 'none';
for(var i=0;i<10;i++){
var cont = '<div class="touch" id="touch'+i+'"><div class="item" userAddressId="1"><div class="list">';
cont += '<div class="name-phone"><span class="name">收货人姓名</span>';
cont += '<span class="phone">12345678912</span></div>';
cont += '<div class="address-info">这里是收货人姓名</div>';
cont += '</div><div class="icon2"><i></i></div><a href="javascript:;" class="remove">删除</a></div></div>';
$('#my-address-list').append(cont);
}
$(".item").each(function(){
var h = $(this).find(".list").height();
$(this).find("a").height(h+"px").css("line-height",h+"px");
$(this).find(".icon2").height(h+"px");
})
$(".item").on("swipeleft",function(){
$(this).addClass('selected').parents(".touch").siblings().find(".item").removeClass('selected');
$(this).find("a.remove").on("click",function(){
var touchId = $(this).parents(".touch").attr("id");
//执行删除效果
$("#"+touchId).css("border","0");
$("#"+touchId).stop().animate({
height:"0",
margin:"0"
},300,function(){
$(this).remove();
})
})
}).on("swiperight",function(){
$(this).parents(".touch").find(".item").removeClass('selected');
})
})
</script>
<!-- 代码部分end -->
</body>
</html>
+123
View File
@@ -0,0 +1,123 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="full-screen" content="yes"><!--UC强制全屏-->
<meta name="x5-fullscreen" content="true"><!--QQ强制全屏-->
<meta name="browsermode" content="application"><!--UC应用模式-->
<meta name="x5-page-mode" content="app"><!--QQ应用模式-->
<style type="text/css">
*{
margin: 0;
overflow: hidden;
}
canvas {
display: block;
cursor: none;
}
</style>
<title>你电脑被黑了(点击或按F11全屏)</title>
<script type="text/javascript">
window.onload=function(){
var c = document.getElementById("c");
var ctx = c.getContext("2d");
//使画布全屏
c.height = window.innerHeight;
c.width = window.innerWidth;
//要掉落的文字
var txts = "0123456789";
//转换为数组
txts = txts.split("");
var font_size = 16;
var columns = c.width/font_size; //计算纵队数
var drops = [];
//初始值
for(var x = 0; x < columns; x++)
drops[x] = 1;
//窗体大小发生改变
window.onresize = function(){
//使绘图区域全屏
c.height = window.innerHeight;
c.width = window.innerWidth;
columns = c.width/font_size; //计算纵队数
for(var x = 0; x < columns; x++)
drops[x] = 1;
}
//进入全屏
function requestFullScreen() {
var de = document.documentElement;
if (de.requestFullscreen) {
de.requestFullscreen();
} else if (de.mozRequestFullScreen) {
de.mozRequestFullScreen();
} else if (de.webkitRequestFullScreen) {
de.webkitRequestFullScreen();
}
}
//添加点击监听事件(点击全屏)
document.body.addEventListener('click',function(){
requestFullScreen(); //调用全屏
eleImage.requestPointerLock(); // 锁定鼠标
},false);
//绘制下落的文字
function draw()
{
//让背景逐渐由透明到不透明
ctx.fillStyle = "rgba(0, 0, 0, 0.05)";
ctx.fillRect(0, 0, c.width, c.height);
ctx.fillStyle = "#0F0"; //文本颜色(绿色)
ctx.font = font_size + "px arial";
//逐行输出文字
for(var i = 0; i < drops.length; i++)
{
//随机取要输出的文字
var text = txts[Math.floor(Math.random()*txts.length)];
//输出文字,注意坐标的计算
ctx.fillText(text, i*font_size, drops[i]*font_size);
//如果绘满一屏或随机数大于0.95(此数可自行调整,效果会不同)
if(drops[i]*font_size > c.height || Math.random() > 0.95)
drops[i] = 0;
//用于Y轴坐标增加
drops[i]++;
}
}
setInterval(draw, 33);//定时执行
}
</script>
</head>
<body>
<canvas id="c">很抱歉,您的浏览器不支持该功能!</canvas>
<!-- 百度统计 -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?ea4269d8a00e95fdb9ee61e3041a8f98";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>
File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More