This commit is contained in:
daihh
2022-10-05 13:56:18 +08:00
5 changed files with 31 additions and 31 deletions

View File

@@ -25,7 +25,7 @@
<div v-if="noteList.length > 0"> <div v-if="noteList.length > 0">
<div style="border-bottom:1px solid #4444;padding-bottom:25px;" v-for="note in noteList" <div style="border-bottom:1px solid #4444;padding-bottom:25px;" v-for="note in noteList"
:key="note.id"> :key="note.id">
<span class="mycote-time">{{note.sysCreateTime}} <span class="mycote-time">{{note.sysUpdateTime}}
<span class="sm">{{note.openType == 9?'公开':'私密'}}</span> <span class="sm">{{note.openType == 9?'公开':'私密'}}</span>
<span class="more"> <span class="more">
<el-dropdown> <el-dropdown>

View File

@@ -324,6 +324,8 @@ export function experienceValue(total) {
data.endValue = 30000; data.endValue = 30000;
data.percentage = parseFloat((total / 30000) * 100); data.percentage = parseFloat((total / 30000) * 100);
} }
console.log("&&&&&&&&&&&&&&&&&&&&&&&");
console.log(data);
return data; return data;
} }
export function translate(field) { export function translate(field) {

View File

@@ -57,7 +57,7 @@
</div> </div>
<div class="exp-bar"> <div class="exp-bar">
<h6> {{current.total}}/{{current.endValue}}</h6> <h6> {{current.total}}/{{current.endValue}}</h6>
<div class="exp-barbox" v-if="current.percentage"> <div class="exp-barbox">
<el-progress :percentage="current.percentage" color="#387DF7"></el-progress> <el-progress :percentage="current.percentage" color="#387DF7"></el-progress>
<!-- <div class="exp-bar-cont"></div> --> <!-- <div class="exp-bar-cont"></div> -->
</div> </div>
@@ -261,19 +261,16 @@
sex: null sex: null
} }
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData]) this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData])
if(res.result.currentUserRankingData.weeks == undefined){res.result.currentUserRankingData.weeks = 0;}
if(res.result.currentUserRankingData.months == undefined){res.result.currentUserRankingData.months = 0;}
if(res.result.currentUserRankingData.years == undefined){res.result.currentUserRankingData.years = 0;}
this.currentUserRankingData = res.result.currentUserRankingData; this.currentUserRankingData = res.result.currentUserRankingData;
if(res.result.currentUserRankingData.total) { if(res.result.currentUserRankingData.total>=0) {this.current = this.experienceValue(res.result.currentUserRankingData.total);}
this.current = this.experienceValue(res.result.currentUserRankingData.total); if(res.result.currentUserRankingData.weeks>=0) {this.current = this.experienceValue(res.result.currentUserRankingData.weeks);}
} if(res.result.currentUserRankingData.months>=0) {this.current = this.experienceValue(res.result.currentUserRankingData.months);}
if(res.result.currentUserRankingData.weeks) { if(res.result.currentUserRankingData.years>=0) {this.current = this.experienceValue(res.result.currentUserRankingData.years);}
this.current = this.experienceValue(res.result.currentUserRankingData.weeks);
}
if(res.result.currentUserRankingData.months) {
this.current = this.experienceValue(res.result.currentUserRankingData.months);
}
if(res.result.currentUserRankingData.years) {
this.current = this.experienceValue(res.result.currentUserRankingData.years);
}
} }
const ids= []; const ids= [];

View File

@@ -24,10 +24,8 @@
</div> </div>
</div> </div>
<div class="edit-footer"> <div class="edit-footer">
<el-radio-group v-model="editdata.openType"> <el-radio-group v-if="editdata.openType == 9" v-model="editdata.openType"><el-radio :label="9">公开</el-radio><el-radio :label="1">私密</el-radio></el-radio-group>
<el-radio :label="9">公开</el-radio> <el-radio-group v-if="editdata.openType == 1" v-model="editdata.openType"><el-radio :label="1">私密</el-radio></el-radio-group>
<el-radio :label="1">私密</el-radio>
</el-radio-group>
<el-button style="margin-right:40%" type="primary" @click="savedata">保存</el-button> <el-button style="margin-right:40%" type="primary" @click="savedata">保存</el-button>
<el-button @click="comeback">取消</el-button> <el-button @click="comeback">取消</el-button>
</div> </div>

View File

@@ -327,17 +327,20 @@ export default {
sex: null sex: null
} }
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData]) this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData])
if(res.result.currentUserRankingData.weeks == undefined){res.result.currentUserRankingData.weeks = 0;}
if(res.result.currentUserRankingData.months == undefined){res.result.currentUserRankingData.months = 0;}
if(res.result.currentUserRankingData.years == undefined){res.result.currentUserRankingData.years = 0;}
this.experience.data = res.result.currentUserRankingData; this.experience.data = res.result.currentUserRankingData;
if(res.result.currentUserRankingData.total) { if(res.result.currentUserRankingData.total>=0) {
this.current = this.experienceValue(res.result.currentUserRankingData.total); this.current = this.experienceValue(res.result.currentUserRankingData.total);
} }
if(res.result.currentUserRankingData.weeks) { if(res.result.currentUserRankingData.weeks>=0) {
this.current = this.experienceValue(res.result.currentUserRankingData.weeks); this.current = this.experienceValue(res.result.currentUserRankingData.weeks);
} }
if(res.result.currentUserRankingData.months) { if(res.result.currentUserRankingData.months>=0) {
this.current = this.experienceValue(res.result.currentUserRankingData.months); this.current = this.experienceValue(res.result.currentUserRankingData.months);
} }
if(res.result.currentUserRankingData.years) { if(res.result.currentUserRankingData.years>=0) {
this.current = this.experienceValue(res.result.currentUserRankingData.years); this.current = this.experienceValue(res.result.currentUserRankingData.years);
} }
} }