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