mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
修改兴趣偏好弹框
This commit is contained in:
@@ -43,14 +43,12 @@
|
||||
created() {
|
||||
// this.userAvatar=require("@/assets/images/user/default.png");
|
||||
apiUserhobby.has().then(res=>{
|
||||
console.log("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
|
||||
console.log(res);
|
||||
console.log("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
|
||||
if(res.status != 200) {return;}
|
||||
// 1. 判断用户是否选择过兴趣偏好
|
||||
if(res.result == false){
|
||||
this.interestCollection = true;
|
||||
}
|
||||
if(res.result == true){this.interestCollection = false;return;}
|
||||
// 2. 判断用户是否点击过"暂不选择"按钮,如果用户点击过"暂不选择"按钮则判断点击"暂不选择"按钮天数是否大于15天,如果大于则弹出兴趣偏好框,否则不弹
|
||||
let time = localStorage.getItem('notYet');
|
||||
if(time == '') {
|
||||
|
||||
Reference in New Issue
Block a user