web.vue 592 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <view>
  3. <web-view :src="webUrl"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. webUrl: ''
  11. }
  12. },
  13. onLoad(options) {
  14. if (options.formName) {
  15. this.webUrl = options.url + '?formName=' + options.formName + '&formPassword=' + options.formPassword + '&status=' + options.status + '&type=' + options.type
  16. } else if (options.check) {
  17. this.webUrl = options.url + '?type=' + options.type + '&check=' + options.check
  18. } else {
  19. this.webUrl = options.url
  20. }
  21. // console.log(this.webUrl)
  22. }
  23. }
  24. </script>
  25. <style lang="scss" scoped></style>