Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
f9b5ddb6
Commit
f9b5ddb6
authored
May 18, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T
parent
a890284c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
apps/classroom/Tpl/default/Index/search_w3g.html
+12
-5
No files found.
apps/classroom/Tpl/default/Index/search_w3g.html
View file @
f9b5ddb6
...
@@ -163,12 +163,12 @@
...
@@ -163,12 +163,12 @@
height=
"68"
height=
"68"
width=
"128"
width=
"128"
fit=
"cover"
fit=
"cover"
src=
"https://img.yzcdn.cn/vant/cat.jpeg
"
>
:src=
"item.cover
"
>
</van-image>
</van-image>
<div
class=
"weight_full layout_v"
>
<div
class=
"weight_full layout_v"
>
<span
class=
"text_14_600 color_333333 van-multi-ellipsis--l2"
>
[优惠大礼包]5年高考3年模拟理综全套
</span>
<span
class=
"text_14_600 color_333333 van-multi-ellipsis--l2"
>
{{item.title}}
</span>
<div
class=
"layout_h_b"
style=
"margin-top: 0.5rem;"
>
<div
class=
"layout_h_b"
style=
"margin-top: 0.5rem;"
>
<span
class=
"text_14_600 color_FF3B3B self_center"
>
¥
0
</span>
<span
class=
"text_14_600 color_FF3B3B self_center"
>
¥
{{item.price}}
</span>
<div
class=
"item_green_button"
>
购买
</div>
<div
class=
"item_green_button"
>
购买
</div>
</div>
</div>
</div>
</div>
...
@@ -341,11 +341,18 @@
...
@@ -341,11 +341,18 @@
let
that
=
this
let
that
=
this
$
.
ajax
({
$
.
ajax
({
type
:
"GET"
,
type
:
"GET"
,
url
:
"{:U('mall/Goods/index')}"
+
"?api=1&search="
+
''
,
url
:
"{:U('mall/Goods/index')}"
+
"?api=1&search="
+
that
.
keyword
,
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
let
array
=
res
.
data
.
length
>
0
?
res
.
data
:
[]
let
array
=
res
.
data
.
length
>
0
?
res
.
data
:
[]
console
.
log
(
data
)
that
.
options
[
2
].
items
=
array
.
map
(
r
=>
{
return
{
id
:
r
.
uid
,
title
:
r
.
title
,
cover
:
r
.
cover
,
price
:
r
.
price
}
})
}
}
})
})
}
}
...
...
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