92

parent 6f6e2c1b
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
position: fixed; position: fixed;
background: #f4f4f4; background: #f4f4f4;
} }
/* html{font-size: 1px;} */</style><link href=static/css/app.f983055a19b69eb54137ee36031e8a72.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script></script><script type=text/javascript src=static/js/manifest.4ed35d874db1d3d76554.js></script><script type=text/javascript src=static/js/vendor.eb2fd737d78619d0ba95.js></script><script type=text/javascript src=static/js/app.47e4deaa039491f21578.js></script></body></html> /* html{font-size: 1px;} */</style><link href=static/css/app.f983055a19b69eb54137ee36031e8a72.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script></script><script type=text/javascript src=static/js/manifest.7bf451aaaf9719d0502c.js></script><script type=text/javascript src=static/js/vendor.eb2fd737d78619d0ba95.js></script><script type=text/javascript src=static/js/app.47e4deaa039491f21578.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(a&&a(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},f={64:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+({0:"vendor-async"}[e]||e)+"."+{0:"78d248f24ee84ccfea64",1:"c707946412c0e9a1f479",2:"aa6329edd741532bf257",3:"73e1d4d10592330e4677",4:"12e9fe37eeaae4f8b8cb",5:"dc1e143a809fb7bf0e37",6:"c7cc7df111d85cf27b9b",7:"05a32025a8fddbc1baac",8:"f3b4b2f9860b6cf4bcb1",9:"ea46092a1ef75ed2d4be",10:"7dd1192ad4b0c54bef3a",11:"8b4344f93be3dded5361",12:"3b4cd03528e061c10fe8",13:"d38c6567b26ddab25d1a",14:"5fab46d1539e8d8e9959",15:"f83fd7b1ec3a97f7bd66",16:"e3ef0f940227e40197fc",17:"6acd460415e47365db52",18:"a336f5a7427aea7acb7c",19:"8aea9d608af5e12b6142",20:"f335d8776f564e570545",21:"fd833b8ab6cb1e0d074f",22:"701a6ee38479b163f602",23:"c9ca476f161685cfc1db",24:"d28f421254641ee6240c",25:"2aec44292ca8a7f4d773",26:"90f95355f4999c507466",27:"14417f0a63a4de5fdc1b",28:"6f7b7f5155c4787a2851",29:"e166012c7d68e0230f85",30:"b941b1da22ec71137a6c",31:"1e3c8e63235db66879e5",32:"d494177aad804ca9e139",33:"40a36e635ab23245496b",34:"481cee4e3407f0772555",35:"049b75b06f616c4d7687",36:"33fd9443eca7186bd78a",37:"387a0f6c39e912c0e844",38:"ff10a183065778d51989",39:"4d13253138f0ad098b23",40:"df490584d5524e769a1f",41:"2d0949e14872f28dcdd9",42:"a0b7206116dd1a9aabe5",43:"c06d7c0e1de416f813a0",44:"608c71c8f4606b62f58c",45:"a625e09d364bb0d7bb48",46:"07776e73dd61e71cd1f8",47:"e452231169befbf8cac2",48:"694f9bf593948955ab45",49:"f7d490d29da167056272",50:"e94f0be889244f07f898",51:"732aed7b4e578e2d6db7",52:"d6c0c0d0881755cc8506",53:"b9df3f2ebc42036f2cb0",54:"0df892b5de7b0d2a58af",55:"3c9b49aa5f568bd28272",56:"850a2a72f5cac7b39e5b",57:"2c739f835f434ed8e5fd",58:"1988cd306d0e500569a0",59:"3c45272d31ebf496d04e",60:"97ba1fb09d6b41ec9fd2",61:"626a3506faee124c08d4"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="",d.oe=function(e){throw console.error(e),e}}([]); !function(e){var f=window.webpackJsonp;window.webpackJsonp=function(a,n,b){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],c[t]&&u.push(c[t][0]),c[t]=0;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);for(f&&f(a,n,b);u.length;)u.shift()();if(b)for(i=0;i<b.length;i++)o=d(d.s=b[i]);return o};var a={},c={64:0};function d(f){if(a[f])return a[f].exports;var c=a[f]={i:f,l:!1,exports:{}};return e[f].call(c.exports,c,c.exports,d),c.l=!0,c.exports}d.e=function(e){var f=c[e];if(0===f)return new Promise(function(e){e()});if(f)return f[2];var a=new Promise(function(a,d){f=c[e]=[a,d]});f[2]=a;var n=document.getElementsByTagName("head")[0],b=document.createElement("script");b.type="text/javascript",b.charset="utf-8",b.async=!0,b.timeout=12e4,d.nc&&b.setAttribute("nonce",d.nc),b.src=d.p+"static/js/"+({0:"vendor-async"}[e]||e)+"."+{0:"78d248f24ee84ccfea64",1:"c707946412c0e9a1f479",2:"aa6329edd741532bf257",3:"7677c1090894671296f9",4:"12e9fe37eeaae4f8b8cb",5:"dc1e143a809fb7bf0e37",6:"c7cc7df111d85cf27b9b",7:"05a32025a8fddbc1baac",8:"20e260dfcf2f79972e9d",9:"ea46092a1ef75ed2d4be",10:"7dd1192ad4b0c54bef3a",11:"8b4344f93be3dded5361",12:"3b4cd03528e061c10fe8",13:"d38c6567b26ddab25d1a",14:"5fab46d1539e8d8e9959",15:"f83fd7b1ec3a97f7bd66",16:"e3ef0f940227e40197fc",17:"6acd460415e47365db52",18:"a336f5a7427aea7acb7c",19:"8aea9d608af5e12b6142",20:"f335d8776f564e570545",21:"fd833b8ab6cb1e0d074f",22:"701a6ee38479b163f602",23:"c9ca476f161685cfc1db",24:"d28f421254641ee6240c",25:"2aec44292ca8a7f4d773",26:"90f95355f4999c507466",27:"14417f0a63a4de5fdc1b",28:"6f7b7f5155c4787a2851",29:"e166012c7d68e0230f85",30:"f57912cf38fc685a071a",31:"1e3c8e63235db66879e5",32:"d494177aad804ca9e139",33:"40a36e635ab23245496b",34:"481cee4e3407f0772555",35:"049b75b06f616c4d7687",36:"33fd9443eca7186bd78a",37:"387a0f6c39e912c0e844",38:"ff10a183065778d51989",39:"4d13253138f0ad098b23",40:"df490584d5524e769a1f",41:"2d0949e14872f28dcdd9",42:"a0b7206116dd1a9aabe5",43:"742f125f54808f968265",44:"608c71c8f4606b62f58c",45:"a625e09d364bb0d7bb48",46:"07776e73dd61e71cd1f8",47:"e452231169befbf8cac2",48:"694f9bf593948955ab45",49:"f7d490d29da167056272",50:"e94f0be889244f07f898",51:"732aed7b4e578e2d6db7",52:"d6c0c0d0881755cc8506",53:"b9df3f2ebc42036f2cb0",54:"0df892b5de7b0d2a58af",55:"3c9b49aa5f568bd28272",56:"850a2a72f5cac7b39e5b",57:"2c739f835f434ed8e5fd",58:"1988cd306d0e500569a0",59:"3c45272d31ebf496d04e",60:"97ba1fb09d6b41ec9fd2",61:"626a3506faee124c08d4"}[e]+".js";var r=setTimeout(t,12e4);function t(){b.onerror=b.onload=null,clearTimeout(r);var f=c[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return b.onerror=b.onload=t,n.appendChild(b),a},d.m=e,d.c=a,d.d=function(e,f,a){d.o(e,f)||Object.defineProperty(e,f,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(f,"a",f),f},d.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},d.p="",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -206,7 +206,6 @@ export default { ...@@ -206,7 +206,6 @@ export default {
str = str.split(".")[1]; str = str.split(".")[1];
if (str === "0") priceT = parseInt(priceT); if (str === "0") priceT = parseInt(priceT);
} }
console.log(priceT);
return priceT; return priceT;
} }
}, },
...@@ -302,11 +301,9 @@ export default { ...@@ -302,11 +301,9 @@ export default {
salesType: invite ? invite.split("-")[1] : "null", salesType: invite ? invite.split("-")[1] : "null",
salesID: invite ? Number(invite.split("-")[2]) : 0 salesID: invite ? Number(invite.split("-")[2]) : 0
}); });
console.log(this.priceTotal);
if (window.location.href.indexOf("gdt_vid") > -1) { if (window.location.href.indexOf("gdt_vid") > -1) {
json.gdt_vid = this.$route.query.gdt_vid; json.gdt_vid = this.$route.query.gdt_vid;
} }
console.log(this.$route.query.gdt_vid);
if (window.location.href.indexOf("cct_user_id") > -1) { if (window.location.href.indexOf("cct_user_id") > -1) {
json.cct_user_id = this.$route.query.cct_user_id; json.cct_user_id = this.$route.query.cct_user_id;
} }
...@@ -314,10 +311,8 @@ export default { ...@@ -314,10 +311,8 @@ export default {
json.group_order_id = this.$route.query.group_order_id; json.group_order_id = this.$route.query.group_order_id;
} }
this.orderFlag = false; this.orderFlag = false;
console.log(json, 282);
payApi(json) payApi(json)
.then(res => { .then(res => {
// console.log(res)
this.orderNo = res.out_trade_no this.orderNo = res.out_trade_no
if (res.out_trade_no && !res.appId) { if (res.out_trade_no && !res.appId) {
getCourseInfoApi().then(res => { getCourseInfoApi().then(res => {
...@@ -403,34 +398,34 @@ export default { ...@@ -403,34 +398,34 @@ export default {
this.canSale = true; this.canSale = true;
} }
}); });
getStatusWechatApi({ goods_id: this.shopId }).then(res => {
let orderData = res;
this.orderNo = res.out_trade_no
if (res.out_trade_no) {
getCourseInfoApi().then(res => {
this.userCourse = JSON.parse(JSON.stringify(res));
localStorage.setItem("userCourse", JSON.stringify(this.userCourse));
this.navPage(res)
});
}
});
getGoodsDetailApi(this.shopId).then(data => { getGoodsDetailApi(this.shopId).then(data => {
// debugger // debugger
data.desc = JSON.parse(data.desc); data.desc = JSON.parse(data.desc);
data.goods_desc = JSON.parse(data.goods_desc); data.goods_desc = JSON.parse(data.goods_desc);
data.share_desc = JSON.parse(data.share_desc); data.share_desc = JSON.parse(data.share_desc);
this.groupDetail = data; this.groupDetail = data;
console.log(this.groupDetail); sessionStorage.setItem('groupDetail',JSON.stringify(data))
this.invite_code = this.$route.query.invite_code; this.invite_code = this.$route.query.invite_code;
if (this.type && this.type === 0) { if (this.type && this.type === 0) {
this.price = data.single_price / 100; this.price = data.single_price / 100;
} else { } else {
this.price = data.group_price / 100; this.price = data.group_price / 100;
} }
getStatusWechatApi({ goods_id: this.shopId }).then(res => {
Toast.clear();
let orderData = res;
this.orderNo = res.out_trade_no
if (res.out_trade_no) {
getCourseInfoApi().then(res => {
this.userCourse = JSON.parse(JSON.stringify(res));
localStorage.setItem("userCourse", JSON.stringify(this.userCourse));
this.navPage(res)
});
}
});
this.$nextTick(() => { this.$nextTick(() => {
this.orderFlag = true; this.orderFlag = true;
}); });
Toast.clear();
}); });
}, },
navPage(res) { navPage(res) {
......
...@@ -110,13 +110,10 @@ export default { ...@@ -110,13 +110,10 @@ export default {
this.invite_code = `CC-${res.invite_type}-${res.invite_id}`; this.invite_code = `CC-${res.invite_type}-${res.invite_id}`;
this.money = res.money; this.money = res.money;
this.invite_type = res.invite_type this.invite_type = res.invite_type
getGoodsDetailApi(this.goods_id).then(data => { this.groupDetail.JSON.parse(sessionStorage.getItem('groupDetail'));
Toast.clear(); this.groupDetail.desc = JSON.parse(data.desc);
data.desc = JSON.parse(data.desc); this.groupDetail.goods_desc = JSON.parse(data.goods_desc);
data.goods_desc = JSON.parse(data.goods_desc); this.groupDetail.share_desc = JSON.parse(data.share_desc);
data.share_desc = JSON.parse(data.share_desc);
this.goodsDetail = data;
});
}); });
}); });
} else { } else {
...@@ -126,13 +123,10 @@ export default { ...@@ -126,13 +123,10 @@ export default {
this.goods_id = res.goods_id; this.goods_id = res.goods_id;
this.invite_code = `CC-${res.invite_type}-${res.invite_id}`; this.invite_code = `CC-${res.invite_type}-${res.invite_id}`;
this.money = res.money; this.money = res.money;
getGoodsDetailApi(this.goods_id).then(data => { this.groupDetail.JSON.parse(sessionStorage.getItem('groupDetail'));
Toast.clear(); this.groupDetail.desc = JSON.parse(data.desc);
data.desc = JSON.parse(data.desc); this.groupDetail.goods_desc = JSON.parse(data.goods_desc);
data.goods_desc = JSON.parse(data.goods_desc); this.groupDetail.share_desc = JSON.parse(data.share_desc);
data.share_desc = JSON.parse(data.share_desc);
this.goodsDetail = data;
});
}); });
} }
}, },
......
...@@ -43,33 +43,32 @@ export default { ...@@ -43,33 +43,32 @@ export default {
} }
this.userCourse = JSON.parse(localStorage.getItem("userCourse")); this.userCourse = JSON.parse(localStorage.getItem("userCourse"));
// console.log(this.userCourse); // console.log(this.userCourse);
console.log(localStorage.getItem("userDesc"),46) console.log(localStorage.getItem("userDesc"), 46);
this.user_id = JSON.parse(localStorage.getItem("userDesc")).user_id; this.user_id = JSON.parse(localStorage.getItem("userDesc")).user_id;
this.shopId = this.$route.query.shopId; this.shopId = this.$route.query.shopId;
getGoodsDetailApi(this.shopId).then(data=>{ this.groupDetail.JSON.parse(sessionStorage.getItem("groupDetail"));
// debugger this.groupDetail.desc = JSON.parse(data.desc);
data.desc = JSON.parse(data.desc); this.groupDetail.goods_desc = JSON.parse(data.goods_desc);
data.goods_desc = JSON.parse(data.goods_desc); this.groupDetail.share_desc = JSON.parse(data.share_desc);
data.share_desc = JSON.parse(data.share_desc); this.invite_code = this.$route.query.invite_code;
this.groupDetail = data; if (this.type && this.type === 0) {
this.invite_code = this.$route.query.invite_code; this.price = data.single_price / 100;
if(this.type && this.type === 0){ } else {
this.price=data.single_price/100 this.price = data.group_price / 100;
}else{ }
this.price = data.group_price/100 this.$nextTick(() => {
} this.orderFlag = true;
this.$nextTick(()=>{ });
this.orderFlag = true this.onShare();
})
this.onShare();
});
let invite = this.invite_code; let invite = this.invite_code;
getUserDetailApi().then(res => { getUserDetailApi()
.then(res => {
this.userDesc = Object.assign({}, res); this.userDesc = Object.assign({}, res);
// console.log(this.userDesc) // console.log(this.userDesc)
this.subscribe = this.userDesc.open_info.is_subscribe; this.subscribe = this.userDesc.open_info.is_subscribe;
localStorage.setItem("userDesc", JSON.stringify(res)); localStorage.setItem("userDesc", JSON.stringify(res));
}).catch(res => { })
.catch(res => {
if (localStorage.getItem("userDesc")) { if (localStorage.getItem("userDesc")) {
} }
}); });
...@@ -92,11 +91,14 @@ export default { ...@@ -92,11 +91,14 @@ export default {
onShare: function(type) { onShare: function(type) {
this.handleInviteCode(); this.handleInviteCode();
let URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${this.this_code}`; let URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${this.this_code}`;
console.log(this.groupDetail.share_desc) console.log(this.groupDetail.share_desc);
this.enableShare({ this.enableShare({
product_title: this.groupDetail.share_desc.title, product_title: this.groupDetail.share_desc.title,
desc: this.groupDetail.share_desc.content, desc: this.groupDetail.share_desc.content,
shareIcon: this.groupDetail.share_desc.img.length !== 0 ? this.groupDetail.share_desc.img[0].url : '', shareIcon:
this.groupDetail.share_desc.img.length !== 0
? this.groupDetail.share_desc.img[0].url
: "",
shareUrl: URL shareUrl: URL
}); });
}, },
......
...@@ -308,7 +308,6 @@ export default { ...@@ -308,7 +308,6 @@ export default {
} else { } else {
this.groupId = this.$route.query.groupId; this.groupId = this.$route.query.groupId;
} }
console.log(312)
getUserDetailApi() getUserDetailApi()
.then(res => { .then(res => {
this.userDesc = Object.assign({}, res); this.userDesc = Object.assign({}, res);
...@@ -316,10 +315,8 @@ export default { ...@@ -316,10 +315,8 @@ export default {
this.subscribe = this.userDesc.open_info.is_subscribe; this.subscribe = this.userDesc.open_info.is_subscribe;
localStorage.setItem("userDesc", JSON.stringify(res)); localStorage.setItem("userDesc", JSON.stringify(res));
this.recursion(); this.recursion();
console.log(320)
}) })
.catch(res => { .catch(res => {
// console.log(res)
// debugger // debugger
if (localStorage.getItem("userDesc")) { if (localStorage.getItem("userDesc")) {
} }
...@@ -329,7 +326,6 @@ export default { ...@@ -329,7 +326,6 @@ export default {
let that = this; let that = this;
getOrderDetailApi(this.orderNo).then(res => { getOrderDetailApi(this.orderNo).then(res => {
Toast.clear(); Toast.clear();
console.log(res,331)
if (res.group_info) { if (res.group_info) {
this.setOrder(res); this.setOrder(res);
} else { } else {
...@@ -340,7 +336,6 @@ export default { ...@@ -340,7 +336,6 @@ export default {
}); });
}, },
setOrder(res) { setOrder(res) {
console.log(342)
this.groupId = res.order_group_id; this.groupId = res.order_group_id;
this.user_info = res.user_info; this.user_info = res.user_info;
this.group_info = res.group_info; this.group_info = res.group_info;
...@@ -352,9 +347,7 @@ export default { ...@@ -352,9 +347,7 @@ export default {
this.invite_code = `CC-${res.invite_type}-${res.user_id}`; this.invite_code = `CC-${res.invite_type}-${res.user_id}`;
} }
this.invite_type = res.invite_type this.invite_type = res.invite_type
console.log(this.invite_type,352)
// console.log(this.invite_code) // console.log(this.invite_code)
// console.log(res.group_info)
if (this.group_info.status === 1) { if (this.group_info.status === 1) {
this.shareVisible = false; this.shareVisible = false;
} }
...@@ -369,20 +362,23 @@ export default { ...@@ -369,20 +362,23 @@ export default {
this.deadline = res.group_info.deadline; this.deadline = res.group_info.deadline;
this.leftTimer(); this.leftTimer();
} }
getGoodsDetailApi(this.shopId).then(data => { this.groupDetail.JSON.parse(sessionStorage.getItem('groupDetail'));
data.desc = JSON.parse(data.desc); this.groupDetail.desc = JSON.parse(data.desc);
data.goods_desc = JSON.parse(data.goods_desc); this.groupDetail.goods_desc = JSON.parse(data.goods_desc);
data.share_desc = JSON.parse(data.share_desc); this.groupDetail.share_desc = JSON.parse(data.share_desc);
this.groupDetail = data; this.textContent =
this.textContent = `[激动]发现一款超赞的启蒙英语课
`[激动]发现一款超赞的启蒙英语课 [太阳]只要${this.groupDetail.current_price / 100}元就可以团购价值${this.groupDetail.original_price / 100}${this.groupDetail.goods_desc.course_title}
[太阳]只要${this.groupDetail.current_price / 100}元就可以团购价值${this.groupDetail.original_price / 100}${this.groupDetail.goods_desc.course_title} [爱心]${this.groupDetail.desc.group_number}人即可成团获得课程
[爱心]${this.groupDetail.desc.group_number}人即可成团获得课程 [强]哈佛名师亲授,比动画片更有趣哦
[强]哈佛名师亲授,比动画片更有趣哦 [机智]快来和我一起拼团上课吧`;
[机智]快来和我一起拼团上课吧`; this.onShare();
// this.htmlContent = addEmoji(this.textContent); // getGoodsDetailApi(this.shopId).then(data => {
this.onShare(); // data.desc = JSON.parse(data.desc);
}); // data.goods_desc = JSON.parse(data.goods_desc);
// data.share_desc = JSON.parse(data.share_desc);
// this.groupDetail = data;
// });
}, },
leftTimer() { leftTimer() {
let leftTime = new Date(this.deadline.replace(/\-/g, "/")) - new Date(); //计算剩余的毫秒数 let leftTime = new Date(this.deadline.replace(/\-/g, "/")) - new Date(); //计算剩余的毫秒数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment