|
@@ -21,7 +21,7 @@ Page({
|
|
|
{ num: 3, name: '顾红伟' },
|
|
|
{ num: 4, name: '顾红伟' },
|
|
|
],
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
// 返回
|
|
|
back: function () { wx.navigateBack({ delta: 1 }) },
|
|
@@ -38,6 +38,14 @@ Page({
|
|
|
that.setData({ options: { match_id: options && options.match_id || '', group_id: options && options.group_id || '', project_id: options && options.project_id || '' } });
|
|
|
// 监听用户是否登录
|
|
|
await that.watchLogin();
|
|
|
+ await this.searchRanking();
|
|
|
+ },
|
|
|
+ async searchRanking() {
|
|
|
+ const res = await app.$get('/eliminate/ranking', this.data.options, 'race')
|
|
|
+ if (res.errcode == '0') {
|
|
|
+ const data = res.data;
|
|
|
+ this.setData({ cList: data })
|
|
|
+ }
|
|
|
},
|
|
|
watchLogin: async function () {
|
|
|
const that = this;
|
|
@@ -58,7 +66,7 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
|
*/
|