diff --git a/v2_0_0_C/coupon/myCoupon.html b/v2_0_0_C/coupon/myCoupon.html
index 32c1d36..37406b5 100644
--- a/v2_0_0_C/coupon/myCoupon.html
+++ b/v2_0_0_C/coupon/myCoupon.html
@@ -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,
diff --git a/v2_0_0_C/coupon/myOrder.html b/v2_0_0_C/coupon/myOrder.html
index 45f5938..dc1f39a 100644
--- a/v2_0_0_C/coupon/myOrder.html
+++ b/v2_0_0_C/coupon/myOrder.html
@@ -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