|
@@ -25,6 +25,7 @@ import inactiveButtonIcon from '@common/images/icon_checkbox_default.png'
|
|
import activeButtonIconTenant from '@common/images/icon_checkbox-tenant.png'
|
|
import activeButtonIconTenant from '@common/images/icon_checkbox-tenant.png'
|
|
import iconWechat from '@common/images/icon-wechat.png'
|
|
import iconWechat from '@common/images/icon-wechat.png'
|
|
import iconAlipay from '@common/images/icon-alipay.png'
|
|
import iconAlipay from '@common/images/icon-alipay.png'
|
|
|
|
+import { browser } from '@/helpers/utils'
|
|
|
|
|
|
interface IOrderInfo {
|
|
interface IOrderInfo {
|
|
orderNo: string | number
|
|
orderNo: string | number
|
|
@@ -108,7 +109,13 @@ export default defineComponent({
|
|
// return
|
|
// return
|
|
// }
|
|
// }
|
|
|
|
|
|
- !noBack && this.$router.go(-1)
|
|
|
|
|
|
+ if (!noBack) {
|
|
|
|
+ if (browser().isApp) {
|
|
|
|
+ postMessage({ api: 'goBack' })
|
|
|
|
+ } else {
|
|
|
|
+ this.$router.go(-1)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.onBackOut && this.onBackOut()
|
|
this.onBackOut && this.onBackOut()
|
|
},
|
|
},
|
|
async onSubmit() {
|
|
async onSubmit() {
|