| | |
| | | condition:null, |
| | | tag: [], |
| | | data: [], |
| | | baseHttp:'http://', |
| | | baseIP:'', |
| | | basePORT:'', |
| | | baseUrl:'/lywms' |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('acceptDataFromOpenerPage', function(data) { |
| | | eventChannel.on('commonUrl', function(data) { |
| | | that.commonUrl = data.commonUrl |
| | | that.showTag(1) |
| | | }) |
| | |
| | | return; |
| | | } |
| | | uni.request({ |
| | | // url: "http://localhost:8081/jkwms/mat/list/pda/auth", |
| | | url: that.commonUrl + '/mat/list/pda/auth', |
| | | data: { |
| | | tagId: tagId |
| | |
| | | 'token':uni.getStorageSync('token'), |
| | | }, |
| | | success(result) { |
| | | console.log(result) |
| | | that.tag = null |
| | | var res = result.data |
| | | if (res.code === 200) { |