You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1015 B
Vue
40 lines
1015 B
Vue
<template>
|
|
<view>
|
|
|
|
<s-layout class="set-wrap" title="抽奖规则" :bgStyle="{ color: '#FFF' }">
|
|
<!-- <view class="ss-p-30">
|
|
<mp-html class="richtext" :content="state.content" />
|
|
</view> -->
|
|
|
|
|
|
<rich-text :nodes="data"></rich-text>
|
|
</s-layout>
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ref } from 'vue'
|
|
import MineApi from '@/sheep/api/prize/index'
|
|
import { onLoad, onReachBottom, onShow, onUnload, onHide } from '@dcloudio/uni-app';
|
|
|
|
const data = ref()
|
|
|
|
const getActivityRules = async () => {
|
|
const res = await MineApi.ActivityRules()
|
|
data.value = res.data.name
|
|
// data.value = res.data.value = res.result.content.replace(
|
|
// /<img(.*?)\s*width=".*?"\s*height=".*?"\s*\/?>/g,
|
|
// '<img$1 style="max-width: 100%;" />'
|
|
// )
|
|
// data.value = data.value.replace(/style="display: block; margin-left: auto; margin-right: auto;"/g, '')
|
|
}
|
|
|
|
onShow(() => {
|
|
getActivityRules()
|
|
})
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
</style>
|