test:支付回调跳转

This commit is contained in:
Apple 2022-10-09 17:06:20 +08:00
parent 1b54d9a269
commit 3b21f61f82
1 changed files with 7 additions and 1 deletions

View File

@ -22,7 +22,7 @@
alt="" />
<p class="success">支付成功</p>
<p class="bottom" v-if="orderInfo.type==2" @click="receiveFn">立即兑换</p>
<p class="note" v-if="orderInfo.type==2">也可在【订单列表】中查看并兑换</p>
<p class="note" v-if="orderInfo.type==2">也可在【订单列表】中查看并兑换{{link}}</p>
</div>
<!-- 弹出提示 -->
<model-pop :show.sync="popAttr.show" :title="popAttr.title" :status="popAttr.status" :text="popAttr.text"
@ -43,6 +43,7 @@
text: '错误信息'
},
plaflam:1,
link:'',
redirect_url:'' //微信小程序链接
};
},
@ -73,6 +74,11 @@
if(res.data.type==2){ //1 商品 2立减金
//channel 1支付宝 2微信
this.plaflam=res.data.goods.entity.channel;//只有立减金商品才有channel字段
let banklink = encodeURIComponent(
window.location.origin +
"/alipay.html?orderNumber=" + res.data.order_number
);
this.link = "http://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
}
}
}).catch();