diff --git a/buyer/src/components/header/Header.vue b/buyer/src/components/header/Header.vue index af0b69f7..182a7183 100644 --- a/buyer/src/components/header/Header.vue +++ b/buyer/src/components/header/Header.vue @@ -45,14 +45,14 @@
退出登陆
+退出登录
{{ item.goodsSku.goodsName }}
+{{ item.goodsSku.goodsName }}
@@ -173,6 +173,8 @@ export default { storage.removeItem('accessToken'); storage.removeItem('refreshToken'); storage.removeItem('userInfo'); + storage.removeItem('cartNum'); + this.$store.commit('SET_CARTNUM', 0) this.$router.push('/login'); }, goUserCenter (path) { // 跳转我的订单,我的足迹 @@ -301,7 +303,7 @@ export default { .shopping-cart-list { padding: 10px 15px; box-sizing: border-box; - height: 300px; + max-height: 300px; overflow: scroll; } .shopping-cart-box { diff --git a/buyer/src/pages/Login.vue b/buyer/src/pages/Login.vue index 8b765272..ee137d0a 100644 --- a/buyer/src/pages/Login.vue +++ b/buyer/src/pages/Login.vue @@ -245,6 +245,7 @@ export default { this.$Message.success('验证码发送成功'); let that = this; this.interval = setInterval(() => { + console.log(that.time); that.time--; if (that.time === 0) { that.time = 60; diff --git a/buyer/src/pages/shopEntry/first-apply.vue b/buyer/src/pages/shopEntry/first-apply.vue index 87788ff1..715951b2 100644 --- a/buyer/src/pages/shopEntry/first-apply.vue +++ b/buyer/src/pages/shopEntry/first-apply.vue @@ -193,9 +193,7 @@ export default { components: { region }, props: { content: { - default () { - return {}; - }, + default: {}, type: Object } }, @@ -325,11 +323,13 @@ export default { }, mounted () { this.accessToken.accessToken = storage.getItem('accessToken'); - this.form = JSON.parse(JSON.stringify(this.content)); - if (this.form.licencePhoto) { - this.form.legalPhoto = this.content.legalPhoto.split(','); - this.form.licencePhoto = this.content.licencePhoto.split(','); - this.address = this.form.addressIdPath; + if (Object.keys(this.content).length) { + this.form = JSON.parse(JSON.stringify(this.content)); + if (this.form.licencePhoto) { + this.form.legalPhoto = this.content.legalPhoto.split(','); + this.form.licencePhoto = this.content.licencePhoto.split(','); + this.address = this.form.addressIdPath; + } } } }; diff --git a/buyer/src/plugins/request.js b/buyer/src/plugins/request.js index 383b5098..1b3c8bc9 100644 --- a/buyer/src/plugins/request.js +++ b/buyer/src/plugins/request.js @@ -9,6 +9,7 @@ import { import Storage from './storage'; import config from '@/config'; import router from '../router/index.js'; +import store from '../vuex/store'; import { handleRefreshToken } from '@/api/index'; @@ -80,7 +81,6 @@ service.interceptors.response.use( const errorData = errorResponse.data || {}; if (errorResponse.status === 403) { - isRefreshToken++; if (isRefreshToken === 1) { @@ -96,6 +96,9 @@ service.interceptors.response.use( Storage.removeItem('accessToken'); Storage.removeItem('refreshToken'); Storage.removeItem('userInfo'); + Storage.setItem('cartNum', 0) + store.commit('SET_CARTNUM', 0) + console.log('1111'); Modal.confirm({ title: '请登录', content: '
请登录后执行此操作
', diff --git a/manager/vue.config.js b/manager/vue.config.js index 446a2847..c7f21d3a 100644 --- a/manager/vue.config.js +++ b/manager/vue.config.js @@ -18,12 +18,6 @@ module.exports = { }, devServer: { port: 10003 - // proxy: { - // '/lili': { - // target: 'http://127.0.0.1:8888', // 请求本地 需要lili后台项目 - // ws: true - // } - // } }, chainWebpack: config => { diff --git a/seller/src/libs/routerJson.js b/seller/src/libs/routerJson.js index 41937a01..29ec21bc 100644 --- a/seller/src/libs/routerJson.js +++ b/seller/src/libs/routerJson.js @@ -405,7 +405,7 @@ export const result = [ type: 0, title: "满额活动", path: "full-cut", - component: "promotion/fullCut/full-cut", + component: "promotion/fullCut/fullCut", icon: "md-person", isMenu: true, url: "", diff --git a/seller/src/views/promotion/fullCut/full-cut.vue b/seller/src/views/promotion/fullCut/fullCut.vue similarity index 99% rename from seller/src/views/promotion/fullCut/full-cut.vue rename to seller/src/views/promotion/fullCut/fullCut.vue index 8f3d1cac..3a18d8f7 100644 --- a/seller/src/views/promotion/fullCut/full-cut.vue +++ b/seller/src/views/promotion/fullCut/fullCut.vue @@ -111,6 +111,7 @@