serviceOrPrivacy.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <template>
  2. <view class="top">
  3. <view v-html="data.content"></view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. data:""
  11. }
  12. },
  13. onLoad(options) {
  14. if (options.pageType == "privacy_protocol"){
  15. uni.setNavigationBarTitle({
  16. title: '隐私协议'
  17. });
  18. }
  19. this.getAgreement(options.pageType || 'privacy_protocol')
  20. },
  21. methods:{
  22. getAgreement(param){
  23. this.$http.get(`/protocol/info/${param}`).then(res=>{
  24. if(res&&res.code==200){
  25. this.data = res.data
  26. }
  27. })
  28. }
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. *{
  34. word-break:break-all;
  35. }
  36. .agreement {
  37. width: 100%;
  38. .top /deep/ img {
  39. max-width: 100%;
  40. }
  41. .top /deep/ .ql-align-center {
  42. text-align: center;
  43. }
  44. .top /deep/ .ql-align-right {
  45. text-align: right;
  46. }
  47. .top /deep/ blockquote {
  48. display: block;
  49. border-left: 8px solid #d0e5f2;
  50. padding: 5px 10px;
  51. margin: 10px 0;
  52. line-height: 1.4;
  53. font-size: 100%;
  54. background-color: #f1f1f1;
  55. }
  56. .top /deep/ .ql-indent-1 {
  57. margin-left: 60rpx;
  58. }
  59. .top /deep/ .ql-indent-2 {
  60. margin-left: 120rpx;
  61. }
  62. .top /deep/ .ql-indent-3 {
  63. margin-left: 180rpx;
  64. }
  65. .top /deep/ .ql-indent-4 {
  66. margin-left: 240rpx;
  67. }
  68. .top /deep/ .ql-indent-5 {
  69. margin-left: 300rpx;
  70. }
  71. }
  72. .title-item {
  73. img {
  74. width: 690rpx;
  75. height: 390rpx;
  76. }
  77. }
  78. .top {
  79. padding: 30rpx;
  80. .item {
  81. font-size: 28rpx;
  82. font-weight: 700;
  83. color: #050505;
  84. line-height: 40rpx;
  85. }
  86. .content {
  87. padding: 0 14rpx 26rpx 14rpx;
  88. font-size: 24rpx;
  89. color: #666666;
  90. font-weight: 500;
  91. line-height: 48rpx;
  92. }
  93. .title {
  94. font-size: 26rpx;
  95. font-weight: 700;
  96. color: #050505;
  97. line-height: 40rpx;
  98. }
  99. .title-item {
  100. color: #666666;
  101. font-weight: 500;
  102. line-height: 48rpx;
  103. font-size: 24rpx;
  104. padding: 0 14rpx;
  105. }
  106. }
  107. .top{
  108. .item{
  109. font-size: 28rpx;
  110. font-weight: 700;
  111. color: #050505;
  112. line-height: 40rpx;
  113. }
  114. .content{
  115. padding: 0 14rpx 26rpx 14rpx;
  116. font-size: 24rpx;
  117. color: #666666;
  118. font-weight: 500;
  119. line-height: 48rpx;
  120. }
  121. .title{
  122. font-size: 26rpx;
  123. font-weight: 700;
  124. color: #050505;
  125. line-height: 40rpx;
  126. }
  127. .title-item{
  128. color: #666666;
  129. font-weight: 500;
  130. line-height: 48rpx;
  131. font-size: 24rpx;
  132. padding: 0 14rpx;
  133. }
  134. }
  135. </style>