Commit 151c79b5 authored by Xuguangxing's avatar Xuguangxing

fix

parent fecc0760
...@@ -108,7 +108,9 @@ function payByALIH5(info) { ...@@ -108,7 +108,9 @@ function payByALIH5(info) {
*/ */
function payByThirdPartyCashier(info) { function payByThirdPartyCashier(info) {
if (!info.url) return; if (!info.url) return;
const orderNo = cookies.get('orderNo')?.orderNo;
info.params.third = 1; info.params.third = 1;
info.params.orderNo = orderNo;
const currentPath = encodeURIComponent( const currentPath = encodeURIComponent(
window.location.origin + window.location.origin +
'/payWaiting' + '/payWaiting' +
......
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
<script> <script>
import { queryPayStatus } from '@/api/pay.api'; import { queryPayStatus } from '@/api/pay.api';
import cookies from '@/service/cookieStorage.service'; import cookies from '@/service/cookieStorage.service';
import localStorage from '@/service/localStorage.service'; // import localStorage from '@/service/localStorage.service';
import { goUrlExtends } from './extends'; import { goUrlExtends } from './extends';
import { isIOS } from '@/service/validation.service'; // import { isIOS } from '@/service/validation.service';
export default { export default {
components: {}, components: {},
extends: goUrlExtends, extends: goUrlExtends,
...@@ -52,12 +52,12 @@ export default { ...@@ -52,12 +52,12 @@ export default {
created() { created() {
this.orderNo = this.$route.query.orderNo || cookies.get('orderNo')?.orderNo; this.orderNo = this.$route.query.orderNo || cookies.get('orderNo')?.orderNo;
this.isWx = this.$route.query.isWx; this.isWx = this.$route.query.isWx;
if (!localStorage.get('isAppInner')) { // if (!localStorage.get('isAppInner')) {
const schema = isIOS ? 'xincheng://' : 'app://xincheng/splash'; // const schema = isIOS ? 'xincheng://' : 'app://xincheng/splash';
setTimeout(() => { // setTimeout(() => {
window.location.href = schema; // window.location.href = schema;
}, 2000); // }, 2000);
} // }
}, },
mounted() { mounted() {
this.$dialog({ this.$dialog({
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
}, },
goSuccess() { goSuccess() {
// 支付成功 // 支付成功
this.$router.push({ name: 'paySuccess' }); this.$router.replace({ name: 'paySuccess', query: { orderNo: this.orderNo } });
}, },
goPay() { goPay() {
if (this.isWx) { if (this.isWx) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment