支付拉起调整
This commit is contained in:
parent
3d7d5178e6
commit
9083c9a454
|
|
@ -589,7 +589,10 @@
|
||||||
res => {
|
res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
that.$emit('paySuccess', res.data)
|
that.$emit('paySuccess', {
|
||||||
|
ordersId: this.orderId,
|
||||||
|
h5Url: res.data.h5Url
|
||||||
|
})
|
||||||
// const div = document.createElement('div')
|
// const div = document.createElement('div')
|
||||||
// div.innerHTML = res.data //此处form就是后台返回接收到的数据
|
// div.innerHTML = res.data //此处form就是后台返回接收到的数据
|
||||||
// document.body.appendChild(div)
|
// document.body.appendChild(div)
|
||||||
|
|
|
||||||
|
|
@ -1203,7 +1203,10 @@
|
||||||
this.showMoney = false //显示充值弹窗
|
this.showMoney = false //显示充值弹窗
|
||||||
// this.payOrder(this.ordersId, this.payMoney)
|
// this.payOrder(this.ordersId, this.payMoney)
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
window.open(data.h5Url)
|
// window.location.href = data.h5Url
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/pays/pays?ordersId=' + data.ordersId + '&url=' + data.h5Url
|
||||||
|
});
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
//自组件关闭的回调
|
//自组件关闭的回调
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<view style="width: 100%;">
|
<view style="width: 100%;">
|
||||||
<web-view :src="url" style="width: 100%;"></web-view>
|
<web-view id="webview" :src="url" style="width: 100%;"></web-view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -27,6 +27,8 @@
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title:'预览'
|
title:'预览'
|
||||||
})
|
})
|
||||||
|
let viewview = uni.createWebviewContext("webview",)
|
||||||
|
console.log("viewview===",viewview)
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
// console.log('App plus2')
|
// console.log('App plus2')
|
||||||
// var currentWebview = this.$mp.page.$getAppWebview() //获取当前页面的webview对象
|
// var currentWebview = this.$mp.page.$getAppWebview() //获取当前页面的webview对象
|
||||||
|
|
@ -40,8 +42,10 @@
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
console.log(this.ordersId);
|
console.log(this.ordersId);
|
||||||
|
|
||||||
httpsRequest.getT("/app/wuyou/queryOrder/"+this.ordersId, {}).then(res => {
|
httpsRequest.getT("/app/wuyou/queryOrder/"+this.ordersId, {}).then(res => {
|
||||||
console.log(res);
|
console.log(res.data);
|
||||||
|
|
||||||
if(res.data ==1){
|
if(res.data ==1){
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -53,9 +57,11 @@
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
},500)
|
},500)
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title:'支付中'
|
title:'支付中'
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
@ -67,6 +73,7 @@
|
||||||
this.url = option.url
|
this.url = option.url
|
||||||
this.ordersId=option.ordersId
|
this.ordersId=option.ordersId
|
||||||
console.log('this.ordersId'+this.ordersId);
|
console.log('this.ordersId'+this.ordersId);
|
||||||
|
|
||||||
// this.url="https://jiaoyu.xianmxkj.com/file/uploadPath/2023/03/08/b6c0dd4821cc9ce70c897adca3ad22c2.pdf"
|
// this.url="https://jiaoyu.xianmxkj.com/file/uploadPath/2023/03/08/b6c0dd4821cc9ce70c897adca3ad22c2.pdf"
|
||||||
// h5,使用h5访问的时候记得跨域
|
// h5,使用h5访问的时候记得跨域
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue