|
@@ -140,15 +140,15 @@ export default {
|
|
|
},
|
|
|
async pay(money, topPayType, payType, channelId,userId) {
|
|
|
if(userId){
|
|
|
- console.log("返回支付宝app支付链接")
|
|
|
+ //("返回支付宝app支付链接")
|
|
|
axios.get("dxtop/staff/one",{
|
|
|
params:{
|
|
|
id:localStorage.getItem("user")
|
|
|
}
|
|
|
}).then(res =>{
|
|
|
- console.log(res)
|
|
|
+ //console.log(res)
|
|
|
if(res.data?.data?.sid){
|
|
|
- console.log(res.data.data.sid)
|
|
|
+ //console.log(res.data.data.sid)
|
|
|
axios.post('/dxtop/order/callUnifiedPay', {
|
|
|
"money": money,
|
|
|
"topPayType": topPayType,
|
|
@@ -157,7 +157,7 @@ export default {
|
|
|
"userId": res.data.data.sid
|
|
|
}).then(res2 => {
|
|
|
this.loading = false;
|
|
|
- console.log(res2)
|
|
|
+ //console.log(res2)
|
|
|
if(res2.data.code == 500){
|
|
|
Toast(res2.data.msg)
|
|
|
}else{
|
|
@@ -172,7 +172,7 @@ export default {
|
|
|
})
|
|
|
|
|
|
} else if(localStorage.getItem("type")){//返回支付宝微信支付连接
|
|
|
- console.log("返回支付宝微信支付链接 用于扫码url进入 带渠道参数")
|
|
|
+ //console.log("返回支付宝微信支付链接 用于扫码url进入 带渠道参数")
|
|
|
axios.post('/dxtop/order/topScanPayApi', {
|
|
|
"money": money,
|
|
|
"topPayType": topPayType,
|
|
@@ -188,7 +188,7 @@ export default {
|
|
|
}).catch(() => {
|
|
|
})
|
|
|
}else{//返回支付宝微信支付连接
|
|
|
- console.log("返回支付宝微信支付链接 用于url进入 不带渠道参数")
|
|
|
+ // console.log("返回支付宝微信支付链接 用于url进入 不带渠道参数")
|
|
|
axios.post('/dxtop/order/topScanPayApi', {
|
|
|
"money": money,
|
|
|
"topPayType": topPayType,
|
|
@@ -227,21 +227,21 @@ export default {
|
|
|
if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {
|
|
|
if(this.channelId){//游客支付,A01/W06 不用传
|
|
|
if (url.app === "alipayqr") {
|
|
|
- console.log("苹果游客支付宝url")
|
|
|
+ //console.log("苹果游客支付宝url")
|
|
|
this.pay(this.money, "A01", "3", this.channelId);
|
|
|
}else if(url.app === "weixin://scanqrcode"){
|
|
|
- console.log("苹果游客微信支付url")
|
|
|
+ //console.log("苹果游客微信支付url")
|
|
|
this.pay(this.money, "W06", "2", this.channelId);
|
|
|
}else{
|
|
|
}
|
|
|
}else if(localStorage.getItem("user")){ //app微信支付
|
|
|
if (url.app === "alipayqr") {
|
|
|
this.loading = true;
|
|
|
- console.log("苹果app支付宝")
|
|
|
+ //console.log("苹果app支付宝")
|
|
|
this.pay(this.money, "A01", "3", "", localStorage.getItem("user"))
|
|
|
}else if(url.app === "weixin://scanqrcode"){
|
|
|
this.loading = true;
|
|
|
- console.log("苹果app微信小程序")
|
|
|
+ //console.log("苹果app微信小程序")
|
|
|
this.weixin()
|
|
|
}else{
|
|
|
|
|
@@ -249,9 +249,9 @@ export default {
|
|
|
}else{
|
|
|
if (url.app === "alipayqr") {
|
|
|
this.pay(this.money, "A01", "3", '');
|
|
|
- console.log("苹果游客支付宝url")
|
|
|
+ //console.log("苹果游客支付宝url")
|
|
|
}else if(url.app === "weixin://scanqrcode"){
|
|
|
- console.log("苹果游客微信支付url")
|
|
|
+ //console.log("苹果游客微信支付url")
|
|
|
this.pay(this.money, "W06", "2", '');
|
|
|
}else{
|
|
|
|
|
@@ -280,29 +280,29 @@ export default {
|
|
|
} else if (navigator.userAgent.match(/android/i)) {
|
|
|
if(this.channelId){
|
|
|
if (url.app === "alipayqr") {
|
|
|
- console.log("安卓游客支付宝url")
|
|
|
+ //console.log("安卓游客支付宝url")
|
|
|
this.pay(this.money, "A01", "3", this.channelId);
|
|
|
}else if(url.app === "weixin://scanqrcode"){
|
|
|
- console.log("安卓游客微信支付url")
|
|
|
+ // console.log("安卓游客微信支付url")
|
|
|
this.pay(this.money, "W06", "2", this.channelId);
|
|
|
}else{
|
|
|
}
|
|
|
}else if(localStorage.getItem("user")){
|
|
|
if (url.app === "alipayqr") {
|
|
|
- console.log("苹果app支付宝")
|
|
|
+ //console.log("苹果app支付宝")
|
|
|
this.pay(this.money, "A01", "3", "",localStorage.getItem("user"));
|
|
|
this.loading = false;
|
|
|
}else if(url.app === "weixin://scanqrcode"){
|
|
|
- console.log("安卓app微信小程序")
|
|
|
+ //console.log("安卓app微信小程序")
|
|
|
this.weixin()
|
|
|
}else{
|
|
|
}
|
|
|
}else{
|
|
|
if (url.app === "alipayqr") {
|
|
|
this.pay(this.money, "A01", "3", 56);
|
|
|
- console.log("苹果游客支付宝url")
|
|
|
+ //console.log("苹果游客支付宝url")
|
|
|
}else if(url.app === "weixin://scanqrcode"){
|
|
|
- console.log("苹果游客微信支付url")
|
|
|
+ //console.log("苹果游客微信支付url")
|
|
|
this.pay(this.money, "W06", "2", 56);
|
|
|
}else{
|
|
|
|