agreement.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <view class="agreement">
  3. <navbar ref="navbar" :config="config" backColor="#666"></navbar>
  4. <view class="top ql-editor-box" v-html="list.user_protocol">
  5. <!-- <view class="title-item">
  6. <jyfparser
  7. :html="$mUtil.formatRichText(list.user_protocol)"
  8. ref="article"
  9. ></jyfparser>
  10. </view> -->
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. // import jyfParser from "@/components/jyf-parser/jyf-parser.vue"
  16. export default {
  17. // components:{
  18. // jyfParser
  19. // },
  20. data() {
  21. return {
  22. config: {
  23. back: true, //false是tolbar页面 是则不写
  24. title: '用户协议',
  25. color: '#1A1A1A',
  26. //背景颜色;参数一:透明度(0-1);参数二:背景颜色(array则为线性渐变,string为单色背景)
  27. backgroundColor: [1, "#fff"],
  28. statusBarFontColor: '#1A1A1A',
  29. },
  30. list: {}
  31. }
  32. },
  33. onShow() {
  34. this.getList()
  35. },
  36. methods: {
  37. getList() {
  38. this.$http.get("/protocol/info").then(res => {
  39. if (res && res.code == 200) {
  40. console.log(res)
  41. this.list = res.data
  42. }
  43. })
  44. },
  45. },
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. .agreement {
  50. width: 100%;
  51. overflow: hidden;
  52. }
  53. .title-item {
  54. img {
  55. width: 690rpx;
  56. height: 390rpx;
  57. }
  58. }
  59. .top {
  60. padding: 30rpx;
  61. .item {
  62. font-size: 28rpx;
  63. font-weight: 700;
  64. color: #050505;
  65. line-height: 40rpx;
  66. }
  67. .content {
  68. padding: 0 14rpx 26rpx 14rpx;
  69. font-size: 24rpx;
  70. color: #666666;
  71. font-weight: 500;
  72. line-height: 48rpx;
  73. }
  74. .title {
  75. font-size: 26rpx;
  76. font-weight: 700;
  77. color: #050505;
  78. line-height: 40rpx;
  79. }
  80. .title-item {
  81. color: #666666;
  82. font-weight: 500;
  83. line-height: 48rpx;
  84. font-size: 24rpx;
  85. padding: 0 14rpx;
  86. }
  87. }
  88. </style>