From 49b4ed0f28bcc893dcb419b1939bd8f161110dc7 Mon Sep 17 00:00:00 2001
From: tianyi <13521030702@163.com>
Date: Fri, 27 Mar 2026 10:43:19 +0800
Subject: [PATCH 1/6] 11
---
package1/myCenter/addGoods.vue | 4 +-
package1/myCenter/goodsList.vue | 132 +++++++++++++++++++++++++++-----
2 files changed, 116 insertions(+), 20 deletions(-)
diff --git a/package1/myCenter/addGoods.vue b/package1/myCenter/addGoods.vue
index 0f64bc9..16bf023 100644
--- a/package1/myCenter/addGoods.vue
+++ b/package1/myCenter/addGoods.vue
@@ -46,9 +46,9 @@
-
+
diff --git a/package1/myCenter/goodsList.vue b/package1/myCenter/goodsList.vue
index 447ab1d..1cfa4a7 100644
--- a/package1/myCenter/goodsList.vue
+++ b/package1/myCenter/goodsList.vue
@@ -50,24 +50,24 @@
-
+
编辑
-
+
- 设为推荐
+ {{item.isPush == 0?'设为推荐':'取消推荐'}}
-
+
- 设为必点
+ {{item.isMust == 0?'设为必点':'取消必点'}}
-
+
- 上架
+ {{item.delFlag == 1?'下架':'上架'}}
-
+
删除
@@ -103,20 +103,24 @@
-
+
编辑
-
- 设为推荐
+
+
+ {{item.isPush == 0?'设为推荐':'取消推荐'}}
-
- 设为必点
+
+
+ {{item.isMust == 0?'设为必点':'取消必点'}}
-
- 上架
+
+
+ {{item.delFlag == 1?'下架':'上架'}}
-
+
+
删除
@@ -190,9 +194,101 @@
console.log("1111",type)
if(type == 'shopList'){
this.shopList[index].isShow = !this.shopList[index].isShow
+ console.log(this.shopList[index])
}else{
this.shopList1[index].isShow = !this.shopList1[index].isShow
+ console.log(this.shopList1[index])
}
+ this.$forceUpdate()
+ },
+ isPush(type,index,item,value) {
+ this.tui.request("/app/product/isPush", "POST", {
+ id: item.id,
+ isPush:value
+ }, false, true).then((res) => {
+ if (res.code == 200) {
+ if(type == 'shopList'){
+ this.shopList[index].isPush = value
+ }else{
+ this.shopList1[index].isPush = value
+ }
+ this.tui.toast('设置成功')
+ } else {
+ this.tui.toast(res.message)
+ }
+ }).catch((res) => {})
+ },
+ remove(v) {
+ let that = this;
+ uni.showModal({
+ title: '提示',
+ content: '确定要删除该商品吗?',
+ success: function (res) {
+ if (res.confirm) {
+ that.tui.request("/app/product/delById", "POST", {
+ id: v.id
+ }, false, true).then((res) => {
+ if (res.code == 200) {
+ that.getShareList()
+ that.tui.toast('删除成功')
+ } else {
+ that.tui.toast(res.message)
+ }
+ }).catch((res) => {})
+ }
+ }
+ });
+ },
+ isMust(type,index,item,value) {
+ this.tui.request("/app/product/isMust", "POST", {
+ id: item.id,
+ isMust:value
+ }, false, true).then((res) => {
+ if (res.code == 200) {
+ if(type == 'shopList'){
+ this.shopList[index].isMust = value
+ }else{
+ this.shopList1[index].isMust = value
+ }
+ this.tui.toast('设置成功')
+ } else {
+ this.tui.toast(res.message)
+ }
+ }).catch((res) => {})
+ },
+ upDown(type,index,item,value) {
+ if(value == 0){
+ this.tui.request("/app/product/down", "POST", {
+ id: item.id
+ }, false, true).then((res) => {
+ if (res.code == 200) {
+ if(type == 'shopList'){
+ this.shopList[index].delFlag = value
+ }else{
+ this.shopList1[index].delFlag = value
+ }
+ this.tui.toast('设置成功')
+ } else {
+ this.tui.toast(res.message)
+ }
+ }).catch((res) => {})
+ }else{
+ this.tui.request("/app/product/up", "POST", {
+ id: item.id
+ }, false, true).then((res) => {
+ if (res.code == 200) {
+ if(type == 'shopList'){
+ this.shopList[index].delFlag = value
+ }else{
+ this.shopList1[index].delFlag = value
+ }
+ this.tui.toast('设置成功')
+ } else {
+ this.tui.toast(res.message)
+ }
+ }).catch((res) => {})
+ }
+
},
goDetail(type,item){
let url=""
@@ -237,7 +333,7 @@
this.shopList1 = [...this.shopList1, ...res.result.records]
}
for(let i=0;i
Date: Fri, 27 Mar 2026 11:46:54 +0800
Subject: [PATCH 2/6] 11
---
package1/myCenter/merchantCenter.vue | 80 ++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
create mode 100644 package1/myCenter/merchantCenter.vue
diff --git a/package1/myCenter/merchantCenter.vue b/package1/myCenter/merchantCenter.vue
new file mode 100644
index 0000000..7bb3ed9
--- /dev/null
+++ b/package1/myCenter/merchantCenter.vue
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+
+
+ 商家中心
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From 10fd6ee9339734ecd815c2d7a37b2557faac3fde Mon Sep 17 00:00:00 2001
From: tianyi <13521030702@163.com>
Date: Fri, 27 Mar 2026 11:47:05 +0800
Subject: [PATCH 3/6] 11
---
pages.json | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/pages.json b/pages.json
index 10aa3cd..f7c6547 100644
--- a/pages.json
+++ b/pages.json
@@ -202,6 +202,12 @@
"navigationBarTitleText": "新增分类",
"navigationStyle": "custom"
}
+ },{
+ "path": "myCenter/merchantCenter",
+ "style": {
+ "navigationBarTitleText": "商家中心",
+ "navigationStyle": "custom"
+ }
},{
"path": "myCenter/goodsList",
"style": {
From 990e9a12a39d72979aefc6d34a1d97698a50cb5d Mon Sep 17 00:00:00 2001
From: tianyi <13521030702@163.com>
Date: Fri, 27 Mar 2026 15:18:33 +0800
Subject: [PATCH 4/6] 11
---
package1/group/shopEvaluate.vue | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package1/group/shopEvaluate.vue b/package1/group/shopEvaluate.vue
index 50a8293..359abb0 100644
--- a/package1/group/shopEvaluate.vue
+++ b/package1/group/shopEvaluate.vue
@@ -50,6 +50,12 @@
+
+ 商品
+
+
+
+
{{item.remark}}
From 2d371907f340899736f967a1febe17162ba08e89 Mon Sep 17 00:00:00 2001
From: tianyi <13521030702@163.com>
Date: Fri, 27 Mar 2026 15:18:41 +0800
Subject: [PATCH 5/6] 11
---
package1/myCenter/merchantCenter.vue | 291 ++++++++++++++++++++++++++-
1 file changed, 282 insertions(+), 9 deletions(-)
diff --git a/package1/myCenter/merchantCenter.vue b/package1/myCenter/merchantCenter.vue
index 7bb3ed9..a6e6b4c 100644
--- a/package1/myCenter/merchantCenter.vue
+++ b/package1/myCenter/merchantCenter.vue
@@ -10,7 +10,163 @@
-
+
+
+
+
+
+
+ 老王的店
+
+
+ 暂停营业
+
+
+
+
+
+
+ 待办事项
+
+
+
+
+
+ 0
+
+
+ 待接单
+
+
+
+
+ 0
+
+
+ 待发货
+
+
+
+
+ 0
+
+
+ 待商家送达
+
+
+
+
+
+
+ 0
+
+
+ 待顾客自取
+
+
+
+
+ 0
+
+
+ 待退款/售后
+
+
+
+
+ 0
+
+
+ 待回复差评
+
+
+
+
+
+
+
+
+ 今日实时数据
+
+
+ 更多
+
+
+
+
+
+
+ 0
+
+
+ 今日订单
+
+
+
+
+ 0
+
+
+ 营业额
+
+
+
+
+
+
+ 必备工具
+
+
+
@@ -22,12 +178,36 @@
}
},
onShow() {
-
+ this.menuButtonInfo = uni.getMenuButtonBoundingClientRect()
},
onLoad(option) {
-
+
},
methods: {
+ goDetail(type) {
+ let url = ''
+ switch (type) {
+ case 'sp':
+ url = '/package1/myCenter/goodsList'
+ break;
+ case 'dp':
+ url = ''
+ break;
+ case 'dd':
+ url = ''
+ break;
+ case 'zd':
+ url = ''
+ break;
+ case 'pj':
+ url = '/package1/group/shopEvaluate'
+ break;
+ default:
+ }
+ uni.navigateTo({
+ url: url
+ })
+ },
back() {
uni.navigateBack()
},
@@ -43,33 +223,33 @@
background: #F5F8F5;
color: #00231C;
}
-
+
.page1 {
width: 100%;
height: 100%;
font-size: 24rpx;
position: relative;
}
-
+
.title {
background: url('https://jewel-shop.oss-cn-beijing.aliyuncs.com/8bc15960c2dc40268e295d6dd23aecce.png') no-repeat;
width: 100%;
- height: 54%;
+ height: 20%;
}
-
+
.title-sreach {
width: 100%;
display: flex;
height: 200rpx;
position: relative;
}
-
+
.back-btn {
position: absolute;
bottom: 0;
left: 0;
}
-
+
.title-name {
padding-top: 55px;
font-size: 36rpx;
@@ -77,4 +257,97 @@
flex: 1;
text-align: center;
}
+
+ .shop-title {
+ width: 95%;
+ margin: -65px auto 0;
+ padding: 10px;
+ background: #fff;
+ border-radius: 10px;
+ display: flex;
+ font-size: 14px;
+ font-weight: 700;
+ }
+
+ .title1 {
+ width: 35px;
+ height: 35px;
+
+ img {
+ width: 100%;
+ height: 100%;
+ border-radius: 5px;
+ }
+ }
+ .title2{
+ flex: 1;
+ line-height: 35px;
+ display: flex;
+ }
+ .title22{
+ flex: 1;
+ padding-left: 10px;
+ }
+ .shop-order{
+ width: 95%;
+ margin: 10px auto 0;
+ background: #fff;
+ border-radius: 10px;
+ padding: 0 10px 0;
+ }
+ .order1{
+ height: 35px;
+ line-height: 35px;
+ font-size: 14px;
+ font-weight: 700;
+ border-bottom: 1px solid #eee;
+ }
+ .order22{
+ display: flex;
+ height: 50px;
+ padding-top: 10px;
+ }
+ .order33{
+ flex: 1;
+ text-align: center;
+ }
+ .order44{
+ font-size: 14px;
+ font-weight: 700;
+ }
+ .data2{
+ display: flex;
+ height: 70px;
+ text-align: center;
+ padding-top: 10px;
+ }
+ .data22{
+ flex: 1;
+ }
+ .data222{
+ font-size: 18px;
+ font-weight: 700;
+ padding-bottom: 10px;
+ }
+ .menu2{
+ display: flex;
+ flex-wrap: wrap;
+ text-align: center;
+ padding-top: 10px;
+ }
+ .menu22{
+ width: 25%;
+ height: 60px;
+ }
+ .menu33{
+ img{
+ width: 25px;
+ height: 25px;
+ background-size: 100%;
+ }
+ }
+ .menu44{
+ height: 20px;
+ line-height: 20px;
+ }
\ No newline at end of file
From 5fdc0f997221df609bf8df2444e9a7225414533f Mon Sep 17 00:00:00 2001
From: tianyi <13521030702@163.com>
Date: Fri, 27 Mar 2026 15:18:48 +0800
Subject: [PATCH 6/6] 11
---
components/tab-bar/myCenter.vue | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/components/tab-bar/myCenter.vue b/components/tab-bar/myCenter.vue
index 4804f46..ecad922 100644
--- a/components/tab-bar/myCenter.vue
+++ b/components/tab-bar/myCenter.vue
@@ -1,10 +1,8 @@
22222222
- 新增商品
- 新增分类
- 商品列表
商家入驻
+ 商家中心
兼职注册
@@ -39,6 +37,8 @@
let url = ""
if(e=='addgoods'){
url = '/package1/myCenter/addGoods'
+ }else if(e=='merchantCenter'){
+ url = '/package1/myCenter/merchantCenter'
}else if(e=='addType'){
url = '/package1/myCenter/addType'
}else if(e=='goodsList'){