|
@@ -720,40 +720,43 @@ export default {
|
|
|
let Bookdetail = sessionStorage.getItem("Bookdetail");
|
|
|
if (Bookdetail) {
|
|
|
Bookdetail = JSON.parse(Bookdetail);
|
|
|
- }
|
|
|
- let MethodName = "order-collection_manager-AddMyCollection";
|
|
|
- let text = "";
|
|
|
- this.item.forEach((item) => {
|
|
|
- if (item.chs != "#") {
|
|
|
- text += item.chs;
|
|
|
- }
|
|
|
- });
|
|
|
- let sentence_json = {
|
|
|
- item: JSON.stringify(this.item),
|
|
|
- bg: this.bg,
|
|
|
- ed: this.ed,
|
|
|
- mp3: this.mp3,
|
|
|
- pyPosition: this.curQue.pyPosition,
|
|
|
- };
|
|
|
- let data = {
|
|
|
- goods_id: this.currentTreeID,
|
|
|
- goods_type: 502,
|
|
|
- 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,
|
|
|
- sentence: {
|
|
|
- sentence_text: text,
|
|
|
- sentence_json: JSON.stringify(sentence_json),
|
|
|
- },
|
|
|
- };
|
|
|
- LearnWebSI(MethodName, data).then((res) => {
|
|
|
- this.$set(this.isCollArr, this.curSentIndex, true);
|
|
|
- console.log();
|
|
|
- this.$message.success("收藏成功!");
|
|
|
- });
|
|
|
+
|
|
|
+ let MethodName = "order-collection_manager-AddMyCollection";
|
|
|
+ let text = "";
|
|
|
+ this.item.forEach((item) => {
|
|
|
+ if (item.chs != "#") {
|
|
|
+ text += item.chs;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ let sentence_json = {
|
|
|
+ item: JSON.stringify(this.item),
|
|
|
+ bg: this.bg,
|
|
|
+ ed: this.ed,
|
|
|
+ mp3: this.mp3,
|
|
|
+ pyPosition: this.curQue.pyPosition,
|
|
|
+ };
|
|
|
+ let data = {
|
|
|
+ goods_id: this.currentTreeID,
|
|
|
+ goods_type: 502,
|
|
|
+ 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,
|
|
|
+ sentence: {
|
|
|
+ sentence_text: text,
|
|
|
+ sentence_json: JSON.stringify(sentence_json),
|
|
|
+ },
|
|
|
+ };
|
|
|
+ LearnWebSI(MethodName, data).then((res) => {
|
|
|
+ this.$set(this.isCollArr, this.curSentIndex, true);
|
|
|
+ console.log();
|
|
|
+ this.$message.success("收藏成功!");
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ this.$message.warning("权限不足!");
|
|
|
+ }
|
|
|
},
|
|
|
//取消收藏
|
|
|
cancleColl() {
|