UserAgreement.vue 1.3 KB

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