|
|
|
@ -1,18 +1,27 @@ |
|
|
|
<template> |
|
|
|
<view> |
|
|
|
<span class="title">重新挑战</span> |
|
|
|
<view class="wrap"> |
|
|
|
<view class="stabar"></view> |
|
|
|
<view class="mainwrap"> |
|
|
|
<view class="title">重新挑战</view> |
|
|
|
|
|
|
|
<view class="background-info"> |
|
|
|
您上次挑战的场景是“{{sceneName}}”,挑战角色是 “{{roleName}}”,共计{{total}}道题目。您可从第1题开始重新挑战,或者任意选择其中一道题重新挑战。 |
|
|
|
您上次挑战的场景是“<font style="color:#fd6d1f;">{{sceneName}}</font>”,挑战角色是 “<font style="color:#fd6d1f;">{{roleName}}</font>”,共计{{total}}道题目。您可从第1题开始重新挑战,或者任意选择其中一道题重新挑战。 |
|
|
|
</view> |
|
|
|
<view class="thumbtack"> |
|
|
|
<label class="left"><image src="/static/images/tack.png"></image></label> |
|
|
|
<label class="right"><image src="/static/images/tack.png"></image></label> |
|
|
|
</view> |
|
|
|
<scroll-view class="question-info" scroll-y> |
|
|
|
|
|
|
|
<view class="question-list"> |
|
|
|
<view class="question-item" v-for="(item, i) in questionList" :key="i" @click="itemClickHandler(item)"> |
|
|
|
<view class="question-num">{{i+1}}:{{item.ask}}</view> |
|
|
|
<view class="question-num"><view class="question-txt"><label class="imgbox"><image src="/static/images/bg_qnum.png"></image></label><label class="ordnum">{{i+1}}</label>{{item.ask}}</view></view> |
|
|
|
<image :src="backgroundImg"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
@ -59,27 +68,114 @@ |
|
|
|
</script> |
|
|
|
|
|
|
|
<style> |
|
|
|
@import url("@/static/base_css.css"); |
|
|
|
|
|
|
|
.mainwrap { |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
|
|
|
|
.title { |
|
|
|
margin-left: 40%; |
|
|
|
font-size: 20px; |
|
|
|
margin: 50rpx 0; |
|
|
|
color: #333; |
|
|
|
font-size: 40rpx; |
|
|
|
font-weight: bold; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
.background-info{ |
|
|
|
border: 1px solid lightgreen; |
|
|
|
width: 96%; |
|
|
|
margin-left: 2%; |
|
|
|
|
|
|
|
.background-info, .question-info { |
|
|
|
margin: 0 3%; |
|
|
|
padding: 2%; |
|
|
|
width: 90%; |
|
|
|
height: 200rpx; |
|
|
|
border-radius: 10px; |
|
|
|
background-color: #fff; |
|
|
|
border-radius: 20rpx; |
|
|
|
border: 1px solid rgba(151, 1, 188, .45); |
|
|
|
box-shadow: 0 0 10rpx rgba(151, 1, 188, .35); |
|
|
|
font-size: 32rpx; |
|
|
|
line-height: 1.5; |
|
|
|
} |
|
|
|
.question-info{ |
|
|
|
border: 1px solid lightgreen; |
|
|
|
width: 96%; |
|
|
|
margin-top: 5%; |
|
|
|
margin-left: 2%; |
|
|
|
height: 880rpx; |
|
|
|
border-radius: 10px; |
|
|
|
margin-top: 20rpx; |
|
|
|
padding-top: 50rpx; |
|
|
|
height: calc(100% - 520rpx); |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
|
|
|
|
.question-list { |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
|
|
|
|
.question-item { |
|
|
|
position: relative; |
|
|
|
margin: 2% 0 3%; |
|
|
|
width: 100%; |
|
|
|
height: 320rpx; |
|
|
|
border-radius: 20rpx; |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
|
|
|
|
.question-item image { |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
|
|
|
|
.question-num { |
|
|
|
position: absolute; |
|
|
|
z-index: 10; |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
background-color: rgba(0, 0, 0, .45); |
|
|
|
} |
|
|
|
|
|
|
|
.question-txt { |
|
|
|
position: absolute; |
|
|
|
z-index: 100; |
|
|
|
top: 3%; |
|
|
|
left: 2%; |
|
|
|
width: 96%; |
|
|
|
height: 60rpx; |
|
|
|
color:#fff; |
|
|
|
} |
|
|
|
|
|
|
|
.question-txt .imgbox { |
|
|
|
display: inline-block; |
|
|
|
position: relative; |
|
|
|
top: 20rpx; |
|
|
|
margin: 0 12rpx; |
|
|
|
width: 66rpx; |
|
|
|
height: 66rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.question-txt .ordnum { |
|
|
|
position: absolute; |
|
|
|
left: 48rpx; |
|
|
|
top: 22rpx; |
|
|
|
font-size: 38rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.thumbtack { |
|
|
|
position: relative; |
|
|
|
left: 5%; |
|
|
|
width: 90%; |
|
|
|
} |
|
|
|
|
|
|
|
.thumbtack .left, .thumbtack .right { |
|
|
|
display: inline-block; |
|
|
|
position: absolute; |
|
|
|
z-index: 100; |
|
|
|
bottom: -50rpx; |
|
|
|
left: 5%; |
|
|
|
width: 30rpx; |
|
|
|
height: 80rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.thumbtack .right { |
|
|
|
left: auto; |
|
|
|
right: 5%; |
|
|
|
} |
|
|
|
|
|
|
|
.thumbtack .left image, .thumbtack .right image, .question-txt image { |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|