From 81fe09b6339c743856c7a2b89d07296d2021748b Mon Sep 17 00:00:00 2001 From: hupeng Date: Tue, 17 Dec 2019 18:49:35 +0800 Subject: [PATCH] =?UTF-8?q?yshop1.5=E7=89=88=E6=9C=AC=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=A7=92=E6=9D=80=E5=8A=9F=E8=83=BD,=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF=E6=96=B0=E5=A2=9EH5=E6=94=AF=E4=BB=98,=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=85=B6=E4=BB=96bug,=E5=AF=BC=E5=87=BA=E6=9C=80?= =?UTF-8?q?=E6=96=B0sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 +- src/api/yxStoreSeckill.js | 24 ++++ src/icons/svg/seckill.svg | 1 + src/views/activity/seckill/form.vue | 206 +++++++++++++++++++++++++++ src/views/activity/seckill/index.vue | 165 +++++++++++++++++++++ src/views/shop/goods/index.vue | 40 +++++- src/views/shop/order/detail.vue | 2 +- src/views/shop/order/index.vue | 2 +- src/views/shop/set/seckill.vue | 118 +++++++++++++++ src/views/shop/set/seckillform.vue | 101 +++++++++++++ src/views/shop/set/signform.vue | 4 +- 11 files changed, 663 insertions(+), 9 deletions(-) create mode 100644 src/api/yxStoreSeckill.js create mode 100644 src/icons/svg/seckill.svg create mode 100644 src/views/activity/seckill/form.vue create mode 100644 src/views/activity/seckill/index.vue create mode 100644 src/views/shop/set/seckill.vue create mode 100644 src/views/shop/set/seckillform.vue diff --git a/README.md b/README.md index 726a254..7f2c822 100644 --- a/README.md +++ b/README.md @@ -143,13 +143,14 @@ yshop基于当前流行技术组合的前后端分离商城系统: SpringBoot2 - 1.8、修复新增配置数据有时候不成功问题等 - 1.4.1个人中心新增账单流水 - yshop1.4.2 发布更新如下: - -1.商品新增多图评价 - -2.订单新增快递查询 --1.4.3版本,后台图标更新,后台模块重新拆分,物流快递单独管理,导出最新sql + - 1.商品新增多图评价 + - 2.订单新增快递查询 +- 1.4.3版本,后台图标更新,后台模块重新拆分,物流快递单独管理,导出最新sql +- 1.4.4版本,新增模板消息通知、H5端商家管理发货修改及其列表时间显示修复 #### 反馈交流 -- QQ交流群:907721261 +- QQ交流群:964166879 - 喜欢这个商城后台的小伙伴留下你的小星星啦,star,star哦! #### 特别鸣谢 diff --git a/src/api/yxStoreSeckill.js b/src/api/yxStoreSeckill.js new file mode 100644 index 0000000..28fd6dc --- /dev/null +++ b/src/api/yxStoreSeckill.js @@ -0,0 +1,24 @@ +import request from '@/utils/request' + +export function add(data) { + return request({ + url: 'api/yxStoreSeckill', + method: 'post', + data + }) +} + +export function del(id) { + return request({ + url: 'api/yxStoreSeckill/' + id, + method: 'delete' + }) +} + +export function edit(data) { + return request({ + url: 'api/yxStoreSeckill', + method: 'put', + data + }) +} diff --git a/src/icons/svg/seckill.svg b/src/icons/svg/seckill.svg new file mode 100644 index 0000000..dcd59e9 --- /dev/null +++ b/src/icons/svg/seckill.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/views/activity/seckill/form.vue b/src/views/activity/seckill/form.vue new file mode 100644 index 0000000..e5cbf2f --- /dev/null +++ b/src/views/activity/seckill/form.vue @@ -0,0 +1,206 @@ + + + + + diff --git a/src/views/activity/seckill/index.vue b/src/views/activity/seckill/index.vue new file mode 100644 index 0000000..d4d9946 --- /dev/null +++ b/src/views/activity/seckill/index.vue @@ -0,0 +1,165 @@ + + + + + diff --git a/src/views/shop/goods/index.vue b/src/views/shop/goods/index.vue index a8bcf10..52f846d 100644 --- a/src/views/shop/goods/index.vue +++ b/src/views/shop/goods/index.vue @@ -23,6 +23,7 @@ + @@ -72,6 +73,10 @@ 开启拼团 + + 开启秒杀 + @@ -95,8 +100,9 @@ import { del, onsale } from '@/api/yxStoreProduct' import eForm from './form' import eAttr from './attr' import comForm from '@/views/activity/combination/form' +import killForm from '@/views/activity/seckill/form' export default { - components: { eForm, eAttr, comForm }, + components: { eForm, eAttr, comForm, killForm }, mixins: [initData], data() { return { @@ -241,6 +247,38 @@ export default { } _this.dialog = true }, + editD(data) { + this.isAdd = false + const _this = this.$refs.form4 + _this.form = { + productId: data.id, + merId: data.merId, + image: data.image, + images: data.sliderImage, + title: data.storeName, + info: data.storeInfo, + postage: data.postage, + unitName: data.unitName, + sort: data.sort, + sales: data.sales, + stock: data.stock, + isShow: data.isShow, + status: 1, + isHot: data.isHot, + description: data.description, + isPostage: data.isPostage, + people: 0, + price: 0.01, + effectiveTime: 24, + otPrice: data.otPrice, + cost: data.cost, + num: 1, + giveIntegral: 0, + isDel: 0, + browse: 0 + } + _this.dialog = true + }, attr(data) { console.log(3333) this.isAttr = false diff --git a/src/views/shop/order/detail.vue b/src/views/shop/order/detail.vue index d654579..97a5b2c 100644 --- a/src/views/shop/order/detail.vue +++ b/src/views/shop/order/detail.vue @@ -5,7 +5,7 @@ 收货信息 -
用户昵称: {{ form.nickname }}
+
用户昵称:{{ form.nickname }}
收货人: {{ form.realName }}
联系电话: {{ form.userPhone }}
收货地址: {{ form.userAddress }}
diff --git a/src/views/shop/order/index.vue b/src/views/shop/order/index.vue index a484a74..80f9394 100644 --- a/src/views/shop/order/index.vue +++ b/src/views/shop/order/index.vue @@ -80,7 +80,7 @@ @click="refund(scope.row)"> 立刻退款 - + +
+ +
+ +
+ 新增 +
+
+ + + + + + + + + + + + + +
+ + + + + diff --git a/src/views/shop/set/seckillform.vue b/src/views/shop/set/seckillform.vue new file mode 100644 index 0000000..741f45d --- /dev/null +++ b/src/views/shop/set/seckillform.vue @@ -0,0 +1,101 @@ + + + + + diff --git a/src/views/shop/set/signform.vue b/src/views/shop/set/signform.vue index ac60a19..33f43fd 100644 --- a/src/views/shop/set/signform.vue +++ b/src/views/shop/set/signform.vue @@ -2,10 +2,10 @@ - + - +