<template>
|
|
<view class="page">
|
|
|
|
<image :src="configList.img_13"
|
|
class="page-bg"
|
|
mode="aspectFill"></image>
|
|
|
|
<image :src="configList.img_7"
|
|
class="logo"
|
|
mode="widthFix"></image>
|
|
|
|
<!-- next1 -->
|
|
<view class="content">
|
|
|
|
<image :src="configList.img_11"
|
|
class="content-bg"
|
|
mode="aspectFill"></image>
|
|
|
|
<view class="article">
|
|
<uv-parse :content="articleList[index].details"></uv-parse>
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="an">
|
|
|
|
<view style="display: flex;gap: 30rpx;"
|
|
>
|
|
<!-- <view class="next-btn-2"
|
|
v-if="index > 0"
|
|
@click="ret">
|
|
上一题
|
|
</view> -->
|
|
|
|
<view class="next-btn"
|
|
@click="next">
|
|
下一页
|
|
</view>
|
|
</view>
|
|
|
|
<text class="second-color">{{ configList.bg_title }}</text>
|
|
</view>
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapState } from 'vuex'
|
|
export default {
|
|
data() {
|
|
return {
|
|
index : 0,
|
|
}
|
|
},
|
|
computed : {
|
|
...mapState(['articleList', 'configList']),
|
|
},
|
|
onLoad() {
|
|
},
|
|
onShow() {
|
|
},
|
|
methods: {
|
|
next(){
|
|
if(this.index == this.articleList.length - 1){
|
|
uni.navigateTo({
|
|
url: '/pages/index/preAppoint'
|
|
})
|
|
}else{
|
|
this.index++
|
|
}
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.page{
|
|
.logo{
|
|
width: 600rpx;
|
|
margin: 150rpx 75rpx;
|
|
}
|
|
.content{
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
padding: 0 60rpx;
|
|
text-align: center;
|
|
width: 700rpx;
|
|
height: 650rpx;
|
|
margin: 0 25rpx;
|
|
z-index: 999;
|
|
.content-bg{
|
|
height: 100%;
|
|
width: 100%;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: -1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.region{
|
|
display: flex;
|
|
align-items: center;
|
|
&>view{
|
|
width: 140rpx;
|
|
height: 50rpx;
|
|
border-radius: 10rpx;
|
|
border: 1px solid #e6bf7f;
|
|
margin: 0 10rpx;
|
|
line-height: 50rpx;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.b-btn{
|
|
width: 86%;
|
|
display: flex;
|
|
justify-content: center;
|
|
padding-top: 130rpx;
|
|
|
|
.pre-btn{
|
|
border: 4rpx solid #f1e0c6;
|
|
padding: 16rpx 90rpx;
|
|
border-radius: 66rpx;
|
|
color: #e6bf7f;
|
|
}
|
|
}
|
|
|
|
.next-btn{
|
|
width: 120rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
padding: 16rpx 90rpx;
|
|
background-color: $uni-color;
|
|
border-radius: 30rpx;
|
|
}
|
|
.next-btn-2{
|
|
width: 120rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
padding: 16rpx 90rpx;
|
|
background-color: $uni-color-primary;
|
|
border-radius: 30rpx;
|
|
}
|
|
|
|
.an{
|
|
position: fixed;
|
|
bottom: 300rpx;
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
}
|
|
.second-color{
|
|
margin-top: 20rpx;
|
|
}
|
|
</style>
|