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 @@
-
-
-
-
-
+
+
+
+ {{value1.length}}/{{maxLength}}
+
+
+
+
+
+
+ 上传时应注重真实性、清晰度
+
+
+
+
+
+
+ 上传图片
+
+
+
-
-
-
-
-
-
-
-
-
- 元
-
-
-
-
+
+
+
+
+
+
+
+ {{formData.attrValue[0].unit_name ||'请选择'}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+ 取消
+
+
+
+ 计量单位
+ 确定
+
+
+
+
+
+
+ {{item}}
+
+
+ 自定义
+
+
+
+
+
+
+
+
+
+
+
@@ -46,36 +106,79 @@
-
\ 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 @@
+
+
+
+ {{value1.length}}/{{maxLength}}
+
+
+
+
-
-
-
-
+
+ 上传时应注重真实性、清晰度
-
-
-
- 上传时应注重真实性、清晰度
+
+
+
+
+
+ 上传图片
+
-
-
-
-
+
-
-
-
- 请上传突出商品卖点细节图片
+
+ 上传时应注重真实性、清晰度
+
+
+
+
+
+
+ 上传图片
+
-
-
-
-
+
- 商品图片上传时应注重真实性、清晰度和美观性,在平台上的展示效果至关重要。确保商品能够得到有效的展示和推广。
+ 商品类目属性
-
-
+
+
+ @click="navgo(`/pages/product/addGoodDetail/goodsType?mer_id=${mer_id}`)">
请选择
@@ -47,28 +60,31 @@
-
+
规格与价格
-
-
+
+
- 请设置
+ 去设置
-
+
服务与承诺
-
-
-
+
+
+ {{value1.length}}/{{maxLength}}
-
-
+
+
+
+
-
-
+
+
+
+
+
+
+
+ 温馨提示
+
+
+ 发布中断可能导致商机流失
+
+
+
+ 您的商品信息已经填写了大半,
+
+
+ 只差最后几步就能上架销售了!
+
+
+
+
+ 越早发布产品曝光量越高
+
+
+ 越早发布产品可提前 抢占商机
+
+
+
+
+
+
+
+
+
+
+
+
@@ -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 @@
-
-
+
+
+
- 规格1
-
+ 规格1
+
@@ -18,28 +19,28 @@
-
+
- 商品库存
-
+ 商品库存
+
-
+
- 条形码
-
+ 条形码
+
-
+
-
+
删除
-
- 启用
+
+ 启用
@@ -72,7 +73,9 @@
min-height: 100vh;
position: relative;
font-size: 28rpx;
- font-family: PingFangFamily;
+ font-family: PingFangRegular;
+ /* font-family: PingFangFamily; */
+
.card {
margin-top: 30rpx;
diff --git a/pages/product/addGoodDetail/goodsSearch.vue b/pages/product/addGoodDetail/goodsSearch.vue
index 5eaf17c..31f2a7e 100644
--- a/pages/product/addGoodDetail/goodsSearch.vue
+++ b/pages/product/addGoodDetail/goodsSearch.vue
@@ -1,7 +1,8 @@
-
+
@@ -33,44 +34,76 @@
热门分类
-
- 地方大
-
-
- 地方撒
-
-
- 地方撒旦
-
-
- 地方撒大苏
-
-
- 地方
-
-
- 地方撒大苏
+
+ {{item.label}}
+
-
- 元神--启动!!
-
+
+
+ {{item.label}}
+
+
+
+ 暂无搜索结果,点击 手动选择
+
+
@@ -90,7 +123,7 @@
min-height: 100vh;
position: relative;
font-size: 28rpx;
- font-family: PingFangFamily;
+ font-family: PingFangRegular;
.types {
display: flex;
diff --git a/pages/product/addGoodDetail/goodsType.vue b/pages/product/addGoodDetail/goodsType.vue
index e372cd4..bdb77e5 100644
--- a/pages/product/addGoodDetail/goodsType.vue
+++ b/pages/product/addGoodDetail/goodsType.vue
@@ -1,43 +1,93 @@
-
-
-
-
- 常用分类
-
+
+
+ 当前已选
+ 生鲜--水果阿萨
-
-
-
-
-
-
- 可能在找
-
-
-
- 可能在找
+
+
+
+
+ {{item.label}}
+
+
+
+
+
+
+ 可能在找
+
+
+
+ {{item.label}}
+
+
+
+
+
+
+
+
@@ -50,7 +100,7 @@
background-color: white;
min-height: 100vh;
position: relative;
- font-family: PingFangFamily;
+ font-family: PingFangRegular;
.lines {
height: 38rpx;
@@ -90,10 +140,11 @@
.right-content {
display: flex;
- justify-content: space-around;
+ /* justify-content: space-around; */
flex-wrap: wrap;
.right-content-li {
+ margin-right: 20rpx;
color: #444444;
font-size: 28rpx;
border-radius: 16rpx 16rpx 16rpx 16rpx;