|
@@ -23,11 +23,9 @@ Page({
|
|
|
const that = this;
|
|
|
const { item } = e.currentTarget.dataset;
|
|
|
const arr = await app.$get(`/newCourt/api/eliminateRace/${item._id}`);
|
|
|
- console.log(arr.data);
|
|
|
if (arr.errcode == '0') {
|
|
|
if (arr.data.winner) {
|
|
|
const user = await app.$get(`/newCourt/api/user/${arr.data.winner}`);
|
|
|
- console.log(user);
|
|
|
if (user.errcode == '0') { arr.data.winner_name = user.data.name }
|
|
|
}
|
|
|
that.setData({ info: arr.data });
|