|
@@ -79,6 +79,7 @@
|
|
:data="data"
|
|
:data="data"
|
|
:goods_type="401"
|
|
:goods_type="401"
|
|
:changeOrderNumber="changeOrderNumber"
|
|
:changeOrderNumber="changeOrderNumber"
|
|
|
|
+ :goods_detail_type="goods_detail_type"
|
|
/>
|
|
/>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<el-dialog
|
|
<el-dialog
|
|
@@ -132,6 +133,7 @@ export default {
|
|
IsDownload: false, //是否可以下载
|
|
IsDownload: false, //是否可以下载
|
|
allList: null,
|
|
allList: null,
|
|
isData: false,
|
|
isData: false,
|
|
|
|
+ goods_detail_type: null,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
@@ -241,6 +243,7 @@ export default {
|
|
goods_person_name_desc: this.data.teacher,
|
|
goods_person_name_desc: this.data.teacher,
|
|
goods_picture_id: this.data.coverFileId,
|
|
goods_picture_id: this.data.coverFileId,
|
|
goods_price: this.data.price,
|
|
goods_price: this.data.price,
|
|
|
|
+ goods_detail_type: this.goods_detail_type,
|
|
})
|
|
})
|
|
.then((res) => {
|
|
.then((res) => {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -303,6 +306,7 @@ export default {
|
|
this.getNumPages();
|
|
this.getNumPages();
|
|
}
|
|
}
|
|
this.changePrice(this.data.price * 1, 24, 16);
|
|
this.changePrice(this.data.price * 1, 24, 16);
|
|
|
|
+ this.goods_detail_type = this.getimgurl(this.data);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch((res) => {
|
|
.catch((res) => {
|
|
@@ -351,6 +355,16 @@ export default {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ getimgurl(item) {
|
|
|
|
+ let index = item.tag.indexOf("downloadable");
|
|
|
|
+ let type = "";
|
|
|
|
+ if (index != -1) {
|
|
|
|
+ type = item.tag[2];
|
|
|
|
+ } else {
|
|
|
|
+ type = item.tag[1];
|
|
|
|
+ }
|
|
|
|
+ return type;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
async created() {
|
|
async created() {
|
|
await updateWordPack({
|
|
await updateWordPack({
|