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'){
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}}
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
+
+
+
+
+
+
+
+ 商家中心
+
+
+
+
+
+
+
+
+
+ 老王的店
+
+
+ 暂停营业
+
+
+
+
+
+
+ 待办事项
+
+
+
+
+
+ 0
+
+
+ 待接单
+
+
+
+
+ 0
+
+
+ 待发货
+
+
+
+
+ 0
+
+
+ 待商家送达
+
+
+
+
+
+
+ 0
+
+
+ 待顾客自取
+
+
+
+
+ 0
+
+
+ 待退款/售后
+
+
+
+
+ 0
+
+
+ 待回复差评
+
+
+
+
+
+
+
+
+ 今日实时数据
+
+
+ 更多
+
+
+
+
+
+
+ 0
+
+
+ 今日订单
+
+
+
+
+ 0
+
+
+ 营业额
+
+
+
+
+
+
+ 必备工具
+
+
+
+
+
+
+
+
+
\ No newline at end of file
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": {