修改支付跳转页面

This commit is contained in:
YeMingfei666 2024-12-12 11:04:48 +08:00
parent 9f4e438a31
commit 3edfedb4ab
2 changed files with 37 additions and 1 deletions

View File

@ -399,6 +399,7 @@
}
},
onShow() {
console.log('onSHow video');
//当应用从后台进入前台时自动播放
if (this.videoContext) {
this.videoContext.play()
@ -752,8 +753,13 @@
// plus.runtime.openURL(ret.data.h5Url)
uni.navigateTo({
url: '/pages/index/webView?url=' + ret.data.h5Url
url: '/pages/pays/pays?ordersId='+this.ordersId+'&url=' + ret.data.h5Url
});
// uni.navigateTo({
// url: '/pages/index/webView?ordersId='+this.ordersId+'url=' + ret.data.h5Url
// });
// this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data));
});
} else if (this.openWay == 3) {
@ -881,6 +887,21 @@
//打开支付弹窗
openPopusPay() {
this.$refs.popuppay.open('bottom')
return
// 通过 id 获取 nvue 子窗体
const subNVue = uni.getSubNVueById('pay')
subNVue.setStyle({
height : '350rpx',
})
// 打开 nvue 子窗体
subNVue.show('slide-in-bottom', 300, function(){
// 打开后进行一些操作...
//
console.log('subnvue open')
});
// 关闭 nvue 子窗体
// subNVue.hide('fade-out', 300)
// this.$refs.refPopupZhuanPan.open('bottom')
},
// 获取收藏状态

View File

@ -0,0 +1,15 @@
<template>
<view>
<web-view src="http://baidu.com/"></web-view>
</view>
</template>
<script>
</script>
<style scoped>
.bg-fff{
width: 750rpx;
height: 300rpx;background-color: #fff;
}
</style>