| | |
| | | <template> |
| | | <view> |
| | | |
| | | <!-- 站点详情 --> |
| | | <view class="station" :class="station.style" > |
| | | <view class="station-title">{{station.devNo}}</view> |
| | | <view>站点类型:{{station.locType1$}}区</view> |
| | | <view>货架前两位:{{station.locType2$}}</view> |
| | | <view>站点状态:{{station.locSts$}}</view> |
| | | <view>货架码:{{station.barcode}}</view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | station: null, |
| | | |
| | | } |
| | | }, |
| | | onLoad() { |
| | | let _this = this |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | // const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('item', function(data) { |
| | | console.log(data); |
| | | _this.station = data.item |
| | | }) |
| | | }, |
| | | methods: { |
| | | |
| | |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | .station-title { |
| | | font-size: 32px; |
| | | font-weight: bold; |
| | | padding: 24rpx 0; |
| | | } |
| | | .station { |
| | | font-size: 18px; |
| | | padding: 24rpx; |
| | | } |
| | | .station-wrk { |
| | | background-color: #ff7356; |
| | | color: #fff; |
| | | } |
| | | .station-nowrk { |
| | | background-color: #3eb689; |
| | | color: #fff; |
| | | } |
| | | </style> |