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
d55f4bf6
Commit
d55f4bf6
authored
Jan 14, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
56cc89a1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
37 deletions
+36
-37
indexassembly.vue
src/pages/index/components/indexassembly.vue
+10
-9
index.vue
src/pages/index/index.vue
+8
-8
person.vue
src/pages/person/person.vue
+8
-8
index.vue
src/pages/study/index.vue
+9
-11
request.js
src/utils/request.js
+1
-1
No files found.
src/pages/index/components/indexassembly.vue
View file @
d55f4bf6
...
@@ -170,7 +170,6 @@
...
@@ -170,7 +170,6 @@
unionid
:
data
.
obj
.
unionid
,
unionid
:
data
.
obj
.
unionid
,
})
})
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
uni
.
hideLoading
();
uni
.
hideLoading
();
data
.
showLogin
=
true
;
//防止多次点击登录
data
.
showLogin
=
true
;
//防止多次点击登录
res
.
Data
.
Account
=
data
.
obj
.
phoneNum
;
res
.
Data
.
Account
=
data
.
obj
.
phoneNum
;
...
@@ -181,16 +180,18 @@
...
@@ -181,16 +180,18 @@
uni
.
showTabBar
()
uni
.
showTabBar
()
}
else
{
}
else
{
data
.
showLogin
=
true
;
//防止多次点击登录
data
.
showLogin
=
true
;
//防止多次点击登录
data
.
showPhone
=
false
data
.
showPhone
=
false
uni
.
showTabBar
()
if
(
currentRoute
==
"pages/index/index"
){
uni
.
showTabBar
()
//手机授权弹窗出现 隐藏tabbar
}
uni
.
hideLoading
();
uni
.
hideLoading
();
if
(
res
.
Data
.
Error
==-
1
){
//如果没找到电话号码 就跳入登录
if
(
res
.
Data
.
Error
==-
1
){
//如果没找到电话号码 就跳入登录
setTimeout
(()
=>
{
//
setTimeout(() => {
uni
.
reLaunch
({
//
uni.reLaunch({
url
:
'/pages/login/login'
//
url: '/pages/login/login'
});
//
});
},
1000
);
//
}, 1000);
}
}
...
...
src/pages/index/index.vue
View file @
d55f4bf6
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
<view
class=
"wordDuration"
style=
"visibility: hidden;"
>
<view
class=
"wordDuration"
style=
"visibility: hidden;"
>
预计用时10分钟
预计用时10分钟
</view>
</view>
<view
class=
"wordBtn
"
v-if=
"(pageData.Words.NextWord==0||!pageData.Words.NextWord)&&(pageData.Words.ReviewWord==0||!pageData.Words.ReviewWord)"
>
暂无新词
</view>
<view
style=
"text-align: center;font-size: 22rpx;color: #4C50E7;
"
v-if=
"(pageData.Words.NextWord==0||!pageData.Words.NextWord)&&(pageData.Words.ReviewWord==0||!pageData.Words.ReviewWord)"
>
暂无新词
</view>
<view
class=
"wordBtn"
v-else
<view
class=
"wordBtn"
v-else
@
click=
"jumpPage(`/pages/word/word?CourseId=$
{pageData.Words.CourseId||0}
&&
ChapterId=${pageData.Words.NextCourseNo||0}
&&
ReviewChapterId=${pageData.Words.ReviewCourseNo||0}
&&
ClassId=${pageData.Words.ClassId||0}`)">
@
click=
"jumpPage(`/pages/word/word?CourseId=$
{pageData.Words.CourseId||0}
&&
ChapterId=${pageData.Words.NextCourseNo||0}
&&
ReviewChapterId=${pageData.Words.ReviewCourseNo||0}
&&
ClassId=${pageData.Words.ClassId||0}`)">
开始学习
开始学习
...
@@ -367,7 +367,7 @@
...
@@ -367,7 +367,7 @@
width
:
100%
;
width
:
100%
;
height
:
300
rpx
;
height
:
300
rpx
;
border-radius
:
20
rpx
;
border-radius
:
20
rpx
;
margin
-bottom
:
50
rpx
;
margin
:
40
rpx
0
60
rpx
0
;
overflow
:
hidden
;
overflow
:
hidden
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
0
30
rpx
;
padding
:
0
30
rpx
;
...
@@ -417,8 +417,8 @@
...
@@ -417,8 +417,8 @@
box-sizing
:
border-box
;
box-sizing
:
border-box
;
/* height: 390rpx; */
/* height: 390rpx; */
background-color
:
#EBEBEB
;
background-color
:
#EBEBEB
;
padding
:
30
rpx
;
padding
:
60
rpx
30
rpx
;
margin-bottom
:
5
0
rpx
;
margin-bottom
:
8
0
rpx
;
}
}
.wordTitle
{
.wordTitle
{
...
@@ -492,7 +492,7 @@
...
@@ -492,7 +492,7 @@
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
10
rpx
;
padding
:
10
rpx
;
position
:
relative
;
position
:
relative
;
margin-bottom
:
5
0
rpx
;
margin-bottom
:
8
0
rpx
;
}
}
.courseInnerBox
{
.courseInnerBox
{
...
@@ -574,14 +574,14 @@
...
@@ -574,14 +574,14 @@
font-size
:
28
rpx
;
font-size
:
28
rpx
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#666666
;
color
:
#666666
;
margin-bottom
:
15
rpx
;
margin-bottom
:
30
rpx
;
}
}
.learningGardenTitle
{
.learningGardenTitle
{
font-size
:
46
rpx
;
font-size
:
46
rpx
;
font-weight
:
800
;
font-weight
:
800
;
color
:
#111111
;
color
:
#111111
;
margin-bottom
:
35
rpx
;
margin-bottom
:
50
rpx
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
...
@@ -591,7 +591,7 @@
...
@@ -591,7 +591,7 @@
width
:
680
rpx
;
width
:
680
rpx
;
height
:
455
rpx
;
height
:
455
rpx
;
border-radius
:
24
rpx
;
border-radius
:
24
rpx
;
margin-bottom
:
3
0
rpx
;
margin-bottom
:
6
0
rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
position
:
relative
;
position
:
relative
;
}
}
...
...
src/pages/person/person.vue
View file @
d55f4bf6
...
@@ -209,7 +209,7 @@
...
@@ -209,7 +209,7 @@
.person
.info
{
.person
.info
{
height
:
160
rpx
;
height
:
160
rpx
;
padding
:
0
35
rpx
;
padding
:
10
rpx
35
rpx
;
}
}
.person
.info
.left
{
.person
.info
.left
{
...
@@ -240,8 +240,8 @@
...
@@ -240,8 +240,8 @@
.person
.orderInfo
{
.person
.orderInfo
{
height
:
195
rpx
;
height
:
195
rpx
;
padding
:
0
35
rpx
;
padding
:
10
rpx
35
rpx
;
margin-bottom
:
5
0
rpx
;
margin-bottom
:
7
0
rpx
;
}
}
.person
.orderItem
{
.person
.orderItem
{
...
@@ -280,20 +280,20 @@
...
@@ -280,20 +280,20 @@
/* height: 535rpx; */
/* height: 535rpx; */
background-color
:
#ebebeb
;
background-color
:
#ebebeb
;
padding
:
35
rpx
;
padding
:
35
rpx
;
margin-bottom
:
5
0
rpx
;
margin-bottom
:
7
0
rpx
;
}
}
.courseInfo
.title
{
.courseInfo
.title
{
font-size
:
28
rpx
;
font-size
:
28
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#111111
;
color
:
#111111
;
margin-bottom
:
3
0
rpx
;
margin-bottom
:
4
0
rpx
;
}
}
.statistic
{
.statistic
{
/* height: 70rpx; */
/* height: 70rpx; */
display
:
flex
;
display
:
flex
;
margin-bottom
:
5
0
rpx
;
margin-bottom
:
7
0
rpx
;
}
}
.statisticItem
{
.statisticItem
{
...
@@ -390,7 +390,7 @@
...
@@ -390,7 +390,7 @@
font-size
:
28
rpx
;
font-size
:
28
rpx
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#666666
;
color
:
#666666
;
margin-bottom
:
2
0
rpx
;
margin-bottom
:
3
0
rpx
;
}
}
.serviceItem
{
.serviceItem
{
...
@@ -399,7 +399,7 @@
...
@@ -399,7 +399,7 @@
height
:
185
rpx
;
height
:
185
rpx
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
border-radius
:
24
rpx
;
border-radius
:
24
rpx
;
margin-top
:
3
0
rpx
;
margin-top
:
4
0
rpx
;
display
:
flex
;
display
:
flex
;
/* justify-content: space-between; */
/* justify-content: space-between; */
align-items
:
center
;
align-items
:
center
;
...
...
src/pages/study/index.vue
View file @
d55f4bf6
...
@@ -36,14 +36,14 @@
...
@@ -36,14 +36,14 @@
}
}
.box_t
{
.box_t
{
padding
:
18
px
;
padding
:
40
rpx
36
r
px
;
}
}
.box_tb
{
.box_tb
{
height
:
388
rpx
;
height
:
388
rpx
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
border-radius
:
12
px
;
border-radius
:
24
r
px
;
padding
:
15
px
;
padding
:
30
r
px
;
}
}
.box_tb_c
{
.box_tb_c
{
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
margin-top
:
5
px
;
margin-top
:
10
r
px
;
}
}
.box_tb_b
.btn
{
.box_tb_b
.btn
{
...
@@ -150,14 +150,12 @@
...
@@ -150,14 +150,12 @@
}
}
.examination
{
.examination
{
margin-top
:
25px
;
margin-top
:
60
rpx
;
}
}
.examination-box
{
.examination-box
{
background
:
#FFF
;
background
:
#FFF
;
margin
:
40
rpx
0
;
margin
:
10px
0
;
}
}
.examination-box-c
{
.examination-box-c
{
...
@@ -172,7 +170,7 @@
...
@@ -172,7 +170,7 @@
width
:
200
rpx
;
width
:
200
rpx
;
/* height: 100%; */
/* height: 100%; */
display
:
inline-block
;
display
:
inline-block
;
padding
:
10
px
0
;
padding
:
40
r
px
0
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
/* border-right: 1px solid #E2E2E2; */
/* border-right: 1px solid #E2E2E2; */
}
}
...
@@ -308,7 +306,7 @@
...
@@ -308,7 +306,7 @@
</view>
</view>
<view
class=
"box_tb_b"
>
<view
class=
"box_tb_b"
>
<view
style=
"font-size: 22rpx;color: #999999;visibility: hidden;"
>
预计用时10分钟
</view>
<view
style=
"font-size: 22rpx;color: #999999;visibility: hidden;"
>
预计用时10分钟
</view>
<view
class=
"btn
"
<view
style=
"text-align: center;font-size: 22rpx;color: #4C50E7;
"
v-if=
"(InfoData.Words.NextWord==0||!InfoData.Words.NextWord)&&(InfoData.Words.ReviewWord==0||!InfoData.Words.ReviewWord)"
>
v-if=
"(InfoData.Words.NextWord==0||!InfoData.Words.NextWord)&&(InfoData.Words.ReviewWord==0||!InfoData.Words.ReviewWord)"
>
暂无新词
</view>
暂无新词
</view>
<view
class=
"btn"
@
click=
"jumpStudyPage()"
v-else
>
立即学习
</view>
<view
class=
"btn"
@
click=
"jumpStudyPage()"
v-else
>
立即学习
</view>
...
@@ -388,7 +386,7 @@
...
@@ -388,7 +386,7 @@
<view
v-if=
"InfoData.ExamList.length>0"
>
<view
v-if=
"InfoData.ExamList.length>0"
>
<view
v-for=
"(x,y) in InfoData.ExamList"
:key=
'y'
>
<view
v-for=
"(x,y) in InfoData.ExamList"
:key=
'y'
>
<view
class=
"examination-box"
>
<view
class=
"examination-box"
>
<view
style=
"padding:
20
px;"
>
<view
style=
"padding:
60rpx 40r
px;"
>
<view
style=
"font-size: 36rpx;font-weight: bold;color: #111111;"
>
{{x.PaperName}}
<view
style=
"font-size: 36rpx;font-weight: bold;color: #111111;"
>
{{x.PaperName}}
</view>
</view>
<!-- <view style="font-size: 24rpx;font-weight: 500;color: #999999;margin-top: 9px;">
<!-- <view style="font-size: 24rpx;font-weight: 500;color: #999999;margin-top: 9px;">
...
...
src/utils/request.js
View file @
d55f4bf6
...
@@ -41,7 +41,7 @@ let request = (param) => {
...
@@ -41,7 +41,7 @@ let request = (param) => {
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
data
.
Message
,
title
:
res
.
data
.
Message
,
duration
:
2000
,
duration
:
2000
,
icon
:
"
error
"
,
icon
:
"
none
"
,
success
()
{
success
()
{
if
(
res
.
data
.
Code
===
0
&&
res
.
data
.
Data
.
Error
==-
1
){
//如果电话号码没有
if
(
res
.
data
.
Code
===
0
&&
res
.
data
.
Data
.
Error
==-
1
){
//如果电话号码没有
resolve
(
res
.
data
)
resolve
(
res
.
data
)
...
...
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