You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
high-mini/subPages/unionPay/unionPay.vue

53 lines
1.0 KiB

<template>
<view>
<image class="width90" mode="widthFix" src="../static/union1.jpg" @click="jumpunionpay">
</image>
<image class="width90" mode="widthFix" src="../static/union2.jpg" @click="jumpMp"></image>
</view>
</template>
<script>
export default {
data() {
return {
codes:''
}
},
onLoad(options) {
var arr1 = decodeURIComponent(options.q);
var arr2 = arr1.split('=');
this.codes = arr2[2];
},
methods: {
//跳转银联支付
jumpunionpay(){
uni.navigateTo({
// url:'unionPay-entrance/unionPay-entrance'
})
plus.runtime.openURL()
},
//跳转到小程序
jumpMp(){
uni.reLaunch({
url: '../../pages/goods/externalCoupon/externalCoupon?id='+this.codes
})
// uni.navigateToMiniProgram({
// appId: 'wx8d49e2f83025229d',
// path: '../../pages/goods/externalCoupon/externalCoupon',
// // extraData: {
// // 'data1': 'test'
// // },
// success(res) {
// // 打开成功
// }
// })
}
}
}
</script>
<style>
</style>