Commit 151c79b5 authored by Xuguangxing's avatar Xuguangxing

fix

parent fecc0760
......@@ -108,7 +108,9 @@ function payByALIH5(info) {
*/
function payByThirdPartyCashier(info) {
if (!info.url) return;
const orderNo = cookies.get('orderNo')?.orderNo;
info.params.third = 1;
info.params.orderNo = orderNo;
const currentPath = encodeURIComponent(
window.location.origin +
'/payWaiting' +
......
......@@ -34,9 +34,9 @@
<script>
import { queryPayStatus } from '@/api/pay.api';
import cookies from '@/service/cookieStorage.service';
import localStorage from '@/service/localStorage.service';
// import localStorage from '@/service/localStorage.service';
import { goUrlExtends } from './extends';
import { isIOS } from '@/service/validation.service';
// import { isIOS } from '@/service/validation.service';
export default {
components: {},
extends: goUrlExtends,
......@@ -52,12 +52,12 @@ export default {
created() {
this.orderNo = this.$route.query.orderNo || cookies.get('orderNo')?.orderNo;
this.isWx = this.$route.query.isWx;
if (!localStorage.get('isAppInner')) {
const schema = isIOS ? 'xincheng://' : 'app://xincheng/splash';
setTimeout(() => {
window.location.href = schema;
}, 2000);
}
// if (!localStorage.get('isAppInner')) {
// const schema = isIOS ? 'xincheng://' : 'app://xincheng/splash';
// setTimeout(() => {
// window.location.href = schema;
// }, 2000);
// }
},
mounted() {
this.$dialog({
......@@ -92,7 +92,7 @@ export default {
},
goSuccess() {
// 支付成功
this.$router.push({ name: 'paySuccess' });
this.$router.replace({ name: 'paySuccess', query: { orderNo: this.orderNo } });
},
goPay() {
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