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
ba416460
Commit
ba416460
authored
Jul 20, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 扫码结果页面
parent
72944f58
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
136 additions
and
16 deletions
+136
-16
pages.json
src/pages.json
+10
-0
boundQuestions.vue
src/pages/learn/boundQuestions.vue
+1
-2
manualBinding.vue
src/pages/learn/manualBinding.vue
+2
-14
sweepResults.vue
src/pages/learn/sweepResults.vue
+123
-0
No files found.
src/pages.json
View file @
ba416460
...
@@ -157,6 +157,16 @@
...
@@ -157,6 +157,16 @@
"enablePullDownRefresh"
:
false
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
"disableScroll"
:
true
}
}
},
{
"path"
:
"sweepResults"
,
"name"
:
"learnSweepResults"
,
"style"
:
{
"navigationBarTitleText"
:
"绑定试题"
,
//
扫码结果
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
}
}
}
]
]
},
},
...
...
src/pages/learn/boundQuestions.vue
View file @
ba416460
...
@@ -85,8 +85,7 @@ export default {
...
@@ -85,8 +85,7 @@ export default {
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/learn/manualBinding'
,
url
:
'pages/learn/manualBinding'
,
params
:
{
params
:
{
code
:
res
.
result
.
code
,
code
:
res
.
result
,
password
:
res
.
result
.
password
,
},
},
})
})
}
}
...
...
src/pages/learn/manualBinding.vue
View file @
ba416460
...
@@ -65,9 +65,7 @@ export default {
...
@@ -65,9 +65,7 @@ export default {
return
{
return
{
code
:
''
,
code
:
''
,
password
:
''
,
password
:
''
,
focus
:
false
,
focus
:
true
,
cursorSpacingCode
:
0
,
cursorSpacingPassword
:
0
,
}
}
},
},
...
@@ -95,17 +93,7 @@ export default {
...
@@ -95,17 +93,7 @@ export default {
return
'color:#9EA5BB;font-size:28rpx'
return
'color:#9EA5BB;font-size:28rpx'
},
},
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{},
if
(
e
&&
e
.
code
)
{
this
.
code
=
e
.
code
}
if
(
e
&&
e
.
password
)
{
this
.
password
=
e
.
password
}
if
(
!
this
.
code
)
{
this
.
focus
=
true
}
},
methods
:
{
methods
:
{
handleClick
()
{},
handleClick
()
{},
},
},
...
...
src/pages/learn/sweepResults.vue
0 → 100644
View file @
ba416460
<
template
>
<view
class=
"bound-test"
>
<u-navbar
back-icon-color=
"#191C27"
background=
"transparent"
title=
"绑定试题"
titleColor=
"#191C27"
:border-bottom=
"false"
title-bold
></u-navbar>
<view
class=
"body-view"
>
<view
class=
"title-view"
>
学习卡号为
</view>
<view
class=
"content-view"
>
{{
code
}}
</view>
<view
class=
"tip-view"
>
是否绑定该学习卡
</view>
<view
class=
"message-view"
>
学习卡完成绑定后,不支持解绑操作
</view>
<view
class=
"bottom-view"
>
<u-button
:customStyle=
"buttonStyle"
@
click=
"handleClick"
type=
"primary"
shape=
"circle"
>
绑定
</u-button>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
code
:
'01458965'
,
}
},
computed
:
{
labels
()
{
return
{
kemu
:
'考试科目'
,
tishu
:
'考试题数'
,
biaozhun
:
'合格标准'
,
guize
:
'出题规则'
,
}
},
successImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'shenqingtijiaochenggong.png'
},
buttonStyle
()
{
return
{
height
:
'104rpx'
,
width
:
'400rpx'
,
backgroundColor
:
'#2953FF'
,
color
:
'#FFFFFF'
,
fontSize
:
'32rpx'
,
fontWeight
:
'bold'
,
}
},
},
onLoad
(
e
)
{
if
(
e
&
e
.
result
)
{
this
.
computed
=
e
.
result
}
},
methods
:
{
handleClick
()
{
uni
.
switchTab
({
url
:
'/pages/index/index'
,
})
},
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
::-webkit-scrollbar
{
width
:
0
;
height
:
0
;
color
:
transparent
;
display
:
none
;
}
.bound-test
{
display
:
flex
;
flex-direction
:
column
;
background-image
:
linear-gradient
(
to
top
,
#f7f9fc
0%
,
#e9f3ff
50%
);
background-color
:
#f7f9fc
;
background-size
:
100%
520rpx
;
background-repeat
:
no-repeat
;
height
:
100vh
;
.body-view
{
height
:
100%
;
overflow
:
auto
;
padding-top
:
40rpx
;
text-align
:
center
;
.title-view
{
color
:
#5a6073
;
font-size
:
32rpx
;
}
.content-view
{
color
:
#2953ff
;
font-size
:
72rpx
;
font-weight
:
bold
;
margin-top
:
50rpx
;
margin-bottom
:
120rpx
;
letter-spacing
:
20rpx
;
}
.tip-view
{
color
:
#2953ff
;
font-size
:
40rpx
;
font-weight
:
bold
;
}
.message-view
{
color
:
#9ea5bb
;
font-size
:
26rpx
;
margin-top
:
20rpx
;
}
.bottom-view
{
margin-top
:
180rpx
;
}
}
}
</
style
>
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