webview.vue 424 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <view>
  3. <web-view v-if="webviewUrl" :src="webviewUrl" id="webview"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. import config from '@/config';
  8. export default {
  9. data() {
  10. return {
  11. webviewUrl: ''
  12. }
  13. },
  14. onLoad(body) {
  15. this.webviewUrl = config.webviewUrl + body.url + '?token=' + uni.getStorageSync('shopMobileToken');
  16. },
  17. methods: {
  18. }
  19. }
  20. </script>
  21. <style>
  22. </style>