diff --git a/src/App.vue b/src/App.vue index 2e2170d..a9fb2d3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -139,5 +139,6 @@ export default { display: flex; align-items: center; justify-content: center; + font-size: 18px; } 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/invoicing.js b/src/api/invoicing.js index e144ba4..10d1c9c 100644 --- a/src/api/invoicing.js +++ b/src/api/invoicing.js @@ -178,7 +178,7 @@ export function unittbConsInfo(params) { return request({ url: `/api/tbConsInfo`, method: "put", - data:params + data: params }); } /** @@ -411,3 +411,15 @@ export function tbConsInfoinputStock(file) { } }); } + +/** + * 供应商出入库记录 + * @returns + */ +export function tbProductStockOperatepage(data) { + return request({ + url: `/api/tbProductStockOperate/page`, + method: "post", + data + }); +} \ No newline at end of file diff --git a/src/api/table.js b/src/api/table.js index 1a691c3..8eb43e1 100644 --- a/src/api/table.js +++ b/src/api/table.js @@ -461,3 +461,60 @@ export function $returnTableDetail(data) { } }); } +//获取订单可用优惠券 +export function $activateByOrderId(data) { + return request({ + url: '/api/tbShopCoupon/activateByOrderId', + method: "get", + params:{ + shopId: localStorage.getItem("shopId"), + ...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/bwc.vue b/src/views/application/bwc.vue index ce7c17d..0aeaced 100644 --- a/src/views/application/bwc.vue +++ b/src/views/application/bwc.vue @@ -31,7 +31,7 @@ --> - + + --> 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/components/member_points/record.vue b/src/views/application/components/member_points/record.vue index 5a71d90..3f37a0b 100644 --- a/src/views/application/components/member_points/record.vue +++ b/src/views/application/components/member_points/record.vue @@ -14,8 +14,8 @@ - - + @@ -54,27 +54,38 @@
- - + + - + + + + - - + --> - + @@ -172,12 +174,44 @@ + + +
+ + + + + + + + + + + + + +
+
+ +
+
diff --git a/src/views/login.vue b/src/views/login.vue index 08a7449..6acb8bc 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -184,10 +184,8 @@ export default { merchantName: this.loginForm.merchantName, username: this.loginForm.username, })) - - - // this.$router.push({ path: this.redirect || '/' }) - window.location.href = './' + this.$router.push({ path: this.redirect || '/' }) + // window.location.replace = './' }).catch(() => { this.loading = false this.getCode() diff --git a/src/views/order_manage/order_list.vue b/src/views/order_manage/order_list.vue index 952e019..b158085 100644 --- a/src/views/order_manage/order_list.vue +++ b/src/views/order_manage/order_list.vue @@ -207,21 +207,24 @@ export default { filters: { orderTypeFilter(t) { if (t) { - return t && orderEnum.orderType.find(item => item.key == t).label; + const item= orderEnum.orderType.find(item => item.key == t); + return t && item?item.label:''; } else { return t; } }, sendTypeFilter(t) { if (t) { - return orderEnum.sendType.find(item => item.key == t).label; + const item= orderEnum.sendType.find(item => item.key == t); + return item?item.label:''; } else { return t; } }, statusFilter(t) { if (t) { - return t && orderEnum.status.find(item => item.key == t).label; + const item= orderEnum.status.find(item => item.key == t); + return t && item?item.label:''; } else { return t; } @@ -233,12 +236,10 @@ export default { mounted() { if (this.$route.query.tableName) { this.query.tableName = this.$route.query.tableName - console.log(this.$route.query.date,'体哦啊是1111') - if(this.$route.query.date[0]){ - this.query.createdAt = this.$route.query.date - }else{ - this.query.createdAt = [] - } + } + if (this.$route.query.timeValue) { + this.timeValue = this.$route.query.timeValue + this.timeChange(this.timeValue); } if (this.$route.query.orderNo) { this.query.orderNo = this.$route.query.orderNo 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 @@