推广小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.0 KiB

1 month ago
  1. <template>
  2. <view>
  3. <view class="head-box"></view>
  4. <uv-navbar autoBack title="主理人协议" leftIconColor="#fff" :bgColor="bgColor" height="100rpx" :titleStyle="{color:'#fff'}"></uv-navbar>
  5. <view class="content" style="color: #fff!important;">
  6. <uv-parse :content="content"></uv-parse>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. export default{
  12. data() {
  13. return {
  14. bgColor:'transparent',
  15. content:''
  16. }
  17. },
  18. onPageScroll(e) {
  19. if(e.scrollTop > 50) {
  20. this.bgColor = '#49070c'
  21. }else{
  22. this.bgColor = 'transparent'
  23. }
  24. },
  25. onLoad() {
  26. console.log(this.$store.state.configList)
  27. this.content = this.$store.state.configList.vip_text
  28. }
  29. }
  30. </script>
  31. <style lang="scss">
  32. page {
  33. background-color: #060504;
  34. }
  35. </style>
  36. <style lang="scss" scoped>
  37. .head-box {
  38. background: url('@/static/image/nav-bg.png') no-repeat;
  39. background-size: 100% 100%;
  40. width: 100%;
  41. height: 534rpx;
  42. position: absolute;
  43. z-index: -1;
  44. }
  45. .content {
  46. padding: 0 30rpx;
  47. padding-top: calc(var(--status-bar-height) + 110rpx);
  48. }
  49. </style>