工行这里学车报名流程h5
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.

42 lines
741 B

  1. <template>
  2. <view class="main">
  3. <web-view :src="url"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. import indexApi from '@/api/index.js'
  8. export default {
  9. data() {
  10. return {
  11. type: 1,
  12. url: ''
  13. }
  14. },
  15. onLoad(options) {
  16. this.type = options.type
  17. if(this.type==1) {
  18. uni.setNavigationBarTitle({
  19. title: '浙里学车隐私政策'
  20. })
  21. }else {
  22. uni.setNavigationBarTitle({
  23. title: '用户使用协议'
  24. })
  25. }
  26. this.getAgreementFn()
  27. },
  28. methods: {
  29. async getAgreementFn() {
  30. const [nulls, res] = await indexApi.getAgreement()
  31. if(this.type==1) {
  32. this.url = res.data.privacyAgreementUrl
  33. }else {
  34. this.url = res.data.useAgreementUrl
  35. }
  36. }
  37. }
  38. }
  39. </script>
  40. <style>
  41. </style>