fix:配合后端订单接口,券接口key参数改为token
This commit is contained in:
parent
cc386166ac
commit
8dabcad8ab
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue