命令行提交3
This commit is contained in:
parent
11f1a6d727
commit
e83260c6ff
@ -198,10 +198,10 @@ const goDetail = (id) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
const videoErrorCallback = (e) => {
|
const videoErrorCallback = (e) => {
|
||||||
uni.showModal({
|
// uni.showModal({
|
||||||
content: e.target.errMsg,
|
// content: e.target.errMsg,
|
||||||
showCancel: false
|
// showCancel: false
|
||||||
})
|
// })
|
||||||
};
|
};
|
||||||
const searchList = async () => {
|
const searchList = async () => {
|
||||||
let searchForm = {
|
let searchForm = {
|
||||||
|
|||||||
@ -1524,35 +1524,85 @@ const toggleCollect = throttle(() => {
|
|||||||
|
|
||||||
const addArticleComment = (id, data) => {
|
const addArticleComment = (id, data) => {
|
||||||
api.addArticleComment(id, data).then((res) => {
|
api.addArticleComment(id, data).then((res) => {
|
||||||
uni.showToast({
|
if(res.data.data.status==1){
|
||||||
icon: "none",
|
uni.showToast({
|
||||||
title: "评论成功",
|
icon: "none",
|
||||||
});
|
title: "评论成功",
|
||||||
clearComment();
|
});
|
||||||
showCommentDialog.value = false;
|
clearComment();
|
||||||
paging.value.refresh();
|
showCommentDialog.value = false;
|
||||||
|
paging.value.refresh();
|
||||||
|
}else if(res.data.data.status==2){
|
||||||
|
uni.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: "评论成功,积分+5",
|
||||||
|
});
|
||||||
|
clearComment();
|
||||||
|
showCommentDialog.value = false;
|
||||||
|
paging.value.refresh();
|
||||||
|
}else if(res.data.data.status==0){
|
||||||
|
uni.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: "评论失败",
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const addVideoComment = (id, data) => {
|
const addVideoComment = (id, data) => {
|
||||||
api.addVideoComment(id, data).then((res) => {
|
api.addVideoComment(id, data).then((res) => {
|
||||||
uni.showToast({
|
if(res.data.data.status==1){
|
||||||
icon: "none",
|
uni.showToast({
|
||||||
title: "评论成功",
|
icon: "none",
|
||||||
});
|
title: "评论成功",
|
||||||
clearComment();
|
});
|
||||||
showCommentDialog.value = false;
|
clearComment();
|
||||||
paging.value.refresh();
|
showCommentDialog.value = false;
|
||||||
|
paging.value.refresh();
|
||||||
|
}else if(res.data.data.status==2){
|
||||||
|
uni.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: "评论成功,积分+5",
|
||||||
|
});
|
||||||
|
clearComment();
|
||||||
|
showCommentDialog.value = false;
|
||||||
|
paging.value.refresh();
|
||||||
|
}else if(res.data.data.status==0){
|
||||||
|
uni.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: "评论失败",
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const addExchangeComment = (id, data) => {
|
const addExchangeComment = (id, data) => {
|
||||||
api.addExchangeComment(id, data).then((res) => {
|
api.addExchangeComment(id, data).then((res) => {
|
||||||
uni.showToast({
|
if(res.data.data.status==1){
|
||||||
icon: "none",
|
uni.showToast({
|
||||||
title: "评论成功",
|
icon: "none",
|
||||||
});
|
title: "评论成功",
|
||||||
clearComment();
|
});
|
||||||
showCommentDialog.value = false;
|
clearComment();
|
||||||
paging.value.refresh();
|
showCommentDialog.value = false;
|
||||||
|
paging.value.refresh();
|
||||||
|
}else if(res.data.data.status==2){
|
||||||
|
uni.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: "评论成功,积分+5",
|
||||||
|
});
|
||||||
|
clearComment();
|
||||||
|
showCommentDialog.value = false;
|
||||||
|
paging.value.refresh();
|
||||||
|
}else if(res.data.data.status==0){
|
||||||
|
uni.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: "评论失败",
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const delArticleComment = (id) => {
|
const delArticleComment = (id) => {
|
||||||
|
|||||||
@ -600,10 +600,10 @@ const changeDate=(e)=>{
|
|||||||
paging.value.reload();
|
paging.value.reload();
|
||||||
}
|
}
|
||||||
const videoErrorCallback = (e) => {
|
const videoErrorCallback = (e) => {
|
||||||
uni.showModal({
|
// uni.showModal({
|
||||||
content: e.target.errMsg,
|
// content: e.target.errMsg,
|
||||||
showCancel: false,
|
// showCancel: false,
|
||||||
});
|
// });
|
||||||
};
|
};
|
||||||
const changeWord = (val) => {
|
const changeWord = (val) => {
|
||||||
if (!val) return false;
|
if (!val) return false;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -49,10 +49,6 @@ const _sfc_main = {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
const videoErrorCallback = (e) => {
|
const videoErrorCallback = (e) => {
|
||||||
common_vendor.index.showModal({
|
|
||||||
content: e.target.errMsg,
|
|
||||||
showCancel: false
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
const searchList = async () => {
|
const searchList = async () => {
|
||||||
let searchForm = {
|
let searchForm = {
|
||||||
|
|||||||
@ -686,35 +686,80 @@ const _sfc_main = {
|
|||||||
});
|
});
|
||||||
const addArticleComment = (id2, data) => {
|
const addArticleComment = (id2, data) => {
|
||||||
api_api.api.addArticleComment(id2, data).then((res) => {
|
api_api.api.addArticleComment(id2, data).then((res) => {
|
||||||
common_vendor.index.showToast({
|
if (res.data.data.status == 1) {
|
||||||
icon: "none",
|
common_vendor.index.showToast({
|
||||||
title: "评论成功"
|
icon: "none",
|
||||||
});
|
title: "评论成功"
|
||||||
clearComment();
|
});
|
||||||
showCommentDialog.value = false;
|
clearComment();
|
||||||
paging.value.refresh();
|
showCommentDialog.value = false;
|
||||||
|
paging.value.refresh();
|
||||||
|
} else if (res.data.data.status == 2) {
|
||||||
|
common_vendor.index.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: "评论成功,积分+5"
|
||||||
|
});
|
||||||
|
clearComment();
|
||||||
|
showCommentDialog.value = false;
|
||||||
|
paging.value.refresh();
|
||||||
|
} else if (res.data.data.status == 0) {
|
||||||
|
common_vendor.index.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: "评论失败"
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const addVideoComment = (id2, data) => {
|
const addVideoComment = (id2, data) => {
|
||||||
api_api.api.addVideoComment(id2, data).then((res) => {
|
api_api.api.addVideoComment(id2, data).then((res) => {
|
||||||
common_vendor.index.showToast({
|
if (res.data.data.status == 1) {
|
||||||
icon: "none",
|
common_vendor.index.showToast({
|
||||||
title: "评论成功"
|
icon: "none",
|
||||||
});
|
title: "评论成功"
|
||||||
clearComment();
|
});
|
||||||
showCommentDialog.value = false;
|
clearComment();
|
||||||
paging.value.refresh();
|
showCommentDialog.value = false;
|
||||||
|
paging.value.refresh();
|
||||||
|
} else if (res.data.data.status == 2) {
|
||||||
|
common_vendor.index.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: "评论成功,积分+5"
|
||||||
|
});
|
||||||
|
clearComment();
|
||||||
|
showCommentDialog.value = false;
|
||||||
|
paging.value.refresh();
|
||||||
|
} else if (res.data.data.status == 0) {
|
||||||
|
common_vendor.index.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: "评论失败"
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const addExchangeComment = (id2, data) => {
|
const addExchangeComment = (id2, data) => {
|
||||||
api_api.api.addExchangeComment(id2, data).then((res) => {
|
api_api.api.addExchangeComment(id2, data).then((res) => {
|
||||||
common_vendor.index.showToast({
|
if (res.data.data.status == 1) {
|
||||||
icon: "none",
|
common_vendor.index.showToast({
|
||||||
title: "评论成功"
|
icon: "none",
|
||||||
});
|
title: "评论成功"
|
||||||
clearComment();
|
});
|
||||||
showCommentDialog.value = false;
|
clearComment();
|
||||||
paging.value.refresh();
|
showCommentDialog.value = false;
|
||||||
|
paging.value.refresh();
|
||||||
|
} else if (res.data.data.status == 2) {
|
||||||
|
common_vendor.index.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: "评论成功,积分+5"
|
||||||
|
});
|
||||||
|
clearComment();
|
||||||
|
showCommentDialog.value = false;
|
||||||
|
paging.value.refresh();
|
||||||
|
} else if (res.data.data.status == 0) {
|
||||||
|
common_vendor.index.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: "评论失败"
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const delArticleComment = (id2) => {
|
const delArticleComment = (id2) => {
|
||||||
|
|||||||
@ -278,10 +278,6 @@ const _sfc_main = {
|
|||||||
paging.value.reload();
|
paging.value.reload();
|
||||||
};
|
};
|
||||||
const videoErrorCallback = (e) => {
|
const videoErrorCallback = (e) => {
|
||||||
common_vendor.index.showModal({
|
|
||||||
content: e.target.errMsg,
|
|
||||||
showCancel: false
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
const changeWord = (val) => {
|
const changeWord = (val) => {
|
||||||
if (!val)
|
if (!val)
|
||||||
|
|||||||
@ -87,6 +87,12 @@ const request = (url, data = {}, method = "post", loading = false, contentType =
|
|||||||
title: res.data.message,
|
title: res.data.message,
|
||||||
icon: "none"
|
icon: "none"
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
let H5url = "https://dev-wx.igandan.com";
|
||||||
|
if (window.location.href.indexOf("//dev-casedata.igandan.com") == -1) {
|
||||||
|
H5url = "https://wx.igandan.com";
|
||||||
|
}
|
||||||
|
window.location.href = H5url + "/hcp/Signup2020online_tologin?back_url=" + encodeURIComponent(window.location.href);
|
||||||
}
|
}
|
||||||
n(res);
|
n(res);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -118,10 +118,11 @@ export const request = (url, data = {}, method = 'post', loading = false, conten
|
|||||||
let video_token = cookie.readCookie('video_token');
|
let video_token = cookie.readCookie('video_token');
|
||||||
console.log(video_token);
|
console.log(video_token);
|
||||||
if(video_token){
|
if(video_token){
|
||||||
const res = await api.h5Login({
|
const {data} = await api.h5Login({
|
||||||
token: video_token
|
token: video_token
|
||||||
});
|
});
|
||||||
if(res.data.code==200){
|
console.log(data);
|
||||||
|
if(data.code==200){
|
||||||
let result = res.data.data;
|
let result = res.data.data;
|
||||||
console.log(result);
|
console.log(result);
|
||||||
if (window.location.href.indexOf('//casedata.igandan.com')>-1) {
|
if (window.location.href.indexOf('//casedata.igandan.com')>-1) {
|
||||||
@ -137,7 +138,7 @@ export const request = (url, data = {}, method = 'post', loading = false, conten
|
|||||||
doctor_id:result.doctor_id,
|
doctor_id:result.doctor_id,
|
||||||
});
|
});
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}else if(res.data.code==-1){
|
}else if(data.code==-1){
|
||||||
let H5url = 'https://dev-wx.igandan.com';
|
let H5url = 'https://dev-wx.igandan.com';
|
||||||
if(window.location.href.indexOf('//dev-casedata.igandan.com') == -1) {
|
if(window.location.href.indexOf('//dev-casedata.igandan.com') == -1) {
|
||||||
H5url = 'https://wx.igandan.com'
|
H5url = 'https://wx.igandan.com'
|
||||||
@ -181,6 +182,12 @@ export const request = (url, data = {}, method = 'post', loading = false, conten
|
|||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
let H5url = 'https://dev-wx.igandan.com';
|
||||||
|
if(window.location.href.indexOf('//dev-casedata.igandan.com') == -1) {
|
||||||
|
H5url = 'https://wx.igandan.com'
|
||||||
|
}
|
||||||
|
window.location.href = H5url + "/hcp/Signup2020online_tologin?back_url=" + encodeURIComponent(window.location.href);
|
||||||
}
|
}
|
||||||
|
|
||||||
n(res)
|
n(res)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user