|  | @@ -207,7 +207,7 @@ function clear() {
 | 
											
												
													
														|  |    remainder.value = 1
 |  |    remainder.value = 1
 | 
											
												
													
														|  |    payQrCodeTxt.value = '' // 二维码内容
 |  |    payQrCodeTxt.value = '' // 二维码内容
 | 
											
												
													
														|  |    if (timer.value) clearInterval(timer.value); timer.value = null
 |  |    if (timer.value) clearInterval(timer.value); timer.value = null
 | 
											
												
													
														|  | -  if (remainderTimer.value) clearInterval(remainderTimer.value); remainderTimer.value = null // 每一次点击都清除上一个轮询
 |  | 
 | 
											
												
													
														|  | 
 |  | +  if (remainderTimer.value) clearInterval(remainderTimer.value); remainderTimer.value = null
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  // 1.获得支付方式
 |  |  // 1.获得支付方式
 | 
											
										
											
												
													
														|  | @@ -265,9 +265,9 @@ const getPayStatus = async () => {
 | 
											
												
													
														|  |      const data = await getOrderPayStatus({ id: orderInfo.value.id || orderInfo.value.payOrderId })
 |  |      const data = await getOrderPayStatus({ id: orderInfo.value.id || orderInfo.value.payOrderId })
 | 
											
												
													
														|  |      if ((data?.status - 0) === 10) {
 |  |      if ((data?.status - 0) === 10) {
 | 
											
												
													
														|  |        // 支付成功
 |  |        // 支付成功
 | 
											
												
													
														|  | -      if (timer.value) clearInterval(timer.value); timer.value = null
 |  | 
 | 
											
												
													
														|  | 
 |  | +      clear()
 | 
											
												
													
														|  |        setTimeout(() => {
 |  |        setTimeout(() => {
 | 
											
												
													
														|  | -        emit('paySuccess')
 |  | 
 | 
											
												
													
														|  | 
 |  | +        emit('paySuccess', { price: orderInfo.value.price })
 | 
											
												
													
														|  |          if (isWalletPay.value) updateAccountInfo() // 更新余额
 |  |          if (isWalletPay.value) updateAccountInfo() // 更新余额
 | 
											
												
													
														|  |          // Snackbar.success('支付成功')
 |  |          // Snackbar.success('支付成功')
 | 
											
												
													
														|  |          if (route.fullPath === props.returnUrl) router.go(0) // 刷新页面
 |  |          if (route.fullPath === props.returnUrl) router.go(0) // 刷新页面
 | 
											
										
											
												
													
														|  | @@ -286,11 +286,12 @@ const remainderZhShow = ref('') // 倒计时展示
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  const remainderTimer = ref(null)
 |  |  const remainderTimer = ref(null)
 | 
											
												
													
														|  |  // 初始化倒计时
 |  |  // 初始化倒计时
 | 
											
												
													
														|  | -const initIntervalFun = () => {
 |  | 
 | 
											
												
													
														|  | 
 |  | +const initIntervalFun = async () => {
 | 
											
												
													
														|  |    remainder.value = countdownTime // 初始倒计时时间
 |  |    remainder.value = countdownTime // 初始倒计时时间
 | 
											
												
													
														|  |    if (remainderTimer.value) clearInterval(remainderTimer.value); remainderTimer.value = null // 每一次点击都清除上一个轮询
 |  |    if (remainderTimer.value) clearInterval(remainderTimer.value); remainderTimer.value = null // 每一次点击都清除上一个轮询
 | 
											
												
													
														|  |    if (timer.value) clearInterval(timer.value); timer.value = null
 |  |    if (timer.value) clearInterval(timer.value); timer.value = null
 | 
											
												
													
														|  |    //
 |  |    //
 | 
											
												
													
														|  | 
 |  | +  await getPayStatus() // 立即查询一次支付状态
 | 
											
												
													
														|  |    remainderCalc(); remainderTimer.value = setInterval(() => { remainderCalc() }, 1000) // 倒计时计算
 |  |    remainderCalc(); remainderTimer.value = setInterval(() => { remainderCalc() }, 1000) // 倒计时计算
 | 
											
												
													
														|  |    timer.value = setInterval(() => { getPayStatus() }, 2000) // 轮巡支付状态
 |  |    timer.value = setInterval(() => { getPayStatus() }, 2000) // 轮巡支付状态
 | 
											
												
													
														|  |  }
 |  |  }
 |