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