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
2ece4a83
Commit
2ece4a83
authored
May 19, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A
parent
b0a54753
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
284 additions
and
265 deletions
+284
-265
addons/theme/stv1/_static_w3g/css/common.css
+36
-0
apps/classroom/Tpl/default/Index/theme_x7_w3g.html
+3
-1
apps/home/Tpl/default/Home/exams_w3g.html
+242
-263
apps/home/Tpl/default/User/index_w3g.html
+3
-1
No files found.
addons/theme/stv1/_static_w3g/css/common.css
View file @
2ece4a83
...
@@ -899,4 +899,39 @@ div::-webkit-scrollbar {
...
@@ -899,4 +899,39 @@ div::-webkit-scrollbar {
/* Goods Detail */
/* Goods Detail */
.goods_detail_top
{
.goods_detail_top
{
}
/* 真题 */
.zhenti_my_collect_list_container
{
position
:
relative
;
box-sizing
:
border-box
;
padding-top
:
2.25rem
;
}
.zhenti_tab
{
position
:
fixed
!important
;
top
:
2.75rem
;
width
:
100%
;
height
:
2.25rem
;
}
.zhenti_tab_normal
{
font-size
:
14px
;
font-weight
:
600
;
color
:
rgba
(
51
,
51
,
51
,
1
);
}
.zhenti_tab_selected
{
font-size
:
14px
;
font-weight
:
600
;
color
:
rgba
(
101
,
192
,
0
,
1
);
}
.zhenti_my_collect_cell
{
padding
:
0.75rem
;
margin-bottom
:
0.5rem
;
}
.zhenti_my_collect_cell_time
{
margin-top
:
0.75rem
;
}
}
\ No newline at end of file
apps/classroom/Tpl/default/Index/theme_x7_w3g.html
View file @
2ece4a83
...
@@ -139,7 +139,9 @@
...
@@ -139,7 +139,9 @@
<van-tabbar-item>
<van-tabbar-item>
<span
class=
"text_10_400"
>
真题题库
</span>
<span
class=
"text_10_400"
>
真题题库
</span>
<template
#
icon=
"props"
>
<template
#
icon=
"props"
>
<img
:src=
"props.active ? '__THEME__/img/zhenti.png' : '__THEME__/img/zhenti_s.png'"
/>
<a
href=
"{:U('home/Home/exams')}"
>
<img
:src=
"props.active ? '__THEME__/img/zhenti.png' : '__THEME__/img/zhenti_s.png'"
/>
</a>
</template>
</template>
</van-tabbar-item>
</van-tabbar-item>
<van-tabbar-item>
<van-tabbar-item>
...
...
apps/home/Tpl/default/Home/exams_w3g.html
View file @
2ece4a83
<include
file=
"__THEME__/public_header_w3g"
/>
<include
file=
"__THEME__/public_header_w3g"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{$Think.APPS_URL}/exams/_static/css/public.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{$Think.APPS_URL}/exams/_static/icon/iconfont.css"
>
<div
id=
"app"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{$Think.APPS_URL}/exams/_static/css/public_header_footer_media.css"
>
<div
class=
"layout_v tab_container"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{$Think.APPS_URL}/exams/_static/css/exam_2.0.css"
>
<van-tabs
:border=
"false"
v-model=
"tab"
sticky
@
change=
"onTopTab"
line-width=
"72px"
line-height=
"4px"
background=
"white"
color=
"#A3E460"
title-inactive-color=
"#333333"
title-active-color=
"#A3E460"
>
<div
class=
"cover"
></div>
<van-tab>
<div
class=
"min-height-wrap"
>
<span
slot=
"title"
v-bind:class=
"tab == 0 ? 'tab_text_selected' : 'tab_text_normal'"
>
<div
class=
"suren-box"
>
真题演练
<ul
class=
"suren-coas"
>
</span>
<li
<
php
>
if(!$_GET['tab'] || $_GET['tab'] == 1){
</php>
class="on"
<php>
}
</php>
>
<a
href=
"{:U('home/Home/exams',['tab'=>1])}"
>
练习记录
</a></li>
<van-sticky
:offset-top=
"44"
>
<li
<
eq
name=
"Think.get.tab"
value=
"2"
>
class="on"
</eq>
>
<a
href=
"{:U('home/Home/exams',['tab'=>2])}"
>
考试记录
</a></li>
<div
class=
"layout_v"
>
<li
<
eq
name=
"Think.get.tab"
value=
"3"
>
class="on"
</eq>
>
<a
href=
"{:U('home/Home/exams',['tab'=>3])}"
>
错题记录
</a></li>
<van-dropdown-menu
active-color=
"#333333"
>
<li
<
eq
name=
"Think.get.tab"
value=
"4"
>
class="on"
</eq>
>
<a
href=
"{:U('home/Home/exams',['tab'=>4])}"
>
题目收藏
</a></li>
<van-dropdown-item
title=
"筛选"
ref=
"item"
>
<li
<
eq
name=
"Think.get.tab"
value=
"5"
>
class="on"
</eq>
>
<a
href=
"{:U('home/Home/exams',['tab'=>5])}"
>
高频练习
</a></li>
<div
class=
"drop_down_grid"
>
</ul>
<div
class=
"drop_down_option_selected"
>
全部
</div>
<div
class=
"asmarfr-pr"
>
<div
class=
"drop_down_option"
>
事业单位
</div>
<switch
name=
"Think.get.tab"
>
<div
class=
"drop_down_option"
>
公考面试
</div>
<case
value=
"3"
>
<div
class=
"drop_down_option"
>
教师
</div>
<!--错题记录-->
<div
class=
"drop_down_option"
>
财会
</div>
<php>
if($list['data']){
</php>
<div
class=
"drop_down_option"
>
银行
</div>
<ul
class=
"suren-content"
>
<div
class=
"drop_down_option"
>
法考
</div>
<volist
name=
"list.data"
id=
"vo"
>
<div
class=
"drop_down_option"
>
考研
</div>
<li>
</div>
<a
href=
"#"
>
</van-dropdown-item>
<span>
</van-dropdown-menu>
<h4>
{$vo.paper_info.exams_paper_title}
</h4>
<div
class=
"drop_down_selected_container"
>
<p>
{$vo['update_time']|friendlyDate}
</p>
<div
class=
"color_primary text_14_400 drop_down_selected_item"
>
公务员
</div>
</span>
</div>
<strong>
{$vo.wrong_count}道错题
</strong>
</div>
<a
href=
"{:U('exams/Index/wrongExamsroom',['joinType'=>1,'paper_id'=>$vo['exams_paper_id'],'temp'=>$vo['exams_users_id']])}"
class=
'btn exams'
>
错题再练
</a>
</van-sticky>
<a
class=
'btn del deleteExeams'
data-temp_id=
"{$vo.exams_users_id}"
>
删除
</a>
<div
class=
"layout_v list_container"
>
</a>
<!-- 项目1 -->
</li>
<div
v-for=
"(idx, index) in [1,2,3,4,5,6,7,8,9,10]"
:key=
"idx"
class=
"class_item layout_h"
>
</volist>
<div
class=
"class_left layout_v weight_full"
>
</ul>
<div
class=
"layout_h"
>
<php>
}else{
</php>
<div
class=
"mark_green layout_center"
>
免费
</div>
<include
file=
"__THEME__/no_data_w3g"
/>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-left: 0.625rem;"
>
2020年国家公务员《行测》试卷(省级)-名师版
</span>
<php>
}
</php>
</div>
</case>
<div
class=
"layout_h"
style=
"margin-top: 1.25rem;"
>
<case
value=
"4"
>
<span
class=
"text_12_400 color_999999"
>
题数:45
</span>
<!--题目收藏-->
<span
class=
"class_attr text_12_400 color_999999"
>
推荐用时:45m
</span>
<php>
if($list['data']){
</php>
<span
class=
"class_attr text_12_400 color_999999"
>
45121已做
</span>
<ul
class=
"suren-content collection"
>
</div>
<volist
name=
"list.data"
id=
"vo"
>
</div>
<li>
<div
class=
"class_right layout_center"
>
<a
href=
"#"
>
<div
class=
"button_green layout_center"
>
开始做题
</div>
<span>
</div>
<php>
if($vo['question_info']['content']){
</php>
</div>
<h4>
{:t($vo['question_info']['content'])}
</h4>
<!-- 项目2 -->
<php>
}else{
</php>
<div
class=
"class_item layout_h"
>
<h4
style=
"color: #F00;"
>
该试题已被删除
</h4>
<div
class=
"class_left layout_v weight_full"
>
<php>
}
</php>
<div
class=
"layout_h"
>
<p>
{$vo['ctime']|friendlyDate}
</p>
<div
class=
"mark_orange layout_center"
>
付费
</div>
</span>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-left: 0.625rem;"
>
2020年国家公务员《行测》试卷(省级)-名师版
</span>
<php>
if($vo['question_info']['content']){
</php>
</div>
<a
href=
"{:U('exams/Index/showQuestioninfo',['question_id'=>$vo['source_id']])}"
class=
"btn exams"
>
查看题目
</a>
<div
class=
"layout_h"
style=
"margin-top: 1.25rem;"
>
<a
class=
'btn del deleteCollection'
data-question_id=
"{$vo.source_id}"
>
删除
</a>
<span
class=
"text_12_400 color_999999"
>
题数:45
</span>
<php>
}else{
</php>
<span
class=
"class_attr text_12_400 color_999999"
>
推荐用时:45m
</span>
<a
class=
'btn del deleteCollection'
style=
"right: -95px;"
data-question_id=
"{$vo.source_id}"
>
删除
</a>
<span
class=
"class_attr text_12_400 color_999999"
>
45121已做
</span>
<php>
}
</php>
</div>
</div>
</a>
<div
class=
"class_right layout_center"
>
</li>
<div
class=
"button_orange layout_center"
>
¥23
</div>
</volist>
</div>
</ul>
</div>
<php>
}else{
</php>
<!-- 项目3 -->
<include
file=
"__THEME__/no_data_w3g"
/>
<div
class=
"class_item layout_h"
>
<php>
}
</php>
<div
class=
"class_left layout_v weight_full"
>
</case>
<div
class=
"layout_h"
>
<case
value=
"5"
>
<div
class=
"mark_orange layout_center"
>
付费
</div>
<!--高频练习-->
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-left: 0.625rem;"
>
2020年国家公务员《行测》试卷(省级)-名师版
</span>
<php>
if($list['data']){
</php>
</div>
<ul
class=
"suren-content"
>
<div
class=
"layout_h"
style=
"margin-top: 1.25rem;"
>
<volist
name=
"list.data"
id=
"vo"
>
<span
class=
"text_12_400 color_999999"
>
题数:45
</span>
<li>
<span
class=
"class_attr text_12_400 color_999999"
>
推荐用时:45m
</span>
<a
href=
"#"
>
<span
class=
"class_attr text_12_400 color_999999"
>
45121已做
</span>
<span>
</div>
<h4>
{$vo.exams_paper_title}
</h4>
</div>
<p>
{$vo['update_time']|friendlyDate}
</p>
<div
class=
"class_right layout_center"
>
</span>
<div
class=
"button_green layout_center"
>
开始做题
</div>
<strong>
0分
</strong>
</div>
<a
href=
"{:U('exams/Index/wrongExamsroom',['joinType'=>1,'paper_id'=>$vo['exams_paper_id'],'temp'=>$vo['exams_users_id'],'is_highwrong'=>1])}"
class=
'btn exams'
>
开始练习
</a>
</div>
<!-- <a class='btn del deleteExeams' data-temp_id="{$vo.exams_users_id}">删除</a> -->
</div>
</a>
</van-tab>
</li>
</volist>
<van-tab>
</ul>
<span
slot=
"title"
v-bind:class=
"tab == 1 ? 'tab_text_selected' : 'tab_text_normal'"
>
<php>
}else{
</php>
真题下载
<include
file=
"__THEME__/no_data_w3g"
/>
</span>
<php>
}
</php>
<van-sticky
:offset-top=
"44"
>
</case>
<van-dropdown-menu
active-color=
"#333333"
>
<default
/>
<van-dropdown-item
title=
"筛选"
ref=
"item"
>
<!--练习记录 考试记录-->
<div
class=
"drop_down_grid"
>
<php>
if($list['data']){
</php>
<div
class=
"drop_down_option_selected"
>
全部
</div>
<ul
class=
"suren-content"
>
<div
class=
"drop_down_option"
>
事业单位
</div>
<volist
name=
"list.data"
id=
"vo"
>
<div
class=
"drop_down_option"
>
公考面试
</div>
<li>
<div
class=
"drop_down_option"
>
教师
</div>
<span>
<div
class=
"drop_down_option"
>
财会
</div>
<h4>
{$vo.paper_info.exams_paper_title}
<if
condition=
"$vo['course_title']"
><a
href=
"{:U('course/Video/view',array('id'=>$vo['vid']))}"
>
{$vo.course_title}
</a></if></h4>
<div
class=
"drop_down_option"
>
银行
</div>
<p>
{$vo['update_time']|friendlyDate}
</p>
<div
class=
"drop_down_option"
>
法考
</div>
</span>
<div
class=
"drop_down_option"
>
考研
</div>
<php>
if($vo['progress'] == 100){
</php>
</div>
<strong>
{$vo.score|default="0"}分
</strong>
</van-dropdown-item>
<a
href=
"{:U('exams/Index/examsresult',['joinType'=>$vo['exams_mode'],'paper_id'=>$vo['exams_paper_id'],'temp'=>$vo['exams_users_id']])}"
class=
'btn show'
>
查看结果
</a>
</van-dropdown-menu>
<a
class=
'btn del deleteExeams'
data-temp_id=
"{$vo.exams_users_id}"
>
删除
</a>
</van-sticky>
<php>
}else{
</php>
<div
class=
"layout_v list_container"
>
<i
class=
"icon icon-weiwancheng"
></i>
<!-- 项目1 -->
<a
href=
"{:U('exams/Index/examsroom',['joinType'=>$vo['exams_mode'],'paper_id'=>$vo['exams_paper_id'],'temp'=>$vo['exams_users_id']])}"
class=
'btn exams'
>
继续答题
</a>
<div
class=
"class_item layout_h"
>
<a
class=
'btn del deleteExeams'
data-temp_id=
"{$vo.exams_users_id}"
>
删除
</a>
<div
class=
"class_left layout_v weight_full"
>
<php>
}
</php>
<div
class=
"layout_h"
>
</li>
<div
class=
"mark_green layout_center"
>
免费
</div>
</volist>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-left: 0.625rem;"
>
2020年国家公务员《行测》试卷(省级)-名师版
</span>
</ul>
</div>
<php>
}else{
</php>
<div
class=
"layout_h"
style=
"margin-top: 1.25rem;"
>
<include
file=
"__THEME__/no_data_w3g"
/>
<span
class=
"text_12_400 color_999999"
>
题数:45
</span>
<php>
}
</php>
<span
class=
"class_attr text_12_400 color_999999"
>
推荐用时:45m
</span>
</switch>
<span
class=
"class_attr text_12_400 color_999999"
>
45121已做
</span>
</div>
</div>
</div>
</div>
</div>
<div
class=
"class_right layout_center"
>
<div
class=
"button_green layout_center"
>
下载试题
</div>
<include
file=
"__THEME__/public_footer_w3g"
/>
</div>
<script
src=
"{$Think.APPS_URL}/exams/_static/js/public_header_footer_media.js"
></script>
</div>
<script
src=
"{$Think.APPS_URL}/exams/_static/js/swipe.js"
charset=
"utf-8"
></script>
<!-- 项目2 -->
<script
type=
"text/javascript"
>
<div
class=
"class_item layout_h"
>
$
(
function
(){
<div
class=
"class_left layout_v weight_full"
>
$
(
'.suren-content li'
).
rhuiSwipe
(
'swipeLeft'
,
function
(
event
){
<div
class=
"layout_h"
>
var
left
=
0
;
<div
class=
"mark_orange layout_center"
>
付费
</div>
$
(
this
).
find
(
".btn"
).
each
(
function
(){
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-left: 0.625rem;"
>
2020年国家公务员《行测》试卷(省级)-名师版
</span>
left
+=
$
(
this
).
width
();
</div>
$
(
this
).
css
({
lineHeight
:
$
(
this
).
height
()
+
'px'
});
<div
class=
"layout_h"
style=
"margin-top: 1.25rem;"
>
});
<span
class=
"text_12_400 color_999999"
>
题数:45
</span>
$
(
this
).
animate
({
left
:
"-"
+
left
+
"px"
},
500
);
<span
class=
"class_attr text_12_400 color_999999"
>
推荐用时:45m
</span>
$
(
this
).
siblings
().
css
(
"left"
,
"0px"
);
<span
class=
"class_attr text_12_400 color_999999"
>
45121已做
</span>
},
{
</div>
// 可选参数
</div>
isStopPropagation
:
false
,
<div
class=
"class_right layout_center"
>
isPreventDefault
:
false
,
<div
class=
"button_green layout_center"
>
下载试题
</div>
triggerOnMove
:
true
</div>
});
</div>
$
(
'.suren-content li'
).
rhuiSwipe
(
'swipeRight'
,
function
(
event
){
</div>
$
(
this
).
animate
({
left
:
"0px"
},
500
);
</van-tab>
$
(
this
).
siblings
().
animate
({
left
:
0
},
500
);
},
{
<van-tab>
// 可选参数
<span
slot=
"title"
v-bind:class=
"tab == 2 ? 'tab_text_selected' : 'tab_text_normal'"
>
isStopPropagation
:
false
,
我的题库
isPreventDefault
:
false
,
</span>
triggerOnMove
:
true
<div
class=
"layout_v zhenti_my_collect_list_container"
>
});
<div
class=
"layout_h zhenti_tab"
>
<div
@
click=
"onMyTab(0)"
class=
"layout_center weight_full"
:class=
"myTab == 0 ? 'zhenti_tab_selected' : 'zhenti_tab_normal'"
>
已做
</div>
$
(
'.suren-content li'
).
click
(
function
(){
<div
@
click=
"onMyTab(1)"
class=
"layout_center weight_full"
:class=
"myTab == 1 ? 'zhenti_tab_selected' : 'zhenti_tab_normal'"
>
收藏
</div>
if
(
$
(
this
).
css
(
"left"
)
==
'0px'
){
</div>
var
left
=
0
;
<div
v-if=
"myTab == 1"
class=
"zhenti_my_collect_cell layout_v"
>
$
(
this
).
find
(
".btn"
).
each
(
function
(){
<div
class=
"text_16_600 color_333333"
>
某种糖果的进价为12元/千克,现购进这种糖果若干千克,每天销售10千克,且从第二天起每天都比前一天降价2元/千克。已知以6元/千克的价格销售的那天正好卖完最后10千克,且总销售额是总进货成本的2倍。问总共进了多少千克这种糖果?
</div>
left
+=
$
(
this
).
width
();
<div
class=
"text_12_400 color_999999 zhenti_my_collect_cell_time"
>
2020-04-04 03:12:56
</div>
$
(
this
).
css
({
lineHeight
:
$
(
this
).
height
()
+
'px'
});
</div>
});
<!-- 项目2 -->
$
(
this
).
animate
({
left
:
"-"
+
left
+
"px"
},
500
);
<div
v-if=
"myTab == 0"
class=
"class_item layout_h"
>
$
(
this
).
siblings
().
css
(
"left"
,
"0px"
);
<div
class=
"class_left layout_v weight_full"
>
}
else
{
<div
class=
"layout_h"
>
$
(
this
).
animate
({
left
:
"0px"
},
500
);
<div
class=
"mark_orange layout_center"
>
付费
</div>
$
(
this
).
siblings
().
animate
({
left
:
0
},
500
);
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-left: 0.625rem;"
>
2020年国家公务员《行测》试卷(省级)-名师版
</span>
}
</div>
<div
class=
"layout_h"
style=
"margin-top: 1.25rem;"
>
});
<span
class=
"text_12_400 color_primary"
>
得分:80
</span>
<span
class=
"class_attr text_12_400 color_999999"
>
2020-04-04 03:12:56
</span>
</div>
// 删除考试记录
</div>
$
(
".deleteExeams"
).
live
(
'click'
,
function
(){
<div
class=
"class_right layout_center"
>
var
temp_id
=
$
(
this
).
data
(
'temp_id'
);
<div
class=
"button_green layout_center"
>
查看详情
</div>
ui
.
confirm
(
'确认删除该记录吗?'
,
{
</div>
yes
:
function
()
{
</div>
$
.
post
(
'{:U("exams/Index/deleteExeams")}'
,{
temp_id
:
temp_id
},
function
(
res
){
</div>
if
(
typeof
(
res
)
!=
"object"
){
</van-tab>
try
{
var
res
=
JSON
.
parse
(
res
);
</van-tabs>
}
catch
(
e
){
</div>
ui
.
error
(
"请求出错,请稍后再试"
);
<van-tabbar
v-model=
"active"
@
change=
"onChange"
:fixed=
"true"
:route=
"false"
:safe-area-inset-bottom=
"true"
return
false
;
active-color=
"#65C000"
inactive-color=
"#363636"
>
}
<van-tabbar-item>
}
<span
class=
"text_10_400"
>
名师课堂
</span>
if
(
res
.
status
==
1
){
<template
#
icon=
"props"
>
ui
.
success
(
res
.
data
.
info
);
<a
href=
"{:U('classroom/Index/index')}"
>
window
.
location
.
reload
();
<img
:src=
"props.active ? '__THEME__/img/minshi.png' : '__THEME__/img/minshi_s.png'"
/>
}
else
{
</a>
ui
.
error
(
res
.
message
);
</template>
return
false
;
</van-tabbar-item>
}
<van-tabbar-item>
});
<span
class=
"text_10_400"
>
真题题库
</span>
}
<template
#
icon=
"props"
>
});
<a
href=
"{:U('home/Home/exams')}"
>
});
<img
:src=
"props.active ? '__THEME__/img/zhenti.png' : '__THEME__/img/zhenti_s.png'"
/>
// 取消收藏
</a>
$
(
".deleteCollection"
).
live
(
'click'
,
function
(){
</template>
var
question_id
=
$
(
this
).
data
(
'question_id'
);
</van-tabbar-item>
<van-tabbar-item>
ui
.
confirm
(
'确认删除该试题吗?'
,
{
<span
class=
"text_10_400"
>
考试咨询
</span>
yes
:
function
()
{
<template
#
icon=
"props"
>
// 后台
<a
href=
"{:U('classroom/Index/find')}"
>
$
.
post
(
U
(
'exams/Index/collect'
),{
action
:
0
,
source_id
:
question_id
},
function
(
res
){
<img
:src=
"props.active ? '__THEME__/img/zixun.png' : '__THEME__/img/zixun_s.png'"
/>
if
(
typeof
(
res
)
!=
'object'
){
</a>
try
{
</template>
var
res
=
JSON
.
parse
(
res
);
</van-tabbar-item>
}
catch
(
e
){
<van-tabbar-item>
ui
.
error
(
"处理异常,请重新尝试"
);
<span
class=
"text_10_400"
>
会员中心
</span>
return
false
;
<template
#
icon=
"props"
>
}
<if
condition=
"$_SESSION['mid']"
>
}
<a
href=
"{:U('home/User/index')}"
>
<else
/>
if
(
res
.
status
==
1
){
<a
href=
"{:U('basic/Passport/login')}"
>
ui
.
success
(
res
.
data
.
info
);
</if>
window
.
location
.
reload
();
<img
:src=
"props.active ? '__THEME__/img/huiyuan.png' : '__THEME__/img/huiyuan_s.png'"
/>
return
true
;
</a>
}
else
{
</template>
ui
.
error
(
res
.
message
);
</van-tabbar-item>
return
false
;
</van-tabbar>
}
</div>
});
}
<script
type=
"text/javascript"
>
});
new
Vue
({
});
el
:
'#app'
,
data
:
function
()
{
var
p
=
1
;
return
{
$
(
window
).
scroll
(
function
(){
active
:
1
,
var
scrollTop
=
$
(
this
).
scrollTop
();
tab
:
0
,
var
scrollHeight
=
$
(
document
).
height
();
myTab
:
0
var
windowHeight
=
$
(
this
).
height
();
}
if
(
scrollTop
+
windowHeight
==
scrollHeight
){
},
if
(
!
p
||
p
>=
parseInt
(
"{$list['totalPages']}"
)){
methods
:
{
return
false
;
onChange
:
function
(
tab
)
{
}
else
{
p
=
p
+
1
;
},
$
.
ajax
({
onTopTab
:
function
(
tab
)
{
type
:
"GET"
,
url
:
"{:U('home/Home/exams',['tab'=>$_GET['tab']])}"
,
},
data
:{
onMyTab
:
function
(
tab
)
{
tab
:
'{$Think.get.tab}'
,
this
.
myTab
=
tab
p
:
p
}
},
}
dataType
:
"json"
,
})
success
:
function
(
res
){
if
(
typeof
(
res
)
!=
'object'
){
try
{
var
res
=
JSON
.
parse
(
res
);
}
catch
(
e
){
ui
.
error
(
"处理异常,请重新尝试"
);
return
false
;
}
}
if
(
res
.
status
==
1
){
$
(
".asmarfr-pr ul"
).
append
(
res
.
data
.
html
);
return
true
;
}
}
});
}
}
});
});
</script>
</script>
apps/home/Tpl/default/User/index_w3g.html
View file @
2ece4a83
...
@@ -103,7 +103,9 @@
...
@@ -103,7 +103,9 @@
<van-tabbar-item>
<van-tabbar-item>
<span
class=
"text_10_400"
>
真题题库
</span>
<span
class=
"text_10_400"
>
真题题库
</span>
<template
#
icon=
"props"
>
<template
#
icon=
"props"
>
<img
:src=
"props.active ? '__THEME__/img/zhenti.png' : '__THEME__/img/zhenti_s.png'"
/>
<a
href=
"{:U('home/Home/exams')}"
>
<img
:src=
"props.active ? '__THEME__/img/zhenti.png' : '__THEME__/img/zhenti_s.png'"
/>
</a>
</template>
</template>
</van-tabbar-item>
</van-tabbar-item>
<van-tabbar-item>
<van-tabbar-item>
...
...
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