Commit 1e81c54d authored by IvyXia123's avatar IvyXia123

502

parent 2914abbf
...@@ -218,7 +218,8 @@ import { ...@@ -218,7 +218,8 @@ import {
getCouponListApi, getCouponListApi,
getAutomationCouponApi, getAutomationCouponApi,
getInvitedCouponApi, getInvitedCouponApi,
getReceiveCouponApi getReceiveCouponApi,
getPassGoodInfoApi
} from "../../service/api"; } from "../../service/api";
import refBg from "../../assets/refBg.png"; import refBg from "../../assets/refBg.png";
import moreUrl from "../../assets/moreIcon.png"; import moreUrl from "../../assets/moreIcon.png";
...@@ -483,7 +484,8 @@ export default { ...@@ -483,7 +484,8 @@ export default {
if (window.location.href.indexOf("shopId") > -1) { if (window.location.href.indexOf("shopId") > -1) {
this.shopId = this.$route.query.shopId; this.shopId = this.$route.query.shopId;
getGoodsDetailApi(this.shopId).then(res => { getPassGoodInfoApi(this.shopId).then(res => {
// getGoodsDetailApi(this.shopId).then(res => {
res.desc = JSON.parse(res.desc); res.desc = JSON.parse(res.desc);
res.goods_desc = JSON.parse(res.goods_desc); res.goods_desc = JSON.parse(res.goods_desc);
res.share_desc = JSON.parse(res.share_desc); res.share_desc = JSON.parse(res.share_desc);
......
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
subUserLessonApi, subUserLessonApi,
getUserWatchApi, getUserWatchApi,
getwechatParam, getwechatParam,
getCountTimeApi getCountTimeApi,
postErrorLogApi
} from "../../service/api"; } from "../../service/api";
import { Toast } from "vant"; import { Toast } from "vant";
import lookBlock from "./look"; import lookBlock from "./look";
...@@ -140,6 +141,7 @@ ...@@ -140,6 +141,7 @@
page_id: 6, page_id: 6,
stay_time: 0 stay_time: 0
}; };
subUserLessonApi( subUserLessonApi(
that.elementId, that.elementId,
that.category_id, that.category_id,
...@@ -174,6 +176,7 @@ ...@@ -174,6 +176,7 @@
page_id: 6, page_id: 6,
stay_time: 0 stay_time: 0
}; };
subUserLessonApi( subUserLessonApi(
that.elementId, that.elementId,
that.category_id, that.category_id,
......
...@@ -230,9 +230,9 @@ ...@@ -230,9 +230,9 @@
let query = JSON.parse(sessionStorage.getItem("classQuery")); let query = JSON.parse(sessionStorage.getItem("classQuery"));
this.timeout = setTimeout(() => { this.timeout = setTimeout(() => {
// minute // minute
postErrorLogApi({'routes_url':new Date().toString(),'result_text':this.userDetail.user_id}).then((res)=>{ /*postErrorLogApi({'routes_url':new Date().toString(),'result_text':this.userDetail.user_id}).then((res)=>{
console.log(res) console.log(res)
}) })*/
this.$sa.track("watchClick", { this.$sa.track("watchClick", {
dayModule: JSON.parse( dayModule: JSON.parse(
localStorage.getItem("lessonDetail") localStorage.getItem("lessonDetail")
......
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
}, },
methods: { methods: {
errorLog(e){ errorLog(e){
/*this.userDetail = JSON.parse(localStorage.getItem("userDesc")); this.userDetail = JSON.parse(localStorage.getItem("userDesc"));
// console.log(e.target.error,229) // console.log(e.target.error,229)
let str='code:'+e.target.error.code+',msg:'+e.target.error.message+',url:'+ let str='code:'+e.target.error.code+',msg:'+e.target.error.message+',url:'+
this.showObj.video[this.videoIndex].url+',UserAgent:'+navigator.userAgent+',currentTime:'+this.$refs.videoDom.currentTime this.showObj.video[this.videoIndex].url+',UserAgent:'+navigator.userAgent+',currentTime:'+this.$refs.videoDom.currentTime
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
'result_text':str 'result_text':str
}).then((res)=>{ }).then((res)=>{
// console.log(res) // console.log(res)
})*/ })
}, },
sliceUrl() { sliceUrl() {
localStorage.setItem("clarityType", this.clarityType); localStorage.setItem("clarityType", this.clarityType);
......
...@@ -239,7 +239,9 @@ export function post(url, data = {}) { ...@@ -239,7 +239,9 @@ export function post(url, data = {}) {
reject(response.data); reject(response.data);
} else { } else {
reject(response.data); reject(response.data);
Toast(response.data.msg) if(response.data.code != 502) {
Toast(response.data.msg)
}
} }
}, err => { }, err => {
reject(err); reject(err);
......
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