index.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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 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" @click.native="goUrl('/pagesMain/threadList')">
  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. goUrl(url){
  99. uni.navigateTo({
  100. url: url
  101. });
  102. }
  103. }
  104. }
  105. </script>
  106. <style lang="scss" scoped>
  107. @import "@/static/css/themes.scss";
  108. .content {
  109. width: 100%;
  110. min-height: 100vh;
  111. float: left;
  112. background-color: #f5f6f8;
  113. padding: 10px;
  114. .first-content{
  115. width: 100%;
  116. .content-box {
  117. width: 100%;
  118. margin-top: 15rpx;
  119. display: flex;
  120. flex-wrap: wrap;
  121. justify-content: space-between;
  122. .content-info {
  123. width: 48%;
  124. padding: 24rpx;
  125. background-color: #fff;
  126. margin-bottom: 10px;
  127. box-sizing: border-box;
  128. border-radius: 12rpx;
  129. }
  130. }
  131. }
  132. .last-content {
  133. margin: 20rpx 0;
  134. width: 100%;
  135. .content-customer {
  136. padding: 24rpx;
  137. background-color: #fff;
  138. margin-bottom: 10px;
  139. margin-top: 15rpx;
  140. display: flex;
  141. align-items: center;
  142. }
  143. .content-last {
  144. width: 100%;
  145. margin-top: 15rpx;
  146. display: flex;
  147. justify-content: space-between;
  148. border-radius: 12rpx;
  149. .last-info {
  150. width: 160rpx;
  151. padding: 24rpx;
  152. background-color: #fff;
  153. border-radius: 12rpx;
  154. box-sizing: border-box;
  155. display: flex;
  156. flex-direction: column;
  157. justify-content: center;
  158. }
  159. }
  160. }
  161. }
  162. .imageBox {
  163. width:100%;
  164. display: flex;
  165. align-items: center;
  166. justify-content: center;
  167. }
  168. .info-num {
  169. font-size: 20px;
  170. margin: 20rpx 0;
  171. }
  172. .info-introduce {
  173. font-size: 16px;
  174. margin-bottom: 12rpx;
  175. }
  176. .info-text {
  177. color: #aaa;
  178. }
  179. .text-c {
  180. text-align: center;
  181. }
  182. </style>