face.vue 426 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <view>
  3. <web-view :src="src"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. import {
  8. GetUrl
  9. } from '@/api/kh.js'
  10. export default {
  11. data() {
  12. return {
  13. src: ''
  14. }
  15. },
  16. onLoad(e) {
  17. GetUrl(JSON.parse(e.url)).then(res => {
  18. if (res.code == 200) {
  19. this.src = res.data.url
  20. } else {
  21. toast('该功能暂未开放')
  22. uni.navigateBack()
  23. }
  24. })
  25. },
  26. }
  27. </script>
  28. <style>
  29. </style>