You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
661 B

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
  1. <template>
  2. <view class="main">
  3. <web-view :src="url"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. type: 1,
  11. url: ''
  12. }
  13. },
  14. onLoad(options) {
  15. this.type = options.type
  16. if(this.type==1) {
  17. uni.setNavigationBarTitle({
  18. title: '隐私政策'
  19. })
  20. }else {
  21. uni.setNavigationBarTitle({
  22. title: '用户使用协议'
  23. })
  24. }
  25. this.getAgreementFn()
  26. },
  27. methods: {
  28. async getAgreementFn() {
  29. if(this.type==1) {
  30. this.url = 'http://www.jakjgs.com/htmls/yszc.html'
  31. }else {
  32. this.url = 'http://www.jakjgs.com/htmls/yhxy.html'
  33. }
  34. }
  35. }
  36. }
  37. </script>
  38. <style>
  39. </style>