From a4f2fc1381a1f47677749b9adb4df77030b7a77d Mon Sep 17 00:00:00 2001 From: mabo Date: Mon, 17 May 2021 15:38:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E5=85=A5=E9=A9=BBbug?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/pages/Login.vue | 1 + buyer/src/pages/shopEntry/first-apply.vue | 16 +++++----- manager/vue.config.js | 6 ---- seller/src/router/router.js | 12 ++++---- .../views/promotion/fullCut/newFullCut.vue | 5 +++- .../src/views/promotion/pintuan/pintuan.vue | 13 +++++++-- .../views/promotion/pintuan/pintuanGoods.vue | 29 ++++++++++++------- seller/vue.config.js | 11 ------- 8 files changed, 48 insertions(+), 45 deletions(-) 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/manager/vue.config.js b/manager/vue.config.js index b5be380c..df94c1ff 100644 --- a/manager/vue.config.js +++ b/manager/vue.config.js @@ -18,12 +18,6 @@ module.exports = { }, devServer: { port: 9999 - // proxy: { - // '/lili': { - // target: 'http://127.0.0.1:8888', // 请求本地 需要lili后台项目 - // ws: true - // } - // } }, chainWebpack: config => { diff --git a/seller/src/router/router.js b/seller/src/router/router.js index 133081b5..eaf49412 100644 --- a/seller/src/router/router.js +++ b/seller/src/router/router.js @@ -115,12 +115,12 @@ export const otherRouter = { component: () => import("@/views/order/after-order/reurnGoodsOrderDetail.vue") }, - // { - // path: "full-cut-detail", - // title: "添加满额活动", - // name: "full-cut-detail", - // component: () => import("@/views/promotion/fullCut/newFullCut.vue") - // }, + { + path: "full-cut-detail", + title: "添加满额活动", + name: "full-cut-detail", + component: () => import("@/views/promotion/fullCut/newFullCut.vue") + }, { path: "order-detail", title: "订单详情", diff --git a/seller/src/views/promotion/fullCut/newFullCut.vue b/seller/src/views/promotion/fullCut/newFullCut.vue index b17138c7..d7fc23b6 100644 --- a/seller/src/views/promotion/fullCut/newFullCut.vue +++ b/seller/src/views/promotion/fullCut/newFullCut.vue @@ -496,6 +496,7 @@ export default { this.form.promotionGoodsList.splice(index, 1); }, selectedGoodsData(item) { + console.log(item); // 回显已选商品 let ids = []; let list = []; @@ -509,11 +510,13 @@ export default { price: e.price, quantity: e.quantity, storeId: e.storeId, - sellerName: e.sellerName, + storeName: e.storeName, + thumbnail: e.thumbnail, skuId: e.id, }); } }); + console.log(list); this.form.promotionGoodsList.push(...list); }, getCouponList(query) { diff --git a/seller/src/views/promotion/pintuan/pintuan.vue b/seller/src/views/promotion/pintuan/pintuan.vue index ea86f7dd..be4159a3 100644 --- a/seller/src/views/promotion/pintuan/pintuan.vue +++ b/seller/src/views/promotion/pintuan/pintuan.vue @@ -68,9 +68,16 @@ type="info" v-if="row.promotionStatus == 'NEW'" size="small" - @click="manage(row)" + @click="manage(row, 'manager')" >管理  +   - + - + 已选择 {{ selectCount }}清空 +

活动商品