|
@@ -203,7 +203,11 @@ export default {
|
|
|
window.native.startPay(this.payType === 'aliPay' ? 3 : 2, res.data.myOrderNum, 1);
|
|
|
}
|
|
|
if (this.$userAgent.isIos) {
|
|
|
- // window.native.startPay(1, res.data.myOrderNum, 1);
|
|
|
+ window.webkit.messageHandlers.startPay.postMessage({
|
|
|
+ payType: this.payType === 'aliPay' ? 3 : 2,
|
|
|
+ orderNum: res.data.myOrderNum,
|
|
|
+ actualPrice: this.actualPrice
|
|
|
+ });
|
|
|
}
|
|
|
} catch (error) {
|
|
|
Toast({
|