index.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <template>
  2. <view class="content">
  3. <uHeader ref="toRefresh" :userinfo="userinfo" />
  4. <!-- 卡片 -->
  5. <view class="card">
  6. <view class="title row" style="justify-content: center;">
  7. <image src="https://ldc365.cn/assets/static/1/46.png" style="width: 50rpx;height: 50rpx;margin-right: 20rpx;"></image>
  8. <view>待办事项</view>
  9. </view>
  10. <view class="row">
  11. <view class="col" @click="goToReFund(1)">
  12. <view class="item-title">
  13. 待结算(笔)
  14. </view>
  15. <view class="item-num">
  16. {{data.settle || 0}}
  17. </view>
  18. </view>
  19. <view class="col" @click="goToReFund(2)">
  20. <view class="item-title">
  21. 待处理的反馈建议(条)
  22. </view>
  23. <view class="item-num">
  24. {{data.feedback || 0}}
  25. </view>
  26. </view>
  27. </view>
  28. <view class="row">
  29. <view class="col" @click="goToReFund(3)">
  30. <view class="item-title">
  31. 待处理的退款(笔)
  32. </view>
  33. <view class="item-num">
  34. {{data.refund || 0}}
  35. </view>
  36. </view>
  37. <view class="col" @click="goToReFund(4)">
  38. <view class="item-title">
  39. 售后管理(条)
  40. </view>
  41. <view class="item-num">
  42. {{data.service || 0}}
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="card">
  48. <view class="title row" style="justify-content: center;">
  49. <image src="https://ldc365.cn/assets/static/1/76.png" style="height: 50rpx;width: 50rpx;margin-right: 20rpx;"></image>
  50. <view>资金流水</view>
  51. </view>
  52. <view class="row">
  53. <view class="col" @click="goToTurnOver(1)">
  54. <view class="item-title">
  55. 今日营业额(元)
  56. </view>
  57. <view class="item-num">
  58. {{data.today_turnover || 0}}
  59. </view>
  60. </view>
  61. <view class="col" @click="goToTurnOver(2)">
  62. <view class="item-title">
  63. 今日结算金额(元)
  64. </view>
  65. <view class="item-num">
  66. {{data.today_settled || 0}}
  67. </view>
  68. </view>
  69. </view>
  70. <view class="row">
  71. <view class="col" @click="goToTurnOver(3)">
  72. <view class="item-title">
  73. 今日盈利明细(元)
  74. </view>
  75. <view class="item-num">
  76. {{data.today_profit || 0}}
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. </template>
  83. <script>
  84. import uHeader from '../../components/u-header.vue'
  85. export default {
  86. components: {
  87. uHeader
  88. },
  89. data() {
  90. return {
  91. userinfo: {},
  92. // 表格数据
  93. data: {},
  94. }
  95. },
  96. onShow() {
  97. uni.showShareMenu()
  98. this.getDo()
  99. },
  100. methods: {
  101. // 获取代办事项信息
  102. getDo() {
  103. this.request("/admin_order/do", {}, "GET").then(res => {
  104. console.log(res)
  105. if (res.code === 1) {
  106. this.data = res.data
  107. }
  108. })
  109. },
  110. // 点击前往营业额
  111. goToTurnOver(type) {
  112. if(type === 3){
  113. uni.navigateTo({
  114. url:"/pages/turnover/info"
  115. })
  116. return false
  117. }
  118. uni.navigateTo({
  119. url: "/pages/turnover/turnover?type=" + type
  120. })
  121. },
  122. // 前往退款
  123. goToReFund(type) {
  124. uni.navigateTo({
  125. url: "/pages/refund/refund?type=" + type
  126. })
  127. }
  128. }
  129. }
  130. </script>
  131. <style lang="scss">
  132. .content {
  133. display: flex;
  134. flex-direction: column;
  135. align-items: center;
  136. justify-content: flex-start;
  137. z-index: 99;
  138. background-color: #F8F8F8;
  139. min-height: 100vh;
  140. padding-top: 180rpx;
  141. .card {
  142. width: 90%;
  143. border-radius: 20rpx;
  144. padding: 20rpx;
  145. background-color: #FFFFFF;
  146. margin-bottom: 60rpx;
  147. .title {
  148. font-size: 15px;
  149. font-family: PingFang SC;
  150. font-weight: 500;
  151. line-height: 21px;
  152. color: #000000;
  153. text-align: center;
  154. }
  155. .row {
  156. display: flex;
  157. flex-direction: row;
  158. align-items: center;
  159. justify-content: space-between;
  160. margin-top: 40rpx;
  161. .col {
  162. width: 50%;
  163. .item-title {
  164. font-size: 13px;
  165. font-family: PingFang SC;
  166. font-weight: 400;
  167. line-height: 20px;
  168. color: #707070;
  169. }
  170. .item-num {
  171. font-size: 20px;
  172. font-family: PingFang SC;
  173. font-weight: 600;
  174. line-height: 28px;
  175. color: #111111;
  176. }
  177. }
  178. }
  179. }
  180. }
  181. </style>