shish 4 bulan lalu
induk
melakukan
09d39cdc0a
2 mengubah file dengan 2 tambahan dan 90 penghapusan
  1. 0 49
      hdApp/src/admin/home/mall.vue
  2. 2 41
      hdApp/src/admin/home/workbench.vue

+ 0 - 49
hdApp/src/admin/home/mall.vue

@@ -521,55 +521,6 @@ export default {
 				}
 				}
 			})
 			})
 		},
 		},
-    goMore(){
-      let that = this
-      let shopkeeper = this.loginInfo.staff && this.loginInfo.staff.founder == 2 //判断店主(老板)
-      let items = shopkeeper ? ['已删除商家', '改进建议', '开关商城', '想要这样的商城', '修改密码', '退出登录'] : ['已删除商家', '我已离职', '开关商城', '想要这样的商城', '修改密码', '退出登录'];
-      uni.showActionSheet({
-        itemList: items,
-        success: function (res) {
-          if(res.tapIndex == 0){
-            that.$util.pageTo({url: '/pagesPurchase/pb'})
-          }
-          if(res.tapIndex == 1){
-            if(shopkeeper){
-              // 店主显示改进建议
-              that.suggest()
-            }else{
-              // 员工显示离职
-              that.$util.pageTo({url: '/admin/staff/dimission'})
-            }
-          }
-          if(res.tapIndex == 2){
-            that.$util.pageTo({url:'/pagesPurchase/open'})
-          }
-          if(res.tapIndex == 3){
-            that.openPfShop()
-          }
-          if(res.tapIndex == 4){
-            that.$util.pageTo({url:'/admin/shop/password'})
-          }
-          if(res.tapIndex == 5){
-            that.$util.confirmModal({content:'确认退出?'},() => {
-              // #ifdef APP-PLUS
-              uni.clearStorage()
-              that.$store.commit("setLoginInfo", {})
-              plus.runtime.restart()
-              // #endif
-              // #ifdef MP-WEIXIN
-              clearLogin().then(res=>{
-                if(res.code == 1){
-                  uni.clearStorage()
-                  that.$store.commit("setLoginInfo", {})
-                  uni.reLaunch({url:'/admin/home/workbench'})
-                }
-              })
-              // #endif
-            })
-          }
-        }
-      });
-    },
     openPfShop(){
     openPfShop(){
       this.pageTo({url: '/pagesPurchase/contact'})
       this.pageTo({url: '/pagesPurchase/contact'})
     },
     },

+ 2 - 41
hdApp/src/admin/home/workbench.vue

@@ -39,18 +39,6 @@
             </view>
             </view>
   
   
             <view class="function-grid function-grid--overlay" style="padding: 25upx 0upx 30upx 0upx; display: flex; justify-content: space-around; gap: 12upx;">
             <view class="function-grid function-grid--overlay" style="padding: 25upx 0upx 30upx 0upx; display: flex; justify-content: space-around; gap: 12upx;">
-              <view class="function-item function-item--overlay" style="flex: 1; text-align: center; border: 1upx solid rgba(255,255,255,0.5); border-radius: 16upx; padding: 15upx 0;" @click="pageTo({url:'/admin/shop/myShop'})">
-                <view class="function-icon" style="font-size: 38upx; margin-bottom: 8upx;">
-                  🏪
-                </view>
-                <text class="function-text function-text--overlay" style="font-size: 22upx;">店铺管理</text>
-              </view>
-              <view class="function-item function-item--overlay" style="flex: 1; text-align: center; border: 1upx solid rgba(255,255,255,0.5); border-radius: 16upx; padding: 15upx 0;" @click="pageTo({url:'/admin/staff/list'})">
-                <view class="function-icon" style="font-size: 38upx; margin-bottom: 8upx;">
-                  👥
-                </view>
-                <text class="function-text function-text--overlay" style="font-size: 22upx;">我的员工</text>
-              </view>
               <view class="function-item function-item--overlay" style="flex: 1; text-align: center; border: 1upx solid rgba(255,255,255,0.5); border-radius: 16upx; padding: 15upx 0;" @click="pageTo({url:'/admin/shop/add?id='+loginInfo.shopId})">
               <view class="function-item function-item--overlay" style="flex: 1; text-align: center; border: 1upx solid rgba(255,255,255,0.5); border-radius: 16upx; padding: 15upx 0;" @click="pageTo({url:'/admin/shop/add?id='+loginInfo.shopId})">
                 <view class="function-icon" style="font-size: 38upx; margin-bottom: 8upx;">
                 <view class="function-icon" style="font-size: 38upx; margin-bottom: 8upx;">
                   📍
                   📍
@@ -170,7 +158,7 @@
             </view>
             </view>
           </template>
           </template>
           <block v-else>
           <block v-else>
-            <view style="margin:60upx auto 40upx auto;font-weight:bold;font-size:36upx;text-align: center;">暂无供货商</view>
+            <view style="margin:60upx auto 40upx auto;font-weight:bold;font-size:36upx;text-align: center;">暂无批发店</view>
           </block>
           </block>
   
   
           <view style="text-align:center;margin-top:50upx;margin-bottom:50upx;color:#827171;font-size:30upx;">
           <view style="text-align:center;margin-top:50upx;margin-bottom:50upx;color:#827171;font-size:30upx;">
@@ -538,7 +526,7 @@
       goMore(){
       goMore(){
         let that = this
         let that = this
         let shopkeeper = this.loginInfo.staff && this.loginInfo.staff.founder == 2 //判断店主(老板)
         let shopkeeper = this.loginInfo.staff && this.loginInfo.staff.founder == 2 //判断店主(老板)
-        let items = shopkeeper ? ['已删除商家', '改进建议', '开关商城', '想要这样的商城', '修改密码', '退出登录'] : ['已删除商家', '我已离职', '开关商城', '想要这样的商城', '修改密码', '退出登录'];
+        let items = shopkeeper ? ['已删除商家', '改进建议'] : ['已删除商家', '我已离职'];
         uni.showActionSheet({
         uni.showActionSheet({
           itemList: items,
           itemList: items,
           success: function (res) {
           success: function (res) {
@@ -554,33 +542,6 @@
                 that.$util.pageTo({url: '/admin/staff/dimission'})
                 that.$util.pageTo({url: '/admin/staff/dimission'})
               }
               }
             }
             }
-            if(res.tapIndex == 2){
-              that.$util.pageTo({url:'/pagesPurchase/open'})
-            }
-            if(res.tapIndex == 3){
-              that.openPfShop()
-            }
-            if(res.tapIndex == 4){
-              that.$util.pageTo({url:'/admin/shop/password'})
-            }
-            if(res.tapIndex == 5){
-              that.$util.confirmModal({content:'确认退出?'},() => {
-                // #ifdef APP-PLUS
-                uni.clearStorage()
-                that.$store.commit("setLoginInfo", {})
-                plus.runtime.restart()
-                // #endif
-                // #ifdef MP-WEIXIN
-                clearLogin().then(res=>{
-                  if(res.code == 1){
-                    uni.clearStorage()
-                    that.$store.commit("setLoginInfo", {})
-                    uni.reLaunch({url:'/admin/home/workbench'})
-                  }
-                })
-                // #endif
-              })
-            }
           }
           }
         });
         });
       },
       },