Commit ba416460 authored by Facius's avatar Facius

feat: 扫码结果页面

parent 72944f58
...@@ -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
}
} }
] ]
}, },
......
...@@ -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,
}, },
}) })
} }
......
...@@ -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() {},
}, },
......
<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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment