diff --git a/Utils/groupBuying.js b/Utils/groupBuying.js new file mode 100644 index 0000000..1ed79fc --- /dev/null +++ b/Utils/groupBuying.js @@ -0,0 +1,45 @@ +import { + POST +} from './Request.js'; +let app = getApp(); +let base = app.globalData.url; + + +//新增门店图片 +export const insertStoreImg = params => { + return POST('POST', `${base}/storeImg/insertStoreImg`, params).then(res => res.data); +} + +//查询门店图片列表 +export const getBsStoreImgByList = params => { + return POST('GET', `${base}/storeImg/getBsStoreImgByList`, params).then(res => res.data); +} + +//删除门店图片 +export const deleteStoreImg = params => { + return POST('GET', `${base}/storeImg/deleteStoreImg`, params).then(res => res.data); +} + +//根据id查询门店图片详情 +export const getStoreImgById = params => { + return POST('GET', `${base}/storeImg/getStoreImgById`, params).then(res => res.data); +} + +//新增门店产品 +export const insertStoreProduct = params => { + return POST('POST', `${base}/storeProduct/insertStoreProduct`, params).then(res => res.data); +} +//编辑门店产品 +export const editStoreProduct = params => { + return POST('POST', `${base}/storeProduct/editStoreProduct`, params).then(res => res.data); +} + +//门店产品列表 +export const getStoreProductByList = params => { + return POST('GET', `${base}/storeProduct/getStoreProductByList`, params).then(res => res.data); +} + +//查询门店产品详情 +export const getStoreProductById = params => { + return POST('GET', `${base}/storeProduct/getStoreProductById`, params).then(res => res.data); +} \ No newline at end of file diff --git a/components/next-bubble-menu/next-bubble-menu.vue b/components/next-bubble-menu/next-bubble-menu.vue new file mode 100644 index 0000000..a2e5d41 --- /dev/null +++ b/components/next-bubble-menu/next-bubble-menu.vue @@ -0,0 +1,298 @@ + + + + + \ No newline at end of file diff --git a/pages.json b/pages.json index 1fa1d98..becba73 100644 --- a/pages.json +++ b/pages.json @@ -528,9 +528,68 @@ } ], "subpackages": [{ - "root": "subPages", - - "pages": [] + "root": "subpackages", + "pages": [ + { + "path":"groupBuyingConfiguration/groupBuyingConfiguration", + "style": { + "navigationBarTitleText": "团购配置", + "enablePullDownRefresh": false, + "app-plus": { + "titleNView": false, //禁用原生导航栏 + "softinputNavBar": "none" + } + } + }, + { + "path":"groupBuyingConfiguration/storeImg/storeImg", + "style": { + "navigationBarTitleText": "门店图片", + "enablePullDownRefresh": false, + "app-plus": { + "titleNView": false, //禁用原生导航栏 + "softinputNavBar": "none" + } + } + + }, + { + "path":"groupBuyingConfiguration/storeImg/storeImgAdd", + "style": { + "navigationBarTitleText": "添加图片", + "enablePullDownRefresh": false, + "app-plus": { + "titleNView": false, //禁用原生导航栏 + "softinputNavBar": "none" + } + } + + }, + { + + "path":"groupBuyingConfiguration/storeProduct/storeProduct", + "style": { + "navigationBarTitleText": "门店产品", + "enablePullDownRefresh": false, + "app-plus": { + "titleNView": false, //禁用原生导航栏 + "softinputNavBar": "none" + } + } + }, + { + "path":"groupBuyingConfiguration/storeProduct/storeProductAdd", + "style": { + "enablePullDownRefresh": false, + "app-plus": { + "titleNView": false, //禁用原生导航栏 + "softinputNavBar": "none" + } + } + } + + + ] }], "globalStyle": { "navigationBarTextStyle": "black", diff --git a/pages/index/merchant-details/merchant-details.vue b/pages/index/merchant-details/merchant-details.vue index 0047a1b..eec0d5a 100644 --- a/pages/index/merchant-details/merchant-details.vue +++ b/pages/index/merchant-details/merchant-details.vue @@ -93,6 +93,7 @@ + @@ -257,6 +258,12 @@ url: '/pages/index/mineService/mineService?id=6' + '&storeid=' + item }) }, + //跳转团购配置 + jumpGroupService(id){ + uni.navigateTo({ + url:"/subpackages/groupBuyingConfiguration/groupBuyingConfiguration?storeId="+id + }) + }, //更换结算信息 updateFigMerBasis() { uni.navigateTo({ diff --git a/subpackages/groupBuyingConfiguration/groupBuyingConfiguration.vue b/subpackages/groupBuyingConfiguration/groupBuyingConfiguration.vue new file mode 100644 index 0000000..07b126b --- /dev/null +++ b/subpackages/groupBuyingConfiguration/groupBuyingConfiguration.vue @@ -0,0 +1,69 @@ + + + + + \ No newline at end of file diff --git a/subpackages/groupBuyingConfiguration/storeImg/storeImg.vue b/subpackages/groupBuyingConfiguration/storeImg/storeImg.vue new file mode 100644 index 0000000..c2f89fc --- /dev/null +++ b/subpackages/groupBuyingConfiguration/storeImg/storeImg.vue @@ -0,0 +1,291 @@ + + + + + \ No newline at end of file diff --git a/subpackages/groupBuyingConfiguration/storeImg/storeImgAdd.vue b/subpackages/groupBuyingConfiguration/storeImg/storeImgAdd.vue new file mode 100644 index 0000000..63974af --- /dev/null +++ b/subpackages/groupBuyingConfiguration/storeImg/storeImgAdd.vue @@ -0,0 +1,334 @@ + + + + + \ No newline at end of file diff --git a/subpackages/groupBuyingConfiguration/storeProduct/storeProduct.vue b/subpackages/groupBuyingConfiguration/storeProduct/storeProduct.vue new file mode 100644 index 0000000..bb468d6 --- /dev/null +++ b/subpackages/groupBuyingConfiguration/storeProduct/storeProduct.vue @@ -0,0 +1,268 @@ + + + + + \ No newline at end of file diff --git a/subpackages/groupBuyingConfiguration/storeProduct/storeProductAdd.vue b/subpackages/groupBuyingConfiguration/storeProduct/storeProductAdd.vue new file mode 100644 index 0000000..bf9b860 --- /dev/null +++ b/subpackages/groupBuyingConfiguration/storeProduct/storeProductAdd.vue @@ -0,0 +1,389 @@ + + + + + \ No newline at end of file diff --git a/uni.scss b/uni.scss index a2671eb..45d3b6c 100644 --- a/uni.scss +++ b/uni.scss @@ -786,4 +786,27 @@ $uni-font-size-paragraph:30upx; .iconw40{ width: 40px; +} + +//容器 +.all-container{ + width: 100%; + min-height: calc(100vh - var(--window-top)); + box-sizing: border-box; +} +.pd-main{ + padding: 20rpx; +} +.dis-flex{ + display: flex; + align-items: center; +} +.flex-sp{ + justify-content: space-between; +} +.flex-1{ + flex: 1; +} +.flex-s0{ + flex-shrink: 0; } \ No newline at end of file