index.vue 827 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <view>
  3. <view class="title">活动规则</view>
  4. <view class="conter">
  5. <jyf-parser :html="info" ref="article" :tag-style="tagStyle"></jyf-parser>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. import colors from "@/mixins/color";
  11. export default {
  12. mixins: [colors],
  13. components: {},
  14. data() {
  15. return {
  16. tagStyle: {
  17. img: 'width:100%;display:block;',
  18. table: 'width:100%',
  19. video: 'width:100%'
  20. },
  21. info:''
  22. };
  23. },
  24. onLoad() {
  25. this.info = uni.getStorageSync('infos');
  26. },
  27. onReady() {},
  28. onShow() {},
  29. methods: {
  30. },
  31. onReachBottom() {
  32. }
  33. }
  34. </script>
  35. <style>
  36. page{
  37. background-color: #fff;
  38. }
  39. .title{
  40. font-weight: 600;
  41. color: #333333;
  42. font-size: 36rpx;
  43. height: 100rpx;
  44. line-height: 100rpx;
  45. text-align: center;
  46. }
  47. .conter{
  48. padding: 0 30rpx;
  49. }
  50. </style>