web.vue 346 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <view>
  3. <web-view :src="url"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. var app;
  8. export default {
  9. data() {
  10. return {
  11. url:""
  12. }
  13. },
  14. onLoad({type}) {
  15. app = this;
  16. var url = "https://tran.jsshuita.cn/index/protocol?name="+type;
  17. console.log('url',url)
  18. app.url = url;
  19. },
  20. methods: {
  21. }
  22. }
  23. </script>
  24. <style>
  25. </style>