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
1729f808
authored
Jul 04, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
123123213
parent
fd096e79
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
193 additions
and
104 deletions
Application/Home/View/QuotePrice/releaseinquiry.html
dist/css/common/base.css
dist/css/common/base.less
dist/js/chat/index.js
dist/js/chat/webim.config.js
dist/js/global/api.js
dist/js/quoteprice/releaseinquiry.js
Application/Home/View/QuotePrice/releaseinquiry.html
View file @
1729f808
...
@@ -28,17 +28,19 @@
...
@@ -28,17 +28,19 @@
</div>
</div>
<div
class=
"form_content clr"
>
<div
class=
"form_content clr"
>
<form
id=
"xj_form"
>
<form
id=
"xj_form"
>
<div
class=
"form_left fl layui-form"
>
<div
class=
"form_left fl layui-form"
>
<div
class=
"xh input_div "
>
<div
class=
"xh input_div "
>
<span
class=
"input_title lineBlock"
>
*型号:
</span>
<span
class=
"input_title lineBlock"
>
*型号:
</span>
<div
class=
"input_parent"
>
<div
class=
"input_parent"
>
<input
type=
"text"
name=
"goods_name"
placeholder=
"请输入商品型号"
class=
"input boxsiz"
lay-verify=
"required"
>
<input
type=
"text"
name=
"goods_name"
placeholder=
"请输入商品型号"
class=
"input boxsiz"
lay-verify=
"required"
>
</div>
</div>
</div>
</div>
<div
class=
"brand input_div "
>
<div
class=
"brand input_div "
>
<span
class=
"input_title lineBlock"
>
*品牌:
</span>
<span
class=
"input_title lineBlock"
>
*品牌:
</span>
<div
class=
"input_parent"
>
<div
class=
"input_parent"
>
<input
type=
"text"
name=
"brand_name"
placeholder=
"请输入品牌"
class=
"input boxsiz"
lay-verify=
"required"
>
<input
type=
"text"
name=
"brand_name"
placeholder=
"请输入品牌"
class=
"input boxsiz"
lay-verify=
"required"
>
</div>
</div>
</div>
</div>
<div
class=
"fz input_div "
>
<div
class=
"fz input_div "
>
...
@@ -50,13 +52,15 @@
...
@@ -50,13 +52,15 @@
<div
class=
"num input_div "
>
<div
class=
"num input_div "
>
<span
class=
"input_title lineBlock"
>
*库存:
</span>
<span
class=
"input_title lineBlock"
>
*库存:
</span>
<div
class=
"input_parent"
>
<div
class=
"input_parent"
>
<input
type=
"text"
name=
"number"
placeholder=
"请输入需求数量"
class=
"input boxsiz"
lay-verify=
"required|number"
>
<input
type=
"text"
name=
"number"
placeholder=
"请输入需求数量"
class=
"input boxsiz"
lay-verify=
"required|number"
>
</div>
</div>
</div>
</div>
<div
class=
"price input_div "
>
<div
class=
"price input_div "
>
<span
class=
"input_title lineBlock"
>
*单价:
</span>
<span
class=
"input_title lineBlock"
>
*单价:
</span>
<div
class=
"input_parent"
>
<div
class=
"input_parent"
>
<input
type=
"text"
name=
"price"
placeholder=
"请输入接受价格"
class=
"input boxsiz price_input"
lay-verify=
"required|number"
>
<input
type=
"text"
name=
"price"
placeholder=
"请输入接受价格"
class=
"input boxsiz price_input"
lay-verify=
"required|number"
>
<div
class=
"rmb layui-form"
>
<div
class=
"rmb layui-form"
>
<select
name=
"currency"
lay-verify=
"required"
>
<select
name=
"currency"
lay-verify=
"required"
>
<option
value=
"1"
>
CNY
</option>
<option
value=
"1"
>
CNY
</option>
...
@@ -68,10 +72,13 @@
...
@@ -68,10 +72,13 @@
<div
class=
"hq input_div"
>
<div
class=
"hq input_div"
>
<span
class=
"input_title lineBlock"
>
*货期:
</span>
<span
class=
"input_title lineBlock"
>
*货期:
</span>
<div
class=
"input_parent"
id=
"delivery"
>
<div
class=
"input_parent"
id=
"delivery"
>
<input
type=
"radio"
name=
"delivery_time"
lay-filter=
"delivery"
value=
"现货"
title=
"现货"
>
<input
type=
"radio"
name=
"delivery_time"
lay-filter=
"delivery"
value=
"现货"
<input
type=
"radio"
name=
"delivery_time"
lay-filter=
"delivery"
value=
"期货"
title=
"期货"
checked
id=
"daytext"
>
title=
"现货"
>
<input
type=
"radio"
name=
"delivery_time"
lay-filter=
"delivery"
value=
"期货"
title=
"期货"
checked
id=
"daytext"
>
<div
class=
"lineBlock"
id=
"day"
>
<div
class=
"lineBlock"
id=
"day"
>
<input
type=
"text"
placeholder=
"输入时间"
class=
"boxsiz day_input input"
lay-verify=
"required|number"
name=
"day"
>
<input
type=
"text"
placeholder=
"输入时间"
class=
"boxsiz day_input input"
lay-verify=
"required|number"
name=
"day"
>
<i
class=
"day"
>
天
</i>
<i
class=
"day"
>
天
</i>
</div>
</div>
</div>
</div>
...
@@ -79,19 +86,45 @@
...
@@ -79,19 +86,45 @@
<div
class=
"input_div textarea_div"
>
<div
class=
"input_div textarea_div"
>
<span
class=
"input_title lineBlock fl"
>
备注:
</span>
<span
class=
"input_title lineBlock fl"
>
备注:
</span>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<textarea
name=
"remark"
placeholder=
"请输入内容"
class=
"layui-textarea"
></textarea>
<textarea
name=
"remark"
placeholder=
"请输入内容"
class=
"layui-textarea"
></textarea>
</div>
</div>
</div>
</div>
<div
class=
"btn_div"
>
<div
class=
"btn_div"
>
<span
class=
"lineBlock fb btn"
lay-submit
lay-filter=
"add"
>
发布
</span>
<span
class=
"lineBlock fb btn"
lay-submit
lay-filter=
"add"
>
发布
</span>
<span
class=
"lineBlock cz btn btn_border"
type=
"reset"
>
重置
</span>
<span
class=
"lineBlock cz btn btn_border"
type=
"reset"
>
重置
</span>
</div>
</div>
</div></form>
</div>
</form>
<div
class=
"form_right fl "
>
<div
class=
"form_right fl "
>
<div
class=
"sc"
>
<
!-- <
div class="sc">
<div class="icon iconfont iconjuxing16"></div>
<div class="icon iconfont iconjuxing16"></div>
<p>上传图片</p>
<p>上传图片</p>
</div> -->
<!-- 正常浏览器使用layui的上传插件上传 -->
<!-- <div class="upload_section" id="upload_section" style="display: none">
<div class="icon iconfont iconjuxing16"></div>
<p>将商品表格拖拽或点击到此处上传</p>
</div> -->
<div
class=
"sc"
id=
"upload_section"
style=
"display: none"
>
<div
class=
"icon iconfont iconjuxing16"
></div>
<p>
上传图片
</p>
</div>
<!-- 低版本ie使用form+iframe上传 -->
<form
enctype=
"multipart/form-data"
id=
"fileLoad"
method=
"post"
target=
"test"
style=
"display: none"
>
<!-- token -->
<input
type=
"text"
name=
"token"
value=
""
style=
"display: none"
id=
"token"
/>
<!-- 是否是ie8 -->
<input
type=
"text"
name=
"ie8"
value=
""
style=
"display:none"
id=
"ie"
/>
<input
type=
"file"
id=
"mineFiles"
name=
"upload"
class=
"xslfile"
/>
<div
class=
"form_div"
>
<div
class=
"icon iconfont iconjuxing16"
></div>
<p>
点击到此处上传
</p>
</div>
</div>
<iframe
name=
"test"
id=
"test"
style=
"display: none"
>
</iframe>
</form>
<p>
* 支持png、jpg等图片格式
</p>
<p>
* 支持png、jpg等图片格式
</p>
</div>
</div>
</div>
</div>
...
...
dist/css/common/base.css
View file @
1729f808
...
@@ -305,6 +305,7 @@ body {
...
@@ -305,6 +305,7 @@ body {
font-weight
:
600
;
font-weight
:
600
;
color
:
#2E3033
;
color
:
#2E3033
;
width
:
100%
;
width
:
100%
;
line-height
:
22px
;
}
}
.goods_data_list
.my_xj_list
.my_xj_item
.item_middle
{
.goods_data_list
.my_xj_list
.my_xj_item
.item_middle
{
margin-top
:
12px
;
margin-top
:
12px
;
...
...
dist/css/common/base.less
View file @
1729f808
...
@@ -363,6 +363,7 @@ body {
...
@@ -363,6 +363,7 @@ body {
font-weight: 600;
font-weight: 600;
color: #2E3033;
color: #2E3033;
width: 100%;
width: 100%;
line-height: 22px;
}
}
}
}
...
...
dist/js/chat/index.js
View file @
1729f808
...
@@ -127,19 +127,20 @@ $(function () {
...
@@ -127,19 +127,20 @@ $(function () {
WebIM
.
config
=
config
;
WebIM
.
config
=
config
;
//建立聊天链接
//建立聊天链接
this
.
conn
=
WebIM
.
conn
=
new
WebIM
.
default
.
connection
({
this
.
conn
=
WebIM
.
conn
=
new
WebIM
.
default
.
connection
({
appKey
:
WebIM
.
config
.
appkey
,
isHttpDNS
:
WebIM
.
config
.
isHttpDNS
,
isMultiLoginSessions
:
WebIM
.
config
.
isMultiLoginSessions
,
isMultiLoginSessions
:
WebIM
.
config
.
isMultiLoginSessions
,
h
ttps
:
typeof
WebIM
.
config
.
https
===
'boolean'
?
WebIM
.
config
.
https
:
location
.
protocol
===
h
ost
:
WebIM
.
config
.
Host
,
'https:'
,
https
:
WebIM
.
config
.
https
,
url
:
WebIM
.
config
.
xmppURL
,
url
:
WebIM
.
config
.
xmppURL
,
apiUrl
:
WebIM
.
config
.
apiURL
,
isAutoLogin
:
true
,
isAutoLogin
:
true
,
heartBeatWait
:
WebIM
.
config
.
heartBeatWait
,
heartBeatWait
:
WebIM
.
config
.
heartBeatWait
,
autoReconnectNumMax
:
WebIM
.
config
.
autoReconnectNumMax
,
autoReconnectNumMax
:
WebIM
.
config
.
autoReconnectNumMax
,
autoReconnectInterval
:
WebIM
.
config
.
autoReconnectInterval
autoReconnectInterval
:
WebIM
.
config
.
autoReconnectInterval
,
isStropheLog
:
WebIM
.
config
.
isStropheLog
,
delivery
:
WebIM
.
config
.
delivery
});
});
// 初始化上传组件 fileInputId对应页面上的file组件id
// WebIM.flashUpload = UploadShim({
// fileInputId: 'image'
// }, this.conn).flashUpload;
//增加表情
//增加表情
WebIM
.
Emoji
=
{
WebIM
.
Emoji
=
{
path
:
dist
+
'/faces/'
,
path
:
dist
+
'/faces/'
,
...
@@ -456,11 +457,9 @@ $(function () {
...
@@ -456,11 +457,9 @@ $(function () {
var
id
=
this
.
conn
.
getUniqueId
();
var
id
=
this
.
conn
.
getUniqueId
();
var
msg
=
new
WebIM
.
default
.
message
(
'txt'
,
id
);
var
msg
=
new
WebIM
.
default
.
message
(
'txt'
,
id
);
var
emojiMessage
=
WebIM
.
default
.
utils
.
parseEmoji
(
content
);
//表情解析工具
var
emojiMessage
=
WebIM
.
default
.
utils
.
parseEmoji
(
content
);
//表情解析工具
console
.
log
(
msg
)
msg
.
set
({
msg
.
set
({
msg
:
content
,
// 消息内容;
msg
:
content
,
// 消息内容;
to
:
userId
,
// 接收消息对象;
to
:
userId
,
// 接收消息对象;
roomType
:
false
,
success
:
function
(
id
,
serverMsgId
)
{
success
:
function
(
id
,
serverMsgId
)
{
$
(
'#'
+
userId
).
find
(
'.notice_item_content'
).
append
(
self
.
messageHtml
(
1
,
$
(
'#'
+
userId
).
find
(
'.notice_item_content'
).
append
(
self
.
messageHtml
(
1
,
emojiMessage
,
false
));
emojiMessage
,
false
));
...
@@ -471,7 +470,7 @@ $(function () {
...
@@ -471,7 +470,7 @@ $(function () {
},
},
fail
:
function
(
e
)
{
fail
:
function
(
e
)
{
console
.
log
(
"Send private text failed"
,
e
);
console
.
log
(
"Send private text failed"
,
e
);
}
}
});
});
this
.
conn
.
send
(
msg
.
body
);
this
.
conn
.
send
(
msg
.
body
);
...
@@ -480,14 +479,13 @@ $(function () {
...
@@ -480,14 +479,13 @@ $(function () {
var
self
=
this
;
var
self
=
this
;
var
userId
=
$
(
'.notice_left '
).
find
(
'.active'
).
attr
(
'userid'
);
var
userId
=
$
(
'.notice_left '
).
find
(
'.active'
).
attr
(
'userid'
);
var
id
=
this
.
conn
.
getUniqueId
();
var
id
=
this
.
conn
.
getUniqueId
();
var
msg
=
new
WebIM
.
message
(
'cmd'
,
id
);
var
msg
=
new
WebIM
.
default
.
message
(
'cmd'
,
id
);
msg
.
set
({
msg
.
set
({
msg
:
'template'
,
msg
:
'template'
,
to
:
userId
,
to
:
userId
,
roomType
:
false
,
action
:
"template"
,
action
:
"template"
,
ext
:
templateObj
,
ext
:
templateObj
,
success
:
function
(
id
,
serverMsgId
)
{
success
:
function
()
{
$
(
'#'
+
userId
).
find
(
'.notice_item_content'
).
append
(
self
.
messageHtml
(
1
,
$
(
'#'
+
userId
).
find
(
'.notice_item_content'
).
append
(
self
.
messageHtml
(
1
,
templateObj
,
true
));
templateObj
,
true
));
var
contentHeight
=
$
(
'#'
+
userId
).
find
(
'.notice_item_content'
)
var
contentHeight
=
$
(
'#'
+
userId
).
find
(
'.notice_item_content'
)
...
@@ -513,7 +511,6 @@ $(function () {
...
@@ -513,7 +511,6 @@ $(function () {
apiUrl
:
WebIM
.
config
.
apiURL
,
apiUrl
:
WebIM
.
config
.
apiURL
,
file
:
file
,
file
:
file
,
to
:
userId
,
to
:
userId
,
roomType
:
false
,
flashUpload
:
WebIM
.
flashUpload
,
flashUpload
:
WebIM
.
flashUpload
,
onFileUploadError
:
function
()
{
onFileUploadError
:
function
()
{
console
.
log
(
'失败'
)
console
.
log
(
'失败'
)
...
...
dist/js/chat/webim.config.js
View file @
1729f808
// /**
// * git do not control webim.config.js
// * everyone should copy webim.config.js.demo to webim.config.js
// * and have their own configs.
// * In this way , others won't be influenced by this config while git pull.
// *
// */
// var config = {
// /*
// * XMPP server
// */
// xmppURL: 'im-api.easemob.com',
// /*
// * Backend REST API URL
// */
// apiURL: (location.protocol === 'https:' ? 'https:' : 'http:') + '//a1.easemob.com',
// /*
// * Application AppKey
// */
// appkey: '1113190618181018#icsales',
// /*
// * Whether to use wss
// * @parameter {Boolean} true or false
// */
// https: false,
// /*
// * isMultiLoginSessions
// * true: A visitor can sign in to multiple webpages and receive messages at all the webpages.
// * false: A visitor can sign in to only one webpage and receive messages at the webpage.
// */
// isMultiLoginSessions: false,
// /*
// * Set to auto sign-in
// */
// isAutoLogin: false,
// /**
// * Whether to use window.doQuery()
// * @parameter {Boolean} true or false
// */
// isWindowSDK: false,
// /**
// * isSandBox=true: xmppURL: 'im-api.sandbox.easemob.com', apiURL: '//a1.sdb.easemob.com',
// * isSandBox=false: xmppURL: 'im-api.easemob.com', apiURL: '//a1.easemob.com',
// * @parameter {Boolean} true or false
// */
// isSandBox: false,
// /**
// * Whether to console.log in strophe.log()
// * @parameter {Boolean} true or false
// */
// isDebug: false,
// /**
// * will auto connect the xmpp server autoReconnectNumMax times in background when client is offline.
// * won't auto connect if autoReconnectNumMax=0.
// */
// autoReconnectNumMax: 2,
// /**
// * the interval secons between each atuo reconnectting.
// * works only if autoReconnectMaxNum >= 2.
// */
// autoReconnectInterval: 2,
// /**
// * webrtc supports WebKit and https only
// */
// isWebRTC: /WebKit/.test(navigator.userAgent) && /^https\:$/.test(window.location.protocol),
// /**
// * while http access,use ip directly,instead of ServerName,avoiding DNS problem.
// */
// isHttpDNS: false
// };
/**
/**
* git do not control webim.config.js
* git do not control webim.config.js
* everyone should copy webim.config.js.demo to webim.config.js
* everyone should copy webim.config.js.demo to webim.config.js
...
@@ -82,6 +11,24 @@
...
@@ -82,6 +11,24 @@
// protocol: "https"
// protocol: "https"
// }
// }
function
getUrl
(){
var
apiUrl
=
(
window
.
location
.
protocol
===
"https:"
?
"https:"
:
"http:"
)
+
"//a1-hsb.easemob.com"
var
xmppUrl
=
"im-api.easemob.com"
if
(
window
.
location
.
href
.
indexOf
(
"webim-h5.easemob.com"
)
!==
-
1
||
window
.
location
.
href
.
indexOf
(
"localhost"
)
!==
-
1
||
window
.
location
.
href
.
indexOf
(
"172.17.2.168"
)
!==
-
1
){
apiUrl
=
(
window
.
location
.
protocol
===
"https:"
?
"https:"
:
"http:"
)
+
"//a1-hsb-ly.easemob.com"
xmppUrl
=
"im-api.easemob.com"
}
// else if(window.location.href.indexOf("webim-hsb.easemob.com") !== -1){
// apiUrl = (window.location.protocol === "https:" ? "https:" : "http:") + "//a1-hsb.easemob.com"
// xmppUrl = "im-api-hsb.easemob.com"
// }
return
{
apiUrl
:
apiUrl
,
xmppUrl
:
xmppUrl
}
}
var
config
=
{
var
config
=
{
/*
/*
* XMPP server
* XMPP server
...
...
dist/js/global/api.js
View file @
1729f808
...
@@ -45,6 +45,10 @@
...
@@ -45,6 +45,10 @@
* 获取用户基本信息
* 获取用户基本信息
*/
*/
authme
:
auth_url
+
'/auth/me'
,
authme
:
auth_url
+
'/auth/me'
,
/***
* 上传文件的接口
*/
ossupload
:
goods_url
+
'/oss/upload'
,
/**
/**
* 商品列表
* 商品列表
*/
*/
...
...
dist/js/quoteprice/releaseinquiry.js
View file @
1729f808
!
function
()
{
!
function
()
{
window
.
ReleaseInquiry
=
{
window
.
ReleaseInquiry
=
{
isClick
:
false
,
isClick
:
false
,
init
:
function
()
{
init
:
function
()
{
this
.
created
(
this
).
mounted
(
this
).
handleBind
(
this
);
this
.
created
(
this
).
mounted
(
this
).
isIe
(
this
).
handleBind
(
this
);
},
},
created
:
function
(
opt
)
{
created
:
function
(
opt
)
{
...
@@ -13,6 +13,110 @@
...
@@ -13,6 +13,110 @@
return
this
;
return
this
;
},
},
uploadFun
:
function
()
{
layui
.
upload
.
render
({
elem
:
'#upload_section'
,
url
:
apis
.
ossupload
,
data
:
{
token
:
Util
.
getCookie
(
'token'
),
source
:
2
,
},
field
:
"upload"
,
before
:
function
()
{
layer
.
load
(
1
,
{
offset
:
[
'50%'
,
"50%"
],
shade
:
false
});
},
done
:
function
(
res
)
{
layer
.
closeAll
(
'loading'
);
if
(
res
.
errcode
==
0
)
{
layer
.
msg
(
'上传成功'
,
{
time
:
600
},
function
()
{
window
.
location
.
href
=
"/uploadresult"
;
});
}
else
{
layer
.
msg
(
res
.
errmsg
)
}
},
err
:
function
()
{
layer
.
closeAll
(
'loading'
);
layer
.
msg
(
'上传失败'
);
}
});
},
isIe
:
function
(
opt
)
{
if
(
navigator
.
appName
==
"Microsoft Internet Explorer"
&&
(
navigator
.
appVersion
.
split
(
";"
)[
1
].
replace
(
/
[
]
/g
,
""
)
==
"MSIE8.0"
||
navigator
.
appVersion
.
split
(
";"
)[
1
].
replace
(
/
[
]
/g
,
""
)
==
"MSIE9.0"
))
{
//ie版本
$
(
'#fileLoad'
).
show
();
$
(
'.sc'
).
hide
();
document
.
domain
=
cookieHostname
;
//设置domian跨域拿到iframe的内容
var
iframe
=
document
.
getElementById
(
"test"
);
if
(
iframe
.
attachEvent
)
{
iframe
.
attachEvent
(
"onload"
,
opt
.
iframeOnload
);
}
else
{
iframe
.
onload
=
opt
.
iframeOnload
;
};
opt
.
formSubmit
();
$
(
'#mineFiles'
).
on
(
'change'
,
function
()
{
layer
.
load
(
1
,
{
offset
:
[
'50%'
,
"50%"
],
shade
:
false
});
$
(
'#fileLoad'
).
submit
();
})
}
else
{
//非ie低版本
$
(
'#upload_section'
).
show
();
opt
.
uploadFun
();
}
return
this
;
},
formSubmit
:
function
()
{
$
(
'#fileLoad'
).
submit
(
function
()
{
var
uploadFileForm
=
document
.
getElementById
(
"fileLoad"
);
uploadFileForm
.
action
=
apis
.
ossupload
;
$
(
'#token'
).
val
(
Util
.
getCookie
(
'token'
));
$
(
'#ie'
).
val
(
cookieHostname
);
})
},
iframeOnload
:
function
()
{
//表单上传完成后进入iframe获取返回的值
var
iframe
=
document
.
getElementById
(
"test"
);
var
html
=
""
,
json
=
null
;
try
{
var
el
=
(
iframe
.
contentWindow
||
iframe
.
contentDocument
.
parentWindow
).
document
.
body
;
while
(
el
&&
el
.
nodeType
!==
3
)
{
el
=
el
.
firstChild
;
}
html
=
el
.
nodeValue
;
json
=
html
?
eval
(
"("
+
html
+
")"
)
:
false
;
}
catch
(
e
)
{
layer
.
closeAll
(
'loading'
);
layer
.
msg
(
'上传失败'
);
}
if
(
json
)
{
layer
.
closeAll
(
'loading'
);
if
(
json
.
errcode
==
0
)
{
layer
.
msg
(
'上传成功'
,
{
time
:
600
},
function
()
{
window
.
location
.
href
=
"/uploadresult"
;
});
}
else
{
layer
.
msg
(
json
.
errmsg
)
}
}
},
handleBind
:
function
(
opt
)
{
handleBind
:
function
(
opt
)
{
//货期选择
//货期选择
...
@@ -20,7 +124,7 @@
...
@@ -20,7 +124,7 @@
var
str
=
'期货'
;
var
str
=
'期货'
;
data
.
value
==
'期货'
?
str
=
'期货'
:
str
=
'现
货'
;
data
.
value
==
'现货'
?
str
=
'现货'
:
str
=
'期
货'
;
var
getTpl
=
deliveryHtml
.
innerHTML
;
var
getTpl
=
deliveryHtml
.
innerHTML
;
...
@@ -41,7 +145,7 @@
...
@@ -41,7 +145,7 @@
$
(
"#daytext"
).
val
(
val
+
'天'
);
$
(
"#daytext"
).
val
(
val
+
'天'
);
});
});
$
(
'.cz'
).
on
(
'click'
,
function
()
{
$
(
'.cz'
).
on
(
'click'
,
function
()
{
$
(
'#xj_form'
)[
0
].
reset
();
$
(
'#xj_form'
)[
0
].
reset
();
})
})
...
@@ -54,11 +158,13 @@
...
@@ -54,11 +158,13 @@
opt
.
isClick
=
true
;
opt
.
isClick
=
true
;
IcController
.
getData
(
apis
.
inquiryadd
+
'?token='
+
Util
.
getCookie
(
'token'
),
'get'
,
data
.
field
,
function
(
res
)
{
IcController
.
getData
(
apis
.
inquiryadd
+
'?token='
+
Util
.
getCookie
(
'token'
),
'get'
,
data
.
field
,
function
(
res
)
{
if
(
res
.
errcode
==
0
)
{
if
(
res
.
errcode
==
0
)
{
layer
.
msg
(
'发布询价成功'
,
{
time
:
2000
},
function
()
{
layer
.
msg
(
'发布询价成功'
,
{
time
:
2000
},
function
()
{
window
.
location
.
href
=
'/inquiry'
;
window
.
location
.
href
=
'/inquiry'
;
...
@@ -81,4 +187,4 @@
...
@@ -81,4 +187,4 @@
},
$
(
function
()
{
},
$
(
function
()
{
ReleaseInquiry
.
init
();
ReleaseInquiry
.
init
();
})
})
}();
}();
\ No newline at end of file
\ No newline at end of file
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