|
@@ -22,6 +22,12 @@ Page({
|
|
|
toView: async function (e) {
|
|
|
const that = this;
|
|
|
const { item } = e.currentTarget.dataset;
|
|
|
+ if (item.winner) {
|
|
|
+ const arr = await app.$get(`/newCourt/api/user/${item.winner}`);
|
|
|
+ if (arr.errcode == '0') {
|
|
|
+ item.winner_name = arr.data.name
|
|
|
+ }
|
|
|
+ }
|
|
|
that.setData({ info: item })
|
|
|
that.setData({ dialog: { title: '详细信息', show: true, type: '1' } })
|
|
|
},
|
|
@@ -108,7 +114,7 @@ Page({
|
|
|
wx.getStorage({
|
|
|
key: 'user',
|
|
|
success: async (res) => {
|
|
|
- let info = { skip: 0, limit: 1000, referee_id: res.data.openid,status:'2' };
|
|
|
+ let info = { skip: 0, limit: 1000, referee_id: res.data.openid, status: '2' };
|
|
|
// if (searchInfo && searchInfo.name) info.name = searchInfo.name;
|
|
|
const arr = await app.$get(`/newCourt/api/race`, { ...info });
|
|
|
if (arr.errcode == '0') {
|