diff --git a/buyer/src/components/addressManage/index.vue b/buyer/src/components/addressManage/index.vue index 78843e25..b5e1a904 100644 --- a/buyer/src/components/addressManage/index.vue +++ b/buyer/src/components/addressManage/index.vue @@ -99,7 +99,7 @@ export default { if (this.id) { editMemberAddress(params).then((res) => { this.loading = false; - if (res.code === 200) { + if (res.success) { this.$Message.success('编辑地址成功'); this.$emit('change', true); this.hide(); @@ -108,7 +108,7 @@ export default { } else { newMemberAddress(params).then((res) => { this.loading = false; - if (res.code === 200) { + if (res.success) { this.$Message.success('新增地址成功'); this.$emit('change', true); this.hide(); @@ -121,7 +121,7 @@ export default { getAddrById (id) { // 获取地址详情 getAddrDetail(id).then((res) => { - if (res.code === 200) { + if (res.success) { console.log(res); const data = res.result; data.address = res.result.consigneeAddressPath.replace(/,/g, ' '); @@ -131,7 +131,6 @@ export default { }, getAddress (item) { // 获取地图选择信息 - console.log(item); this.mapMsg = item; this.$set(this.formData, 'address', item.addr); this.$set(this.formData, 'consigneeAddressIdPath', item.addrId); diff --git a/buyer/src/components/drawer/Drawer.vue b/buyer/src/components/drawer/Drawer.vue index af4dc3db..d9c3e9b8 100644 --- a/buyer/src/components/drawer/Drawer.vue +++ b/buyer/src/components/drawer/Drawer.vue @@ -164,7 +164,7 @@ export default { // 删除商品 delGoods (id) { delCartGoods({ skuIds: id }).then((res) => { - if (res.code === 200) { + if (res.success) { this.$Message.success('删除成功'); this.getCartList(); cartCount().then(res => { @@ -231,7 +231,7 @@ export default { this.loading = true; addCartGoods(params).then(res => { this.loading = false; - if (res.code === 200) { + if (res.success) { this.$Message.success('商品已成功添加到购物车') } else { this.$Message.warning(res.message); diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue index ba6a169d..2083586b 100644 --- a/buyer/src/components/goodsDetail/ShowGoods.vue +++ b/buyer/src/components/goodsDetail/ShowGoods.vue @@ -224,7 +224,7 @@ export default { this.loading = true; addCartGoods(params).then(res => { this.loading = false; - if (res.code === 200) { + if (res.success) { this.$router.push({path: '/shoppingCart', query: {detail: this.skuDetail, count: this.count}}); } else { this.$Message.warning(res.message); @@ -240,7 +240,7 @@ export default { this.loading1 = true; addCartGoods(params).then(res => { this.loading1 = false; - if (res.code === 200) { + if (res.success) { this.$router.push({path: '/pay', query: {way: 'BUY_NOW'}}); } else { this.$Message.warning(res.message); diff --git a/buyer/src/components/goodsDetail/ShowGoodsDetail.vue b/buyer/src/components/goodsDetail/ShowGoodsDetail.vue index a2a19a40..c2b34e53 100644 --- a/buyer/src/components/goodsDetail/ShowGoodsDetail.vue +++ b/buyer/src/components/goodsDetail/ShowGoodsDetail.vue @@ -144,13 +144,13 @@ export default { getList () { // 获取评论列表 this.commentParams.goodsId = this.skuDetail.goodsId; goodsComment(this.commentParams).then(res => { - if (res.code === 200) { + if (res.success) { this.commentList = res.result.records; this.commentTotal = res.result.total; } }); goodsCommentNum(this.skuDetail.goodsId).then(res => { - if (res.code === 200) { + if (res.success) { this.commentTypeNum = res.result; } }); diff --git a/buyer/src/components/map/index.vue b/buyer/src/components/map/index.vue index 25ca92c6..534a3f68 100644 --- a/buyer/src/components/map/index.vue +++ b/buyer/src/components/map/index.vue @@ -72,7 +72,7 @@ export default { if (this.useApi) { handleRegion(params).then((res) => { this.loading = false; - if (res.code === 200) { + if (res.success) { this.showMap = false; this.addrContent.addr = res.result.name.replace(/,/g, ' '); this.addrContent.addrId = res.result.id; diff --git a/buyer/src/components/nav/GoodsClassNav.vue b/buyer/src/components/nav/GoodsClassNav.vue index 267c15ff..b7bd5308 100644 --- a/buyer/src/components/nav/GoodsClassNav.vue +++ b/buyer/src/components/nav/GoodsClassNav.vue @@ -358,7 +358,7 @@ export default { getFilterList (params) { // 筛选、分类 列表 APIGoods.filterList(params).then((res) => { - if (res.code === 200) { + if (res.success) { const data = res.result; this.tagsContent = [{ key: '品牌', diff --git a/buyer/src/pages/Cart.vue b/buyer/src/pages/Cart.vue index 281fe78f..53292ba0 100644 --- a/buyer/src/pages/Cart.vue +++ b/buyer/src/pages/Cart.vue @@ -221,7 +221,7 @@ export default { content: '

确定要删除该商品吗?

', onOk: () => { APICart.delCartGoods({ skuIds: idArr.toString() }).then((res) => { - if (res.code === 200) { + if (res.success) { this.$Message.success('删除成功'); this.getCartList(); } else { @@ -237,7 +237,7 @@ export default { content: '

确定要清空购物车吗?清空后不可恢复

', onOk: () => { APICart.clearCart().then((res) => { - if (res.code === 200) { + if (res.success) { this.$Message.success('清空购物车成功'); this.getCartList(); } else { @@ -264,7 +264,7 @@ export default { console.log(val, id); APICart.setCartGoodsNum({ skuId: id, num: val }).then((res) => { console.log(res); - if (res.code === 200) { + if (res.success) { this.getCartList(); } }); @@ -288,7 +288,7 @@ export default { async receiveShopCoupon (item) { // 领取优惠券 let res = await APIMember.receiveCoupon(item.id) - if (res.code === 200) { + if (res.success) { this.$set(item, 'disabled', true) this.$Message.success('领取成功') } else { @@ -301,7 +301,7 @@ export default { try { let res = await APICart.cartGoodsAll(); this.loading = false; - if (res.code === 200) { + if (res.success) { this.cartList = res.result.cartList; this.priceDetailDTO = res.result.priceDetailDTO; this.skuList = res.result.skuList; diff --git a/buyer/src/pages/GoodsDetail.vue b/buyer/src/pages/GoodsDetail.vue index f39af488..39c67e93 100644 --- a/buyer/src/pages/GoodsDetail.vue +++ b/buyer/src/pages/GoodsDetail.vue @@ -70,7 +70,7 @@ export default { const params = this.$route.query goodsSkuDetail(params).then((res) => { this.isLoading = false; - if (res.code === 200) { + if (res.success) { const result = res.result; const cateName = res.result.categoryName; const cateId = result.data.categoryPath.split(','); diff --git a/buyer/src/pages/GoodsList.vue b/buyer/src/pages/GoodsList.vue index 853a3703..99168bcc 100644 --- a/buyer/src/pages/GoodsList.vue +++ b/buyer/src/pages/GoodsList.vue @@ -170,7 +170,7 @@ export default { apiGoods.goodsList(this.params) .then((res) => { this.loading = false; - if (res.code === 200) { + if (res.success) { this.goodsList = res.result.content; this.total = res.result.totalElements; } diff --git a/buyer/src/pages/Login.vue b/buyer/src/pages/Login.vue index ee137d0a..284ce2fe 100644 --- a/buyer/src/pages/Login.vue +++ b/buyer/src/pages/Login.vue @@ -185,7 +185,7 @@ export default { code: [{ required: true, message: '请输入手机验证码' }] }, codeMsg: '发送验证码', // 验证码文字 - interval: '', // 定时器 + interval: null, // 定时器 time: 60, // 倒计时 logoImg: '' // logo图片 }; @@ -201,12 +201,12 @@ export default { let data = JSON.parse(JSON.stringify(this.formSms)); apiLogin.smsLogin(data).then((res) => { this.$refs.verify.show = false; - if (res.code === 200) { + if (res.success) { this.$Message.success('登录成功'); storage.setItem('accessToken', res.result.accessToken); storage.setItem('refreshToken', res.result.refreshToken); apiLogin.getMemberMsg().then((res) => { - if (res.code === 200) { + if (res.success) { storage.setItem('userInfo', res.result); let query = this.$route.query; if (query.rePath) { @@ -241,11 +241,10 @@ export default { verificationEnums: 'LOGIN' }; sendSms(params).then(res => { - if (res.code === 200) { + if (res.success) { this.$Message.success('验证码发送成功'); let that = this; this.interval = setInterval(() => { - console.log(that.time); that.time--; if (that.time === 0) { that.time = 60; @@ -271,13 +270,13 @@ export default { this.$refs.verify.show = false; this.$Spin.show(); apiLogin.login(data).then((res) => { - if (res.code === 200) { + if (res.success) { this.$Message.success('登录成功'); storage.setItem('accessToken', res.result.accessToken); storage.setItem('refreshToken', res.result.refreshToken); apiLogin.getMemberMsg().then((res) => { this.$Spin.hide(); - if (res.code === 200) { + if (res.success) { storage.setItem('userInfo', res.result); let query = this.$route.query; if (query.rePath) { @@ -313,12 +312,12 @@ export default { if (uuid) { storage.setItem('uuid', uuid); loginCallback(uuid).then(res => { - if (res.code === 200) { + if (res.success) { const result = res.result; storage.setItem('accessToken', result.accessToken); storage.setItem('refreshToken', result.refreshToken); apiLogin.getMemberMsg().then((res) => { - if (res.code === 200) { + if (res.success) { storage.setItem('userInfo', res.result); let query = this.$route.query; if (query.rePath) { diff --git a/buyer/src/pages/Merchant.vue b/buyer/src/pages/Merchant.vue index b6ed1bb7..cc1942d5 100644 --- a/buyer/src/pages/Merchant.vue +++ b/buyer/src/pages/Merchant.vue @@ -120,7 +120,7 @@ export default { }, getGoodsList () { // 商品信息 goodsList(this.params).then((res) => { - if (res.code === 200) { + if (res.success) { this.goodsList = res.result.content; this.total = res.result.totalElements; } diff --git a/buyer/src/pages/SignUp.vue b/buyer/src/pages/SignUp.vue index 74ded182..e68cde17 100644 --- a/buyer/src/pages/SignUp.vue +++ b/buyer/src/pages/SignUp.vue @@ -147,7 +147,7 @@ export default { let data = JSON.parse(JSON.stringify(this.formRegist)); data.password = md5(data.password); apiLogin.regist(data).then((res) => { - if (res.code === 200) { + if (res.success) { this.$Message.success('注册成功!'); this.$router.push('login'); } else { @@ -172,7 +172,7 @@ export default { verificationEnums: 'REGISTER' }; sendSms(params).then(res => { - if (res.code === 200) { + if (res.success) { this.$Message.success('验证码发送成功'); let that = this; this.interval = setInterval(() => { diff --git a/buyer/src/pages/forgetPassword.vue b/buyer/src/pages/forgetPassword.vue index b646fb2b..511cffb3 100644 --- a/buyer/src/pages/forgetPassword.vue +++ b/buyer/src/pages/forgetPassword.vue @@ -160,7 +160,7 @@ export default { let data = JSON.parse(JSON.stringify(this.formFirst)); apiLogin.validateCode(data).then((res) => { this.loading = false; - if (res.code === 200) { + if (res.success) { // this.$Message.success(''); this.step = 1; } else { @@ -186,7 +186,7 @@ export default { apiLogin.resetPassword(params).then(res => { this.loading1 = false; console.log(res); - if (res.code === 200) { + if (res.success) { this.$Message.success('修改密码成功'); this.$router.push('login'); } @@ -209,7 +209,7 @@ export default { verificationEnums: 'FIND_USER' }; sendSms(params).then(res => { - if (res.code === 200) { + if (res.success) { this.$Message.success('验证码发送成功'); let that = this; this.interval = setInterval(() => { diff --git a/buyer/src/pages/home/orderCenter/AddAddress.vue b/buyer/src/pages/home/orderCenter/AddAddress.vue index b0a6cfe8..46e0c553 100644 --- a/buyer/src/pages/home/orderCenter/AddAddress.vue +++ b/buyer/src/pages/home/orderCenter/AddAddress.vue @@ -88,14 +88,14 @@ export default { this.loading = true; if (this.$route.query.id) { editMemberAddress(params).then((res) => { - if (res.code === 200) { + if (res.success) { this.loading = false; this.$router.push('/home/MyAddress'); } }).catch(() => { this.loading = false; }); } else { newMemberAddress(params).then((res) => { - if (res.code === 200) { + if (res.success) { this.loading = false; this.$router.push('/home/MyAddress'); } @@ -107,7 +107,7 @@ export default { getAddrById (id) { // 获取地址详情 getAddrDetail(id).then((res) => { - if (res.code === 200) { + if (res.success) { console.log(res); const data = res.result; data.address = res.result.consigneeAddressPath.replace(/,/g, ' '); diff --git a/buyer/src/pages/home/orderCenter/MyAddress.vue b/buyer/src/pages/home/orderCenter/MyAddress.vue index aacc0c8a..e9f82f4b 100644 --- a/buyer/src/pages/home/orderCenter/MyAddress.vue +++ b/buyer/src/pages/home/orderCenter/MyAddress.vue @@ -58,7 +58,7 @@ export default { content: '你确定删除这个收货地址', onOk: () => { delMemberAddress(id).then((res) => { - if (res.code === 200) { + if (res.success) { this.$Message.success('删除成功'); this.getAddrList(); } @@ -73,7 +73,7 @@ export default { // 获取地址列表 memberAddress().then((res) => { console.log(res); - if (res.code === 200) { + if (res.success) { this.list = res.result.records; } }); diff --git a/buyer/src/pages/payment/Pay.vue b/buyer/src/pages/payment/Pay.vue index f7e7a2e0..14a9626d 100644 --- a/buyer/src/pages/payment/Pay.vue +++ b/buyer/src/pages/payment/Pay.vue @@ -311,7 +311,7 @@ export default { content: '你确定删除这个收货地址', onOk: () => { delMemberAddress(item.id).then((res) => { - if (res.code === 200) { + if (res.success) { this.$Message.success('删除成功'); this.getAddress(); } diff --git a/buyer/src/pages/shopEntry/shop-entry.vue b/buyer/src/pages/shopEntry/shop-entry.vue index 60c2cc31..34835c0c 100644 --- a/buyer/src/pages/shopEntry/shop-entry.vue +++ b/buyer/src/pages/shopEntry/shop-entry.vue @@ -34,7 +34,7 @@ 申请已通过,请联系管理员 店铺已关闭,重申请联系管理员 - + { - if (res.code === 200) { + if (res.success) { let { accessToken, refreshToken diff --git a/manager/src/libs/axios.js b/manager/src/libs/axios.js index efe6ff40..3e91766a 100644 --- a/manager/src/libs/axios.js +++ b/manager/src/libs/axios.js @@ -125,7 +125,7 @@ function getTokenDebounce() { lock = true let oldRefreshToken = getStore("refreshToken"); handleRefreshToken(oldRefreshToken).then(res => { - if (res.code === 200) { + if (res.success) { let { accessToken, refreshToken diff --git a/manager/src/styles/common.scss b/manager/src/styles/common.scss index 29d84517..0aa5cad0 100644 --- a/manager/src/styles/common.scss +++ b/manager/src/styles/common.scss @@ -14,7 +14,9 @@ $theme_color: #804ed1; border-radius: 1em; background-color: rgba(50,50,50,.1); } - +.ivu-table table{ + width: 100%!important; +} .flex{ display: flex !important; diff --git a/manager/src/views/lili-floor-renovation/floorList copy.vue b/manager/src/views/lili-floor-renovation/floorList copy.vue index ac7610e5..838f3b68 100644 --- a/manager/src/views/lili-floor-renovation/floorList copy.vue +++ b/manager/src/views/lili-floor-renovation/floorList copy.vue @@ -133,7 +133,7 @@ export default { pageClientType: "PC", }; API_floor.getHomeList(params).then((res) => { - if (res.code == 200) { + if (res.success) { this.templateList = res.result.records; } }); @@ -142,7 +142,7 @@ export default { releaseTemplate(id) { //发布模板 API_floor.releasePageHome(id).then((res) => { - if (res.code === 200) { + if (res.success) { this.$Message.success("发布模板成功"); this.getTemplateList(); } @@ -155,7 +155,7 @@ export default { content: "

确定删除该模板吗?

", onOk: () => { API_floor.removePageHome(id).then((res) => { - if (res.code === 200) { + if (res.success) { this.$Message.success("删除模板成功"); this.getTemplateList(); } diff --git a/manager/src/views/lili-floor-renovation/floorList.vue b/manager/src/views/lili-floor-renovation/floorList.vue index dc1624cc..e47f4239 100644 --- a/manager/src/views/lili-floor-renovation/floorList.vue +++ b/manager/src/views/lili-floor-renovation/floorList.vue @@ -153,7 +153,7 @@ export default { pageClientType: "PC", }; API_floor.getHomeList(params).then((res) => { - if (res.code == 200) { + if (res.success) { this.list = res.result.records; this.list.forEach(e => { if (e.pageShow === 'OPEN') { @@ -169,7 +169,7 @@ export default { releaseTemplate(id) { //发布模板 API_floor.releasePageHome(id).then((res) => { - if (res.code === 200) { + if (res.success) { this.$Message.success("发布模板成功"); this.getTemplateList(); } @@ -178,7 +178,7 @@ export default { delTemplate(id) { API_floor.removePageHome(id).then((res) => { - if (res.code === 200) { + if (res.success) { this.$Message.success("删除模板成功"); this.getTemplateList(); } diff --git a/manager/src/views/lili-floor-renovation/renovation.vue b/manager/src/views/lili-floor-renovation/renovation.vue index f0343571..d5074863 100644 --- a/manager/src/views/lili-floor-renovation/renovation.vue +++ b/manager/src/views/lili-floor-renovation/renovation.vue @@ -51,7 +51,7 @@ export default { pageData:modelForm, } API_floor.updateHome(this.$route.query.id, data).then(res=> { - if(res.code === 200) { + if(res.success) { this.$Message.success('保存模板成功'); } else { this.$Message.error(res.message) @@ -63,7 +63,7 @@ export default { }, getTemplateItem(id){ // 获取模板数据 API_floor.getHomeData(id).then(res => { - if (res.code === 200) { + if (res.success) { let pageData = res.result.pageData; if(pageData) { pageData = JSON.parse(pageData); diff --git a/manager/src/views/lili-floor-renovation/wap/navbar.vue b/manager/src/views/lili-floor-renovation/wap/navbar.vue index 58d484d4..a777e892 100644 --- a/manager/src/views/lili-floor-renovation/wap/navbar.vue +++ b/manager/src/views/lili-floor-renovation/wap/navbar.vue @@ -136,7 +136,7 @@ export default { }) .then((res) => { this.num = 50; - if (res.code == 200) { + if (res.success) { this.num = 80; /**制作保存成功动画¸ */ setTimeout(() => { @@ -166,7 +166,7 @@ export default { API_Other.setHomeSetup(submitWay) .then((res) => { this.num = 50; - if (res.code == 200) { + if (res.success) { this.num = 80; /**制作保存成功动画¸ */ setTimeout(() => { diff --git a/manager/src/views/main-components/tags-page-opened.vue b/manager/src/views/main-components/tags-page-opened.vue index 0df6ed37..9e2f432b 100644 --- a/manager/src/views/main-components/tags-page-opened.vue +++ b/manager/src/views/main-components/tags-page-opened.vue @@ -8,20 +8,8 @@ @mousewheel="handlescroll" class="tags-outer-scroll-con" > - -
diff --git a/manager/src/views/member/list/index.vue b/manager/src/views/member/list/index.vue index 8c778b7a..199ee821 100644 --- a/manager/src/views/member/list/index.vue +++ b/manager/src/views/member/list/index.vue @@ -430,7 +430,7 @@ export default { content: "

确认禁用此会员?

", onOk: () => { API_Member.updateMemberStatus(params).then((res) => { - if (res.code === 200) { + if (res.success) { this.$Message.success("禁用成功"); this.getData(); } else { diff --git a/manager/src/views/member/list/memberRecycle.vue b/manager/src/views/member/list/memberRecycle.vue index 996d1f87..815aa435 100644 --- a/manager/src/views/member/list/memberRecycle.vue +++ b/manager/src/views/member/list/memberRecycle.vue @@ -421,7 +421,7 @@ content: '

确认禁用此会员?

', onOk: () => { API_Member.updateMemberStatus(params).then(res => { - if (res.code === 200) { + if (res.success) { this.$Message.success('禁用成功'); this.getData() } else { @@ -446,7 +446,7 @@ content: '

启用用此会员?

', onOk: () => { API_Member.updateMemberStatus(params).then(res => { - if (res.code === 200) { + if (res.success) { this.$Message.success('禁用成功'); this.getData() } else { diff --git a/manager/src/views/my-components/map/index.vue b/manager/src/views/my-components/map/index.vue index d76a3f43..c68b1f3e 100644 --- a/manager/src/views/my-components/map/index.vue +++ b/manager/src/views/my-components/map/index.vue @@ -58,7 +58,7 @@ methods: { townName: this.addrContent.regeocode.addressComponent.township } getRegion(params).then(res=>{ - if(res.code == 200) { + if(res.success) { this.addrContent.addr = res.result.name.replace(/,/g," ") this.addrContent.addrId = res.result.id this.loading = false diff --git a/manager/src/views/order/order/orderList.vue b/manager/src/views/order/order/orderList.vue index 8bbe903c..e15a2e8b 100644 --- a/manager/src/views/order/order/orderList.vue +++ b/manager/src/views/order/order/orderList.vue @@ -254,7 +254,7 @@ export default { content: "

您确定要收款吗?线下收款涉及库存变更,需异步进行,等待约一分钟刷新列表查看

", onOk: () => { API_Order.orderPay(v.sn).then((res) => { - if (res.code === 200) { + if (res.success) { this.$Message.success("收款成功"); this.getDataList(); } else { diff --git a/manager/src/views/seller/bill/bill-detail.vue b/manager/src/views/seller/bill/bill-detail.vue index db1dece7..f5bbad04 100644 --- a/manager/src/views/seller/bill/bill-detail.vue +++ b/manager/src/views/seller/bill/bill-detail.vue @@ -389,7 +389,7 @@ export default { pass() { API_Shop.pay(this.id).then((res) => { - if (res.code == 200) { + if (res.success) { this.$Message.success(res.message); this.init(); } diff --git a/manager/src/views/sys/message/sms.vue b/manager/src/views/sys/message/sms.vue index 9d0d0ee7..556d22ef 100644 --- a/manager/src/views/sys/message/sms.vue +++ b/manager/src/views/sys/message/sms.vue @@ -761,7 +761,7 @@ export default { API_Setting.addSmsTemplatePage(this.templateForm) .then((res) => { this.loading = false; - if (res.code === 200) { + if (res.success) { this.$Message.success("添加成功"); this.loading = false; this.templateModalVisible = false; @@ -775,7 +775,7 @@ export default { API_Setting.editSmsTemplatePage(this.templateForm) .then((res) => { this.loading = false; - if (res.code === 200) { + if (res.success) { this.$Message.success("修改成功"); this.loading = false; this.templateModalVisible = false; diff --git a/manager/src/views/sys/message/smsSign.vue b/manager/src/views/sys/message/smsSign.vue index 4c06c1ce..b7228d9f 100644 --- a/manager/src/views/sys/message/smsSign.vue +++ b/manager/src/views/sys/message/smsSign.vue @@ -124,7 +124,7 @@ if (this.id == undefined) { API_Setting.addSmsSign(this.form).then(res => { this.loading = false; - if (res.code === 200) { + if (res.success) { this.$Message.success('添加成功'); this.$router.back() } @@ -134,7 +134,7 @@ } else { API_Setting.editSmsSign(this.form).then(res => { this.loading = false; - if (res.code === 200) { + if (res.success) { this.$Message.success('修改成功'); this.$router.back() } @@ -150,7 +150,7 @@ getSmsSignDetail() { API_Setting.smsSignDetail(this.id).then(res => { this.loading = false; - if (res.code === 200) { + if (res.success) { this.form = res.result } }) diff --git a/manager/src/views/sys/setting-manage/authLogin/QQ_CONNECT.vue b/manager/src/views/sys/setting-manage/authLogin/QQ_CONNECT.vue index f5adf5fc..8db3f656 100644 --- a/manager/src/views/sys/setting-manage/authLogin/QQ_CONNECT.vue +++ b/manager/src/views/sys/setting-manage/authLogin/QQ_CONNECT.vue @@ -84,7 +84,7 @@ export default { setSetting(this.type, { qqConnectSettingItemList: this.formValidate, }).then((res) => { - if (res.code == 200) { + if (res.success) { this.$Message.success("保存成功!"); this.$Modal.remove(); } else { diff --git a/manager/src/views/sys/setting-manage/authLogin/WECHAT_CONNECT.vue b/manager/src/views/sys/setting-manage/authLogin/WECHAT_CONNECT.vue index dcba5925..12e2047c 100644 --- a/manager/src/views/sys/setting-manage/authLogin/WECHAT_CONNECT.vue +++ b/manager/src/views/sys/setting-manage/authLogin/WECHAT_CONNECT.vue @@ -82,7 +82,7 @@ export default { setSetting(this.type, { wechatConnectSettingItems: this.formValidate, }).then((res) => { - if (res.code == 200) { + if (res.success) { this.$Message.success("保存成功!"); this.$Modal.remove(); } else { diff --git a/manager/src/views/sys/setting-manage/pay/ALIPAY_PAYMENT.vue b/manager/src/views/sys/setting-manage/pay/ALIPAY_PAYMENT.vue index 5d9a4d55..8c7f54c4 100644 --- a/manager/src/views/sys/setting-manage/pay/ALIPAY_PAYMENT.vue +++ b/manager/src/views/sys/setting-manage/pay/ALIPAY_PAYMENT.vue @@ -54,7 +54,7 @@ export default { setupSetting() { setSetting(this.type, this.formValidate).then((res) => { - if (res.code == 200) { + if (res.success) { this.$Message.success("保存成功!"); } else { this.$Message.error("保存失败!"); diff --git a/manager/src/views/sys/setting-manage/pay/PAYMENT_SUPPORT.vue b/manager/src/views/sys/setting-manage/pay/PAYMENT_SUPPORT.vue index d7faba84..6b1e5975 100644 --- a/manager/src/views/sys/setting-manage/pay/PAYMENT_SUPPORT.vue +++ b/manager/src/views/sys/setting-manage/pay/PAYMENT_SUPPORT.vue @@ -104,7 +104,7 @@ export default { setupSetting() { setSetting(this.type, { paymentSupportItems: this.formValidate }).then( (res) => { - if (res.code == 200) { + if (res.success) { this.$Message.success("保存成功!"); this.$Modal.remove(); } else { diff --git a/manager/src/views/sys/setting-manage/pay/WECHAT_PAYMENT.vue b/manager/src/views/sys/setting-manage/pay/WECHAT_PAYMENT.vue index c17e873e..22882a68 100644 --- a/manager/src/views/sys/setting-manage/pay/WECHAT_PAYMENT.vue +++ b/manager/src/views/sys/setting-manage/pay/WECHAT_PAYMENT.vue @@ -60,7 +60,7 @@ export default { setupSetting() { setSetting(this.type, this.formValidate).then((res) => { - if (res.code == 200) { + if (res.success) { this.$Message.success("保存成功!"); } else { this.$Message.error("保存失败!"); diff --git a/manager/src/views/sys/setting-manage/setting/BASE_SETTING.vue b/manager/src/views/sys/setting-manage/setting/BASE_SETTING.vue index fdcd7de7..764242ea 100644 --- a/manager/src/views/sys/setting-manage/setting/BASE_SETTING.vue +++ b/manager/src/views/sys/setting-manage/setting/BASE_SETTING.vue @@ -103,7 +103,7 @@ export default { setupSetting() { setSetting(this.type, this.formValidate).then((res) => { - if (res.code == 200) { + if (res.success) { this.$Message.success("保存成功!"); } else { this.$Message.error("保存失败!"); diff --git a/manager/src/views/sys/setting-manage/setting/GOODS_SETTING.vue b/manager/src/views/sys/setting-manage/setting/GOODS_SETTING.vue index 7e333080..39fa52e5 100644 --- a/manager/src/views/sys/setting-manage/setting/GOODS_SETTING.vue +++ b/manager/src/views/sys/setting-manage/setting/GOODS_SETTING.vue @@ -99,7 +99,7 @@ export default { setupSetting() { setSetting(this.type, this.formValidate).then((res) => { - if (res.code == 200) { + if (res.success) { this.$Message.success("保存成功!"); } else { this.$Message.error("保存失败!"); diff --git a/manager/src/views/sys/setting-manage/setting/KUAIDI_SETTING.vue b/manager/src/views/sys/setting-manage/setting/KUAIDI_SETTING.vue index a7d8e005..73cb5a4e 100644 --- a/manager/src/views/sys/setting-manage/setting/KUAIDI_SETTING.vue +++ b/manager/src/views/sys/setting-manage/setting/KUAIDI_SETTING.vue @@ -47,7 +47,7 @@ export default { setupSetting() { setSetting(this.type, this.formValidate).then((res) => { - if (res.code == 200) { + if (res.success) { this.$Message.success("保存成功!"); } else { this.$Message.error("保存失败!"); diff --git a/manager/src/views/sys/setting-manage/setting/ORDER_SETTING.vue b/manager/src/views/sys/setting-manage/setting/ORDER_SETTING.vue index 07ef43c8..88f283e6 100644 --- a/manager/src/views/sys/setting-manage/setting/ORDER_SETTING.vue +++ b/manager/src/views/sys/setting-manage/setting/ORDER_SETTING.vue @@ -71,7 +71,7 @@ export default { setupSetting() { setSetting(this.type, this.formValidate).then((res) => { - if (res.code == 200) { + if (res.success) { this.$Message.success("保存成功!"); } else { this.$Message.error("保存失败!"); diff --git a/manager/src/views/sys/setting-manage/setting/OSS_SETTING.vue b/manager/src/views/sys/setting-manage/setting/OSS_SETTING.vue index 312613f7..0c703687 100644 --- a/manager/src/views/sys/setting-manage/setting/OSS_SETTING.vue +++ b/manager/src/views/sys/setting-manage/setting/OSS_SETTING.vue @@ -53,7 +53,7 @@ export default { setupSetting() { setSetting(this.type, this.formValidate).then((res) => { - if (res.code == 200) { + if (res.success) { this.$Message.success("保存成功!"); } else { this.$Message.error("保存失败!"); diff --git a/manager/src/views/sys/setting-manage/setting/POINT_SETTING.vue b/manager/src/views/sys/setting-manage/setting/POINT_SETTING.vue index 8b3970b4..924dccf0 100644 --- a/manager/src/views/sys/setting-manage/setting/POINT_SETTING.vue +++ b/manager/src/views/sys/setting-manage/setting/POINT_SETTING.vue @@ -80,7 +80,7 @@ export default { setupSetting() { setSetting(this.type, this.formValidate).then((res) => { - if (res.code == 200) { + if (res.success) { this.$Message.success("保存成功!"); } else { this.$Message.error("保存失败!"); diff --git a/manager/src/views/sys/setting-manage/setting/SMS_SETTING.vue b/manager/src/views/sys/setting-manage/setting/SMS_SETTING.vue index c261f982..170bc700 100644 --- a/manager/src/views/sys/setting-manage/setting/SMS_SETTING.vue +++ b/manager/src/views/sys/setting-manage/setting/SMS_SETTING.vue @@ -50,7 +50,7 @@ export default { setupSetting() { setSetting(this.type, this.formValidate).then((res) => { - if (res.code == 200) { + if (res.success) { this.$Message.success("保存成功!"); } else { this.$Message.error("保存失败!"); diff --git a/manager/src/views/sys/setting-manage/setting/WITHDRAWAL_SETTING.vue b/manager/src/views/sys/setting-manage/setting/WITHDRAWAL_SETTING.vue index 2998ef14..6315e401 100644 --- a/manager/src/views/sys/setting-manage/setting/WITHDRAWAL_SETTING.vue +++ b/manager/src/views/sys/setting-manage/setting/WITHDRAWAL_SETTING.vue @@ -42,7 +42,7 @@ export default { setupSetting() { setSetting(this.type, this.formValidate).then((res) => { - if (res.code == 200) { + if (res.success) { this.$Message.success("保存成功!"); } else { this.$Message.error("保存失败!"); diff --git a/manager/src/views/sys/setting-manage/smsSettingManage.vue b/manager/src/views/sys/setting-manage/smsSettingManage.vue index 3e37d91d..73556388 100644 --- a/manager/src/views/sys/setting-manage/smsSettingManage.vue +++ b/manager/src/views/sys/setting-manage/smsSettingManage.vue @@ -72,7 +72,7 @@ }, saveSetting() { setSetting("SMS_SETTING", this.form).then((res) => { - if (res.code == 200) { + if (res.success) { this.$Message.success("保存成功!"); } else { this.$Message.error("保存失败!"); diff --git a/seller/src/assets/logo-min.png b/seller/src/assets/logo-min.png deleted file mode 100644 index 6de196a8..00000000 Binary files a/seller/src/assets/logo-min.png and /dev/null differ diff --git a/seller/src/libs/axios.js b/seller/src/libs/axios.js index 23a4b710..e22c1354 100644 --- a/seller/src/libs/axios.js +++ b/seller/src/libs/axios.js @@ -124,7 +124,7 @@ function getTokenDebounce() { lock = true let oldRefreshToken = getStore("refreshToken"); handleRefreshToken(oldRefreshToken).then(res => { - if (res.code === 200) { + if (res.success) { let { accessToken, refreshToken diff --git a/seller/src/styles/common.scss b/seller/src/styles/common.scss index 41d2dd26..63488166 100644 --- a/seller/src/styles/common.scss +++ b/seller/src/styles/common.scss @@ -14,7 +14,9 @@ $theme_color: #804ed1; border-radius: 1em; background-color: rgba(50,50,50,.1); } - +.ivu-table table { + width: 100%!important; +} .flex{ display: flex !important; diff --git a/seller/src/views/goods/goods-seller/goodsOperation.vue b/seller/src/views/goods/goods-seller/goodsOperation.vue index 4ae186a7..5a3362d7 100644 --- a/seller/src/views/goods/goods-seller/goodsOperation.vue +++ b/seller/src/views/goods/goods-seller/goodsOperation.vue @@ -28,7 +28,7 @@ :key="index" > {{ item.name }} - + >
    @@ -39,7 +39,7 @@ :key="index" > {{ item.name }} - + >
    @@ -701,6 +701,34 @@ export default { this.activestep = 1; this.isOperationGoods = false; this.GET_GoodData(); + } else if (to.query.id) { + this.activestep = 1; + this.goodsId = this.$route.query.id; + this.GET_GoodData(); + } else { + this.baseInfoForm = { + salesModel: "RETAIL", + goodsParamsList: [], + freightPayer: "BUYER", + weight: "", + goodsGalleryFiles: [], + release: "true", + recommend: "true", + storeCategoryPath: "", + brandId: 0, + goodsUnit: "", + categoryPath: "", + sellingPoint: "", + intro: "", + mobileIntro: "", + updateSku: true, + regeneratorSkuFlag: false, + templateId: 0, + }; + this.activestep = 0; + this.isPublish = true; + this.GET_GoodsTemplate(); + this.GET_NextLevelCategory(); } } }, @@ -985,7 +1013,25 @@ export default { } //新增商品 else { - this.baseInfoForm = {}; + this.baseInfoForm = { + salesModel: "RETAIL", + goodsParamsList: [], + freightPayer: "BUYER", + weight: "", + goodsGalleryFiles: [], + release: "true", + recommend: "true", + storeCategoryPath: "", + brandId: 0, + goodsUnit: "", + categoryPath: "", + sellingPoint: "", + intro: "", + mobileIntro: "", + updateSku: true, + regeneratorSkuFlag: false, + templateId: 0, + }; this.activestep = 0; this.isPublish = true; this.GET_GoodsTemplate(); @@ -1088,6 +1134,7 @@ export default { }); }, handleBeforeUploadGoodsPicture() { + console.log(this.baseInfoForm); const check = this.baseInfoForm.goodsGalleryFiles.length < 5; if (!check) { this.$Notice.warning({ @@ -1198,6 +1245,7 @@ export default { ...this.baseInfoForm, ...response.result, }; + console.warn(this.baseInfoForm); if (this.baseInfoForm.freightPayer != "BUYER") { API_Shop.getShipTemplate().then((res) => { if (res.success) { @@ -1702,6 +1750,7 @@ export default { this.GET_GoodData(); return; } + console.log(this.baseInfoForm); this.GET_GoodsParams(); /** 1级校验 */ this.loading = true; diff --git a/seller/src/views/main.scss b/seller/src/views/main.scss index d4d2ea6d..15864933 100644 --- a/seller/src/views/main.scss +++ b/seller/src/views/main.scss @@ -258,7 +258,7 @@ top: 100px; right: 0; bottom: 0; - height: calc(100% + 52px); + height: calc(100% + 200px); width: calc(100% - 240px); background-color: #f0f0f0; diff --git a/seller/src/views/my-components/map/index.vue b/seller/src/views/my-components/map/index.vue index 5d8a5a2e..6b79b88b 100644 --- a/seller/src/views/my-components/map/index.vue +++ b/seller/src/views/my-components/map/index.vue @@ -58,7 +58,7 @@ methods: { townName: this.addrContent.regeocode.addressComponent.township } getRegion(params).then(res=>{ - if(res.code == 200) { + if(res.success) { this.addrContent.addr = res.result.name.replace(/,/g," ") this.addrContent.addrId = res.result.id this.loading = false diff --git a/seller/src/views/promotion/pintuan/pintuanGoods.vue b/seller/src/views/promotion/pintuan/pintuanGoods.vue index b1d56c37..73aedb0f 100644 --- a/seller/src/views/promotion/pintuan/pintuanGoods.vue +++ b/seller/src/views/promotion/pintuan/pintuanGoods.vue @@ -19,11 +19,14 @@ +
    @@ -138,27 +141,9 @@ export default { { title: "操作", - key: "action", + slot: "action", minWidth: 50, align: "center", - render: (h, params) => { - return h( - "Button", - { - props: { - size: "small", - type: "error", - ghost: true, - }, - on: { - click: () => { - this.delGoods(params.index); - }, - }, - }, - "删除" - ); - }, }, ], goodsData: [], // 商品列表 @@ -327,9 +312,9 @@ export default { margin: 20px 0; font-size: 15px; &::before{ - content: ''; - border: 1px solid $theme_color; - height: 10px; + content: '|'; + color: $theme_color; + display: inline-block; font-weight: bold; font-size: 16px; margin-right: 5px; diff --git a/seller/src/views/promotion/seckill/seckill.vue b/seller/src/views/promotion/seckill/seckill.vue index 9367daa3..49d4ced7 100644 --- a/seller/src/views/promotion/seckill/seckill.vue +++ b/seller/src/views/promotion/seckill/seckill.vue @@ -64,14 +64,19 @@ diff --git a/seller/src/views/promotion/seckill/seckillGoods.vue b/seller/src/views/promotion/seckill/seckillGoods.vue index 3b6fb1fd..7dfa3450 100644 --- a/seller/src/views/promotion/seckill/seckillGoods.vue +++ b/seller/src/views/promotion/seckill/seckillGoods.vue @@ -16,7 +16,7 @@ - + 已选择 {{ selectCount }} @@ -101,8 +101,7 @@