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
57d83883
authored
Jul 09, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://119.23.72.7/shiyu/icsales
parents
6cdd26cd
bb151d27
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
471 additions
and
228 deletions
Application/Home/View/QuotePrice/inquiry.html
Application/Home/View/QuotePrice/inquirydetail.html
Application/Home/View/QuotePrice/quote.html
Application/Home/View/QuotePrice/quotedetail.html
dist/css/inquiry.css
dist/css/inquiry.less
dist/css/inquirydetail.css
dist/css/inquirydetail.less
dist/js/global/api.js
dist/js/quoteprice/inquiry.js
dist/js/quoteprice/inquirydetail.js
dist/js/quoteprice/quote.js
Application/Home/View/QuotePrice/inquiry.html
View file @
57d83883
...
...
@@ -19,11 +19,11 @@
<div
class=
"nav_title"
>
询报价 > 我的询价
</div>
<div
class=
"xj_total clr"
>
<div
class=
"fl xj"
>
<h3>
85
</h3>
<h3>
--
</h3>
<p>
发布的询价
</p>
</div>
<div
class=
"fl wxj"
>
<h3>
85
</h3>
<h3>
--
</h3>
<p>
无回复询价
</p>
</div>
<div
class=
"center_line"
></div>
...
...
@@ -103,11 +103,16 @@
<
a
class
=
"icon iconfont iconjuxing2 fr"
><
/a
>
{{
#
if
(
item
[
'status/eq'
]
!==
1
){
}}
{{
#
if
(
item
[
'audit_status'
]
==
1
){
}}
<
a
class
=
"xj xj_status fr"
>
下架
<
/a
>
{{
#
}
else
{
}}
<
a
class
=
"xj xj_status fr disabled"
>
下架
<
/a
>
{{
#
}
}}
<
a
class
=
"xj xj_status fr"
>
下架
<
/a
>
{{
#
}
else
{
}}
{{
#
if
(
item
[
'audit_status'
]
==
1
){
}}
<
a
class
=
"fb xj_status fr"
>
发布
<
/a
>
{{
#
}
else
{
}}
<
a
class
=
"fb xj_status fr disabled"
>
发布
<
/a
>
{{
#
}
}}
{{
#
}
}}
<
div
class
=
"show_more"
style
=
"display:none"
><
/div
>
<
/div
>
...
...
@@ -137,7 +142,7 @@
{{
item
.
price
}}
<
/div
>
<
div
class
=
"company fl ellipsis boxsiz"
><
span
class
=
"mark"
>
贸易商
<
/span><spa
n
class
=
"name"
>
{{
item
.
company_name
}}
<
/span></
div
>
class
=
"name"
>
{{
item
.
company_name
||
'--'
}}
<
/span></
div
>
<
div
class
=
"fr wx"
>
<
span
class
=
"icon iconfont iconjuxing7"
><
/span
>
<
/div
>
...
...
Application/Home/View/QuotePrice/inquirydetail.html
View file @
57d83883
...
...
@@ -14,46 +14,109 @@
<div
class=
"right_content inquiry_detail_content"
>
<div
class=
"content"
>
<div
class=
"nav_title"
>
询报价 > 我的询价 > 询价详情 STM32F103ZET6
<span
class=
"fr"
>
2019-05-22 15:35
</span>
</div>
<div
class=
"goods_detail clr"
>
</div>
<div
class=
"bj_detail"
>
</div>
<div
class=
"pagination-with"
id=
"pagination"
style=
"text-align: right;margin-top: 25px;display:none"
></div>
</div>
</div>
</div>
</div>
<include
file=
"public/foot"
/>
<script>
$
(
'.gt_div '
).
on
(
'click'
,
function
()
{
var
obj
=
{
userId
:
'18589050841'
,
type
:
"STM32F103ZET6"
,
price
:
"67.9800"
,
brand
:
"Texas Instruments"
,
fz
:
"LQFP-144"
,
num
:
"100,000"
,
hq
:
"现货"
,
}
Util
.
setCookie
(
'template'
,
JSON
.
stringify
(
obj
),
1
,
cookieHostname
)
window
.
location
.
href
=
'/chat'
})
</script>
<script
src=
"__PUBLIC__/js/quoteprice/inquirydetail.js"
></script>
<script
type=
"text/html"
id=
"navTpl"
>
<!--
导航的详情
-->
询报价
>
我的询价
>
询价详情
{{
d
.
goods_name
}}
<
span
class
=
"fr"
>
{{
layui
.
util
.
toDateString
(
d
.
update_time
*
1000
)}}
<
/span
>
</script>
<script
type=
"text/html"
id=
"detailTpl"
>
<!--
商品详情
-->
<
img
src
=
"__PUBLIC__/images/test.jpg"
alt
=
""
class
=
"fr"
>
<
div
class
=
" goods_desc boxsiz"
>
<
div
class
=
"title"
>
<h3
class=
"bold fl"
>
STM32F103ZET6
</h3>
<
h3
class
=
"bold fl"
>
{{
d
.
goods_name
}}
<
/h3
>
<
div
class
=
"fr"
>
<span
class=
"mark lineBlock"
></span><span
class=
"text"
>
展示中
</span>
{{
#
if
(
d
[
'audit_status'
]
==
1
){
}}
{{
#
if
(
d
[
'status/eq'
]
!==
1
){
}}
<
span
class
=
"mark lineBlock zs"
><
/span><span class="text">展示中</
span
>
{{
#
}
else
{
}}
<
span
class
=
"mark lineBlock xj"
><
/span><span class="text">已下架</
span
>
{{
#
}
}}
{{
#
}
else
{
}}
<
span
class
=
"mark lineBlock jy"
><
/span><span class="text">禁用中</
span
>
{{
#
}
}}
<
/div
>
<
/div
>
<
div
class
=
"desc inquiry_desc"
>
<
div
class
=
"brand fl boxsiz ellipsis"
>
品牌:
<span>
Texas InstrumentsTexas
</span>
品牌:
<
span
>
{{
d
.
brand_name
}}
<
/span
>
<
/div
>
<
div
class
=
"fz fl boxsiz ellipsis"
>
封装:
<span>
LQFP-144
</span>
</div>
<div
class=
"price fl boxsiz ellipsis "
>
接受价:
<span>
无
</span></div>
<div
class=
"num fl boxsiz ellipsis"
>
数量:
<span
class=
"bold"
>
100,000 PCS
</span></div>
<div
class=
"hq fl boxsiz ellipsis"
>
货期:
<span>
现货
</span></div>
<div
class=
"bz fl boxsiz ellipsis"
>
备注:
<span>
有货的商家请尽快联系,谢谢!
</span></div>
封装:
<
span
>
{{
d
.
encap
}}
<
/span
>
<
/div
>
<
div
class
=
"price fl boxsiz"
>
接受价:
{{
#
if
(
!
d
.
price
){
}}
<
span
>
无
<
/span
>
{{
#
}
else
{
}}
<
span
class
=
"red"
>
{{
#
if
(
d
.
currency
==
1
){
}}
¥
{{
#
}
else
{
}}
$
{{
#
}
}}
{{
d
.
price
}}
<
/span
>
{{
#
}
}}
<
/div
>
<
div
class
=
"num fl boxsiz ellipsis"
>
数量:
<
span
class
=
"bold"
>
{{
d
.
number
}}
PCS
<
/span></
div
>
<
div
class
=
"hq fl boxsiz ellipsis"
>
货期:
<
span
>
{{
d
.
delivery_time
}}
<
/span></
div
>
<
div
class
=
"bz fl boxsiz ellipsis"
>
备注:
<
span
>
{{
d
.
remark
}}
<
/span></
div
>
<
/div
>
<
/div
>
<div
class=
"bj_detail"
>
</script>
<script
type=
"text/html"
id=
"bjTpl"
>
<
div
class
=
"bj_title"
>
<
span
class
=
"lineBlock"
><
/span
>
<
b
>
收到的报价
<
/b
>
<b
class=
"bj_num"
>
2
</b>
<
b
class
=
"bj_num"
>
{{
d
.
length
}}
<
/b
>
<
/div
>
<
div
class
=
"bj_lists"
>
{{
#
layui
.
each
(
d
,
function
(
index
,
item
){
}}
<
div
class
=
"bj_item clr"
>
<
div
class
=
"item_right fr boxsiz"
>
<
div
class
=
"top"
>
<
div
class
=
"top_right icon iconfont iconjuxing2 fr"
><
/div
>
<
div
class
=
"top_left boxsiz ellipsis"
>
<
span
class
=
"lineBlock mark"
>
报价
<
/span
>
<span
class=
"name bold"
>
深圳邦马特科技有限公司深圳邦马特科技有限公司
</span>
<
span
class
=
"name bold"
>
{{
item
.
company_name
||
'--'
}}
<
/span
>
<
/div
>
<
/div
>
<
div
class
=
"center"
>
...
...
@@ -70,14 +133,6 @@
<
span
class
=
"icon iconfont iconjuxing10"
><
/span
>
贸易商
<
/div
>
<div
class=
"fl"
>
<span
class=
"icon iconfont iconjuxing10"
></span>
贸易商
</div>
<div
class=
"fl"
>
<span
class=
"icon iconfont iconjuxing10"
></span>
贸易商
</div>
<
/div
>
<
div
class
=
"center_right ellipsis"
>
...
...
@@ -95,59 +150,46 @@
<
/div
>
<
/div
>
<
div
class
=
"time"
>
报价时间:
<span>
2019-05-23 15:57
</span>
报价时间:
<
span
>
{{
layui
.
util
.
toDateString
(
d
.
update_time
*
1000
)}}
<
/span
>
<
/div
>
<
/div
>
<
div
class
=
"item_left boxsiz"
>
<
div
class
=
"item_left_top"
>
<h3
class=
"bold fl ellipsis boxsiz"
>
STM32F103ZET6
</h3>
<div
class=
"price fl bold ellipsis boxsiz"
>
¥67.9800
</div>
<
h3
class
=
"bold fl ellipsis boxsiz"
>
{{
item
.
goods_name
}}
<
/h3
>
<
div
class
=
"price fl bold ellipsis boxsiz"
>
{{
#
if
(
item
.
currency
==
1
){
}}
¥
{{
#
}
else
{
}}
$
{{
#
}
}}
{{
item
.
price
}}
<
/div
>
<
/div
>
<
div
class
=
"desc"
>
<
div
class
=
"brand fl boxsiz ellipsis"
>
品牌:
<span>
Texas Instruments
品牌:
<
span
>
{{
item
.
brand_name
}}
<
/span
>
<
/div
>
<
div
class
=
"fz fl boxsiz ellipsis"
>
封装:
<span>
LQFP-144
</span>
封装:
<
span
>
{{
item
.
encap
}}
<
/span
>
<
/div
>
<div
class=
"num fl boxsiz ellipsis"
>
数量:
<span
class=
"bold"
>
100,000
PCS
</span>
<
div
class
=
"num fl boxsiz ellipsis"
>
数量:
<
span
class
=
"bold"
>
{{
item
.
number
}}
PCS
<
/span
>
<
/div
>
<div
class=
"hq fl boxsiz ellipsis"
>
货期:
<span>
现货
</span></div>
<
div
class
=
"hq fl boxsiz ellipsis"
>
货期:
<
span
>
{{
item
.
delivery_time
}}
<
/span></
div
>
<
div
class
=
"bz fl boxsiz ellipsis"
>
备注:
<span>
我们有大量的现货,随时都可以出库。我们有大量的现货,随时都可以出库。
</span></div>
备注:
<
span
>
{{
item
.
remark
}}
<
/span></
div
>
<
/div
>
<
/div
>
<
/div
>
{{
#
});
}}
<
/div
>
<div
class=
"no_data"
style=
"display: none"
>
{{
#
if
(
d
.
length
===
0
){
}}
<
div
class
=
"no_data"
>
<
img
src
=
"__PUBLIC__/images/nodata.png"
alt
=
""
>
<
p
>
暂无报价信息
<
/p
>
<
/div
>
</div>
</div>
</div>
</div>
</div>
<include
file=
"public/foot"
/>
<script>
$
(
'.gt_div '
).
on
(
'click'
,
function
()
{
var
obj
=
{
userId
:
'18589050841'
,
type
:
"STM32F103ZET6"
,
price
:
"67.9800"
,
brand
:
"Texas Instruments"
,
fz
:
"LQFP-144"
,
num
:
"100,000"
,
hq
:
"现货"
,
}
Util
.
setCookie
(
'template'
,
JSON
.
stringify
(
obj
),
1
,
cookieHostname
)
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/quote.html
View file @
57d83883
...
...
@@ -16,12 +16,12 @@
<div
class=
"nav_title"
>
询报价 > 我的报价
</div>
<div
class=
"xj_total clr"
>
<div
class=
"fl xj"
>
<h3>
85
</h3>
<p>
发布的询
价
</p>
<h3>
--
</h3>
<p>
回复的报
价
</p>
</div>
<div
class=
"fl wxj"
>
<h3>
85
</h3>
<p>
无回复询
价
</p>
<h3>
--
</h3>
<p>
未回复报
价
</p>
</div>
<div
class=
"center_line"
></div>
</div>
...
...
@@ -29,7 +29,7 @@
<div
class=
"input_div fl"
>
<span
class=
"lineBlock"
>
询价型号:
</span>
<div>
<input
type=
"text"
placeholder=
"请输入型号"
class=
"boxsiz"
>
<input
type=
"text"
placeholder=
"请输入型号"
class=
"boxsiz"
id=
"goodName"
>
</div>
</div>
...
...
@@ -56,118 +56,52 @@
</div>
<div
class=
"inquiry_data"
>
<div
class=
"data_list"
>
</div>
<div
class=
"pagination-with"
id=
"pagination"
style=
"text-align: right;margin-top: 25px;display:none"
></div>
</div>
</div>
</div>
<div
class=
"data_item"
>
<div
class=
"data_detail bj_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=
"hq fl ellipsis boxsiz"
>
货期:
<span>
20天
</span></div>
<div
class=
"price fl ellipsis boxsiz bold"
>
¥0.7425
</div>
<div
class=
"time fr ellipsis boxsiz "
>
2019-05-22 15:35
</div>
<include
file=
"public/foot"
/>
<script
src=
"__PUBLIC__/js/quoteprice/quote.js"
></script>
<script
type=
"text/html"
id=
"myBj"
>
<
div
class
=
"data_list"
>
{{
#
layui
.
each
(
d
,
function
(
index
,
item
){
}}
<
div
class
=
"data_item"
userid
=
"{{item.inquiry_items_id}}"
>
<
div
class
=
"data_detail bj_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
>
<
div
class
=
"hq fl ellipsis boxsiz"
>
货期:
<
span
>
{{
item
.
delivery_time
}}
<
/span></
div
>
<
div
class
=
"price fl ellipsis boxsiz bold"
>
{{
#
if
(
item
.
currency
==
1
){
}}
¥
{{
#
}
else
{
}}
$
{{
#
}
}}
{{
item
.
price
}}
<
/div
>
{{
#
if
(
item
.
update_time
){
}}
<
div
class
=
"time fr ellipsis boxsiz "
>
{{
layui
.
util
.
toDateString
(
item
.
update_time
*
1000
)}}
<
/div
>
{{
#
}
else
{
}}
<
div
class
=
"time fr ellipsis boxsiz "
>
无
<
/div
>
{{
#
}
}}
<
/div
>
<
a
class
=
"icon iconfont iconjuxing2 fr"
><
/a
>
<
a
class
=
"is_bj_status fr"
>
继续报价
<
/a
>
<!-- <div class="show_more">
<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>
<div
class=
"no_data"
style=
"display: none"
>
<
/div
>
{{
#
});
}}
<
/div
>
{{
#
if
(
d
.
length
===
0
){
}}
<
div
class
=
"no_data"
>
<
img
src
=
"__PUBLIC__/images/nosearchdata.png"
alt
=
""
>
<
p
class
=
"bold"
>
未搜索到报价信息
<
/p
>
<
div
class
=
"fb_command"
>
您可以去抢单专区回复报价。
<
/div
>
<
/div
>
</div>
</div>
</div>
</div>
</div>
<include
file=
"public/foot"
/>
<script>
layui
.
use
(
'laydate'
,
function
()
{
var
laydate
=
layui
.
laydate
;
//执行一个laydate实例
laydate
.
render
({
elem
:
'#start_date'
,
//指定元素
theme
:
'#0D84D1'
});
laydate
.
render
({
elem
:
'#end_date'
,
//指定元素
theme
:
'#0D84D1'
});
});
$
(
'.edit_div'
).
click
(
function
()
{
window
.
location
.
href
=
"/releaseinquiry"
})
$
(
'.iconjuxing2'
).
click
(
function
()
{
$
(
'.show_more'
).
slideDown
()
})
$
(
'.data_item'
).
click
(
function
()
{
window
.
location
.
href
=
"/quotedetail"
})
{{
#
}
}}
</script>
</body>
...
...
Application/Home/View/QuotePrice/quotedetail.html
View file @
57d83883
...
...
@@ -14,7 +14,7 @@
<div
class=
"right_content quote_detail_content"
>
<div
class=
"content"
>
<div
class=
"nav_title"
>
询报价 > 我的
询价 > 询
价详情 STM32F103ZET6
询报价 > 我的
报价 > 报
价详情 STM32F103ZET6
<span
class=
"fr"
>
2019-05-22 15:35
</span>
</div>
<div
class=
"goods_detail clr"
>
...
...
dist/css/inquiry.css
View file @
57d83883
...
...
@@ -158,7 +158,7 @@
.quote_content
.inquiry_data
.data_list
.data_item
.show_more
{
position
:
absolute
;
right
:
0
;
width
:
6
7
%
;
width
:
6
8
%
;
top
:
100%
;
box-shadow
:
0px
5px
10px
0px
rgba
(
216
,
223
,
230
,
0.5
);
background-color
:
#fff
;
...
...
@@ -347,6 +347,10 @@
color
:
#686E73
;
cursor
:
pointer
;
}
.inquiry_content
.inquiry_data
.data_list
.data_item
.xj_status.disabled
,
.quote_content
.inquiry_data
.data_list
.data_item
.xj_status.disabled
{
cursor
:
not-allowed
;
}
.inquiry_content
.inquiry_data
.data_list
.data_item
.xj_status.fb
,
.quote_content
.inquiry_data
.data_list
.data_item
.xj_status.fb
{
color
:
#0D84D1
;
...
...
dist/css/inquiry.less
View file @
57d83883
...
...
@@ -164,7 +164,7 @@
.show_more {
position: absolute;
right: 0;
width: 6
7
%;
width: 6
8
%;
top: 100%;
box-shadow: 0px 5px 10px 0px rgba(216, 223, 230, 0.5);
background-color: #fff;
...
...
@@ -367,7 +367,9 @@
.xj_status {
color: #686E73;
cursor: pointer;
&.disabled{
cursor: not-allowed;
}
&.fb {
color: #0D84D1;
}
...
...
dist/css/inquirydetail.css
View file @
57d83883
...
...
@@ -5,11 +5,13 @@
.inquiry_detail_content
.nav_title
,
.quote_detail_content
.nav_title
{
padding
:
20px
0
;
min-height
:
19px
;
}
.inquiry_detail_content
.goods_detail
,
.quote_detail_content
.goods_detail
{
background-color
:
#fff
;
padding
:
20px
30px
;
min-height
:
220px
;
}
.inquiry_detail_content
.goods_detail
img
,
.quote_detail_content
.goods_detail
img
{
...
...
@@ -40,11 +42,22 @@
.quote_detail_content
.goods_detail
.goods_desc
.title
div
.mark
{
height
:
20px
;
width
:
20px
;
background-color
:
#52CCA8
;
border-radius
:
50%
50%
;
vertical-align
:
sub
;
margin-right
:
9px
;
}
.inquiry_detail_content
.goods_detail
.goods_desc
.title
div
.mark.zs
,
.quote_detail_content
.goods_detail
.goods_desc
.title
div
.mark.zs
{
background-color
:
#52CCA8
;
}
.inquiry_detail_content
.goods_detail
.goods_desc
.title
div
.mark.xj
,
.quote_detail_content
.goods_detail
.goods_desc
.title
div
.mark.xj
{
background-color
:
#D8DFE6
;
}
.inquiry_detail_content
.goods_detail
.goods_desc
.title
div
.mark.jy
,
.quote_detail_content
.goods_detail
.goods_desc
.title
div
.mark.jy
{
background-color
:
#EA1717
;
}
.inquiry_detail_content
.goods_detail
.goods_desc
.title
div
.text
,
.quote_detail_content
.goods_detail
.goods_desc
.title
div
.text
{
font-size
:
16px
;
...
...
@@ -101,6 +114,12 @@
.inquiry_detail_content
.goods_detail
.goods_desc
.desc
div
.price
,
.quote_detail_content
.goods_detail
.goods_desc
.desc
div
.price
{
width
:
20%
;
white-space
:
nowrap
;
}
.inquiry_detail_content
.goods_detail
.goods_desc
.desc
div
.price
.red
,
.quote_detail_content
.goods_detail
.goods_desc
.desc
div
.price
.red
{
color
:
#EA1717
;
font-weight
:
600
;
}
.inquiry_detail_content
.goods_detail
.goods_desc
.desc
div
.fz
,
.quote_detail_content
.goods_detail
.goods_desc
.desc
div
.fz
{
...
...
@@ -462,4 +481,3 @@
.from_mask
.form
.form_content
.btn_div
span
.cz
{
margin-left
:
40px
;
}
/*# sourceMappingURL=inquirydetail.css.map */
\ No newline at end of file
dist/css/inquirydetail.less
View file @
57d83883
...
...
@@ -4,11 +4,13 @@
.nav_title {
padding: 20px 0;
min-height: 19px;
}
.goods_detail {
background-color: #fff;
padding: 20px 30px;
min-height: 220px;
img {
height: 220px;
...
...
@@ -37,10 +39,22 @@
.mark {
height: 20px;
width: 20px;
background-color: #52CCA8;
border-radius: 50% 50%;
vertical-align: sub;
margin-right: 9px;
&.zs {
background-color: #52CCA8;
}
&.xj {
background-color: #D8DFE6;
}
&.jy {
background-color: #EA1717;
}
}
.text {
...
...
@@ -99,6 +113,12 @@
&.price {
width: 20%;
white-space: nowrap;
.red {
color: #EA1717;
font-weight: 600;
}
}
&.fz {
...
...
@@ -293,7 +313,8 @@
font-size: 20px;
margin-right: 5px;
}
.iconjuxing23{
.iconjuxing23 {
color: #adb6bf;
}
}
...
...
@@ -306,7 +327,8 @@
width: 140px;
margin-left: 15px;
color: #8a9299;
&:hover{
&:hover {
background: none !important;
}
}
...
...
dist/js/global/api.js
View file @
57d83883
...
...
@@ -48,11 +48,11 @@
/***
* 获取用户基本信息
*/
authme
:
auth_url
+
'/auth/me'
,
authme
:
auth_url
+
'/auth/me'
,
/***
* 上传文件的接口
*/
ossupload
:
goods_url
+
'/oss/upload'
,
ossupload
:
goods_url
+
'/oss/upload'
,
/**
* 商品列表
*/
...
...
@@ -72,24 +72,49 @@
/**
* 商品修改
*/
bulkupload
:
goods_url
+
'/goods/upload'
,
bulkupload
:
goods_url
+
'/goods/upload'
,
goodsSave
:
goods_url
+
'/goods/save'
,
/****
* 询价搜索 不需要token
*/
inquirySearch
:
offer_url
+
'/inquiry/search'
,
inquirySearch
:
offer_url
+
'/inquiry/search'
,
/***
* 会员中心询价列表 需要token
*/
inquiryInfo
:
offer_url
+
"/inquiry/info"
,
inquiryInfo
:
offer_url
+
"/inquiry/info"
,
/***
* 我的询价回复
*/
inquiryMyOffer
:
offer_url
+
"/inquiry/my/offer"
,
inquiryMyOffer
:
offer_url
+
"/inquiry/my/offer"
,
/***
* 询价添加 需要token
*/
inquiryadd
:
offer_url
+
"/inquiry/add"
inquiryadd
:
offer_url
+
"/inquiry/add"
,
/***
* 询价统计
*/
inquirycount
:
offer_url
+
"/inquiry/count"
,
/***
* 报价统计
*/
offercount
:
offer_url
+
"/offer/count"
,
/***
* 继续报价 and 回复报价
*/
offercontinue
:
offer_url
+
"/offer/continue"
,
/***
* 新增报价
*/
offeradd
:
offer_url
+
"/offer/add"
,
/***
* 价单列表(搜索)
*/
offersearch
:
offer_url
+
"/offer/search"
,
/***
* 我的报价单列表
*/
offerinfo
:
offer_url
+
"/offer/info"
,
};
if
(
typeof
define
===
"function"
&&
define
.
amd
)
{
return
apis
;
...
...
dist/js/quoteprice/inquiry.js
View file @
57d83883
$
(
function
()
{
var
inquiry
=
{
params
:
{
"offset"
:
7
,
"p"
:
1
,
"token"
:
Util
.
getCookie
(
'token'
)
||
""
},
init
:
function
()
{
layui
.
laydate
.
render
({
elem
:
'#start_date'
,
//指定元素
...
...
@@ -9,19 +14,27 @@ $(function () {
elem
:
'#end_date'
,
//指定元素
theme
:
'#0D84D1'
});
this
.
getCount
();
this
.
bindFun
();
this
.
getData
(
1
);
this
.
getData
(
this
.
params
,
1
);
},
getData
:
function
(
page
)
{
var
self
=
this
;
IcController
.
getData
(
apis
.
inquiryInfo
,
'GET'
,
{
'goods_name/like'
:
$
(
'#goodName'
).
val
()
||
""
,
"start_time"
:
$
(
'#start_date'
).
val
()
||
""
,
"end_time"
:
$
(
'#end_date'
).
val
()
||
""
,
"offset"
:
7
,
"p"
:
page
,
getCount
:
function
()
{
IcController
.
getData
(
apis
.
inquirycount
,
'GET'
,
{
"token"
:
Util
.
getCookie
(
'token'
)
||
""
},
function
(
res
)
{
if
(
res
.
errcode
==
0
)
{
$
(
'.xj h3'
).
text
(
res
.
count
.
all
||
'0'
);
$
(
'.wxj h3'
).
text
(
res
.
count
.
reply
||
'0'
)
}
},
false
)
},
getData
:
function
(
params
,
page
)
{
var
self
=
this
;
IcController
.
getData
(
apis
.
inquiryInfo
,
'GET'
,
params
,
function
(
res
)
{
var
getTpl
=
htmlTp
.
innerHTML
;
if
(
res
.
errcode
==
0
)
{
$
(
'#pagination'
).
show
();
...
...
@@ -36,9 +49,11 @@ $(function () {
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
//分页回调调用
self
.
getData
(
obj
.
curr
)
var
json
=
{
p
:
obj
.
curr
}
var
param
=
$
.
extend
({},
params
,
json
);
self
.
getData
(
param
,
obj
.
curr
)
}
}
});
...
...
@@ -55,7 +70,6 @@ $(function () {
},
geMyXj
:
function
(
id
,
ele
)
{
//获取回复的询价
var
self
=
this
;
IcController
.
getData
(
apis
.
inquiryMyOffer
,
'GET'
,
{
"inquiry_items_id/eq"
:
id
,
"token"
:
Util
.
getCookie
(
'token'
)
||
""
,
...
...
@@ -104,12 +118,19 @@ $(function () {
e
.
stopPropagation
();
});
$
(
'.cx'
).
on
(
'click'
,
function
()
{
self
.
getData
(
1
);
var
formData
=
{
'goods_name/like'
:
$
(
'#goodName'
).
val
()
||
""
,
"start_time"
:
$
(
'#start_date'
).
val
()
||
""
,
"end_time"
:
$
(
'#end_date'
).
val
()
||
""
,
},
param
=
$
.
extend
({},
inquiry
.
params
,
formData
);
inquiry
.
getData
(
param
,
1
);
});
$
(
'.cz'
).
on
(
'click'
,
function
()
{
$
(
'#goodName'
).
val
(
''
);
$
(
'#start_date'
).
val
(
''
);
$
(
'#end_date'
).
val
(
''
);
inquiry
.
getData
(
inquiry
.
params
,
1
);
})
}
};
...
...
dist/js/quoteprice/inquirydetail.js
View file @
57d83883
$
(
function
()
{
$
(
function
()
{
var
inquiryDetail
=
{
init
:
function
(){
this
.
getUserData
()
init
:
function
()
{
this
.
getUserData
();
this
.
getBjData
(
1
);
},
getUserData
:
function
(){
let
self
=
this
;
getUserData
:
function
()
{
IcController
.
getData
(
apis
.
inquiryInfo
,
'GET'
,
{
"inquiry_items_id/eq"
:
Util
.
getRequest
(
'id'
)
||
""
,
"inquiry_items_id/eq"
:
Util
.
getRequest
(
'id'
)
||
""
,
"token"
:
Util
.
getCookie
(
'token'
)
||
""
},
function
(
res
)
{
// var getTpl = htmlTp.innerHTML;
var
getNav
=
navTpl
.
innerHTML
,
getDetail
=
detailTpl
.
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)
// }
// }
// });
// });
layui
.
laytpl
(
getNav
).
render
(
res
.
inquiry_list
[
Util
.
getRequest
(
'id'
)
||
''
],
function
(
html
)
{
$
(
".inquiry_detail_content .nav_title"
).
empty
().
html
(
html
);
});
layui
.
laytpl
(
getDetail
).
render
(
res
.
inquiry_list
[
Util
.
getRequest
(
'id'
)
||
''
],
function
(
html
)
{
$
(
".inquiry_detail_content .goods_detail"
).
empty
().
html
(
html
);
});
}
else
if
(
res
.
errcode
==
105001
)
{
// layui.laytpl(getTpl).render([], function (html) {
// $(".inquiry_data").empty().html(html);
// $('#pagination').hide();
layui
.
laytpl
(
getNav
).
render
([],
function
(
html
)
{
$
(
".inquiry_detail_content .nav_title"
).
empty
().
html
(
html
);
});
layui
.
laytpl
(
getDetail
).
render
([],
function
(
html
)
{
$
(
".inquiry_detail_content .goods_detail"
).
empty
().
html
(
html
);
});
// });
}
})
},
getBjData
:
function
(
page
)
{
//获取回复的询价
var
self
=
this
;
IcController
.
getData
(
apis
.
inquiryMyOffer
,
'GET'
,
{
"inquiry_items_id/eq"
:
Util
.
getRequest
(
'id'
)
||
''
,
"token"
:
Util
.
getCookie
(
'token'
)
||
""
,
"p"
:
page
,
"offset"
:
"5"
,
},
function
(
res
)
{
var
getBj
=
bjTpl
.
innerHTML
;
if
(
res
.
errcode
==
0
)
{
if
(
res
.
total
==
0
)
{
$
(
'#pagination'
).
hide
();
layui
.
laytpl
(
getBj
).
render
([],
function
(
html
)
{
$
(
".inquiry_detail_content .bj_detail"
).
empty
().
html
(
html
);
});
}
else
{
$
(
'#pagination'
).
show
();
layui
.
laytpl
(
getBj
).
render
(
res
.
data
,
function
(
html
)
{
$
(
".inquiry_detail_content .bj_detail"
).
empty
().
html
(
html
);
layui
.
laypage
.
render
({
elem
:
'pagination'
,
theme
:
'#1080d0'
,
count
:
res
.
total
,
limit
:
5
,
curr
:
page
,
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
//分页回调调用
self
.
getBjData
(
obj
.
curr
)
}
}
});
});
}
}
else
{
$
(
'#pagination'
).
hide
();
layui
.
laytpl
(
getBj
).
render
([],
function
(
html
)
{
$
(
".inquiry_detail_content .bj_detail"
).
empty
().
html
(
html
);
});
}
})
}
...
...
dist/js/quoteprice/quote.js
0 → 100644
View file @
57d83883
$
(
function
()
{
var
quote
=
{
params
:
{
"offset"
:
7
,
"p"
:
1
,
"token"
:
Util
.
getCookie
(
'token'
)
||
""
},
init
:
function
()
{
layui
.
laydate
.
render
({
elem
:
'#start_date'
,
//指定元素
theme
:
'#0D84D1'
});
layui
.
laydate
.
render
({
elem
:
'#end_date'
,
//指定元素
theme
:
'#0D84D1'
});
this
.
getCount
();
this
.
bindFun
();
this
.
getData
(
this
.
params
,
1
);
},
getCount
:
function
()
{
IcController
.
getData
(
apis
.
offercount
,
'GET'
,
{
"token"
:
Util
.
getCookie
(
'token'
)
||
""
},
function
(
res
)
{
if
(
res
.
errcode
==
0
)
{
$
(
'.xj h3'
).
text
(
res
.
count
.
reply
||
'0'
);
$
(
'.wxj h3'
).
text
(
res
.
count
.
notreply
||
'0'
)
}
},
false
)
},
getData
:
function
(
params
,
page
)
{
var
self
=
this
;
IcController
.
getData
(
apis
.
offerinfo
,
'GET'
,
params
,
function
(
res
)
{
var
getTpl
=
myBj
.
innerHTML
;
if
(
res
.
errcode
==
0
)
{
$
(
'#pagination'
).
show
();
layui
.
laytpl
(
getTpl
).
render
(
res
.
data
,
function
(
html
)
{
$
(
".quote_content .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
)
{
//分页回调调用
var
json
=
{
p
:
obj
.
curr
}
var
param
=
$
.
extend
({},
params
,
json
);
self
.
getData
(
param
,
obj
.
curr
)
}
}
});
});
}
else
if
(
res
.
errcode
==
105001
)
{
layui
.
laytpl
(
getTpl
).
render
([],
function
(
html
)
{
$
(
".quote_content .inquiry_data"
).
empty
().
html
(
html
);
$
(
'#pagination'
).
hide
();
});
}
})
},
geMyXj
:
function
(
id
,
ele
)
{
//获取回复的询价
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"
});
$
(
'.inquiry_data'
).
on
(
'click'
,
'.iconjuxing2'
,
function
(
e
)
{
e
.
stopPropagation
();
var
userid
=
$
(
this
).
parent
(
'.data_item'
).
attr
(
'userid'
)
if
(
$
(
this
).
siblings
(
'.show_more'
).
css
(
'display'
)
==
'none'
)
{
self
.
geMyXj
(
userid
,
this
);
}
else
{
$
(
this
).
siblings
(
'.show_more'
).
slideUp
();
}
})
$
(
'.inquiry_data'
).
on
(
'click'
,
'.data_item'
,
function
()
{
var
userid
=
$
(
this
).
attr
(
'userid'
);
window
.
location
.
href
=
"/quotedetail?id="
+
userid
});
$
(
'.inquiry_data'
).
on
(
'click'
,
'.show_more'
,
function
()
{
e
.
stopPropagation
();
});
$
(
'.cx'
).
on
(
'click'
,
function
()
{
var
formData
=
{
'goods_name/like'
:
$
(
'#goodName'
).
val
()
||
""
,
"start_time"
:
$
(
'#start_date'
).
val
()
||
""
,
"end_time"
:
$
(
'#end_date'
).
val
()
||
""
,
},
param
=
$
.
extend
({},
quote
.
params
,
formData
);
quote
.
getData
(
param
,
1
);
});
$
(
'.cz'
).
on
(
'click'
,
function
()
{
$
(
'#goodName'
).
val
(
''
);
$
(
'#start_date'
).
val
(
''
);
$
(
'#end_date'
).
val
(
''
);
quote
.
getData
(
quote
.
params
,
1
);
})
}
};
quote
.
init
()
})
\ 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