92

parent 96175c26
......@@ -11,4 +11,4 @@
position: fixed;
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.637e9349d67393c03546.js></script><script type=text/javascript src=static/js/vendor.eb2fd737d78619d0ba95.js></script><script type=text/javascript src=static/js/app.de97982377658cd3d838.js></script></body></html>
\ No newline at end of file
/* 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.448fefb868ea5ea7ba06.js></script><script type=text/javascript src=static/js/vendor.eb2fd737d78619d0ba95.js></script><script type=text/javascript src=static/js/app.84c20d6727d53f64092c.js></script></body></html>
\ 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 f=window.webpackJsonp;window.webpackJsonp=function(a,b,n){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 b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(f&&f(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[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 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:"8a0c098fa6ea18a7240c",4:"12e9fe37eeaae4f8b8cb",5:"dc1e143a809fb7bf0e37",6:"c7cc7df111d85cf27b9b",7:"05a32025a8fddbc1baac",8:"f06355b665053b1c66f2",9:"ea46092a1ef75ed2d4be",10:"7dd1192ad4b0c54bef3a",11:"8b4344f93be3dded5361",12:"3b4cd03528e061c10fe8",13:"d38c6567b26ddab25d1a",14:"5fab46d1539e8d8e9959",15:"f83fd7b1ec3a97f7bd66",16:"e3ef0f940227e40197fc",17:"e6e189589a552b9582ca",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:"9c6bb1825ab060559e3f",31:"1e3c8e63235db66879e5",32:"d494177aad804ca9e139",33:"40a36e635ab23245496b",34:"481cee4e3407f0772555",35:"049b75b06f616c4d7687",36:"33fd9443eca7186bd78a",37:"387a0f6c39e912c0e844",38:"ff10a183065778d51989",39:"4d13253138f0ad098b23",40:"df490584d5524e769a1f",41:"2d0949e14872f28dcdd9",42:"a3c5303233bcbf5f410b",43:"d7f27db587bef55f83d5",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 f=c[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),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
!function(e){var f=window.webpackJsonp;window.webpackJsonp=function(a,b,n){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 b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(f&&f(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[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 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:"f941547ad68d86d2a3fd",4:"12e9fe37eeaae4f8b8cb",5:"dc1e143a809fb7bf0e37",6:"c7cc7df111d85cf27b9b",7:"05a32025a8fddbc1baac",8:"f06355b665053b1c66f2",9:"ea46092a1ef75ed2d4be",10:"7dd1192ad4b0c54bef3a",11:"8b4344f93be3dded5361",12:"3b4cd03528e061c10fe8",13:"d38c6567b26ddab25d1a",14:"5fab46d1539e8d8e9959",15:"f83fd7b1ec3a97f7bd66",16:"e3ef0f940227e40197fc",17:"e6e189589a552b9582ca",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:"9c6bb1825ab060559e3f",31:"1e3c8e63235db66879e5",32:"d494177aad804ca9e139",33:"40a36e635ab23245496b",34:"481cee4e3407f0772555",35:"049b75b06f616c4d7687",36:"33fd9443eca7186bd78a",37:"387a0f6c39e912c0e844",38:"ff10a183065778d51989",39:"4d13253138f0ad098b23",40:"df490584d5524e769a1f",41:"2d0949e14872f28dcdd9",42:"a3c5303233bcbf5f410b",43:"d7f27db587bef55f83d5",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 f=c[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),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
......@@ -210,6 +210,13 @@ export default {
}
},
methods: {
recursion() {
getCourseInfoApi().then(res => {
this.userCourse = JSON.parse(JSON.stringify(res));
localStorage.setItem("userCourse", JSON.stringify(this.userCourse));
this.navPage(res);
});
},
jsApiCall: function() {
let that = this;
WeixinJSBridge.invoke(
......@@ -222,15 +229,15 @@ export default {
// 支付成功后处理
Toast("支付成功");
setTimeout(() => {
getCourseInfoApi().then(res => {
that.userCourse = JSON.parse(JSON.stringify(res));
localStorage.setItem(
"userCourse",
JSON.stringify(that.userCourse)
);
that.navPage(res)
});
}, 2000);
// getCourseInfoApi().then(res => {
// that.userCourse = JSON.parse(JSON.stringify(res));
// localStorage.setItem(
// "userCourse",
// JSON.stringify(that.userCourse)
// );
// that.navPage(res);
// });
}, 1000);
}
// alert(res.errMsg)
// alert(res.err_msg)
......@@ -313,7 +320,7 @@ export default {
this.orderFlag = false;
payApi(json)
.then(res => {
this.orderNo = res.out_trade_no
this.orderNo = res.out_trade_no;
if (res.out_trade_no && !res.appId) {
getCourseInfoApi().then(res => {
console.log(res);
......@@ -322,7 +329,7 @@ export default {
"userCourse",
JSON.stringify(this.userCourse)
);
this.navPage(res)
this.navPage(res);
});
} else {
let that = this;
......@@ -404,8 +411,8 @@ export default {
data.goods_desc = JSON.parse(data.goods_desc);
data.share_desc = JSON.parse(data.share_desc);
this.groupDetail = JSON.parse(JSON.stringify(data));
sessionStorage.setItem('groupDetail',JSON.stringify(data))
console.log(this.groupDetail,408)
sessionStorage.setItem("groupDetail", JSON.stringify(data));
console.log(this.groupDetail, 408);
this.invite_code = this.$route.query.invite_code;
if (this.type && this.type === 0) {
this.price = data.single_price / 100;
......@@ -413,16 +420,19 @@ export default {
this.price = data.group_price / 100;
}
getStatusWechatApi({ goods_id: this.shopId }).then(res => {
Toast.clear();
let orderData = res;
this.orderNo = res.out_trade_no
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)
console.log(res,424)
});
getCourseInfoApi().then(res => {
this.userCourse = JSON.parse(JSON.stringify(res));
localStorage.setItem(
"userCourse",
JSON.stringify(this.userCourse)
);
this.navPage(res);
console.log(res, 424);
});
}
});
this.$nextTick(() => {
......@@ -431,13 +441,13 @@ export default {
});
},
navPage(res) {
console.log(res,437)
console.log(this.groupDetail)
console.log(res, 437);
console.log(this.groupDetail);
if (
res.teacher_alias &&
res.teacher_alias.substr(0, 1) == 1 &&
this.groupDetail.goods_type != 4&&
this.userDetail.open_info.is_subscribe==1
this.groupDetail.goods_type != 4 &&
this.userDetail.open_info.is_subscribe == 1
) {
this.$router.push({
name: "guide",
......
......@@ -171,6 +171,7 @@ export const sendMobileCodeApi = function (json) {
// 绑定手机号
const bindMobileUrl = `${_baseUrl}api/client/user/mobile/bind`;
export const bindMobileApi = function (json) {
console.log(json)
return Vue.prototype.$put(bindMobileUrl, json)
};
// 用户通过订单号换课
......
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