flyx/pages/guize/guize.vue
2024-07-07 16:19:19 +08:00

126 lines
2.0 KiB
Vue

<template>
<view class="guize">
<view v-html="rule" style="color: #fff;"></view>
</view>
</template>
<script>
import uParse from '@/components/gaoyia-parse/parse.vue'
export default {
components: {
uParse
},
data() {
return {
z_imgUrl: this.$z_imgUrl,
rule: '',
title: ''
}
},
onLoad(e) {
console.log(e)
this.getnews(e.type)
let title = '';
if (e.type == 1) {
title = '什么是用户等级'
}
if (e.type == 2) {
title = '等级相关福利'
}
if (e.type == 3) {
title = '公告'
}
if (e.type == 4) {
title = '用户协议'
}
if (e.type == 5) {
title = '隐私政策'
}
if (e.type == 6) {
title = '平台消费规则'
}
if (e.type == 7) {
title = '一番裳购买说明'
}
if (e.type == 8) {
title = '无限赏购买说明'
}
if (e.type == 9) {
title = '排行榜规则'
}
if (e.type == 10) {
title = '发货规则'
}
if (e.type == 11) {
title = ' 请好友规则'
}
if (e.type == 12) {
title = '抽奖券说明'
}
if (e.type == 13) {
title = '权益中心说明'
}
if (e.type == 14) {
title = '领主玩法'
}
if (e.type == 15) {
title = '连击赏玩法'
}
if (e.type == 16) {
title = '签到规则'
}
this.title = title
uni.setNavigationBarTitle({
title: title
})
},
methods: {
getnews(e) {
let that = this;
that.req({
url: 'danye',
data: {
type: e,
},
success(res) {
if (res.status == 1) {
var rule = res.data
that.rule = rule.replaceAll('style="text-wrap: nowrap;"','')
}
}
})
},
}
}
</script>
<style>
>>>span{
text-wrap: wrap !important;
}
.text_2,
.text_3 {
font-size: 28rpx;
margin-top: 60rpx;
}
.text_1 {
margin-top: 30rpx;
font-size: 32rpx;
color: #fff;
}
.guize {
width: 100vw;
height: 100vh;
position: relative;
padding: 24rpx;
box-sizing: border-box;
}
</style>