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/api/table.js b/src/api/table.js index 4e7cb83..8eb43e1 100644 --- a/src/api/table.js +++ b/src/api/table.js @@ -471,4 +471,50 @@ export function $activateByOrderId(data) { ...data } }); +} + +//会员积分列表 +export function $returnMemberPointsList(data) { + return request({ + url: '/api/points/member-points/page', + method: "get", + params:{ + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} + +// 会员积分账户信息 +export function $returnMemberPoints(memberId) { + return request({ + url: '/api/points/member-points/'+memberId, + method: "get", + params:{ + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} +//002-获取订单可用积分及抵扣金额(支付页面使用) +export function $calcUsablePoints(data) { + return request({ + url: '/api/points/member-points/calc-usable-points', + method: "get", + params:{ + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} +// 003-根据积分计算可抵扣金额 +export function $calcDeDuctionPoints(data) { + return request({ + url: '/api/points/member-points/calc-deduction-amount', + method: "get", + params:{ + shopId: localStorage.getItem("shopId"), + ...data + } + }); } \ No newline at end of file diff --git a/src/assets/styles/util.scss b/src/assets/styles/util.scss index 9226be0..4f2478a 100644 --- a/src/assets/styles/util.scss +++ b/src/assets/styles/util.scss @@ -364,4 +364,21 @@ text { .filter-gray { filter: grayscale(1); +} +.youhui-tips.el-tooltip__popper { + background: #fff; + min-width: 150px; + border-radius: 4px; + border: 1px solid #ebeef5 !important; + padding: 12px; + color: #606266; + line-height: 1.4; + text-align: justify; + font-size: 14px; + box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); + word-break: break-all; + } + .youhui-tips.el-tooltip__popper[x-placement^="top"] .popper__arrow:after, + .youhui-tips.el-tooltip__popper[x-placement^="top"] .popper__arrow { + border-top-color: #fff; } \ No newline at end of file diff --git a/src/utils/table.js b/src/utils/table.js index 110d764..39a1064 100644 --- a/src/utils/table.js +++ b/src/utils/table.js @@ -30,5 +30,9 @@ export const $status= { cleaning: { label: "待清台", type: "#FAAD14", + }, + unbind:{ + label: "未绑定", + type: "rgb(221,221,221)", } } \ No newline at end of file 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/coupon_manage/add_coupon.vue b/src/views/coupon_manage/add_coupon.vue index 8ab7da6..a527dd1 100644 --- a/src/views/coupon_manage/add_coupon.vue +++ b/src/views/coupon_manage/add_coupon.vue @@ -11,11 +11,11 @@ - + - + @@ -79,7 +79,7 @@ /> - + @@ -96,16 +96,16 @@ - - + + - + - 全额满可用 + 全额满可用
diff --git a/src/views/coupon_manage/components/coupon_details.vue b/src/views/coupon_manage/components/coupon_details.vue index e36e8ba..6e11f0c 100644 --- a/src/views/coupon_manage/components/coupon_details.vue +++ b/src/views/coupon_manage/components/coupon_details.vue @@ -42,20 +42,38 @@ - + + + - - + + + + + + - + + + -
diff --git a/src/views/coupon_manage/coupon_list.vue b/src/views/coupon_manage/coupon_list.vue index 7a7d802..d334361 100644 --- a/src/views/coupon_manage/coupon_list.vue +++ b/src/views/coupon_manage/coupon_list.vue @@ -22,11 +22,12 @@ {{ `领券后${scope.row.validDays}天过期` }} --> - +