@@ -460,7 +460,7 @@ export default {
// 购买
getPurchase() {
if (this.bookIsBuy == "true") {
- this.$router.push("/courseview?bookId=" + this.TextBookId);
+ this.$router.push("/courseview?bookId=" + this.TextBookId+"&showCourse=true");
} else {
this.NopymentShow = true;
}
@@ -589,7 +589,7 @@ export default {
// 预览
handleView(row) {
sessionStorage.setItem("Bookdetail", JSON.stringify(row));
- this.$router.push("/courseview?bookId=" + row.id);
+ this.$router.push("/courseview?bookId=" + row.id+"&showCourse=true");
},
// 激活码
handleDiscount(row) {
@@ -265,6 +265,17 @@ export default {
type: "warning",
});
+ }else if(_this.$route.query.showCourse){
+ _this.bookId = this.$route.query.bookId;
+ _this.type = this.$route.query.type;
+ const MethodName = "book-book_manager-GetBook";
+ const data = {
+ id: _this.bookId,
+ };
+ getContent(MethodName, data).then((res) => {
+ this.showContent = true
+ _this.name = res.name;
+ });
}else {
_this.$message({
message: "链接已失效",