detaillink.vue 466 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <view>
  3. <web-view :webview-styles="webviewStyles" :src="url"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. import {
  8. metaSetScalable
  9. } from "../../common/navTo";
  10. export default {
  11. data() {
  12. return {
  13. webviewStyles: {
  14. progress: {
  15. color: "#007AFF",
  16. }
  17. },
  18. url: "",
  19. };
  20. },
  21. onLoad(option) {
  22. this.url = decodeURIComponent(option.url);
  23. // #ifdef H5
  24. metaSetScalable();
  25. // #endif
  26. }
  27. };
  28. </script>
  29. <style></style>