| | |
| | | <view class="cu-tag bg-cyan ">商品</view> |
| | | </view> |
| | | <view class="matnr"><text style="width: 400rpx;">{{item.matnr}}</text></view> |
| | | <view class="matnr"><text style="width: 400rpx;">{{item.maktx}}</text></view> |
| | | <view class="matnr"><text style="width: 400rpx;">{{item.specs}}</text></view> |
| | | </view> |
| | | </label> |
| | | </checkbox-group> |
| | |
| | | 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) |
| | | }) |
| | |
| | | 'token':uni.getStorageSync('token'), |
| | | }, |
| | | success(result) { |
| | | console.log(result) |
| | | uni.hideLoading(); |
| | | that.tag = null |
| | | that.data = null |
| | | var res = result.data |
| | |
| | | } else { |
| | | uni.showToast({title: res.msg, icon: "none",position: 'top'}) |
| | | } |
| | | uni.hideLoading(); |
| | | |
| | | } |
| | | }); |
| | | }, |
| | | showMat(tagId) { |
| | | uni.vibrateShort(); |
| | | uni.showLoading(); |
| | | let that = this |
| | | if (tagId == null || tagId == '' || tagId == undefined) { |
| | | return; |
| | |
| | | 'token':uni.getStorageSync('token'), |
| | | }, |
| | | success(result) { |
| | | console.log(result) |
| | | uni.hideLoading(); |
| | | that.tag = null |
| | | var res = result.data |
| | | if (res.code === 200) { |
| | | if (res.data != null && res.data.length > 0) { |
| | | uni.showLoading(); |
| | | that.data = res.data |
| | | uni.hideLoading(); |
| | | |
| | | } else { |
| | | // that.tagId = parentId |
| | | } |
| | |
| | | } else { |
| | | uni.showToast({title: res.msg, icon: "none",position: 'top'}) |
| | | } |
| | | |
| | | |
| | | } |
| | | }); |
| | | }, |