<script setup>
|
import {ref,onMounted} from 'vue'
|
import { getRuleDetailApi } from '../../../api/index.js'
|
|
const rulesContent = ref('')
|
async function setPointsRule(){
|
await getRuleDetailApi({limit:1,page:1}).then((res) =>{
|
if(res.code == 200){
|
rulesContent.value = res.data.list[0].describe
|
}
|
})
|
}
|
onMounted( async() =>{
|
await setPointsRule()
|
})
|
</script>
|
<template>
|
<view class="container">
|
<point-navbar title='积分规则'></point-navbar>
|
<view class="content">
|
<view class="rules-title">-积分规则-</view>
|
<view>
|
<rich-text :nodes="rulesContent"></rich-text>
|
</view>
|
</view>
|
</view>
|
</template>
|
|
<style lang="scss" scoped>
|
|
.container{
|
width:100%;
|
height:100vh;
|
.content{
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
width:100%;
|
height:calc(100vh - 176rpx);
|
background:linear-gradient(to bottom,#fef7da 0%,#FFF 5%,#FFF 100%);
|
padding:50rpx 60rpx 100rpx;
|
box-sizing: border-box;
|
color: #636363;
|
line-height:50rpx;
|
font-size:28rpx;
|
.rules-title{
|
margin-bottom: 30rpx;
|
color: #565656;
|
font-size:32rpx;
|
}
|
}
|
}
|
|
</style>
|