quanwei
2 days ago 04102f7237efefa744090ed7c25f7b5d0807b679
mobile/pages2/team/index/index.vue
@@ -51,7 +51,8 @@
               </view>
            </view>
            <view class="d-c-c pt30">
               <button type="primary" class="btn-gcred flex-1" @click="gotoCash">{{ info_words.index.words.cash.value }}</button>
               <button type="primary" class="btn-gcred flex-1"
                  @click="gotoCash">{{ info_words.index.words.cash.value }}</button>
            </view>
         </view>
         <!--图标入口-->
@@ -64,7 +65,8 @@
            </view>
            <view class="d-c-c d-c flex-1" @click="gotoPage('pages2/team/order/order')">
               <view>
                  <image class="team_index_img" src="../../../static/icon/icon-fenxiaodingdan.png" mode=""></image>
                  <image class="team_index_img" src="../../../static/icon/icon-fenxiaodingdan.png" mode="">
                  </image>
               </view>
               <text class="pt10 f26 mt20">{{ info_words.order.title.value }}</text>
            </view>
@@ -86,16 +88,48 @@
      <template v-if="!is_team && isData">
         <view class="no-team">
            <view class="mt50 p-0-20 pt30 red f34 tc">{{ info_words.index.words.not_team.value }}</view>
            <view class="p30 f28" v-if="setting.become=='40'">您需要下级分销商人数达到<text class="orange">{{setting.totalfxs_down}}</text>人才能成为{{ info_words.index.words.team.value }},您当前的分销商人数为<text class="orange">{{agent_total}}</text>人,继续努力吧!</view>
            <view class="p30 f28" v-if="setting.become=='50'">您需要累计分销佣金达到<text class="orange">{{setting.total_money}}</text>元才能成为{{ info_words.index.words.team.value }},您当前累计分销佣金为<text class="orange">{{agent_money}}</text>元,继续努力吧!</view>
            <view class="p30 f28" v-if="setting.become=='40'">您需要下级分销商人数达到<text
                  class="orange">{{setting.totalfxs_down}}</text>人才能成为{{ info_words.index.words.team.value }},您当前的分销商人数为<text
                  class="orange">{{agent_total}}</text>人,继续努力吧!</view>
            <view class="p30 f28" v-if="setting.become=='50'">您需要累计分销佣金达到<text
                  class="orange">{{setting.total_money}}</text>元才能成为{{ info_words.index.words.team.value }},您当前累计分销佣金为<text
                  class="orange">{{agent_money}}</text>元,继续努力吧!</view>
            <view class="section-product" v-if="setting.become=='70'">
               <view class="p30 f28">您需要推荐<text
                     class="orange">{{setting.totalsh_down}}</text>家商户入驻并且推荐指定会员等级达到<text class="orange"
                     v-for="(item, index ) in gradeList">{{(index>0?'或':'')+item.name}}</text>满<text
                     class="orange">{{setting.totalvip_down}}</text>人并且至少购买VIP专区商品<text
                     class="orange">{{setting.purchase_count}}</text>次或购买以下任意一款商品才能成为{{ info_words.index.words.team.value }}
               </view>
               <view @click="gotoProductDetail(item.product_id)" class="item"
                  :class="index==productList.length-1?'noborder':'border-b-e'"
                  v-for="(item, index) in productList" :key="index">
                  <image :src="item.product_image" class="cover" mode="aspectFit"></image>
                  <view class="info">
                     <view class="title">{{ item.product_name }}</view>
                     <view class="describe">{{ item.product_sku.product_attr }}</view>
                     <view class="level-box count_choose">
                        <view class="price">
                           ¥
                           <text class="num">{{ item.product_sku.product_price }}</text>
                        </view>
                     </view>
                  </view>
                  <view class="icon-box pl20">
                     <text class="icon iconfont icon-jiantou f50"></text>
                  </view>
               </view>
            </view>
            <view class="p30 mt30" v-if="setting.become=='10'">
               <button type="primary" class="btn-gcred" @click="applyteam">{{ info_words.index.words.apply_now.value }}</button>
               <button type="primary" class="btn-gcred"
                  @click="applyteam">{{ info_words.index.words.apply_now.value }}</button>
            </view>
            <view class="p30 mt30" v-else-if="setting.become=='40' || setting.become=='50'">
               <button type="primary" class="btn-gcred" @click="gotoAgent">马上去招募人员</button>
            </view>
            <view class="p30">
               <button type="primary" class="btn-gray" @click="gotoShop">{{ info_words.apply.words.goto_mall.value }}</button>
               <button type="primary" class="btn-gray"
                  @click="gotoShop">{{ info_words.apply.words.goto_mall.value }}</button>
            </view>
         </view>
      </template>
@@ -125,7 +159,9 @@
            titel: '',
            setting: {},
            agent_total: 0,
            agent_money: 0
            agent_money: 0,
            productList: [],
            gradeList: []
         };
      },
      onLoad(e) {
@@ -147,7 +183,8 @@
            self._get('user.team/center', {}, function(data) {
               self.info_words = data.data.words;
               uni.setNavigationBarTitle({
                  title: self.info_words.index.title.value != '' ? self.info_words.index.title.value : self.info_words.index.title
                  title: self.info_words.index.title.value != '' ? self.info_words.index.title
                     .value : self.info_words.index.title
                     .default
               });
               self.titel = data.data.words.index.title.value
@@ -156,6 +193,8 @@
               self.team = data.data.team;
               self.user = data.data.user;
               self.setting = data.data.setting;
               self.productList = data.data.productList;
               self.gradeList = data.data.gradeList;
               self.agent_total = data.data.agent_total;
               self.agent_money = data.data.agent_money;
               self.isData = true;
@@ -171,7 +210,7 @@
         /*去商城逛逛*/
         gotoShop() {
            this.gotoPage('pages2/index/index')
            this.gotoPage('pages/index/index')
         },
         
         /*去商城逛逛*/