Liuyi
2024-11-20 681efe897b7fb4dbe8bec5fa5056209e3e0edfdc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<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>