function wxPay(that,orderId, amount,description) {
let url = '';
that.$api.wxPay({
description: description,
//amount*100
amount: amount*100,
orderId: orderId,
notifyUrl: "",
createBy: uni.getStorageSync("login_user_info").id,
wxRecoder: true,
payerClientType: uni.getSystemInfoSync().platform=='ios' || uni.getSystemInfoSync().platform=='IOS' ? 'iOS' :'Android'
})
.then((res) => {
console.info(res.result, "res.result");
url = res.result;
that.$Router.push({
name: '',
params: {
src: url
}
})
}).catch((err) => {
that.$tip.toast(err.message)
})
}
export default wxPay
uniapp微信支付
最新推荐文章于 2025-04-18 00:00:59 发布