提交 4ccfd918 authored 作者: 王鹏飞's avatar 王鹏飞

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

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