Commit 293ceec6 authored by Facius's avatar Facius

fix: 【ID1001361】 【小程序-首页-考试成绩页面】:上下滑动时,考试进度条未固定。

parent 4c48c94c
...@@ -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,63 +8,73 @@ ...@@ -8,63 +8,73 @@
:border-bottom="false" :border-bottom="false"
title-bold title-bold
:custom-back="customBack" :custom-back="customBack"
></u-navbar> ></u-navbar> -->
<view <scroll-view
class="top-view" scroll-y="true"
v-if="!isFull" class="scroll-view"
@click="$u.throttle(handleClickRecord, 500)" scroll-anchoring
enable-back-to-top
> >
考试错题已自动加入<text class="blue-text">"错题记录"</text> 方便练习</view <view
> class="top-view"
<view :class="['content', { 'is-full': isFull }]"> v-if="!isFull"
<view class="content-view"> @click="$u.throttle(handleClickRecord, 500)"
<image mode="widthFix" class="back-image" :src="backImage"></image> >
<view class="chart-view"> 考试错题已自动加入<text class="blue-text">"错题记录"</text>
<CircleProgress 方便练习</view
class="progress-view" >
active-color="#FFFFFF" <view :class="['content', { 'is-full': isFull }]">
:percent="info.score" <view class="content-view">
inactive-color="rgba(255, 255, 255, 0.3)" <image mode="widthFix" class="back-image" :src="backImage"></image>
width="240" <view class="chart-view">
border-width="8" <CircleProgress
bg-color="transparent" class="progress-view"
> active-color="#FFFFFF"
<view class="progress-content"> :percent="info.score"
<view class="progress-score">{{ info.score }}</view> inactive-color="rgba(255, 255, 255, 0.3)"
<view class="progress-info">{{ resultText }}</view> width="240"
<view class="percent-text">超越了{{ falsePercent }}%的学员</view> border-width="8"
</view> bg-color="transparent"
</CircleProgress> >
<view class="progress-content">
<view class="progress-score">{{ info.score }}</view>
<view class="progress-info">{{ resultText }}</view>
<view class="percent-text"
>超越了{{ falsePercent }}%的学员</view
>
</view>
</CircleProgress>
</view>
<view class="head-view">
<view class="image-view">
<image class="image" :src="info.image || defaultImage"> </image
></view>
<view>{{ info.name }}</view>
<view class="time-view">{{ info.time }}</view>
</view>
<view class="detail-view">
<view class="name-view">{{ info.category }}</view>
<view class="type-view">{{ info.type }}</view>
<image class="qrcode-image" :src="info.institutionLogo"></image>
</view>
</view> </view>
<view class="head-view"> <view class="bottom-view">
<view class="image-view"> <u-button
<image class="image" :src="info.image || defaultImage"> </image :customStyle="buttonStyle"
></view> @click="handleClick"
<view>{{ info.name }}</view> type="primary"
<view class="time-view">{{ info.time }}</view> hover-class="hover-class"
</view> >
<view class="detail-view"> <image :src="pengyunquanImage" class="share-image"></image>
<view class="name-view">{{ info.category }}</view> 分享朋友圈
<view class="type-view">{{ info.type }}</view> </u-button>
<image class="qrcode-image" :src="info.institutionLogo"></image> <u-button :customStyle="buttonStyle" open-type="share" type="primary">
<image :src="weixinImage" class="share-image"></image>
分享给好友
</u-button>
</view> </view>
</view> </view>
<view class="bottom-view"> </scroll-view>
<u-button
:customStyle="buttonStyle"
@click="handleClick"
type="primary"
hover-class="hover-class"
>
<image :src="pengyunquanImage" class="share-image"></image>
分享朋友圈
</u-button>
<u-button :customStyle="buttonStyle" open-type="share" type="primary">
<image :src="weixinImage" class="share-image"></image>
分享给好友
</u-button>
</view>
</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