Commit 1e81c54d authored by IvyXia123's avatar IvyXia123

502

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