|
@@ -172,8 +172,8 @@
|
|
|
<template
|
|
|
v-if="
|
|
|
TextbookData.is_deleted == 'false' &&
|
|
|
- bookIsBuy == 'false' &&
|
|
|
- TextbookData.publish_status == 0
|
|
|
+ bookIsBuy == 'false' &&
|
|
|
+ TextbookData.publish_status == 0
|
|
|
"
|
|
|
>
|
|
|
<div class="noview-msg-box">
|
|
@@ -183,7 +183,7 @@
|
|
|
<!-- 商品详情 -->
|
|
|
<el-dialog
|
|
|
class="buyWindow"
|
|
|
- :title="$t('Key52')"
|
|
|
+ title=""
|
|
|
:visible.sync="NopymentShow"
|
|
|
width="720px"
|
|
|
:before-close="closeNoPyment"
|
|
@@ -226,7 +226,7 @@ export default {
|
|
|
Header,
|
|
|
Confirmorder,
|
|
|
Payment,
|
|
|
- BookView,
|
|
|
+ BookView
|
|
|
},
|
|
|
props: {},
|
|
|
data() {
|
|
@@ -244,7 +244,7 @@ export default {
|
|
|
IsDownload: false, //是否可以下载
|
|
|
detailSHow: true, // 除教材预览外其他内容是否显示
|
|
|
bookIsBuy: "false", // 教材是否已购买
|
|
|
- isData: false,
|
|
|
+ isData: false
|
|
|
};
|
|
|
},
|
|
|
//计算属性 类似于data概念
|
|
@@ -307,9 +307,9 @@ export default {
|
|
|
goods_name: this.TextbookData.name,
|
|
|
goods_person_name_desc: this.TextbookData.author,
|
|
|
goods_picture_id: this.TextbookData.picture_id,
|
|
|
- goods_price: this.TextbookData.price,
|
|
|
+ goods_price: this.TextbookData.price
|
|
|
};
|
|
|
- LearnWebSI(Mname, data).then((res) => {
|
|
|
+ LearnWebSI(Mname, data).then(res => {
|
|
|
this.enshrine = "true";
|
|
|
this.$message.success(this.$t("Key575")); //"收藏成功"
|
|
|
});
|
|
@@ -317,9 +317,9 @@ export default {
|
|
|
let Mname = "order-collection_manager-CancelMyGoodsCollection";
|
|
|
let data = {
|
|
|
goods_type: 101,
|
|
|
- goods_id_list: [this.TextBookId],
|
|
|
+ goods_id_list: [this.TextBookId]
|
|
|
};
|
|
|
- LearnWebSI(Mname, data).then((res) => {
|
|
|
+ LearnWebSI(Mname, data).then(res => {
|
|
|
this.enshrine = "false";
|
|
|
this.$message.success(this.$t("Key396")); //"取消收藏成功"
|
|
|
});
|
|
@@ -341,9 +341,9 @@ export default {
|
|
|
let Mname = "order-order_manager-CheckMyGoodsBuyStatus";
|
|
|
let data = {
|
|
|
goods_type: 101,
|
|
|
- goods_id: this.TextBookId,
|
|
|
+ goods_id: this.TextBookId
|
|
|
};
|
|
|
- LearnWebSI(Mname, data).then((res) => {
|
|
|
+ LearnWebSI(Mname, data).then(res => {
|
|
|
this.bookIsBuy = res.is_buy; //是否已购买 true 是 false 否
|
|
|
});
|
|
|
},
|
|
@@ -352,9 +352,9 @@ export default {
|
|
|
let Mname = "order-collection_manager-CheckMyGoodsCollectionStatus";
|
|
|
let data = {
|
|
|
goods_type: 101,
|
|
|
- goods_id: this.TextBookId,
|
|
|
+ goods_id: this.TextBookId
|
|
|
};
|
|
|
- LearnWebSI(Mname, data).then((res) => {
|
|
|
+ LearnWebSI(Mname, data).then(res => {
|
|
|
this.enshrine = res.is_collection;
|
|
|
});
|
|
|
},
|
|
@@ -364,18 +364,18 @@ export default {
|
|
|
let Mname = "book-book_manager-GetBook";
|
|
|
// 获取课程详情
|
|
|
TextbookAPI(Mname, {
|
|
|
- id: this.TextBookId,
|
|
|
+ id: this.TextBookId
|
|
|
})
|
|
|
- .then((res) => {
|
|
|
+ .then(res => {
|
|
|
this.TextbookData = res;
|
|
|
this.loading = false;
|
|
|
})
|
|
|
- .catch((res) => {
|
|
|
+ .catch(res => {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
this.handleIsBuy();
|
|
|
this.handleIsEnshrine();
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
async created() {
|
|
@@ -401,8 +401,8 @@ export default {
|
|
|
"Key475",
|
|
|
"Key575",
|
|
|
"Key612",
|
|
|
- "Key613",
|
|
|
- ],
|
|
|
+ "Key613"
|
|
|
+ ]
|
|
|
});
|
|
|
this.isData = true;
|
|
|
this.getdetail();
|
|
@@ -422,7 +422,7 @@ export default {
|
|
|
//生命周期-销毁完成
|
|
|
destoryed() {},
|
|
|
//如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
- activated() {},
|
|
|
+ activated() {}
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|