<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>
