diff --git a/WebContent/WEB-INF/jsp/pc/activity/activityEdit.jsp b/WebContent/WEB-INF/jsp/pc/activity/activityEdit.jsp index 3ac85bf..649d664 100644 --- a/WebContent/WEB-INF/jsp/pc/activity/activityEdit.jsp +++ b/WebContent/WEB-INF/jsp/pc/activity/activityEdit.jsp @@ -11,79 +11,56 @@ + -
+
- +
- +
不超过20个汉字
- +
- -
-
-
- -
- - +
+ + 建议尺寸:200*200 +
+ + +
+
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- --> +
@@ -91,15 +68,14 @@
-
+ + - + + + + + + \ No newline at end of file diff --git a/WebContent/WEB-INF/jsp/pc/activity/activityList.jsp b/WebContent/WEB-INF/jsp/pc/activity/activityList.jsp index 2e4f411..4347417 100644 --- a/WebContent/WEB-INF/jsp/pc/activity/activityList.jsp +++ b/WebContent/WEB-INF/jsp/pc/activity/activityList.jsp @@ -9,13 +9,6 @@ 文章列表 - @@ -29,24 +22,18 @@ 添加文章 - - +
- - - - - - - + + + -
No文章主图文章标题文章副标题商家名称商家地址商家电话是否首页显示主图标题更新时间 操作
暂无数据
@@ -67,14 +54,33 @@ var queryObj = { page: 1, - size: 10, + pagesize: 5, keyword: null }; + initData(queryObj); + + //查询 + form.on('submit(querybtn)', function(data) { + queryObj.keyword = $("[name=keyword]").val(); + queryObj.page = 1; + initData(queryObj) + }); + $(".resetBtn").on("click", function() { + $("[name=keyword]").val("") + queryObj.page = 1; + queryObj.keyword = null; + initData(queryObj) + return false + }) + //初始化数据 + initData(queryObj); + function initData(queryObj) { $.get("/zzhnc/article/getArticlesList", queryObj, function(data) { data = data.data; - console.log(data); + console.log(data) + var str = ""; if(data.rows.length < 1) { $(".nodata").show(); @@ -85,14 +91,11 @@ for(var i = 0; i < data.rows.length; i++) { str += '' + '' + ((data.page - 1) * data.pageSize + i + 1) + '' + - '' + - '' + data.rows[i].name + '' + - '' + data.rows[i].description + '' + - '' + data.rows[i].sellerName + '' + - '' + data.rows[i].sellerAddress + '' + - '' + data.rows[i].sellerPhone + '' + - '' + ' ' + - '修改' + + '' + + '' + data.rows[i].title + '' + + '' + toTime_G(data.rows[i].createdtime) + '' + + '' + + '修改' + '删除' + '' + ''; @@ -100,43 +103,24 @@ } $("#tablelist").html(str); - toNull_G(); - form.render(); laypage.render({ elem: 'page', count: data.totalPages, curr: queryObj.page, + skip: true, jump: function(obj, first) { if(!first) { queryObj.page = obj.curr initData(queryObj); } + } }); }) } - //初始化数据 - initData(queryObj); - - //查询 - form.on('submit(querybtn)', function(data) { - queryObj.keyword = $("[name=keyword]").val(); - queryObj.page = 1; - initData(queryObj) - }); - - //重置 - $(".resetBtn").on("click", function() { - $("[name=keyword]").val(""); - queryObj.page = 1; - queryObj.keyword = null; - initData(queryObj) - return false - }) - //添加文章 $(document).on("click", ".createBtn", function() { if(parent.tab.exists("添加文章") > 0) { @@ -144,12 +128,11 @@ parent.tab.deleteTab(tabid); } parent.tab.tabAdd({ - href: "/zzhnc/activity/activityEdit?id=0", + href: "/zzhnc/activity/activityEdit", icon: "fa-cubes", title: "添加文章" }); }) - //修改文章 $(document).on("click", ".updataBtn", function() { var id = $(this).parents("tr").attr("data-id"); @@ -163,12 +146,11 @@ title: "修改文章" }); }) - //删除文章 $(document).on("click", ".deleteBtn", function() { var id = $(this).parents("tr").attr("data-id"); layer.confirm('您确定要删除该文章吗?', { - btn: ['确定', '取消'] + btn: ['确定', '取消'] //按钮 }, function(index, layero) { $.get("/zzhnc/article/deleteArticle", { id: id diff --git a/WebContent/WEB-INF/jsp/pc/activity/activityindex.jsp b/WebContent/WEB-INF/jsp/pc/activity/activityindex.jsp deleted file mode 100644 index 05271a3..0000000 --- a/WebContent/WEB-INF/jsp/pc/activity/activityindex.jsp +++ /dev/null @@ -1,340 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> - - - - - - -红包配置 - - - - - -
- -
-
- -
-
- - -
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- - - - -
-
-
- -
- -
-
- -
- -
- -
-
- % -
-
-
- -
- -
-
提示:(该金额为缓存的已发放金额,每个保存会清零,实际发放金额以抽奖记录为准)
-
-
-
- -
- - - -
- -
- 至 -
-
- -
-
- 分 -
-
提示:只能输入正整数
-
-
-

粉丝输入以下关键字将触发万小二抽奖功能(多个关键字请以“|”分隔)

-
- -
-
-
-

红包活动欢迎语

-
- -
-
-
-

不赞美万小二时的提示语(多个请以“|”分隔),不填则仍给抽奖机会

-
- -
-
-
-

等待中奖结果提示语

-
- -
-
-
-

中奖提示语

-
- -
-
-
-

未中奖提示语

-
- -
-
-
-

第二次未中奖提示语

-
- -
-
-
-

活动结束后新粉丝触发抽奖后万小二回复内容

-
- -
-
-
-

粉丝中奖后,万小二向粉丝推送的红包链接标题

-
- -
-
-
-

粉丝中奖后,万小二向粉丝推送的红包链接的副标题

-
- -
-
-
-

粉丝当前轮次已经中奖后,万小二向粉丝回复的内容

-
- -
-
-
- - 保存 - - - -
-
- - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WebContent/WEB-INF/jsp/pc/autoresponse/autoresponse.jsp b/WebContent/WEB-INF/jsp/pc/autoresponse/autoresponse.jsp index 85f880c..aec08a2 100644 --- a/WebContent/WEB-INF/jsp/pc/autoresponse/autoresponse.jsp +++ b/WebContent/WEB-INF/jsp/pc/autoresponse/autoresponse.jsp @@ -8,9 +8,6 @@ 自动回复 - - - @@ -29,10 +26,10 @@ - - - - + + + + @@ -47,18 +44,21 @@
- -
- + +
+
-
多个关键词请用英文“ | ”分隔
+ +
+
+ +
注:多个关键词请用英文“ | ”分隔
-
- -
- +
+ +
+
-
注: 活动结束或过期后会自动停止推送
@@ -67,10 +67,9 @@ - - + + - diff --git a/WebContent/WEB-INF/jsp/pc/goods/goodsList.jsp b/WebContent/WEB-INF/jsp/pc/goods/goodsList.jsp index 2942db8..a8373cd 100644 --- a/WebContent/WEB-INF/jsp/pc/goods/goodsList.jsp +++ b/WebContent/WEB-INF/jsp/pc/goods/goodsList.jsp @@ -9,20 +9,13 @@ 商品列表 -
No关键字回复内容操作No关键字回复内容操作
- - - - - - - - + + + + + + - +
No头像昵称地区上级粉丝销售人员小程序 openid创建时间上次登录时间No轮次中奖人员红包礼品时间
-
暂无数据
+
暂无数据
- + - - + + diff --git a/WebContent/WEB-INF/res/arclist/1.gif b/WebContent/WEB-INF/res/arclist/1.gif deleted file mode 100644 index 5be27cb..0000000 Binary files a/WebContent/WEB-INF/res/arclist/1.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/10.gif b/WebContent/WEB-INF/res/arclist/10.gif deleted file mode 100644 index e8c4837..0000000 Binary files a/WebContent/WEB-INF/res/arclist/10.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/11.gif b/WebContent/WEB-INF/res/arclist/11.gif deleted file mode 100644 index b512dd5..0000000 Binary files a/WebContent/WEB-INF/res/arclist/11.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/12.gif b/WebContent/WEB-INF/res/arclist/12.gif deleted file mode 100644 index 547529c..0000000 Binary files a/WebContent/WEB-INF/res/arclist/12.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/13.gif b/WebContent/WEB-INF/res/arclist/13.gif deleted file mode 100644 index 3475300..0000000 Binary files a/WebContent/WEB-INF/res/arclist/13.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/14.gif b/WebContent/WEB-INF/res/arclist/14.gif deleted file mode 100644 index f2e8304..0000000 Binary files a/WebContent/WEB-INF/res/arclist/14.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/15.gif b/WebContent/WEB-INF/res/arclist/15.gif deleted file mode 100644 index debab8e..0000000 Binary files a/WebContent/WEB-INF/res/arclist/15.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/16.gif b/WebContent/WEB-INF/res/arclist/16.gif deleted file mode 100644 index 3f4cb25..0000000 Binary files a/WebContent/WEB-INF/res/arclist/16.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/17.gif b/WebContent/WEB-INF/res/arclist/17.gif deleted file mode 100644 index b6af218..0000000 Binary files a/WebContent/WEB-INF/res/arclist/17.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/18.gif b/WebContent/WEB-INF/res/arclist/18.gif deleted file mode 100644 index e045ff2..0000000 Binary files a/WebContent/WEB-INF/res/arclist/18.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/19.gif b/WebContent/WEB-INF/res/arclist/19.gif deleted file mode 100644 index efd650f..0000000 Binary files a/WebContent/WEB-INF/res/arclist/19.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/2.gif b/WebContent/WEB-INF/res/arclist/2.gif deleted file mode 100644 index a2644a9..0000000 Binary files a/WebContent/WEB-INF/res/arclist/2.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/20.gif b/WebContent/WEB-INF/res/arclist/20.gif deleted file mode 100644 index cb8cf6d..0000000 Binary files a/WebContent/WEB-INF/res/arclist/20.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/21.gif b/WebContent/WEB-INF/res/arclist/21.gif deleted file mode 100644 index 2913255..0000000 Binary files a/WebContent/WEB-INF/res/arclist/21.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/22.gif b/WebContent/WEB-INF/res/arclist/22.gif deleted file mode 100644 index 96516b8..0000000 Binary files a/WebContent/WEB-INF/res/arclist/22.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/23.gif b/WebContent/WEB-INF/res/arclist/23.gif deleted file mode 100644 index 5f925c7..0000000 Binary files a/WebContent/WEB-INF/res/arclist/23.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/24.gif b/WebContent/WEB-INF/res/arclist/24.gif deleted file mode 100644 index 97f8b1a..0000000 Binary files a/WebContent/WEB-INF/res/arclist/24.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/25.gif b/WebContent/WEB-INF/res/arclist/25.gif deleted file mode 100644 index c0aa92e..0000000 Binary files a/WebContent/WEB-INF/res/arclist/25.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/26.gif b/WebContent/WEB-INF/res/arclist/26.gif deleted file mode 100644 index cc083b7..0000000 Binary files a/WebContent/WEB-INF/res/arclist/26.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/27.gif b/WebContent/WEB-INF/res/arclist/27.gif deleted file mode 100644 index 298c3e5..0000000 Binary files a/WebContent/WEB-INF/res/arclist/27.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/28.gif b/WebContent/WEB-INF/res/arclist/28.gif deleted file mode 100644 index e6602f9..0000000 Binary files a/WebContent/WEB-INF/res/arclist/28.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/29.gif b/WebContent/WEB-INF/res/arclist/29.gif deleted file mode 100644 index e24a180..0000000 Binary files a/WebContent/WEB-INF/res/arclist/29.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/3.gif b/WebContent/WEB-INF/res/arclist/3.gif deleted file mode 100644 index 40cfda4..0000000 Binary files a/WebContent/WEB-INF/res/arclist/3.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/30.gif b/WebContent/WEB-INF/res/arclist/30.gif deleted file mode 100644 index 9b25baf..0000000 Binary files a/WebContent/WEB-INF/res/arclist/30.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/31.gif b/WebContent/WEB-INF/res/arclist/31.gif deleted file mode 100644 index e96eee7..0000000 Binary files a/WebContent/WEB-INF/res/arclist/31.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/32.gif b/WebContent/WEB-INF/res/arclist/32.gif deleted file mode 100644 index 3dbd98f..0000000 Binary files a/WebContent/WEB-INF/res/arclist/32.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/33.gif b/WebContent/WEB-INF/res/arclist/33.gif deleted file mode 100644 index e9d4213..0000000 Binary files a/WebContent/WEB-INF/res/arclist/33.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/34.gif b/WebContent/WEB-INF/res/arclist/34.gif deleted file mode 100644 index d6da2c3..0000000 Binary files a/WebContent/WEB-INF/res/arclist/34.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/35.gif b/WebContent/WEB-INF/res/arclist/35.gif deleted file mode 100644 index c1e6ac9..0000000 Binary files a/WebContent/WEB-INF/res/arclist/35.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/36.gif b/WebContent/WEB-INF/res/arclist/36.gif deleted file mode 100644 index 489f0f9..0000000 Binary files a/WebContent/WEB-INF/res/arclist/36.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/37.gif b/WebContent/WEB-INF/res/arclist/37.gif deleted file mode 100644 index 734f6d8..0000000 Binary files a/WebContent/WEB-INF/res/arclist/37.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/38.gif b/WebContent/WEB-INF/res/arclist/38.gif deleted file mode 100644 index 17e7e25..0000000 Binary files a/WebContent/WEB-INF/res/arclist/38.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/39.gif b/WebContent/WEB-INF/res/arclist/39.gif deleted file mode 100644 index 99139e1..0000000 Binary files a/WebContent/WEB-INF/res/arclist/39.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/4.gif b/WebContent/WEB-INF/res/arclist/4.gif deleted file mode 100644 index 6d6f762..0000000 Binary files a/WebContent/WEB-INF/res/arclist/4.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/40.gif b/WebContent/WEB-INF/res/arclist/40.gif deleted file mode 100644 index e62312a..0000000 Binary files a/WebContent/WEB-INF/res/arclist/40.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/41.gif b/WebContent/WEB-INF/res/arclist/41.gif deleted file mode 100644 index 650d3dd..0000000 Binary files a/WebContent/WEB-INF/res/arclist/41.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/42.gif b/WebContent/WEB-INF/res/arclist/42.gif deleted file mode 100644 index 5c8e071..0000000 Binary files a/WebContent/WEB-INF/res/arclist/42.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/43.gif b/WebContent/WEB-INF/res/arclist/43.gif deleted file mode 100644 index f3cb074..0000000 Binary files a/WebContent/WEB-INF/res/arclist/43.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/44.gif b/WebContent/WEB-INF/res/arclist/44.gif deleted file mode 100644 index 2893837..0000000 Binary files a/WebContent/WEB-INF/res/arclist/44.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/45.gif b/WebContent/WEB-INF/res/arclist/45.gif deleted file mode 100644 index 27a30c1..0000000 Binary files a/WebContent/WEB-INF/res/arclist/45.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/46.gif b/WebContent/WEB-INF/res/arclist/46.gif deleted file mode 100644 index dcfa48a..0000000 Binary files a/WebContent/WEB-INF/res/arclist/46.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/47.gif b/WebContent/WEB-INF/res/arclist/47.gif deleted file mode 100644 index 029cf0f..0000000 Binary files a/WebContent/WEB-INF/res/arclist/47.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/48.gif b/WebContent/WEB-INF/res/arclist/48.gif deleted file mode 100644 index 69f183f..0000000 Binary files a/WebContent/WEB-INF/res/arclist/48.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/49.gif b/WebContent/WEB-INF/res/arclist/49.gif deleted file mode 100644 index d41e8aa..0000000 Binary files a/WebContent/WEB-INF/res/arclist/49.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/5.gif b/WebContent/WEB-INF/res/arclist/5.gif deleted file mode 100644 index 90c3d86..0000000 Binary files a/WebContent/WEB-INF/res/arclist/5.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/50.gif b/WebContent/WEB-INF/res/arclist/50.gif deleted file mode 100644 index 517ce36..0000000 Binary files a/WebContent/WEB-INF/res/arclist/50.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/51.gif b/WebContent/WEB-INF/res/arclist/51.gif deleted file mode 100644 index 57d4187..0000000 Binary files a/WebContent/WEB-INF/res/arclist/51.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/52.gif b/WebContent/WEB-INF/res/arclist/52.gif deleted file mode 100644 index d0d0856..0000000 Binary files a/WebContent/WEB-INF/res/arclist/52.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/53.gif b/WebContent/WEB-INF/res/arclist/53.gif deleted file mode 100644 index 9cb9aa7..0000000 Binary files a/WebContent/WEB-INF/res/arclist/53.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/54.gif b/WebContent/WEB-INF/res/arclist/54.gif deleted file mode 100644 index 27019f8..0000000 Binary files a/WebContent/WEB-INF/res/arclist/54.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/55.gif b/WebContent/WEB-INF/res/arclist/55.gif deleted file mode 100644 index 24284cf..0000000 Binary files a/WebContent/WEB-INF/res/arclist/55.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/56.gif b/WebContent/WEB-INF/res/arclist/56.gif deleted file mode 100644 index 92efec6..0000000 Binary files a/WebContent/WEB-INF/res/arclist/56.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/57.gif b/WebContent/WEB-INF/res/arclist/57.gif deleted file mode 100644 index 9042b9d..0000000 Binary files a/WebContent/WEB-INF/res/arclist/57.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/58.gif b/WebContent/WEB-INF/res/arclist/58.gif deleted file mode 100644 index f36cf58..0000000 Binary files a/WebContent/WEB-INF/res/arclist/58.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/59.gif b/WebContent/WEB-INF/res/arclist/59.gif deleted file mode 100644 index edf96f0..0000000 Binary files a/WebContent/WEB-INF/res/arclist/59.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/6.gif b/WebContent/WEB-INF/res/arclist/6.gif deleted file mode 100644 index a26b001..0000000 Binary files a/WebContent/WEB-INF/res/arclist/6.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/60.gif b/WebContent/WEB-INF/res/arclist/60.gif deleted file mode 100644 index 66d2113..0000000 Binary files a/WebContent/WEB-INF/res/arclist/60.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/61.gif b/WebContent/WEB-INF/res/arclist/61.gif deleted file mode 100644 index 034933e..0000000 Binary files a/WebContent/WEB-INF/res/arclist/61.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/62.gif b/WebContent/WEB-INF/res/arclist/62.gif deleted file mode 100644 index 310ec65..0000000 Binary files a/WebContent/WEB-INF/res/arclist/62.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/63.gif b/WebContent/WEB-INF/res/arclist/63.gif deleted file mode 100644 index 61652a7..0000000 Binary files a/WebContent/WEB-INF/res/arclist/63.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/64.gif b/WebContent/WEB-INF/res/arclist/64.gif deleted file mode 100644 index 9a77936..0000000 Binary files a/WebContent/WEB-INF/res/arclist/64.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/65.gif b/WebContent/WEB-INF/res/arclist/65.gif deleted file mode 100644 index 2329101..0000000 Binary files a/WebContent/WEB-INF/res/arclist/65.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/66.gif b/WebContent/WEB-INF/res/arclist/66.gif deleted file mode 100644 index 644748a..0000000 Binary files a/WebContent/WEB-INF/res/arclist/66.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/67.gif b/WebContent/WEB-INF/res/arclist/67.gif deleted file mode 100644 index fbf275b..0000000 Binary files a/WebContent/WEB-INF/res/arclist/67.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/68.gif b/WebContent/WEB-INF/res/arclist/68.gif deleted file mode 100644 index 076f0c6..0000000 Binary files a/WebContent/WEB-INF/res/arclist/68.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/69.gif b/WebContent/WEB-INF/res/arclist/69.gif deleted file mode 100644 index f7152f9..0000000 Binary files a/WebContent/WEB-INF/res/arclist/69.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/7.gif b/WebContent/WEB-INF/res/arclist/7.gif deleted file mode 100644 index d03ca93..0000000 Binary files a/WebContent/WEB-INF/res/arclist/7.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/70.gif b/WebContent/WEB-INF/res/arclist/70.gif deleted file mode 100644 index 4d8b15e..0000000 Binary files a/WebContent/WEB-INF/res/arclist/70.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/71.gif b/WebContent/WEB-INF/res/arclist/71.gif deleted file mode 100644 index d58fcf6..0000000 Binary files a/WebContent/WEB-INF/res/arclist/71.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/72.gif b/WebContent/WEB-INF/res/arclist/72.gif deleted file mode 100644 index c4e00bd..0000000 Binary files a/WebContent/WEB-INF/res/arclist/72.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/73.gif b/WebContent/WEB-INF/res/arclist/73.gif deleted file mode 100644 index 2dc2ea8..0000000 Binary files a/WebContent/WEB-INF/res/arclist/73.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/74.gif b/WebContent/WEB-INF/res/arclist/74.gif deleted file mode 100644 index a462a0a..0000000 Binary files a/WebContent/WEB-INF/res/arclist/74.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/75.gif b/WebContent/WEB-INF/res/arclist/75.gif deleted file mode 100644 index 608d0ad..0000000 Binary files a/WebContent/WEB-INF/res/arclist/75.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/8.gif b/WebContent/WEB-INF/res/arclist/8.gif deleted file mode 100644 index 2e97e13..0000000 Binary files a/WebContent/WEB-INF/res/arclist/8.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/arclist/9.gif b/WebContent/WEB-INF/res/arclist/9.gif deleted file mode 100644 index 73fc097..0000000 Binary files a/WebContent/WEB-INF/res/arclist/9.gif and /dev/null differ diff --git a/WebContent/WEB-INF/res/authRedirect.html b/WebContent/WEB-INF/res/authRedirect.html deleted file mode 100644 index 7ce0c5f..0000000 --- a/WebContent/WEB-INF/res/authRedirect.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - - - - - -

- 微信号配置 -

-
-
-

- 授权成功! -

