|
@@ -16,6 +16,7 @@ Page({
|
|
|
match:[],
|
|
match:[],
|
|
|
index:0,
|
|
index:0,
|
|
|
id:'',
|
|
id:'',
|
|
|
|
|
+ user_id:'',
|
|
|
ec: {
|
|
ec: {
|
|
|
onInit: null
|
|
onInit: null
|
|
|
},
|
|
},
|
|
@@ -28,10 +29,6 @@ Page({
|
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
*/
|
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
|
- console.log(options)
|
|
|
|
|
-
|
|
|
|
|
- // options.id = 7, options.record_id = 29014
|
|
|
|
|
- // options.id = 9, options.player_id = 3520
|
|
|
|
|
id = options.id?options.id:null, record_id = options.record_id?options.record_id:null
|
|
id = options.id?options.id:null, record_id = options.record_id?options.record_id:null
|
|
|
this.setData({
|
|
this.setData({
|
|
|
type:options.type?options.type:'',
|
|
type:options.type?options.type:'',
|
|
@@ -44,6 +41,11 @@ Page({
|
|
|
title: '我的主页',
|
|
title: '我的主页',
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+ $api.getAuthinfo().then(res=>{
|
|
|
|
|
+ this.setData({
|
|
|
|
|
+ user_id:res.data.data.id
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
$api.getMatchList().then(res=>{
|
|
$api.getMatchList().then(res=>{
|
|
|
let l = res.data.data.length - 1;
|
|
let l = res.data.data.length - 1;
|
|
|
this.setData({
|
|
this.setData({
|