diff --git a/src/components/buy/buy.vue b/src/components/buy/buy.vue index 4dfe9e6b6eba5a2898b9006aca7f7202a28ce568..06ba0cb18236c47fba7c777ac58c1af240566c02 100644 --- a/src/components/buy/buy.vue +++ b/src/components/buy/buy.vue @@ -200,12 +200,13 @@ export default { if (this.saleObj) { priceT = priceT - this.saleObj.money; } - priceT = (priceT / 100).toFixed(1); + priceT = (priceT / 100 ).toFixed(1); let str = priceT.toString(); if (str.length > 1) { str = str.split(".")[1]; if (str === "0") priceT = parseInt(priceT); } + console.log(priceT) return priceT; } }, @@ -274,6 +275,8 @@ export default { ); }, chooseSale(data) { + console.log(data) + console.log(989898) this.saleObj = data; }, showSale() { @@ -332,6 +335,7 @@ export default { salesType: invite ? invite.split("-")[1] : "null", salesID: invite ? Number(invite.split("-")[2]) : 0 }); + console.log(this.priceTotal) if (window.location.href.indexOf("gdt_vid") > -1) { json.gdt_vid = this.$route.query.gdt_vid; } @@ -471,10 +475,10 @@ export default { this.userCourse = JSON.parse(JSON.stringify(res)); localStorage.setItem("userCourse", JSON.stringify(this.userCourse)); if (res.teacher_alias && res.teacher_alias.substr(0, 1) == 1) { - this.$router.push({ + /*this.$router.push({ name: "guide", query: { shopId: this.shopId } - }); + });*/ } else { if (orderData.has_buy_goods_info.goods_type === 2) { this.$router.push({ @@ -505,6 +509,7 @@ export default { data.goods_desc = JSON.parse(data.goods_desc); data.share_desc = JSON.parse(data.share_desc); this.groupDetail = data; + console.log(this.groupDetail) this.invite_code = this.$route.query.invite_code; if (this.type && this.type === 0) { this.price = data.single_price / 100; diff --git a/src/components/buy/guide.vue b/src/components/buy/guide.vue index 93c75aa1aada0dc3f45849700490dd5d0796ec10..a95d7cdf048629cd2498905fb37289f40edc35f1 100644 --- a/src/components/buy/guide.vue +++ b/src/components/buy/guide.vue @@ -62,7 +62,7 @@ export default { }) this.onShare(); }); - + let invite = this.invite_code; getUserDetailApi().then(res => { this.userDesc = Object.assign({}, res); @@ -92,10 +92,11 @@ export default { onShare: function(type) { this.handleInviteCode(); let URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${this.this_code}`; + console.log(this.groupDetail.share_desc) this.enableShare({ product_title: this.groupDetail.share_desc.title, desc: this.groupDetail.share_desc.content, - shareIcon: this.groupDetail.share_desc.img[0].url, + shareIcon: this.groupDetail.share_desc.img.length !== 0 ? this.groupDetail.share_desc.img[0].url : '', shareUrl: URL }); }, diff --git a/src/components/buy/index.vue b/src/components/buy/index.vue index a199022a8568a0a59e4c182911b8a0688b42be72..d0fc5449e468a4f24024429b182fb1f1a05233ba 100644 --- a/src/components/buy/index.vue +++ b/src/components/buy/index.vue @@ -445,7 +445,7 @@ export default { this.enableShare({ product_title: this.groupDetail.share_desc.title, desc: this.groupDetail.share_desc.content, - shareIcon: this.groupDetail.share_desc.img[0].url, + shareIcon: this.groupDetail.share_desc.img.length !== 0 ? this.groupDetail.share_desc.img[0].url : '', shareUrl: URL }); }, diff --git a/src/components/newLesson/video.vue b/src/components/newLesson/video.vue index dc7348b9cb2a286a828bfb406ffaf523fdad472b..dc53404dcde52975b3bfcda4f898fc5d87bdfba6 100644 --- a/src/components/newLesson/video.vue +++ b/src/components/newLesson/video.vue @@ -49,6 +49,7 @@ <!-- :src="showObj.video[videoIndex].url" --> <video v-show="!star" ref="videoDom" + x5-video-player-type="h5" x5-video-player-fullscreen="true" x-webkit-airplay="true" playsinline :src="showObj.video[videoIndex].url" @ended="videoEnd" @error="errorLog"