提交 a960cf42 authored 作者: matian's avatar matian

updates

上级 2e01098e
...@@ -15,7 +15,6 @@ const props = defineProps({ ...@@ -15,7 +15,6 @@ const props = defineProps({
type: Object type: Object
} }
}) })
// const defaultParams: any = ref({})
const openId: any = ref(window.localStorage.getItem('openId')) const openId: any = ref(window.localStorage.getItem('openId'))
const payment_method = ref('') const payment_method = ref('')
const orderInfoDetail: any = ref([]) const orderInfoDetail: any = ref([])
...@@ -68,13 +67,13 @@ const handleCreateOrder = () => { ...@@ -68,13 +67,13 @@ const handleCreateOrder = () => {
buy_count: '1', buy_count: '1',
notify_url: `https://ep-lms-api.ezijing.com/v2/student/push?tenant=paa&sso_id=${user.user?.id}&class_id=${props.shopItem?.class_id}&course_flag=1&course_id=${props.shopItem?.course_id}` notify_url: `https://ep-lms-api.ezijing.com/v2/student/push?tenant=paa&sso_id=${user.user?.id}&class_id=${props.shopItem?.class_id}&course_flag=1&course_id=${props.shopItem?.course_id}`
} }
if (wechat) { if (wechat && currentCheck.value === '4') {
if (openId.value) { if (openId.value) {
params.open_id = openId.value params.open_id = openId.value
params.payment_method = '3' params.payment_method = '3'
fetchPlaceOrder(params) fetchPlaceOrder(params)
} }
} else if (alipay) { } else if (alipay && currentCheck.value === '12') {
params.payment_method = '12' params.payment_method = '12'
fetchPlaceOrder(params) fetchPlaceOrder(params)
} }
...@@ -286,7 +285,9 @@ if ( ...@@ -286,7 +285,9 @@ if (
/> />
<div class="radio_tit">支付宝支付</div> <div class="radio_tit">支付宝支付</div>
<div <div
:class="payMode === 1 ? 'radio_check_active' : 'radio_check'" :class="
currentCheck === '12' ? 'radio_check_active' : 'radio_check'
"
@click="checkdChange('12')" @click="checkdChange('12')"
> >
<template v-if="currentCheck === '12'"> <template v-if="currentCheck === '12'">
...@@ -300,7 +301,9 @@ if ( ...@@ -300,7 +301,9 @@ if (
/> />
<div class="radio_tit">微信支付</div> <div class="radio_tit">微信支付</div>
<div <div
:class="payMode === 2 ? 'radio_check_active' : 'radio_check'" :class="
currentCheck === '4' ? 'radio_check_active' : 'radio_check'
"
@click="checkdChange('4')" @click="checkdChange('4')"
> >
<template v-if="currentCheck === '4'"> <template v-if="currentCheck === '4'">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论