123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <wxs module='filter'>
- var timeFormat = function(time) {
- var hms = time.split(':')
- return [hms[0], hms[1]].join(':')
- }
- module.exports.timeFormat = timeFormat
- </wxs>
- <van-skeleton
- row="5"
- loading="{{!loaded}}"
- avatar
- />
- <van-skeleton
- row="5"
- title
- title-width="60%"
- loading="{{!loaded}}"
- class="margin-top-sm block"
- />
- <van-skeleton
- title
- row="5"
- loading="{{!loaded}}"
- class="margin-top-sm block"
- >
- <block>
- <view class="shop-info-area">
- <van-row>
- <van-col span="7" class="logo-wrap">
- <image src="{{shopLogo}}" class="shop-logo" data-name="shopsetting" bindtap="gridClick" />
- </van-col>
- <van-col span="12" class="shop-name">
- <text>{{shopName}}</text>
- <view class="business-time" wx:if="{{startTime}}">营业时间:{{filter.timeFormat(startTime)}}-{{filter.timeFormat(endTime)}}</view>
- </van-col>
- <van-col span="5" class="shop-state">
- <van-tag plain type="{{shop_state==='1'?'success':'danger'}}" size="large">{{shop_state==='1'?'营业中':'暂停营业'}}</van-tag>
- <view class="exchange-store" bind:tap="getO2OShops">
- <text>切换店铺</text>
- <van-icon name="exchange" />
- </view>
- </van-col>
- </van-row>
- </view>
- <view class="today-count">
- <van-row>
- <van-col span="12">
- <view class="van-hairline--right">
- <view class="number text-xxl text-orange">{{todayOrderNum}}</view>
- <view class="text-sm text-grey">今日订单</view>
- </view>
- </van-col>
- <van-col span="12">
- <view class="number text-xxl text-green">¥{{todayOrderTotal}}</view>
- <view class="text-sm text-grey">今日营业额</view>
- </van-col>
- </van-row>
- </view>
- <wux-grids>
- <wux-grid label="商品管理" bind:click="gridClick" data-name="product" >
- <wux-icon type="ios-keypad" color="#11c1f3" slot="header" />
- </wux-grid>
- <wux-grid label="订单查询" data-name="orderquery" bind:click="gridClick" >
- <wux-icon type="ios-search" color="#11c1f3" slot="header" />
- </wux-grid>
- <wux-grid label="售后订单" data-name="aftersale" bind:click="gridClick" >
- <wux-icon type="ios-refresh" color="#11c1f3" slot="header" />
- </wux-grid>
- <!-- <wux-grid label="结算管理" data-name="bill" bind:click="gridClick" >-->
- <!-- <wux-icon type="ios-done-all" color="#11c1f3" slot="header" />-->
- <!-- </wux-grid>-->
- <!-- <wux-grid wx:if="{{shopAdminMemberId === userId}}" label="资金提现" data-name="withdrawApply" bind:click="gridClick" >-->
- <!-- <wux-icon type="ios-wallet" color="#11c1f3" slot="header" />-->
- <!-- </wux-grid>-->
- <!-- <wux-grid wx:if="{{shopAdminMemberId === userId}}" label="提现账户" data-name="withdrawAccount" bind:click="gridClick" >-->
- <!-- <wux-icon type="ios-card" color="#11c1f3" slot="header" />-->
- <!-- </wux-grid>-->
- <wux-grid label="店铺设置" data-name="shopsetting" bind:click="gridClick" >
- <wux-icon type="ios-settings" color="#11c1f3" slot="header" />
- </wux-grid>
- <wux-grid label="营业时间" bind:click="gridClick" data-name="business" >
- <wux-icon type="ios-alarm" color="#11c1f3" slot="header" />
- </wux-grid>
- <wux-grid label="销售统计" bind:click="gridClick" data-name="statistic" >
- <wux-icon type="ios-trending-up" color="#11c1f3" slot="header" />
- </wux-grid>
- </wux-grids>
- <view class="authorization" wx:if="{{changeShopShow}}">
- <wux-popup position="bottom" visible="{{ changeShopShow }}" bind:close="changeShopShowClose" closable>
- <wux-radio-group value="{{ changeShopValue }}" title="切换登录店铺" bind:change="onChangeShop">
- <scroll-view scroll-y style="height:50vh">
- <wux-radio color="balanced" wx:for="{{shops}}" title="{{item.shop_name}}" value="{{item.shop_id}}" wx:key="index" />
- </scroll-view>
- </wux-radio-group>
- </wux-popup>
- </view>
- </block>
- </van-skeleton>
|