home.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {php define(MUI, true);}
  2. {template 'common/header'}
  3. <header class="mui-bar mui-bar-nav">
  4. <h1 class="mui-title">{$_W['user']['store_name']}</h1>
  5. </header>
  6. {template 'nav'}
  7. <div class="mui-content paycenter">
  8. <div class="mui-banner">
  9. <img src="./resource/images/avatar.png" alt="" class="mui-logo mui-img-circle"/>
  10. <h1 class="mui-name">{$_W['user']['name']}</h1>
  11. </div>
  12. <div class="mui-table activity-nav">
  13. <div class="mui-table-cell">
  14. <span class="mui-block">{$seven_revenue}</span>
  15. <div>七日营收</div>
  16. </div>
  17. <div class="mui-table-cell">
  18. <span class="mui-block">{$yesterday_revenue}</span>
  19. <div>昨日营收</div>
  20. </div>
  21. <div class="mui-table-cell">
  22. <span class="mui-block">{$today_revenue}</span>
  23. <div>今日营收</div>
  24. </div>
  25. </div>
  26. <ul class="mui-table-view mui-grid-view mui-grid-9 store-nav">
  27. {if $_W['user']['clerk_type'] == 2 || ($_W['user']['clerk_type'] == 3 && in_array('coupon_consume', $user_permission))}
  28. <li class="mui-table-view-cell mui-media mui-col-xs-4">
  29. <a href="{php echo $this->createMobileUrl('cardconsume', array('op' => 'consume'));}">
  30. <span class="mui-icon mui-img-circle mui-image"><img src="./resource/images/icon-verification.png" alt="" /></span>
  31. <div class="mui-media-body">卡券核销</div>
  32. </a>
  33. </li>
  34. {/if}
  35. {if $_W['account']['level'] == ACCOUNT_SERVICE_VERIFY}
  36. <li class="mui-table-view-cell mui-media mui-col-xs-4">
  37. <a href="{php echo $this->createMobileUrl('scanpay', array('op' => 'index'));}">
  38. <span class="mui-icon mui-img-circle mui-image"><img src="./resource/images/icon-qrcode.png" alt="" /></span>
  39. <div class="mui-media-body">扫码收款</div>
  40. </a>
  41. </li>
  42. {/if}
  43. <li class="mui-table-view-cell mui-media mui-col-xs-4">
  44. <a href="{php echo $this->createMobileUrl('scanpay', array('op' => 'list', 'period' => '1'));}">
  45. <span class="mui-icon mui-img-circle mui-image"><img src="./resource/images/icon-chart.png" alt="" /></span>
  46. <div class="mui-media-body">收款记录</div>
  47. </a>
  48. </li>
  49. {if $_W['container'] == 'wechat'}
  50. <li class="mui-table-view-cell mui-media mui-col-xs-4">
  51. <a href="javascript:;" id="scanqrcode">
  52. <span class="mui-icon mui-img-circle mui-image"><img src="./resource/images/icon-chart.png" alt="" /></span>
  53. <div class="mui-media-body">扫一扫</div>
  54. </a>
  55. </li>
  56. {/if}
  57. </ul>
  58. </div>
  59. <script>
  60. $('#scanqrcode').click(function(){
  61. wx.ready(function(){
  62. wx.scanQRCode({
  63. needResult: 0, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
  64. scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码,默认二者都有
  65. success: function (res) {
  66. var result = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
  67. }
  68. });
  69. });
  70. });
  71. </script>
  72. {template 'common/footer'}