<!--packageE/community_buying/components/floatBtn/floatBtn.wxml-->


<view class="container">
	<view class="floatBtn">
		<view class="{{alertFlag ? 'close' : ''}} my themeDiyBackground" bindtap="openAlert">
			
			<block wx:if="{{!alertFlag}}">
				<text style="height:35rpx;" class="iconfont icon-fontclass-wode"></text>
				<text>我的</text>
			</block>	
			<text wx:else style="height:52rpx;font-size:36rpx;" class="iconfont icon-close11 themeDiyBackground"></text>
		</view>

		<view bindtap="gotoOrder" class="{{alertFlag ? 'c'+tool.addIndex(1)+' ccs' : ''}} cc themeDiyBackground">订单</view>
		<view wx:if="{{isDeliverShow}}" bindtap="goto" class="{{alertFlag ? 'c'+tool.addIndex(2)+' ccs' : ''}} cc themeDiyBackground" >自提点</view>
		<view bindtap="openShare" class="{{alertFlag ? 'c'+tool.addIndex(3)+' ccs' : ''}} cc themeDiyBackground">分享</view>
		<view bindtap="gotoIndexV2" class="{{alertFlag ? 'c'+tool.addIndex(4)+' ccs' : ''}} cc themeDiyBackground"><text>会员</text> <text>中心</text></view>
	</view>
</view>


<wxs module="tool">
	var index=0;
	var arr={};
	function addIndex(i){
		var key = "id"+i;
		if(!arr[key]){
			index+=1;
			arr[key]=index;
		}
		return arr[key];
	}

	module.exports={
		addIndex:addIndex
	}

</wxs>





















