| | |
| | | |
| | | ], |
| | | menu: [], |
| | | colorList: ['cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive','olive','grey' ] |
| | | colorList: ['cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive','cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive' ] |
| | | }; |
| | | }, |
| | | // onShow() { |
| | |
| | | } |
| | | }, |
| | | toOrder(item) { |
| | | console.log(item); |
| | | uni.navigateTo({ |
| | | url: `/pages${item.url}`, |
| | | success(res) { |
| | |
| | | color: this.colorList[i], |
| | | cuIcon: this.icon, |
| | | id: secMenu[i].id, |
| | | param: secMenu[i].param, |
| | | param: JSON.parse(secMenu[i].param), |
| | | url: `${secMenu[i].code}` |
| | | }) |
| | | |
| | | } |
| | | console.log(this.elements); |
| | | }, |
| | | getAuth(id) { |
| | | let that = this |
| | |
| | | maktx: '', |
| | | order_no: '', |
| | | brand: '', |
| | | orderType: null |
| | | orderType: [] |
| | | }, |
| | | index: 0, |
| | | count: 0, |
| | |
| | | let _this = this |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | eventChannel.on('param', function(data) { |
| | | _this.data.orderType = data.param.orderType |
| | | var orderType = data.param.orderType |
| | | if (orderType != [] || orderType != null) { |
| | | uni.setStorageSync('dataOrderTypeIn', orderType); |
| | | _this.data.orderType = orderType |
| | | } else { |
| | | orderType = uni.getStorageSync('dataOrderTypeIn'); |
| | | if (orderType != [] || orderType != null) { |
| | | _this.data.orderType = orderType |
| | | } else { |
| | | _this.data.orderType = [] |
| | | } |
| | | } |
| | | |
| | | }) |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | |
| | | url: `${_this.baseUrl}/order/detls/pakin/page/auth/v2`, |
| | | header: {'token': uni.getStorageSync('token')}, |
| | | data: _this.data, |
| | | method: 'GET', |
| | | method: 'POST', |
| | | success(res) { |
| | | uni.hideLoading() |
| | | res = res.data |
| | |
| | | let _this = this |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | eventChannel.on('param', function(data) { |
| | | _this.data.orderType = data.param.orderType |
| | | var orderType = data.param.orderType |
| | | if (orderType != [] || orderType != null) { |
| | | uni.setStorageSync('dataOrderTypeOut', orderType); |
| | | _this.data.orderType = orderType |
| | | } else { |
| | | orderType = uni.getStorageSync('dataOrderTypeOut'); |
| | | if (orderType != [] || orderType != null) { |
| | | _this.data.orderType = orderType |
| | | } else { |
| | | _this.data.orderType = [] |
| | | } |
| | | } |
| | | |
| | | }) |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | |
| | | url: `${_this.baseUrl}/orderDetl/pakout/list/authV7`, |
| | | header: {'token': uni.getStorageSync('token')}, |
| | | data: _this.data, |
| | | method: 'GET', |
| | | method: 'POST', |
| | | success(res) { |
| | | uni.hideLoading({}) |
| | | res = res.data |