diff --git a/commons/style/common.scss b/commons/style/common.scss index 4e68af6..5c51603 100644 --- a/commons/style/common.scss +++ b/commons/style/common.scss @@ -358,6 +358,18 @@ text { left: 0; right: 0; } +.fixed-bottom{ + position: fixed; + bottom: 0; + left: 0; + right: 0; + padding: 30rpx; + padding-bottom: env(safe-area-inset-bottom); + + /* #ifdef H5 */ + padding-bottom: 28rpx; + /* #endif */ +} .lh30 { line-height: 30px; } diff --git a/components/my-components/my-bottom-btn-group.vue b/components/my-components/my-bottom-btn-group.vue new file mode 100644 index 0000000..688082a --- /dev/null +++ b/components/my-components/my-bottom-btn-group.vue @@ -0,0 +1,29 @@ + + + diff --git a/components/my-components/my-dine-types.vue b/components/my-components/my-dine-types.vue new file mode 100644 index 0000000..71f3138 --- /dev/null +++ b/components/my-components/my-dine-types.vue @@ -0,0 +1,44 @@ + + \ No newline at end of file diff --git a/components/my-components/my-shop-select.vue b/components/my-components/my-shop-select.vue new file mode 100644 index 0000000..58bf012 --- /dev/null +++ b/components/my-components/my-shop-select.vue @@ -0,0 +1,157 @@ + + + \ No newline at end of file diff --git a/env/env.development.js b/env/env.development.js index 3c04506..6dc7bb4 100644 --- a/env/env.development.js +++ b/env/env.development.js @@ -1,7 +1,7 @@ export default { - 'JEEPAY_BASE_URL': 'http://192.168.1.31/', // 请求URL(生产环境) - 'JEEPAY_BASE_URL_H5': 'http://192.168.1.31/', - 'JEEPAY_BASE_URL_WSS': 'ws://192.168.1.31:2348' ,// sockets + 'JEEPAY_BASE_URL': 'http://192.168.1.42/', // 请求URL(生产环境) + 'JEEPAY_BASE_URL_H5': 'http://192.168.1.42/', + 'JEEPAY_BASE_URL_WSS': 'ws://192.168.1.42:2348' ,// sockets // 'JEEPAY_BASE_URL': 'https://cashier.sxczgkj.com/', // 请求URL(生产环境) // 'JEEPAY_BASE_URL_H5': 'https://cashier.sxczgkj.com/', // 'JEEPAY_BASE_URL_WSS': 'wss://czgeatws.sxczgkj.com/wss' // sockets diff --git a/http/api/market/consumeCashback.js b/http/api/market/consumeCashback.js new file mode 100644 index 0000000..ef64085 --- /dev/null +++ b/http/api/market/consumeCashback.js @@ -0,0 +1,32 @@ +import http from "@/http/http.js"; +const request = http.request; +const urlType = "market"; + +export function getList(data) { + return request({ + url: `${urlType}/admin/consumeCashback/record`, + method: "GET", + data: { + ...data, + }, + }); +} +export function getConfig(data) { + return request({ + url: `${urlType}/admin/consumeCashback`, + method: "GET", + data: { + ...data, + }, + }); +} + +export function update(data) { + return request({ + url: `${urlType}/admin/consumeCashback`, + method: "POST", + data: { + ...data, + }, + }); +} diff --git a/http/api/market/discountActivity.js b/http/api/market/discountActivity.js new file mode 100644 index 0000000..4d8b410 --- /dev/null +++ b/http/api/market/discountActivity.js @@ -0,0 +1,40 @@ +import http from '@/http/http.js' +const request = http.request +const urlType='market' + +export function getList(data) { + return request({ + url: `${urlType}/admin/discountActivity/page`, + method: "GET", + data: { + ...data + } + }) +} +export function add(data) { + return request({ + url: `${urlType}/admin/discountActivity`, + method: "POST", + data: { + ...data + } + }) +} + +export function update(data) { + return request({ + url: `${urlType}/admin/discountActivity`, + method: "PUT", + data: { + ...data + } + }) +} + +export function del(id) { + return request({ + url: `${urlType}/admin/discountActivity?id=`+id, + method: "DELETE", + }) +} + diff --git a/http/api/market/drainageConfig.js b/http/api/market/drainageConfig.js new file mode 100644 index 0000000..df41dcf --- /dev/null +++ b/http/api/market/drainageConfig.js @@ -0,0 +1,24 @@ +import http from '@/http/http.js' +const request = http.request +const urlType='market' + +export function getConfig(data) { + return request({ + url: `${urlType}/admin/drainageConfig`, + method: "GET", + data: { + ...data + } + }) +} +export function update(data) { + return request({ + url: `${urlType}/admin/drainageConfig`, + method: "POST", + data: { + ...data + } + }) +} + + diff --git a/http/api/shop.js b/http/api/shop.js index ecdb059..4a2bdaf 100644 --- a/http/api/shop.js +++ b/http/api/shop.js @@ -56,3 +56,17 @@ export function editShopExtend(data, urlType = 'account') { } }) } + +/** + * 获取门店列表 + * @returns + */ +export function getShopList(data, urlType = 'account') { + return request({ + url: `${urlType}/admin/shopInfo/branchList`, + method: "GET", + data: { + ...data + } + }) +} diff --git a/http/http.js b/http/http.js index 0005b9a..017b47a 100644 --- a/http/http.js +++ b/http/http.js @@ -15,7 +15,7 @@ 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')) // 测试服 // #ifdef H5 diff --git a/main.js b/main.js index d839b8b..4e9d56d 100644 --- a/main.js +++ b/main.js @@ -24,6 +24,11 @@ const app = new Vue({ }) app.$mount() + + + + + // #endif // #ifdef VUE3 diff --git a/pageBwc/index/index.vue b/pageBwc/index/index.vue index 4e049a2..195ff38 100644 --- a/pageBwc/index/index.vue +++ b/pageBwc/index/index.vue @@ -1,36 +1,51 @@ \ No newline at end of file diff --git a/pageBwc/static/images/bwc.png b/pageBwc/static/images/bwc.png new file mode 100644 index 0000000..f4b51f4 Binary files /dev/null and b/pageBwc/static/images/bwc.png differ diff --git a/pageMarket/components/shop-sel-action-sheet.vue b/pageMarket/components/shop-sel-action-sheet.vue new file mode 100644 index 0000000..db51b63 --- /dev/null +++ b/pageMarket/components/shop-sel-action-sheet.vue @@ -0,0 +1,49 @@ + + + \ No newline at end of file diff --git a/pageMarket/consumeCashback/components/config.vue b/pageMarket/consumeCashback/components/config.vue new file mode 100644 index 0000000..ec2a02e --- /dev/null +++ b/pageMarket/consumeCashback/components/config.vue @@ -0,0 +1,331 @@ + + + + + \ No newline at end of file diff --git a/pageMarket/consumeCashback/components/user-types.vue b/pageMarket/consumeCashback/components/user-types.vue new file mode 100644 index 0000000..d8988cf --- /dev/null +++ b/pageMarket/consumeCashback/components/user-types.vue @@ -0,0 +1,70 @@ + + + \ No newline at end of file diff --git a/pageMarket/consumeCashback/index.vue b/pageMarket/consumeCashback/index.vue new file mode 100644 index 0000000..d423089 --- /dev/null +++ b/pageMarket/consumeCashback/index.vue @@ -0,0 +1,213 @@ + + + \ No newline at end of file diff --git a/pageMarket/discountActivity/add.vue b/pageMarket/discountActivity/add.vue new file mode 100644 index 0000000..a8aec89 --- /dev/null +++ b/pageMarket/discountActivity/add.vue @@ -0,0 +1,349 @@ + + + + + \ No newline at end of file diff --git a/pageMarket/discountActivity/components/bottom-btn-group.vue b/pageMarket/discountActivity/components/bottom-btn-group.vue new file mode 100644 index 0000000..6c10619 --- /dev/null +++ b/pageMarket/discountActivity/components/bottom-btn-group.vue @@ -0,0 +1,29 @@ + + + diff --git a/pageMarket/discountActivity/components/hour-area.vue b/pageMarket/discountActivity/components/hour-area.vue new file mode 100644 index 0000000..010ec4c --- /dev/null +++ b/pageMarket/discountActivity/components/hour-area.vue @@ -0,0 +1,111 @@ + + + + + + \ No newline at end of file diff --git a/pageMarket/discountActivity/components/time-area.vue b/pageMarket/discountActivity/components/time-area.vue new file mode 100644 index 0000000..7cb469d --- /dev/null +++ b/pageMarket/discountActivity/components/time-area.vue @@ -0,0 +1,79 @@ + + + + + diff --git a/pageMarket/discountActivity/components/week-sel.vue b/pageMarket/discountActivity/components/week-sel.vue new file mode 100644 index 0000000..78ad6d9 --- /dev/null +++ b/pageMarket/discountActivity/components/week-sel.vue @@ -0,0 +1,57 @@ + + \ No newline at end of file diff --git a/pageMarket/discountActivity/index.vue b/pageMarket/discountActivity/index.vue new file mode 100644 index 0000000..186f744 --- /dev/null +++ b/pageMarket/discountActivity/index.vue @@ -0,0 +1,197 @@ + + + \ No newline at end of file diff --git a/pageMarket/drainageConfig/index.vue b/pageMarket/drainageConfig/index.vue new file mode 100644 index 0000000..8930055 --- /dev/null +++ b/pageMarket/drainageConfig/index.vue @@ -0,0 +1,366 @@ + + + + + \ No newline at end of file diff --git a/pageMarket/static/images/cost.png b/pageMarket/static/images/cost.png new file mode 100644 index 0000000..5e0663a Binary files /dev/null and b/pageMarket/static/images/cost.png differ diff --git a/pages.json b/pages.json index 9ec8a12..069adf7 100644 --- a/pages.json +++ b/pages.json @@ -590,6 +590,39 @@ "navigationBarTitleText": "查看明细" } }] + }, + { + "root": "pageMarket", + "pages": [{ + "pageId": "PAGES_MARKET_DISCOUNT_ACTIVITY", + "path": "discountActivity/index", + "style": { + "navigationBarTitleText": "满减活动" + } + }, + { + "pageId": "PAGES_MARKET_DISCOUNT_ACTIVITY_ADD", + "path": "discountActivity/add", + "style": { + "navigationBarTitleText": "满减活动" + } + }, + { + "pageId": "PAGES_MARKET_DRAINAGE_CONFIG", + "path": "drainageConfig/index", + "style": { + "navigationBarTitleText": "私域引流" + } + }, + { + "pageId": "PAGES_MARKET_CONSUME_CASHBACK", + "path": "consumeCashback/index", + "style": { + "navigationBarTitleText": "消费返现" + } + } + + ] } ], diff --git a/pages/appliccation/marketing.vue b/pages/appliccation/marketing.vue index e5720ff..1a3365d 100644 --- a/pages/appliccation/marketing.vue +++ b/pages/appliccation/marketing.vue @@ -63,7 +63,24 @@ icon: '/static/indexImg/icon-order.svg', pageUrl: 'PAGES_ORDER_INDEX' }, + { + title: '满减活动', + icon: '/static/indexImg/icon-order.svg', + pageUrl: 'PAGES_MARKET_DISCOUNT_ACTIVITY' + }, + { + title: '私域引流', + icon: '/static/indexImg/icon-order.svg', + pageUrl: 'PAGES_MARKET_DRAINAGE_CONFIG' + }, + { + title: '消费返现', + icon: '/static/indexImg/icon-order.svg', + pageUrl: 'PAGES_MARKET_CONSUME_CASHBACK' + }, + ]; + console.log(menusStore.adminPages); const computedMenus = computed(() => { const arr = menusStore.adminPages.filter(v => { return navList.find(navItem => navItem.title == v.title) diff --git a/pages/login/index.vue b/pages/login/index.vue index 7ecb4c4..90e55f9 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -153,8 +153,8 @@ }) // #ifdef H5 - vdata.formData.username = '17792050546' - vdata.formData.pwd = 'qwer1234' + vdata.formData.username = '' + vdata.formData.pwd = '' // #endif // #ifdef MP-WEIXIN // vdata.formData.username = '15699991111' diff --git a/vite.config.js b/vite.config.js index ca16807..fac8e0c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -9,7 +9,7 @@ export default defineConfig({ proxy: { '/api': { // target: 'https://cashier.sxczgkj.com', // 目标服务器地址 - target: 'http://192.168.1.31/', // 目标服务器地址 + target: 'http://192.168.1.42/', // 目标服务器地址 changeOrigin: true, // 是否更改请求源 rewrite: path => path.replace(/^\/api/, '') }