|
@@ -30,7 +30,8 @@ Page({
|
|
|
*/
|
|
|
onLoad: function (options) {
|
|
|
this.setData({
|
|
|
- id: options.id
|
|
|
+ id: options.id,
|
|
|
+
|
|
|
})
|
|
|
$api.getEnumList().then(res=>{
|
|
|
var zq = res.data.data.zq, cw = res.data.data.cw,
|
|
@@ -44,7 +45,7 @@ Page({
|
|
|
arr3:df
|
|
|
})
|
|
|
})
|
|
|
- this.getData();
|
|
|
+ this.getData(options.match_id?options.match_id:null);
|
|
|
},
|
|
|
next: function () {
|
|
|
if (this.data.list.length < this.data.total) {
|
|
@@ -55,13 +56,14 @@ Page({
|
|
|
this.getData()
|
|
|
}
|
|
|
},
|
|
|
- getData() {
|
|
|
+ getData(match_id) {
|
|
|
wx.showLoading({
|
|
|
title: '正在加载',
|
|
|
})
|
|
|
var list = this.data.list
|
|
|
var form=this.data.form;
|
|
|
form.page = this.data.page;
|
|
|
+ form.match_id = match_id;
|
|
|
$api.getPlayerList(form).then(res => {
|
|
|
wx.hideLoading()
|
|
|
res.data.data.list.forEach(item => {
|