webview.vue 466 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <view>
  3. <web-view :src="url"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. url: ''
  11. }
  12. },
  13. created() {
  14. },
  15. onLoad(options) {
  16. switch (options.type) {
  17. case 'kd':
  18. this.url = "https://m.kuaidi100.com/result.jsp?nu=" + options.number;
  19. break;
  20. case 'MWEB':
  21. uni.setNavigationBarTitle({
  22. title: '微信支付'
  23. });
  24. break;
  25. }
  26. }
  27. }
  28. </script>
  29. <style>
  30. </style>