first commit
This commit is contained in:
26
pages/my/ABCpay.vue
Normal file
26
pages/my/ABCpay.vue
Normal file
@@ -0,0 +1,26 @@
|
||||
<template>
|
||||
<web-view v-if="payUrl" :src="payUrl" @message="getStatus" @onPostMessage="getStatus"></web-view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
payUrl: null
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
let payUrl = options.url;
|
||||
for (let key in options) {
|
||||
if (options.hasOwnProperty(key) && key != 'url') {
|
||||
payUrl += '&' + key + '=' + options[key];
|
||||
}
|
||||
}
|
||||
this.payUrl = payUrl.replace("&", "?");
|
||||
},
|
||||
methods: {
|
||||
getStatus (event) {
|
||||
console.log(event)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Reference in New Issue
Block a user