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
f80e1c72
authored
Jul 08, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
312123
parent
1729f808
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
318 additions
and
157 deletions
Application/Home/View/QuotePrice/inquiry.html
Application/Home/View/QuotePrice/inquirydetail.html
Application/Home/View/QuotePrice/releaseinquiry.html
dist/css/common/base.css
dist/css/common/base.less
dist/css/inquiry.css
dist/css/inquiry.less
dist/css/releaseinquiry.css
dist/css/releaseinquiry.less
dist/js/chat/index.js
dist/js/chat/websdk-1.4.8.js
dist/js/global/api.js
dist/js/index/search.js
dist/js/quoteprice/inquiry.js
dist/js/quoteprice/inquirydetail.js
dist/js/quoteprice/releaseinquiry.js
Application/Home/View/QuotePrice/inquiry.html
View file @
f80e1c72
...
...
@@ -59,105 +59,9 @@
</div>
<div
class=
"inquiry_data"
>
<!-- <div class="data_list">
<div class="data_item">
<div class="data_detail">
<div class="type fl bold ellipsis boxsiz">STM32F103ZET6</div>
<div class="brand fl ellipsis boxsiz">品牌:<span>Texas Instrument</span></div>
<div class="num fl ellipsis boxsiz">数量:<span>PCS10,000</span></div>
<div class="bj_status fl ellipsis boxsiz dd bold">等待报价</div>
<div class="data_status fl boxsiz zs"><span class="mark lineBlock"></span><span
class="text">展示中</span></div>
<div class="time fr ellipsis boxsiz">2019-05-22 15:35</div>
</div>
<a class="icon iconfont iconjuxing2 fr"></a>
<a class="fl xj_status fr">下架</a>
<div class="show_more" style="display:none">
<div class="more_item clr">
<div class="fl sort">1.</div>
<div class="fl num bold ellipsis boxsiz">STM32F407ZGT6</div>
<div class="fl fz ellipsis boxsiz">封装:<span class="text">LQFP-144</span></div>
<div class="fl price bold ellipsis boxsiz">$10.9800</div>
<div class="company fl ellipsis boxsiz"><span class="mark">贸易商</span><span
class="name">蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生</span></div>
<div class="fr wx">
<span class="icon iconfont iconjuxing7"></span>
</div>
</div>
<div class="more_item clr">
<div class="fl sort">1.</div>
<div class="fl num bold ellipsis boxsiz">STM32F407ZGT6</div>
<div class="fl fz ellipsis boxsiz">封装:<span class="text">LQFP-144</span></div>
<div class="fl price bold ellipsis boxsiz">$10.9800</div>
<div class="company fl ellipsis boxsiz"><span class="mark gr">个人</span><span
class="name">蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生</span></div>
<div class="fr wx">
<span class="icon iconfont iconjuxing7"></span>
</div>
</div>
<div class="more_item clr">
<div class="fl sort">1.</div>
<div class="fl num bold ellipsis boxsiz">STM32F407ZGT6</div>
<div class="fl fz ellipsis boxsiz">封装:<span class="text">LQFP-144</span></div>
<div class="fl price bold ellipsis boxsiz">$10.9800</div>
<div class="company fl ellipsis boxsiz"><span class="mark gr">个人</span><span
class="name">蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生</span></div>
<div class="fr wx">
<span class="icon iconfont iconjuxing7"></span>
</div>
</div>
<div class="more_item clr">
<div class="fl sort">1.</div>
<div class="fl num bold ellipsis boxsiz">STM32F407ZGT6</div>
<div class="fl fz ellipsis boxsiz">封装:<span class="text">LQFP-144</span></div>
<div class="fl price bold ellipsis boxsiz">$10.9800</div>
<div class="company fl ellipsis boxsiz"><span class="mark gr">个人</span><span
class="name">蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生</span></div>
<div class="fr wx">
<span class="icon iconfont iconjuxing7"></span>
</div>
</div>
<div class="more_item clr">
<div class="fl sort">1.</div>
<div class="fl num bold ellipsis boxsiz">STM32F407ZGT6</div>
<div class="fl fz ellipsis boxsiz">封装:<span class="text">LQFP-144</span></div>
<div class="fl price bold ellipsis boxsiz">$10.9800</div>
<div class="company fl ellipsis boxsiz"><span class="mark gr">个人</span><span
class="name">蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生</span></div>
<div class="fr wx">
<span class="icon iconfont iconjuxing7"></span>
</div>
</div>
<div class="more_btn">
查看更多
<img src="__PUBLIC__/icons/right.png" alt="" class="va-m">
</div>
</div>
</div>
<div class="data_item">
<div class="data_detail">
<div class="type fl bold ellipsis boxsiz">STM32F103ZET6</div>
<div class="brand fl ellipsis boxsiz">品牌:<span>Texas Instrument</span></div>
<div class="num fl ellipsis boxsiz">数量:<span>PCS10,000</span></div>
<div class="bj_status fl ellipsis boxsiz bj bold">1个报价</div>
<div class="data_status fl boxsiz xj"><span class="mark lineBlock"></span><span
class="text">已下架</span></div>
<div class="time fr ellipsis boxsiz">2019-05-22 15:35</div>
</div>
<a class="icon iconfont iconjuxing2 fr"></a>
<a class="fl xj_status fr">下架</a>
</div>
</div> -->
<!-- <div class="no_data" style="display: none">
<img src="__PUBLIC__/images/nosearchdata.png" alt="">
<p class="bold">未搜索到询价信息</p>
<div class="fb_command">您可以发布一条询价信息。</div>
</div> -->
</div>
<div
class=
"pagination-with"
id=
"pagination"
style=
"text-align: right;margin-top: 25px;display:none"
></div>
<div
class=
"pagination-with"
id=
"pagination"
style=
"text-align: right;margin-top: 25px;display:none"
></div>
</div>
</div>
</div>
...
...
@@ -165,22 +69,47 @@
</div>
<include
file=
"public/foot"
/>
<script
src=
"__PUBLIC__/js/quoteprice/inquiry.js"
></script>
<!--
页面
模板 -->
<!--
询价
模板 -->
<script
type=
"text/html"
id=
"htmlTp"
>
<
div
class
=
"data_list"
>
{{
#
layui
.
each
(
d
,
function
(
index
,
item
){
}}
<
div
class
=
"data_item"
>
<
div
class
=
"data_item"
userid
=
"{{item.inquiry_items_id}}"
>
<
div
class
=
"data_detail"
>
<
div
class
=
"type fl bold ellipsis boxsiz"
>
{{
item
.
goods_name
}}
<
/div
>
<
div
class
=
"brand fl ellipsis boxsiz"
>
品牌:
<
span
>
{{
item
.
brand_name
}}
<
/span></
div
>
<
div
class
=
"num fl ellipsis boxsiz"
>
数量:
<
span
>
PCS
{{
item
.
number
}}
<
/span></
div
>
{{
#
if
(
item
.
offer_num
!==
0
){
}}
<
div
class
=
"bj_status fl ellipsis boxsiz numbj bold"
>
{{
item
.
offer_num
}}
个报价
<
/div
>
{{
#
}
else
{
}}
<
div
class
=
"bj_status fl ellipsis boxsiz dd bold"
>
等待报价
<
/div
>
<
div
class
=
"data_status fl boxsiz zs"
><
span
class
=
"mark lineBlock"
><
/span><spa
n
class
=
"text"
>
展示中
<
/span></
div
>
{{
#
}
}}
{{
#
if
(
item
[
'audit_status'
]
==
1
){
}}
{{
#
if
(
item
[
'status/eq'
]
!==
1
){
}}
<
div
class
=
"data_status fl boxsiz zs"
>
<
span
class
=
"mark lineBlock"
><
/span><span class="text">展示中</
span
>
<
/div
>
{{
#
}
else
{
}}
<
div
class
=
"data_status fl boxsiz xj"
>
<
span
class
=
"mark lineBlock"
><
/span><span class="text">已下架</
span
>
<
/div
>
{{
#
}
}}
{{
#
}
else
{
}}
<
div
class
=
"data_status fl boxsiz jy"
>
<
span
class
=
"mark lineBlock"
><
/span><span class="text">禁用中</
span
>
<
/div
>
{{
#
}
}}
<
div
class
=
"time fr ellipsis boxsiz"
>
{{
layui
.
util
.
toDateString
(
item
.
update_time
*
1000
)}}
<
/div
>
<
/div
>
<
a
class
=
"icon iconfont iconjuxing2 fr"
><
/a
>
{{
#
if
(
item
[
'status/eq'
]
!==
1
){
}}
{{
#
if
(
item
[
'audit_status'
]
==
1
){
}}
{{
#
}
else
{
}}
{{
#
}
}}
<
a
class
=
"xj xj_status fr"
>
下架
<
/a
>
{{
#
}
else
{
}}
<
a
class
=
"fb xj_status fr"
>
发布
<
/a
>
{{
#
}
}}
<
div
class
=
"show_more"
style
=
"display:none"
><
/div
>
<
/div
>
{{
#
});
}}
<
/div
>
...
...
@@ -192,6 +121,33 @@
<
/div
>
{{
#
}
}}
</script>
<!-- 我的询价回复模板 -->
<script
type=
"text/html"
id=
"myxjTp"
>
{{
#
layui
.
each
(
d
,
function
(
index
,
item
){
}}
<
div
class
=
"more_item clr"
>
<
div
class
=
"fl sort"
>
{{
index
+
1
}}.
<
/div
>
<
div
class
=
"fl num bold ellipsis boxsiz"
>
{{
item
.
goods_name
}}
<
/div
>
<
div
class
=
"fl fz ellipsis boxsiz"
>
封装:
<
span
class
=
"text"
>
{{
item
.
encap
}}
<
/span></
div
>
<
div
class
=
"fl price bold ellipsis boxsiz"
>
{{
#
if
(
item
.
currency
==
1
){
}}
¥
{{
#
}
else
{
}}
$
{{
#
}
}}
{{
item
.
price
}}
<
/div
>
<
div
class
=
"company fl ellipsis boxsiz"
><
span
class
=
"mark"
>
贸易商
<
/span><spa
n
class
=
"name"
>
{{
item
.
company_name
}}
<
/span></
div
>
<
div
class
=
"fr wx"
>
<
span
class
=
"icon iconfont iconjuxing7"
><
/span
>
<
/div
>
<
/div
>
{{
#
});
}}
<
div
class
=
"more_btn"
>
查看更多
<
img
src
=
"__PUBLIC__/icons/right.png"
alt
=
""
class
=
"va-m"
>
<
/div
>
</script>
</body>
...
...
Application/Home/View/QuotePrice/inquirydetail.html
View file @
f80e1c72
...
...
@@ -147,6 +147,7 @@
window
.
location
.
href
=
'/chat'
})
</script>
<script
src=
"__PUBLIC__/js/quoteprice/inquirydetail.js"
></script>
</body>
</html>
\ No newline at end of file
Application/Home/View/QuotePrice/releaseinquiry.html
View file @
f80e1c72
...
...
@@ -97,16 +97,9 @@
</div>
</form>
<div
class=
"form_right fl "
>
<!-- <div class="sc">
<div class="icon iconfont iconjuxing16"></div>
<p>上传图片</p>
</div> -->
<div
class=
"sc"
>
<!-- 正常浏览器使用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=
"sc_div"
id=
"upload_section"
style=
"display: none"
>
<div
class=
"icon iconfont iconjuxing16"
></div>
<p>
上传图片
</p>
</div>
...
...
@@ -115,16 +108,24 @@
style=
"display: none"
>
<!-- token -->
<input
type=
"text"
name=
"token"
value=
""
style=
"display: none"
id=
"token"
/>
<!-- source -->
<input
type=
"text"
name=
"source"
value=
"2"
style=
"display: none"
id=
"source"
/>
<!-- 是否是ie8 -->
<input
type=
"text"
name=
"ie8"
value=
""
style=
"display:none"
id=
"ie"
/>
<input
type=
"file"
id=
"mineFiles"
name=
"upload"
class=
"xslfile"
/>
<input
type=
"file"
id=
"mineFiles"
name=
"upload"
class=
"imgfile"
accept=
"image/jpg,image/png"
/>
<div
class=
"form_div"
>
<div
class=
"icon iconfont iconjuxing16"
></div>
<p>
点击到此处上传
</p>
<p>
上传图片
</p>
</div>
<iframe
name=
"test"
id=
"test"
style=
"display: none"
>
</iframe>
</form>
<div
class=
"upload_result"
>
<img
src=
"__PUBLIC__/images/test.jpg"
alt=
""
>
</div>
</div>
<p>
* 支持png、jpg等图片格式
</p>
</div>
</div>
...
...
dist/css/common/base.css
View file @
f80e1c72
...
...
@@ -240,7 +240,7 @@ body {
background
:
rgba
(
234
,
173
,
55
,
0.9
);
box-shadow
:
0px
2px
9px
0px
rgba
(
242
,
191
,
97
,
0.5
);
position
:
fixed
;
bottom
:
92
px
;
top
:
160
px
;
right
:
20px
;
cursor
:
pointer
;
text-align
:
center
;
...
...
dist/css/common/base.less
View file @
f80e1c72
...
...
@@ -283,7 +283,7 @@ body {
background: rgba(234, 173, 55, 0.9);
box-shadow: 0px 2px 9px 0px rgba(242, 191, 97, 0.5);
position: fixed;
bottom: 92
px;
top:160
px;
right: 20px;
cursor: pointer;
text-align: center;
...
...
dist/css/inquiry.css
View file @
f80e1c72
...
...
@@ -272,6 +272,10 @@
.quote_content
.inquiry_data
.data_list
.data_item
.bj_status.dd
{
color
:
#61A0F2
;
}
.inquiry_content
.inquiry_data
.data_list
.data_item
.bj_status.numbj
,
.quote_content
.inquiry_data
.data_list
.data_item
.bj_status.numbj
{
color
:
#EAA217
;
}
.inquiry_content
.inquiry_data
.data_list
.data_item
.data_status
,
.quote_content
.inquiry_data
.data_list
.data_item
.data_status
{
width
:
12%
;
...
...
@@ -291,6 +295,10 @@
.quote_content
.inquiry_data
.data_list
.data_item
.data_status.xj
.mark
{
background-color
:
#D8DFE6
;
}
.inquiry_content
.inquiry_data
.data_list
.data_item
.data_status.jy
.mark
,
.quote_content
.inquiry_data
.data_list
.data_item
.data_status.jy
.mark
{
background-color
:
#EA1717
;
}
.inquiry_content
.inquiry_data
.data_list
.data_item
.data_status
.text
,
.quote_content
.inquiry_data
.data_list
.data_item
.data_status
.text
{
color
:
#686E73
;
...
...
dist/css/inquiry.less
View file @
f80e1c72
...
...
@@ -281,7 +281,11 @@
width: 12%;
&.dd {
color: #61A0F2
color: #61A0F2;
}
&.numbj{
color:#EAA217;
}
}
...
...
@@ -307,6 +311,11 @@
background-color: #D8DFE6;
}
}
&.jy{
.mark {
background-color: #EA1717;
}
}
.text {
color: #686E73;
...
...
dist/css/releaseinquiry.css
View file @
f80e1c72
...
...
@@ -175,12 +175,46 @@
.upload_single_content
.inquiry_form
.form_content
.form_right
.sc
{
height
:
220px
;
width
:
220px
;
background-color
:
#F5F9FC
;
text-align
:
center
;
position
:
relative
;
background-color
:
#F5F9FC
;
}
.release_inquiry_content
.inquiry_form
.form_content
.form_right
.sc
form
,
.upload_single_content
.inquiry_form
.form_content
.form_right
.sc
form
{
position
:
absolute
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
}
.release_inquiry_content
.inquiry_form
.form_content
.form_right
.sc
form
.imgfile
,
.upload_single_content
.inquiry_form
.form_content
.form_right
.sc
form
.imgfile
{
position
:
absolute
;
display
:
block
;
font-size
:
10000px
;
height
:
100%
;
width
:
100%
;
filter
:
alpha
(
opacity
=
0
);
}
.release_inquiry_content
.inquiry_form
.form_content
.form_right
.sc
form
.form_div
,
.upload_single_content
.inquiry_form
.form_content
.form_right
.sc
form
.form_div
{
color
:
#ADB6BF
;
font-size
:
60px
;
}
.release_inquiry_content
.inquiry_form
.form_content
.form_right
.sc
form
.form_div
p
,
.upload_single_content
.inquiry_form
.form_content
.form_right
.sc
form
.form_div
p
{
font-size
:
16px
;
color
:
#8A9299
;
margin-top
:
35px
;
}
.release_inquiry_content
.inquiry_form
.form_content
.form_right
.sc
.sc_div
,
.upload_single_content
.inquiry_form
.form_content
.form_right
.sc
.sc_div
{
height
:
100%
;
width
:
100%
;
cursor
:
pointer
;
}
.release_inquiry_content
.inquiry_form
.form_content
.form_right
.sc
div
,
.upload_single_content
.inquiry_form
.form_content
.form_right
.sc
div
{
.release_inquiry_content
.inquiry_form
.form_content
.form_right
.sc
.icon
,
.upload_single_content
.inquiry_form
.form_content
.form_right
.sc
.icon
{
color
:
#ADB6BF
;
font-size
:
60px
;
padding-top
:
67px
;
...
...
@@ -191,10 +225,23 @@
font-size
:
16px
;
margin-top
:
23px
;
}
.release_inquiry_content
.inquiry_form
.form_content
.form_right
.sc
.upload_result
,
.upload_single_content
.inquiry_form
.form_content
.form_right
.sc
.upload_result
{
position
:
absolute
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
display
:
none
;
}
.release_inquiry_content
.inquiry_form
.form_content
.form_right
.sc
.upload_result
img
,
.upload_single_content
.inquiry_form
.form_content
.form_right
.sc
.upload_result
img
{
height
:
100%
;
width
:
100%
;
}
.release_inquiry_content
.inquiry_form
.form_content
.form_right
p
,
.upload_single_content
.inquiry_form
.form_content
.form_right
p
{
font-size
:
14px
;
color
:
#ADB6BF
;
margin-top
:
17px
;
}
/*# sourceMappingURL=releaseinquiry.css.map */
\ No newline at end of file
dist/css/releaseinquiry.less
View file @
f80e1c72
.release_inquiry_content,.upload_single_content {
.release_inquiry_content,
.upload_single_content {
padding: 0 20px;
.nav_title {
...
...
@@ -135,16 +136,19 @@
bottom: 7px;
border-left: 1px solid #D8DFE6;
line-height: 26px;
.layui-form-select{
height:100%;
.layui-select-title{
height:100%;
}
input{
height:100%;
border:none;
width:99%;
padding-right:0;
.layui-form-select {
height: 100%;
.layui-select-title {
height: 100%;
}
input {
height: 100%;
border: none;
width: 99%;
padding-right: 0;
line-height: 26px;
}
}
...
...
@@ -158,8 +162,10 @@
.btn_div {
margin: 30px 0 0 90px;
span {
width: 120px;
&.cz {
margin-left: 40px;
...
...
@@ -175,11 +181,46 @@
.sc {
height: 220px;
width: 220px;
background-color: #F5F9FC;
text-align: center;
position: relative;
background-color: #F5F9FC;
form {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
.imgfile {
position: absolute;
display: block;
font-size: 10000px;
height: 100%;
width: 100%;
filter: alpha(opacity=0);
}
.form_div {
color: #ADB6BF;
font-size: 60px;
p {
font-size: 16px;
color: #8A9299;
margin-top: 35px;
}
}
}
.sc_div {
height: 100%;
width: 100%;
cursor: pointer;
}
div
{
.icon
{
color: #ADB6BF;
font-size: 60px;
padding-top: 67px;
...
...
@@ -190,6 +231,20 @@
font-size: 16px;
margin-top: 23px;
}
.upload_result {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: none;
img {
height: 100%;
width: 100%;
}
}
}
p {
...
...
dist/js/chat/index.js
View file @
f80e1c72
...
...
@@ -391,7 +391,17 @@ $(function () {
console
.
log
(
'登入成功'
)
self
.
defaultUser
();
self
.
singleChat
();
self
.
getHistoryData
()
self
.
getHistoryData
();
self
.
conn
.
fetchHistoryMessages
({
queue
:
"18664936975"
,
count
:
"100"
,
success
:
function
(
data
){
console
.
log
(
data
)
},
fail
:
function
(
e
){
console
.
log
(
e
)
}
})
},
onTextMessage
:
function
(
message
)
{
self
.
receiveData
(
1
,
message
,
false
)
...
...
dist/js/chat/websdk-1.4.8.js
View file @
f80e1c72
This diff could not be displayed because it is too large.
dist/js/global/api.js
View file @
f80e1c72
...
...
@@ -79,6 +79,10 @@
*/
inquiryInfo
:
offer_url
+
"/inquiry/info"
,
/***
* 我的询价回复
*/
inquiryMyOffer
:
offer_url
+
"/inquiry/my/offer"
,
/***
* 询价添加 需要token
*/
inquiryadd
:
offer_url
+
"/inquiry/add"
...
...
dist/js/index/search.js
View file @
f80e1c72
...
...
@@ -27,7 +27,7 @@ $(function () {
layui
.
laytpl
(
getTpl
).
render
(
list
,
function
(
html
)
{
$
(
".search_data_list"
).
html
(
html
);
});
}
else
if
(
res
.
errcode
==
110
001
)
{
}
else
if
(
res
.
errcode
==
105
001
)
{
$
(
'.nav_title'
).
find
(
'span'
).
text
(
0
)
layui
.
laytpl
(
getTpl
).
render
([],
function
(
html
)
{
$
(
".search_data_list"
).
html
(
html
);
...
...
dist/js/quoteprice/inquiry.js
View file @
f80e1c72
...
...
@@ -13,9 +13,9 @@ $(function () {
this
.
getData
(
1
);
},
getData
:
function
(
page
)
{
let
self
=
this
;
var
self
=
this
;
IcController
.
getData
(
apis
.
inquiryInfo
,
'GET'
,
{
'goods_name'
:
$
(
'#goodName'
).
val
()
||
""
,
'goods_name
/like
'
:
$
(
'#goodName'
).
val
()
||
""
,
"start_time"
:
$
(
'#start_date'
).
val
()
||
""
,
"end_time"
:
$
(
'#end_date'
).
val
()
||
""
,
"offset"
:
7
,
...
...
@@ -53,23 +53,55 @@ $(function () {
}
})
},
geMyXj
:
function
(
id
,
ele
)
{
//获取回复的询价
var
self
=
this
;
IcController
.
getData
(
apis
.
inquiryMyOffer
,
'GET'
,
{
"inquiry_items_id/eq"
:
id
,
"token"
:
Util
.
getCookie
(
'token'
)
||
""
,
"limit"
:
"5"
},
function
(
res
)
{
$
(
ele
).
parent
(
'.data_item'
).
find
(
'.show_more'
).
slideUp
();
var
getTpl
=
myxjTp
.
innerHTML
;
if
(
res
.
errcode
==
0
)
{
if
(
res
.
total
==
0
)
{
layer
.
msg
(
'暂无数据'
)
}
else
{
layui
.
laytpl
(
getTpl
).
render
(
res
.
data
,
function
(
html
)
{
$
(
ele
).
siblings
(
'.show_more'
).
empty
().
html
(
html
).
slideDown
();
});
}
}
else
{
layer
.
msg
(
'暂无数据'
)
}
})
},
bindFun
:
function
()
{
var
self
=
this
;
$
(
'.edit_div'
).
click
(
function
()
{
window
.
location
.
href
=
"/releaseinquiry"
});
$
(
'.i
conjuxing2'
).
click
(
function
(
e
)
{
$
(
'.i
nquiry_data'
).
on
(
'click'
,
'.iconjuxing2'
,
function
(
e
)
{
e
.
stopPropagation
();
var
userid
=
$
(
this
).
parent
(
'.data_item'
).
attr
(
'userid'
)
if
(
$
(
this
).
siblings
(
'.show_more'
).
css
(
'display'
)
==
'none'
)
{
$
(
'.show_more'
).
slideDown
()
self
.
geMyXj
(
userid
,
this
);
}
else
{
$
(
'.show_more'
).
slideUp
()
$
(
this
).
siblings
(
'.show_more'
).
slideUp
();
}
})
$
(
'.inquiry_data'
).
on
(
'click'
,
'.data_item'
,
function
()
{
window
.
location
.
href
=
"/inquirydetail"
var
userid
=
$
(
this
).
attr
(
'userid'
);
window
.
location
.
href
=
"/inquirydetail?id="
+
userid
});
$
(
'.inquiry_data'
).
on
(
'click'
,
'.show_more'
,
function
()
{
e
.
stopPropagation
();
});
$
(
'.cx'
).
on
(
'click'
,
function
()
{
self
.
getData
(
1
);
...
...
dist/js/quoteprice/inquirydetail.js
0 → 100644
View file @
f80e1c72
$
(
function
(){
var
inquiryDetail
=
{
init
:
function
(){
this
.
getUserData
()
},
getUserData
:
function
(){
let
self
=
this
;
IcController
.
getData
(
apis
.
inquiryInfo
,
'GET'
,
{
"inquiry_items_id/eq"
:
Util
.
getRequest
(
'id'
)
||
""
,
"token"
:
Util
.
getCookie
(
'token'
)
||
""
},
function
(
res
)
{
// var getTpl = htmlTp.innerHTML;
if
(
res
.
errcode
==
0
)
{
// $('#pagination').show();
// layui.laytpl(getTpl).render(res.inquiry_list, function (html) {
// $(".inquiry_data").empty().html(html);
// layui.laypage.render({
// elem: 'pagination',
// theme: '#1080d0',
// count: res.total,
// limit: 7,
// curr: page,
// jump: function (obj, first) {
// if (!first) {
// //分页回调调用
// self.getData(obj.curr)
// }
// }
// });
// });
}
else
if
(
res
.
errcode
==
105001
)
{
// layui.laytpl(getTpl).render([], function (html) {
// $(".inquiry_data").empty().html(html);
// $('#pagination').hide();
// });
}
})
}
};
inquiryDetail
.
init
();
})
\ No newline at end of file
dist/js/quoteprice/releaseinquiry.js
View file @
f80e1c72
...
...
@@ -33,12 +33,8 @@
done
:
function
(
res
)
{
layer
.
closeAll
(
'loading'
);
if
(
res
.
errcode
==
0
)
{
layer
.
msg
(
'上传成功'
,
{
time
:
600
},
function
()
{
window
.
location
.
href
=
"/uploadresult"
;
});
$
(
'#upload_section'
).
hide
();
$
(
'.upload_result'
).
show
();
}
else
{
layer
.
msg
(
res
.
errmsg
)
}
...
...
@@ -55,7 +51,6 @@
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
)
{
...
...
@@ -73,7 +68,7 @@
})
}
else
{
//非ie低版本
$
(
'
#upload_section
'
).
show
();
$
(
'
.sc_div
'
).
show
();
opt
.
uploadFun
();
}
return
this
;
...
...
@@ -105,12 +100,9 @@
}
if
(
json
)
{
layer
.
closeAll
(
'loading'
);
if
(
json
.
errcode
==
0
)
{
layer
.
msg
(
'上传成功'
,
{
time
:
600
},
function
()
{
window
.
location
.
href
=
"/uploadresult"
;
});
if
(
json
.
errcode
==
103200
)
{
console
.
log
(
json
)
}
else
{
layer
.
msg
(
json
.
errmsg
)
...
...
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