No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

197 líneas
5.0 KiB

  1. <template>
  2. <view>
  3. <view class="boxtittab">
  4. <view class="tabbox">
  5. <view :class="{ activecllasscet: activeTotal == 0 }" @click="tabtimetap(0)">今日</view>
  6. </view>
  7. <view class="tabbox">
  8. <view :class="{ activecllasscet: activeTotal == 1 }" @click="tabtimetap(1)">昨日</view>
  9. </view>
  10. <view class="tabbox">
  11. <view :class="{ activecllasscet: activeTotal == 2 }" @click="tabtimetap(2)">近一周</view>
  12. </view>
  13. <view class="tabbox">
  14. <view :class="{ activecllasscet: activeTotal == 3 }" @click="tabtimetap(3)">自定义</view>
  15. </view>
  16. </view>
  17. <view class="timepick">
  18. <view class="timepicktime">
  19. <view>毛丫丫</view>
  20. <view>
  21. <image class="Underimg" src="../../../static/images/Underimg.png" mode=""></image>
  22. </view>
  23. </view>
  24. <view class="timepickpick">
  25. <view @click="checkboxChange()" style="width: 40rpx;height:40rpx;border: 1rpx solid #E0E0E0;">
  26. <image v-if="timepickpickisshow" style="width: 40rpx;height: 40rpx;" src="../../../static/images/xuanzhong.png" mode=""></image>
  27. </view>
  28. <view style="font-size:26rpx;text-indent: 12rpx;">对比</view>
  29. </view>
  30. <view class="timepicktime" v-if="timepickpickisshow">
  31. <view>毛丫丫2</view>
  32. <view>
  33. <image class="Underimg" src="../../../static/images/Underimg.png" mode=""></image>
  34. </view>
  35. </view>
  36. </view>
  37. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  38. <view class="single">
  39. <view class="title">
  40. <view class="title1" style="flex: 1;">接待量</view>
  41. </view>
  42. <view class="hejibox">
  43. <view class="heji">合计:50</view>
  44. <view class="heji">均值:25</view>
  45. </view>
  46. <view class="danwei">来访(人)</view>
  47. <view class="uchaserbox">
  48. <qiun-data-charts
  49. type="line"
  50. :chartData="lineOptsect"
  51. background="none"
  52. :ontouch="true"
  53. canvasId="wangxiaohuaerlingeryilingwuyibbb"
  54. :canvas2d="true"
  55. />
  56. </view>
  57. </view>
  58. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  59. <view class="single">
  60. <view class="title">
  61. <view class="title1" style="flex: 1;">接待客户</view>
  62. <view class="title3" style="flex: 1;">
  63. <view class="title3-box" style="width: 40%;">
  64. <view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 0 }">有效录音</view>
  65. </view>
  66. <view class="title3-box" style="width: 40%;">
  67. <view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 1 }">录音时长</view>
  68. </view>
  69. </view>
  70. </view>
  71. <view class="hejibox">
  72. <view class="heji">合计:50</view>
  73. <view class="heji">均值:25</view>
  74. </view>
  75. <view class="danwei">来访(人)</view>
  76. <view class="uchaserbox">
  77. <qiun-data-charts
  78. type="line"
  79. :chartData="lineOptsect"
  80. background="none"
  81. :ontouch="true"
  82. canvasId="wangxiaohuaerlingeryilingwuyibhh"
  83. :canvas2d="true"
  84. />
  85. </view>
  86. </view>
  87. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  88. <view class="single">
  89. <view class="title" style="padding-right: 30rpx;">
  90. <view class="title1" style="flex: 1;">销讲能力</view>
  91. </view>
  92. <view class="uchaserbox">
  93. <qiun-data-charts
  94. type="radar"
  95. :chartData="chartData"
  96. :canvas2d="true"
  97. canvasId="wangxiaohuaerlingeryilingwuycsdx"
  98. background="none"
  99. />
  100. </view>
  101. </view>
  102. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  103. </view>
  104. </template>
  105. <script>
  106. export default {
  107. data() {
  108. return {
  109. timepickpickisshow:false,
  110. activeTotal:0,
  111. activeTotal2:0,
  112. lineOptsect:{
  113. "categories": ["2016","2017","2018","2019","2020","2021"],
  114. "series": [
  115. {
  116. "name": "成交量1",
  117. "data": [35,8,25,37,4,20]
  118. },
  119. {
  120. "name": "成交量2",
  121. "data": [40,18,45,44,10,60]
  122. }
  123. ]
  124. },
  125. chartData:{
  126. "categories": ["维度1","维度2","维度3","维度4","维度5","维度6"],
  127. "series": [
  128. {
  129. "name": "成交量",
  130. "data": [90,110,165,195,187,172]
  131. }
  132. ]
  133. }
  134. };
  135. },
  136. onLoad: function(options) { },
  137. methods: {
  138. //是否对比
  139. checkboxChange(){
  140. this.timepickpickisshow=!this.timepickpickisshow;
  141. },
  142. },
  143. }
  144. </script>
  145. <style lang="scss" scoped>
  146. // 对比时间切换
  147. .timepick{
  148. width: 100%;
  149. height: 90rpx;
  150. display: flex;
  151. align-items: center;
  152. background: #FAFAFA;
  153. }
  154. .timepicktime{
  155. width: 260rpx;
  156. height: 50rpx;
  157. border: 1rpx solid #E0E0E0;
  158. margin-left: 30rpx;
  159. display: flex;
  160. background: #FFFFFF;
  161. }
  162. .timepicktime>view:nth-of-type(1){
  163. width: 210rpx;
  164. height: 100%;
  165. line-height: 50rpx;
  166. font-size: 26rpx;
  167. font-weight: 400;
  168. text-align: center;
  169. }
  170. .timepicktime>view:nth-of-type(2){
  171. width: 50rpx;
  172. height: 100%;
  173. border-left: 1px solid #E0E0E0;
  174. }
  175. .timepickpick{
  176. width: 110rpx;
  177. height: 50rpx;
  178. margin-left: 30rpx;
  179. display: flex;
  180. align-items: center;
  181. }
  182. .Underimg{
  183. width: 50rpx;
  184. height:50rpx;
  185. margin-top: -2rpx;
  186. }
  187. </style>