<nav type="back" url="/nova-tourism/pages/index/index?active=4" background-color="#46a9a4" title="商户端" />
<view class="box" style="color: #382E2E;">
    <view class="store">
        <image class="store-img" src="{{store.cover}}" />
        <view class="store-box">
            <view class="store-name">{{store.storeName}}</view>
            <!-- <view class="store-score">
                <van-rate readonly value="{{ store.score }}" size="{{ 15 }}" color="#fd863a" allow-half />
                {{store.score}}
            </view> -->
            <view class="draw_box" style="margin-top: 10rpx;">
                <view class="withdraw" bindtap="toWithdraw">
                    提现
                </view>
                <view>
                    可提现 {{earnings}} 元
                </view>

            </view>


        </view>
    </view>
    <view class="business">
        <view class="business-x">
            <view class="order-number">
                <view class="order-title">总订单数</view>
                <view class="order-titles">{{totalCount}}</view>
            </view>
            <view class="order-today">
                <view class="order-title">今日订单数</view>
                <view class="order-titles">{{todayCount}}</view>
            </view>
        </view>
        <view class="business-y">
            <view class="order-number">
                <view class="order-title">总营业额</view>
                <view class="order-titles">{{totalPrice}}</view>
            </view>
            <view class="order-today">
                <view class="order-title">今日营业额</view>
                <view class="order-titles">{{todayPrice}}</view>
            </view>
        </view>
    </view>

    <view class="management">
        <!-- <block wx:if="{{store.type=='catering'}}">
            <view class="box-title" bindtap="orderlist">
                <view class="box-details">
                    <van-icon name="https://file-cloud.fmode.cn/sHNeVwSaAg/20230705/dkdoeo112500451.png" size="20"/>
                    <view class="name">订单管理</view>
                </view>
                <van-icon name="arrow" />
            </view>
        </block> -->
        <block wx:if="{{store.type=='stay'}}">
            <view class="box-title" bindtap="order2list">
                <view class="box-details">
                    <van-icon name="https://file-cloud.fmode.cn/sHNeVwSaAg/20230705/dkdoeo112500451.png" size="20"/>
                    <view class="name">订单管理</view>
                </view>
                <van-icon name="arrow" />
            </view>
        </block>
        <!-- <block wx:if="{{store.type=='shop'}}">
            <view class="box-title" bindtap="order3list">
                <view class="box-details">
                    <van-icon name="https://file-cloud.fmode.cn/sHNeVwSaAg/20230705/dkdoeo112500451.png" size="20"/>
                    <view class="name">订单管理</view>
                </view>
                <van-icon name="arrow" />
            </view>
        </block> -->
        <view class="box-title" bindtap="account">
            <view class="box-details">
                <van-icon name="https://file-cloud.fmode.cn/sHNeVwSaAg/20230705/vbg148112459179.png" size="20"/>
                <view class="name">账户管理</view>
            </view>
            <van-icon name="arrow" />
        </view>
        <!-- <view class="box-title" bindtap="comments"wx:if="{{store.type!='shop'}}">
            <view class="box-details">
                <van-icon name="https://file-cloud.fmode.cn/sHNeVwSaAg/20230705/eb7p71112500348.png" size="20"/>
                <view class="name">评价管理</view>
            </view>
            <van-icon name="arrow" />
        </view> -->

        <!-- <block wx:if="{{store.type=='catering'}}">
            <view class="box-title" bindtap="package">
                <view class="box-details">
                    <van-icon name="https://file-cloud.fmode.cn/sHNeVwSaAg/20230705/mujk1h112500264.png" size="20"/>
                    <view class="name">套餐管理</view>
                </view>
                <van-icon name="arrow" />
            </view>
            <view class="box-title" bindtap="dishes">
                <view class="box-details">
                    <van-icon name="https://file-cloud.fmode.cn/sHNeVwSaAg/20230705/ct7c17112500163.png" size="20"/>
                    <view class="name">菜品管理</view>
                </view>
                <van-icon name="arrow" />
            </view>
            <view class="box-title" bindtap="tables">
                <view class="box-details">
                    <van-icon name="https://file-cloud.fmode.cn/sHNeVwSaAg/20230705/1ue61m112500082.png" size="20"/>
                    <view class="name">桌台管理</view>
                </view>
                <van-icon name="arrow" />
            </view>
            <view class="box-title" bindtap="category">
                <view class="box-details">
                    <van-icon name="https://file-cloud.fmode.cn/sHNeVwSaAg/20230705/kl11mf112459857.png" size="20"/>
                    <view class="name">菜品类型管理</view>
                </view>
                <van-icon name="arrow" />
            </view>

        </block> -->
        <block wx:if="{{store.type=='stay'}}">
   
            <view class="box-title" bindtap="roommanage">
                <view class="box-details">
                    <van-icon name="https://file-cloud.fmode.cn/sHNeVwSaAg/20230705/7d11hf112459718.png" size="20"/>
                    <view class="name">房型管理</view>
                </view>
                <van-icon name="arrow" />
            </view>
        </block>
        <block wx:if="{{store.type=='shop'}}">
            <!-- <view class="box-title">商品管理</view> -->
            <!-- <view class="box-title" bindtap="goods">
                <view class="box-details">
                    <van-icon name="https://file-cloud.fmode.cn/sHNeVwSaAg/20230705/l1hdoe112459997.png" size="20"/>
                    <view class="name">商品管理</view>
                </view>
                <van-icon name="arrow" />
            </view> -->
            <!-- <view class="box-title" bindtap="category">
                <view class="box-details">
                    <van-icon name="gift-o" />
                    <view>类型管理</view>
                </view>
                <van-icon name="arrow" />
            </view> -->
        </block>
    </view>
</view>
<view class="bommon" bind:tap="codeVerify" style="color: #382E2E;">扫码核销</view>
<view class="bommon" bind:tap="logout" style="color: #382E2E;">退出登录</view>
<!-- <block wx:if="{{store.type=='catering'}}">
    <view class="bommon" bind:tap="code">扫码核销</view>
</block> -->