<view>
    <block wx:if="{{text=='客服' || text=='Contact'}}">
        <block>
            <button class="action-icon-wrap" style="background:transparent;padding:0;margin:0;"
                hoverClass="none" openType="contact" sessionFrom="weapp" showMessageCard="true">
                <view class="{{['iconfont','color-title',icon]}}"></view>
                <text>{{text}}</text>
                <block wx:if="{{$root.g0}}">
                    <view class="corner-mark color-base-bg"
                        style="{{'background:'+(cornerMarkBg+'!important')+';'+('color:'+(cornerMarkColor)+';')}}">
                        {{cornerMark}}</view>
                </block>
            </button>
        </block>
    </block>
    <block wx:else>
        <block>
            <view data-event-opts="{{[['tap',[['clickEvent',['$event']]]]]}}"
                class="action-icon-wrap" bindtap="__e">
                <view class="{{['iconfont','',icon]}}"></view>
                <text>{{text}}</text>
                <block wx:if="{{$root.g1}}">
                    <view class="{{['corner-mark','color-base-bg',($root.m0>99)?'max':'']}}"
                        style="{{'background:'+(cornerMarkBg+'!important')+';'+('color:'+(cornerMarkColor)+';')}}">
                        {{cornerMark>99?'99+':cornerMark}}</view>
                </block>
            </view>
        </block>
    </block>
</view>