face.vue 459 B

123456789101112131415161718192021222324252627282930313233343536
  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. console.log("1111111", res);
  19. if (res.code == 200) {
  20. this.src = res.data.url
  21. } else {
  22. toast('该功能暂未开放')
  23. uni.navigateBack()
  24. }
  25. })
  26. },
  27. }
  28. </script>
  29. <style>
  30. </style>