| | |
| | | uni.showToast({title: '请添加商品', icon: "none", position: 'top'}); |
| | | return; |
| | | } |
| | | var combList = {} |
| | | var matList = [] |
| | | combList['locno'] = that.locno |
| | | combList['combMats'] = that.matList |
| | | matList['matnr'] = that.matList |
| | | console.log(JSON.stringify(combList)) |
| | | var combMats = [] |
| | | var combParam = {} |
| | | combParam['locno'] = that.locno |
| | | combParam['combMats'] = that.matList |
| | | uni.request({ |
| | | url: that.commonUrl + '/mobile/mat/onSale/auth', |
| | | data: { |
| | | combParam:JSON.stringify(combList) |
| | | }, |
| | | header: { 'token':uni.getStorageSync('token') }, |
| | | method:'GET', |
| | | data: JSON.stringify(combParam), |
| | | header: { 'token':uni.getStorageSync('token'),}, |
| | | method:'POST', |
| | | success(result) { |
| | | console.log(result) |
| | | |
| | | } |
| | | }) |
| | | }, |