| | |
| | | getPriQuoteList() { |
| | | let _this = this |
| | | uni.showLoading({}) |
| | | let param = {curr:that.curr,limit:8,dept_id: 0,user_id: 67} |
| | | let param = {curr:this.curr,limit:8,dept_id: 0,user_id: 67} |
| | | if (this.user.type == 'user_id') { |
| | | param = {curr:that.curr,limit:8,user_id: that.user.id} |
| | | param = {curr:this.curr,limit:8,user_id: this.user.id} |
| | | } else if(this.user.type == 'dept_id') { |
| | | param = {curr:that.curr,limit:8,dept_id: that.user.id} |
| | | param = {curr:this.curr,limit:8,dept_id: this.user.id} |
| | | } else { |
| | | param = {curr:that.curr,limit:8} |
| | | param = {curr:this.curr,limit:8} |
| | | } |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/priQuote/list/auth`, |
| | | header: { 'token': uni.getStorageSync('token') }, |
| | | data: param, |
| | | success(res) { |
| | | uni.hideLoading() |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | for (let k of res.data.records) { |
| | |
| | | } |
| | | }, |
| | | fail(result) { |
| | | uni.hideLoading() |
| | | uni.showToast({title: '请求失败'}) |
| | | setTimeout(() => { |
| | | uni.reLaunch({ |