diff --git a/commons/style/vars.scss b/commons/style/vars.scss index 65ad362..48ea55d 100644 --- a/commons/style/vars.scss +++ b/commons/style/vars.scss @@ -40,7 +40,7 @@ $v-b-color-ed: #ededed; //common.scss 分包页面以及组件里所用的颜色 $my-main-color:#318AFE; -$my-red-color:#F02C45; +$my-red-color:#FE4F1E; //my-components $u-main-color: #303133; diff --git a/components/JeepayNavigation/JeepayNavigation.vue b/components/JeepayNavigation/JeepayNavigation.vue index f49fc48..53795bd 100644 --- a/components/JeepayNavigation/JeepayNavigation.vue +++ b/components/JeepayNavigation/JeepayNavigation.vue @@ -78,7 +78,7 @@ // 点击事件 async function clickFunc(nav) { - if (nav.pageUrl == "PAGES_SALES_SUMMARY") { + if (nav.pageUrl == "PAGES_DATA_SUMMARY") { let res = await hasPermission('允许查看经营数据') if (!res) return } diff --git a/components/my-components/edit-discount.vue b/components/my-components/edit-discount.vue index c34851f..bd8614e 100644 --- a/components/my-components/edit-discount.vue +++ b/components/my-components/edit-discount.vue @@ -1,201 +1,223 @@ - - - - - 应付金额 - - {{form.price}} - - - - 实收金额 - - - - - - 优惠折扣 - - - - - % - - - - - - - - - 修改 - - 取消 - - - - - + + + + + 应付金额 + + {{ form.price }} + + + + 实收金额 + + + + + + 优惠折扣 + + + + + % + + + + + + + + 修改 + + 取消 + + + + + \ No newline at end of file +.placeholder-class { + font-size: 28rpx; +} + diff --git a/components/my-components/my-bottom-btn-group.vue b/components/my-components/my-bottom-btn-group.vue index 56f6c02..489fcf1 100644 --- a/components/my-components/my-bottom-btn-group.vue +++ b/components/my-components/my-bottom-btn-group.vue @@ -1,5 +1,5 @@ - + + + diff --git a/components/my-components/my-footer-btn.vue b/components/my-components/my-footer-btn.vue index 8fe2d65..353063f 100644 --- a/components/my-components/my-footer-btn.vue +++ b/components/my-components/my-footer-btn.vue @@ -1,56 +1,78 @@ - - - - {{ confirmText }} - - - 取消 - - - + + + + {{ confirmText }} + + + 取消 + + + diff --git a/components/my-components/my-up-upload.vue b/components/my-components/my-up-upload.vue index ac091a2..e82600d 100644 --- a/components/my-components/my-up-upload.vue +++ b/components/my-components/my-up-upload.vue @@ -1,113 +1,125 @@ - + + + + + - \ No newline at end of file + diff --git a/components/my-components/my-upload-img.vue b/components/my-components/my-upload-img.vue new file mode 100644 index 0000000..50c5b46 --- /dev/null +++ b/components/my-components/my-upload-img.vue @@ -0,0 +1,89 @@ + + + + + + + + {}" v-if="modelValue"> + + + + + + + + diff --git a/data/index.js b/data/index.js new file mode 100644 index 0000000..f80dc5b --- /dev/null +++ b/data/index.js @@ -0,0 +1,33 @@ +import dayjs from "dayjs"; +export const timeList = [ + { + label: "今天", + value: "today", + beginDate: dayjs().format("YYYY-MM-DD"), + endDate: dayjs().format("YYYY-MM-DD"), + }, + { + label: "昨天", + value: "yesterday", + beginDate: dayjs().subtract(1, "day").format("YYYY-MM-DD"), + endDate: dayjs().subtract(1, "day").format("YYYY-MM-DD"), + }, + { + label: "本周", + value: "this_week", + beginDate: dayjs().startOf("week").format("YYYY-MM-DD"), + endDate: dayjs().endOf("week").format("YYYY-MM-DD"), + }, + { + label: "本月", + value: "this_month", + beginDate: dayjs().startOf("month").format("YYYY-MM-DD"), + endDate: dayjs().endOf("month").format("YYYY-MM-DD"), + }, + { + label: "自定义", + value: "custom", + beginDate: "", + endDate: "", + }, +]; diff --git a/http/api/account/tableOrderStatistic.js b/http/api/account/tableOrderStatistic.js new file mode 100644 index 0000000..1f1e882 --- /dev/null +++ b/http/api/account/tableOrderStatistic.js @@ -0,0 +1,13 @@ +import http from "@/http/http.js"; +const request = http.request; +const urlType = "account"; + +export function tableOrderStatistic(data) { + return request({ + url: `${urlType}/admin/tableOrderStatistic`, + method: "GET", + data: { + ...data, + }, + }); +} \ No newline at end of file diff --git a/http/api/market/member.js b/http/api/market/member.js new file mode 100644 index 0000000..6850b49 --- /dev/null +++ b/http/api/market/member.js @@ -0,0 +1,67 @@ +import http from '@/http/http.js' +const request = http.request +const urlType='market' + +export function getConfig(data) { + return request({ + url: `${urlType}/admin/member`, + method: "GET", + data: { + ...data + } + }) +} + + +export function editConfig(data) { + return request({ + url: `${urlType}/admin/member`, + method: "POST", + data: { + ...data + } + }) +} + +export function levelList(data) { + return request({ + url: `${urlType}/admin/member/level/list`, + method: "GET", + data: { + ...data + } + }) +} +export function orderList(data) { + return request({ + url: `${urlType}/admin/member/order`, + method: "GET", + data: { + ...data + } + }) +} +export function levelAdd(data) { + return request({ + url: `${urlType}/admin/member/level`, + method: "POST", + data: { + ...data + } + }) +} +export function levelEdit(data) { + return request({ + url: `${urlType}/admin/member/level`, + method: "PUT", + data: { + ...data + } + }) +} +export function levelDel(id) { + return request({ + url: `${urlType}/admin/member/level/${id}`, + method: "DELETE", + }) +} diff --git a/http/api/order/summary.js b/http/api/order/summary.js new file mode 100644 index 0000000..c56a727 --- /dev/null +++ b/http/api/order/summary.js @@ -0,0 +1,33 @@ +import http from "@/http/http.js"; +const request = http.request; +const urlType = "order"; + +export function tableSummaryList(data) { + return request({ + url: `${urlType}/admin/table/summary/list`, + method: "GET", + data: { + ...data, + }, + }); +} + +export function saleSummaryPage(data) { + return request({ + url: `${urlType}/admin/sale/summary/page`, + method: "GET", + data: { + ...data, + }, + }); + } + + export function saleSummaryCount(data) { + return request({ + url: `${urlType}/admin/sale/summary/count`, + method: "GET", + data: { + ...data, + }, + }); + } \ No newline at end of file diff --git a/http/http.js b/http/http.js index 3059424..6fceecc 100644 --- a/http/http.js +++ b/http/http.js @@ -15,8 +15,8 @@ import infoBox from "@/commons/utils/infoBox.js"; import go from "@/commons/utils/go.js"; import { reject } from "lodash"; // 设置node环境 -// envConfig.changeEnv(storageManage.env('production')) -envConfig.changeEnv(storageManage.env("development")); +// envConfig.changeEnv(storageManage.env('production')) //正式 +envConfig.changeEnv(storageManage.env("development")); //测试 // 测试服 // #ifdef H5 diff --git a/main.js b/main.js index ccd5728..2ac4d0a 100644 --- a/main.js +++ b/main.js @@ -10,6 +10,9 @@ import * as Pinia from 'pinia'; import { createUnistorage } from "pinia-plugin-unistorage"; + +uni.$utils=utils + // 设置node环境 envConfig.changeEnv(storageManage.env()) diff --git a/pageBwc/index/index.vue b/pageBwc/index/index.vue index 968b9b6..d61f3f4 100644 --- a/pageBwc/index/index.vue +++ b/pageBwc/index/index.vue @@ -7,7 +7,11 @@ 霸王餐 设置充值消费的N倍,当前订单立即免单 - + - + @@ -89,7 +93,7 @@ diff --git a/pageMarket/superVip/components/config.vue b/pageMarket/superVip/components/config.vue new file mode 100644 index 0000000..9f785d4 --- /dev/null +++ b/pageMarket/superVip/components/config.vue @@ -0,0 +1,336 @@ + + + + + + 提交生日/姓名 + + + + 是 + + + + + 否 + + + + + *成为会员前需提交生日、姓名、性别信息 + + + + + + + 会员开通方式 + + + + 购买开通 + + + + + 条件开通 + + + + + + + + + + 会员周期列表 + + 去设置 + + + + + + + 成为会员条件 + + + + + {{ item.label }} + + + + + + + + + + + + + 可用门店 + + + + + 规则说明 + + + + + 获取成长值升级 + *两个条件必选有一条是大于0的数值 + + 每消费1元获得成长值 + + + + 每充值1元获得成长值 + + + + + + + + + + diff --git a/pageMarket/superVip/components/coupon-list.vue b/pageMarket/superVip/components/coupon-list.vue new file mode 100644 index 0000000..076c3c1 --- /dev/null +++ b/pageMarket/superVip/components/coupon-list.vue @@ -0,0 +1,110 @@ + + + + + + {{ item.coupon.title }} + + + + + + + 选择赠送券 + + + + + + + 数量 + + + + + + + + + + + + diff --git a/pageMarket/superVip/components/fenxiao-mingxi.vue b/pageMarket/superVip/components/fenxiao-mingxi.vue new file mode 100644 index 0000000..8756e6e --- /dev/null +++ b/pageMarket/superVip/components/fenxiao-mingxi.vue @@ -0,0 +1,197 @@ + + + + + + 关联订单: + {{ item.orderNo }} + + + {{ returnStatus(item.status) }} + + + + + 分销员 + + {{ item.nickName }} + + {{ item.phone }} + + + 下级用户 + + {{ item.sourceNickName }} + + {{ item.sourcePhone }} + + + 创建时间 + + {{ item.sourceNickName }} + + {{ item.createTime }} + + + + {{ item.rewardAmount }} + {{ + item.level == 1 ? "直接分成" : "间接分成" + }} + + + + + + + + + + diff --git a/pageMarket/superVip/components/open-list.vue b/pageMarket/superVip/components/open-list.vue new file mode 100644 index 0000000..0f302f1 --- /dev/null +++ b/pageMarket/superVip/components/open-list.vue @@ -0,0 +1,258 @@ + + + + + + 订单号: + {{ item.orderNo }} + + + + + + {{ item.nickName }} + {{ item.phone }} + + + {{ item.createTime }} + + + + + {{ item.amount }} + + + {{ item.circleTime }}个{{ item.circleUnit }} + + + + + + + + + + + + 分销组 + + + + + {{ item.name }} + + + + + + + + 是否确认重置分销组 重置后将会按照用户的实际数据匹配分销组 + + + + 是否确认取消分销员 + + + + + + diff --git a/pageMarket/superVip/components/user-types.vue b/pageMarket/superVip/components/user-types.vue new file mode 100644 index 0000000..d8988cf --- /dev/null +++ b/pageMarket/superVip/components/user-types.vue @@ -0,0 +1,70 @@ + + + + + + + {{ item.label }} + + + {{ item.desc }} + + + + + + + + \ No newline at end of file diff --git a/pageMarket/superVip/components/vip-lv-list.vue b/pageMarket/superVip/components/vip-lv-list.vue new file mode 100644 index 0000000..5be60e4 --- /dev/null +++ b/pageMarket/superVip/components/vip-lv-list.vue @@ -0,0 +1,172 @@ + + + + + {{ item.name }} + + + + 所需成长值: + {{ item.experienceValue || 0 }} + + + 会员折扣: + {{ item.discount || 100 }}% + + + + + 删除 + 编辑 + + + + + + + + + + + 添加会员等级 + + + + + + + diff --git a/pageMarket/superVip/index.vue b/pageMarket/superVip/index.vue new file mode 100644 index 0000000..cd10f41 --- /dev/null +++ b/pageMarket/superVip/index.vue @@ -0,0 +1,447 @@ + + + + + + + + + 超级会员 + 用户会员管理设置 + + + + + + + + + + + + + + + {{ userComponentQuery.startTime }} - + {{ userComponentQuery.endTime }} + + + + + + + 请选择日期范围 + + + + + + + + {{ + listRes.totalRow + }} + 订单数 + + + {{ + listRes.totalAmount + }} + 订单金额(元) + + + + + {{ + listRes.successAmount + }} + 已入账金额(元) + + + {{ + listRes.pendingAmount || 0 + }} + 待入账金额(元) + + + {{ + listRes.balanceAmount + }} + + 运营余额(元) + 充值{{ ">" }} + + + + + + + + + + + + + + + + + + + + + + diff --git a/pageMarket/superVip/level-list.vue b/pageMarket/superVip/level-list.vue new file mode 100644 index 0000000..07e0768 --- /dev/null +++ b/pageMarket/superVip/level-list.vue @@ -0,0 +1,366 @@ + + + + 升级条件 + + + + + + {{ item.label }} + + + + + + + + + {{index+1}}级:{{ item.name }} + + 展开 + + + + + + + + 名称 + + + + + 分成比例 + + + + % + + + + + + 有效人数 + + + + 人 + + + + 有效人数:被邀请人在店铺消费过,即有一笔订单完成 + + + + 消费金额达 + + + + 元 + + + 消费金额:分销员和被邀请人在店铺订单消费总金额(不包含退款) + + + + + + + + + {{index==0? '添加':'继续添加'}} + + + + 删除 + + + + + + + + + + + + + diff --git a/pageMarket/superVip/vip-lv-add.vue b/pageMarket/superVip/vip-lv-add.vue new file mode 100644 index 0000000..726ea0e --- /dev/null +++ b/pageMarket/superVip/vip-lv-add.vue @@ -0,0 +1,363 @@ + + + + + 会员标题 + + + + 会员折扣(%) + + + + 所需会员值 + + + + + + 等级标识 + + + + + + + + 消费送积分 + 每消费X元赠送1积分 + + + + + + + 元 + + + + + + 等级说明 + + + + + + 自动发放 + + + + + 周期时间 + + + + + + + + + 赠送积分 + + + 赠送优惠券 + + + + + 添加 + + + + + + + + + + diff --git a/pageMarket/superVip/vip-plans.vue b/pageMarket/superVip/vip-plans.vue new file mode 100644 index 0000000..32fdcc8 --- /dev/null +++ b/pageMarket/superVip/vip-plans.vue @@ -0,0 +1,140 @@ + + + + + + {{ item.name }} + + + + + 价格: + {{item.price}}元 + + + 周期: + {{item.circleTime}}个{{ item.circleUnit }} + + + + + 赠送成长值: + {{item.reward}} + + + 赠送优惠券: + {{returnCouponAllNum(item)}}张 + + + + + 删除 + 编辑 + + + + + + + + + 添加方案 + + + + + + + + + diff --git a/pageRecharge/components/recharge-item.vue b/pageRecharge/components/recharge-item.vue index 7535130..dae416e 100644 --- a/pageRecharge/components/recharge-item.vue +++ b/pageRecharge/components/recharge-item.vue @@ -13,8 +13,8 @@ {{ returnSendStr.join('、') }} - - + + 删除 @@ -25,9 +25,8 @@ \ No newline at end of file +.item { + line-height: 34px; + text-align: center; +} + diff --git a/pageSalesSummary/index.vue b/pageSalesSummary/index.vue index d2b9dee..f5fbb6e 100644 --- a/pageSalesSummary/index.vue +++ b/pageSalesSummary/index.vue @@ -1,426 +1,421 @@ - - - - {{v.label}} - - - - + + + + {{ v.label }} + + + + - - - 实收金额(元) - {{list.saleAmount?list.saleAmount:0}} - - - 优惠金额(元) - {{list.discountAmount?list.discountAmount:0}} - - - 客单价(元) - {{list.customerUnitPrice?list.customerUnitPrice:0}} - - - 会员消费(元) - {{list.memberPayAmount?list.memberPayAmount:0}} - - - 新增会员(人) - {{list.newMemberCount?list.newMemberCount:0}} - - - 翻台率(%) - {{list.tableTurnoverRate?list.tableTurnoverRate:0}} - - - - - - - - - - 商品名称 - 总数量 - 金额 - - - - - - - {{item.productName}} - - {{item.number}} - {{item.amount || '无'}} - - - - - - - - - 更多 - - + + + 实收金额(元) + {{ list.payAmount ? list.payAmount : 0 }} + + + 优惠金额(元) + + {{ list.discountAmount ? list.discountAmount : 0 }} + + + + 客单价(元) + + {{ list.avgPayAmount ? list.avgPayAmount : 0 }} + + + + 会员消费(元) + + {{ list.memberPayAmount ? list.memberPayAmount : 0 }} + + + + 新增会员(人) + + {{ list.newMemberCount ? list.newMemberCount : 0 }} + + + + 翻台率(%) + + {{ list.turnoverRate ? list.turnoverRate : 0 }} + + + + + + + + + + 商品名称 + 总数量 + 金额 + + + + + + + {{ item.productName }} + + {{ item.saleCount || 0 }} + {{ item.saleAmount || 0 }} + + + + + + + + 更多 + + \ No newline at end of file +.min-page { + height: 20vh; +} + diff --git a/pageSalesSummary/productSalesRanking.vue b/pageSalesSummary/productSalesRanking.vue index 46e07bc..867af9f 100644 --- a/pageSalesSummary/productSalesRanking.vue +++ b/pageSalesSummary/productSalesRanking.vue @@ -1,153 +1,156 @@ - - - - - - - 商品名称 - 总数量 - 金额 - - - {{item.productName}} - {{item.number}} - {{item.amount || '无'}} - - - - - - + + + + + + 商品名称 + 总数量 + 金额 + + + {{ item.productName }} + {{ item.saleCount || 0 }} + {{ item.saleAmount || 0 }} + + + + + diff --git a/pageSalesSummary/sales.vue b/pageSalesSummary/sales.vue new file mode 100644 index 0000000..22c4305 --- /dev/null +++ b/pageSalesSummary/sales.vue @@ -0,0 +1,411 @@ + + + + + {{ v.label }} + + + + + + + + 总金额(元) + {{ list.totalAmount ? list.totalAmount : 0 }} + + + 退款金额(元) + + {{ list.refundAmount ? list.refundAmount : 0 }} + + + + 总数量 + + {{ list.saleCount ? list.saleCount : 0 }} + + + + 退单量 + + {{ list.refundCount ? list.refundCount : 0 }} + + + + + + + + + + 商品名称 + 总数量 + 金额 + + + + + + + {{ item.productName }} + + {{ item.saleCount || 0 }} + {{ item.saleAmount || 0 }} + + + + + + + + 更多 + + + + + + + + + + diff --git a/pageSalesSummary/table.vue b/pageSalesSummary/table.vue new file mode 100644 index 0000000..a1b5b44 --- /dev/null +++ b/pageSalesSummary/table.vue @@ -0,0 +1,346 @@ + + + + + {{ v.label }} + + + + + + + + + + + + 区域名称 + 台桌号 + 订单数量 + 订单金额 + + + + + + + {{ item.areaName }} + + {{ item.tableName || "" }} + {{ item.orderCount || 0 }} + {{ item.orderAmount || 0 }} + + + + + + + + + + + + + + + + + + diff --git a/pages.json b/pages.json index b2a1ed0..ef1e0b7 100644 --- a/pages.json +++ b/pages.json @@ -390,18 +390,35 @@ { "root": "pageSalesSummary", "pages": [{ - "pageId": "PAGES_SALES_SUMMARY", + "pageId": "PAGES_DATA_SUMMARY", "path": "index", "style": { - "navigationBarTitleText": "销售汇总" + "navigationBarTitleText": "数据统计" } - }, { + }, + { + "pageId": "PAGES_SALES_SUMMARY", + "path": "sales", + "style": { + "navigationBarTitleText": "销量统计" + } + }, + { "pageId": "PAGES_PRODUCT_SALES_RANKING", "path": "productSalesRanking", "style": { "navigationBarTitleText": "商品销售排行" } - }] + }, + { + "pageId": "PAGES_TABLE_SALES_RANKING", + "path": "table", + "style": { + "navigationBarTitleText": "桌台统计" + } + } + + ] }, { "root": "pageLineUp", @@ -756,6 +773,34 @@ "style": { "navigationBarTitleText": "充值兑换码详情" } + }, + { + "pageId": "PAGES_MARKET_SUPER_VIP", + "path": "superVip/index", + "style": { + "navigationBarTitleText": "超级会员" + } + }, + { + "pageId": "PAGES_MARKET_SUPER_VIP_ADD_PLAN", + "path": "superVip/add-plans", + "style": { + "navigationBarTitleText": "添加方案" + } + }, + { + "pageId": "PAGES_MARKET_SUPER_VIP_VIP_PLANS", + "path": "superVip/vip-plans", + "style": { + "navigationBarTitleText": "会员周期列表" + } + }, + { + "pageId": "PAGES_MARKET_SUPER_VIP_LV_ADD", + "path": "superVip/vip-lv-add", + "style": { + // "navigationBarTitleText": "添加会员等级" + } } diff --git a/pages/appliccation/marketing.vue b/pages/appliccation/marketing.vue index 70ea5d9..6973e9a 100644 --- a/pages/appliccation/marketing.vue +++ b/pages/appliccation/marketing.vue @@ -52,7 +52,7 @@ const menuList = ref([ { title: '超级会员', icon: '', - pageUrl: 'PAGES_ORDER_INDEX', + pageUrl: 'PAGES_MARKET_SUPER_VIP', intro: '用户会员管理设置' }, { diff --git a/pages/index/components/Stats.vue b/pages/index/components/Stats.vue index 0537364..a7983af 100644 --- a/pages/index/components/Stats.vue +++ b/pages/index/components/Stats.vue @@ -1,302 +1,294 @@ - - - - - - {{ v.title }} - - - - - - - - - 成交金额 (元) - {{ list?list.sale.incomeAmountAll:0}} - - - - 消费笔数 - {{ list?list.vip.useNum:0 }} - - - 退款金额 (元) - {{ list?list.sale.outAmount:0}} - - - 消费金额 - {{ list?list.vip.useAmount:0 }} - - - - - 会员充值(元) - {{ cal.cert2Dollar(memberData.payAmount) }} - - - 会员消费(元) - {{ cal.cert2Dollar(Math.abs(memberData.changeAmount)) }} - + + + + + + {{ v.title }} + + + + + + + + + 成交金额 (元) + {{ list ? list.sale.incomeAmountAll : 0 }} + + + + 消费笔数 + {{ list ? list.vip.useNum : 0 }} + + + 退款金额 (元) + {{ list ? list.sale.outAmount : 0 }} + + + 消费金额 + {{ list ? list.vip.useAmount : 0 }} + + + + + 会员充值(元) + {{ + cal.cert2Dollar(memberData.payAmount) + }} + + + 会员消费(元) + {{ + cal.cert2Dollar(Math.abs(memberData.changeAmount)) + }} + - - 会员消费笔数 - {{ memberData.changeCount }} - - - - - - + + 会员消费笔数 + {{ memberData.changeCount }} + + + + + + \ No newline at end of file + .quick-money { + height: 110rpx; + border-radius: 20rpx; + color: $J-color-t29; + } +} + diff --git a/pages/index/components/my-date-pickerview.vue b/pages/index/components/my-date-pickerview.vue index 1e8085d..af81cb9 100644 --- a/pages/index/components/my-date-pickerview.vue +++ b/pages/index/components/my-date-pickerview.vue @@ -1,30 +1,40 @@ - - - - 筛选日期时间 - - - - - - - - - {{item}}年 - - - {{item}}月 - - - {{item}}日 - - - - 至 - - - {{item}}年 - - - {{item}}月 - - - {{item}}日 - - - - - - - - 确定 - - - - + + + + + 确定 + + + \ No newline at end of file +.item { + line-height: 34px; + text-align: center; +} + diff --git a/pages/index/components/statistics.vue b/pages/index/components/statistics.vue index baf17ce..737594b 100644 --- a/pages/index/components/statistics.vue +++ b/pages/index/components/statistics.vue @@ -1,59 +1,82 @@ - - - 数据统计 - - - - - - {{v.label}} - - - - - - - - - - + + + 数据统计 + + + + + + {{ v.label }} + + + + + + + + + + + + 营业额 + + + + + + 退款 + + + + + + + + + + + + {{ item.payType }} + + - - 营业额 - - - - - - 退款 - - - - - - - - - - - - {{item.payType}} - - + + {{ item.payAmount }} + + + + - - {{item.payAmount}} - - - - - - - - - - + + + \ No newline at end of file + .block { + width: 18rpx; + height: 18rpx; + box-sizing: border-box; + background: #fff; + position: absolute; + border-top: 0.5rpx solid #629ffa; + border-left: 0.5rpx solid #629ffa; + left: 30rpx; + top: 6rpx; + transform: rotate(45deg); + transform-origin: center; + transition: all 0.2s linear; + } +} + diff --git a/pages/login/index.vue b/pages/login/index.vue index 90e55f9..296ac27 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -273,9 +273,11 @@ */ async function loginFinishFunc(loginBizData) { // 保存 token + console.log('loginBizData',loginBizData) storageManage.setLogin(loginBizData) storageManage.token(loginBizData.tokenInfo) uni.setStorageSync("promission",loginBizData.promissionList) + uni.setStorageSync("shopId",loginBizData.shopInfo.id) // var time1 = new Date(); // var time2 = new Date(loginBizData.expireDate); diff --git a/pages/permission/permission.vue b/pages/permission/permission.vue index b2568ef..d83b0eb 100644 --- a/pages/permission/permission.vue +++ b/pages/permission/permission.vue @@ -241,7 +241,7 @@ } .u-tab-view { - width: 200rpx; + width: 240rpx; height: 100%; } diff --git a/pages/shopSetUp/decoration.vue b/pages/shopSetUp/decoration.vue index 7cde85d..5152a05 100644 --- a/pages/shopSetUp/decoration.vue +++ b/pages/shopSetUp/decoration.vue @@ -1,566 +1,582 @@ - - - - - - {{ item.name }} - - - - - - - 当前背景图片: - 更换 - - - - - - + + + + + + {{ item.name }} + + + + + + + 当前背景图片: + 更换 + + + + + + - - - 当前背景效果: - - - - - - - - - - + + + 当前背景效果: + + + + + + + + + + \ No newline at end of file +.bg-2 { + background-position: center; + background-size: cover; + border-radius: 24rpx; + overflow: hidden; +} +.bg-3 { + background-repeat: no-repeat; + background-position: top; + background-size: 100% auto; +} +.bg-4 { + background-repeat: no-repeat; + background-position: top; + background-size: 100% auto; + position: relative; + .logo { + position: absolute; + left: 30rpx; + width: 90px; + height: 30px; + top: 30rpx; + } +} + diff --git a/pages/shopSetUp/index.vue b/pages/shopSetUp/index.vue index 6e405bd..60ea6ab 100644 --- a/pages/shopSetUp/index.vue +++ b/pages/shopSetUp/index.vue @@ -1,66 +1,119 @@ - - - 头像 - - - - - - - - 商户名称 - - {{ vdata.shopInfo.shopName }} - - - - - 商户电话 - - {{ vdata.shopInfo.phone }} - - - - + + 商户名称 + + {{ vdata.shopInfo.shopName }} + + + + + 商户电话 + + {{ vdata.shopInfo.phone }} + + + + - - 营业状态 - - - - - - 门店详细地址 - - {{ vdata.shopInfo.address }} - - - - - - 允许打包 - - - - 是否开启会员余额支付 - - - - - + + 允许打包 + + + + 是否开启会员余额支付 + + + + + + + 点餐电子围栏 + + + 开启后,用户只能在店铺附近两公里范围内点餐 + + + + + + 桌位费 + + {{ vdata.shopInfo.tableFee }} + + + + + + + + + + + - - 付费模式 - - - - - - - - 店铺收款码 - - - - - + + 付费模式 + + + + + + + + 店铺收款码 + + + + + diff --git a/static/applocation/birthdayGift.png b/static/applocation/birthdayGift.png deleted file mode 100644 index 6abda3e..0000000 Binary files a/static/applocation/birthdayGift.png and /dev/null differ diff --git a/static/applocation/bwc.png b/static/applocation/bwc.png deleted file mode 100644 index 35ce698..0000000 Binary files a/static/applocation/bwc.png and /dev/null differ diff --git a/static/applocation/cjhy.png b/static/applocation/cjhy.png deleted file mode 100644 index 3cd0466..0000000 Binary files a/static/applocation/cjhy.png and /dev/null differ diff --git a/static/applocation/czdhm.png b/static/applocation/czdhm.png deleted file mode 100644 index e9b2aea..0000000 Binary files a/static/applocation/czdhm.png and /dev/null differ diff --git a/static/applocation/czhd.png b/static/applocation/czhd.png deleted file mode 100644 index 94f7b7a..0000000 Binary files a/static/applocation/czhd.png and /dev/null differ diff --git a/static/applocation/czqb.png b/static/applocation/czqb.png deleted file mode 100644 index 8b34a14..0000000 Binary files a/static/applocation/czqb.png and /dev/null differ diff --git a/static/applocation/dczntj.png b/static/applocation/dczntj.png deleted file mode 100644 index 5b9c481..0000000 Binary files a/static/applocation/dczntj.png and /dev/null differ diff --git a/static/applocation/dejbjq.png b/static/applocation/dejbjq.png deleted file mode 100644 index ff93966..0000000 Binary files a/static/applocation/dejbjq.png and /dev/null differ diff --git a/static/applocation/dxts.png b/static/applocation/dxts.png deleted file mode 100644 index fcdb6ee..0000000 Binary files a/static/applocation/dxts.png and /dev/null differ diff --git a/static/applocation/fx.png b/static/applocation/fx.png deleted file mode 100644 index d17e46e..0000000 Binary files a/static/applocation/fx.png and /dev/null differ diff --git a/static/applocation/gdjkq.png b/static/applocation/gdjkq.png deleted file mode 100644 index 43124cd..0000000 Binary files a/static/applocation/gdjkq.png and /dev/null differ diff --git a/static/applocation/jfsk.png b/static/applocation/jfsk.png deleted file mode 100644 index 907a76c..0000000 Binary files a/static/applocation/jfsk.png and /dev/null differ diff --git a/static/applocation/kctg.png b/static/applocation/kctg.png deleted file mode 100644 index 37dd2fc..0000000 Binary files a/static/applocation/kctg.png and /dev/null differ diff --git a/static/applocation/mfpsq.png b/static/applocation/mfpsq.png deleted file mode 100644 index 41b66da..0000000 Binary files a/static/applocation/mfpsq.png and /dev/null differ diff --git a/static/applocation/mjhd.png b/static/applocation/mjhd.png deleted file mode 100644 index 863420b..0000000 Binary files a/static/applocation/mjhd.png and /dev/null differ diff --git a/static/applocation/mjq.png b/static/applocation/mjq.png deleted file mode 100644 index ad38ce5..0000000 Binary files a/static/applocation/mjq.png and /dev/null differ diff --git a/static/applocation/mysyq.png b/static/applocation/mysyq.png deleted file mode 100644 index d649fa8..0000000 Binary files a/static/applocation/mysyq.png and /dev/null differ diff --git a/static/applocation/myzy.png b/static/applocation/myzy.png deleted file mode 100644 index d649fa8..0000000 Binary files a/static/applocation/myzy.png and /dev/null differ diff --git a/static/applocation/new_user_discount.png b/static/applocation/new_user_discount.png deleted file mode 100644 index 2f0fe73..0000000 Binary files a/static/applocation/new_user_discount.png and /dev/null differ diff --git a/static/applocation/qdhm.png b/static/applocation/qdhm.png deleted file mode 100644 index af33e49..0000000 Binary files a/static/applocation/qdhm.png and /dev/null differ diff --git a/static/applocation/spdhq.png b/static/applocation/spdhq.png deleted file mode 100644 index 281468f..0000000 Binary files a/static/applocation/spdhq.png and /dev/null differ diff --git a/static/applocation/sppt.png b/static/applocation/sppt.png deleted file mode 100644 index 2f822a9..0000000 Binary files a/static/applocation/sppt.png and /dev/null differ diff --git a/static/applocation/sryl.png b/static/applocation/sryl.png deleted file mode 100644 index 68e10fc..0000000 Binary files a/static/applocation/sryl.png and /dev/null differ diff --git a/static/applocation/super_vip.png b/static/applocation/super_vip.png deleted file mode 100644 index 2c37321..0000000 Binary files a/static/applocation/super_vip.png and /dev/null differ diff --git a/static/applocation/syyl.png b/static/applocation/syyl.png deleted file mode 100644 index 9d53557..0000000 Binary files a/static/applocation/syyl.png and /dev/null differ diff --git a/static/applocation/tcgg.png b/static/applocation/tcgg.png deleted file mode 100644 index 80e665f..0000000 Binary files a/static/applocation/tcgg.png and /dev/null differ diff --git a/static/applocation/tctg.png b/static/applocation/tctg.png deleted file mode 100644 index 37dd2fc..0000000 Binary files a/static/applocation/tctg.png and /dev/null differ diff --git a/static/applocation/tshdxx.png b/static/applocation/tshdxx.png deleted file mode 100644 index 0c89aa5..0000000 Binary files a/static/applocation/tshdxx.png and /dev/null differ diff --git a/static/applocation/wxgzh.png b/static/applocation/wxgzh.png deleted file mode 100644 index f376ddc..0000000 Binary files a/static/applocation/wxgzh.png and /dev/null differ diff --git a/static/applocation/xffx.png b/static/applocation/xffx.png deleted file mode 100644 index de19d00..0000000 Binary files a/static/applocation/xffx.png and /dev/null differ diff --git a/static/applocation/xfzq.png b/static/applocation/xfzq.png deleted file mode 100644 index ad0744c..0000000 Binary files a/static/applocation/xfzq.png and /dev/null differ diff --git a/static/applocation/xklj.png b/static/applocation/xklj.png deleted file mode 100644 index d4ea83c..0000000 Binary files a/static/applocation/xklj.png and /dev/null differ diff --git a/static/applocation/xszk.png b/static/applocation/xszk.png deleted file mode 100644 index 37e7e58..0000000 Binary files a/static/applocation/xszk.png and /dev/null differ diff --git a/static/applocation/yqlb.png b/static/applocation/yqlb.png deleted file mode 100644 index 839c295..0000000 Binary files a/static/applocation/yqlb.png and /dev/null differ diff --git a/static/applocation/zhcz.png b/static/applocation/zhcz.png deleted file mode 100644 index 2388acc..0000000 Binary files a/static/applocation/zhcz.png and /dev/null differ diff --git a/static/applocation/zkq.png b/static/applocation/zkq.png deleted file mode 100644 index 646779b..0000000 Binary files a/static/applocation/zkq.png and /dev/null differ diff --git a/static/bgImg/quik-bg-img.svg b/static/bgImg/quik-bg-img.svg deleted file mode 100644 index ad992ab..0000000 --- a/static/bgImg/quik-bg-img.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/static/coupon/icon_coupon.svg b/static/coupon/icon_coupon.svg deleted file mode 100644 index b075493..0000000 --- a/static/coupon/icon_coupon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/member_bg.png b/static/member_bg.png deleted file mode 100644 index 46068f9..0000000 Binary files a/static/member_bg.png and /dev/null differ diff --git a/static/uni.png b/static/uni.png deleted file mode 100644 index 8e3a80f..0000000 Binary files a/static/uni.png and /dev/null differ diff --git a/store/account.js b/store/account.js index cce171a..c3bf537 100644 --- a/store/account.js +++ b/store/account.js @@ -2,6 +2,18 @@ import { defineStore } from "pinia"; import * as shopApi from "@/http/api/shop.js"; +//判断是否是主店 +export const isMainShop = (shopId) => { + const shopInfo=uni.getStorageSync("shopInfo"); + if(shopInfo.isHeadShop){ + return true + } + if(shopInfo.shopType=='only'){ + return true + } + return false +} + // 分销 export const useAccountInfoStore = defineStore("accountInfo", { state: () => { diff --git a/store/chat.js b/store/chat.js new file mode 100644 index 0000000..57a55b7 --- /dev/null +++ b/store/chat.js @@ -0,0 +1,17 @@ +import { defineStore } from "pinia"; +// import * as shopApi from "@/http/api/shop.js"; + +// 聊天 +export const useChatStore = defineStore("chat", { + state: () => { + return { + chatList: [], + }; + }, + actions: { + sendMessage(message) { + this.chatList.push(message); + }, + }, + unistorage: true, // 开启后对 state 的数据读写都将持久化 +}); diff --git a/store/market.js b/store/market.js index e7b0b0e..aeafa93 100644 --- a/store/market.js +++ b/store/market.js @@ -2,6 +2,7 @@ import { defineStore } from "pinia"; import * as distributionApi from "@/http/api/market/distribution.js"; import * as consumeDiscountApi from "@/http/api/market/consumeDiscount.js"; +import * as memberApi from "@/http/api/market/member.js"; export const upgradeTypes = [ { @@ -57,7 +58,6 @@ export const useDistributionStore = defineStore("distribution", { export const useNewUserDiscountStore = defineStore("newUserDiscount", { state: () => { return { - //分销配置 config: { isEnable: 0, }, @@ -70,15 +70,56 @@ export const useNewUserDiscountStore = defineStore("newUserDiscount", { return this.config; }, async editConfig(data, isAutoResrefresh = true) { + if (data.discountType === "FIXED") { + data.randomDiscountList = []; + } const res = await consumeDiscountApi.editConfig({ ...this.config, ...data, }); if (isAutoResrefresh) { - this.getConfig(); + setTimeout(() => { + this.getConfig(); + }, 1500); } return res; }, }, unistorage: true, // 开启后对 state 的数据读写都将持久化 }); + +//超级会员 +export const useSuperVipStore = defineStore("superVip", { + state: () => { + return { + config: { + isOpen: 0, + configList:[] + }, + vipLevelList:[] + }; + }, + actions: { + setVipLevelList(list){ + this.vipLevelList = list||[]; + }, + editPlan(index,plan){ + this.config.configList[index] = plan; + }, + addPlan(plan){ + this.config.configList.push(plan); + }, + async getConfig() { + const data = await memberApi.getConfig(); + data.memberPriceShopType = data.memberPriceShopType.toLowerCase(); + this.config = data; + return this.config; + }, + async editConfig(data) { + const res = await memberApi.editConfig({ ...this.config,memberPriceShopType:this.config.memberPriceShopType.toUpperCase(), ...data }); + this.getConfig(); + return res; + }, + }, + unistorage: true, // 开启后对 state 的数据读写都将持久化 +});