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 @@ \ 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 @@ \ 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 @@ \ 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 @@ 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 @@ + + + + + + + + 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 @@ + + + + + + + + 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 @@ \ 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 @@ \ 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 @@ \ 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 @@ \ 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 @@ 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 的数据读写都将持久化 +});