Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6a51a3c8
authored
Jun 24, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
8823e059
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
29 deletions
Application/Home/View/public/foot.html
Application/Home/View/public/header.html
dist/css/chat.css.map
dist/js/global/api.js
dist/js/global/global.min.js
Application/Home/View/public/foot.html
View file @
6a51a3c8
<script
src=
"__PUBLIC__/js/global/x_public.min.js"
type=
"text/javascript"
></script>
<script
src=
"__PUBLIC__/js/global/x_public.min.js"
type=
"text/javascript"
></script>
<script
src=
"__PUBLIC__/js/global/api.js"
type=
"text/javascript"
></script>
<script
src=
"__PUBLIC__/js/global/global.min.js"
type=
"text/javascript"
></script>
<script
src=
"__PUBLIC__/js/layui/layui.all.js"
></script>
<script
src=
"__PUBLIC__/js/global/global.min.js"
type=
"text/javascript"
></script>
Application/Home/View/public/header.html
View file @
6a51a3c8
<meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
/>
<meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
/>
<meta
name=
"renderer"
content=
"webkit"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
/>
<meta
name=
"keywords"
content=
""
/>
<meta
name=
"description"
content=
""
/>
<meta
name=
"viewport"
content=
"width=device-width; initial-scale=1; maximum-scale=1; user-scalable=0;"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
/>
<meta
name=
"keywords"
content=
""
/>
<meta
name=
"description"
content=
""
/>
<meta
name=
"viewport"
content=
"width=device-width; initial-scale=1; maximum-scale=1; user-scalable=0;"
/>
<title>
IC业务助手
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__PUBLIC__/css/common/base.css"
>
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/common/ie.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/common/ie.css">
<![endif]-->
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__PUBLIC__/js/layui/css/layui.css"
>
<script>
var
auth
=
'authapi'
,
so
=
'soapi'
,
user
=
'userapi'
,
goods
=
'goodsapi'
,
inquiry
=
'inquiryapi'
;
</script>
dist/css/chat.css.map
View file @
6a51a3c8
{"version":3,"sources":["chat.less"],"names":[],"mappings":"AAAA,aACI;EACI,kBAAA;;AAFR,aACI,SAGI;EACI,kBAAA;EACA,SAAA;EACA,UAAA;EACA,WAAA;EACA,YAAA;EACA,gBAAA;;AAVZ,aACI,SAGI,aAQI;EACI,YAAA;EACA,+BAAA;EACA,YAAA;EACA,gBAAA;EACA,gBAAA;EACA,sBAAA;;AAEA,aAnBZ,SAGI,aAQI,aAQK;EACG,UAAA;;AArBpB,aACI,SAGI,aAQI,aAYI;EACI,gBAAA;EACA,0BAAA;;AA1BpB,aACI,SAGI,aAQI,aAkBI;EACI,uBAAA;EACA,eAAA;EACA,gBAAA;EACA,kBAAA;;AAEA,aAnChB,SAGI,aAQI,aAkBI,iBAMK;AACD,aApChB,SAGI,aAQI,aAkBI,iBAOK;EACG,yCAAA;;AAtCxB,aACI,SAGI,aAQI,aAkBI,iBAWI;EACI,YAAA;EACA,WAAA;EACA,sBAAA;;AA5CxB,aACI,SAGI,aAQI,aAkBI,iBAiBI;EACI,kBAAA;EACA,MAAA;EACA,WAAA;EACA,UAAA;EACA,SAAA;;AAGI,aAtDxB,SAGI,aAQI,aAkBI,iBAiBI,YAOI,IACK;EACG,gBAAA;;AADJ,aAtDxB,SAGI,aAQI,aAkBI,iBAiBI,YAOI,IACK,IAGG;EACI,eAAA;EACA,cA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KZ,aApKpB,SAGI,aAiGI,cAoCI,aAaI,aAeK;EACG,iBAAA;;AADJ,aApKpB,SAGI,aAiGI,cAoCI,aAaI,aAeK,MAGG;EACI,kBAAA;;AAJR,aApKpB,SAGI,aAiGI,cAoCI,aAaI,aAeK,MAGG,gBAGI;EACI,yBAAA;;AA5KpC,aACI,SAGI,aAiGI,cAoCI,aAaI,aA2BI;EACI,YAAA;EACA,WAAA;EACA,sBAAA;;AApL5B,aACI,SAGI,aAiGI,cAoCI,aAaI,aAkCI,gBACI;EACI,qBAAA;EACA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,kBAAA;;AA9LhC,aACI,SAGI,aAiGI,cAoCI,aAaI,aAkCI,gBAUI;EACI,eAAA;EACA,cAAA;EACA,kBAAA","file":"chat.css"}
\ No newline at end of file
{"version":3,"sources":["chat.less"],"names":[],"mappings":"AAAA,aACI;EACI,kBAAA;;AAFR,aACI,SAGI;EACI,kBAAA;EACA,SAAA;EACA,UAAA;EACA,WAAA;EACA,YAAA;EACA,gBAAA;;AAVZ,aACI,SAGI,aAQI;EACI,YAAA;EACA,+BAAA;EACA,YAAA;EACA,gBAAA;EACA,gBAAA;EACA,sBAAA;;AAEA,aAnBZ,SAGI,aAQI,aAQK;EACG,UAAA;;AArBpB,aACI,SAGI,aAQI,aAYI;EACI,gBAAA;EACA,0BAAA;;AA1BpB,aACI,SAGI,aAQI,aAkBI;EACI,uBAAA;EACA,eAAA;EACA,gBAAA;EACA,kBAAA;;AAEA,aAnChB,SAGI,aAQI,aAkBI,iBAMK;AACD,aApChB,SAGI,aAQI,aAkBI,iBAOK;EACG,yCAAA;;AAtCxB,aACI,SAGI,aAQI,aAkBI,iBAWI;EACI,YAAA;EACA,WAAA;EACA,sBAAA;;AA5CxB,aACI,SAGI,aAQI,aAkBI,iBAiBI;EACI,kBAAA;EACA,MAAA;EACA,WAAA;EACA,UAAA;EACA,SAAA;;AAGI,aAtDxB,SAGI,aAQI,aAkBI,iBAiBI,YAOI,IACK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SAGI,aAiGI,cAyCI,aAaI,aAGK;EACG,gBAAA;;AADJ,aA7JpB,SAGI,aAiGI,cAyCI,aAaI,aAGK,KAGG;EACI,iBAAA;;AAJR,aA7JpB,SAGI,aAiGI,cAyCI,aAaI,aAGK,KAGG,gBAGI;EACI,yBAAA;;AAKZ,aAzKpB,SAGI,aAiGI,cAyCI,aAaI,aAeK;EACG,iBAAA;;AADJ,aAzKpB,SAGI,aAiGI,cAyCI,aAaI,aAeK,MAGG;EACI,kBAAA;;AAJR,aAzKpB,SAGI,aAiGI,cAyCI,aAaI,aAeK,MAGG,gBAGI;EACI,yBAAA;;AAjLpC,aACI,SAGI,aAiGI,cAyCI,aAaI,aA2BI;EACI,YAAA;EACA,WAAA;EACA,sBAAA;;AAzL5B,aACI,SAGI,aAiGI,cAyCI,aAaI,aAkCI,gBACI;EACI,qBAAA;EACA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,kBAAA;;AAnMhC,aACI,SAGI,aAiGI,cAyCI,aAaI,aAkCI,gBAUI;EACI,eAAA;EACA,cAAA;EACA,kBAAA","file":"chat.css"}
\ No newline at end of file
dist/js/global/api.js
0 → 100644
View file @
6a51a3c8
/**
* 登录、注册、找回密码、登录状态、绑定第三方账户(非必须登录)
* auth => 'authapi.icsales.com'
*
* 询价中心、后台首页(部分接口)、抢单专区、后台搜索、前台搜索(非必须登录)
* so => 'soapi.icsales.com'
*
* 登录会员信息、会员认证(包含但不限于新增认证、认证列表)、积分、账户设置、站内消息通知(必须登录)
* user => 'userapi.icsales.com'
*
* 必须登录:我的商品列表、编辑、新增、删除、下架、上架、批量上传、商品数量统计、批量上传任务状态(非必须登录:商详)
* goods => 'goodsapi.icsales.com'
*
* 我的询价列表、询价下架and上架、询价详情、询价数量统计、发布询价 报价列表、报价详情(询报价相关)、报价数量统计、发布报价(必须登录)
* inquiry => 'inquiryapi.icsales.com
*/
(
function
(
window
)
{
apis
=
{
/**
* 商品列表
*/
goodsInfo
:
goods
+
'/goods/info'
,
/**
* 商品搜索
*/
goodsSearch
:
goods
+
'/goods/search'
};
if
(
typeof
define
===
"function"
&&
define
.
amd
)
{
return
apis
;
}
else
{
window
.
apis
=
apis
;
}
})(
window
);
dist/js/global/global.min.js
View file @
6a51a3c8
;
!
function
()
{
;
!
function
()
{
window
.
IcController
=
{
init
:
function
()
{
this
.
mounted
(
this
).
handleBind
(
this
);
},
getData
:
function
(
url
,
type
,
param
,
callback
,
loading
)
{
var
index
;
if
(
loading
==
false
)
{
index
=
null
;
}
else
{
index
=
layer
.
load
(
1
);
}
var
index
=
layer
.
load
(
1
);
var
platform
=
{
pf
:
20
...
...
@@ -19,6 +12,13 @@
var
params
=
$
.
extend
({},
platform
,
param
);
//跨域模式切换 兼容
var
dataTypeXpx
=
"json"
;
if
((
navigator
.
userAgent
.
indexOf
(
'MSIE'
)
>=
0
)
&&
(
navigator
.
userAgent
.
indexOf
(
'Opera'
)
<
0
))
{
dataTypeXpx
=
"jsonp"
;
}
var
cookieHostname
=
window
.
location
.
hostname
.
split
(
"."
)[
1
]
+
"."
+
window
.
location
.
hostname
.
split
(
"."
)[
2
];
$
.
ajax
({
type
:
type
,
url
:
url
,
...
...
@@ -54,6 +54,7 @@
})
}();
//工具类
(
function
(
window
)
{
Util
=
{
/**
...
...
@@ -139,10 +140,12 @@
window
.
Util
=
Util
;
}
})(
window
);
//api列表
(
function
(
window
)
{
Api
=
{
login
:
"sy"
login
:
"sy"
};
if
(
typeof
define
===
"function"
&&
define
.
amd
)
{
return
Api
;
...
...
@@ -151,12 +154,6 @@
}
})(
window
);
//跨域模式切换 兼容
// var dataTypeXpx = "json";
// if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)) {
// dataTypeXpx = "jsonp";
// }
// var cookieHostname = window.location.hostname.split(".")[1] + "." + window.location.hostname.split(".")[2];
//form序列化json
$
.
fn
.
serializeJson
=
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment