pay.vue 636 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <view>
  3. <!-- <web-view :src="PayUrl"></web-view> -->
  4. <a ref="payUrlRef" :href="PayUrl"></a>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. PayUrl: "",
  12. };
  13. },
  14. onLoad(page) {
  15. // console.log('page',page);
  16. // console.log('page1',this.$u.queryParams(page).slice(0));
  17. //15是因为传了‘currentPayUrl’,不要更改参数名
  18. this.PayUrl = this.$u.queryParams(page).slice(15);
  19. },
  20. mounted() {
  21. // console.log('this.PayUrl',this.PayUrl);
  22. // console.log('this.$refs.payUrlRef',this.$refs.payUrlRef);
  23. this.$refs.payUrlRef.click();
  24. }
  25. }
  26. </script>
  27. <style>
  28. </style>