privacyPolicy.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //用户隐私协议页面
  2. <template>
  3. <view class="container_pri">
  4. <!-- #ifdef APP-PLUS -->
  5. <rich-text :nodes="html"></rich-text>
  6. <!-- #endif -->
  7. <!-- #ifndef APP-PLUS -->
  8. <rich-text :nodes="h5_wx_html"></rich-text>
  9. <!-- #endif -->
  10. </view>
  11. </template>
  12. <script>
  13. import privacyPolicy from "@/static/app-plus/privacyPolicy.js";
  14. export default {
  15. data() {
  16. return {
  17. type: '',
  18. // banance: 余额 points: 积分
  19. key: '',
  20. imgUrl: getApp().globalData.imgUrl,
  21. isLoading: true,
  22. title: '',
  23. num: "",
  24. list: "",
  25. pn: 1,//当前页
  26. hasmore: true,
  27. html:'',
  28. h5_wx_html:''
  29. };
  30. },
  31. components: {},
  32. props: {},
  33. onShow: function () {
  34. this.html=privacyPolicy.user_privacy_policy_content
  35. },
  36. onLoad(){
  37. this.getPrivacyPolicy()
  38. },
  39. methods:{
  40. getPrivacyPolicy(){
  41. let param = {}
  42. param.data = {}
  43. param.data.agreementCode='register_agreement'
  44. param.url = 'v3/system/front/agreement/detail'
  45. this.$request(param).then(res=>{
  46. this.h5_wx_html=res.data.content
  47. })
  48. }
  49. }
  50. };
  51. </script>
  52. <style>
  53. page{
  54. width: 750rpx;
  55. margin: 0 auto;
  56. }
  57. .container_pri{
  58. width: 90%;
  59. height: 100vh;
  60. margin: 0 auto;
  61. }
  62. p{
  63. margin-top: 20px;
  64. }
  65. </style>