hookehuyr

fix

......@@ -37,6 +37,7 @@ export default {
}
}
} else {
// tslint:disable-next-line: no-console
console.warn(res);
Toast({
icon: 'close',
......@@ -45,6 +46,7 @@ export default {
}
})
.catch(err => {
// tslint:disable-next-line: no-console
console.error(err);
});
},
......@@ -59,6 +61,7 @@ export default {
this.detail[`is_${type}`] = res.data.data[`is_${type}`];
this.detail[`${type}_num`] = res.data.data[`${type}_num`];
} else {
// tslint:disable-next-line: no-console
console.warn(res);
Toast({
icon: 'close',
......@@ -67,6 +70,7 @@ export default {
}
})
.catch(err => {
// tslint:disable-next-line: no-console
console.error(err);
});
}
......
......@@ -120,15 +120,15 @@ const $router = useRouter();
const { toggleLanguage, onLoad, columns, prod_list, finished, loading, bookInfo, showPicker, checkLocalism, checkMandarin, onConfirm, chooseLanguage } = useVideoList($route);
const gotoMe = () => {
console.warn('跳转我的地址');
}
// 判断是否显示简介的展开图标
const hasToggle = ref(false); // 判断是否有展开文字,默认没有
const isToggle = ref(true); // 判断展开状态,默认展开
const onToggle = (v) => { // 展开/折叠
/**
* 展开/折叠
* @param {*} v
*/
const onToggle = (v) => {
isToggle.value = v
}
......@@ -169,15 +169,11 @@ const onSubscribe = () => {
}
// 爱心捐书
// TODO: 需要联调捐书接口
const payFor = () => {
console.warn('弹出框');
}
// 未实名认证提示
const showNotice = ref(false)
const onClose = () => { // 关闭提示框回调
showNotice.value = false;
}
// 跳转个人中心
const onSubmit = () => {
$router.push({
......@@ -188,13 +184,20 @@ const onSubmit = () => {
/**
* 上传作品回调
*/
// 未实名认证提示
const showNotice = ref(false)
const onClose = () => { // 关闭提示框回调
showNotice.value = false;
}
const uploadVideo = () => {
axios.get('/srv/?a=can_upload')
.then(res => {
if (res.data.code === 1) {
// 实名认证标识
if (res.data.data.can_upload) {
// TODO: 上传视频直接跳转?不需要表示判断是上传哪个幼儿园吗?
// 实名认证之后直接跳转上传页面
if (Cookies.get('privacy_notice')) { // 已读隐私条例,直接跳转上传页面
location.href = 'https://jinshuju.net/f/NAGn1D';
} else {
......