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
ae0daad4
Commit
ae0daad4
authored
May 19, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A
parent
b53d1d8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
apps/classroom/Tpl/default/Index/search_w3g.html
+8
-0
apps/classroom/Tpl/default/Index/theme_x7_w3g.html
+38
-0
No files found.
apps/classroom/Tpl/default/Index/search_w3g.html
View file @
ae0daad4
...
@@ -315,6 +315,14 @@
...
@@ -315,6 +315,14 @@
},
},
//点击真题
//点击真题
onTapQuestion
:
function
(
item
)
{
onTapQuestion
:
function
(
item
)
{
if
(
MID
<=
0
)
{
ui
.
confirm
(
'请先登录'
,
{
yes
:
function
()
{
window
.
location
.
href
=
"{:U('basic/Passport/login')}"
;
}
})
return
}
if
(
item
.
price
==
0
)
{
if
(
item
.
price
==
0
)
{
let
url
=
"{:U('exams/index/examsroom')}"
+
"&paper_id="
+
item
.
id
+
"&joinType=1"
let
url
=
"{:U('exams/index/examsroom')}"
+
"&paper_id="
+
item
.
id
+
"&joinType=1"
window
.
location
.
href
=
url
window
.
location
.
href
=
url
...
...
apps/classroom/Tpl/default/Index/theme_x7_w3g.html
View file @
ae0daad4
...
@@ -174,6 +174,44 @@
...
@@ -174,6 +174,44 @@
methods
:
{
methods
:
{
onChange
:
function
(
tab
)
{
onChange
:
function
(
tab
)
{
},
onPay
:
function
(
id
)
{
if
(
MID
<=
0
)
{
ui
.
confirm
(
'请先登录'
,
{
yes
:
function
()
{
window
.
location
.
href
=
"{:U('basic/Passport/login')}"
;
}
})
return
}
$
.
ajax
({
type
:
"POST"
,
url
:
"{:U('exams/index/getPayUrl')}"
,
data
:{
paper_id
:
id
,
},
dataType
:
"json"
,
success
:
function
(
res
){
var
res
=
getResponseData
(
res
)
if
(
res
.
status
==
1
){
window
.
location
.
href
=
res
.
data
}
else
{
ui
.
error
(
res
.
message
)
}
}
})
},
onStart
:
function
(
id
)
{
if
(
MID
<=
0
)
{
ui
.
confirm
(
'请先登录'
,
{
yes
:
function
()
{
window
.
location
.
href
=
"{:U('basic/Passport/login')}"
;
}
})
return
}
let
url
=
"{:U('exams/index/examsroom')}"
+
"&paper_id="
+
id
+
"&joinType=1"
window
.
location
.
href
=
url
}
}
}
}
})
})
...
...
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