解决冲突

This commit is contained in:
weinan2087
2022-10-13 15:02:43 +08:00
parent a726aa3f0e
commit e4717d3f60

View File

@@ -5,7 +5,7 @@
:append-to-body="true" :append-to-body="true"
min-width="770px" min-width="770px"
max-width="950px" max-width="950px"
@close="closeDialog"
> >
<div style="margin-top:10px"> <div style="margin-top:10px">
<div class="interest" v-for="(sys,index) in sysTypeListMap" :key="sys.id"> <div class="interest" v-for="(sys,index) in sysTypeListMap" :key="sys.id">
@@ -43,9 +43,12 @@
created() { created() {
// this.userAvatar=require("@/assets/images/user/default.png"); // this.userAvatar=require("@/assets/images/user/default.png");
apiUserhobby.has().then(res=>{ apiUserhobby.has().then(res=>{
console.log("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
console.log(res);
console.log("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
if(res.status != 200) {return;} if(res.status != 200) {return;}
// 1. 判断用户是否选择过兴趣偏好 // 1. 判断用户是否选择过兴趣偏好
if(res.data == false){ if(res.result == false){
this.interestCollection = true; this.interestCollection = true;
} }
// 2. 判断用户是否点击过"暂不选择"按钮,如果用户点击过"暂不选择"按钮则判断点击"暂不选择"按钮天数是否大于15天如果大于则弹出兴趣偏好框否则不弹 // 2. 判断用户是否点击过"暂不选择"按钮,如果用户点击过"暂不选择"按钮则判断点击"暂不选择"按钮天数是否大于15天如果大于则弹出兴趣偏好框否则不弹
@@ -74,6 +77,9 @@
...mapActions({ ...mapActions({
getSysTypeTree: 'sysType/getSysTypeTree', getSysTypeTree: 'sysType/getSysTypeTree',
}), }),
closeDialog() {
localStorage.setItem('dialog_session_show',1);
},
saveInterest() { saveInterest() {
let data = [] let data = []
if(this.checkboxGroup.length < 3) { if(this.checkboxGroup.length < 3) {