zhaoxiaoqiang
2023-04-14 a5604d778ca31451a95d8dabdf94f7ebc78e5c55
src/views/mine/stores/stores.vue
@@ -24,7 +24,7 @@
      </van-list>
    </div>
    <van-button class="btn" @click="$router.push(`/mine/stores-add?merId=${merId}`)">
    <van-button class="btn" @click="$router.push(`/mine/stores-add?merId=${merId}`)" v-if='isShowAdd'>
      <div class="inner">
        <van-icon name="plus" />
        <span class="text">新增</span>
@@ -46,14 +46,19 @@
      finished: false,
      storeId: '',
      merId: '',
      merIdType:''//区分当前是商户进入当前页面或者门店进入当前页面
    }
  },
  computed: {
    ...mapState(['userinfo']),
    ...mapGetters(["orgType"]),
    isShowAdd(){
      return (this.orgType==1&&this.merIdType)||this.orgType==3;
    }
  },
  created() {
    this.merId = this.$route.query.merId ? this.$route.query.merId : this.userinfo.orgId;
    this.merIdType = this.$route.query.merId;
    this.init();
  },
  methods: {