mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 06:46:43 +08:00
提交
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<div><el-button type="primary" class="btn-one" @click="saveInterest()">生成我的兴趣偏好</el-button></div>
|
<div><el-button type="primary" class="btn-one" @click="saveInterest()">生成我的兴趣偏好</el-button></div>
|
||||||
<div><el-button @click="interestCollection = false" class="btn-tow" type="text">暂不选择</el-button></div>
|
<div><el-button @click="notYet()" class="btn-tow" type="text">暂不选择</el-button></div>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
checkboxGroup:[],
|
checkboxGroup:[],
|
||||||
interestCollection:true,// 兴趣采集
|
interestCollection:false,// 兴趣采集
|
||||||
sysTypeListMap:[]
|
sysTypeListMap:[]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -39,6 +39,12 @@
|
|||||||
apiUserhobby.has().then(res=>{
|
apiUserhobby.has().then(res=>{
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
this.interestCollection = true;
|
this.interestCollection = true;
|
||||||
|
} else {
|
||||||
|
let time = localStorage.getItem('notYet');
|
||||||
|
let day = (new Date() - new Date(time))/(1000*60*60*24);
|
||||||
|
if(day > 8){
|
||||||
|
this.interestCollection = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -48,6 +54,10 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
notYet() {
|
||||||
|
this.interestCollection = false;
|
||||||
|
localStorage.setItem('notYet',new Date());
|
||||||
|
},
|
||||||
...mapActions({
|
...mapActions({
|
||||||
getSysTypeTree: 'sysType/getSysTypeTree',
|
getSysTypeTree: 'sysType/getSysTypeTree',
|
||||||
}),
|
}),
|
||||||
@@ -73,7 +83,7 @@
|
|||||||
dangerouslyUseHTMLString: true,
|
dangerouslyUseHTMLString: true,
|
||||||
message: `<span class="u-message">
|
message: `<span class="u-message">
|
||||||
选择个人偏好成功,U币+5
|
选择个人偏好成功,U币+5
|
||||||
<span class="text"><router-link class="routerLink" to="/user/ucurrency">查看详情</router-link></span>
|
<span class="text"><a href="${this.webBaseUrl}/user/ucurrency">查看详情</a></span>
|
||||||
</span>`
|
</span>`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user