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
1745cfaf
Commit
1745cfaf
authored
Jul 20, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
126f139e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
20 deletions
+44
-20
apps/classroom/Tpl/default/Index/search_w3g.html
+44
-20
No files found.
apps/classroom/Tpl/default/Index/search_w3g.html
View file @
1745cfaf
...
...
@@ -154,24 +154,43 @@
</template>
<template
v-if=
"showList(1)"
>
<div
v-for=
"(item, idx) in options[1].items"
:key=
"idx"
class=
"layout_v home_question_item"
>
<div
v-if=
"item.price == 0"
class=
"layout_h"
>
<div
class=
"home_item_mark_green layout_center"
>
免费
</div>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-right: 1.5rem;margin-left: 0.625rem;"
>
{{item.title}}
</span>
<div
@
click=
"onTapQuestion(item)"
class=
"home_button_green layout_center"
>
开始做题
</div>
</div>
<div
v-else
class=
"layout_h"
>
<div
class=
"home_item_mark_orange layout_center"
>
付费
</div>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-right: 1.5rem;margin-left: 0.625rem;"
>
{{item.title}}
</span>
<div
@
click=
"onTapQuestion(item)"
class=
"home_button_orange layout_center"
>
¥{{item.price}}
</div>
<div
v-for=
"(item, idx) in options[1].items"
:key=
"idx"
class=
"home_question_item"
>
<!--
<div v-if="item.price == 0" class="layout_h">
<div class="home_item_mark_green layout_center">免费</div>
<span class="text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style="margin-right: 1.5rem;margin-left: 0.625rem;">{{item.title}}</span>
<div @click="onTapQuestion(item)" class="home_button_green layout_center">开始做题</div>
</div>
<div v-else class="layout_h">
<div class="home_item_mark_orange layout_center">付费</div>
<span class="text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style="margin-right: 1.5rem;margin-left: 0.625rem;">{{item.title}}</span>
<div @click="onTapQuestion(item)" class="home_button_orange layout_center">¥{{item.price}}</div>
</div>
<div class="layout_h_b" style="margin-top: 0.5rem;">
<span class="text_14_600 color_FF3B3B">¥{{item.price}}</span>
<van-image src="__THEME__/img/down_load_icon.png" width="13" height="16"></van-image>
</div>
<div class="home_divider divider"></div>
-->
<div
class=
"class_left layout_v weight_full"
>
<div
class=
"layout_h"
>
<div
v-if=
"item.price > 0"
class=
"mark_orange layout_center"
>
付费
</div>
<div
v-if=
"item.price == 0"
class=
"mark_green layout_center"
>
免费
</div>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-left: 0.625rem;"
>
{{item.title}}
</span>
</div>
<div
class=
"layout_h"
style=
"margin-top: 1.25rem;"
>
<span
class=
"text_12_400 color_999999"
>
题数:{{item.count}}
</span>
<span
class=
"class_attr text_12_400 color_999999"
>
推荐用时:{{item.time}}m
</span>
<span
class=
"class_attr text_12_400 color_999999"
>
{{item.person}}
</span>
</div>
</div>
<div
class=
"
layout_h_b"
style=
"margin-top: 0.5rem;
"
>
<
span
class=
"text_14_600 color_FF3B3B"
>
¥{{item.price}}
</span
>
<
van-image
src=
"__THEME__/img/down_load_icon.png"
width=
"13"
height=
"16"
></van-image
>
<div
class=
"
class_right layout_center
"
>
<
div
@
click=
"onTapQuestion(item)"
v-if=
"item.price == 0 || item.is_buy"
class=
"button_green layout_center"
>
开始做题
</div
>
<
div
@
click=
"onTapQuestion(item)"
v-else-if=
"item.price > 0"
class=
"button_orange layout_center"
>
预览
</div
>
</div>
<div
class=
"home_divider divider"
></div>
</div>
<!-- 下载提示 -->
...
...
@@ -373,11 +392,16 @@
})
return
}
console
.
log
(
item
);
return
;
if
(
item
.
price
==
0
)
{
if
(
item
.
hasQuestion
)
{
let
url
=
"{:U('exams/index/examsroom')}"
+
"&paper_id="
+
item
.
id
+
"&joinType=1"
window
.
location
.
href
=
url
window
.
location
.
href
=
url
;
}
else
{
}
if
(
item
.
price
==
0
)
{
}
else
{
$
.
ajax
({
type
:
"POST"
,
...
...
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