fix:配合后端订单接口,券接口key参数改为token

This commit is contained in:
wangsongsole 2022-10-10 18:17:12 +08:00
parent cc386166ac
commit 8dabcad8ab
2 changed files with 5 additions and 5 deletions

View File

@ -160,9 +160,9 @@
/* 请求数据 */ /* 请求数据 */
getCouponList () { getCouponList () {
const key = localStorage.getItem('key') const token = localStorage.getItem('token')
req.axiosGet('/key/coupon/list', { req.axiosGet('/key/coupon/list', {
key, token,
status: this.tabActive status: this.tabActive
}).then(({ }).then(({
data, data,

View File

@ -123,10 +123,10 @@
/* 图标分流 */ /* 图标分流 */
filterImgSrc (item) { filterImgSrc (item) {
const redirectType = item.goods.entity.channel
if (item.type === 1) { if (item.type === 1) {
return item.show_url return item.show_url
} else { } else {
const redirectType = item.goods.entity.channel
if (redirectType === 1) { if (redirectType === 1) {
return 'https://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/zfbreduce.png' return 'https://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/zfbreduce.png'
} }
@ -206,8 +206,8 @@
/* 请求订单数据 */ /* 请求订单数据 */
getOrderList () { getOrderList () {
const key = localStorage.getItem('key') const token = localStorage.getItem('token')
req.axiosGet(`/key/order/${key}`, { page: this.page, limit: this.limit }).then(({ data, code, message }) => { req.axiosGet(`/key/order/${token}`, { page: this.page, limit: this.limit }).then(({ data, code, message }) => {
if (code === -1) { if (code === -1) {
this.popFunction({ title: '温馨提示', text: message, status: 2, b_text: '我知道了', show: true }) this.popFunction({ title: '温馨提示', text: message, status: 2, b_text: '我知道了', show: true })
return this.redirect = true return this.redirect = true