<!-- 工具与服务 -->
<view class="xc-tool-service">
    <view class="xc-tool-service-title flex-vertical" wx:if="{{object.is_title}}">
        <image class="xc-tool-service-img" src="{{iurl}}/miniapp/images/gj.png"></image>
        <view class="three-level-word xc-tool-service-word">工具与服务</view>
    </view>
    <view class="xc-project-frame" wx:if="{{user_tool}}">
        <!-- 跳转页面 -->
        <view class="center_v" style="display: flex;flex-wrap: wrap;align-items: center;">
            <!-- 循环使用自定义菜单，显示和掩藏 -->
            <block wx:for="{{user_tool}}">
                <!-- 判断自定义的判断显示-->
                <block wx:if="{{item.show}}">
                    <!-- 有链接地址的时候 -->
                    <block wx:if="{{item.new_weappurl}}">
                        <block wx:if="{{item.name=='PLUS会员'}}">
                            <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto" wx:if="{{is_dengji==1}}">
                                <image wx:if="{{object.is_icon}}" class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
                                <view class="fs26">PLUS会员</view>
                            </view>
                        </block>
                        <block wx:elif="{{item.name=='助力活动'}}">
                            <view class="item t-c" data-url="/pages/user/assistance/assistance" bindtap="goto_nav" wx:if="{{is_assistance==1}}">
                                <image wx:if="{{object.is_icon}}"  class="xc-center-img" src="{{iurl}}/miniapp/images/friendhelp/icon-zl.png"></image>
                                <view class="four-level-word">助力活动</view>
                            </view>
                        </block>
                        <block wx:elif="{{item.name=='我的权益'}}">
                            <view class="item t-c" bindtap="go_qy" wx:if="{{qy_data && qy_data.qy_list!=null && qy_data.is_init && qy_data.gradeId}}">
                                <image wx:if="{{object.is_icon}}"  class="xc-center-img" src="{{iurl+item.icoimg}}"></image>
                                <view class="fs26">我的权益</view>
                            </view>
                        </block>
                        <block wx:elif="{{item.name=='套盒商品'}}">
                            <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto" wx:if="{{enableMeiye}}">
                                <image wx:if="{{object.is_icon}}"  class="xc-center-img" src="{{iurl+item.icoimg}}"></image>
                                <view class="fs26">套盒商品</view>
                            </view>
                        </block>

                        <block wx:elif="{{item.name=='瘦身日记'}}">
                            <view wx:if="{{has_rj>0}}" class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto_nav">
                                <image wx:if="{{object.is_icon}}"  class="xc-center-img" src="{{iurl+item.icoimg}}"></image>
                                <view class="fs26">{{item.name}}</view>
                            </view>
                        </block>

                        <block wx:else>
                            <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto_nav">
                                <image wx:if="{{object.is_icon}}"  class="xc-center-img" src="{{iurl+item.icoimg}}"></image>
                                <view class="fs26">{{item.name}}</view>
                            </view>
                        </block>
                    </block>
                    <!-- 没有链接地址的时候 -->
                    <block wx:else>
                        <block wx:if="{{item.name=='联系客服'}}">

                            <view class="item t-c" bindtap="openCS">
                                <image wx:if="{{object.is_icon}}"  class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
                                <view class="fs26">联系客服</view>
                            </view>

                        </block>
                        <block wx:elif="{{item.name=='收入卡包'}}">
                            <view class="item t-c" bindtap="addcard" wx:if="{{add_card_data}}">
                                <image wx:if="{{object.is_icon}}"  class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
                                <view class="four-level-word">收入卡包</view>
                            </view>
                        </block>
                    </block>
                </block>
            </block>
        </view>
    </view>
</view>

<include src="../../components/com_servicer/com_servicer.wxml"/>