提交 4dd32193 编写于 作者: guangjun.yang's avatar guangjun.yang

1、修改not-found页面

2、打开激活与购买按钮
3、添加项目详情页面(空)
上级 e9e4d1fe
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<van-collapse-item <van-collapse-item
v-for="(portalModule, index) in component.portalModuleDTOS" v-for="(portalModule, index) in component.portalModuleDTOS"
:key="index" :key="index"
:title="(parseInt(index) + 1) + '.' + portalModule.moduleName | shortName(19)" :title="portalModule.moduleName | shortName(19)"
:name="portalModule.expandKey" :name="portalModule.expandKey"
:value="portalModule.value" :value="portalModule.value"
:disabled="portalModule.disabled" :disabled="portalModule.disabled"
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<van-collapse-item <van-collapse-item
v-for="(portalModule, index) in component.portalModuleDTOS" v-for="(portalModule, index) in component.portalModuleDTOS"
:key="index" :key="index"
:title="(parseInt(index) + 1) + '.' + portalModule.moduleName | shortName(19)" :title="portalModule.moduleName | shortName(19)"
:name="portalModule.expandKey" :name="portalModule.expandKey"
:value="portalModule.value" :value="portalModule.value"
:disabled="portalModule.disabled" :disabled="portalModule.disabled"
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<section class="bind-cart-wrapper"> <section class="bind-cart-wrapper">
<article class="left"> <article class="left">
<div class="top"> <div class="top">
<span class="discount">{{(cardInfo.preferentialPrice || cardInfo.costPrice) | formatMoney}}</span> <span class="discount">{{(cardInfo.couponPrice || cardInfo.preferentialPrice || cardInfo.costPrice) | formatMoney}}</span>
<span v-show="cardInfo.preferentialPrice" class="price"> <span v-show="cardInfo.couponPrice || cardInfo.preferentialPrice" class="price">
<del>原价¥{{cardInfo.costPrice | formatMoney}}</del> <del>原价¥{{cardInfo.costPrice | formatMoney}}</del>
</span> </span>
</div> </div>
...@@ -97,23 +97,22 @@ export default { ...@@ -97,23 +97,22 @@ export default {
justify-content: center; justify-content: center;
width: 80px; width: 80px;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 700;
text-align: center; text-align: center;
color: #7f7f7f;
border: 1px solid #d2b573;
&.left { &.left {
border-radius: 20px 0px 0px 20px; border-radius: 20px 0px 0px 20px;
border: 1px solid rgba(255, 122, 75, 1);
border-right-style: none; border-right-style: none;
// color: #ff7a4b; color: #ff7a4b;
} }
&.right { &.right {
// background: linear-gradient( background: linear-gradient(
// 137deg, 137deg,
// rgba(255, 166, 95, 1) 0%, rgba(255, 166, 95, 1) 0%,
// rgba(255, 122, 75, 1) 100% rgba(255, 122, 75, 1) 100%
// ); );
border-radius: 0px 20px 20px 0px; border-radius: 0px 20px 20px 0px;
// color: #fff; color: #fff;
} }
} }
} }
......
...@@ -11,6 +11,8 @@ const creditedit = r => require.ensure([], () => r(require('../views/credit-edit ...@@ -11,6 +11,8 @@ const creditedit = r => require.ensure([], () => r(require('../views/credit-edit
const creditdetail = r => require.ensure([], () => r(require('../views/credit-detail')), 'credit-detail') const creditdetail = r => require.ensure([], () => r(require('../views/credit-detail')), 'credit-detail')
const excgtips = r => require.ensure([], () => r(require('../views/exchange-tips')), 'exchange-tips') const excgtips = r => require.ensure([], () => r(require('../views/exchange-tips')), 'exchange-tips')
const icreditdetail = r => require.ensure([], () => r(require('../views/I-credit-detail')), 'I-credit-detail') const icreditdetail = r => require.ensure([], () => r(require('../views/I-credit-detail')), 'I-credit-detail')
const notFound = r => require.ensure([], () => r(require('../views/not-found')), 'not-found')
const goodsDetail = r => require.ensure([], () => r(require('../views/goods-detail')), 'goods-detail')
export default [{ export default [{
path: '/', path: '/',
...@@ -68,7 +70,13 @@ export default [{ ...@@ -68,7 +70,13 @@ export default [{
path: '/icredit-detail', path: '/icredit-detail',
component: icreditdetail component: icreditdetail
}, },
{
path: '/not-found',
component: notFound
},
{
path: '/goods-detail',
component: goodsDetail
},
] ]
}] }]
<template>
<div class="goods-details-wrapper">
商品详情页面
</div>
</template>
<script>
export default {
}
</script>
<style lang="less" scoped>
.goods-details-wrapper {
font-size: 14px;
}
</style>
\ No newline at end of file
<template>
<div class="not-found">
<img class="img" src="~@/images/no-content.png" alt />
<p class="tip">{{tips}}</p>
<p class="tip-2">更多内容,请前往云鹊医APP学习</p>
</div>
</template>
<script>
export default {
data() {
return {
tips: "此课程已下架,无法查看",
fromPage: "2"
};
},
mounted() {
this.fromPage = this.$route.query.fromPage || '2'; // 1: 来处项目详情页; 2: 来处课程详情页
if(this.fromPage == 2) {
this.tips = "此项目已下架, 无法查看";
}
},
methods: {}
};
</script>
<style lang="less" scoped>
.not-found {
.img {
display: block;
width: 120px;
margin: 100px auto 0;
}
.tip {
font-size: 18px;
font-weight: 700;
color: #373839;
text-align: center;
}
.tip-2 {
margin-top: 12px;
font-size: 14px;
font-weight: 400;
color: #676869;
text-align: center;
}
}
</style>
...@@ -152,19 +152,19 @@ ...@@ -152,19 +152,19 @@
<!-- <div v-if="project.cmeType == 2 && !isWeb" style="padding-top: 30px"></div> --> <!-- <div v-if="project.cmeType == 2 && !isWeb" style="padding-top: 30px"></div> -->
<div style="padding-top: 20px"></div> <div style="padding-top: 20px"></div>
<!-- <BindCardButton <BindCardButton
v-if="project.cmeType == 2 && !hasBindCard && !isWeb" v-if="project.cmeType == 2 && !hasBindCard"
:cardInfo="cardInfo" :cardInfo="cardInfo"
@changeClick="changeClick" @changeClick="changeClick"
@gotoBuy="confirm" @gotoBuy="confirm"
></BindCardButton> --> ></BindCardButton>
<BindCardButtonShare <!-- <BindCardButtonShare
v-if="!hasBindCard" v-if="!hasBindCard"
:cardInfo="cardInfo" :cardInfo="cardInfo"
@changeClick="changeClick" @changeClick="changeClick"
@gotoBuy="confirm" @gotoBuy="confirm"
></BindCardButtonShare> ></BindCardButtonShare> -->
<!--去激活--> <!--去激活-->
<ChangeCard <ChangeCard
...@@ -234,7 +234,8 @@ import { mapGetters, mapActions } from "vuex"; ...@@ -234,7 +234,8 @@ import { mapGetters, mapActions } from "vuex";
import vueFilters from "@/utils/filter"; import vueFilters from "@/utils/filter";
import { Toast } from "vant"; import { Toast } from "vant";
// import CardPopup from "@/components/cme/card-popup"; // import CardPopup from "@/components/cme/card-popup";
import BindCardButtonShare from "@/components/cme/bind-card-button-share"; import BindCardButton from "@/components/cme/bind-card-button";
// import BindCardButtonShare from "@/components/cme/bind-card-button-share";
import ChangeCard from "@/components/cme/change-card"; import ChangeCard from "@/components/cme/change-card";
import CourseCovers from "@/components/course/course-covers"; import CourseCovers from "@/components/course/course-covers";
import PicaVideo from '@/components/course/pica-video'; import PicaVideo from '@/components/course/pica-video';
...@@ -369,7 +370,8 @@ export default { ...@@ -369,7 +370,8 @@ export default {
// CardPopup, // CardPopup,
// CommonAdertImg, // CommonAdertImg,
NoMoreContent, NoMoreContent,
BindCardButtonShare, BindCardButton,
// BindCardButtonShare,
ChangeCard, ChangeCard,
CourseCovers, CourseCovers,
PicaVideo PicaVideo
...@@ -429,7 +431,7 @@ export default { ...@@ -429,7 +431,7 @@ export default {
this.GET(`portal/shareParam/queryByUuid`, param).then(res => { this.GET(`portal/shareParam/queryByUuid`, param).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
this.shareParam = JSON.parse(res.data || "{}"); this.shareParam = JSON.parse(res.data || "{}");
this.projectId = this.shareParam.projectId || 0; // 178 this.projectId = this.shareParam.projectId || 1781; // 178
this.getProjectParticularsV2(); this.getProjectParticularsV2();
console.log('queryByUuid', res); console.log('queryByUuid', res);
} }
...@@ -603,8 +605,9 @@ export default { ...@@ -603,8 +605,9 @@ export default {
// this.$sendBuriedData({ // this.$sendBuriedData({
// component_tag: `882#88203` // component_tag: `882#88203`
// }); // });
window.location.href = let jumpUrl = getWebPageUrl(`profexam/#/goods-detail?goodsId=${this.goodsId}&token=${this.token}`);
"https://a.app.qq.com/o/simple.jsp?pkgname=com.picahealth.yunque"; window.location.href = jumpUrl;
// "https://a.app.qq.com/o/simple.jsp?pkgname=com.picahealth.yunque";
}, },
// 首次进入考试时记录(点击‘我知道了’时调用) // 首次进入考试时记录(点击‘我知道了’时调用)
...@@ -931,6 +934,9 @@ export default { ...@@ -931,6 +934,9 @@ export default {
console.log("share success..."); console.log("share success...");
} }
); );
} else {
_this.showLoading = false;
_this.$router.replace('/not-found?fromPage=2');
} }
}); });
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册