-
- -
- - - - - - - - diff --git a/WebContent/WEB-INF/res/css/basic.css b/WebContent/WEB-INF/res/css/basic.css index 49957c4..09d5406 100644 --- a/WebContent/WEB-INF/res/css/basic.css +++ b/WebContent/WEB-INF/res/css/basic.css @@ -1,4 +1,5 @@ @charset "UTF-8"; + /*----------------登录页面-----------------*/ .loginblock { @@ -87,28 +88,74 @@ /*-----------登录页面 end-----------*/ + +/*-----------公共样式-----------*/ + .wrap { padding: 16px; } -.nodata{ - text-align: center; - height: 100px; +.nodata { + text-align: center; + height: 100px; line-height: 100px; display: none; } +.redrequired { + color: #ff0000; + margin-right: 5px; +} + +.layui-code, .layui-upload-list{ + margin: 0; +} + +.layui-upload-list { + width: 200px; + max-height: 200px; + overflow: hidden; + clear: both; +} + +.layui-upload-list img { + width: 100%; + border-radius: 4px; +} + +.layui-table td, +.layui-table th { + text-align: center; +} + +.layui-form-label { + width: 100px; +} + +.imgUrl { + width: 50px; + height: 50px; +} + +#upload{ + float: left; + margin-right: 10px; +} + +/*-----------公共样式 end-----------*/ + + /*-------------弹出框-------------*/ + .popupbox { width: 100%; } + .popupbos { background-color: #fff; - border-bottom-left-radius: 6px; - border-bottom-right-radius: 6px; width: 100%; - margin: auto; - padding-top: 20px; + padding: 16px 26px 16px 16px; + box-sizing: border-box; } .popupbos p { @@ -118,15 +165,16 @@ margin-bottom: 40px; color: #666; } -.popupbox .layui-form-label { - width: 126px; +.popupbos .layui-form-label{ + width: 90px; + padding: 9px 0; } - -.layui-table td, .layui-table th{ - text-align: center; +.popupbos .layui-input-block{ + margin-left: 90px; +} +.popupbos .layui-form-mid{ + padding: 0!important; } - -/*-------------弹出框 end-------------*/ - +/*-------------弹出框 end-------------*/ \ No newline at end of file diff --git a/WebContent/WEB-INF/res/css/fansInfo.css b/WebContent/WEB-INF/res/css/fansInfo.css deleted file mode 100644 index c4f5890..0000000 --- a/WebContent/WEB-INF/res/css/fansInfo.css +++ /dev/null @@ -1,238 +0,0 @@ -#fansInfoBox { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: #efefef; - z-index: 100000000; - display: none; - align-items: center; - color: #333; -} - -#fansInfoBox .section { - padding: 10px 20px; - /* border: 1px solid #999; */ - background-color: #fff; - margin: 10px 0; -} - -#fansInfoBox .flexBox { - display: flex; -} - -#fansInfoBox .userLogo { - width: 70px; - height: 70px; - border-radius: 4px; -} - -#fansInfoBox .userLogo img { - width: 100%; - height: 100%; -} - -#fansInfoBox .userInfo { - flex: 1; -} - -#fansInfoBox .userInfo>p:first-child { - margin-bottom: 12px; - padding-left: 10px; - box-sizing: border-box; -} - -#fansInfoBox .labels span { - background-color: #b50005; - color: #fff; - font-size: 0.8em; - padding: 1px 8px; - margin: 2px; - display: inline-block; -} - -#fansInfoBox .noteStyle { - margin-top: 4px; - font-size: 0.9em; - color: #666; -} - -#fansInfoBox .noteStyle>div:first-child { - width: 80px; - padding-left: 10px; - box-sizing: border-box; -} - -#fansInfoBox .labels { - flex: 1; -} - -#fansInfoBox .labelTitle { - width: 80px; -} - -#fansInfoBox .subSection { - padding: 10px 0; - border-bottom: 1px solid #eee; -} - -#fansInfoBox .editStyle { - justify-content: space-between; -} - -#fansInfoBox .editStyle .iconfont { - color: #333; - font-size: 1.2em; -} - -#fansInfoBox textarea { - width: 100%; - height: 80px; - margin-top: 20px; - border-radius: 6px; - resize: none; - padding: 10px; - box-sizing: border-box; - background: none; - border: 1px solid #eee; - outline: none; - -webkit-appearance: none; -} - -#fansInfoBox .btnBox { - width: 100%; - padding: 0 20px; - box-sizing: border-box; - margin-top: 40px; -} - -#fansInfoBox button { - background: none; - border: none; - background-color: #b50005; - color: #fff; - width: 100%; - height: 40px; - border-radius: 2px; - font-size: 14px; -} - -#fansInfoBox #closeLabelFn { - background-color: #fff; - margin-top: 10px; - color: #b50005; -} - -#fansInfoBox .editLabels { - display: flex; - justify-content: space-between; - display: none; -} - -#fansInfoBox .editLabels input { - flex: 1; - height: 100%; - border: 1px solid #eee; - margin-right: 8px; - box-sizing: border-box; - outline: none; - -webkit-appearance: none; -} - -#fansInfoBox .editLabels .iconfont { - color: #b50005; -} - -#fansInfoBox .telValue, -#fansInfoBox .nameValue { - width: 100%; - border: none; - background: none; - font-size: 1em; - padding: 0; - color: #333; -} - -#fansInfoBox .fansInfoBox_label { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: #eee; - display: none; - box-sizing: border-box; -} - -#fansInfoBox .fansInfoBox_label .labelConent { - background-color: #fff; - padding: 10px; - border-bottom: 1px solid #ccc; -} - -#fansInfoBox .fansInfoBox_label .tagInput { - display: flex; -} - -#fansInfoBox .fansInfoBox_label .tagInput input { - height: 24px; - border: 1px solid #eee; - box-sizing: border-box; - padding-left: 10px; - flex: 1; -} - -#fansInfoBox .fansInfoBox_label .tagInput .addTag { - width: 50px; - height: 24px; - font-size: 12px; - margin-left: 10px; -} - -#fansInfoBox .fansInfoBox_label .userTags { - margin-bottom: 10px; - background-color: #fff; -} - -#fansInfoBox .fansInfoBox_label .userTags span, -.tagListBox span { - border: 1px solid rgba(181, 0, 5, 0.4); - border-radius: 20px; - color: #b50005; - font-size: 0.8em; - padding: 2px 8px; - margin: 2px; - margin-top: 10px; - display: inline-block; -} - -#fansInfoBox .fansInfoBox_label .tagHistory span.unSelect { - color: rgba(181, 0, 5, 0.4); - border: 1px solid #aaa; -} - -#fansInfoBox .tagHistory { - padding: 10px; - box-sizing: border-box; -} - -#fansInfoBox .tagHistory .title { - color: #999; -} - -#fansInfoBox .tagListBox { - margin-top: 10px; -} - -#fansInfoBox .saveTagBtnBox { - padding: 10px; - box-sizing: border-box; - margin-top: 50px; -} - -#fansInfoBox .saveTagBtnBox .close { - background-color: #fff; - color: #b50005; - margin-top: 10px; -} \ No newline at end of file diff --git a/WebContent/WEB-INF/res/css/fansInfoQuery.css b/WebContent/WEB-INF/res/css/fansInfoQuery.css deleted file mode 100644 index d445196..0000000 --- a/WebContent/WEB-INF/res/css/fansInfoQuery.css +++ /dev/null @@ -1,143 +0,0 @@ -#queryFansBox { - width: 100%; - height: 100%; - background-color: #fff; - position: absolute; - top: 0; - left: 0; - z-index: 100000000; - display: none; -} - -.queryBtn { - width: 30px; - height: 30px; - position: absolute; - top: 20px; - right: 20px; -} - -.qeruySection { - width: 100%; - height: 46px; - background-color: #efefef; - display: flex; - padding: 8px; - box-sizing: border-box; -} - -.qeruySection>div:first-child { - background-color: #fff; - height: 30px; - padding-left: 20px; - border-radius: 4px; - flex: 1; -} - -.qeruySection>div:first-child>div { - margin-top: 5px; - height: 20px; - position: relative; - /* background-color: red; */ -} - -.qeruySection>div:nth-child(2) { - width: 50px; - text-align: center; - height: 30px; - line-height: 30px; -} - -.qeruySection>div:nth-child(2) .icon-duihao { - color: #1AAD19; - display: none; -} - -.qeruySection>div:nth-child(2) button { - background: none; - border: none; - color: #1AAD19; - height: 30px; -} - -.qeruySection>div:first-child .iconfont { - color: #999; - font-size: 14px; -} - -#queryFansBox input { - outline: none; - -webkit-appearance: none; - border: none; - background: none; - height: 100%; - width: calc(100% - 38px); -} - -.queryLabelsBox { - padding: 20px; -} - -.queryLabelsBox .title { - text-align: center; - color: #999; - font-size: 14px; -} - -.qeruySection .icon-guanbi { - position: absolute; - right: 10px; - top: 0; - font-size: 18px; - display: none; -} - -.queryLabelsBox .labelsList span { - border: 1px solid #1AAD19; - border-radius: 20px; - color: #1AAD19; - font-size: 0.8em; - padding: 2px 8px; - margin: 6px; - margin-top: 10px; - display: inline-block; -} - -.queryFansItemBox { - display: flex; - padding: 10px 20px; - background-color: #fff; - border-bottom: 1px solid #eee; -} - -.queryFansItemBox .userLogo { - width: 36px; - height: 36px; - border-radius: 50%; -} - -.queryFansItemBox .content { - flex: 1; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.queryFansItemBox .content p { - padding-left: 10px; -} - -.queryFansItemBox .content p:nth-child(2) { - color: #999; - font-size: 0.8em; - margin-top: 6px; - width: 100%; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.queryFansItemBox .lastTime { - color: #999; - font-size: 0.8em; -} \ No newline at end of file diff --git a/WebContent/WEB-INF/res/css/layim.css b/WebContent/WEB-INF/res/css/layim.css deleted file mode 100644 index eb5de9c..0000000 --- a/WebContent/WEB-INF/res/css/layim.css +++ /dev/null @@ -1,2 +0,0 @@ -/** layui-v2.1.5 MIT License By http://www.layui.com */ -.layim-tab-content li h5,.layui-layim-list li{border-bottom:1px solid #f2f2f2;cursor:pointer}html #layuicss-skinlayim-mobilecss{display:none;position:absolute;width:1989px}.layim-tab-content li h5 *,.layui-layim-skin li,.layui-layim-tab li,.layui-layim-tool li{display:inline-block;vertical-align:top;*zoom:1;*display:inline}.layim-tab-content li h5 span,.layui-layim-list li p,.layui-layim-list li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layui-layim-tab{position:absolute;bottom:0;left:0;right:0;height:50px;border-top:1px solid #f2f2f2;background-color:#fff}.layui-layim-tab li{position:relative;width:33.33%;height:50px;text-align:center;color:#666;color:rgba(0,0,0,.6);cursor:pointer}.layui-layim-tab li .layui-icon{position:relative;top:7px;font-size:25px}.layui-layim-tab li span{position:relative;bottom:-3px;display:block;font-size:12px}.layui-layim-tab li[lay-type=more] .layui-icon{top:4px;font-size:22px}.layui-layim-tab li.layim-this{color:#3FDD86}.layim-new{display:none;position:absolute;top:5px;left:50%;margin-left:15px;width:10px;height:10px;border-radius:10px;background-color:#F74C31;color:#fff}.layim-list-top .layim-new{position:relative;vertical-align:top;top:10px;left:initial;margin-left:5px}.layim-list-top i.layui-show{display:inline-block!important}.layim-tab-content,.layim-tab-content li ul{display:none}.layui-layim{position:fixed;left:0;right:0;top:50px;bottom:50px;overflow-y:auto;overflow-x:hidden;/*-webkit-overflow-scrolling:touch*/}.layim-tab-content li h5{position:relative;padding-left:35px;height:45px;line-height:45px;font-size:0;white-space:nowrap;overflow:hidden}.layim-tab-content li h5 *{font-size:17px}.layim-tab-content li h5 span{max-width:80%}.layim-tab-content li h5 i{position:absolute;left:12px;top:0;color:#C9BDBB}.layim-tab-content li h5 em{padding-left:5px;color:#999}.layim-list-friend,.layim-list-group{background-color:#fff}.layui-layim-list li{position:relative;height:42px;padding:5px 15px 5px 60px;font-size:0}.layui-layim-list li:active{background-color:#F2F2F2;background-color:rgba(0,0,0,.05)}.layui-layim-list li.layim-null{height:20px;line-height:20px;padding:10px 0;color:#999;text-align:center;cursor:default;font-size:14px}.layim-list-history li.layim-null{padding:30px 0;border-bottom:none;background-color:#eee}.layui-layim-list li *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:17px}.layui-layim-list li span{margin-top:2px;max-width:155px;font-size:17px}.layui-layim-list li img{position:absolute;left:12px;top:8px;width:36px;height:36px;border-radius:100%}.layui-layim-list li p{display:block;padding-right:30px;line-height:18px;font-size:13px;color:#999}.layui-layim-list li .layim-msg-status{display:none;position:absolute;right:10px;bottom:7px;padding:0 5px;height:17px;line-height:17px;border-radius:17px;text-align:center;font-size:10px;background-color:#F74C31;color:#fff}.layim-list-gray{-webkit-filter:grayscale(100%);-ms-filter:grayscale(100%);filter:grayscale(100%);filter:gray}.layim-list-top{background-color:#fff;font-size:17px}.layim-list-top li{position:relative;padding:0 15px 0 50px;line-height:45px;border-bottom:1px solid #f2f2f2;cursor:pointer}.layim-list-top li:last-child{margin-bottom:10px;border-bottom:none}.layim-list-top li .layui-icon{position:absolute;left:12px;top:0;margin-right:10px;color:#36373C;font-size:24px}.layim-list-top li[layim-event=newFriend] .layui-icon{left:15px}.layim-panel,.layim-title{position:fixed;left:0;right:0;top:0}.layim-list-top li[layim-event=group] .layui-icon{font-size:20px}.layim-list-top li[layim-event=about] .layui-icon{font-size:25px}.layim-panel{bottom:0;background-color:#eee;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}.layim-title{height:50px;line-height:50px;padding:0 15px;background-color:#36373C;color:#fff;font-size:18px}.layim-chat-status{padding-left:15px;font-size:14px;opacity:.7}.layim-title .layim-chat-back{display:inline-block;vertical-align:middle;position:relative;padding:0 15px;margin-left:-10px;top:0;font-size:24px;cursor:pointer}.layim-chat-detail{position:absolute;right:0;top:0;padding:0 15px;font-size:18px;cursor:pointer}.layim-chat-main,.layim-content{position:fixed;top:50px;left:0;right:0;overflow-y:auto;overflow-x:hidden}.layim-chat-detail:active,.layim-title .layim-chat-back:active{opacity:.8}.layui-layim .layim-title{text-align:left}.layui-layim .layim-title p{padding:0 15px}.layim-content{bottom:0}.layim-chat-main{width:100%;bottom:85px;padding:15px;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important}.layim-chat-main ul{overflow-x:hidden}.layim-chat-main ul li{position:relative;font-size:0;margin-bottom:10px;padding-left:60px;min-height:68px}.layim-chat-text,.layim-chat-user{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:15px}.layim-chat-user{position:absolute;left:3px}.layim-chat-user img{width:40px;height:40px;border-radius:100%}.layim-chat-user cite{position:absolute;left:60px;top:-2px;width:500px;line-height:24px;font-size:12px;white-space:nowrap;color:#999;text-align:left;font-style:normal}.layim-chat-user cite i{padding-left:15px;font-style:normal}.layim-chat-text{position:relative;min-height:22px;line-height:22px;margin-top:25px;padding:8px 15px;background-color:#fff;border-radius:3px;color:#333;word-break:break-all}.layim-chat-text:after{content:'';position:absolute;left:-10px;top:13px;width:0;height:0;border-style:solid dashed dashed;border-color:#fff transparent transparent;overflow:hidden;border-width:10px}.layim-chat-text a{color:#33DF83}.layim-chat-text img{max-width:100%;vertical-align:middle}.layim-chat-text .layui-layim-file,.layui-layim-file{display:block;text-align:center}.layim-chat-text .layui-layim-file{color:#333}.layui-layim-file:active{opacity:.9}.layui-layim-file i{font-size:80px;line-height:80px}.layui-layim-file cite{display:block;line-height:20px;font-size:17px}.layui-layim-audio{text-align:center;cursor:pointer}.layui-layim-audio .layui-icon{position:relative;top:5px;font-size:24px}.layui-layim-audio p{margin-top:3px}.layui-layim-video{width:120px;height:80px;line-height:80px;background-color:#333;text-align:center;border-radius:3px}.layui-layim-video .layui-icon{font-size:36px;cursor:pointer;color:#fff}.layim-chat-main ul .layim-chat-mine{text-align:right;padding-left:0;padding-right:60px}.layim-chat-mine .layim-chat-user{left:auto;right:3px}.layim-chat-mine .layim-chat-user cite{left:auto;right:60px;text-align:right}.layim-chat-mine .layim-chat-user cite i{padding-left:0;padding-right:15px}.layim-chat-mine .layim-chat-text{margin-left:0;text-align:left;background-color:#5FB878;color:#fff}.layim-chat-mine .layim-chat-text:after{left:auto;right:-10px;border-top-color:#5FB878}.layim-chat-mine .layim-chat-text a{color:#fff}.layim-chat-main ul .layim-chat-system{min-height:0;margin:20px 0 5px;padding:0}.layim-chat-system{margin:10px 0;text-align:center}.layim-chat-system span{display:inline-block;line-height:30px;padding:0 15px;border-radius:3px;background-color:#ddd;color:#fff;font-size:14px;cursor:pointer}.layim-chat-footer{position:fixed;bottom:0;left:10px;right:10px;height:80px}.layim-chat-send{display:-webkit-box;display:-webkit-flex;display:flex}.layim-chat-send input{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:40px;padding-left:5px;border:0;background-color:#fff;border-radius:3px}.layim-chat-send button{border-radius:3px;height:40px;padding:0 20px;border:0;margin-left:10px;background-color:#5FB878;color:#fff}.layim-chat-tool{position:relative;width:100%;overflow-x:auto;padding:0;height:38px;line-height:38px;margin-top:3px;font-size:0;white-space:nowrap}.layim-chat-tool span{position:relative;margin:0 15px;display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:28px;cursor:pointer}.layim-chat-tool .layim-tool-log{position:absolute;right:5px;font-size:14px}.layim-tool-log i{position:relative;top:2px;margin-right:5px;font-size:20px;color:#999}.layim-tool-image input{position:absolute;font-size:0;left:0;top:0;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layim-layer{position:fixed;bottom:85px;left:10px;right:10px;margin:0 auto}.layui-layim-face{position:relative;max-height:180px;overflow:auto;padding:10px;font-size:0}.layui-layim-face li{cursor:pointer;display:inline-block;vertical-align:bottom;padding:5px 2px;text-align:center;width:10%;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important}.layui-layim-face li img{width:22px;height:22px}.layim-about{font-size:17px}.layim-about .layui-m-layercont{text-align:left}.layim-about .layui-m-layercont p{line-height:30px}.layim-about .layui-m-layercont a{color:#01AAED} diff --git a/WebContent/WEB-INF/res/css/Layuiglobal.css b/WebContent/WEB-INF/res/css/layout.css index 0fe6120..fa37c1c 100644 --- a/WebContent/WEB-INF/res/css/Layuiglobal.css +++ b/WebContent/WEB-INF/res/css/layout.css @@ -1,10 +1,10 @@ -/* 甯冨眬 */ +/*----*/ .site-inline{font-size: 0;} .site-tree, .site-content{display: inline-block; *display:inline; *zoom:1; vertical-align: top; font-size: 14px;} .site-tree{width: 220px; min-height: 900px; padding: 5px 0 20px;} .site-content{width: 899px; min-height: 900px; padding: 20px 0 10px 20px;} -/* 澶撮儴admin-side-toggle */ +/*--admin-side-toggle--*/ .header{height: 65px; border-bottom: 1px solid #404553; background-color: #393D49; color: #fff;} .logo{position: absolute; left: 0; top: 20px;} .logo img{ width: 160px;} @@ -21,30 +21,27 @@ .header-index{background-color: #080018; border: none;} -.layui-layout-admin .header-demo{border-bottom-color: #1AA094; height: auto;} +.layui-layout-admin .header-demo{border-bottom-color: #1AA094; height: auto;} +.layui-nav-tree .layui-nav-more {right: 30px;} +.layui-layout-admin .layui-side {top: 70px!important;} +.layui-layout-admin .header-demo {border: none;} .header-demo .layui-nav{top: 0;} .header-demo .layui-nav .layui-nav-item{margin: 0 10px; line-height: 65px;} .header-demo .layui-nav .layui-nav-item a{color: #999;} -/*.header-demo .layui-nav .layui-this{background-color: #f2f2f2;}*/ .header-demo .layui-nav .layui-nav-item a:hover, .header-demo .layui-nav .layui-this a{color: #fff;} .header-demo .layui-nav .layui-this:after, -/*.header-demo .layui-nav-bar{background-color: #393D49;}*/ -/*.header-demo .layui-nav .layui-this a{padding: 0 20px;}*/ .header-demo .layui-nav .layui-show dd a:hover{color: #009688;} -/* 搴曢儴 */ +/*---底部---*/ .footer{padding: 30px 0; line-height: 30px; text-align: center; background-color: #eee; color: #666; font-weight: 300;} body .layui-layout-admin .footer-demo{height: auto; padding: 5px 0; line-height: 26px;} .footer a{padding: 0 5px;} -/* 棣栭〉banner閮ㄥ垎 */ +/*------*/ .site-banner{position: relative; height: 600px; text-align: center; overflow: hidden; background-color: #393D49;} -.site-banner-bg -,.site-banner-main{position: absolute; left: 0; top: 0; width: 100%; height: 100%;} +.site-banner-bg,.site-banner-main{position: absolute; left: 0; top: 0; width: 100%; height: 100%;} .site-banner-bg{background-position: center 0;} - - .site-zfj{padding-top: 25px; height: 220px;} .site-zfj i{position: absolute; left: 50%; top: 25px; width: 200px; height: 200px; margin-left: -100px; font-size: 200px; color: #c2c2c2;} @@ -79,7 +76,6 @@ body .layui-layout-admin .footer-demo{height: auto; padding: 5px 0; line-height: .layui-anim-scaleSpring{-webkit-animation-name: layui-scale-spring; animation-name: layui-scale-spring} .site-zfj-anim i{-webkit-animation-name: site-zfj; animation-name: site-zfj; -webkit-animation-duration: 5s; animation-duration: 5s; -webkit-animation-timing-function: linear; animation-timing-function: linear;} - .site-desc{position: relative; height: 70px; margin-top: 25px; background: url(../images/layui/desc.png) center no-repeat;} .site-desc-anim{-webkit-animation-name: site-desc; animation-name: site-desc;} @@ -103,12 +99,11 @@ body .layui-layout-admin .footer-demo{height: auto; padding: 5px 0; line-height: .site-idea .layui-field-title{border-color: #d2d2d2} .site-idea .layui-field-title legend{margin: 0 20px 20px 0; padding: 0 20px; text-align: center;} - -/* 杈呭姪 */ +/*--------*/ .site-tips{margin-bottom: 10px; padding: 15px; border-left: 5px solid #0078AD; background-color: #f2f2f2;} body .site-tips p{margin: 0;} -/* 鐩綍 */ +/*--------*/ .site-dir{display: none;} .site-dir li{line-height: 26px; margin-left: 20px; overflow: visible; list-style-type: disc;} .site-dir li a{display: block;} @@ -130,25 +125,22 @@ body .layui-layer-dir .layui-layer-content{padding: 10px; max-height: 280px; ove .site-tree .layui-tree li ul a, .site-tree .layui-tree li ul a i{color: #777;} .site-tree .layui-tree li ul a:hover{color: #333;} -.site-tree .layui-tree li ul li{margin-left: 25px; overflow: visible; list-style-type: disc; /*list-style-position: inside;*/} +.site-tree .layui-tree li ul li{margin-left: 25px; overflow: visible; list-style-type: disc;} .site-tree .layui-tree li ul li cite, .site-tree .layui-tree .site-tree-noicon ul li cite{padding-left: 0;} - .site-tree .layui-tree .layui-this a{color: #01AAED;} .site-tree .layui-tree .layui-this .layui-icon{color: #01AAED;} .site-fix .site-tree{position: fixed; top: 0; bottom: 0; z-index: 666; min-height: 0; overflow: auto; background-color: #fff;} .site-fix .site-content{margin-left: 220px;} .site-fix-footer .site-tree{margin-bottom: 120px;} - - .site-title{ margin: 30px 0 20px;} .site-title fieldset{border: none; padding: 0; border-top: 1px solid #eee;} .site-title fieldset legend{margin-left: 20px; padding: 0 10px; font-size: 22px; font-weight: 300;} - .site-text a{color: #01AAED;} .site-h1{margin-bottom: 20px; line-height: 60px; padding-bottom: 10px; color: #393D49; border-bottom: 1px solid #eee; font-size: 28px; font-weight: 300;} .site-h1 .layui-icon{position: relative; top: 5px; font-size: 50px; margin-right: 10px;} + .site-text{position:relative;} .site-text p{margin-bottom: 10px; line-height:22px;} .site-text em{padding: 0 3px; font-weight: 500; font-style: italic; color: #666;} @@ -159,20 +151,18 @@ body .layui-layer-dir .layui-layer-content{padding: 10px; max-height: 280px; ove .site-table th, .site-table td{padding: 6px 15px; min-height: 20px; line-height: 20px; border:1px solid #ddd; font-size: 14px; font-weight: 400;} .site-table tr:nth-child(even){background: #fbfbfb;} - .site-block{padding: 20px; border: 1px solid #eee;} .site-block .layui-form{margin-right: 200px;} - -/* 婕旂ず */ +/*--------*/ body .layui-layout-admin .site-demo{bottom: 82px; padding: 0;z-index:-1;} body .site-demo-nav .layui-nav-item{line-height: 40px} -.layui-nav-item .layui-icon{position: relative; /*font-size: 20px;*/} +.layui-nav-item .layui-icon{position: relative; } .layui-nav-item a cite{padding: 0 10px;} .site-demo .layui-main{margin: 15px; line-height: 22px;} .site-demo-editor{position: absolute; top: 0; bottom: 0; left: 0; width: 50%; } .site-demo-area{position: absolute; top: 0; bottom: 90px; width: 100%;} -.site-demo-editor textarea{position: absolute; width: 100%; height: 100%; padding: 15px; border: none; resize: none; /*background-color: #F7FBFF;*/ background-color: #272822; color: #CFBFAF; font-family: Courier New; font-size: 12px; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;} +.site-demo-editor textarea{position: absolute; width: 100%; height: 100%; padding: 15px; border: none; resize: none; background-color: #272822; color: #CFBFAF; font-family: Courier New; font-size: 12px; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;} .site-demo-btn{position: absolute; bottom: 100px; right: 20px;} .site-demo-zanzhu{position: absolute; bottom: 0; left: 0; width: 100%; height: 90px; text-align: center; background-color: #e2e2e2; overflow: hidden;} .site-demo-zanzhu>*{position: relative; z-index: 1;} @@ -185,7 +175,6 @@ body .site-demo-nav .layui-nav-item{line-height: 40px} .site-demo-button div{margin: 20px 30px 10px;} .site-demo-button .layui-btn{margin-bottom: 10px;} - .site-demo-laytpl{text-align: center;} .site-demo-laytpl textarea, .site-demo-laytpl div span{width: 40%; padding: 15px; margin: 0 15px;} @@ -207,6 +196,7 @@ body .site-demo-nav .layui-nav-item{line-height: 40px} .site-demo-util{position: relative; width: 300px;} .site-demo-util img{width: 300px; border-radius: 100%;} .site-demo-util span{position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #333; cursor: pointer;} + @-webkit-keyframes demo-fengjie { 0% {-webkit-filter: blur(0); opacity: 1; background: #fff; height: 300px; border-radius: 100%;} 80% {-webkit-filter: blur(50px); opacity: 0.95;} @@ -219,98 +209,50 @@ body .site-demo-nav .layui-nav-item{line-height: 40px} } .site-demo-fengjie{-webkit-animation-name: demo-fengjie; animation-name: demo-fengjie; -webkit-animation-duration: 5s; animation-duration: 5s;} - -.layui-layout-admin .site-demo-body{top: 117px;} +.layui-layout-admin .site-demo-body{top: 70px;} .site-demo-title{position: fixed; left: 200px; right: 0; top: 76px;} .site-demo-code{position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: none; padding: 10px; resize: none; font-size: 12px; background-color: #F7FBFF; color: #881280; font-family: Courier New;} .site-demo-body .layui-elem-quote a{color: #01AAED;} .site-demo-body .layui-elem-quote a:hover{color: #FF5722;} - -/* 鍏跺畠 */ +/*---------*/ #trans-tooltip, #tip-arrow-bottom, #tip-arrow-top{display: none !important;} - -/* 鐙珛缁勪欢 */ +/*----------*/ .alone{width:730px; margin:200px auto;} .alone ul{margin-left:1px; font-size:0;} -.alone li{display:inline-block; width:181px; font-size: 16px; text-align:center; line-height:80px; margin:0 1px 1px 0; background-color:#393D49; color:#fff;} +.alone li{display:inline-block; width:181px; font-size: 16px; text-align:center; line-height:80px; +margin:0 1px 1px 0; background-color:#393D49; color:#fff;} .alone li:hover{opacity:0.8;} .alone li a{display:block; color:#fff;} +/*----------*/ +.admin-header-item-mobile{position: absolute; right: 0px; height: 70px;line-height: 70px;padding: 0 20px; text-align: center; top:0;display: none;} -/* 鑷畾涔塩ss */ -.admin-header-item-mobile{ - position: absolute; right: 0px; height: 70px;line-height: 70px; - padding: 0 20px; text-align: center; top:0; - display: none; -} +.admin-nav-tree .layui-nav-child a {padding-left: 30px;} -.admin-nav-tree .layui-nav-child a { - padding-left: 30px; -} - -.admin{ - border: 0; - margin: 0; - box-shadow:none; -} -.admin-nav-card{ - margin-top: 0px; -} -.admin-nav-card .layui-icon{ - position: relative; -} -.admin-nav-card .layui-tab-item iframe{ - width: 100%; - border: 0; - height: 100%; -} -.admin-nav-card>.layui-tab-title{ - border-bottom: 1px solid #1AA094; -} -.admin-nav-card .layui-tab-title cite{ - font-style: normal; - padding-left: 5px; -} -.admin-nav-card>.layui-tab-title .layui-this{ - color: white; - background-color: #1AA094; -} -.admin-nav-card>.layui-tab-title .layui-this:after{ - border-bottom: 0; -} -.admin-header-user img{ - width: 40px; height: 40px; border-radius: 100%; - /*position: relative; - top: 15px;*/ -} -.admin-header-user .layui-nav-more{ - top:33px; -} -.admin-header-user .layui-nav-mored{ - top: 26px; -} +.admin{border: 0;margin: 0;box-shadow:none;} +.admin-nav-card{margin-top: 0px;} +.admin-nav-card .layui-icon{position: relative;} +.admin-nav-card .layui-tab-item iframe{width: 100%;border: 0;height: 100%;} +.admin-nav-card>.layui-tab-title{border-bottom: 1px solid #1AA094;} +.admin-nav-card .layui-tab-title cite{font-style: normal;padding-left: 5px;} +.admin-nav-card>.layui-tab-title .layui-this{color: white;background-color: #1AA094;} +.admin-nav-card>.layui-tab-title .layui-this:after{border-bottom: 0;} +.admin-header-user img{width: 40px; height: 40px; border-radius: 100%;} +.admin-header-user .layui-nav-more{top:33px;} +.admin-header-user .layui-nav-mored{top: 26px;} /*lock*/ -.admin-header-lock{ - width: 320px; height: 50px; padding: 30px 0; position: relative; text-align: center; -} -.admin-header-lock-img{ - width: 60px; height: 60px; margin: 0 auto; -} -.admin-header-lock-img img{ - width: 60px; height: 60px; border-radius: 100%; -} -.admin-header-lock-name{ - color: #009688;margin: 8px 0 15px 0; -} -.admin-header-lock-input{ - width: 150px; color: #FFFFFF; height: 30px; border: 0;background-color: #009688; padding: 0 7px; border-radius: 2px; -} +.admin-header-lock{width: 320px; height: 50px; padding: 30px 0; position: relative; text-align: center;} +.admin-header-lock-img{width: 60px; height: 60px; margin: 0 auto;} +.admin-header-lock-img img{width: 60px; height: 60px; border-radius: 100%;} +.admin-header-lock-name{color: #009688;margin: 8px 0 15px 0;} +.admin-header-lock-input{width: 150px; color: #FFFFFF; height: 30px; border: 0;background-color: #009688; padding: 0 7px; border-radius: 2px;} + /*table*/ .site-table tbody tr td {text-align: center;} .site-table tbody tr td .layui-btn+.layui-btn{margin-left: 0px;} @@ -320,56 +262,21 @@ body .site-demo-nav .layui-nav-item{line-height: 40px} /**/ .admin-main {margin: 15px;} +.admin-side-toggle,.admin-side-full{position: absolute; cursor: pointer;z-index: 19940201;left: 200px;color: white;text-align: center;width: 30px;height: 30px;background-color: #1AA094;line-height: 30px;top: 25%;padding-top: 0px;box-sizing: border-box;} +.admin-side-toggle:hover{background-color: #5FB878;} +.admin-side-full{left: 240px;} +.admin-login-box{width: 185px; height: 70px; position: relative;} +.beg-navbar .layui-nav-child dd a{padding-left: 30px;} -.admin-side-toggle,.admin-side-full{ - position: absolute; cursor: pointer; - z-index: 19940201; - left: 200px; - color: white; - text-align: center; - width: 30px; - height: 30px; - background-color: #1AA094; - line-height: 30px; - top: 25%; - padding-top: 0px; - box-sizing: border-box; -} -.admin-side-toggle:hover{ - background-color: #5FB878; -} -.admin-side-full{ - left: 240px; -} -.admin-login-box{ - width: 185px; height: 70px; position: relative; -} - -.beg-navbar .layui-nav-child dd a{ - padding-left: 30px; -} - - -.admin-contextmenu{ - position: absolute;line-height: 36px;padding: 5px 0; - border: 1px solid #d2d2d2;background-color: white;z-index: 19940201;border-radius: 2px;white-space: nowrap;top:30px; - /*width: 100px;height: 200px; */ -} -.admin-contextmenu ul li{ - padding: 0 15px; -} -.admin-contextmenu ul li:hover{ - background-color: #eee; - cursor: pointer; -} +.admin-contextmenu{position: absolute;line-height: 36px;padding: 5px 0;border: 1px solid #d2d2d2;background-color: white;z-index: 19940201;border-radius: 2px;white-space: nowrap;top:30px;} +.admin-contextmenu ul li{padding: 0 15px;} +.admin-contextmenu ul li:hover{background-color: #eee;cursor: pointer;} -/* 閫傞厤澶氳澶� */ +/**/ @media screen and (max-width: 750px) { .layui-main{width: auto; margin: 0 10px;} - .logo, - .header-demo .logo{left: 10px;} - + .logo,.header-demo .logo{left: 10px;} .site-nav-layim{display: none !important;} .header .layui-nav .layui-nav-item{margin: 0;} .header .layui-nav .layui-nav-item a{padding: 0 15px;} @@ -383,7 +290,6 @@ body .site-demo-nav .layui-nav-item{line-height: 40px} .site-download a{height: 40px; line-height: 40px; padding: 0 25px 0 60px; border: 1px solid #778097; border-radius: 30px; color: #fff; font-size: 16px;} .site-download a cite{left: 20px;} .site-banner-other{bottom: 15px;} - .site-idea{margin: 20px 0;} .site-idea li{margin: 0 0 20px 0; width: 100%; height: auto; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;} .site-hengfu img{max-width: 100%} @@ -414,14 +320,12 @@ body .site-demo-nav .layui-nav-item{line-height: 40px} .site-demo-zanzhu{display: none;} .site-demo-btn{bottom: auto; top: 370px;} .site-demo-result iframe{height: 500px;} - .site-demo-laytpl textarea, .site-demo-laytpl div span{margin: 0;} .site-demo-tplres .site-demo-tplh2, .site-demo-tplres .site-demo-tplview{width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;} - .site-demo-title{position: static; left: 0;} body .layui-layout-admin .site-demo{} .site-demo-code{position: static; height: 350px;} - + .admin-side-toggle ,.admin-header-item{display: none;} .admin-header-item-mobile{ display: block; } } diff --git a/WebContent/WEB-INF/res/css/layui.mobile.css b/WebContent/WEB-INF/res/css/layui.mobile.css deleted file mode 100644 index cafaa55..0000000 --- a/WebContent/WEB-INF/res/css/layui.mobile.css +++ /dev/null @@ -1,2 +0,0 @@ -/** layui-v2.1.5 MIT License By http://www.layui.com */ -blockquote,body,button,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,input,legend,li,ol,p,td,textarea,th,ul{margin:0;padding:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}html{font:12px 'Helvetica Neue','PingFang SC',STHeitiSC-Light,Helvetica,Arial,sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}a,button,input{-webkit-tap-highlight-color:rgba(255,0,0,0)}a{text-decoration:none;background:0 0}a:active,a:hover{outline:0}table{border-collapse:collapse;border-spacing:0}li{list-style:none}b,strong{font-weight:700}h1,h2,h3,h4,h5,h6{font-weight:500}address,cite,dfn,em,var{font-style:normal}dfn{font-style:italic}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}img{border:0;vertical-align:bottom}.layui-inline,input,label{vertical-align:middle}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0;outline:0}button,select{text-transform:none}select{-webkit-appearance:none;border:none}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}@font-face{font-family:layui-icon;src:url(../font/iconfont.eot?v=1.0.7);src:url(../font/iconfont.eot?v=1.0.7#iefix) format('embedded-opentype'),url(../font/iconfont.woff?v=1.0.7) format('woff'),url(../font/iconfont.ttf?v=1.0.7) format('truetype'),url(../font/iconfont.svg?v=1.0.7#iconfont) format('svg')}.layui-icon{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-box,.layui-box *{-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important}.layui-border-box,.layui-border-box *{-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important}.layui-inline{position:relative;display:inline-block;*display:inline;*zoom:1}.layui-edge,.layui-upload-iframe{position:absolute;width:0;height:0}.layui-edge{border-style:dashed;border-color:transparent;overflow:hidden}.layui-elip{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-unselect{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-disabled,.layui-disabled:active{background-color:#d2d2d2!important;color:#fff!important;cursor:not-allowed!important}.layui-circle{border-radius:100%}.layui-show{display:block!important}.layui-hide{display:none!important}.layui-upload-iframe{border:0;visibility:hidden}.layui-upload-enter{border:1px solid #009E94;background-color:#009E94;color:#fff;-webkit-transform:scale(1.1);transform:scale(1.1)}@-webkit-keyframes layui-m-anim-scale{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layui-m-anim-scale{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.layui-m-anim-scale{animation-name:layui-m-anim-scale;-webkit-animation-name:layui-m-anim-scale}@-webkit-keyframes layui-m-anim-up{0%{opacity:0;-webkit-transform:translateY(800px);transform:translateY(800px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layui-m-anim-up{0%{opacity:0;-webkit-transform:translateY(800px);transform:translateY(800px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}.layui-m-anim-up{-webkit-animation-name:layui-m-anim-up;animation-name:layui-m-anim-up}@-webkit-keyframes layui-m-anim-left{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes layui-m-anim-left{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.layui-m-anim-left{-webkit-animation-name:layui-m-anim-left;animation-name:layui-m-anim-left}@-webkit-keyframes layui-m-anim-right{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes layui-m-anim-right{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.layui-m-anim-right{-webkit-animation-name:layui-m-anim-right;animation-name:layui-m-anim-right}@-webkit-keyframes layui-m-anim-lout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@keyframes layui-m-anim-lout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}.layui-m-anim-lout{-webkit-animation-name:layui-m-anim-lout;animation-name:layui-m-anim-lout}@-webkit-keyframes layui-m-anim-rout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes layui-m-anim-rout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}.layui-m-anim-rout{-webkit-animation-name:layui-m-anim-rout;animation-name:layui-m-anim-rout}.layui-m-layer{position:relative;z-index:19891014}.layui-m-layer *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.layui-m-layermain,.layui-m-layershade{position:fixed;left:0;top:0;width:100%;height:100%}.layui-m-layershade{background-color:rgba(0,0,0,.7);pointer-events:auto}.layui-m-layermain{display:table;font-family:Helvetica,arial,sans-serif;pointer-events:none}.layui-m-layermain .layui-m-layersection{display:table-cell;vertical-align:middle;text-align:center}.layui-m-layerchild{position:relative;display:inline-block;text-align:left;background-color:#fff;font-size:14px;border-radius:5px;box-shadow:0 0 8px rgba(0,0,0,.1);pointer-events:auto;-webkit-overflow-scrolling:touch;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}.layui-m-layer0 .layui-m-layerchild{width:90%;max-width:640px}.layui-m-layer1 .layui-m-layerchild{border:none;border-radius:0}.layui-m-layer2 .layui-m-layerchild{width:auto;max-width:260px;min-width:40px;border:none;background:0 0;box-shadow:none;color:#fff}.layui-m-layerchild h3{padding:0 10px;height:60px;line-height:60px;font-size:16px;font-weight:400;border-radius:5px 5px 0 0;text-align:center}.layui-m-layerbtn span,.layui-m-layerchild h3{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-m-layercont{padding:50px 30px;line-height:22px;text-align:center}.layui-m-layer1 .layui-m-layercont{padding:0;text-align:left}.layui-m-layer2 .layui-m-layercont{text-align:center;padding:0;line-height:0}.layui-m-layer2 .layui-m-layercont i{width:25px;height:25px;margin-left:8px;display:inline-block;background-color:#fff;border-radius:100%;-webkit-animation:layui-m-anim-loading 1.4s infinite ease-in-out;animation:layui-m-anim-loading 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.layui-m-layerbtn,.layui-m-layerbtn span{position:relative;text-align:center;border-radius:0 0 5px 5px}.layui-m-layer2 .layui-m-layercont p{margin-top:20px}@-webkit-keyframes layui-m-anim-loading{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}@keyframes layui-m-anim-loading{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}.layui-m-layer2 .layui-m-layercont i:first-child{margin-left:0;-webkit-animation-delay:-.32s;animation-delay:-.32s}.layui-m-layer2 .layui-m-layercont i.layui-m-layerload{-webkit-animation-delay:-.16s;animation-delay:-.16s}.layui-m-layer2 .layui-m-layercont>div{line-height:22px;padding-top:7px;margin-bottom:20px;font-size:14px}.layui-m-layerbtn{display:box;display:-moz-box;display:-webkit-box;width:100%;height:50px;line-height:50px;font-size:0;border-top:1px solid #D0D0D0;background-color:#F2F2F2}.layui-m-layerbtn span{display:block;-moz-box-flex:1;box-flex:1;-webkit-box-flex:1;font-size:14px;cursor:pointer}.layui-m-layerbtn span[yes]{color:#40AFFE}.layui-m-layerbtn span[no]{border-right:1px solid #D0D0D0;border-radius:0 0 0 5px}.layui-m-layerbtn span:active{background-color:#F6F6F6}.layui-m-layerend{position:absolute;right:7px;top:10px;width:30px;height:30px;border:0;font-weight:400;background:0 0;cursor:pointer;-webkit-appearance:none;font-size:30px}.layui-m-layerend::after,.layui-m-layerend::before{position:absolute;left:5px;top:15px;content:'';width:18px;height:1px;background-color:#999;transform:rotate(45deg);-webkit-transform:rotate(45deg);border-radius:3px}.layui-m-layerend::after{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}body .layui-m-layer .layui-m-layer-footer{position:fixed;width:95%;max-width:100%;margin:0 auto;left:0;right:0;bottom:10px;background:0 0}.layui-m-layer-footer .layui-m-layercont{padding:20px;border-radius:5px 5px 0 0;background-color:rgba(255,255,255,.8)}.layui-m-layer-footer .layui-m-layerbtn{display:block;height:auto;background:0 0;border-top:none}.layui-m-layer-footer .layui-m-layerbtn span{background-color:rgba(255,255,255,.8)}.layui-m-layer-footer .layui-m-layerbtn span[no]{color:#FD482C;border-top:1px solid #c2c2c2;border-radius:0 0 5px 5px}.layui-m-layer-footer .layui-m-layerbtn span[yes]{margin-top:10px;border-radius:5px}body .layui-m-layer .layui-m-layer-msg{width:auto;max-width:90%;margin:0 auto;bottom:-150px;background-color:rgba(0,0,0,.7);color:#fff}.layui-m-layer-msg .layui-m-layercont{padding:10px 20px} \ No newline at end of file diff --git a/WebContent/WEB-INF/res/css/mobileChat.css b/WebContent/WEB-INF/res/css/mobileChat.css deleted file mode 100644 index 4b09176..0000000 --- a/WebContent/WEB-INF/res/css/mobileChat.css +++ /dev/null @@ -1,399 +0,0 @@ -html, -body { - height: 100%; - overflow: hidden; - background-color: #efefef; -} - -img[src=""], -img[src="null"], -img[src="undefined"] { - opacity: 0; -} - -input, -textarea { - outline: none; - -webkit-appearance: none; -} - -.icon-fanhuijiantou { - font-size: 18px; -} - -#faceBox { - display: none; -} - -.isShow { - /* display: none; */ -} - -.topToolSBox { - position: fixed; - width: 100%; - height: 40px; - top: 0; - left: 0; - background: rgba(153, 153, 153, 0.5); - padding-top: 5px; - z-index: 198910141; - display: flex; - justify-content: space-around; -} - -#backChat { - background: #fff; - color: #666; -} - -.topToolSBox button { - width: 40%; - height: 30px; - background-color: #b50005; - border: none; - border-radius: 4px; - color: #fff; -} - -.topToolSBox button.on { - background-color: #999; - color: #fff; -} - -.dot { - position: absolute; - top: 2px; - left: 36px; - border-radius: 50%; - background-color: red; - display: inline-block; - width: 16px; - height: 16px; - font-size: 8px !important; - text-align: center; - line-height: 16px; - color: #fff; -} - -.icon-xiaolian { - color: #666; - font-size: 24px; - line-height: 40px; - padding-right: 4px; - background-color: #fff; -} - -.model_box { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - display: none; - text-align: center; - flex-direction: column; - align-items: center; - justify-content: center; - z-index: 198910141; - color: #666; - padding: 0 20px; - box-sizing: border-box; -} - -.tip_box { - font-size: 24px; -} - -.tip_content_box { - font-size: 14px; -} - -.layim-chat-footer { - height: 50px; -} - -.layim-user-box { - display: flex; -} - -.layim-chat-mine .layim-user-box { - justify-content: flex-end; -} - -.moreFansBox { - background-color: #efefef; - padding: 10px !important; - line-height: 28px; - text-align: center; -} - -.moreFansBox>span { - background-color: #fff; - color: #999; - padding: 4px 10px; - border-radius: 4px; -} - -.username_box { - display: inline-block; - max-width: 100px; - overflow: hidden; - text-overflow: ellipsis; -} - -.time_box { - margin: 0 20px; - display: inline-block; -} - -.layim-chat-main { - padding: 0 15px; -} - -.layim-chat-main, -.layim-content { - top: 10px; - /* bottom: 70px; */ -} - -.contInfo img { - position: initial !important; - width: 16px !important; - height: 16px !important; -} - -.isRobot { - display: none; - width: 100%; - background-color: #2f9833 !important; -} - - -/* 加大列表行高 */ - -#chatListBox li { - padding: 10px 15px 10px 60px; - border-bottom: 1px solid #efefef; -} - -.layui-layim-list li img { - top: 13px; -} - -.layui-m-layerchild, -.layim-panel, -.layim-title, -.layim-chat-main, -.layim-content, -.layui-layim, -.layim-chat-footer, -.layim-chat-main ul li, -.layui-layim-face, -.layim-chat-user, -.layim-chat-user cite, -.layim-chat-text { - z-index: 1; -} - -* { - z-index: 1; -} - -.pswp { - z-index: 1500000000; -} - -@keyframes rotateZ { - 0% { - transform: rotateZ(0deg); - } - 100% { - transform: rotateZ(360deg); - } -} - -.rotateZAnimated { - display: inline-block; - animation: rotateZ 1s infinite ease-out; -} - -.rotateZAnimated .iconfont { - padding-right: 0 !important; -} - -.icon-weibiaoti- { - color: red; -} - -.editBox { - background-color: #fff; - line-height: 40px; - padding: 0 6px; - border-radius: 0 3px 3px 0; - position: relative; -} - -.editBox i.on { - transform: rotateZ(0deg) !important; -} - - -/* 底部加号按钮相关 */ - -#chatBox .icon-guanbi { - display: inline-block; - transform: rotateZ(45deg); - font-size: 24px; - color: #666; - transition: transform 0.2s; -} - -.layim-chat-footer { - z-index: 2; -} - -.posStyle { - position: absolute; - bottom: 40px; - left: 0; - display: none; -} - -.posStyle:nth-child(2) { - bottom: 80px; -} - -.icon-xiangji, -.icon-fasonghongbaocopy { - background-color: rgba(239, 239, 239, 0.5); - font-size: 24px; - line-height: 40px; - padding: 0 6px; - color: #666; -} - -.bounceInUp { - animation: bounceInUp 0.3s; -} - -@keyframes bounceInUp { - 0% { - opacity: 0; - -webkit-transform: translateY(2000px); - transform: translateY(2000px) - } - 60% { - opacity: 1; - -webkit-transform: translateY(-30px); - transform: translateY(-30px) - } - 80% { - -webkit-transform: translateY(10px); - transform: translateY(10px) - } - 100% { - -webkit-transform: translateY(0); - transform: translateY(0) - } -} - - -/* end */ - - -/* 楼盘卡片发送相关 */ - -#floorListCard { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: rgba(0, 0, 0, 0.5); - z-index: 100000000; - display: none; - align-items: center; -} - -#floorListCard .content { - width: 100%; -} - -#floorListCard .closeBox { - margin-top: 30px; - text-align: center; -} - -#floorListCard .content .icon-guanbi1 { - font-size: 30px; - color: #eee; -} - -#floorListCard ul { - background-color: #fff; - width: 80%; - margin: 0 auto; - border-radius: 4px; - padding: 10px; - box-sizing: border-box; -} - -#floorListCard ul li { - height: 40px; - line-height: 40px; - color: #333; - font-size: 14px; - border-bottom: 1px solid #eee; -} - -#floorListCard ul li span { - float: right; - display: block; - font-size: 14px; - background: #2f9833 !important; - height: 26px; - line-height: 26px; - color: #fff; - width: 48px; - text-align: center; - border-radius: 4px; - position: relative; - top: 6px; -} - -.fadeInUp { - animation: fadeInUp 0.3s; -} - -@keyframes fadeInUp { - 0% { - opacity: 0; - -webkit-transform: translateY(20px); - transform: translateY(20px) - } - 100% { - opacity: 1; - -webkit-transform: translateY(0); - transform: translateY(0) - } -} - -[contenteditable] { - outline: none; - -webkit-appearance: none; -} - - -/* 搜索相关 */ - -.queryBtn { - width: 30px; - height: 30px; - line-height: 30px; - text-align: center; - position: absolute; - top: 20px; - right: 20px; - z-index: 2; -} \ No newline at end of file diff --git a/WebContent/WEB-INF/res/css/style.css b/WebContent/WEB-INF/res/css/style.css deleted file mode 100644 index a6a8aca..0000000 --- a/WebContent/WEB-INF/res/css/style.css +++ /dev/null @@ -1,325 +0,0 @@ -html { - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; -} - -* { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - font-weight: 300; -} - -input[type="submit"], -input[type="reset"], -input[type="button"], -input { - -webkit-appearance: none; - resize: none; -} - -body, -div, -ul, -li, -ol, -h1, -h2, -h3, -h4, -h5, -h6, -input, -textarea, -select, -p, -dl, -dt, -dd, -a, -img, -button, -form, -table, -th, -tr, -td, -tbody, -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -menu, -nav, -section { - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -} - -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -menu, -nav, -section { - display: block; -} - -img { - max-width: 100%; - height: auto; - width: auto\9; - -ms-interpolation-mode: bicubic; -} - -body, -div, -ul, -li, -ol, -h1, -h2, -h3, -h4, -h5, -h6, -input, -textarea, -select, -p, -dl, -dt, -dd, -a, -img, -button, -form, -table, -th, -tr, -td, -tbody, -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -menu, -nav, -section { - margin: 0; - padding: 0; - border: none; -} - -body { - font-family: '΢���ź�', Microsoft YaHei, Tahoma, Arial, sans-serif; - color: #555; - background-color: #eee; -} - -em, -i { - font-style: normal; -} - -li { - list-style: none; -} - -strong { - font-weight: normal; -} - -.clearfix:after { - content: ""; - display: block; - visibility: hidden; - height: 0; - clear: both; -} - -.clearfix { - zoom: 1; -} - -.fl { - float: left; -} - -.fr { - float: right; -} - -a { - text-decoration: none; - color: #969696; - cursor: pointer; - font-family: Microsoft YaHei, Tahoma, Arial, sans-serif; -} - -a:hover { - color: #e74850; - text-decoration: none; -} - -ul, -ol { - list-style: none; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - font-size: 100%; - font-family: Microsoft YaHei; -} - -img { - border: none; - vertical-align: middle; -} - -.wrap { - min-width: 320px; - max-width: 640px; - margin-left: auto; - margin-right: auto; - position: relative; -} - -@media screen and (max-width: 360px) { - html { - font-size: 13px; - } -} - -@media (min-width: 360px) and (max-width: 400px) { - html { - font-size: 15px; - } -} - -@media (min-width: 400px) and (max-width: 480px) { - html { - font-size: 15px; - } -} - -@media screen and (min-width: 481px) { - html { - font-size: 18px; - } -} - -.bindingbox { - width: 92%; - margin: 2rem auto; -} - -.bindingbos { - overflow: hidden; - line-height: 3.6rem; - clear: both; - font-size: 1.04rem; - border: 1px solid #eee; - border-radius: 4px; - padding: 0 0.6rem; - margin-bottom: 1.7rem; -} - -input:focus { - outline: none; -} - - -/* .bindingbox p{ - clear:both; - font-size:0.9rem; - color:#FF4411; - line-height:1.4rem; - margin-bottom:0.3rem; - visibility: hidden; -} */ - -.bindingbos span { - float: left; - color: #333; -} - -.bindingbos input { - float: left; - line-height: 2rem; - margin-top: 0.8rem; - width: -webkit-calc(100% - 4.5rem); - width: -moz-calc(100% - 4.5rem); - width: calc(100% - 4.5rem); - color: #666; -} - -#getcode { - padding: 0 1rem; - line-height: 2.8rem; - position: absolute; - top: 0.4rem; - right: 0.4rem; - color: #000; - border-radius: 2px; - font-size: 0.9rem; - pointer-events: auto; - width: 7rem; - color: #0069FE; - background-color: #fff; - border: 1px solid #0069FE; -} - -.sumbitbtn { - display: block; - width: 100%; - background-color: #006FF8; - color: #fff; - text-align: center; - line-height: 3.2rem; - border-radius: 4px; - font-size: 1.04rem; -} - -.sumbitbtn:hover, -.sumbitbtn:active { - color: #fff; -} - -.bindinged { - line-height: 2.8rem; - font-size: 1.04rem; - text-align: center; - color: #666; - margin-top: 20%; -} - -.bindinged h4 { - color: #119323; - font-size: 1.2rem; - margin-bottom: 2rem; -} - -.bindinged i { - font-size: 1.6rem; - display: inline-block; - vertical-align: bottom; - margin-right: 0.4rem; -} \ No newline at end of file diff --git a/WebContent/WEB-INF/res/emoji/1.png b/WebContent/WEB-INF/res/emoji/1.png deleted file mode 100644 index fecdf64..0000000 Binary files a/WebContent/WEB-INF/res/emoji/1.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/10.png b/WebContent/WEB-INF/res/emoji/10.png deleted file mode 100644 index 654e0e3..0000000 Binary files a/WebContent/WEB-INF/res/emoji/10.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/100.png b/WebContent/WEB-INF/res/emoji/100.png deleted file mode 100644 index 99206ee..0000000 Binary files a/WebContent/WEB-INF/res/emoji/100.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/101.png b/WebContent/WEB-INF/res/emoji/101.png deleted file mode 100644 index defd90b..0000000 Binary files a/WebContent/WEB-INF/res/emoji/101.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/102.png b/WebContent/WEB-INF/res/emoji/102.png deleted file mode 100644 index e50e0ed..0000000 Binary files a/WebContent/WEB-INF/res/emoji/102.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/103.png b/WebContent/WEB-INF/res/emoji/103.png deleted file mode 100644 index 4234cf8..0000000 Binary files a/WebContent/WEB-INF/res/emoji/103.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/104.png b/WebContent/WEB-INF/res/emoji/104.png deleted file mode 100644 index c88c86e..0000000 Binary files a/WebContent/WEB-INF/res/emoji/104.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/105.png b/WebContent/WEB-INF/res/emoji/105.png deleted file mode 100644 index c0f733c..0000000 Binary files a/WebContent/WEB-INF/res/emoji/105.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/106.png b/WebContent/WEB-INF/res/emoji/106.png deleted file mode 100644 index 4c33a6d..0000000 Binary files a/WebContent/WEB-INF/res/emoji/106.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/107.png b/WebContent/WEB-INF/res/emoji/107.png deleted file mode 100644 index 2e44be1..0000000 Binary files a/WebContent/WEB-INF/res/emoji/107.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/108.png b/WebContent/WEB-INF/res/emoji/108.png deleted file mode 100644 index 1f85d77..0000000 Binary files a/WebContent/WEB-INF/res/emoji/108.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/109.png b/WebContent/WEB-INF/res/emoji/109.png deleted file mode 100644 index 5b5c35b..0000000 Binary files a/WebContent/WEB-INF/res/emoji/109.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/11.png b/WebContent/WEB-INF/res/emoji/11.png deleted file mode 100644 index 643d588..0000000 Binary files a/WebContent/WEB-INF/res/emoji/11.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/110.png b/WebContent/WEB-INF/res/emoji/110.png deleted file mode 100644 index de76707..0000000 Binary files a/WebContent/WEB-INF/res/emoji/110.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/111.png b/WebContent/WEB-INF/res/emoji/111.png deleted file mode 100644 index 586bd99..0000000 Binary files a/WebContent/WEB-INF/res/emoji/111.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/112.png b/WebContent/WEB-INF/res/emoji/112.png deleted file mode 100644 index d8fe8df..0000000 Binary files a/WebContent/WEB-INF/res/emoji/112.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/113.png b/WebContent/WEB-INF/res/emoji/113.png deleted file mode 100644 index ae73e9f..0000000 Binary files a/WebContent/WEB-INF/res/emoji/113.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/12.png b/WebContent/WEB-INF/res/emoji/12.png deleted file mode 100644 index abb63ac..0000000 Binary files a/WebContent/WEB-INF/res/emoji/12.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/13.png b/WebContent/WEB-INF/res/emoji/13.png deleted file mode 100644 index 71ebde1..0000000 Binary files a/WebContent/WEB-INF/res/emoji/13.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/14.png b/WebContent/WEB-INF/res/emoji/14.png deleted file mode 100644 index cdef874..0000000 Binary files a/WebContent/WEB-INF/res/emoji/14.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/15.png b/WebContent/WEB-INF/res/emoji/15.png deleted file mode 100644 index b04e5ef..0000000 Binary files a/WebContent/WEB-INF/res/emoji/15.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/16.png b/WebContent/WEB-INF/res/emoji/16.png deleted file mode 100644 index e95ed36..0000000 Binary files a/WebContent/WEB-INF/res/emoji/16.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/17.png b/WebContent/WEB-INF/res/emoji/17.png deleted file mode 100644 index 7f25731..0000000 Binary files a/WebContent/WEB-INF/res/emoji/17.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/18.png b/WebContent/WEB-INF/res/emoji/18.png deleted file mode 100644 index e70da61..0000000 Binary files a/WebContent/WEB-INF/res/emoji/18.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/19.png b/WebContent/WEB-INF/res/emoji/19.png deleted file mode 100644 index 9cd4c5e..0000000 Binary files a/WebContent/WEB-INF/res/emoji/19.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/2.png b/WebContent/WEB-INF/res/emoji/2.png deleted file mode 100644 index 4a8f6d8..0000000 Binary files a/WebContent/WEB-INF/res/emoji/2.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/20.png b/WebContent/WEB-INF/res/emoji/20.png deleted file mode 100644 index 4c08233..0000000 Binary files a/WebContent/WEB-INF/res/emoji/20.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/21.png b/WebContent/WEB-INF/res/emoji/21.png deleted file mode 100644 index ba9bfef..0000000 Binary files a/WebContent/WEB-INF/res/emoji/21.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/22.png b/WebContent/WEB-INF/res/emoji/22.png deleted file mode 100644 index d37961c..0000000 Binary files a/WebContent/WEB-INF/res/emoji/22.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/23.png b/WebContent/WEB-INF/res/emoji/23.png deleted file mode 100644 index 3e11992..0000000 Binary files a/WebContent/WEB-INF/res/emoji/23.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/24.png b/WebContent/WEB-INF/res/emoji/24.png deleted file mode 100644 index 2333dc9..0000000 Binary files a/WebContent/WEB-INF/res/emoji/24.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/25.png b/WebContent/WEB-INF/res/emoji/25.png deleted file mode 100644 index 8f29551..0000000 Binary files a/WebContent/WEB-INF/res/emoji/25.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/26.png b/WebContent/WEB-INF/res/emoji/26.png deleted file mode 100644 index 5aab19c..0000000 Binary files a/WebContent/WEB-INF/res/emoji/26.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/27.png b/WebContent/WEB-INF/res/emoji/27.png deleted file mode 100644 index 07e6610..0000000 Binary files a/WebContent/WEB-INF/res/emoji/27.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/28.png b/WebContent/WEB-INF/res/emoji/28.png deleted file mode 100644 index 88caffc..0000000 Binary files a/WebContent/WEB-INF/res/emoji/28.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/29.png b/WebContent/WEB-INF/res/emoji/29.png deleted file mode 100644 index 14c2298..0000000 Binary files a/WebContent/WEB-INF/res/emoji/29.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/3.png b/WebContent/WEB-INF/res/emoji/3.png deleted file mode 100644 index 7fc1c81..0000000 Binary files a/WebContent/WEB-INF/res/emoji/3.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/30.png b/WebContent/WEB-INF/res/emoji/30.png deleted file mode 100644 index 0d17495..0000000 Binary files a/WebContent/WEB-INF/res/emoji/30.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/31.png b/WebContent/WEB-INF/res/emoji/31.png deleted file mode 100644 index dcd92df..0000000 Binary files a/WebContent/WEB-INF/res/emoji/31.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/32.png b/WebContent/WEB-INF/res/emoji/32.png deleted file mode 100644 index 446aae6..0000000 Binary files a/WebContent/WEB-INF/res/emoji/32.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/33.png b/WebContent/WEB-INF/res/emoji/33.png deleted file mode 100644 index e093080..0000000 Binary files a/WebContent/WEB-INF/res/emoji/33.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/34.png b/WebContent/WEB-INF/res/emoji/34.png deleted file mode 100644 index 43f3358..0000000 Binary files a/WebContent/WEB-INF/res/emoji/34.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/35.png b/WebContent/WEB-INF/res/emoji/35.png deleted file mode 100644 index 2cf2a5d..0000000 Binary files a/WebContent/WEB-INF/res/emoji/35.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/36.png b/WebContent/WEB-INF/res/emoji/36.png deleted file mode 100644 index 9cead1d..0000000 Binary files a/WebContent/WEB-INF/res/emoji/36.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/37.png b/WebContent/WEB-INF/res/emoji/37.png deleted file mode 100644 index c6955f6..0000000 Binary files a/WebContent/WEB-INF/res/emoji/37.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/38.png b/WebContent/WEB-INF/res/emoji/38.png deleted file mode 100644 index 18a7815..0000000 Binary files a/WebContent/WEB-INF/res/emoji/38.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/39.png b/WebContent/WEB-INF/res/emoji/39.png deleted file mode 100644 index bc536fd..0000000 Binary files a/WebContent/WEB-INF/res/emoji/39.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/4.png b/WebContent/WEB-INF/res/emoji/4.png deleted file mode 100644 index ca0f093..0000000 Binary files a/WebContent/WEB-INF/res/emoji/4.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/40.png b/WebContent/WEB-INF/res/emoji/40.png deleted file mode 100644 index 2030033..0000000 Binary files a/WebContent/WEB-INF/res/emoji/40.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/41.png b/WebContent/WEB-INF/res/emoji/41.png deleted file mode 100644 index 1237777..0000000 Binary files a/WebContent/WEB-INF/res/emoji/41.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/42.png b/WebContent/WEB-INF/res/emoji/42.png deleted file mode 100644 index f3ba4f9..0000000 Binary files a/WebContent/WEB-INF/res/emoji/42.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/43.png b/WebContent/WEB-INF/res/emoji/43.png deleted file mode 100644 index 90f36e5..0000000 Binary files a/WebContent/WEB-INF/res/emoji/43.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/44.png b/WebContent/WEB-INF/res/emoji/44.png deleted file mode 100644 index 0c9c60c..0000000 Binary files a/WebContent/WEB-INF/res/emoji/44.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/45.png b/WebContent/WEB-INF/res/emoji/45.png deleted file mode 100644 index 0dbde48..0000000 Binary files a/WebContent/WEB-INF/res/emoji/45.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/46.png b/WebContent/WEB-INF/res/emoji/46.png deleted file mode 100644 index 60e5c89..0000000 Binary files a/WebContent/WEB-INF/res/emoji/46.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/47.png b/WebContent/WEB-INF/res/emoji/47.png deleted file mode 100644 index a7febe8..0000000 Binary files a/WebContent/WEB-INF/res/emoji/47.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/48.png b/WebContent/WEB-INF/res/emoji/48.png deleted file mode 100644 index 2c9a890..0000000 Binary files a/WebContent/WEB-INF/res/emoji/48.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/49.png b/WebContent/WEB-INF/res/emoji/49.png deleted file mode 100644 index 450570c..0000000 Binary files a/WebContent/WEB-INF/res/emoji/49.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/5.png b/WebContent/WEB-INF/res/emoji/5.png deleted file mode 100644 index 520bdd2..0000000 Binary files a/WebContent/WEB-INF/res/emoji/5.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/50.png b/WebContent/WEB-INF/res/emoji/50.png deleted file mode 100644 index 38f29ef..0000000 Binary files a/WebContent/WEB-INF/res/emoji/50.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/51.png b/WebContent/WEB-INF/res/emoji/51.png deleted file mode 100644 index 9f79969..0000000 Binary files a/WebContent/WEB-INF/res/emoji/51.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/52.png b/WebContent/WEB-INF/res/emoji/52.png deleted file mode 100644 index 62fa28a..0000000 Binary files a/WebContent/WEB-INF/res/emoji/52.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/53.png b/WebContent/WEB-INF/res/emoji/53.png deleted file mode 100644 index c5ddba2..0000000 Binary files a/WebContent/WEB-INF/res/emoji/53.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/54.png b/WebContent/WEB-INF/res/emoji/54.png deleted file mode 100644 index 52d45f1..0000000 Binary files a/WebContent/WEB-INF/res/emoji/54.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/55.png b/WebContent/WEB-INF/res/emoji/55.png deleted file mode 100644 index 84dcddd..0000000 Binary files a/WebContent/WEB-INF/res/emoji/55.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/56.png b/WebContent/WEB-INF/res/emoji/56.png deleted file mode 100644 index d608a46..0000000 Binary files a/WebContent/WEB-INF/res/emoji/56.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/57.png b/WebContent/WEB-INF/res/emoji/57.png deleted file mode 100644 index 861d8d8..0000000 Binary files a/WebContent/WEB-INF/res/emoji/57.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/58.png b/WebContent/WEB-INF/res/emoji/58.png deleted file mode 100644 index 8b860da..0000000 Binary files a/WebContent/WEB-INF/res/emoji/58.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/59.png b/WebContent/WEB-INF/res/emoji/59.png deleted file mode 100644 index b14aafa..0000000 Binary files a/WebContent/WEB-INF/res/emoji/59.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/6.png b/WebContent/WEB-INF/res/emoji/6.png deleted file mode 100644 index 77c1d7f..0000000 Binary files a/WebContent/WEB-INF/res/emoji/6.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/60.png b/WebContent/WEB-INF/res/emoji/60.png deleted file mode 100644 index 694114e..0000000 Binary files a/WebContent/WEB-INF/res/emoji/60.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/61.png b/WebContent/WEB-INF/res/emoji/61.png deleted file mode 100644 index ab53a5e..0000000 Binary files a/WebContent/WEB-INF/res/emoji/61.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/62.png b/WebContent/WEB-INF/res/emoji/62.png deleted file mode 100644 index e582a6a..0000000 Binary files a/WebContent/WEB-INF/res/emoji/62.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/63.png b/WebContent/WEB-INF/res/emoji/63.png deleted file mode 100644 index 23db0d8..0000000 Binary files a/WebContent/WEB-INF/res/emoji/63.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/64.png b/WebContent/WEB-INF/res/emoji/64.png deleted file mode 100644 index dcac0ec..0000000 Binary files a/WebContent/WEB-INF/res/emoji/64.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/65.png b/WebContent/WEB-INF/res/emoji/65.png deleted file mode 100644 index 7a0816b..0000000 Binary files a/WebContent/WEB-INF/res/emoji/65.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/66.png b/WebContent/WEB-INF/res/emoji/66.png deleted file mode 100644 index 89d4480..0000000 Binary files a/WebContent/WEB-INF/res/emoji/66.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/67.png b/WebContent/WEB-INF/res/emoji/67.png deleted file mode 100644 index 9cf8d39..0000000 Binary files a/WebContent/WEB-INF/res/emoji/67.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/68.png b/WebContent/WEB-INF/res/emoji/68.png deleted file mode 100644 index ba4a264..0000000 Binary files a/WebContent/WEB-INF/res/emoji/68.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/69.png b/WebContent/WEB-INF/res/emoji/69.png deleted file mode 100644 index 4991d75..0000000 Binary files a/WebContent/WEB-INF/res/emoji/69.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/7.png b/WebContent/WEB-INF/res/emoji/7.png deleted file mode 100644 index f34bc57..0000000 Binary files a/WebContent/WEB-INF/res/emoji/7.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/70.png b/WebContent/WEB-INF/res/emoji/70.png deleted file mode 100644 index ba97424..0000000 Binary files a/WebContent/WEB-INF/res/emoji/70.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/71.png b/WebContent/WEB-INF/res/emoji/71.png deleted file mode 100644 index 0811fe8..0000000 Binary files a/WebContent/WEB-INF/res/emoji/71.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/72.png b/WebContent/WEB-INF/res/emoji/72.png deleted file mode 100644 index 71fea47..0000000 Binary files a/WebContent/WEB-INF/res/emoji/72.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/73.png b/WebContent/WEB-INF/res/emoji/73.png deleted file mode 100644 index 792e23d..0000000 Binary files a/WebContent/WEB-INF/res/emoji/73.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/74.png b/WebContent/WEB-INF/res/emoji/74.png deleted file mode 100644 index 6499155..0000000 Binary files a/WebContent/WEB-INF/res/emoji/74.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/75.png b/WebContent/WEB-INF/res/emoji/75.png deleted file mode 100644 index 023e14c..0000000 Binary files a/WebContent/WEB-INF/res/emoji/75.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/76.png b/WebContent/WEB-INF/res/emoji/76.png deleted file mode 100644 index 13b1d6c..0000000 Binary files a/WebContent/WEB-INF/res/emoji/76.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/77.png b/WebContent/WEB-INF/res/emoji/77.png deleted file mode 100644 index 9282158..0000000 Binary files a/WebContent/WEB-INF/res/emoji/77.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/78.png b/WebContent/WEB-INF/res/emoji/78.png deleted file mode 100644 index 4d7d4a6..0000000 Binary files a/WebContent/WEB-INF/res/emoji/78.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/79.png b/WebContent/WEB-INF/res/emoji/79.png deleted file mode 100644 index 4b9d25f..0000000 Binary files a/WebContent/WEB-INF/res/emoji/79.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/8.png b/WebContent/WEB-INF/res/emoji/8.png deleted file mode 100644 index fa5dace..0000000 Binary files a/WebContent/WEB-INF/res/emoji/8.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/80.png b/WebContent/WEB-INF/res/emoji/80.png deleted file mode 100644 index fd841dd..0000000 Binary files a/WebContent/WEB-INF/res/emoji/80.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/81.png b/WebContent/WEB-INF/res/emoji/81.png deleted file mode 100644 index 0939470..0000000 Binary files a/WebContent/WEB-INF/res/emoji/81.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/82.png b/WebContent/WEB-INF/res/emoji/82.png deleted file mode 100644 index 2193e19..0000000 Binary files a/WebContent/WEB-INF/res/emoji/82.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/83.png b/WebContent/WEB-INF/res/emoji/83.png deleted file mode 100644 index ddf540a..0000000 Binary files a/WebContent/WEB-INF/res/emoji/83.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/84.png b/WebContent/WEB-INF/res/emoji/84.png deleted file mode 100644 index c77d413..0000000 Binary files a/WebContent/WEB-INF/res/emoji/84.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/85.png b/WebContent/WEB-INF/res/emoji/85.png deleted file mode 100644 index 2a66307..0000000 Binary files a/WebContent/WEB-INF/res/emoji/85.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/86.png b/WebContent/WEB-INF/res/emoji/86.png deleted file mode 100644 index dd15561..0000000 Binary files a/WebContent/WEB-INF/res/emoji/86.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/87.png b/WebContent/WEB-INF/res/emoji/87.png deleted file mode 100644 index 99b629d..0000000 Binary files a/WebContent/WEB-INF/res/emoji/87.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/88.png b/WebContent/WEB-INF/res/emoji/88.png deleted file mode 100644 index 1256b12..0000000 Binary files a/WebContent/WEB-INF/res/emoji/88.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/89.png b/WebContent/WEB-INF/res/emoji/89.png deleted file mode 100644 index 8ef0dfa..0000000 Binary files a/WebContent/WEB-INF/res/emoji/89.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/9.png b/WebContent/WEB-INF/res/emoji/9.png deleted file mode 100644 index 7997dfa..0000000 Binary files a/WebContent/WEB-INF/res/emoji/9.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/90.png b/WebContent/WEB-INF/res/emoji/90.png deleted file mode 100644 index 5565a3f..0000000 Binary files a/WebContent/WEB-INF/res/emoji/90.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/91.png b/WebContent/WEB-INF/res/emoji/91.png deleted file mode 100644 index 1e7625e..0000000 Binary files a/WebContent/WEB-INF/res/emoji/91.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/92.png b/WebContent/WEB-INF/res/emoji/92.png deleted file mode 100644 index f0471bf..0000000 Binary files a/WebContent/WEB-INF/res/emoji/92.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/93.png b/WebContent/WEB-INF/res/emoji/93.png deleted file mode 100644 index ebd6e0e..0000000 Binary files a/WebContent/WEB-INF/res/emoji/93.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/94.png b/WebContent/WEB-INF/res/emoji/94.png deleted file mode 100644 index e47b113..0000000 Binary files a/WebContent/WEB-INF/res/emoji/94.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/95.png b/WebContent/WEB-INF/res/emoji/95.png deleted file mode 100644 index b5c019f..0000000 Binary files a/WebContent/WEB-INF/res/emoji/95.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/96.png b/WebContent/WEB-INF/res/emoji/96.png deleted file mode 100644 index 276d78c..0000000 Binary files a/WebContent/WEB-INF/res/emoji/96.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/97.png b/WebContent/WEB-INF/res/emoji/97.png deleted file mode 100644 index 102a529..0000000 Binary files a/WebContent/WEB-INF/res/emoji/97.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/98.png b/WebContent/WEB-INF/res/emoji/98.png deleted file mode 100644 index ef978ca..0000000 Binary files a/WebContent/WEB-INF/res/emoji/98.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/emoji/99.png b/WebContent/WEB-INF/res/emoji/99.png deleted file mode 100644 index 36d975a..0000000 Binary files a/WebContent/WEB-INF/res/emoji/99.png and /dev/null differ diff --git a/WebContent/WEB-INF/res/js/jquery.qqFace.js b/WebContent/WEB-INF/res/js/jquery.qqFace.js deleted file mode 100644 index ab231c0..0000000 --- a/WebContent/WEB-INF/res/js/jquery.qqFace.js +++ /dev/null @@ -1,113 +0,0 @@ -// QQ表情插件 -(function($){ - $.fn.qqFace = function(options){ - var defaults = { - id : 'facebox', - path : 'face/', - assign : 'content', - //tip : 'em_' - }; - var option = $.extend(defaults, options); - var assign = $('#'+option.assign); - var id = option.id; - var path = option.path; - //var tip = option.tip; - - if(assign.length<=0){ - alert('缺少表情赋值对象。'); - return false; - } - - $(this).click(function(e){ - var strFace, labFace; - if($('#'+id).length<=0){ - strFace = ''; - } - $(this).parent().append(strFace); - var offset = $(this).position(); - var top = offset.top + $(this).outerHeight(); - $('#'+id).css('top',top); - $('#'+id).css('left',offset.left); - $('#'+id).show(); - e.stopPropagation(); - }); - - $(document).click(function(){ - $('#'+id).hide(); - $('#'+id).remove(); - }); - }; - -})(jQuery); - -jQuery.extend({ -unselectContents: function(){ - if(window.getSelection) - window.getSelection().removeAllRanges(); - else if(document.selection) - document.selection.empty(); - } -}); -jQuery.fn.extend({ - selectContents: function(){ - $(this).each(function(i){ - var node = this; - var selection, range, doc, win; - if ((doc = node.ownerDocument) && (win = doc.defaultView) && typeof win.getSelection != 'undefined' && typeof doc.createRange != 'undefined' && (selection = window.getSelection()) && typeof selection.removeAllRanges != 'undefined'){ - range = doc.createRange(); - range.selectNode(node); - if(i == 0){ - selection.removeAllRanges(); - } - selection.addRange(range); - } else if (document.body && typeof document.body.createTextRange != 'undefined' && (range = document.body.createTextRange())){ - range.moveToElementText(node); - range.select(); - } - }); - }, - - setCaret: function(){ - if(!$.browser.msie) return; - var initSetCaret = function(){ - var textObj = $(this).get(0); - textObj.caretPos = document.selection.createRange().duplicate(); - }; - $(this).click(initSetCaret).select(initSetCaret).keyup(initSetCaret); - }, - - insertAtCaret: function(textFeildValue){ - var textObj = $(this).get(0); - if(document.all && textObj.createTextRange && textObj.caretPos){ - var caretPos=textObj.caretPos; - caretPos.text = caretPos.text.charAt(caretPos.text.length-1) == '' ? - textFeildValue+'' : textFeildValue; - } else if(textObj.setSelectionRange){ - var rangeStart=textObj.selectionStart; - var rangeEnd=textObj.selectionEnd; - var tempStr1=textObj.value.substring(0,rangeStart); - var tempStr2=textObj.value.substring(rangeEnd); - textObj.value=tempStr1+textFeildValue+tempStr2; - textObj.focus(); - var len=textFeildValue.length; - textObj.setSelectionRange(rangeStart+len,rangeStart+len); - textObj.blur(); - }else{ - textObj.value+=textFeildValue; - } - } -}); \ No newline at end of file diff --git a/WebContent/WEB-INF/res/js/me.js b/WebContent/WEB-INF/res/js/me.js index a16ffb9..79c1ba8 100644 --- a/WebContent/WEB-INF/res/js/me.js +++ b/WebContent/WEB-INF/res/js/me.js @@ -40,6 +40,7 @@ function strlen(str) { return len; } +//将表格中的null替换为空字符 function toNull_G() { $("table td").each(function() { var v = $(this).html() diff --git a/WebContent/WEB-INF/res/js/mobileChat.js b/WebContent/WEB-INF/res/js/mobileChat.js deleted file mode 100644 index 4e0b256..0000000 --- a/WebContent/WEB-INF/res/js/mobileChat.js +++ /dev/null @@ -1,1124 +0,0 @@ -function Chat() { - this.socket = null - this.salesid = G_salesid - this.fansid = G_fansid - this.isvank = G_isvank - this.firstOpenChat = true - this.host = (location.host.indexOf("192") > -1 || location.host.indexOf("localhost") > -1) ? location.host + "/zzhnc" : location.host - this.url = "ws://" + this.host + "/web/socket/" + G_salesid + "/" + G_isvank // mini.weiyisz.com - this.fansListPage = 1 - this.fansInfo = {} //当前的粉丝信息 - this.pages = {} //所有的粉丝记录所在的当前的 - this.faceCode = ["/::)", "/::~", "/::B", "/::|", "/:8-)", "/::<", "/::$", "/::X", "/::Z", "/::'(", "/::-|", "/::@", "/::P", "/::D", "/::O", "/::(", "/::+", "/:–b", "/::Q", "/::T", "/:,@P", "/:,@-D", "/::d", "/:,@o", "/::g", "/:|-)", "/::!", "/::L", "/::>", "/::,@", "/:,@f", "/::-S", "/:?", "/:,@x", "/:,@@", "/::8", "/:,@!", "/:!!!", "/:xx", "/:bye", "/:wipe", "/:dig", "/:handclap", "/:&-(", "/:B-)", "/:<@", "/:@>", "/::-O", "/:>-|", "/:P-(", "/::'|", "/:X-)", "/::*", "/:@x", "/:8*", "/:pd", "/:", "/:beer", "/:basketb", "/:oo", "/:coffee", "/:eat", "/:pig", "/:rose", "/:fade", "/:showlove", "/:heart", "/:break", "/:cake", "/:li", "/:bome", "/:kn", "/:footb", "/:ladybug", "/:shit", "/:moon", "/:sun", "/:gift", "/:hug", "/:strong", "/:weak", "/:share", "/:v", "/:@)", "/:jj", "/:@@", "/:bad", "/:lvu", "/:no", "/:ok", "/:love", "/:", "/:jump", "/:shake", "/:", "/:circle", "/:kotow", "/:turn", "/:skip", "/:oy", "/:#-0", "/:oy", "/:kiss", "/:<&", "/:&>"] - this.faceText = ["微笑", "撇嘴", "色", "发呆", "得意", "流泪", "害羞", "闭嘴", "睡", "大哭", "尴尬", "发怒", "调皮", "呲牙", "惊讶", "难过", "酷", "冷汗", "抓狂", "吐", "偷笑", "愉快", "白银", "傲慢", "饥饿", "困", "恐慌", "流汗", "憨笑", "悠闲", "奋斗", "咒骂", "疑问", "嘘", "晕", "疯了", "哀", "骷髅", "敲打", "再见", "擦汗", "抠鼻", "鼓掌", "糗大了", "坏笑", "左哼哼", "右哼哼", "哈欠", "鄙视", "委屈", "快哭了", "阴险", "亲亲", "吓", "可怜", "菜刀", "西瓜", "啤酒", "篮球", "乒乓", "咖啡", "饭", "猪头", "玫瑰", "凋谢", "嘴唇", "爱心", "心碎", "蛋糕", "闪电", "炸弹", "刀", "足球", "瓢虫", "便便", "月亮", "太阳", "礼物", "拥抱", "强", "弱", "握手", "胜利", "抱拳", "勾引", "拳头", "差劲", "爱你", "NO", "OK", "爱情", "飞吻", "跳跳", "发抖", "怄火", "转圈", "磕头", "回头", "跳绳", "投降", "激动", "乱舞", "献吻", "左太极", "右太极"] - this.faceText2 = ["/微笑","/撇嘴","/色","/发呆","/得意","/流泪","/害羞","/闭嘴","/睡","/大哭","/尴尬","/发怒","/调皮","/呲牙","/惊讶","/难过","/酷","/冷汗","/抓狂","/吐","/偷笑","/愉快","/白银","/傲慢","/饥饿","/困","/恐慌","/流汗","/憨笑","/悠闲","/奋斗","/咒骂","/疑问","/嘘","/晕","/疯了","/哀","/骷髅","/敲打","/再见","/擦汗","/抠鼻","/鼓掌","/糗大了","/坏笑","/左哼哼","/右哼哼","/哈欠","/鄙视","/委屈","/快哭了","/阴险","/亲亲","/吓","/可怜","/菜刀","/西瓜","/啤酒","/篮球","/乒乓","/咖啡","/饭","/猪头","/玫瑰","/凋谢","/嘴唇","/爱心","/心碎","/蛋糕","/闪电","/炸弹","/刀","/足球","/瓢虫","/便便","/月亮","/太阳","/礼物","/拥抱","/强","/弱","/握手","/胜利","/抱拳","/勾引","/拳头","/差劲","/爱你","/NO","/OK","/爱情","/飞吻","/跳跳","/发抖","/怄火","/转圈","/磕头","/回头","/跳绳","/投降","/激动","/乱舞","/献吻","/左太极","/右太极"] - this.faceImg = ["http://www.onegreen.net/QQ/UploadFiles/201404/20140427102755304.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102806118.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102811204.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102816272.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102821779.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102826616.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102831909.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102836860.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102841446.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102846605.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102851155.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102856815.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102901326.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102906485.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102911867.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102916775.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102921112.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102926579.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102931107.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102936174.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102941562.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102946241.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102951305.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427102956983.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103001341.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103006230.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103011620.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103016770.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103021180.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103026333.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103031826.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103036856.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103041851.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103046204.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103051515.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103056368.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103101584.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103106639.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103111714.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103116995.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103121307.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103126628.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103131537.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103136922.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103141708.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103146409.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103151786.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103156150.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103201493.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103206968.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103211938.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103216563.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103221494.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103226447.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103231181.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103236908.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103241610.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103246942.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103251889.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103256822.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103301730.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103306315.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103311631.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103316218.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103321727.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103326466.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103331391.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103336293.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103341727.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103346519.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103351983.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103356315.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103401393.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103406284.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103411342.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103416889.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103421513.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103426896.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103431815.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103436286.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103441411.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103446541.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103451461.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103456248.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103501861.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103506188.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103511436.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103516890.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103521415.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103526248.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103531694.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103536789.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103541535.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103546800.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103551956.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103556647.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103601489.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103606571.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103611997.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103616555.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103621939.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103626894.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103636123.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103641405.png", "http://www.onegreen.net/QQ/UploadFiles/201404/20140427103646322.png"] - } - Chat.prototype = { - init: function () { //---获取聊天记录 - var that = this - if(this._getUrl_G('ccc') != 'ccc'){ - if(this._getUrl_G('code') == 'nmamtf18565803458' && this.salesid != 224 ){ - $("body").html('非法访问,请在微信端打开') - } - } - - $.post("http://" + this.host + "/sale/chatlogList?salesId=" + this.salesid + "&page=" + this.fansListPage + "&pageSize=100", function (data) { - - if (data.code == 0) { - var total = data.data.length - var uniqueArr = that._unique(data.data) - uniqueArr.forEach(function(e){ - var msg = (e.replytype < 5 ? e.reply : e.ask) - if(!msg){ - msg = e.reply || e.ask - } - - that.create_newChat_list({ - fansid: e.fansid, - logo:e.logo, - nickname:e.nickname, - ask:msg, - asktime:e.asktime - }) - that.isLook({ fansid: e.fansid }, e.num) - that.create_newChat_info({fansid:e.fansid}) - - }) - console.log(total) - if(total ==100){ - that.fansListPage = that.fansListPage + 1 - $("#chatListBox").append("
  • 获取更多
  • ") - } - } - if (!data.data || data.data.length<1 && that.fansListPage == 1) { - $(".model_box").css("display", "flex") - $("#main").hide() - } - if(that.firstOpenChat && !!that.fansid && parseFloat(that.fansid) > 0){ - that.fansInfo.id = that.fansid - that.fansInfo.name = $("[data-index='"+ that.fansid +"']").find(".name").text() - that.fansInfo.logo = $("[data-index='"+ that.fansid +"']").find('div>img').attr('src') - - that.openFansChat() - } - }) - - - }, - connect: function () { //---socket链接 - var that = this - this.socket = new WebSocket(this.url) - this.socket.onopen = function () { - console.log("socket run..") - } - this.socket.onmessage = function (msg) { - - var data = null - try { - data = JSON.parse(msg.data) - that.process(data) - } catch (error) { - - } - } - this.socket.onclose = function () { - console.log("socket close..") - } - }, - process: function (msg) { //---处理socket发来的消息(逻辑控制层) - - - if (!!msg.imgurl2 || !!msg.reply && !!!msg.ask) { //是否是自己发送的 - this.create_newChat_(msg,"me") - this.updataChatList(msg) - } else { - var _isNew = this._isNewChat(msg) //是否新会话 - if (_isNew) { - // this.create_newChat_list(msg ,"sort") - // this.create_newChat_info(msg) - // this.create_newChat_(msg) - // this.isLook(msg) - } else { - this.create_newChat_(msg) - this.updataChatList(msg) - if (!this._isInThisPage(msg)) { - this.isLook(msg) - } - } - } - if (false) { - this.create_warn(msg) - } - }, - isLook: function (msg, reset) { //---处理未读标识( 用到了 localStorage ) - - var localData = localStorage.getItem("look") - var obj = {} - if (!!localData) { - obj = JSON.parse(localStorage.getItem("look")) - } - - var count = obj["_" + msg.fansid] || 0 - count++ - if (reset != undefined) { - if (reset == "reset") { - count = 0 - } else { - - count = reset - } - } - - obj["_" + msg.fansid] = count - for (x in obj) { - - var a = x.substring(1, x.length) - if (a == msg.fansid) { - var _num = (obj[x] == 1? " " : obj[x]) - $("[data-index='" + a + "']").find(".dot").text(_num) - } - - - } - var _json = JSON.stringify(obj) - localStorage.setItem("look", _json) - $("[data-index='" + a + "'] .dot").text() - - if ($("[data-index='" + msg.fansid + "'] .dot").text() === "0") { - $("[data-index='" + msg.fansid + "'] .dot").hide() - } else { - $("[data-index='" + msg.fansid + "'] .dot").show() - } - - }, - create_newChat_list: function (msg,sort) { //---创建一个列表会话 - if($("[data-index=" + msg.fansid + "]").length == 0){ - var template = '
  • ' + - '
    ' + - '' + - '' + - '
    ' + - '' + (msg.nickname || "客户 : " + msg.fansid) + '' + - '' + this._toTimeText_G(msg.asktime) + '' + - '

    ' + this.toFaceImg(msg.ask) + '

    ' + - 'new' + - '
  • ' - if(sort =="sort"){ - $("#chatListBox").prepend(template) - }else{ - $("#chatListBox").append(template) - } - } - - $(".model_box").hide() - }, - create_newChat_list_query:function(msg){ - var template = '
  • '+ - '
    '+ - '
    '+ - '

    '+ (msg.nickname || "客户 : " + msg.fansid) +'

    '+ - '

    '+ this.toFaceImg(msg.lastAskMsg) +'

    '+ - '
    '+ - '
    '+ - '

    '+ this._toTimeText_G(msg.lastAskTime) +'

    '+ - '
    '+ - '
  • ' - return template - }, - create_newChat_info: function (msg) { //---创建一个对话会话 - if($('[data-fansid="' + msg.fansid + '"]').length == 0){ - var template = '
    ' + - '
    '+ - '
      ' + - '
    ' + - '
    '+ - '
    ' - $("#chatInfoBox").append(template) - } - }, - create_warn: function (msg) { //---创建一个警告提示消息 - var template = '
  • ' + - '' + msg.message + '' + - '
  • ' - - var _height = $("[data-fansid='" + msg.fansid + "']").find("ul").height() - if(msg.sort){ - $("[data-fansid='" + msg.fansid + "']").find("ul").prepend(template) - }else{ - $("[data-fansid='" + msg.fansid + "']").find("ul").append(template) - $("[data-fansid='" + msg.fansid + "']").find("div").scrollTop(_height) - - } - }, - create_getMore:function(msg){ //---创建一个拉取更多的按钮 - var that = this - var template = '
  • ' + - '' + msg.message + '' + - '
  • ' - $("[data-fansid='" + msg.fansid + "']").find("ul").prepend(template) - - }, - postMore:function(fansid,page){ //---拉取聊天数据 - var that = this - $.post("http://" + this.host + "/sale/chatlogList?salesId=" + this.salesid + "&page=" + page + "&fansId=" + fansid +"&pageSize=50" , function (data) { - var page_ = page+1 - if(data.data.data){ - var page_item = Math.ceil(data.data.count / 20) //当前粉丝的聊天记录的总页数 - - data.data.data.forEach(function (e, i) { - that.create_newChat_(e,"sort") - }); - if(page_item >= page_){ - that.create_getMore({fansid:fansid,message:"查看更多",page:page_}) - }else{ - that.create_warn({fansid:fansid,message:"没有更多记录",sort:"sort"}) - } - } - }) - }, - create_Img:function(msg){ //---创建一个图片标签并返回 - var randomVal = Math.random().toString(36).substr(2); - var str = '' - return str - }, - create_newChat_: function (msg,option) { //---插入一条消息 - if(option == "me"){ // 服务器返回的销售的消息体(不用创建会话 , 而是改变状态) - this.clearState(msg) - - return false - } - var template = this.msgTemplate(msg) - if(option == "sort"){ - $("[data-fansid='" + msg.fansid + "']").find("ul").prepend(template) - }else{ - $("[data-fansid='" + msg.fansid + "']").find("ul").append(template) - } - showimg.bind() - var b_isMe = !(msg.replytype == 9 || msg.replytype == 11) //是否是销售本人(Boolean ) - if(!msg.replytype){ - b_isMe = (!!msg.reply && !!!msg.ask) - } - if (b_isMe) { - - if (!$("#send").is(".layui-disabled")) { - $("#send").addClass("layui-disabled") - } - } - if(option != 'sort'){ - var _height = $("[data-fansid='" + msg.fansid + "']").find("ul").height() - $("[data-fansid='" + msg.fansid + "']").find("div").scrollTop(_height) - } - - - }, - clearState:function(msg){ //---改变当条消息的状态 - $("[data-msgid="+ msg.id +"]").html(this._toTime_G(msg.asktime)) - if(msg.replytype == -1){ - this.create_warn({ - fansid:msg.fansid, - message: msg.reply || '消息处理异常,请刷新重试' - }) - $("[data-msgid="+ msg.id +"]").html('') - return false - } - if(msg.replytype == 45015){ - this.create_warn({ - fansid:msg.fansid, - message: "发送失败: 回应已超过48小时" - }) - $("[data-msgid="+ msg.id +"]").html('') - return false - } - if(msg.replytype == 45047){ - this.create_warn({ - fansid:msg.fansid, - message:"发送失败: 连续下发超过5条" - }) - $("[data-msgid="+ msg.id +"]").html('') - return false - } - if(msg.replytype == 40001 || msg.replytype == 40002 || msg.replytype == 40003 || msg.replytype == 48001 ){ - this.create_warn({ - fansid:msg.fansid, - message:"参数错误,请截图联系管理员--> " + msg.replytype - }) - $("[data-msgid="+ msg.id +"]").html('') - return false - } - }, - sendTimeOut:function(msg){ //---定时器判断是否发送超时 ( 10s ) 超时改变状态 - setTimeout(function(){ - if($("[data-msgid="+ msg.id +"]").find(".icon-loading").length >0){ - $("[data-msgid="+ msg.id +"]").html('') - } - - },10000) - }, - msgTemplate:function(msg){ //---创建一条消息模版 - var that = this - - - var b_isMe = !(msg.replytype == 9 || msg.replytype == 11) //是否是销售本人(Boolean ) f废弃 (至判断是否有消息内容) - - b_isMe = (!!msg.reply && !!!msg.ask) - - - var isMeClass = b_isMe ? "layim-chat-mine" : "" //是否是销售本人(ClassName) - var msg__ = b_isMe ? msg.reply : msg.ask //对应的选择消息 - var logo = (function(){ - var _logo = "" - if(msg.replytype == 1 || msg.replytype == 2 || msg.replytype == 3){ - _logo = "../res/images/robot_logo.png" - }else{ - _logo = (b_isMe ? '../res/images/vanke_logo.png' : (that.fansInfo.logo || "../res/images/default_user.png")) - } - return _logo - })() - - var name = (function(){ - var _name = "" - if(msg.replytype == 1 || msg.replytype == 2 || msg.replytype == 3 ){ - _name = "机器人" - }else{ - _name = (b_isMe ? (msg.salename || "vanke" ): (that.fansInfo.name || "客户 : " + msg.fansid)) - } - return _name - })() - if(msg.replytype == 9){ - b_isMe = false - msg__ = this.create_Img(msg) - }else{ - msg__ = this.toFaceImg(msg__) - } - var template = "" - if(!!msg.ask || !!msg.imgurl){ - template += '
  • ' + - '
    ' + - '' + - '' + (that.fansInfo.name || "客户 : " + msg.fansid) + '' + this._toTime_G(msg.asktime) + '' + - '
    ' + - '
    ' + (!!msg.imgurl ? this.create_Img(msg.imgurl) : this.toFaceImg(msg.ask)) + '
    ' + - '
  • ' - - } - if(!!msg.reply || !!msg.imgurl2){ - template += '
  • ' + - '
    ' + - '' + - '' + (!!msg.asktime ? this._toTime_G(msg.asktime) : '') + ''+ (msg.replytype < 4 ? "机器人" : (msg.salename || "vanke" )) +'' + - '
    ' + - '
    ' + (!!msg.imgurl2 ? this.create_Img("http://" + msg.imgurl2) : this.toFaceImg(msg.reply)) + '
    ' + - '
  • ' - } - - - - - return template - }, - updataChatList: function (msg) { //---更新聊天列表( 时间 , 消息体) - var msg_ = (!!msg.reply && !!!msg.ask) ? msg.reply : msg.ask - $("[data-index='" + msg.fansid + "']").find(".contInfo").html(this.toFaceImg(msg_)) - $("[data-index='" + msg.fansid + "']").find(".time").text(this._toTimeText_G(msg.asktime)) - $("#chatListBox").prepend($("#chatListBox").find("[data-index='" + msg.fansid + "']").detach()); - }, - _isNewChat: function (msg) { //---是否是新的会话 - var _isNew = true - $("[data-fansid]").each(function () { - if ($(this).data("fansid") == msg.fansid) { - _isNew = false - } - }) - return _isNew - }, - _isInThisPage: function (msg) { //---是否在当前聊天页 - var _isThis = !$("[data-fansid='" + msg.fansid + "']").is(".layui-hide") - return _isThis - }, - _unique:function(arr){ //---数组ID排重 - var _arr = [] - var _obj = {} - arr.forEach(function(e){ - if(!_obj[e.fansid]){ - _obj[e.fansid] = true - _arr.push(e) - } - }) - return _arr - }, - _toTimeText_G: function (str) { //---时间转换函数 - if (typeof (str) != "string" && typeof (str) != "number") { - console.log(str + ":No is a String") - return str - } - try { - if (new Date(str) == "Invalid Date") { - str = str.replace(/-/g, "/") - } - var timeStamp = new Date(str).getTime() - - } catch (error) { - console.log("请传入正确的事件格式") - return str - } - var new_timeStamp = new Date().getTime() - var diff = new_timeStamp - timeStamp - - diff = diff / 1000 - if (diff < 0) { - console.log("超出当前日期") - // return str - return "刚刚" - } - if (diff < 3600) { - if (diff < 60) { - return "刚刚" - } else { - return Math.floor(diff / 60) + "分钟前" - } - } else if (diff < 86400) { - - return Math.floor(diff / 3600) + "小时前" - } else if (diff < 864000) { - return Math.floor(diff / 86400) + "天前" - } else { - var __time = this._toTime_G(str) - return __time - } - }, - _toTime_G: function (v) { //--- 转时间 - var time = new Date(v) - var year = time.getFullYear() - var mon = time.getMonth() + 1; - var day = time.getDate(); - var hour = time.getHours(); - var min = time.getMinutes(); - if (mon < 10) mon = "0" + mon - if (day < 10) day = "0" + day - if (hour < 10) hour = "0" + hour - if (min < 10) min = "0" + min - return mon + "-" + day + " " + hour + ":" + min - }, - _getUrl_G: function(name) { //---获取Url参数 - var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); - var r = window.location.search.substr(1).match(reg); - if (r != null) return unescape(r[2]); return null; - }, - _toLabelTag:function(_val){ - _val = _val.replace(/ /g,"") - var str = '' - if(!!_val){ - var _arr = _val.split('|') - _val.split('|').forEach(function(e){ - str += ''+ e +'' - }) - - } - return str - }, - toFaceCode: function (msg) { //---表情文字转代码 - var _msg = msg - var reg = /\[.*?\]/g; - var some = reg.exec(_msg); //匹配到的字段 - - while (some) { - var _some = some[0].replace(/\[/, "") - _some = _some.replace(/\]/, "") - var index = this.faceText.indexOf(_some) - msg = msg.replace(new RegExp(_some, 'g'), this.faceCode[index]) - some = reg.exec(_msg); - } - msg = msg.replace(/\[/g, "") - msg = msg.replace(/\]/g, "") - return msg - }, - toFaceImg: function (msg) { //---表情文字转图片 - var _msg = msg - var reg = /\[.*?\]/g; - var some = reg.exec(_msg); //匹配到的字段 - var isReset = false - - while (some) { - var _some = some[0].replace(/\[/, "") - _some = _some.replace(/\]/, "") - var index = this.faceText.indexOf(_some) - if(index >-1){ - msg = msg.replace(new RegExp(_some, 'g'), '') - - }else{ - isReset = "[" + _some + "]" - } - some = reg.exec(_msg); - } - var that = this - this.faceText2.forEach(function(e,i){ - var reg2 = new RegExp(e,"g") - if(reg2.test(msg)){ - msg = msg.replace(reg2,'' ) - - } - }) - if(!!msg){ - msg = msg.replace(/\[/g, "") - msg = msg.replace(/\]/g, "") - msg = msg.replace(/ 1){ - that.create_getMore({fansid:id,message:"查看更多",page:2}) - }else{ - that.create_warn({fansid:id,message:"没有更多记录"}) - } - - data.data.data.reverse().forEach(function (e, i) { - that.create_newChat_(e) - if (i == data.data.data.length - 1) { - that.updataChatList(e) - } - }); - - } - }) - } - $("#chatBox").find("[data-fansid='" + id + "']").removeClass("layui-hide") - $.post("http://" + that.host + "/sale/checkChatStatus?salesId="+ that.salesid +"&fansId=" + id ,function(data){ - if(data){ - $(".noRobot").show() - $(".isRobot").hide() - $("#activationRobot").removeClass('on').attr('disabled',false).text('点击机器人托管') - }else{ - $(".noRobot").hide() - $(".isRobot").show() - $("#activationRobot").addClass('on').attr('disabled',true).text('机器人托管中') - } - }) - - } - }, - bind: function () { //---用户操作相关 - var that = this - - $(document).ready(function(){ - setTimeout(function(){ - $('.G_model').hide() - },500) - }) - - //点击消息列表 - $(document).on("click", "[layim-event='chat']", function () { - var id = $(this).data("index") - var name = $(this).find(".name").text() - var logo = $(this).find('div>img').attr('src') - $("#queryFansBox").hide() - that.fansInfo = { - id:id, - name:name, - logo:logo - } - that.create_newChat_info({fansid:id}) - that.resetCountMsg(id) - that.isLook({ fansid: id }, "reset") - - $("#chatBox").removeClass("layui-hide") //显示对话 - - $("#chatName").text(name) - $("#content").data("id", id) - var _height = $("[data-fansid='" + id + "']").find("ul").height() - $("[data-fansid='" + id + "']").find("div").scrollTop(_height) - if($("#chatBox").find("[data-fansid='" + id + "']").find("li").length < 1){ - that.show() - $.post("http://" + that.host + "/sale/chatlogList?salesId=" + that.salesid + "&page=1" + "&fansId=" + id + "&pageSize=50", function (data) { - if(data.code == 0){ - - $("#send").data("salename",data.data.data[0].salename) - var page_item = Math.ceil(data.data.count / 20) //当前粉丝的聊天记录的总页数 - if(page_item > 1){ - that.create_getMore({fansid:id,message:"查看更多",page:2}) - }else{ - that.create_warn({fansid:id,message:"没有更多记录"}) - } - - data.data.data.reverse().forEach(function (e, i) { - that.create_newChat_(e) - if (i == data.data.data.length - 1) { - that.updataChatList(e) - } - }); - - } - that.hide() - }) - } - $("#chatBox").find("[data-fansid='" + id + "']").removeClass("layui-hide") - $.post("http://" + that.host + "/sale/checkChatStatus?salesId="+ that.salesid +"&fansId=" + id ,function(data){ - if(data){ - $(".noRobot").show() - $(".isRobot").hide() - $("#activationRobot").removeClass('on').attr('disabled',false).text('点击机器人托管') - }else{ - $(".noRobot").hide() - $(".isRobot").show() - $("#activationRobot").addClass('on').attr('disabled',true).text('机器人托管中') - } - }) - }) - //点击返回按钮 - $("#backChat").click(function () { - $("#chatBox").addClass("layui-hide") - $("#chatBox").find("[data-fansid]").removeClass("layui-hide").addClass("layui-hide") - $("#content").val("") - var id = $("#content").data("id") - that.resetCountMsg(id) - that.init() - }) - - //点击发送按钮 - $("#send").click(function () { - if ($(this).is(".layui-disabled")) { - return false - } - - var msg = $("#content").val() - $("#faceBox").slideUp(100) - var msgLocal = msg - msg = that.toFaceCode(msg) - var id = $("#content").data("id") - var _ask = G_isAsk - var _salename = $(this).data("salename") || "vanke" - var timeId = ""+new Date().getTime() - timeId = timeId.substring(4,timeId.length) - timeId = parseFloat(timeId) - var _obj = { - "fansid": id, - "ask": "", - "reply": msgLocal, - "salesid": that.salesid,//销售id - "salename": _salename, - "id": timeId, - "askfrom": _ask, - "readed": true, - "replytype":4 - } - that.create_newChat_(_obj) - that.sendTimeOut(_obj) - _obj.reply = msg - _obj = JSON.stringify(_obj) - that.socket.send(_obj) - $("#content").val("") - }) - - //监听按键事件 - $("#content").keyup(function (e) { - var msg = $(this).val() - msg = msg.replace(/ /g, "") - if (msg.length < 1) { - if (!$("#send").is(".layui-disabled")) { - $("#send").addClass("layui-disabled") - } - } else { - $("#send").removeClass("layui-disabled") - } - if (e.which == 13) { - $("#send").click() - } - }) - - //点击输入框事件 - $("#content").click(function(){ - var that = this - setTimeout(function () { - that.scrollIntoView(true); - var id = $(that).data("id") - var _height = $("[data-fansid='" + id + "']").find("ul").height() - $("[data-fansid='" + id + "']").find("div").scrollTop(_height) - document.body.scrollTop = document.body.scrollHeight; - }, 300); - $("#faceBox").slideUp(100) - }) - //点击呼出表情事件 - $(".icon-xiaolian").click(function (e) { - e.stopPropagation() - $("#faceBox").slideDown(100) - }) - //点击表情model隐藏 - $("#faceBox").click(function () { - $("#faceBox").slideUp(100) - }) - //点击单个表情 - $("ul.layui-layim-face li").click(function (e) { - e.stopPropagation() - var oldVal = $("#content").val() - oldVal += $(this).attr("title") - $("#content").val(oldVal) - console.log($(this)) - - if (oldVal.length < 1) { - if (!$("#send").is(".layui-disabled")) { - $("#send").addClass("layui-disabled") - } - } else { - $("#send").removeClass("layui-disabled") - } - }) - - //人工接入 - $("#killRobot").click(function(){ - var id = $("#content").data("id") - $.post("http://" + that.host + "/sale/checkoutStatus?salesId="+ that.salesid +"&fansId=" + id ,function(data){ - if(data){ - that.create_warn({fansid:id,message:"接入成功"}) - $("#killRobot").hide() - $(".noRobot").show() - $('#activationRobot').attr('disabled',false).removeClass('on').text('点击机器人托管') - } - }) - - }) - - //机器人托管 - $('#activationRobot').click(function(){ - var id = $("#content").data("id") - $.post("http://" + that.host + "/sale/checkoutStatus?salesId="+ that.salesid +"&fansId=" + id ,function(data){ - if(!data){ - that.create_warn({fansid:id,message:"万小二接入成功"}) - $("#killRobot").show() - $(".noRobot").hide() - $('#activationRobot').attr('disabled',true).addClass('on').text('机器人托管中') - } - }) - }) - - //查看更多粉丝列表 - $(document).on('click','.moreFansBox span',function(){ - that.init() - $(this).parent().remove() - }) - - //查看更多聊天记录 - $(document).on("click",".postMore",function(){ - var page = $(this).data("page") - var fansid = $(this).parents("[data-fansid]").data("fansid") - that.postMore(fansid,page) - $(this).remove() - - }) - - //展开功能盒子 - $(".icon-guanbi").click(function(){ - var isOpen = $(this).is('.on') - if(isOpen){ - $(this).removeClass('on') - $(this).parent().find(".posStyle").css("display","none") - }else{ - $(this).addClass('on') - $(this).parent().find(".posStyle").css("display","block") - } - }) - //关闭功能盒子 - $(".posStyle").click(function(){ - $(".posStyle").css("display","none") - $(".icon-guanbi").removeClass("on") - }) - - //发送小程序卡片的盒子视图控制 - 显示 - $(".icon-fasonghongbaocopy").click(function(){ - $("#floorListCard").css("display","flex") - }) - //发送小程序卡片的盒子视图控制 - 隐藏 - $("#floorListCard .closeBox .icon-guanbi1").click(function(){ - $("#floorListCard").hide() - }) - //发送小程序卡片事件 - $("#floorListCard li span").click(function(){ - var fansid = $("#content").data("id") - var floorid = $(this).data("id") - var floorName = $(this).parent().text().replace(/发送/,"") - $("#floorListCard").hide() - $.get("http://" + that.host + "/sale/sendProudct",{"productId":floorid,"fansId":fansid },function(data){ - if(data.code == 0){ - that.create_warn({ - fansid:fansid, - message:"已发送卡片:" + floorName - }) - }else if(data.code == 45015){ - that.create_warn({ - fansid:fansid, - message:"发送卡片失败: 回应超时" - }) - }else if(data.code == 45047){ - that.create_warn({ - fansid:fansid, - message:"发送卡片失败: 连续下发条数超限" - }) - }else{ - that.create_warn({ - fansid:fansid, - message:"发送卡片失败: " + data.code - }) - } - - }) - }) - - //上传照片 - $.up({ - el:".icon-xiangji", - url:"../upload/UploadImg", - success:function(data){ - var id = $("#content").data("id") - var _ask = G_isAsk - var _salename = $("#send").data("salename") || "vanke" - var timeId = ""+new Date().getTime() - timeId = timeId.substring(4,timeId.length) - timeId = parseFloat(timeId) - var _obj = { - "fansid": id, - "ask": "", - "reply": "", - "id": timeId, - "imgurl2": location.host + data.data , - "salesid": that.salesid,//销售id - "salename": _salename, - "askfrom": _ask, - "readed": true, - "replytype":10 - } - that.create_newChat_(_obj) - _obj = JSON.stringify(_obj) - that.socket.send(_obj) - } - }) - - //触发搜索粉丝 - $('#queryFansBox .icon-duihao').click(function(){ - var val = $('#queryFansBox input').val() - that.show() - $.post('http://' + that.host + '/sale/portrait/search',{ - saleId:that.salesid, - keywork:val - },function(data){ - try { - if (data.code == 0) { - var str = "" - data.data.forEach(function(e){ - str += that.create_newChat_list_query(e) - }) - $(".queryFansResult ul").html(str) - $(".queryFansResult div").show() - } - if (!data.data || data.data.length<1 && that.fansListPage == 1) { - alert('没有记录') - } - } catch (error) { - that.hide() - } - that.hide() - }) - }) - $(document).on('click','#queryFansBox .queryLabelsBox .labelsList span',function(){ - var val = $(this).text() - that.show() - $.post('http://' + that.host + '/sale/portrait/search',{ - saleId:that.salesid, - keywork:val - },function(data){ - try { - if (data.code == 0) { - var str = "" - data.data.forEach(function(e){ - str += that.create_newChat_list_query(e) - }) - $(".queryFansResult ul").html(str) - $(".queryFansResult div").show() - } - if (!data.data || data.data.length<1 && that.fansListPage == 1) { - alert('没有记录') - } - } catch (error) { - that.hide() - } - that.hide() - }) - }) - - //进入搜索 - $(".layui-title-query").click(function(){ - $("#queryFansBox").fadeIn() - //初始话搜索界面的用户标签 - $.post('http://' + that.host + '/sale/tags/'+ that.salesid,function(data){ - if(data.code == 0){ - var str = '' - data.data.forEach(function(e){ - str += ''+ e +'' - }) - - - $('#queryFansBox .queryLabelsBox .labelsList').html(str) - } - }) - }) - - //进入粉丝编辑界面 - $(document).on('click','.layim-chat-user img',function(){ - $("#fansInfoBox").show() - that.show() - $.get('http://' + that.host + '/sale/fansPortrait/'+ that.fansInfo.id +'?saleId=' + that.salesid,function(data){ - try { - if(data.code == 0){ - - var _data = data.data.fans - $('#fansInfo_id').text(_data.id) - $('#fansInfo_logo').attr("src",_data.logo) - $('#fansInfo_add').text(_data.formattedAddress) - $('#fansInfo_nickname').text(_data.nickname) - - $('#fansInfo_parentId').text(data.data.saleId) - $("#fansInfo_upDate").text(that._toTime_G(data.data.updateDate || data.data.createDate)) - $('#fansInfo_note').text(!!data.data.remarkInfo ? data.data.remarkInfo : "") - $('#fansInfo_labels').html(that._toLabelTag(data.data.tag)) - $('#fansInfo_name').val(data.data.remarkName) - $('#fansInfo_tel').val(data.data.phone) - } - that.hide() - } catch (error) { - that.hide() - } - }) - }) - - //点击编辑标签(传值给标签编辑页) - $('#editLabelsFn').click(function () { - $('#fansInfoBox').find('.fansInfoBox_label').fadeIn() - var str = '' - $(this).find('span.labelItem').each(function(){ - str += '' + $(this).text() + '' - - }) - $('#fansInfoBox .userTags').html(str) - - $.post('http://' + that.host + '/sale/tags/'+ that.salesid,function(data){ - if(data.code == 0){ - var _str = '' - data.data.forEach(function(e){ - var isClass = "" - $('#editLabelsFn span.labelItem').each(function(){ - var _val = $(this).text() - if(_val == e ){ - isClass = "unSelect" - } - }) - _str += ''+ e +'' - }) - - - $('#fansInfoBox .tagHistory .tagListBox').html(_str) - } - }) - }) - - //保存粉丝信息 - $("#saveLabelFn").click(function () { - var labels = '' - $("#editLabelsFn").find('span.labelItem').each(function () { - labels += $(this).text() + '|' - }) - labels = labels.substring(0, labels.length - 1) - var tel = $(".telValue").val() - var note = $("#fansInfoBox").find('textarea').val() - var name = $('#fansInfoBox').find('.nameValue').val() - console.log(labels + "\n" + tel + "\n" + note + '\n' + name) - - - if(!!tel){ - if(!(/^1[34578]\d{9}$/.test(tel))) { - alert("手机号码有误,请重填"); - return false; - } - } - $.post('http://' + that.host + '/sale/updatePortrait/'+ that.fansInfo.id,{ - saleId:that.salesid, - phone:tel, - remarkName:name, - remarkInfo:note, - tag:labels - },function(data){ - console.log(data) - that.hide() - }) - $("#fansInfoBox").hide() - }) - - $("#closeLabelFn").click(function(){ - $("#fansInfoBox").hide() - }) - - - - - - - - - - - - - - - - - - }, - show:function(){ - $('.G_model').css('display','flex') - }, - hide:function(){ - $('.G_model').hide() - } - } - - function Showimg(el) { - this.el = el - } - - Showimg.prototype = { - getitems: function(el) { //获取items数组对象 - var list = document.querySelectorAll(el) - var items = [] - for(i = 0; i < list.length; i++) { - var obj = {} - obj.src = list[i].src - obj.h = list[i].naturalHeight - obj.w = list[i].naturalWidth - items.push(obj) - } - return items - }, - ceratePhoto: function(i) { //初始化新的相册框 - var pswpElement = document.querySelectorAll('.pswp')[0]; - var items = this.getitems(this.el); - var options = { - history: false, - focus: false, - index: i, - showAnimationDuration: 0, - hideAnimationDuration: 0 - }; - gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, options); - gallery.init() - }, - bind: function() { //绑定click事件 - var that = this - $(document).off("click", this.el) - $(document).on("click", this.el, function() { - var index = $(this).index(that.el) - that.ceratePhoto(index) - }) - $(this.el).click(function() {}) - } - } - - var showimg = new Showimg(".userimg") - showimg.bind() - - var chat = new Chat() - chat.init() - chat.bind() - chat.connect() - // chat.openFansChat() - function aa(){ } \ No newline at end of file diff --git a/WebContent/WEB-INF/res/js/mobileChat.min.js b/WebContent/WEB-INF/res/js/mobileChat.min.js deleted file mode 100644 index 50a4712..0000000 --- a/WebContent/WEB-INF/res/js/mobileChat.min.js +++ /dev/null @@ -1 +0,0 @@ -function Chat(){this.socket=null;this.salesid=G_salesid;this.fansid=G_fansid;this.isvank=G_isvank;this.firstOpenChat=true;this.host=location.host.indexOf("192")>-1||location.host.indexOf("localhost")>-1?location.host+"/zzhnc":location.host;this.url="ws://"+this.host+"/web/socket/"+G_salesid+"/"+G_isvank;this.fansListPage=1;this.fansInfo={};this.pages={};this.faceCode=["/::)","/::~","/::B","/::|","/:8-)","/::<","/::$","/::X","/::Z","/::'(","/::-|","/::@","/::P","/::D","/::O","/::(","/::+","/:–b","/::Q","/::T","/:,@P","/:,@-D","/::d","/:,@o","/::g","/:|-)","/::!","/::L","/::>","/::,@","/:,@f","/::-S","/:?","/:,@x","/:,@@","/::8","/:,@!","/:!!!","/:xx","/:bye","/:wipe","/:dig","/:handclap","/:&-(","/:B-)","/:<@","/:@>","/::-O","/:>-|","/:P-(","/::'|","/:X-)","/::*","/:@x","/:8*","/:pd","/:","/:beer","/:basketb","/:oo","/:coffee","/:eat","/:pig","/:rose","/:fade","/:showlove","/:heart","/:break","/:cake","/:li","/:bome","/:kn","/:footb","/:ladybug","/:shit","/:moon","/:sun","/:gift","/:hug","/:strong","/:weak","/:share","/:v","/:@)","/:jj","/:@@","/:bad","/:lvu","/:no","/:ok","/:love","/:","/:jump","/:shake","/:","/:circle","/:kotow","/:turn","/:skip","/:oy","/:#-0","/:oy","/:kiss","/:<&","/:&>"];this.faceText=["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","愉快","白银","傲慢","饥饿","困","恐慌","流汗","憨笑","悠闲","奋斗","咒骂","疑问","嘘","晕","疯了","哀","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","嘴唇","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","投降","激动","乱舞","献吻","左太极","右太极"];this.faceText2=["/微笑","/撇嘴","/色","/发呆","/得意","/流泪","/害羞","/闭嘴","/睡","/大哭","/尴尬","/发怒","/调皮","/呲牙","/惊讶","/难过","/酷","/冷汗","/抓狂","/吐","/偷笑","/愉快","/白银","/傲慢","/饥饿","/困","/恐慌","/流汗","/憨笑","/悠闲","/奋斗","/咒骂","/疑问","/嘘","/晕","/疯了","/哀","/骷髅","/敲打","/再见","/擦汗","/抠鼻","/鼓掌","/糗大了","/坏笑","/左哼哼","/右哼哼","/哈欠","/鄙视","/委屈","/快哭了","/阴险","/亲亲","/吓","/可怜","/菜刀","/西瓜","/啤酒","/篮球","/乒乓","/咖啡","/饭","/猪头","/玫瑰","/凋谢","/嘴唇","/爱心","/心碎","/蛋糕","/闪电","/炸弹","/刀","/足球","/瓢虫","/便便","/月亮","/太阳","/礼物","/拥抱","/强","/弱","/握手","/胜利","/抱拳","/勾引","/拳头","/差劲","/爱你","/NO","/OK","/爱情","/飞吻","/跳跳","/发抖","/怄火","/转圈","/磕头","/回头","/跳绳","/投降","/激动","/乱舞","/献吻","/左太极","/右太极"];this.faceImg=["http://www.onegreen.net/QQ/UploadFiles/201404/20140427102755304.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102806118.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102811204.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102816272.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102821779.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102826616.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102831909.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102836860.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102841446.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102846605.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102851155.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102856815.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102901326.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102906485.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102911867.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102916775.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102921112.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102926579.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102931107.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102936174.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102941562.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102946241.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102951305.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427102956983.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103001341.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103006230.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103011620.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103016770.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103021180.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103026333.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103031826.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103036856.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103041851.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103046204.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103051515.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103056368.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103101584.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103106639.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103111714.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103116995.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103121307.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103126628.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103131537.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103136922.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103141708.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103146409.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103151786.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103156150.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103201493.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103206968.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103211938.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103216563.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103221494.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103226447.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103231181.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103236908.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103241610.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103246942.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103251889.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103256822.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103301730.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103306315.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103311631.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103316218.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103321727.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103326466.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103331391.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103336293.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103341727.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103346519.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103351983.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103356315.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103401393.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103406284.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103411342.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103416889.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103421513.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103426896.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103431815.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103436286.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103441411.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103446541.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103451461.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103456248.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103501861.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103506188.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103511436.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103516890.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103521415.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103526248.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103531694.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103536789.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103541535.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103546800.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103551956.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103556647.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103601489.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103606571.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103611997.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103616555.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103621939.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103626894.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103636123.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103641405.png","http://www.onegreen.net/QQ/UploadFiles/201404/20140427103646322.png"]}Chat.prototype={init:function(){var e=this;if(this._getUrl_G("ccc")!="ccc"){if(this._getUrl_G("code")=="nmamtf18565803458"&&this.salesid!=224){$("body").html("非法访问,请在微信端打开")}}$.post("http://"+this.host+"/sale/chatlogList?salesId="+this.salesid+"&page="+this.fansListPage+"&pageSize=100",function(t){if(t.code==0){var a=t.data.length;var n=e._unique(t.data);n.forEach(function(t){var a=t.replytype<5?t.reply:t.ask;if(!a){a=t.reply||t.ask}e.create_newChat_list({fansid:t.fansid,logo:t.logo,nickname:t.nickname,ask:a,asktime:t.asktime});e.isLook({fansid:t.fansid},t.num);e.create_newChat_info({fansid:t.fansid})});console.log(a);if(a==100){e.fansListPage=e.fansListPage+1;$("#chatListBox").append("
  • 获取更多
  • ")}}if(!t.data||t.data.length<1&&e.fansListPage==1){$(".model_box").css("display","flex");$("#main").hide()}if(e.firstOpenChat&&!!e.fansid&&parseFloat(e.fansid)>0){e.fansInfo.id=e.fansid;e.fansInfo.name=$("[data-index='"+e.fansid+"']").find(".name").text();e.fansInfo.logo=$("[data-index='"+e.fansid+"']").find("div>img").attr("src");e.openFansChat()}})},connect:function(){var e=this;this.socket=new WebSocket(this.url);this.socket.onopen=function(){console.log("socket run..")};this.socket.onmessage=function(t){var a=null;try{a=JSON.parse(t.data);e.process(a)}catch(e){}};this.socket.onclose=function(){console.log("socket close..")}},process:function(e){if(!!e.imgurl2||!!e.reply&&!!!e.ask){this.create_newChat_(e,"me");this.updataChatList(e)}else{var t=this._isNewChat(e);if(t){}else{this.create_newChat_(e);this.updataChatList(e);if(!this._isInThisPage(e)){this.isLook(e)}}}if(false){this.create_warn(e)}},isLook:function(e,t){var a=localStorage.getItem("look");var n={};if(!!a){n=JSON.parse(localStorage.getItem("look"))}var i=n["_"+e.fansid]||0;i++;if(t!=undefined){if(t=="reset"){i=0}else{i=t}}n["_"+e.fansid]=i;for(x in n){var s=x.substring(1,x.length);if(s==e.fansid){var o=n[x]==1?" ":n[x];$("[data-index='"+s+"']").find(".dot").text(o)}}var l=JSON.stringify(n);localStorage.setItem("look",l);$("[data-index='"+s+"'] .dot").text();if($("[data-index='"+e.fansid+"'] .dot").text()==="0"){$("[data-index='"+e.fansid+"'] .dot").hide()}else{$("[data-index='"+e.fansid+"'] .dot").show()}},create_newChat_list:function(e,t){if($("[data-index="+e.fansid+"]").length==0){var a='
  • '+"
    "+""+''+"
    "+''+(e.nickname||"客户 : "+e.fansid)+""+''+this._toTimeText_G(e.asktime)+""+'

    '+this.toFaceImg(e.ask)+"

    "+'new'+"
  • ";if(t=="sort"){$("#chatListBox").prepend(a)}else{$("#chatListBox").append(a)}}$(".model_box").hide()},create_newChat_list_query:function(e){var t='
  • '+'
    '+'
    '+'

    '+(e.nickname||"客户 : "+e.fansid)+"

    "+"

    "+this.toFaceImg(e.lastAskMsg)+"

    "+"
    "+"
    "+'

    '+this._toTimeText_G(e.lastAskTime)+"

    "+"
    "+"
  • ";return t},create_newChat_info:function(e){if($('[data-fansid="'+e.fansid+'"]').length==0){var t='
    '+'
    '+"
      "+"
    "+"
    "+"
    ";$("#chatInfoBox").append(t)}},create_warn:function(e){var t='
  • '+""+e.message+""+"
  • ";var a=$("[data-fansid='"+e.fansid+"']").find("ul").height();if(e.sort){$("[data-fansid='"+e.fansid+"']").find("ul").prepend(t)}else{$("[data-fansid='"+e.fansid+"']").find("ul").append(t);$("[data-fansid='"+e.fansid+"']").find("div").scrollTop(a)}},create_getMore:function(e){var t=this;var a='
  • '+""+e.message+""+"
  • ";$("[data-fansid='"+e.fansid+"']").find("ul").prepend(a)},postMore:function(e,t){var a=this;$.post("http://"+this.host+"/sale/chatlogList?salesId="+this.salesid+"&page="+t+"&fansId="+e+"&pageSize=50",function(n){var i=t+1;if(n.data.data){var s=Math.ceil(n.data.count/20);n.data.data.forEach(function(e,t){a.create_newChat_(e,"sort")});if(s>=i){a.create_getMore({fansid:e,message:"查看更多",page:i})}else{a.create_warn({fansid:e,message:"没有更多记录",sort:"sort"})}}})},create_Img:function(e){var t=Math.random().toString(36).substr(2);var a='';return a},create_newChat_:function(e,t){if(t=="me"){this.clearState(e);return false}var a=this.msgTemplate(e);if(t=="sort"){$("[data-fansid='"+e.fansid+"']").find("ul").prepend(a)}else{$("[data-fansid='"+e.fansid+"']").find("ul").append(a)}showimg.bind();var n=!(e.replytype==9||e.replytype==11);if(!e.replytype){n=!!e.reply&&!!!e.ask}if(n){if(!$("#send").is(".layui-disabled")){$("#send").addClass("layui-disabled")}}if(t!="sort"){var i=$("[data-fansid='"+e.fansid+"']").find("ul").height();$("[data-fansid='"+e.fansid+"']").find("div").scrollTop(i)}},clearState:function(e){$("[data-msgid="+e.id+"]").html(this._toTime_G(e.asktime));if(e.replytype==-1){this.create_warn({fansid:e.fansid,message:e.reply||"消息处理异常,请刷新重试"});$("[data-msgid="+e.id+"]").html('');return false}if(e.replytype==45015){this.create_warn({fansid:e.fansid,message:"发送失败: 回应已超过48小时"});$("[data-msgid="+e.id+"]").html('');return false}if(e.replytype==45047){this.create_warn({fansid:e.fansid,message:"发送失败: 连续下发超过5条"});$("[data-msgid="+e.id+"]").html('');return false}if(e.replytype==40001||e.replytype==40002||e.replytype==40003||e.replytype==48001){this.create_warn({fansid:e.fansid,message:"参数错误,请截图联系管理员--\x3e "+e.replytype});$("[data-msgid="+e.id+"]").html('');return false}},sendTimeOut:function(e){setTimeout(function(){if($("[data-msgid="+e.id+"]").find(".icon-loading").length>0){$("[data-msgid="+e.id+"]").html('')}},1e4)},msgTemplate:function(e){var t=this;var a=!(e.replytype==9||e.replytype==11);a=!!e.reply&&!!!e.ask;var n=a?"layim-chat-mine":"";var i=a?e.reply:e.ask;var s=function(){var n="";if(e.replytype==1||e.replytype==2||e.replytype==3){n="../res/images/robot_logo.png"}else{n=a?"../res/images/vanke_logo.png":t.fansInfo.logo||"../res/images/default_user.png"}return n}();var o=function(){var n="";if(e.replytype==1||e.replytype==2||e.replytype==3){n="机器人"}else{n=a?e.salename||"vanke":t.fansInfo.name||"客户 : "+e.fansid}return n}();if(e.replytype==9){a=false;i=this.create_Img(e)}else{i=this.toFaceImg(i)}var l="";if(!!e.ask||!!e.imgurl){l+='
  • '+'
    '+''+''+(t.fansInfo.name||"客户 : "+e.fansid)+''+this._toTime_G(e.asktime)+""+"
    "+'
    '+(!!e.imgurl?this.create_Img(e.imgurl):this.toFaceImg(e.ask))+"
    "+"
  • "}if(!!e.reply||!!e.imgurl2){l+='
  • '+'
    '+''+'"+(!!e.asktime?this._toTime_G(e.asktime):'')+''+(e.replytype<4?"机器人":e.salename||"vanke")+""+"
    "+'
    '+(!!e.imgurl2?this.create_Img("http://"+e.imgurl2):this.toFaceImg(e.reply))+"
    "+"
  • "}return l},updataChatList:function(e){var t=!!e.reply&&!!!e.ask?e.reply:e.ask;$("[data-index='"+e.fansid+"']").find(".contInfo").html(this.toFaceImg(t));$("[data-index='"+e.fansid+"']").find(".time").text(this._toTimeText_G(e.asktime));$("#chatListBox").prepend($("#chatListBox").find("[data-index='"+e.fansid+"']").detach())},_isNewChat:function(e){var t=true;$("[data-fansid]").each(function(){if($(this).data("fansid")==e.fansid){t=false}});return t},_isInThisPage:function(e){var t=!$("[data-fansid='"+e.fansid+"']").is(".layui-hide");return t},_unique:function(e){var t=[];var a={};e.forEach(function(e){if(!a[e.fansid]){a[e.fansid]=true;t.push(e)}});return t},_toTimeText_G:function(e){if(typeof e!="string"&&typeof e!="number"){console.log(e+":No is a String");return e}try{if(new Date(e)=="Invalid Date"){e=e.replace(/-/g,"/")}var t=new Date(e).getTime()}catch(t){console.log("请传入正确的事件格式");return e}var a=(new Date).getTime();var n=a-t;n=n/1e3;if(n<0){console.log("超出当前日期");return"刚刚"}if(n<3600){if(n<60){return"刚刚"}else{return Math.floor(n/60)+"分钟前"}}else if(n<86400){return Math.floor(n/3600)+"小时前"}else if(n<864e3){return Math.floor(n/86400)+"天前"}else{var i=this._toTime_G(e);return i}},_toTime_G:function(e){var t=new Date(e);var a=t.getFullYear();var n=t.getMonth()+1;var i=t.getDate();var s=t.getHours();var o=t.getMinutes();if(n<10)n="0"+n;if(i<10)i="0"+i;if(s<10)s="0"+s;if(o<10)o="0"+o;return n+"-"+i+" "+s+":"+o},_getUrl_G:function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i");var a=window.location.search.substr(1).match(t);if(a!=null)return unescape(a[2]);return null},_toLabelTag:function(e){e=e.replace(/ /g,"");var t="";if(!!e){var a=e.split("|");e.split("|").forEach(function(e){t+=''+e+""})}return t},toFaceCode:function(e){var t=e;var a=/\[.*?\]/g;var n=a.exec(t);while(n){var i=n[0].replace(/\[/,"");i=i.replace(/\]/,"");var s=this.faceText.indexOf(i);e=e.replace(new RegExp(i,"g"),this.faceCode[s]);n=a.exec(t)}e=e.replace(/\[/g,"");e=e.replace(/\]/g,"");return e},toFaceImg:function(e){var t=e;var a=/\[.*?\]/g;var n=a.exec(t);var i=false;while(n){var s=n[0].replace(/\[/,"");s=s.replace(/\]/,"");var o=this.faceText.indexOf(s);if(o>-1){e=e.replace(new RegExp(s,"g"),'')}else{i="["+s+"]"}n=a.exec(t)}var l=this;this.faceText2.forEach(function(t,a){var n=new RegExp(t,"g");if(n.test(e)){e=e.replace(n,'')}});if(!!e){e=e.replace(/\[/g,"");e=e.replace(/\]/g,"");e=e.replace(/1){e.create_getMore({fansid:t,message:"查看更多",page:2})}else{e.create_warn({fansid:t,message:"没有更多记录"})}a.data.data.reverse().forEach(function(t,n){e.create_newChat_(t);if(n==a.data.data.length-1){e.updataChatList(t)}})}})}$("#chatBox").find("[data-fansid='"+t+"']").removeClass("layui-hide");$.post("http://"+e.host+"/sale/checkChatStatus?salesId="+e.salesid+"&fansId="+t,function(e){if(e){$(".noRobot").show();$(".isRobot").hide();$("#activationRobot").removeClass("on").attr("disabled",false).text("点击机器人托管")}else{$(".noRobot").hide();$(".isRobot").show();$("#activationRobot").addClass("on").attr("disabled",true).text("机器人托管中")}})}},bind:function(){var e=this;$(document).ready(function(){setTimeout(function(){$(".G_model").hide()},500)});$(document).on("click","[layim-event='chat']",function(){var t=$(this).data("index");var a=$(this).find(".name").text();var n=$(this).find("div>img").attr("src");$("#queryFansBox").hide();e.fansInfo={id:t,name:a,logo:n};e.create_newChat_info({fansid:t});e.resetCountMsg(t);e.isLook({fansid:t},"reset");$("#chatBox").removeClass("layui-hide");$("#chatName").text(a);$("#content").data("id",t);var i=$("[data-fansid='"+t+"']").find("ul").height();$("[data-fansid='"+t+"']").find("div").scrollTop(i);if($("#chatBox").find("[data-fansid='"+t+"']").find("li").length<1){e.show();$.post("http://"+e.host+"/sale/chatlogList?salesId="+e.salesid+"&page=1"+"&fansId="+t+"&pageSize=50",function(a){if(a.code==0){$("#send").data("salename",a.data.data[0].salename);var n=Math.ceil(a.data.count/20);if(n>1){e.create_getMore({fansid:t,message:"查看更多",page:2})}else{e.create_warn({fansid:t,message:"没有更多记录"})}a.data.data.reverse().forEach(function(t,n){e.create_newChat_(t);if(n==a.data.data.length-1){e.updataChatList(t)}})}e.hide()})}$("#chatBox").find("[data-fansid='"+t+"']").removeClass("layui-hide");$.post("http://"+e.host+"/sale/checkChatStatus?salesId="+e.salesid+"&fansId="+t,function(e){if(e){$(".noRobot").show();$(".isRobot").hide();$("#activationRobot").removeClass("on").attr("disabled",false).text("点击机器人托管")}else{$(".noRobot").hide();$(".isRobot").show();$("#activationRobot").addClass("on").attr("disabled",true).text("机器人托管中")}})});$("#backChat").click(function(){$("#chatBox").addClass("layui-hide");$("#chatBox").find("[data-fansid]").removeClass("layui-hide").addClass("layui-hide");$("#content").val("");var t=$("#content").data("id");e.resetCountMsg(t);e.init()});$("#send").click(function(){if($(this).is(".layui-disabled")){return false}var t=$("#content").val();$("#faceBox").slideUp(100);var a=t;t=e.toFaceCode(t);var n=$("#content").data("id");var i=G_isAsk;var s=$(this).data("salename")||"vanke";var o=""+(new Date).getTime();o=o.substring(4,o.length);o=parseFloat(o);var l={fansid:n,ask:"",reply:a,salesid:e.salesid,salename:s,id:o,askfrom:i,readed:true,replytype:4};e.create_newChat_(l);e.sendTimeOut(l);l.reply=t;l=JSON.stringify(l);e.socket.send(l);$("#content").val("")});$("#content").keyup(function(e){var t=$(this).val();t=t.replace(/ /g,"");if(t.length<1){if(!$("#send").is(".layui-disabled")){$("#send").addClass("layui-disabled")}}else{$("#send").removeClass("layui-disabled")}if(e.which==13){$("#send").click()}});$("#content").click(function(){var e=this;setTimeout(function(){e.scrollIntoView(true);var t=$(e).data("id");var a=$("[data-fansid='"+t+"']").find("ul").height();$("[data-fansid='"+t+"']").find("div").scrollTop(a);document.body.scrollTop=document.body.scrollHeight},300);$("#faceBox").slideUp(100)});$(".icon-xiaolian").click(function(e){e.stopPropagation();$("#faceBox").slideDown(100)});$("#faceBox").click(function(){$("#faceBox").slideUp(100)});$("ul.layui-layim-face li").click(function(e){e.stopPropagation();var t=$("#content").val();t+=$(this).attr("title");$("#content").val(t);console.log($(this));if(t.length<1){if(!$("#send").is(".layui-disabled")){$("#send").addClass("layui-disabled")}}else{$("#send").removeClass("layui-disabled")}});$("#killRobot").click(function(){var t=$("#content").data("id");$.post("http://"+e.host+"/sale/checkoutStatus?salesId="+e.salesid+"&fansId="+t,function(a){if(a){e.create_warn({fansid:t,message:"接入成功"});$("#killRobot").hide();$(".noRobot").show();$("#activationRobot").attr("disabled",false).removeClass("on").text("点击机器人托管")}})});$("#activationRobot").click(function(){var t=$("#content").data("id");$.post("http://"+e.host+"/sale/checkoutStatus?salesId="+e.salesid+"&fansId="+t,function(a){if(!a){e.create_warn({fansid:t,message:"万小二接入成功"});$("#killRobot").show();$(".noRobot").hide();$("#activationRobot").attr("disabled",true).addClass("on").text("机器人托管中")}})});$(document).on("click",".moreFansBox span",function(){e.init();$(this).parent().remove()});$(document).on("click",".postMore",function(){var t=$(this).data("page");var a=$(this).parents("[data-fansid]").data("fansid");e.postMore(a,t);$(this).remove()});$(".icon-guanbi").click(function(){var e=$(this).is(".on");if(e){$(this).removeClass("on");$(this).parent().find(".posStyle").css("display","none")}else{$(this).addClass("on");$(this).parent().find(".posStyle").css("display","block")}});$(".posStyle").click(function(){$(".posStyle").css("display","none");$(".icon-guanbi").removeClass("on")});$(".icon-fasonghongbaocopy").click(function(){$("#floorListCard").css("display","flex")});$("#floorListCard .closeBox .icon-guanbi1").click(function(){$("#floorListCard").hide()});$("#floorListCard li span").click(function(){var t=$("#content").data("id");var a=$(this).data("id");var n=$(this).parent().text().replace(/发送/,"");$("#floorListCard").hide();$.get("http://"+e.host+"/sale/sendProudct",{productId:a,fansId:t},function(a){if(a.code==0){e.create_warn({fansid:t,message:"已发送卡片:"+n})}else if(a.code==45015){e.create_warn({fansid:t,message:"发送卡片失败: 回应超时"})}else if(a.code==45047){e.create_warn({fansid:t,message:"发送卡片失败: 连续下发条数超限"})}else{e.create_warn({fansid:t,message:"发送卡片失败: "+a.code})}})});$.up({el:".icon-xiangji",url:"../upload/UploadImg",success:function(t){var a=$("#content").data("id");var n=G_isAsk;var i=$("#send").data("salename")||"vanke";var s=""+(new Date).getTime();s=s.substring(4,s.length);s=parseFloat(s);var o={fansid:a,ask:"",reply:"",id:s,imgurl2:location.host+t.data,salesid:e.salesid,salename:i,askfrom:n,readed:true,replytype:10};e.create_newChat_(o);o=JSON.stringify(o);e.socket.send(o)}});$("#queryFansBox .icon-duihao").click(function(){var t=$("#queryFansBox input").val();e.show();$.post("http://"+e.host+"/sale/portrait/search",{saleId:e.salesid,keywork:t},function(t){try{if(t.code==0){var a="";t.data.forEach(function(t){a+=e.create_newChat_list_query(t)});$(".queryFansResult ul").html(a);$(".queryFansResult div").show()}if(!t.data||t.data.length<1&&e.fansListPage==1){alert("没有记录")}}catch(t){e.hide()}e.hide()})});$(document).on("click","#queryFansBox .queryLabelsBox .labelsList span",function(){var t=$(this).text();e.show();$.post("http://"+e.host+"/sale/portrait/search",{saleId:e.salesid,keywork:t},function(t){try{if(t.code==0){var a="";t.data.forEach(function(t){a+=e.create_newChat_list_query(t)});$(".queryFansResult ul").html(a);$(".queryFansResult div").show()}if(!t.data||t.data.length<1&&e.fansListPage==1){alert("没有记录")}}catch(t){e.hide()}e.hide()})});$(".layui-title-query").click(function(){$("#queryFansBox").fadeIn();$.post("http://"+e.host+"/sale/tags/"+e.salesid,function(e){if(e.code==0){var t="";e.data.forEach(function(e){t+=''+e+""});$("#queryFansBox .queryLabelsBox .labelsList").html(t)}})});$(document).on("click",".layim-chat-user img",function(){$("#fansInfoBox").show();e.show();$.get("http://"+e.host+"/sale/fansPortrait/"+e.fansInfo.id+"?saleId="+e.salesid,function(t){try{if(t.code==0){var a=t.data.fans;$("#fansInfo_id").text(a.id);$("#fansInfo_logo").attr("src",a.logo);$("#fansInfo_add").text(a.formattedAddress);$("#fansInfo_nickname").text(a.nickname);$("#fansInfo_parentId").text(t.data.saleId);$("#fansInfo_upDate").text(e._toTime_G(t.data.updateDate||t.data.createDate));$("#fansInfo_note").text(!!t.data.remarkInfo?t.data.remarkInfo:"");$("#fansInfo_labels").html(e._toLabelTag(t.data.tag));$("#fansInfo_name").val(t.data.remarkName);$("#fansInfo_tel").val(t.data.phone)}e.hide()}catch(t){e.hide()}})});$("#editLabelsFn").click(function(){$("#fansInfoBox").find(".fansInfoBox_label").fadeIn();var t="";$(this).find("span.labelItem").each(function(){t+=""+$(this).text()+""});$("#fansInfoBox .userTags").html(t);$.post("http://"+e.host+"/sale/tags/"+e.salesid,function(e){if(e.code==0){var t="";e.data.forEach(function(e){var a="";$("#editLabelsFn span.labelItem").each(function(){var t=$(this).text();if(t==e){a="unSelect"}});t+=''+e+""});$("#fansInfoBox .tagHistory .tagListBox").html(t)}})});$("#saveLabelFn").click(function(){var t="";$("#editLabelsFn").find("span.labelItem").each(function(){t+=$(this).text()+"|"});t=t.substring(0,t.length-1);var a=$(".telValue").val();var n=$("#fansInfoBox").find("textarea").val();var i=$("#fansInfoBox").find(".nameValue").val();console.log(t+"\n"+a+"\n"+n+"\n"+i);if(!!a){if(!/^1[34578]\d{9}$/.test(a)){alert("手机号码有误,请重填");return false}}$.post("http://"+e.host+"/sale/updatePortrait/"+e.fansInfo.id,{saleId:e.salesid,phone:a,remarkName:i,remarkInfo:n,tag:t},function(t){console.log(t);e.hide()});$("#fansInfoBox").hide()});$("#closeLabelFn").click(function(){$("#fansInfoBox").hide()})},show:function(){$(".G_model").css("display","flex")},hide:function(){$(".G_model").hide()}};function Showimg(e){this.el=e}Showimg.prototype={getitems:function(e){var t=document.querySelectorAll(e);var a=[];for(i=0;i' + str + '') - $("#fansInfoBox .fansInfoBox_label .tagInput input").val('').focus() -}) -//选择历史标签 -$(document).on("click","#fansInfoBox .tagListBox span",function(){ - var _val = $(this).text() - var isHas = false - $('#fansInfoBox .userTags span').each(function(){ - - if($(this).text() == _val ){ - isHas = true - $(this).remove() - } - }) - if(isHas){ - $(this).removeClass('unSelect') - }else{ - $(this).addClass('unSelect') - $('#fansInfoBox .userTags').append('' + _val + '') - } -}) -//保存标签 -$("#fansInfoBox .saveTagBtnBox .save").click(function(){ - var _html = $('#fansInfoBox .userTags').html() - $("#editLabelsFn p.noeditLabels").html(_html) - $("#editLabelsFn p.noeditLabels span").addClass('labelItem') - $("#fansInfoBox .fansInfoBox_label").fadeOut() -}) -//取消保存标签 -$("#fansInfoBox .saveTagBtnBox .close").click(function(){ - $("#fansInfoBox .fansInfoBox_label").fadeOut() -}) - - - - - -// -----------------------搜索粉丝相关 - - - - -//取消搜索按钮 -$("#queryFansBox .qeruySection button").click(function(){ - $("#queryFansBox").fadeOut() -}) - -//监听粉丝框输入事件 -$('#queryFansBox input').keyup(function(){ - var _val = $(this).val() - - if(_val.length>0){ - $('#queryFansBox .icon-duihao').show() - $('#queryFansBox .icon-guanbi').show() - $('#queryFansBox button').hide() - }else{ - $('#queryFansBox .icon-duihao').hide() - $('#queryFansBox .icon-guanbi').hide() - $('#queryFansBox button').show() - } -}) - -//清空粉丝框输入内容 -$('#queryFansBox .icon-guanbi').click(function(){ - $('#queryFansBox').find('input').val('') - $('#queryFansBox .icon-duihao').hide() - $('#queryFansBox .icon-guanbi').hide() - $('#queryFansBox button').show() -}) - diff --git a/WebContent/WEB-INF/res/js/navbar.js b/WebContent/WEB-INF/res/js/navbar.js index 859a74d..e840d2b 100644 --- a/WebContent/WEB-INF/res/js/navbar.js +++ b/WebContent/WEB-INF/res/js/navbar.js @@ -4,28 +4,28 @@ layui.define(['element'], function(exports) { var $ = layui.jquery, layer = parent.layer === undefined ? layui.layer : parent.layer, element = layui.element, -// common = layui.common, + // common = layui.common, cacheName = 'tb_navbar'; var common = { - /** - * 抛出一个异常错误信息 - * @param {String} msg - */ - throwError: function(msg) { - throw new Error(msg); - return; - }, - /** - * 弹出一个错误提示 - * @param {String} msg - */ - msgError: function(msg) { - layer.msg(msg, { - icon: 5 - }); - return; - } - }; + /** + * 抛出一个异常错误信息 + * @param {String} msg + */ + throwError: function(msg) { + throw new Error(msg); + return; + }, + /** + * 弹出一个错误提示 + * @param {String} msg + */ + msgError: function(msg) { + layer.msg(msg, { + icon: 5 + }); + return; + } + }; var Navbar = function() { /** @@ -37,7 +37,7 @@ layui.define(['element'], function(exports) { url: undefined, //数据源地址 type: 'GET', //读取方式 cached: false, //是否使用缓存 - spreadOne:false //设置是否只展开一个二级菜单 + spreadOne: false //设置是否只展开一个二级菜单 }; this.v = '0.0.1'; }; @@ -119,12 +119,12 @@ layui.define(['element'], function(exports) { }); } } - + //只展开一个二级菜单 - if(_config.spreadOne){ + if(_config.spreadOne) { var $ul = $container.children('ul'); - $ul.find('li.layui-nav-item').each(function(){ - $(this).on('click',function(){ + $ul.find('li.layui-nav-item').each(function() { + $(this).on('click', function() { $(this).siblings().removeClass('layui-nav-itemed'); }); }); @@ -201,8 +201,8 @@ layui.define(['element'], function(exports) { /** * 清除缓存 */ - Navbar.prototype.cleanCached = function(){ - layui.data(cacheName,null); + Navbar.prototype.cleanCached = function() { + layui.data(cacheName, null); }; /** * 获取html字符串 @@ -221,28 +221,28 @@ layui.define(['element'], function(exports) { if(data[i].icon !== undefined && data[i].icon !== '') { if(data[i].icon.indexOf('icon-') !== -1) { ulHtml += ''; - }else if(data[i].icon.indexOf('fa-') !== -1) { + } else if(data[i].icon.indexOf('fa-') !== -1) { ulHtml += ''; } else { ulHtml += '' + data[i].icon + ''; } - + } ulHtml += '' + data[i].title + '' ulHtml += ''; ulHtml += '
    ' for(var j = 0; j < data[i].children.length; j++) { - ulHtml += '
    '; + ulHtml += '
    '; ulHtml += ''; if(data[i].children[j].icon !== undefined && data[i].children[j].icon !== '') { if(data[i].children[j].icon.indexOf('icon-') !== -1) { ulHtml += ''; - }else if(data[i].children[j].icon.indexOf('fa-') !== -1) { + } else if(data[i].children[j].icon.indexOf('fa-') !== -1) { ulHtml += ''; } else { ulHtml += '' + data[i].children[j].icon + ''; } - + } ulHtml += '' + data[i].children[j].title + ''; ulHtml += ''; @@ -253,14 +253,14 @@ layui.define(['element'], function(exports) { var dataUrl = (data[i].href !== undefined && data[i].href !== '') ? 'data-url="' + data[i].href + '"' : ''; ulHtml += ''; if(data[i].icon !== undefined && data[i].icon !== '') { - if(data[i].icon.indexOf('icon-') !== -1){ + if(data[i].icon.indexOf('icon-') !== -1) { ulHtml += ''; - }else if(data[i].icon.indexOf('fa-') !== -1) { + } else if(data[i].icon.indexOf('fa-') !== -1) { ulHtml += ''; } else { ulHtml += '' + data[i].icon + ''; } - + } ulHtml += '' + data[i].title + '' ulHtml += ''; diff --git a/WebContent/WEB-INF/res/js/tab.js b/WebContent/WEB-INF/res/js/tab.js index 76254d1..ece8e3f 100644 --- a/WebContent/WEB-INF/res/js/tab.js +++ b/WebContent/WEB-INF/res/js/tab.js @@ -1,290 +1,285 @@ /** tab.js By Beginner Emain:zheng_jinfan@126.com HomePage:http://www.zhengjinfan.cn */ -layui.define(['element', 'common'], function (exports) { - "use strict"; +layui.define(['element', 'common'], function(exports) { + "use strict"; - var mod_name = 'tab', - $ = layui.jquery, - element = layui.element, - commo = layui.common, - globalTabIdIndex = 1, - Tab = function () { - this.config = { - elem: undefined, - closed: true, //是否包含删除按钮 - autoRefresh: true, - contextMenu: false, - onSwitch: undefined - }; - }; - var ELEM = {}; - //版本号 - Tab.prototype.v = '0.1.5'; + var mod_name = 'tab', + $ = layui.jquery, + element = layui.element, + commo = layui.common, + globalTabIdIndex = 1, + Tab = function() { + this.config = { + elem: undefined, + closed: true, //是否包含删除按钮 + autoRefresh: true, + contextMenu: false, + onSwitch: undefined + }; + }; + var ELEM = {}; + //版本号 + Tab.prototype.v = '0.1.5'; /** * 参数设置 * @param {Object} options */ - Tab.prototype.set = function (options) { - var that = this; - $.extend(true, that.config, options); - return that; - }; + Tab.prototype.set = function(options) { + var that = this; + $.extend(true, that.config, options); + return that; + }; /** * 初始化 */ - Tab.prototype.init = function () { - var that = this; - var _config = that.config; - if (typeof (_config.elem) !== 'string' && typeof (_config.elem) !== 'object') { - common.throwError('Tab error: elem参数未定义或设置出错,具体设置格式请参考文档API.'); - } - var $container; - if (typeof (_config.elem) === 'string') { - $container = $('' + _config.elem + ''); - } - if (typeof (_config.elem) === 'object') { - $container = _config.elem; - } - if ($container.length === 0) { - common.throwError('Tab error:找不到elem参数配置的容器,请检查.'); - } - var filter = $container.attr('lay-filter'); - if (filter === undefined || filter === '') { - common.throwError('Tab error:请为elem容器设置一个lay-filter过滤器'); - } - _config.elem = $container; - ELEM.titleBox = $container.children('ul.layui-tab-title'); - ELEM.contentBox = $container.children('div.layui-tab-content'); - ELEM.tabFilter = filter; - return that; - }; + Tab.prototype.init = function() { + var that = this; + var _config = that.config; + if(typeof(_config.elem) !== 'string' && typeof(_config.elem) !== 'object') { + common.throwError('Tab error: elem参数未定义或设置出错,具体设置格式请参考文档API.'); + } + var $container; + if(typeof(_config.elem) === 'string') { + $container = $('' + _config.elem + ''); + } + if(typeof(_config.elem) === 'object') { + $container = _config.elem; + } + if($container.length === 0) { + common.throwError('Tab error:找不到elem参数配置的容器,请检查.'); + } + var filter = $container.attr('lay-filter'); + if(filter === undefined || filter === '') { + common.throwError('Tab error:请为elem容器设置一个lay-filter过滤器'); + } + _config.elem = $container; + ELEM.titleBox = $container.children('ul.layui-tab-title'); + ELEM.contentBox = $container.children('div.layui-tab-content'); + ELEM.tabFilter = filter; + return that; + }; /** * 查询tab是否存在,如果存在则返回索引值,不存在返回-1 * @param {String} 标题 */ - Tab.prototype.exists = function (title) { - var that = ELEM.titleBox === undefined ? this.init() : this, - tabIndex = -1; - ELEM.titleBox.find('li').each(function (i, e) { - var $cite = $(this).children('cite'); - if ($cite.text() === title) { - tabIndex = i; - }; - }); - return tabIndex; - }; + Tab.prototype.exists = function(title) { + var that = ELEM.titleBox === undefined ? this.init() : this, + tabIndex = -1; + ELEM.titleBox.find('li').each(function(i, e) { + var $cite = $(this).children('cite'); + if($cite.text() === title) { + tabIndex = i; + }; + }); + return tabIndex; + }; /** * 获取tabid * @param {String} 标题 */ - Tab.prototype.getTabId = function (title) { - var that = ELEM.titleBox === undefined ? this.init() : this, - tabId = -1; - ELEM.titleBox.find('li').each(function (i, e) { - var $cite = $(this).children('cite'); - if ($cite.text() === title) { - tabId = $(this).attr('lay-id'); - }; - }); - return tabId; - }; + Tab.prototype.getTabId = function(title) { + var that = ELEM.titleBox === undefined ? this.init() : this, + tabId = -1; + ELEM.titleBox.find('li').each(function(i, e) { + var $cite = $(this).children('cite'); + if($cite.text() === title) { + tabId = $(this).attr('lay-id'); + }; + }); + return tabId; + }; /** * 添加选择卡,如果选择卡存在则获取焦点 * @param {Object} data */ - Tab.prototype.tabAdd = function (data) { - var that = this; - var _config = that.config; - var tabIndex = that.exists(data.title); - if (tabIndex === -1) { - //设置只能同时打开多少个tab选项卡 - if (_config.maxSetting !== 'undefined') { - var currentTabCount = _config.elem.children('ul.layui-tab-title').children('li').length; - if (typeof _config.maxSetting === 'number') { - if (currentTabCount === _config.maxSetting) { - layer.msg('为了系统的流畅度,只能同时打开' + _config.maxSetting + '个选项卡。'); - return; - } - } - if (typeof _config.maxSetting === 'object') { - var max = _config.maxSetting.max || 8; - var msg = _config.maxSetting.tipMsg || '为了系统的流畅度,只能同时打开' + max + '个选项卡。'; - if (currentTabCount === max) { - layer.msg(msg); - return; - } - } - } - globalTabIdIndex++; - var content = ''; - var title = ''; - if (data.icon !== undefined) { - if (data.icon.indexOf('fa-') !== -1) { - title += ''; - } else { - title += ''; - } - } - title += '' + data.title + ''; - if (_config.closed) { - title += ''; - } - //添加tab - element.tabAdd(ELEM.tabFilter, { - title: title, - content: content, - id: new Date().getTime() - }); - //iframe 自适应 - ELEM.contentBox.find('iframe[data-id=' + globalTabIdIndex + ']').each(function () { - $(this).height(ELEM.contentBox.height()); - }); - if (_config.closed) { - //监听关闭事件 - ELEM.titleBox.find('li').children('i.layui-tab-close[data-id=' + globalTabIdIndex + ']').on('click', function () { - element.tabDelete(ELEM.tabFilter, $(this).parent('li').attr('lay-id')).init(); - if (_config.contextMenu) { - $(document).find('div.uiba-contextmenu').remove(); //移除右键菜单dom - } - }); - }; - //切换到当前打开的选项卡 - element.tabChange(ELEM.tabFilter, that.getTabId(data.title)); - } else { - element.tabChange(ELEM.tabFilter, that.getTabId(data.title)); - //自动刷新 - _config.elem.find('div.layui-tab-content > div').eq(tabIndex).children('iframe')[0].contentWindow.location = data.href; - /*if (_config.autoRefresh) { - _config.elem.find('div.layui-tab-content > div').eq(tabIndex).children('iframe')[0].contentWindow.location.reload(); - }*/ - } - if (_config.contextMenu) { - element.on('tab(' + ELEM.tabFilter + ')', function (data) { - $(document).find('div.admin-contextmenu').remove(); - }); - ELEM.titleBox.find('li').on('contextmenu', function (e) { - var $that = $(e.target); - e.preventDefault(); - e.stopPropagation(); + Tab.prototype.tabAdd = function(data) { + var that = this; + var _config = that.config; + var tabIndex = that.exists(data.title); + if(tabIndex === -1) { + //设置只能同时打开多少个tab选项卡 + if(_config.maxSetting !== 'undefined') { + var currentTabCount = _config.elem.children('ul.layui-tab-title').children('li').length; + if(typeof _config.maxSetting === 'number') { + if(currentTabCount === _config.maxSetting) { + layer.msg('为了系统的流畅度,只能同时打开' + _config.maxSetting + '个选项卡。'); + return; + } + } + if(typeof _config.maxSetting === 'object') { + var max = _config.maxSetting.max || 8; + var msg = _config.maxSetting.tipMsg || '为了系统的流畅度,只能同时打开' + max + '个选项卡。'; + if(currentTabCount === max) { + layer.msg(msg); + return; + } + } + } + globalTabIdIndex++; + var content = ''; + var title = ''; + if(data.icon !== undefined) { + if(data.icon.indexOf('fa-') !== -1) { + title += ''; + } else { + title += ''; + } + } + title += '' + data.title + ''; + if(_config.closed) { + title += ''; + } + //添加tab + element.tabAdd(ELEM.tabFilter, { + title: title, + content: content, + id: new Date().getTime() + }); + //iframe 自适应 + ELEM.contentBox.find('iframe[data-id=' + globalTabIdIndex + ']').each(function() { + $(this).height(ELEM.contentBox.height()); + }); + if(_config.closed) { + //监听关闭事件 + ELEM.titleBox.find('li').children('i.layui-tab-close[data-id=' + globalTabIdIndex + ']').on('click', function() { + element.tabDelete(ELEM.tabFilter, $(this).parent('li').attr('lay-id')).init(); + if(_config.contextMenu) { + $(document).find('div.uiba-contextmenu').remove(); //移除右键菜单dom + } + }); + }; + //切换到当前打开的选项卡 + element.tabChange(ELEM.tabFilter, that.getTabId(data.title)); + } else { + element.tabChange(ELEM.tabFilter, that.getTabId(data.title)); + //自动刷新 + if (_config.autoRefresh) { + _config.elem.find('div.layui-tab-content > div').eq(tabIndex).children('iframe')[0].contentWindow.location.reload(); + } + } + if(_config.contextMenu) { + element.on('tab(' + ELEM.tabFilter + ')', function(data) { + $(document).find('div.admin-contextmenu').remove(); + }); + ELEM.titleBox.find('li').on('contextmenu', function(e) { + var $that = $(e.target); + e.preventDefault(); + e.stopPropagation(); - var $target = e.target.nodeName === 'LI' ? e.target : e.target.parentElement; - - - - - //判断,如果存在右键菜单的div,则移除,保存页面上只存在一个 - if ($(document).find('div.admin-contextmenu').length > 0) { - $(document).find('div.admin-contextmenu').remove(); - } - //创建一个div - var div = document.createElement('div'); - //设置一些属性 - div.className = 'admin-contextmenu'; - div.style.width = '130px'; - div.style.backgroundColor = 'white'; + var $target = e.target.nodeName === 'LI' ? e.target : e.target.parentElement; - var ul = '
      '; - ul += '
    • 刷新
    • '; - ul += '
    • 关闭当前
    • '; - ul += '
    • 关闭其他
    • '; - ul += '
    • 全部关闭
    • '; - ul += '
    '; - div.innerHTML = ul; - div.style.top = e.pageY + 'px'; - div.style.left = e.pageX + 'px'; - //将dom添加到body的末尾 - document.getElementsByTagName('body')[0].appendChild(div); + //判断,如果存在右键菜单的div,则移除,保存页面上只存在一个 + if($(document).find('div.admin-contextmenu').length > 0) { + $(document).find('div.admin-contextmenu').remove(); + } + //创建一个div + var div = document.createElement('div'); + //设置一些属性 + div.className = 'admin-contextmenu'; + div.style.width = '130px'; + div.style.backgroundColor = 'white'; - //获取当前点击选项卡的id值 - var id = $($target).find('i.layui-tab-close').data('id'); - //获取当前点击选项卡的索引值 - var clickIndex = $($target).attr('lay-id'); - var $context = $(document).find('div.admin-contextmenu'); - if ($context.length > 0) { - $context.eq(0).children('ul').children('li').each(function () { - var $that = $(this); - //绑定菜单的点击事件 - $that.on('click', function () { - //获取点击的target值 - var target = $that.data('target'); - // - switch (target) { - case 'refresh': //刷新当前 - var src = ELEM.contentBox.find('iframe[data-id=' + id + ']')[0].src; - ELEM.contentBox.find('iframe[data-id=' + id + ']')[0].src = src; - break; - case 'closeCurrent': //关闭当前 - if (clickIndex !== 0) { - element.tabDelete(ELEM.tabFilter, clickIndex); - } - break; - case 'closeOther': //关闭其他 - ELEM.titleBox.children('li').each(function () { - var $t = $(this); - var id1 = $t.find('i.layui-tab-close').data('id'); - if (id1 != id && id1 !== undefined) { - element.tabDelete(ELEM.tabFilter, $t.attr('lay-id')); - } - }); - break; - case 'closeAll': //全部关闭 - ELEM.titleBox.children('li').each(function () { - var $t = $(this); - if ($t.index() !== 0) { - element.tabDelete(ELEM.tabFilter, $t.attr('lay-id')); - } - }); - break; - } - //处理完后移除右键菜单的dom - $context.remove(); - }); - }); + var ul = '
      '; + ul += '
    • 刷新
    • '; + ul += '
    • 关闭当前
    • '; + ul += '
    • 关闭其他
    • '; + ul += '
    • 全部关闭
    • '; + ul += '
    '; + div.innerHTML = ul; + div.style.top = e.pageY + 'px'; + div.style.left = e.pageX + 'px'; + //将dom添加到body的末尾 + document.getElementsByTagName('body')[0].appendChild(div); - $(document).on('click', function () { - $context.remove(); - }); - } - return false; - }); - } + //获取当前点击选项卡的id值 + var id = $($target).find('i.layui-tab-close').data('id'); + //获取当前点击选项卡的索引值 + var clickIndex = $($target).attr('lay-id'); + var $context = $(document).find('div.admin-contextmenu'); + if($context.length > 0) { + $context.eq(0).children('ul').children('li').each(function() { + var $that = $(this); + //绑定菜单的点击事件 + $that.on('click', function() { + //获取点击的target值 + var target = $that.data('target'); + // + switch(target) { + case 'refresh': //刷新当前 + var src = ELEM.contentBox.find('iframe[data-id=' + id + ']')[0].src; + ELEM.contentBox.find('iframe[data-id=' + id + ']')[0].src = src; + break; + case 'closeCurrent': //关闭当前 + if(clickIndex !== 0) { + element.tabDelete(ELEM.tabFilter, clickIndex); + } + break; + case 'closeOther': //关闭其他 + ELEM.titleBox.children('li').each(function() { + var $t = $(this); + var id1 = $t.find('i.layui-tab-close').data('id'); + if(id1 != id && id1 !== undefined) { + element.tabDelete(ELEM.tabFilter, $t.attr('lay-id')); + } + }); + break; + case 'closeAll': //全部关闭 + ELEM.titleBox.children('li').each(function() { + var $t = $(this); + if($t.index() !== 0) { + element.tabDelete(ELEM.tabFilter, $t.attr('lay-id')); + } + }); + break; + } + //处理完后移除右键菜单的dom + $context.remove(); + }); + }); - if (_config.onSwitch) { - element.on('tab(' + ELEM.tabFilter + ')', function (data) { - _config.onSwitch({ - index: data.index, - elem: data.elem, - id: ELEM.titleBox.children('li').eq(data.index).attr('lay-id') - }); - var mun= $(this).attr("lay-id"); - if(mun=="0"){ - var src = ELEM.contentBox.find('iframe[data-id=' + mun + ']')[0].src; - ELEM.contentBox.find('iframe[data-id=' + mun + ']')[0].src = src; - } - - - }); - } - }; - /** + $(document).on('click', function() { + $context.remove(); + }); + } + return false; + }); + } + + if(_config.onSwitch) { + element.on('tab(' + ELEM.tabFilter + ')', function(data) { + _config.onSwitch({ + index: data.index, + elem: data.elem, + id: ELEM.titleBox.children('li').eq(data.index).attr('lay-id') + }); + var mun = $(this).attr("lay-id"); + if(mun == "0") { + var src = ELEM.contentBox.find('iframe[data-id=' + mun + ']')[0].src; + ELEM.contentBox.find('iframe[data-id=' + mun + ']')[0].src = src; + } + + }); + } + }; + /** * 获取当前获得焦点的tabid */ - Tab.prototype.getCurrentTabId = function () { - var that = this; - var _config = that.config; - return $(_config.elem).find('ul.layui-tab-title').children('li.layui-this').attr('lay-id'); - } - /** + Tab.prototype.getCurrentTabId = function() { + var that = this; + var _config = that.config; + return $(_config.elem).find('ul.layui-tab-title').children('li.layui-this').attr('lay-id'); + } + /** * 删除指定的tab选项卡 * @param {String} id */ - Tab.prototype.deleteTab = function (id) { - var that = this; - element.tabDelete(ELEM.tabFilter, id); - return that; - } + Tab.prototype.deleteTab = function(id) { + var that = this; + element.tabDelete(ELEM.tabFilter, id); + return that; + } - var tab = new Tab(); - exports(mod_name, function (options) { - return tab.set(options); - }); + var tab = new Tab(); + exports(mod_name, function(options) { + return tab.set(options); + }); }); \ No newline at end of file diff --git a/WebContent/WEB-INF/res/js/up.js b/WebContent/WEB-INF/res/js/up.js deleted file mode 100644 index 3760ea1..0000000 --- a/WebContent/WEB-INF/res/js/up.js +++ /dev/null @@ -1,55 +0,0 @@ -(function($){ - function Upload__(option){ - this.option = option = $.extend({},Upload__.default,option) - this.bind() - } - Upload__.default ={ - el:"", - url:"", - isImg:true, - success:function(data){ - }, - type:"post", - } - Upload__.prototype = { - bind:function(){ - if(!this.option.url || !this.option.el){ - console.error("no url or el") - return false - } - $(this.option.el).click(function(){ - - $("#ffffff").remove() - $("body").append("
    ") - $("#ffffff input").click() - }.bind(this)) - var that = this - $(document).on("change","#ffffff input",function(){ - that.send() - - }) - }, - send:function(){ - var data = new FormData($("#ffffff")[0]) - $.ajax({ - url: this.option.url, - type: this.option.type, - data: data, - asyne:false, - processData: false, - contentType: false, - - success:this.option.success, - beforeSend:function(){ - $("#ffffff").remove() - } - }); - }, - } - $.extend({ - up:function(op){ - - new Upload__(op) - } - }) -})(jQuery) \ No newline at end of file