推广小程序前端代码
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.

63 lines
1.2 KiB

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