|
@@ -79,9 +79,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
downloadPdf() {
|
|
|
- wx.miniProgram.navigateTo({
|
|
|
- url: `/pages/package-parkingFee/file?invoiceUrl=${encodeURIComponent(this.order.invoiceUrl)}`,
|
|
|
- });
|
|
|
+ if (window.__wxjs_environment === 'miniprogram') {
|
|
|
+ wx.miniProgram.navigateTo({
|
|
|
+ url: `/pages/package-parkingFee/file?invoiceUrl=${encodeURIComponent(this.order.invoiceUrl)}`,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.isAlipayClient) {
|
|
|
+ my?.navigateTo({
|
|
|
+ url: `/pages/package-parkingFee/file?invoiceUrl=${encodeURIComponent(this.order.invoiceUrl)}`,
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
};
|