Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
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
Damon
study
Commits
a6b63d4b
Commit
a6b63d4b
authored
Jul 15, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 答题页面左右滑动提示遮罩
parent
fc58922f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
107 additions
and
2 deletions
+107
-2
operationTips.vue
src/components/learn/operationTips.vue
+106
-0
index.vue
src/components/pop-view/index.vue
+0
-1
index.vue
src/components/subject-statistics/index.vue
+1
-1
No files found.
src/components/learn/operationTips.vue
0 → 100644
View file @
a6b63d4b
<
template
>
<u-mask
:show=
"show"
:mask-close-able=
"false"
:customStyle=
"customStyle"
>
<view
class=
"tip-view"
>
<view
class=
"tip-content"
>
<image
class=
"tip-image"
:src=
"imageUrl"
></image>
<view
class=
"tip-message"
>
<text>
{{
message
}}
</text>
</view>
<view
class=
"tip-btn-view"
>
<u-button
:custom-style=
"buttonStyle"
shape=
"circle"
type=
"primary"
@
click=
"handleClick"
>
{{
buttonText
}}
</u-button>
</view>
</view>
</view>
</u-mask>
</
template
>
<
script
>
/**
* @description 创建一个遮罩层,提示文字和图片
* @property {Boolean} visible 是否显示遮罩(默认false)
* @property {Object} custom-style 自定义样式对象,见上方说明
* @example <OperationTips :visible.sync="visible"></OperationTips>
*/
export
default
{
props
:
{
show
:
{
type
:
Boolean
,
default
:
false
,
},
message
:
{
type
:
String
,
default
:
'左右滑动可切换上下题'
,
},
buttonText
:
{
type
:
String
,
default
:
'我知道了'
,
},
customStyle
:
{
type
:
Object
,
default
()
{
return
{}
},
},
},
data
()
{
return
{}
},
computed
:
{
imageUrl
()
{
return
'/static/logo.png'
},
buttonStyle
()
{
return
{
backgroundColor
:
'#FFFFFF'
,
width
:
'304rpx'
,
height
:
'104rpx'
,
color
:
'#2953FF'
,
fontWeight
:
'bold'
,
fontSize
:
'32rpx'
,
}
},
},
methods
:
{
handleClick
()
{
this
.
$emit
(
'update:show'
,
false
)
this
.
$emit
(
'click'
)
},
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.tip-view
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
height
:
100%
;
.tip-content
{
margin-top
:
200rpx
;
text-align
:
center
;
.tip-image
{
width
:
670rpx
;
height
:
136rpx
;
margin-bottom
:
60rpx
;
}
.tip-message
{
font-size
:
44rpx
;
text-align
:
center
;
color
:
#ffffff
;
font-weight
:
bold
;
}
.tip-btn-view
{
padding-top
:
288rpx
;
}
}
}
</
style
>
src/components/pop-view/index.vue
View file @
a6b63d4b
...
@@ -107,7 +107,6 @@ export default {
...
@@ -107,7 +107,6 @@ export default {
font-size
:
28rpx
;
font-size
:
28rpx
;
text-align
:
center
;
text-align
:
center
;
color
:
#5a6073
;
color
:
#5a6073
;
text-align
:
center
;
}
}
.pop-content
{
.pop-content
{
...
...
src/components/subject-statistics/index.vue
View file @
a6b63d4b
...
@@ -132,6 +132,7 @@ export default {
...
@@ -132,6 +132,7 @@ export default {
border-radius
:
24rpx
;
border-radius
:
24rpx
;
.top
{
.top
{
width
:
100%
;
width
:
100%
;
margin-left
:
6rpx
;
.avatar
{
.avatar
{
padding-right
:
16rpx
;
padding-right
:
16rpx
;
.avatar-list
{
.avatar-list
{
...
@@ -174,7 +175,6 @@ export default {
...
@@ -174,7 +175,6 @@ export default {
.topics
{
.topics
{
flex-flow
:
column
;
flex-flow
:
column
;
flex
:
1
;
flex
:
1
;
padding-left
:
40rpx
;
border-right
:
2rpx
solid
#e8ebf3
;
border-right
:
2rpx
solid
#e8ebf3
;
.topics-lists
{
.topics-lists
{
width
:
100%
;
width
:
100%
;
...
...
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