index.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <template>
  2. <view class="content">
  3. <view class="first-content">
  4. <view><text style="font-size: 44rpx;font-weight: bold;">客户跟进</text></view>
  5. <view class="content-box">
  6. <view class="content-info">
  7. <view class="info-num">{{ info.estranged }}</view>
  8. <view class="info-introduce">久未跟进</view>
  9. <view class="info-text">长时间未跟进的客户</view>
  10. </view>
  11. <view class="content-info">
  12. <view class="info-num">{{ info.beAboutToExpire }}</view>
  13. <view class="info-introduce">即将到期</view>
  14. <view class="info-text">会员卡即将过期的会员</view>
  15. </view>
  16. <view class="content-info">
  17. <view class="info-num">{{ info.birthdayRemind }}</view>
  18. <view class="info-introduce">生日提醒</view>
  19. <view class="info-text">即将过生日的会员</view>
  20. </view>
  21. <view class="content-info">
  22. <view class="info-num">{{ info.oneWeekAppointment }}</view>
  23. <view class="info-introduce">预约记录</view>
  24. <view class="info-text">预约到店的会员</view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="last-content">
  29. <view><text style="font-size: 44rpx;font-weight: bold;">客户管理</text></view>
  30. <view class="content-customer">
  31. <view style="width:10%;margin: 0 30rpx;">
  32. <u-image width="100%" src="/static/images/allCustomer.png" mode="widthFix"></u-image>
  33. </view>
  34. <view style="flex:1;">
  35. <view class="info-num">{{ info.allCustomer }}</view>
  36. <view class="info-text">全部客户</view>
  37. </view>
  38. </view>
  39. <view class="content-last">
  40. <view class="last-info">
  41. <view class="imageBox"><u-image width="80rpx" height="60rpx" :src="noVip"></u-image></view>
  42. <view class="info-num" style="text-align: center;">{{ info.noVip }}</view>
  43. <view class="info-text text-c">非会员</view>
  44. </view>
  45. <view class="last-info">
  46. <view class="imageBox"><u-image width="80rpx" height="60rpx" :src="latelyAdd" mode="widthFix"></u-image></view>
  47. <view class="info-num" style="text-align: center;">{{ info.latelyAdd }}</view>
  48. <view class="info-text text-c">最近新增</view>
  49. </view>
  50. <view class="last-info">
  51. <view class="imageBox"><u-image width="80rpx" height="60rpx" :src="valid" mode="widthFix"></u-image></view>
  52. <view class="info-num" style="text-align: center;">{{ info.valid }}</view>
  53. <view class="info-text text-c">有效会员</view>
  54. </view>
  55. <view class="last-info">
  56. <view class="imageBox"><u-image width="80rpx" height="60rpx" :src="overdue" mode="widthFix"></u-image></view>
  57. <view class="info-num" style="text-align: center;">{{ info.overdue }}</view>
  58. <view class="info-text text-c">过期会员</view>
  59. </view>
  60. </view>
  61. </view>
  62. <u-top-tips ref="uTips"></u-top-tips>
  63. </view>
  64. </template>
  65. <script>
  66. const NET = require('@/utils/request')
  67. const API = require('@/config/api')
  68. import latelyAdd from '@/static/images/latelyAdd.png'
  69. import noVip from '@/static/images/noVip.png'
  70. import valid from '@/static/images/valid.png'
  71. import overdue from '@/static/images/overdue.png'
  72. export default {
  73. onShow() {
  74. this.getNum()
  75. },
  76. data() {
  77. return {
  78. info: {},
  79. latelyAdd,
  80. noVip,
  81. valid,
  82. overdue
  83. }
  84. },
  85. methods: {
  86. getNum() {
  87. NET.request(API.findGroupCustomerNum, {}, 'POST').then(res => {
  88. if(res.status == 10000) {
  89. this.info = res.data
  90. } else {
  91. this.$refs.uTips.show({
  92. title: error.msg,
  93. type: 'warning',
  94. })
  95. }
  96. })
  97. }
  98. }
  99. }
  100. </script>
  101. <style lang="scss" scoped>
  102. @import "@/static/css/themes.scss";
  103. .content {
  104. width: 100%;
  105. min-height: 100vh;
  106. float: left;
  107. background-color: #f5f6f8;
  108. padding: 10px;
  109. .first-content{
  110. width: 100%;
  111. .content-box {
  112. width: 100%;
  113. margin-top: 15rpx;
  114. display: flex;
  115. flex-wrap: wrap;
  116. justify-content: space-between;
  117. .content-info {
  118. width: 48%;
  119. padding: 24rpx;
  120. background-color: #fff;
  121. margin-bottom: 10px;
  122. box-sizing: border-box;
  123. border-radius: 12rpx;
  124. }
  125. }
  126. }
  127. .last-content {
  128. margin: 20rpx 0;
  129. width: 100%;
  130. .content-customer {
  131. padding: 24rpx;
  132. background-color: #fff;
  133. margin-bottom: 10px;
  134. margin-top: 15rpx;
  135. display: flex;
  136. align-items: center;
  137. }
  138. .content-last {
  139. width: 100%;
  140. margin-top: 15rpx;
  141. display: flex;
  142. justify-content: space-between;
  143. border-radius: 12rpx;
  144. .last-info {
  145. width: 160rpx;
  146. padding: 24rpx;
  147. background-color: #fff;
  148. border-radius: 12rpx;
  149. box-sizing: border-box;
  150. display: flex;
  151. flex-direction: column;
  152. justify-content: center;
  153. }
  154. }
  155. }
  156. }
  157. .imageBox {
  158. width:100%;
  159. display: flex;
  160. align-items: center;
  161. justify-content: center;
  162. }
  163. .info-num {
  164. font-size: 20px;
  165. margin: 20rpx 0;
  166. }
  167. .info-introduce {
  168. font-size: 16px;
  169. margin-bottom: 12rpx;
  170. }
  171. .info-text {
  172. color: #aaa;
  173. }
  174. .text-c {
  175. text-align: center;
  176. }
  177. </style>