1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- import http from '../../../base/httputil'
- const app = getApp()
- Page({
- /**
- * 组件的初始数据
- */
- data: {
- host: app.globalData.host,
- teamList: [],
- },
- onLoad() {
- // this.list(null)
- },
- // 搜索结果跳页
- bindViewSearchEnd() {
- // wx.navigateTo({
- // url: '../search/search'
- // })
- },
- // 企业详细页
- bindViewDetails(e) {
- let warehouse_details = e.currentTarget.dataset.index
- wx.navigateTo({
- url: '../details/team_details?details=' + JSON.stringify(warehouse_details)
- })
- },
- searchEnterprise(e) {
- var obj = new Object()
- obj.teamName = e.detail.value
-
- this.list(obj)
- },
- list(data) {
- http.send_get("/system/AppTeamController/getTeamList", data, this.getTeamListSuccess)
- },
- getTeamListSuccess(res) {
-
- console.log("$$$",res)
- this.setData({
- teamList: res.data.rows
- })
- }
- })
|