From 336c7078bba733d1c29d0110a847c1fdb7a88e18 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Fri, 19 Apr 2024 18:08:04 +0800 Subject: [PATCH] add --- api/product.js | 20 + pages.json | 2 +- pages/product/addGood/addGood.vue | 378 ++++++++++++++---- pages/product/addGoodDetail/addGoodDetail.vue | 338 ++++++++++++---- pages/product/addGoodDetail/goodsPrice.vue | 33 +- pages/product/addGoodDetail/goodsSearch.vue | 79 ++-- pages/product/addGoodDetail/goodsType.vue | 91 ++++- 7 files changed, 730 insertions(+), 211 deletions(-) diff --git a/api/product.js b/api/product.js index 847fb7e..9e64319 100644 --- a/api/product.js +++ b/api/product.js @@ -147,6 +147,26 @@ export function categoryList(merId) { }) } +/* + 添加修改商品, 搜索上平 +*/ + +export function categorySearch(merId, data) { + return request.get(`server/${merId}/category/search`, data, { + login: true + }) +} +/* + 添加修改商品, 热门分类商品 +*/ + +export function categoryHotcate(merId, data) { + return request.get(`server/${merId}/category/hotcate`, data, { + login: true + }) +} + + /* 商品管理, 添加商品 */ diff --git a/pages.json b/pages.json index d16b92c..d254eb5 100644 --- a/pages.json +++ b/pages.json @@ -1574,7 +1574,7 @@ { "path": "addGoodDetail/goodsSearch", "style": { - "navigationBarTitleText": "", + "navigationBarTitleText": "商品分类", "enablePullDownRefresh": false } } diff --git a/pages/product/addGood/addGood.vue b/pages/product/addGood/addGood.vue index 71adcb2..796a2af 100644 --- a/pages/product/addGood/addGood.vue +++ b/pages/product/addGood/addGood.vue @@ -1,43 +1,103 @@ - \ No newline at end of file diff --git a/pages/product/addGoodDetail/addGoodDetail.vue b/pages/product/addGoodDetail/addGoodDetail.vue index cb99bb3..6e2a3f8 100644 --- a/pages/product/addGoodDetail/addGoodDetail.vue +++ b/pages/product/addGoodDetail/addGoodDetail.vue @@ -1,40 +1,53 @@ @@ -168,44 +334,66 @@ background-color: #F1F1F1; box-sizing: border-box; padding-bottom: 280rpx; - font-family: PingFangFamily; + font-family: PingFangRegular; + padding: 20rpx 20rpx 200rpx 20rpx; - .good-baseInfo { + .card { background-color: white; - padding: 30rpx 30rpx 10rpx 30rpx; - - } - - .tips { - color: #E18C34; - font-size: 24rpx; - background-color: #FFF1E9; - padding: 26rpx 30rpx; + padding: 28rpx 30rpx; + border-radius: 12rpx; margin-bottom: 30rpx; } - .label-cls { - background-color: white; - padding: 8rpx 30rpx; + .uploadimg { + width: 140rpx; + height: 140rpx; + border-radius: 16rpx; + border: 2rpx solid #F1F1F1; + display: flex; + flex-direction: column; + justify-content: space-around; + align-items: center; + box-sizing: border-box; + padding: 20rpx 0; + } - .description { - background-color: #F1F1F1; - padding: 30rpx 26rpx; - font-size: 28rpx; + + + .tips { color: #777777; + font-size: 28rpx; + margin: 30rpx 0; } .submit-btn { position: fixed; - bottom: 86rpx; - width: 750rpx; - padding: 20rpx 30rpx; - background-color: white; - z-index: 10; - box-shadow: 0 0 0.2px rgba(0, 0, 0, 0.3); + bottom: 50rpx; + left: 50%; + transform: translate(-50%, 0); + width: 670rpx; + border-radius: 40rpx; + overflow: hidden; } + } + .overlay-content { + width: 570rpx; + height: 640rpx; + box-sizing: border-box; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + border-radius: 16rpx; + background-image: url('/static/images/addGodd/addGoodBg.png'); + background-size: 100% 100%; + background-repeat: no-repeat; + display: flex; + flex-direction: column; + justify-content: space-between; + align-items: center; + padding: 70rpx 0 40rpx 0; } \ No newline at end of file diff --git a/pages/product/addGoodDetail/goodsPrice.vue b/pages/product/addGoodDetail/goodsPrice.vue index 60e2a06..74d829f 100644 --- a/pages/product/addGoodDetail/goodsPrice.vue +++ b/pages/product/addGoodDetail/goodsPrice.vue @@ -1,11 +1,12 @@