UserAgreement.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <view class="UserAgreement">
  3. <!-- <view class="title"><text>用户协议</text></view> -->
  4. <view class="content">
  5. <u-parse :content="content"></u-parse>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default{
  11. data(){
  12. return{
  13. content:'',
  14. }
  15. },
  16. onLoad(){
  17. // this.getAgreement()
  18. let obj = this.$store.getters.allset.agreement
  19. this.content = obj.value.agreement
  20. },
  21. methods:{
  22. // 获取用户协议
  23. // getAgreement(){
  24. // this.$loading();
  25. // this.$api.document.agreement().then(res=>{
  26. // console.log(res,"用户协议")
  27. // if(res.code==0){
  28. // this.content=res.data.value.agreement
  29. // }
  30. // this.$hideLoading();
  31. // }).catch(err=>{
  32. // console.log(err)
  33. // this.$hideLoading();
  34. // })
  35. // }
  36. }
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. $pageColor:#F9F9F9;
  41. $bgColor:#FFFFFF;
  42. .UserAgreement{
  43. height: 100%;
  44. background: $bgColor;
  45. }
  46. .title{
  47. height: 82rpx;
  48. width: 750rpx;
  49. display: flex;
  50. align-items: center;
  51. justify-content: center;
  52. text{
  53. font-size: 32rpx;
  54. font-family: PingFang-SC-Bold, PingFang-SC;
  55. font-weight: bold;
  56. color: #333333;
  57. }
  58. }
  59. .content{
  60. padding: 0 30rpx;
  61. view{
  62. margin-bottom: 24rpx;
  63. text{
  64. font-size: 28rpx;
  65. font-family: PingFang-SC-Bold, PingFang-SC;
  66. font-weight: bold;
  67. color: #333333;
  68. }
  69. }
  70. }
  71. </style>