|
@@ -185,8 +185,8 @@ import Audio from "./AudioRed.vue";
|
|
import Strockplayredline from "./Strockplayredline.vue";
|
|
import Strockplayredline from "./Strockplayredline.vue";
|
|
import Practice from "./Practice.vue";
|
|
import Practice from "./Practice.vue";
|
|
import WordPhraseDetail from "./WordPhraseDetail.vue";
|
|
import WordPhraseDetail from "./WordPhraseDetail.vue";
|
|
-import { getContentFile, LearnWebSI, getHZChineseInfo } from "@/api/ajax";
|
|
|
|
-import { isChn } from "@/utils/index";
|
|
|
|
|
|
+import { getContentFile, LearnWebSI, getHZChineseInfo } from "../../../../api/ajax";
|
|
|
|
+import { isChn } from "../../../../utils/index";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "Wordcard",
|
|
name: "Wordcard",
|
|
@@ -236,25 +236,27 @@ export default {
|
|
let Bookdetail = sessionStorage.getItem("Bookdetail");
|
|
let Bookdetail = sessionStorage.getItem("Bookdetail");
|
|
if (Bookdetail) {
|
|
if (Bookdetail) {
|
|
Bookdetail = JSON.parse(Bookdetail);
|
|
Bookdetail = JSON.parse(Bookdetail);
|
|
|
|
+ let MethodName = "order-collection_manager-AddMyCollection";
|
|
|
|
+ let data = {
|
|
|
|
+ goods_id: this.currentTreeID,
|
|
|
|
+ goods_type: 501,
|
|
|
|
+ goods_name: Bookdetail.name,
|
|
|
|
+ goods_person_name_desc: Bookdetail.description
|
|
|
|
+ ? Bookdetail.description
|
|
|
|
+ : "",
|
|
|
|
+ goods_picture_id: Bookdetail.picture_id ? Bookdetail.picture_id : "",
|
|
|
|
+ goods_price: Bookdetail.price,
|
|
|
|
+ new_word: {
|
|
|
|
+ new_word: this.word.detail.new_word,
|
|
|
|
+ },
|
|
|
|
+ };
|
|
|
|
+ LearnWebSI(MethodName, data).then((res) => {
|
|
|
|
+ this.collFlag = true;
|
|
|
|
+ this.$message.success("收藏成功!");
|
|
|
|
+ });
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.warning("权限不足!");
|
|
}
|
|
}
|
|
- let MethodName = "order-collection_manager-AddMyCollection";
|
|
|
|
- let data = {
|
|
|
|
- goods_id: this.currentTreeID,
|
|
|
|
- goods_type: 501,
|
|
|
|
- goods_name: Bookdetail.name,
|
|
|
|
- goods_person_name_desc: Bookdetail.description
|
|
|
|
- ? Bookdetail.description
|
|
|
|
- : "",
|
|
|
|
- goods_picture_id: Bookdetail.picture_id ? Bookdetail.picture_id : "",
|
|
|
|
- goods_price: Bookdetail.price,
|
|
|
|
- new_word: {
|
|
|
|
- new_word: this.word.detail.new_word,
|
|
|
|
- },
|
|
|
|
- };
|
|
|
|
- LearnWebSI(MethodName, data).then((res) => {
|
|
|
|
- this.collFlag = true;
|
|
|
|
- this.$message.success("收藏成功!");
|
|
|
|
- });
|
|
|
|
},
|
|
},
|
|
//取消收藏
|
|
//取消收藏
|
|
cancleColl() {
|
|
cancleColl() {
|