index.wxml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <wxs module='filter'>
  2. var timeFormat = function(time) {
  3. var hms = time.split(':')
  4. return [hms[0], hms[1]].join(':')
  5. }
  6. module.exports.timeFormat = timeFormat
  7. </wxs>
  8. <van-skeleton
  9. row="5"
  10. loading="{{!loaded}}"
  11. avatar
  12. />
  13. <van-skeleton
  14. row="5"
  15. title
  16. title-width="60%"
  17. loading="{{!loaded}}"
  18. class="margin-top-sm block"
  19. />
  20. <van-skeleton
  21. title
  22. row="5"
  23. loading="{{!loaded}}"
  24. class="margin-top-sm block"
  25. >
  26. <block>
  27. <view class="shop-info-area">
  28. <van-row>
  29. <van-col span="7" class="logo-wrap">
  30. <image src="{{shopLogo}}" class="shop-logo" data-name="shopsetting" bindtap="gridClick" />
  31. </van-col>
  32. <van-col span="12" class="shop-name">
  33. <text>{{shopName}}</text>
  34. <view class="business-time" wx:if="{{startTime}}">营业时间:{{filter.timeFormat(startTime)}}-{{filter.timeFormat(endTime)}}</view>
  35. </van-col>
  36. <van-col span="5" class="shop-state">
  37. <van-tag plain type="{{shop_state==='1'?'success':'danger'}}" size="large">{{shop_state==='1'?'营业中':'暂停营业'}}</van-tag>
  38. <view class="exchange-store" bind:tap="getO2OShops">
  39. <text>切换店铺</text>
  40. <van-icon name="exchange" />
  41. </view>
  42. </van-col>
  43. </van-row>
  44. </view>
  45. <view class="today-count">
  46. <van-row>
  47. <van-col span="12">
  48. <view class="van-hairline--right">
  49. <view class="number text-xxl text-orange">{{todayOrderNum}}</view>
  50. <view class="text-sm text-grey">今日订单</view>
  51. </view>
  52. </van-col>
  53. <van-col span="12">
  54. <view class="number text-xxl text-green">¥{{todayOrderTotal}}</view>
  55. <view class="text-sm text-grey">今日营业额</view>
  56. </van-col>
  57. </van-row>
  58. </view>
  59. <wux-grids>
  60. <wux-grid label="商品管理" bind:click="gridClick" data-name="product" >
  61. <wux-icon type="ios-keypad" color="#11c1f3" slot="header" />
  62. </wux-grid>
  63. <wux-grid label="订单查询" data-name="orderquery" bind:click="gridClick" >
  64. <wux-icon type="ios-search" color="#11c1f3" slot="header" />
  65. </wux-grid>
  66. <wux-grid label="售后订单" data-name="aftersale" bind:click="gridClick" >
  67. <wux-icon type="ios-refresh" color="#11c1f3" slot="header" />
  68. </wux-grid>
  69. <!-- <wux-grid label="结算管理" data-name="bill" bind:click="gridClick" >-->
  70. <!-- <wux-icon type="ios-done-all" color="#11c1f3" slot="header" />-->
  71. <!-- </wux-grid>-->
  72. <!-- <wux-grid wx:if="{{shopAdminMemberId === userId}}" label="资金提现" data-name="withdrawApply" bind:click="gridClick" >-->
  73. <!-- <wux-icon type="ios-wallet" color="#11c1f3" slot="header" />-->
  74. <!-- </wux-grid>-->
  75. <!-- <wux-grid wx:if="{{shopAdminMemberId === userId}}" label="提现账户" data-name="withdrawAccount" bind:click="gridClick" >-->
  76. <!-- <wux-icon type="ios-card" color="#11c1f3" slot="header" />-->
  77. <!-- </wux-grid>-->
  78. <wux-grid label="店铺设置" data-name="shopsetting" bind:click="gridClick" >
  79. <wux-icon type="ios-settings" color="#11c1f3" slot="header" />
  80. </wux-grid>
  81. <wux-grid label="营业时间" bind:click="gridClick" data-name="business" >
  82. <wux-icon type="ios-alarm" color="#11c1f3" slot="header" />
  83. </wux-grid>
  84. <wux-grid label="销售统计" bind:click="gridClick" data-name="statistic" >
  85. <wux-icon type="ios-trending-up" color="#11c1f3" slot="header" />
  86. </wux-grid>
  87. </wux-grids>
  88. <view class="authorization" wx:if="{{changeShopShow}}">
  89. <wux-popup position="bottom" visible="{{ changeShopShow }}" bind:close="changeShopShowClose" closable>
  90. <wux-radio-group value="{{ changeShopValue }}" title="切换登录店铺" bind:change="onChangeShop">
  91. <scroll-view scroll-y style="height:50vh">
  92. <wux-radio color="balanced" wx:for="{{shops}}" title="{{item.shop_name}}" value="{{item.shop_id}}" wx:key="index" />
  93. </scroll-view>
  94. </wux-radio-group>
  95. </wux-popup>
  96. </view>
  97. </block>
  98. </van-skeleton>