提交 622a5e43 authored 作者: 王鹏飞's avatar 王鹏飞

chore: 学习系统地址修改; paa -> prp;

上级 09b12cdd
......@@ -31,7 +31,7 @@ export function uploadFile(data: object) {
// 获取已经购买的课程
export function getBuyShop() {
return httpRequest.get('https://learn-api.ezijing.com/api/lms-ep/v2/education/courses/my', {
headers: { tenant: 'paa' }
headers: { tenant: 'prp' }
})
}
/**
......
......@@ -36,7 +36,7 @@ const isScrolled = computed(() => {
})
const handleStudy = () => {
// if (courseStore.courses.length > 0) {
window.open('https://paa-learning.ezijing.com')
window.open('https://fi-learning.ezijing.com')
// } else {
// ElMessage.warning('请先购买课程,才能开始学习')
// }
......
......@@ -31,7 +31,7 @@ export function usePay() {
sku_id: shopStore.shopItem?.sku_id,
buy_count: '1',
redirect_url: redirectURL.value,
notify_url: `https://ep-lms-api.ezijing.com/v2/student/push?tenant=paa&sso_id=${userStore.user?.id}&class_id=${shopStore.shopItem?.class_id}&course_flag=1&course_id=${shopStore.shopItem?.course_id}`
notify_url: `https://ep-lms-api.ezijing.com/v2/student/push?tenant=prp&sso_id=${userStore.user?.id}&class_id=${shopStore.shopItem?.class_id}&course_flag=1&course_id=${shopStore.shopItem?.course_id}`
})
const params = Object.assign(defaultParams, options)
......
......@@ -21,7 +21,7 @@ const orderId = useStorage('order_detail_id', route.query.order_detail_id)
const order = ref<Order>()
async function getOrder() {
getOrderList({ order_detail_id: orderId.value })
.then((res) => {
.then(res => {
order.value = res.data[0]
if (order.value?.order_status === '4') {
// 支付成功
......@@ -44,7 +44,7 @@ const start_time = getDateTime(0)
const end_time = getDateTime(90)
const handleStudy = () => {
window.open('https://paa-learning.ezijing.com')
window.open('https://fi-learning.ezijing.com')
}
const handlePrev = () => {
router.replace({ path: `/shop/detail/${shopItem?.id}` })
......@@ -56,9 +56,7 @@ const handlePrev = () => {
<div class="main_pay" v-if="!mobile">
<div class="pay_con">
<div class="con_top">
<img
src="https://webapp-pub.ezijing.com/project_online/fi/icon_sucess.png"
/>
<img src="https://webapp-pub.ezijing.com/project_online/fi/icon_sucess.png" />
<div class="top_tit">支付成功!</div>
</div>
<div class="con_info">
......@@ -70,9 +68,7 @@ const handlePrev = () => {
<div class="price_tit">支付金额:</div>
<div class="price_id">¥{{ order.payment_money }}</div>
</div>
<div class="info_tips">
若有疑问请与客服联系,我们将尽快为您提供服务
</div>
<div class="info_tips">若有疑问请与客服联系,我们将尽快为您提供服务</div>
<div class="info_btn">
<div class="btn_prev" @click="handlePrev">返回</div>
<div class="btn_study" @click="handleStudy">开始学习</div>
......@@ -82,29 +78,19 @@ const handlePrev = () => {
</div>
<div class="main_pay_mobile" v-else>
<div class="con_nav">
<img
class="img1"
src="https://webapp-pub.ezijing.com/project_online/fi/prev_mini.png"
@click="handlePrev"
/>
<img class="img1" src="https://webapp-pub.ezijing.com/project_online/fi/prev_mini.png" @click="handlePrev" />
<div class="nav_title">
<img
class="img2"
src="https://webapp-pub.ezijing.com/project_online/fi/icon_sucess.png"
/>
<img class="img2" src="https://webapp-pub.ezijing.com/project_online/fi/icon_sucess.png" />
支付成功
</div>
</div>
<div class="course_con">
<img
src="https://img1.baidu.com/it/u=3009731526,373851691&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500"
@click="handlePrev"
/>
@click="handlePrev" />
<div class="course_dec">
<div class="info_title">{{ shopItem?.title }}</div>
<div class="info_date">
有效期:{{ start_time }}{{ end_time }}
</div>
<div class="info_date">有效期:{{ start_time }}{{ end_time }}</div>
</div>
</div>
<div class="order_main">
......@@ -114,9 +100,7 @@ const handlePrev = () => {
<div class="order_price">
支付金额:<span>{{ order.payment_money }}</span>
</div>
<div class="order_after_sales">
若有疑问请与客服联系,我们将尽快为您提供服务
</div>
<div class="order_after_sales">若有疑问请与客服联系,我们将尽快为您提供服务</div>
</div>
<div class="start_study">
<div class="study_con" @click="handleStudy">开始学习</div>
......
......@@ -19,7 +19,7 @@ const handleBuyCourse = () => {
console.log(props.payStatus, props.shopItem?.isBuy)
if (user.isLogin) {
if (props.payStatus === '4' || props.shopItem?.isBuy === true) {
// window.open('https://paa-learning.ezijing.com')
// window.open('https://fi-learning.ezijing.com')
buyDialogVisible.value = true
} else {
// if (props.shopItem?.type === '课程包') {
......
......@@ -23,7 +23,7 @@ const handleBuy = (courseItem: any) => {
if (user.isLogin) {
if (courseItem?.isBuy === true) {
buyDialogVisible.value = true
// window.open('https://paa-learning.ezijing.com')
// window.open('https://fi-learning.ezijing.com')
} else {
// if (courseItem.type === '课程包') {
// buyDialogVisible.value = true
......
......@@ -33,7 +33,7 @@ const shareTit = computed(() => {
const handleBuyCourse = () => {
if (user.isLogin) {
if (props.payStatus === '4' || props.shopItem?.isBuy === true) {
// window.open('https://paa-learning.ezijing.com')
// window.open('https://fi-learning.ezijing.com')
buyDialogVisible.value = true
} else {
// if (props.shopItem?.type === '课程包') {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论