<template>
  <div class="g_bg_page g_pl_10 g_pr_10">
    <div class="g_h_10"></div>
    <div class="r_box g_text_c" style="padding:48px 0 40px;">
      <div>
        <i class="icon-time-circle-fill iconfont g_c_10a" style="font-size: 84px"></i>
      </div>
      <div class="g_mt_20 g_fs_18">已提交申请</div>
    </div>
    <div class="r_box g_text_c g_h_56 g_mt_10 g_flex_row_between flex_center g_fs_16 g_pl_10 g_pr_10">
      <div class="g_fw_600">我的团队</div>
      <div class="g_c_9">{{ agencyInfo.fullName || agencyInfo.userName }}{{agencyNum > 0 ? `（${agencyNum}人）`:''}}</div>
    </div>
    <div class="r_box g_pl_10 g_pr_10 g_mt_10 g_pb_40">
      <div class="g_text_c g_fs_18 g_fw_600 g_pt_12 g_pb_12" style="border-bottom: 1rpx dotted #eee">添加团队成员</div>
      <div class="g_pt_12 g_c_3 g_fs_14">
        <p class="g_mb_10 g_fw_600">为什么要添加成员到团队?</p>
        <div class="g_pl_20 g_c_6">
          <p>1.发单号是以团队为单位进行发单和关注的。</p>
          <p>2.创建人关注发单号后，内部成员均可报名。</p>
          <p>3.团队成员无需再次关注，共享报名权限。</p>
          <p>4.系统自动完成团队内部数据汇总与统计。</p>
        </div>
      </div>
      <div class="g_mt_40 g_flex_row_center">
        <div class="g_w_160">
          <g-button btnText="去添加" size="auto" type="primary" @clickBtn="goPage('/root/person/teamManage')"></g-button>
          <!-- <g-button btnText="手动添加" size="auto" @clickBtn="goPage('/root/person/addOrUpdataMember')"></g-button> -->
        </div>
           <div class="g_w_160 g_ml_12">
          <g-button btnText="回首页" size="auto" type="default" @clickBtn="goHome('/pages/home/index')"></g-button>
          <!-- <g-button btnText="手动添加" size="auto" @clickBtn="goPage('/root/person/addOrUpdataMember')"></g-button> -->
        </div>
        <!-- <div class="g_w_120">
					<g-button btnText="微信邀请" size="auto" type="primary" class="" @clickBtn="goPage('/root/person/memberApplyQRCode')"></g-button>
        </div>-->
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      ing: false,
      agencyNum: 0,
      agencyInfo: uni.getStorageSync('agencyInfo'),
    }
  },
  onLoad(options) {
    console.log(options)
    this.getNum()
  },
  created() {},

  methods: {
    getNum() {
      let that = this
      this.G.Get(this.api.bind_getAgencyCorpUsersNum, '', (res) => {
        console.log('res', res)
        that.agencyNum = res
      })
    },
    goPage(url) {
      uni.navigateTo({
        url,
      })
    },
    goHome(url){
      uni.switchTab({
        url
      });
    }
  },
}
</script>

<style></style>
