index.vue 5.3 KB

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