Commit 27d03587 authored by linwenqing's avatar linwenqing

Merge branch 'dev-v1.0.0' of https://git.banshouhui.com/wuzhenzhe/study into dev-v1.0.0

parents d50014c0 293ceec6
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
"name": "learnScore", "name": "learnScore",
"style": { "style": {
"navigationBarTitleText": "考试成绩", "navigationBarTitleText": "考试成绩",
"navigationStyle": "custom", // "navigationStyle": "custom",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"disableScroll": true "disableScroll": true
} }
......
<template> <template>
<view class="score-view"> <view class="score-view">
<u-navbar <!-- <u-navbar
back-icon-color="#191C27" back-icon-color="#191C27"
background="transparent" background="transparent"
title="考试成绩" title="考试成绩"
...@@ -8,13 +8,20 @@ ...@@ -8,13 +8,20 @@
:border-bottom="false" :border-bottom="false"
title-bold title-bold
:custom-back="customBack" :custom-back="customBack"
></u-navbar> ></u-navbar> -->
<scroll-view
scroll-y="true"
class="scroll-view"
scroll-anchoring
enable-back-to-top
>
<view <view
class="top-view" class="top-view"
v-if="!isFull" v-if="!isFull"
@click="$u.throttle(handleClickRecord, 500)" @click="$u.throttle(handleClickRecord, 500)"
> >
考试错题已自动加入<text class="blue-text">"错题记录"</text> 方便练习</view 考试错题已自动加入<text class="blue-text">"错题记录"</text>
方便练习</view
> >
<view :class="['content', { 'is-full': isFull }]"> <view :class="['content', { 'is-full': isFull }]">
<view class="content-view"> <view class="content-view">
...@@ -32,7 +39,9 @@ ...@@ -32,7 +39,9 @@
<view class="progress-content"> <view class="progress-content">
<view class="progress-score">{{ info.score }}</view> <view class="progress-score">{{ info.score }}</view>
<view class="progress-info">{{ resultText }}</view> <view class="progress-info">{{ resultText }}</view>
<view class="percent-text">超越了{{ falsePercent }}%的学员</view> <view class="percent-text"
>超越了{{ falsePercent }}%的学员</view
>
</view> </view>
</CircleProgress> </CircleProgress>
</view> </view>
...@@ -65,6 +74,7 @@ ...@@ -65,6 +74,7 @@
</u-button> </u-button>
</view> </view>
</view> </view>
</scroll-view>
<u-mask :show="show" @click="show = false"> <u-mask :show="show" @click="show = false">
<view class="tip-view"> <view class="tip-view">
<image class="tip-image" :src="jiantouImage"></image> <image class="tip-image" :src="jiantouImage"></image>
...@@ -199,7 +209,7 @@ export default { ...@@ -199,7 +209,7 @@ export default {
url: 'pages/learn/answer', url: 'pages/learn/answer',
params: { params: {
source: 5, source: 5,
} },
}) })
}, },
handleClick() { handleClick() {
...@@ -211,26 +221,28 @@ export default { ...@@ -211,26 +221,28 @@ export default {
customBack() { customBack() {
this.$u.route({ this.$u.route({
type: 'tab', type: 'tab',
url: 'pages/index/index' url: 'pages/index/index',
}) })
} },
}, },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
display: none;
}
.score-view { .score-view {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100vh; height: 100vh;
background-color: #f7f9fc; background-color: #f7f9fc;
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
display: none;
}
.scroll-view {
height: 100vh;
}
.top-view { .top-view {
background-color: rgba(250, 90, 73, 0.1); background-color: rgba(250, 90, 73, 0.1);
color: #5a6073; color: #5a6073;
...@@ -243,8 +255,6 @@ export default { ...@@ -243,8 +255,6 @@ export default {
} }
} }
.content { .content {
height: 100%;
overflow: auto;
padding: 64rpx 48rpx 44rpx 48rpx; padding: 64rpx 48rpx 44rpx 48rpx;
&.is-full { &.is-full {
padding-top: 0rpx; padding-top: 0rpx;
......
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