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 () {
const key = localStorage.getItem('key')
const token = localStorage.getItem('token')
req.axiosGet('/key/coupon/list', {
key,
token,
status: this.tabActive
}).then(({
data,

View File

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