rules.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <view>
  3. <hua-page-head :pageTitle="pageTitle"></hua-page-head>
  4. <view class="" v-if="content != ''">
  5. <view class="content" v-html="content">
  6. </view>
  7. </view>
  8. <view class="" v-else>
  9. <view class="noData">
  10. <view class="wrap">
  11. <image src="../../static/nodata/nodata.png" mode=""></image>
  12. <view class="tit">暂无内容</view>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. data() {
  21. return {
  22. content:"",
  23. pageTitle:"规则"
  24. }
  25. },
  26. methods: {
  27. }
  28. }
  29. </script>
  30. <style lang="scss">
  31. .content{
  32. margin: 20rpx 24rpx;
  33. border-radius: 20rpx;
  34. background-color: #fff;
  35. }
  36. .noData{
  37. position: relative;
  38. height: calc(100vh - var(--status-bar-height));
  39. .wrap{
  40. text-align: center;
  41. // position: absolute;
  42. // top: 50%;
  43. // left: 50%;
  44. // transform: translate(-50%,-50%);
  45. margin-top: 100rpx;
  46. image{
  47. width: 330rpx;
  48. height: 330rpx;
  49. margin: 20rpx auto;
  50. }
  51. .tit{
  52. color: #AAAAAA;
  53. }
  54. }
  55. }
  56. </style>