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 @@ + + + + + \ 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 @@ + + + + + \ 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 @@