Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
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
17ab1a54
authored
Nov 24, 2022
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
询价分页处理
parent
43e07303
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
24 deletions
public/assets/js/car/car.js
public/assets/js/user/frq.js
resources/views/user/inquiry.blade.php
public/assets/js/car/car.js
View file @
17ab1a54
...
...
@@ -108,6 +108,7 @@ define('car', ['tool', 'liexin_pop', 'artTemplate'], function (require, exports,
if
(
res
.
code
===
0
)
{
liexin_pop
.
Tip
({
title
:
res
.
msg
},
function
(){
car
.
getData
()
ele
.
fadeOut
(
300
)
})
}
else
{
liexin_pop
.
Tip
({
title
:
res
.
msg
})
...
...
public/assets/js/user/frq.js
View file @
17ab1a54
define
(
'frq'
,
[
'tool'
,
'liexin_pop'
,
'artTemplate
'
],
function
(
require
,
exports
,
module
)
{
define
(
'frq'
,
[
'tool'
,
'liexin_pop'
,
'artTemplate'
,
'pagination
'
],
function
(
require
,
exports
,
module
)
{
var
tool
=
require
(
"tool"
);
var
liexin_pop
=
require
(
"liexin_pop"
);
var
artTemplate
=
require
(
"artTemplate"
);
var
artTemplate
=
require
(
"artTemplate"
);
var
pagination
=
require
(
'pagination'
);
var
frq
=
{
page
:
1
,
limit
:
10
,
init
:
function
()
{
frq
.
handle
();
frq
.
getData
()
},
getData
:
function
()
{
getData
:
function
()
{
$
.
liexin_ajax
(
'/api/inquiry/list'
,
'GET'
,
{
status
:
$
(
".inuirynavs .item.act"
).
attr
(
"guid"
),
keyword
:
$
(
".inquirysearchvalss"
).
val
()
status
:
$
(
".inuirynavs .item.act"
).
attr
(
"guid"
),
keyword
:
$
(
".inquirysearchvalss"
).
val
(),
limit
:
frq
.
limit
,
page
:
frq
.
page
},
function
(
res
)
{
if
(
res
.
code
==
0
)
{
var
dataArr
=
res
.
data
||
[];
if
(
dataArr
.
length
==
0
)
{
var
dataArr
=
res
.
data
||
[];
if
(
dataArr
.
length
==
0
)
{
tool
.
NoData
(
".tbody"
)
return
}
var
json_
=
{
data
:
dataArr
var
json_
=
{
data
:
dataArr
}
var
html
=
template
(
'DataTmp'
,
json_
);
$
(
".tbody"
).
html
(
html
);
//分页初始化
$
(
'.M-pagebox'
).
pagination
({
totalData
:
res
.
count
,
showData
:
frq
.
limit
,
coping
:
true
,
prevContent
:
'<'
,
nextContent
:
'>'
,
jump
:
true
,
jumpBtn
:
"Go"
,
keepShowPN
:
true
,
current
:
frq
.
page
,
isHide
:
true
,
callback
:
function
(
api
)
{
frq
.
page
=
api
.
getCurrent
()
frq
.
getData
();
}
});
}
else
{
liexin_pop
.
Tip
({
title
:
res
.
msg
})
}
})
},
handle
:
function
()
{
$
(
".inuirynavs .item"
).
click
(
function
()
{
if
(
$
(
this
).
hasClass
(
"act"
)){
return
}
$
(
".inuirynavs .item"
).
click
(
function
()
{
if
(
$
(
this
).
hasClass
(
"act"
))
{
return
}
$
(
".inuirynavs .item"
).
removeClass
(
"act"
)
$
(
this
).
addClass
(
"act"
)
frq
.
page
=
1
;
frq
.
getData
()
})
$
(
".inquirysearchbtnss"
).
click
(
function
(){
$
(
".inquirysearchbtnss"
).
click
(
function
()
{
frq
.
page
=
1
;
frq
.
getData
()
})
$
(
"body"
).
on
(
"click"
,
".trdetail"
,
function
()
{
var
guid_
=
$
(
this
).
attr
(
"guid"
);
$
(
"body"
).
on
(
"click"
,
".trdetail"
,
function
()
{
var
guid_
=
$
(
this
).
attr
(
"guid"
);
frq
.
getFrqDetail
(
guid_
);
})
},
getFrqDetail
:
function
(
id_
)
{
getFrqDetail
:
function
(
id_
)
{
$
.
liexin_ajax
(
'/api/inquiry/detail'
,
'GET'
,
{
inquiry_id
:
id_
inquiry_id
:
id_
},
function
(
res
)
{
if
(
res
.
code
==
0
)
{
var
arr_
=
res
.
data
.
items
||
[];
var
html_
=
""
;
for
(
var
i
=
0
;
i
<
arr_
.
length
;
i
++
)
{
html_
+=
'<div class="row gcon"><div>'
+
arr_
[
i
].
goods_name
+
'</div><div>'
+
arr_
[
i
].
brand_name
+
'</div><div>'
+
arr_
[
i
].
inquiry_number
+
'</div></div>'
var
arr_
=
res
.
data
.
items
||
[];
var
html_
=
""
;
for
(
var
i
=
0
;
i
<
arr_
.
length
;
i
++
)
{
html_
+=
'<div class="row gcon"><div>'
+
arr_
[
i
].
goods_name
+
'</div><div>'
+
arr_
[
i
].
brand_name
+
'</div><div>'
+
arr_
[
i
].
inquiry_number
+
'</div></div>'
}
liexin_pop
.
Open
({
title
:
"Inquiry"
,
width
:
766
,
ele
:
".frqDetailPop"
,
success
:
function
()
{
title
:
"Inquiry"
,
width
:
766
,
ele
:
".frqDetailPop"
,
success
:
function
()
{
$
(
".frqDetailPop .detailfrqbox"
).
html
(
html_
);
$
(
".frqDetailPop .gba"
).
text
(
res
.
data
.
remark
)
}
...
...
resources/views/user/inquiry.blade.php
View file @
17ab1a54
...
...
@@ -60,6 +60,7 @@
<div class="
tbody
">
</div>
<div class="
M
-
pagebox
row
rowCenter
"></div>
</div>
</div>
</div>
...
...
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