|
@@ -15,7 +15,7 @@ Page({
|
|
|
// 查询
|
|
|
async toSearch(e) {
|
|
|
const that = this;
|
|
|
- if (e.detail.value) that.setData({ 'searchInfo.name': e.detail.value })
|
|
|
+ if (e.detail.value) that.setData({ 'searchInfo.team_name': e.detail.value })
|
|
|
else that.setData({ searchInfo: {} })
|
|
|
that.clearPage();
|
|
|
that.search()
|
|
@@ -25,7 +25,7 @@ Page({
|
|
|
const that = this;
|
|
|
if (that.data.user.name) {
|
|
|
let item = e.currentTarget.dataset.item
|
|
|
- wx.navigateTo({ url: '/pagesTeam/apply/index?id=' + item._id })
|
|
|
+ wx.navigateTo({ url: '/pagesTeam/apply/index?id=' + item.team_id })
|
|
|
} else {
|
|
|
wx.showToast({ title: `请维护基础信息`, icon: 'none' });
|
|
|
}
|
|
@@ -111,8 +111,8 @@ Page({
|
|
|
// 查询通知
|
|
|
async search() {
|
|
|
const that = this;
|
|
|
- let info = { skip: that.data.skip, limit: that.data.limit, match_id: that.data.id, status: "1" };
|
|
|
- let res = await app.$api('application/team', 'GET', { ...info, ...that.data.searchInfo })
|
|
|
+ let info = { skip: that.data.skip, limit: that.data.limit, match_id: that.data.id };
|
|
|
+ let res = await app.$api('application', 'GET', { ...info, ...that.data.searchInfo })
|
|
|
if (res.errcode == '0') {
|
|
|
let list = [...that.data.list, ...res.data]
|
|
|
for (const val of list) {
|