Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
向伟
educationStu
Commits
dadbd96b
Commit
dadbd96b
authored
Jan 11, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
276e6eea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
25 deletions
+16
-25
index.vue
src/pages/index/index.vue
+0
-6
studyComplete.vue
src/pages/word/studyComplete.vue
+6
-6
word.vue
src/pages/word/word.vue
+10
-13
No files found.
src/pages/index/index.vue
View file @
dadbd96b
...
@@ -164,7 +164,6 @@
...
@@ -164,7 +164,6 @@
let
{
let
{
proxy
proxy
}
=
getCurrentInstance
();
}
=
getCurrentInstance
();
proxy
.
$isLogin
();
let
data
=
reactive
({
let
data
=
reactive
({
ActiveMsg
:
{
ActiveMsg
:
{
pageIndex
:
1
,
pageIndex
:
1
,
...
@@ -241,11 +240,6 @@
...
@@ -241,11 +240,6 @@
onShow
()
{
onShow
()
{
this
.
getActivityData
();
this
.
getActivityData
();
},
},
onLoad
()
{
uni
.
setNavigationBarTitle
({
title
:
"首页"
,
});
},
onShareAppMessage
()
{
onShareAppMessage
()
{
return
{
return
{
title
:
"甲小鹤"
,
title
:
"甲小鹤"
,
...
...
src/pages/word/studyComplete.vue
View file @
dadbd96b
...
@@ -189,13 +189,10 @@
...
@@ -189,13 +189,10 @@
provide
,
provide
,
}
from
"vue"
;
}
from
"vue"
;
export
default
{
export
default
{
components
:
{
},
onLoad
(
options
)
{
},
setup
(
props
)
{
setup
(
props
)
{
let
{
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
let
data
=
reactive
({
stars
:
2
stars
:
2
})
})
...
@@ -209,6 +206,9 @@
...
@@ -209,6 +206,9 @@
uni
.
switchTab
({
uni
.
switchTab
({
url
:
'/pages/index/index'
url
:
'/pages/index/index'
});
});
},
getTest
(){
}
}
}
}
onMounted
(()
=>
{
onMounted
(()
=>
{
...
...
src/pages/word/word.vue
View file @
dadbd96b
...
@@ -68,13 +68,12 @@
...
@@ -68,13 +68,12 @@
})
})
},
},
swiperChange
(
val
)
{
swiperChange
(
val
)
{
console
.
log
(
63
,
val
.
detail
.
current
,
'study'
,
data
.
StudyList
.
length
)
data
.
current
=
val
.
detail
.
current
if
(
data
.
current
<=
data
.
StudyList
.
length
)
{
if
(
data
.
current
<=
data
.
StudyList
.
length
)
{
methods
.
completeRead
(
val
.
detail
.
current
)
methods
.
completeRead
(
val
.
detail
.
current
)
}
else
if
(
data
.
current
>
data
.
StudyList
.
length
&&
data
.
current
<=
data
.
ReviewList
.
length
)
{
}
else
if
(
data
.
current
<=
(
data
.
ReviewList
.
length
+
data
.
StudyList
.
length
)
)
{
methods
.
completeReview
(
val
.
detail
.
current
)
methods
.
completeReview
(
val
.
detail
.
current
)
}
}
const
total
=
data
.
StudyList
.
length
+
data
.
ReviewList
.
length
+
1
const
total
=
data
.
StudyList
.
length
+
data
.
ReviewList
.
length
+
1
if
(
val
.
detail
.
current
+
1
==
total
&&
total
>
1
)
{
if
(
val
.
detail
.
current
+
1
==
total
&&
total
>
1
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
...
@@ -83,18 +82,16 @@
...
@@ -83,18 +82,16 @@
}
}
},
},
completeRead
(
n
)
{
completeRead
(
n
)
{
console
.
log
(
74
,
n
)
data
.
readMsg
.
StudyNum
=
n
// data.readMsg.StudyNum = n
proxy
.
$request
(
'/AppletWords/SetStuWordsPrep'
,
data
.
readMsg
).
then
(
res
=>
{
// proxy.$request('/AppletWords/SetStuWordsPrep', data.readMsg).then(res => {
console
.
log
(
74
,
res
)
// c
})
// })
},
},
completeReview
(
n
)
{
completeReview
(
n
)
{
console
.
log
(
75
,
n
-
data
.
StudyList
.
length
)
data
.
readMsg
.
ReviewNum
=
n
-
data
.
StudyList
.
length
// data.readMsg.ReviewNum = n
proxy
.
$request
(
'/AppletWords/SetStuWordsReview'
,
data
.
reviewMsg
).
then
(
res
=>
{
// proxy.$request('/AppletWords/SetStuWordsReview', data.reviewMsg).then(res => {
console
.
log
(
75
,
res
)
})
// })
}
}
}
}
...
...
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