Browse Source

1

pull/12/head
zhaoguoqiang 3 years ago
parent
commit
eccd624079
  1. 28
      src/views/login.vue
  2. 11
      src/views/teamList/index.vue

28
src/views/login.vue

@ -6,22 +6,22 @@
let url = this.$route.query;
let token;
let url_string = JSON.stringify(url);
if (url_string == "{}") {
this.$toast('请先登录')
} else {
token = url.token_type + " " + url.access_token;
this.$store.commit("user/setToken", token);
this.$router.push({
path: "/home",
});
}
// token =
// "bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC90ZXN0LnFpbmd3ZWlsYWk4ODgueHl6XC9hZG1pblwvbG9naW4iLCJpYXQiOjE2Mjc0NjU1ODksImV4cCI6MTk4NzQ2NTU4OSwibmJmIjoxNjI3NDY1NTg5LCJqdGkiOiJ6clVHYnJCOXlPWkpRanRUIiwic3ViIjoxNjEsInBydiI6IjBiMzZjMGUwMjMyZGVlZTlkOTZhZDA0NGY3YWE2MjQ2YTUwYTU3ZmEifQ.aFc5fCUffmDN7zBRn-D13kx1LuLNG1Ej7vQOu4O2_AA"
// this.$store.commit("user/setToken", token);
// this.$router.push({
// if (url_string == "{}") {
// this.$toast('')
// } else {
// token = url.token_type + " " + url.access_token;
// this.$store.commit("user/setToken", token);
// this.$router.push({
// path: "/home",
// });
// }
token =
"bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC90ZXN0LnFpbmd3ZWlsYWk4ODgueHl6XC9hZG1pblwvbG9naW4iLCJpYXQiOjE2Mjc0NjU1ODksImV4cCI6MTk4NzQ2NTU4OSwibmJmIjoxNjI3NDY1NTg5LCJqdGkiOiJ6clVHYnJCOXlPWkpRanRUIiwic3ViIjoxNjEsInBydiI6IjBiMzZjMGUwMjMyZGVlZTlkOTZhZDA0NGY3YWE2MjQ2YTUwYTU3ZmEifQ.aFc5fCUffmDN7zBRn-D13kx1LuLNG1Ej7vQOu4O2_AA"
this.$store.commit("user/setToken", token);
this.$router.push({
path: "/home",
});
},
};
</script>

11
src/views/teamList/index.vue

@ -14,8 +14,8 @@
</div>
<div class="teamInfo">
<div class="teamName">{{item.username}}</div>
<div class="teamMoney"></div>
<!-- <div class="teamMoney">{{today_month}}月打款业绩{{item.team_integral | capitalize}}</div> -->
<!-- <div class="teamMoney"></div> -->
<div class="teamMoney">注册时间{{item.created_at |time}}</div>
<div class="teamNum">团队人数{{item.team_num}}</div>
</div>
</div>
@ -53,6 +53,9 @@
capitalize: function (val) {
return (+val || 0).toFixed(0).replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g, '$&,')
},
time: function (val) {
return val.substring(0,10);
},
capitalize2: function (index) {
let key = Number(index-1)
const statusList = [
@ -191,8 +194,8 @@
}
.teamMoney {
height: 26px;
line-height: 26px;
// height: 26px;
// line-height: 26px;
font-size: 26px;
font-weight: 400;
color: #FFFFFF;

Loading…
Cancel
Save