Explorar el Código

支付完成显示抽奖

lifanagju_citu hace 4 meses
padre
commit
0c56d82bcc

+ 4 - 3
src/views/mall/components/confirm_order/index.vue

@@ -30,7 +30,7 @@ import Confirm from '@/plugins/confirm'
 import Snackbar from '@/plugins/snackbar'
 import { useI18n } from '@/hooks/web/useI18n'
 import { useRouter, useRoute } from 'vue-router'; const router = useRouter()
-import { computed, ref } from 'vue'
+import { ref } from 'vue'
 import confirm from './confirm.vue'
 import pay from './pay.vue'
 const { t } = useI18n()
@@ -68,9 +68,9 @@ let closeConfirm = false // 关闭路由拦截
 
 const paySuccess = (e) => {
   closeConfirm = true
-  // router.replace({ path: '/mall/payOver', query: { price: e.price, orderId: orderId.value } })
   closeConfirm = true
-  setTimeout(() => { router.replace('/recruit/personal/personalCenter/tradeOrder?key=1') }, 500);
+  router.replace({ path: '/mall/payOver', query: { price: e.price, orderId: orderId.value } })
+  // setTimeout(() => { router.replace('/recruit/personal/personalCenter/tradeOrder?key=1') }, 500);
 }
 const payCancel = () => {
   Snackbar.warning('您已取消支付!')
@@ -81,6 +81,7 @@ const payCancel = () => {
 
 const goBack = () => {
   if (!orderId.value) return router.go(-1)
+  // 已经提交订单了则跳转到订单中心
   router.replace('/recruit/personal/personalCenter/tradeOrder?key=1')
 }
 

+ 1 - 1
src/views/mall/components/s-goods-item/index.vue

@@ -95,7 +95,7 @@
   // border: 1px dashed #000000;
 }
 .title {
-  font-size: 18px;
+  font-size: 17px;
   font-weight: bold;
   width: 30%;
 }