|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-04-29 14:26:10
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-06-29 17:25:38
|
|
|
|
|
* @LastEditTime: 2022-06-30 16:03:35
|
|
|
|
|
* @Description: file content
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
@ -19,15 +19,7 @@ export const Alipay = async ({orderId})=>{
|
|
|
|
|
const par = result.payDataInfo;
|
|
|
|
|
uni.requestPayment({
|
|
|
|
|
provider: 'alipay',
|
|
|
|
|
orderInfo :{
|
|
|
|
|
"appid": par.appId, // 微信开放平台 - 应用 - AppId
|
|
|
|
|
"noncestr": par.nonceStr, // 随机字符串
|
|
|
|
|
"package": par.packageValue, // 固定值
|
|
|
|
|
"partnerid": par.partnerId, // 微信支付商户号
|
|
|
|
|
"prepayid": par.prepayId, // 统一下单订单号
|
|
|
|
|
"timestamp": par.timeStamp ,// 时间戳(单位:秒)
|
|
|
|
|
"sign": par.sign // 签名,这里用的 MD5 签名
|
|
|
|
|
},
|
|
|
|
|
orderInfo :par.payData,
|
|
|
|
|
success(res) {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url : `/payResult?orderId=${orderId}&payType=appWx`
|
|
|
|
|