From af90b029df1a2df3c7bd0aff9b9ba62809cf0da2 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Sat, 9 Nov 2024 18:19:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=82=80=E8=AF=B7=E5=A5=BD?= =?UTF-8?q?=E5=8F=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/inviteFirend.js | 44 +++ .../components/invite_friend/addCoupon.vue | 97 +++++ .../components/invite_friend/record.vue | 263 ++++++++++++ .../components/invite_friend/setting.vue | 374 ++++++++++++++++++ src/views/application/invite_friend.vue | 35 ++ src/views/shop/components/shopInfo.vue | 18 +- 6 files changed, 822 insertions(+), 9 deletions(-) create mode 100644 src/api/inviteFirend.js create mode 100644 src/views/application/components/invite_friend/addCoupon.vue create mode 100644 src/views/application/components/invite_friend/record.vue create mode 100644 src/views/application/components/invite_friend/setting.vue create mode 100644 src/views/application/invite_friend.vue diff --git a/src/api/inviteFirend.js b/src/api/inviteFirend.js new file mode 100644 index 0000000..a70c324 --- /dev/null +++ b/src/api/inviteFirend.js @@ -0,0 +1,44 @@ +import request from "@/utils/request"; + +/** + * 获取店铺设置 + * @returns + */ +export function byShopId() { + let shopId = localStorage.getItem("shopId"); + return request({ + url: `/tbShopShare/byShopId`, + method: "get", + params: { + shopId: shopId + } + }); +} + +/** + * 分享-新增/编辑 + * @returns + */ +export function tbShopShare(data) { + return request({ + url: "/tbShopShare", + method: data.id ? "put" : "post", + data + }); +} + +/** + * 邀请记录 + * @returns + */ +export function byShare(data) { + let shopId = localStorage.getItem("shopId"); + return request({ + url: `/tbShopShare/byShare`, + method: "post", + data: { + shopId: shopId, + ...data + } + }); +} diff --git a/src/views/application/components/invite_friend/addCoupon.vue b/src/views/application/components/invite_friend/addCoupon.vue new file mode 100644 index 0000000..5c4d1c2 --- /dev/null +++ b/src/views/application/components/invite_friend/addCoupon.vue @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + + \ No newline at end of file diff --git a/src/views/application/components/invite_friend/record.vue b/src/views/application/components/invite_friend/record.vue new file mode 100644 index 0000000..36bf7bb --- /dev/null +++ b/src/views/application/components/invite_friend/record.vue @@ -0,0 +1,263 @@ + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + + + + + {{ scope.row.invitedName }} + + + + + + + + + + + + {{ scope.row.beInvitedName }} + + + + + + + 已邀请成功 + + + 已邀请成功 + + + 未邀请成功 + + + + + + + {{ scope.row.updateTime }} + {{ scope.row.rewardTime }} + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/application/components/invite_friend/setting.vue b/src/views/application/components/invite_friend/setting.vue new file mode 100644 index 0000000..1c06421 --- /dev/null +++ b/src/views/application/components/invite_friend/setting.vue @@ -0,0 +1,374 @@ + + + + + + + + + + + + + + + 删除 + + + + + + 建议尺寸:750*622 + + + + + + 删除 + + + + + + 建议尺寸:750*622 + + + + + + 删除 + + + + + + 建议尺寸:750*622 + + + + + + + + 添加券 + 新用户的定义:没领过该活动券的都属于新用户,不管有没有下过单和是否第一次登录小程序。 + + + + + + + + 编辑 + 删除 + + + + + + + 用户每邀请 + 人,可获得奖励券 + + 添加券 + + + + + + + + + 编辑 + 删除 + + + + + + + 新用户领取获得 + 仅新用户使用获得会员 + + + + + 保存 + + + form[formImgKey] = e[0].url" /> + + + + + + + \ No newline at end of file diff --git a/src/views/application/invite_friend.vue b/src/views/application/invite_friend.vue new file mode 100644 index 0000000..36903d5 --- /dev/null +++ b/src/views/application/invite_friend.vue @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/shop/components/shopInfo.vue b/src/views/shop/components/shopInfo.vue index 2cbec62..f55a2bd 100644 --- a/src/views/shop/components/shopInfo.vue +++ b/src/views/shop/components/shopInfo.vue @@ -1,7 +1,7 @@ - + @@ -66,16 +66,12 @@ 允许打包 - - - - - + @@ -127,11 +123,15 @@ - + + + - +