pay.vue 430 B

1234567891011121314151617181920212223242526
  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. //15是因为传了‘currentPayUrl’,不要更改参数名
  16. this.PayUrl = this.$u.queryParams(page).slice(15);
  17. },
  18. mounted() {
  19. this.$refs.payUrlRef.click();
  20. }
  21. }
  22. </script>
  23. <style>
  24. </style>