diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue
index a6c50be3..40bda016 100644
--- a/buyer/src/components/goodsDetail/ShowGoods.vue
+++ b/buyer/src/components/goodsDetail/ShowGoods.vue
@@ -126,7 +126,7 @@
-
+
@@ -199,13 +199,18 @@ export default {
skuId: this.skuDetail.id
};
this.loading = true;
+ console.log(11111111);
addCartGoods(params).then(res => {
+ debugger;
this.loading = false;
if (res.success) {
this.$router.push({path: '/shoppingCart', query: {detail: this.skuDetail, count: this.count}});
} else {
this.$Message.warning(res.message);
}
+ }).catch(() => {
+ console.log('catch');
+ this.loading = false;
});
},
buyNow () { // 立即购买
@@ -222,6 +227,8 @@ export default {
} else {
this.$Message.warning(res.message);
}
+ }).catch(() => {
+ this.loading1 = false;
});
},
pointPay () { // 积分购买
@@ -339,7 +346,7 @@ export default {
}
})
}
-
+
this.formatSku(this.goodsSpecList);
this.promotion()
document.title = this.skuDetail.goodsName
diff --git a/buyer/src/components/invoiceModal/index.vue b/buyer/src/components/invoiceModal/index.vue
index e5394fa8..b3989fca 100644
--- a/buyer/src/components/invoiceModal/index.vue
+++ b/buyer/src/components/invoiceModal/index.vue
@@ -11,42 +11,37 @@
-->
@@ -54,20 +49,21 @@
@@ -132,10 +132,10 @@ export default {
color: $theme_color;
}
}
+
.selected-cate{
color: $theme_color;
}
-
}
.page-size {
width: 1200px;
diff --git a/buyer/src/pages/payment/Pay.vue b/buyer/src/pages/payment/Pay.vue
index 0c91be7e..48ec2f7e 100644
--- a/buyer/src/pages/payment/Pay.vue
+++ b/buyer/src/pages/payment/Pay.vue
@@ -4,15 +4,23 @@
-
![lilishop lili shop]()
+
结算页
- 1.我的购物车
-
- 2.填写订单信息
-
- 3.成功提交订单
+ 1.我的购物车
+
+ 2.填写订单信息
+
+ 3.成功提交订单
@@ -24,18 +32,35 @@
管理收货人地址
-
+
- {{item.name}}
+ {{ item.name }}
默认
- {{item.alias}}
+ {{
+ item.alias
+ }}
+
+
{{ item.mobile }}
+
+ {{ item.consigneeAddressPath | unitAddress }} {{ item.detail }}
-
{{item.mobile}}
-
{{ item.consigneeAddressPath | unitAddress }} {{item.detail}}
修改
- 删除
+ 删除
-
- {{moreAddr ? '收起地址' : '更多地址'}}
+
+ {{ moreAddr ? "收起地址" : "更多地址" }}
@@ -60,10 +89,17 @@
商品信息
返回购物车
-
+
- {{shop.storeName}}
+ {{
+ shop.storeName
+ }}
-
-
-
- {{goods.goodsSku.goodsName}}
+
+
+
+ {{
+ goods.goodsSku.goodsName
+ }}
-
{{goods.goodsSku.price | unitPrice('¥')}}
-
x{{goods.num}}
-
{{goods.goodsSku.quantity > 0 ? '有货' : '无货'}}
-
{{goods.goodsSku.price * goods.num | unitPrice('¥')}}
+
{{
+ goods.goodsSku.price | unitPrice("¥")
+ }}
+
x{{ goods.num }}
+
{{ goods.goodsSku.quantity > 0 ? "有货" : "无货" }}
+
{{
+ (goods.goodsSku.price * goods.num) | unitPrice("¥")
+ }}
-
- 提示:请勿填写有关支付、收货、发票方面的信息
+
+ 提示:请勿填写有关支付、收货、发票方面的信息
- 发票信息
- 开企业抬头发票须填写纳税人识别号,以免影响报销
-
+ 发票信息
+ 开企业抬头发票须填写纳税人识别号,以免影响报销
+
- {{invoiceData.receiptTitle}}
- {{invoiceData.receiptContent}}
+ {{ invoiceData.receiptTitle }}
+ {{ invoiceData.receiptContent }}
编辑
@@ -108,24 +171,49 @@
优惠券
-
- 无可用优惠券
-
+
无可用优惠券
- -
+
-
- ¥{{item.price | unitPrice}}
- {{item.couponDiscount}}折
- 满{{item.consumeThreshold}}元可用
+ ¥{{
+ item.price | unitPrice
+ }}
+ {{ item.couponDiscount }}折
+ 满{{ item.consumeThreshold }}元可用
-
使用范围:{{useScope(item.scopeType)}}
-
有效期:{{item.endTime}}
+
使用范围:{{ useScope(item.scopeType) }}
+
有效期:{{ item.endTime }}
-
+
立即使用
- 放弃优惠
+ 放弃优惠
@@ -138,81 +226,116 @@
- {{totalNum}}件商品,总商品金额:{{priceDetailDTO.goodsPrice | unitPrice('¥')}}
+ {{ totalNum }}件商品,总商品金额:{{ priceDetailDTO.goodsPrice | unitPrice("¥") }}
- 运费:{{ priceDetailDTO.freightPrice | unitPrice('¥')}}
+ 运费:{{ priceDetailDTO.freightPrice | unitPrice("¥") }}
- 优惠金额:-{{ priceDetailDTO.discountPrice + priceDetailDTO.couponPrice + priceDetailDTO.updatePrice | unitPrice('¥')}}
+ 优惠金额:-{{
+ (priceDetailDTO.discountPrice +
+ priceDetailDTO.couponPrice +
+ priceDetailDTO.updatePrice)
+ | unitPrice("¥")
+ }}
- 应付金额:{{priceDetailDTO.billPrice | unitPrice('¥')}}
+ 应付金额:{{
+ priceDetailDTO.billPrice | unitPrice("¥")
+ }}
-
-
+
-
+
diff --git a/buyer/src/plugins/request.js b/buyer/src/plugins/request.js
index 7d3233d5..5a897bb0 100644
--- a/buyer/src/plugins/request.js
+++ b/buyer/src/plugins/request.js
@@ -69,10 +69,10 @@ service.interceptors.request.use(
config.headers['accessToken'] = accessToken;
// 解析当前token时间
let jwtData = JSON.parse(
- decodeURIComponent(escape(window.atob(accessToken.split('.')[1].replace(/-/g, '+').replace(/_/g, '/'))))
+ decodeURIComponent(escape(window.atob(accessToken.split('.')[1])))
);
if (jwtData.exp < Math.round(new Date() / 1000)) {
- refresh()
+ refresh(config)
}
}
@@ -83,7 +83,7 @@ service.interceptors.request.use(
}
);
-async function refresh () {
+async function refresh (error) {
const getTokenRes = await refreshToken();
if (getTokenRes === 'success') {
// 刷新token
@@ -101,7 +101,6 @@ async function refresh () {
Storage.removeItem('userInfo');
Storage.setItem('cartNum', 0);
store.commit('SET_CARTNUM', 0);
- console.log('1111');
Modal.confirm({
title: '请登录',
content: '请登录后执行此操作
',
@@ -140,7 +139,7 @@ service.interceptors.response.use(
isRefreshToken++;
if (isRefreshToken === 1) {
- refresh()
+ refresh(error)
isRefreshToken = 0;
}
} else {
diff --git a/seller/src/main.js b/seller/src/main.js
index 094434c9..c73b4bbc 100644
--- a/seller/src/main.js
+++ b/seller/src/main.js
@@ -5,7 +5,7 @@ import ViewUI from "view-design";
import "./styles/theme.less";
import "core-js/stable";
-import "regenerator-runtime/runtime";
+// import "regenerator-runtime/runtime";
import vueQr from 'vue-qr'
import App from "./App";