Commit af6986b2 authored by wangmeng's avatar wangmeng

Merge branch 'dev_wm' into 'master'

进步奖

See merge request !163
parents 62dfa728 4c795e1b
...@@ -68,7 +68,6 @@ export default { ...@@ -68,7 +68,6 @@ export default {
nextLevel: "", nextLevel: "",
perenct: 0, perenct: 0,
diffrentMap: {}, diffrentMap: {},
userId: JSON.parse(localStorage.getItem("user")).userId,
type: ["amount", "recommend", "team"], type: ["amount", "recommend", "team"],
list: [ list: [
{ {
...@@ -100,7 +99,7 @@ export default { ...@@ -100,7 +99,7 @@ export default {
] ]
}; };
}, },
mounted() { created() {
this.getstatus(); this.getstatus();
}, },
methods: { methods: {
...@@ -115,7 +114,7 @@ export default { ...@@ -115,7 +114,7 @@ export default {
this.$router.push({ name: urlName }); this.$router.push({ name: urlName });
}, },
getstatus() { getstatus() {
const userId = this.userId; const userId = JSON.parse(localStorage.getItem("user")).userId;
const _this = this; const _this = this;
getForestStatus(userId) getForestStatus(userId)
.then(res => { .then(res => {
......
...@@ -82,7 +82,13 @@ export default { ...@@ -82,7 +82,13 @@ export default {
getProgressPrizes().then(res => { getProgressPrizes().then(res => {
if (res.code === 0) { if (res.code === 0) {
_this.growthTotal = res.data.growthTotal; _this.growthTotal = res.data.growthTotal;
_this.prizeVos = res.data.prizeVos; _this.prizeVos = res.data.prizeVos.map(item => {
const temp = item;
temp.userId =
item.userId.substring(0, 3) + "****" + item.userId.substring(7);
return temp;
});
// _this.prizeVos = res.data.prizeVos;
} else { } else {
_this.growthTotal = 0; _this.growthTotal = 0;
_this.prizeVos = []; _this.prizeVos = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment