Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

TrendAnalysis.vue 39 KiB

2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442
  1. <template>
  2. <view>
  3. <view class="timetabct">
  4. <view class="timetabctview">
  5. <view :class="{ activecllasscet: activeTotal == 0 }" @click="tabtimetap(0)">7天</view>
  6. </view>
  7. <view class="timetabctview">
  8. <view :class="{ activecllasscet: activeTotal == 1 }" @click="tabtimetap(1)">15天</view>
  9. </view>
  10. <view class="timetabctview">
  11. <view :class="{ activecllasscet: activeTotal == 2 }" @click="tabtimetap(2)">30天</view>
  12. </view>
  13. </view>
  14. <view class="timepick">
  15. <view class="timepicktime">
  16. <view @click="tabtimetap(3)">{{sheartime1}}</view>
  17. <view>
  18. <image class="Underimg" src="../../../static/images/Underimg.png" mode=""></image>
  19. </view>
  20. </view>
  21. <view class="timepickpick">
  22. <view @click="checkboxChange()" style="width: 40rpx;height:40rpx;border: 1rpx solid #E0E0E0;">
  23. <image v-if="timepickpickisshow" style="width: 40rpx;height: 40rpx;"
  24. src="../../../static/images/xuanzhong.png" mode=""></image>
  25. </view>
  26. <view style="font-size:26rpx;text-indent: 12rpx;">对比</view>
  27. </view>
  28. <view class="timepicktime" v-if="timepickpickisshow">
  29. <view @click="tabtimetap(4)">{{sheartime2}}</view>
  30. <view>
  31. <image class="Underimg" src="../../../static/images/Underimg.png" mode=""></image>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="timeduibi">
  36. <view class="timeshow">数据起始时间:<text style="color: #333333;">{{kanbanlist.kaishitime}}</text></view>
  37. <view class="timeshow" v-if="kanbanlist.duibitime.length!=0">
  38. 数据对比时间:
  39. <text style="color: #333333;">{{kanbanlist.duibitime}}</text>
  40. </view>
  41. </view>
  42. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  43. <view class="boxzonglan" style="min-height: 100rpx;">
  44. <view class="zonglantit">简报</view>
  45. <view class="zonglanbox">
  46. <view class="grid" v-for="(item,index) in numlist" :key="index"
  47. style="height: auto;padding-bottom: 20rpx;">
  48. <view class="audonum" v-if="item.name=='接待时长'">{{item.name}}/分</view>
  49. <view class="audonum" v-else>{{item.name}}</view>
  50. <view class="num">
  51. <view class="" style="width: 35%;">
  52. {{index==1?item.num+'%':item.num}}
  53. </view>
  54. <view class="comparesize" v-if="compareFlag&&timepickpickisshow">
  55. <text style="margin-right: 10rpx;">对比:{{index==1?item.num1+'%':item.num1}} </text>
  56. <template v-if="item.num2*1 != 0">
  57. <text
  58. :style="{color:item.num2*1>0?'red':'green'}">
  59. <!-- +'%' -->
  60. {{item.num2}}{{ item.name == '平均执行率' ? "%" : "" }}{{item.num2*1 > 0 ? '↑':'↓'}}</text>
  61. </template>
  62. <template v-else>
  63. <!-- +'%' -->
  64. <text
  65. :style="{color:item.num2*1>0?'red':'green'}">{{item.num2}}{{ item.name == '平均执行率' ? "%" : "" }}</text>
  66. </template>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  73. <view class="boxtittab" style="border: none;height: 82rpx;">
  74. <view class="tabbox">
  75. <view :class="{ activecllasscet2: newactiveTotal == 0 }" @click="tabxuanxiangtap(0)">项目</view>
  76. </view>
  77. <view class="tabbox">
  78. <view :class="{ activecllasscet2: newactiveTotal == 1 }" @click="tabxuanxiangtap(1)">顾问</view>
  79. </view>
  80. <view class="tabbox">
  81. <view :class="{ activecllasscet2: newactiveTotal == 2 }" @click="tabxuanxiangtap(2)">团队</view>
  82. </view>
  83. <view class="tabbox">
  84. <view :class="{ activecllasscet2: newactiveTotal == 3 }" @click="tabxuanxiangtap(3)">销讲一级</view>
  85. </view>
  86. <view class="tabbox">
  87. <view :class="{ activecllasscet2: newactiveTotal == 4 }" @click="tabxuanxiangtap(4)">销讲二级</view>
  88. </view>
  89. </view>
  90. <view class="chart">
  91. <view
  92. style="display: flex;justify-content:center;padding-left: 30rpx;padding-right: 30rpx;margin-top: 16rpx;"
  93. v-if="guwenshow&&lopanobj.name" @click="oninputtap()">
  94. <view class="title2-che" style="width: 220rpx;">{{lopanobj.name}}
  95. <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
  96. </view>
  97. </view>
  98. <view style="padding: 30rpx;padding-bottom: 20rpx;align-items: center;" v-if="Selectlevel">
  99. <view style="display: flex;align-items: center;border-bottom: 1px solid #C9C9C9;height: 80rpx;">
  100. <view>选择一级:</view>
  101. <view style="width:75%;">
  102. <input @click="oninputtap2()" v-model="Selectlevelobj.name" type="text" disabled="true"
  103. :border="border" placeholder="请选择" />
  104. </view>
  105. <view>
  106. <image src="https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/qf/more.png"
  107. style="width:12rpx;height:23rpx;margin-left: 16rpx;">
  108. </view>
  109. <!-- <view style="display: flex;justify-content:center;padding-left: 30rpx;padding-right: 30rpx;margin-top: 16rpx;"
  110. v-if="Selectlevelobj.name" @click="oninputtap2()">
  111. <view class="title2-che" style="width: 220rpx;">{{Selectlevelobj.name}}
  112. <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
  113. </view>
  114. </view> -->
  115. </view>
  116. <view style="display: flex;align-items: center;border-bottom: 1px solid #C9C9C9;height: 80rpx;">
  117. <view>选择二级:</view>
  118. <view style="width:75%;">
  119. <input @click="oninputtap3()" v-model="erSelectlevelobj.name" type="text" disabled="true"
  120. :border="border" placeholder="请选择" />
  121. </view>
  122. <view>
  123. <image src="https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/qf/more.png"
  124. style="width:12rpx;height:23rpx;margin-left: 16rpx;">
  125. </view>
  126. <!-- <view style="display: flex;justify-content:center;padding-left: 30rpx;padding-right: 30rpx;margin-top: 16rpx;"
  127. v-if="erSelectlevelobj.name" @click="oninputtap3()">
  128. <view class="title2-che" style="width: 220rpx;">{{erSelectlevelobj.name}}
  129. <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
  130. </view>
  131. </view> -->
  132. </view>
  133. </view>
  134. <view style="display: flex;align-items: center;height: 80rpx;justify-content: center;"
  135. v-if="Selecttuandui&&Selecttuanduiobj.name" @click="oninputtap4()">
  136. <view class="title2-che" style="width: 220rpx;">{{Selecttuanduiobj.name}}
  137. <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
  138. </view>
  139. </view>
  140. <view class="single">
  141. <!-- <view class="danwei" style="margin-top: 10rpx;">销讲词执行率</view> -->
  142. <view class="uchaserbox" :class="{ uchaserboxs : newactiveTotal == 1 || newactiveTotal == 3 }"
  143. v-if="lineOptsect.series.length!=0">
  144. <qiun-data-charts :style="!showCanvas?'display:none':''" :type="linetype" :chartData="lineOptsect"
  145. background="none" :ontouch="true" canvasId="wangxiaohuaerlingeryilingwuyibao" :opts="opts"
  146. :canvas2d="true" />
  147. </view>
  148. <view v-else style="width: 100%;">
  149. <view style="width: 100%;text-align: center;">
  150. <image style="width: 200rpx;height: 200rpx;"
  151. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  152. </view>
  153. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  154. </view>
  155. </view>
  156. </view>
  157. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  158. <view class="single" v-if="timepickpickisshow">
  159. <view class="title">
  160. <view class="title1">对比报表</view>
  161. </view>
  162. <view class="table" v-if="!guwenFlag">
  163. <view v-for="(item,index) in tableDate" :key="index">
  164. <view class="tr">
  165. <view v-for="(item1,index1) in item" :key="index" style="width: 100%;">
  166. <view v-if="index1<item.length-1||index==0" class="td"
  167. style="border-right:1px solid #E0E0E0;">{{item1}}</view>
  168. <view v-if="index>0 && index1==item.length-1" class="td"
  169. style="border-right:1px solid #E0E0E0;" :style="{color:item1*1>0?'red':'green'}">
  170. {{item1==0?'--':item1+'%'}}{{item1*1>0?'↑':item1*1<0?'↓':''}}
  171. </view>
  172. </view>
  173. </view>
  174. </view>
  175. </view>
  176. <view class="table" v-if="guwenFlag" style="width: 100%;">
  177. <scroll-view scroll-x="true" style="white-space: nowrap;">
  178. <view v-for="(item,index) in tableDate" :key="index"
  179. :style="{display:index==0?'inline-block':'block'}">
  180. <view class="tr" style="display: inline-block;">
  181. <view v-for="(item1,index1) in item" :key="index1" class="trd"
  182. style="display: inline-block;">
  183. <view v-if="index==1&&index1>0" class="td" :style="{color:item1*1>0?'red':'green'}"
  184. style="border-right:1px solid #E0E0E0;">
  185. {{item1==0?'--':item1+'%'}}{{item1*1>0?'↑':item1*1<0?'↓':''}}
  186. </view>
  187. <view v-else-if="index>1&&index1>0" class="td" style="border-right:1px solid #E0E0E0;">
  188. {{item1+'%'}}
  189. </view>
  190. <view v-else class="td" style="border-right:1px solid #E0E0E0;">{{item1}}</view>
  191. </view>
  192. </view>
  193. </view>
  194. </scroll-view>
  195. </view>
  196. </view>
  197. <view style="width: 100%;height: 60rpx;"></view>
  198. <u-select v-model="Showhiddenunits" mode="single-column" :list="selectlist" @confirm="confirm"
  199. :default-value="selindexList">
  200. </u-select>
  201. <u-select v-model="Showhiddenunits2" mode="single-column" :list="selectlist2" @confirm="confirm2"
  202. :default-value="selindex">
  203. </u-select>
  204. <u-select v-model="Showhiddenunits3" mode="single-column" :list="selectlist3" @confirm="confirm3"
  205. :default-value="selindex">
  206. </u-select>
  207. <u-select v-model="Showhiddenunits4" mode="single-column" :list="selectlist4" @confirm="confirm4"
  208. :default-value="selindexList4">
  209. </u-select>
  210. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  211. <newcalendar v-model="totalTimeShow2" :planNum='intervaltime' mode="date" @change="totalTimeChange2">
  212. </newcalendar>
  213. <!-- 加载组件 -->
  214. <loading v-model="LOADING"></loading>
  215. </view>
  216. </template>
  217. <script>
  218. import newcalendar from '@/components/newcalendar/newcalendar.vue';
  219. import loading from "@/components/loading/index.vue"
  220. export default {
  221. components: {
  222. newcalendar,
  223. loading
  224. },
  225. data() {
  226. return {
  227. selindexList: [0], // 默认选中第一项
  228. selindexList4: [0], // 默认选中第一项
  229. compareFlag: false,
  230. numlist: [{
  231. name: '接待量',
  232. num: '10',
  233. num1: '0',
  234. num2: '0'
  235. },
  236. {
  237. name: '平均执行率',
  238. num: '10',
  239. num1: '0',
  240. num2: '0'
  241. },
  242. {
  243. name: '接待时长',
  244. num: '10',
  245. num1: '0',
  246. num2: '0'
  247. },
  248. ],
  249. activeTotal: 0, //时间下标
  250. newactiveTotal: 0, //tab下标
  251. totalTimeShow: false,
  252. totalTimeShow2: false,
  253. totalTimeShow3: false,
  254. cWidth: uni.upx2px(690),
  255. cHeight: uni.upx2px(453),
  256. AcHeight: uni.upx2px(500),
  257. kanbanlist: { //录音和测评的数据
  258. kaishitime: '',
  259. duibitime: '',
  260. audonum: '',
  261. audotime: "",
  262. avgDuration: '',
  263. fraction: ''
  264. },
  265. pamect: { //接口参数
  266. houseId: '',
  267. timeType: "4",
  268. firstStartDate: '', //第一次开始时间
  269. firstEndDate: '', //第一次结束时间
  270. lastStartDate: '',
  271. lastEndDate: '',
  272. accountId: '', //顾问ids
  273. marketingId: '', //二级销讲id
  274. deptId: "", //部门id
  275. showStatus: 0
  276. },
  277. linetype: "line",
  278. lineOptsect: {}, //图表数据
  279. Showhiddenunits: false,
  280. selectlist: [],
  281. guwenshow: false,
  282. lopanobj: {
  283. id: '',
  284. name: ''
  285. },
  286. //二级相关
  287. Selectlevel: false,
  288. Selectlevelobj: {
  289. id: '',
  290. name: ''
  291. },
  292. erSelectlevelobj: {
  293. id: '',
  294. name: ''
  295. },
  296. Showhiddenunits2: false,
  297. Showhiddenunits3: false,
  298. selectlist2: [],
  299. selectlist3: [],
  300. //团队相关
  301. Selecttuandui: false,
  302. selectlist4: [],
  303. Selecttuanduiobj: {
  304. id: '',
  305. name: ''
  306. },
  307. Showhiddenunits4: false,
  308. showCanvas: true,
  309. timepickpickisshow: false,
  310. sheartime1: "",
  311. sheartime2: "",
  312. intervaltime: 0,
  313. tableDate: [],
  314. guwenFlag: false,
  315. opts: {}, // 配置项为空
  316. };
  317. },
  318. onLoad(option) {
  319. this.LOADING = true
  320. this.pamect.houseId = uni.getStorageSync('buildingID').id;
  321. this.init()
  322. if (option.type == 1) {
  323. this.timepickpickisshow = true
  324. this.pamect.firstStartDate = option.staTime
  325. this.pamect.firstEndDate = option.endtime
  326. this.pamect.lastStartDate = option.staTime1
  327. this.pamect.lastEndDate = option.endtime1
  328. this.pamect.timeType = ''
  329. this.sheartime1 = `${this.fomatDate(this.pamect.firstStartDate)}-${this.fomatDate(this.pamect.firstEndDate)}`
  330. this.sheartime2 = `${this.fomatDate(this.pamect.lastStartDate)}-${this.fomatDate(this.pamect.lastEndDate)}`
  331. this.tabxuanxiangtap(3)
  332. this.$forceUpdate()
  333. }
  334. },
  335. onPullDownRefresh() {
  336. this.init()
  337. setTimeout(function() {
  338. uni.stopPullDownRefresh();
  339. }, 1000);
  340. },
  341. watch: {
  342. Showhiddenunits(newValue, oldValue) {
  343. this.showCanvas = !newValue
  344. },
  345. Showhiddenunits2(newValue, oldValue) {
  346. this.showCanvas = !newValue
  347. },
  348. Showhiddenunits3(newValue, oldValue) {
  349. this.showCanvas = !newValue
  350. },
  351. Showhiddenunits4(newValue, oldValue) {
  352. this.showCanvas = !newValue
  353. },
  354. totalTimeShow(newValue, oldValue) {
  355. this.showCanvas = !newValue
  356. },
  357. totalTimeShow2(newValue, oldValue) {
  358. this.showCanvas = !newValue
  359. },
  360. totalTimeShow3(newValue, oldValue) {
  361. this.showCanvas = !newValue
  362. },
  363. },
  364. methods: {
  365. // 时间格式转换
  366. fomatDate(date) {
  367. if (!date) return '--'
  368. let arr = date.split(' ')
  369. let str = arr[0]
  370. let result = str.split('-')
  371. return `${result[1]}-${result[2]}`
  372. },
  373. //是否对比
  374. checkboxChange() {
  375. if (this.newactiveTotal == 3) {
  376. uni.showToast({
  377. title: '销讲一级无对比',
  378. duration: 2000
  379. });
  380. return
  381. }
  382. if (this.newactiveTotal == 2) {
  383. if (this.Selecttuanduiobj.id == '') {
  384. uni.showToast({
  385. title: '全部团队无对比',
  386. duration: 2000
  387. });
  388. return
  389. }
  390. }
  391. if (this.timepickpickisshow == true) {
  392. this.timepickpickisshow = false;
  393. this.pamect.showStatus = 0;
  394. this.init()
  395. } else {
  396. this.timepickpickisshow = true;
  397. this.pamect.showStatus = 1;
  398. }
  399. this.activeTotal = 8;
  400. },
  401. init() {
  402. this.$u.post("/cusLvStatistics/lyAndcp", this.pamect).then(data => {
  403. this.pamect.lastStartDate = data.lastStartDate;
  404. this.pamect.lastEndDate = data.lastEndDate;
  405. this.numlist[0].num = data.startSumCustomer
  406. this.numlist[1].num = data.startFraction;
  407. this.numlist[2].num = Math.floor(data.startSumDuration / 60) || 0;
  408. if (data.endSumDuration != null) {
  409. this.compareFlag = true
  410. // return
  411. this.numlist[0].num1 = data.endSumCustomer
  412. this.numlist[1].num1 = data.endFraction;
  413. this.numlist[2].num1 = Math.floor(data.endSumDuration / 60) || 0;
  414. this.numlist[0].num2 = data.contrastSumCustomer
  415. this.numlist[1].num2 = data.contrastFraction;
  416. this.numlist[2].num2 = data.contrastSumDuration || 0;
  417. } else {
  418. this.compareFlag = false
  419. }
  420. this.sheartime1 = data.lastStartDate.substring(5, 10) + "--" + data.lastEndDate.substring(5,
  421. 10);
  422. this.sheartime2 = '请选择';
  423. this.kanbanlist.duibitime = '';
  424. var kaishi = this.DateDiff(data.lastStartDate, data.lastEndDate);
  425. this.kanbanlist.kaishitime = data.lastStartDate + "至" + data.lastEndDate + "(" + kaishi + "天)";
  426. if (this.pamect.showStatus == 1) {
  427. this.sheartime2 = data.firstStartDate.substring(5, 10) + "--" + data.firstEndDate
  428. .substring(5, 10);
  429. var jeishu = this.DateDiff(data.firstStartDate, data.firstEndDate);
  430. this.kanbanlist.duibitime = data.firstStartDate + "至" + data.firstEndDate + "(" + jeishu +
  431. "天)";
  432. }
  433. this.kanbanlist.audonum = data.sumCustomer;
  434. this.kanbanlist.audotime = data.avgDuration;
  435. this.kanbanlist.avgDuration = data.fraction;
  436. this.kanbanlist.fraction = data.fraction;
  437. if (this.newactiveTotal == 0) {
  438. this.ProjectDimension()
  439. } else if (this.newactiveTotal == 1) {
  440. if (this.pamect.accountId == "") {
  441. this.getguwenlist()
  442. } else {
  443. this.ConsultantDimension()
  444. }
  445. } else if (this.newactiveTotal == 2) {
  446. if (this.pamect.deptId == "") {
  447. this.getuanduilist()
  448. } else {
  449. this.TeamCompared()
  450. }
  451. } else if (this.newactiveTotal == 3) {
  452. this.speakingLevel()
  453. } else {
  454. if (this.pamect.marketingId == '') {
  455. this.getonsyiji()
  456. } else {
  457. this.aboutEecondary()
  458. }
  459. }
  460. setTimeout(() => {
  461. this.LOADING = false
  462. }, 1500)
  463. }).catch(e => {
  464. this.LOADING = false
  465. })
  466. },
  467. //起始时间
  468. totalTimeChange(e) {
  469. this.pamect.lastStartDate = e.startDate;
  470. this.pamect.lastEndDate = e.endDate;
  471. var kaishi = this.DateDiff(this.pamect.lastStartDate, this.pamect.lastEndDate)
  472. this.kanbanlist.kaishitime = this.pamect.lastStartDate + "至" + this.pamect.lastEndDate + "(" + kaishi +
  473. "天)";
  474. if (this.pamect.showStatus == 0) {
  475. this.init()
  476. this.totalTimeShow = false;
  477. } else {
  478. if (this.pamect.firstStartDate.length == 0) {
  479. uni.showToast({
  480. title: '请选择对比时间',
  481. duration: 2000
  482. });
  483. } else {
  484. var jshu = this.DateDiff(this.pamect.firstStartDate, this.pamect.firstEndDate)
  485. if (kaishi == jshu) {
  486. this.init()
  487. } else {
  488. uni.showToast({
  489. title: '请选择相同天数',
  490. duration: 2000
  491. });
  492. }
  493. }
  494. this.totalTimeShow = false;
  495. }
  496. },
  497. //对比时间
  498. totalTimeChange2(e) {
  499. console.log(e)
  500. var d = new Date(e.result.replace(/\-/g, '/'));
  501. d.setDate(d.getDate() + this.intervaltime);
  502. var year = d.getFullYear();
  503. var month = d.getMonth() + 1;
  504. if (month < 10) month = '0' + month;
  505. var day = d.getDate();
  506. if (day < 10) day = '0' + day;
  507. this.pamect.firstStartDate = e.result;
  508. this.pamect.firstEndDate = year + '-' + month + '-' + day;
  509. console.log(this.pamect.firstStartDate)
  510. var kaishi = this.DateDiff(this.pamect.lastStartDate, this.pamect.lastEndDate)
  511. var jeishu = this.DateDiff(this.pamect.firstStartDate, this.pamect.firstEndDate)
  512. this.kanbanlist.duibitime = this.pamect.firstStartDate + "至" + this.pamect.firstEndDate + "(" + jeishu +
  513. "天)";
  514. console.log(this.pamect.lastStartDate, this.pamect.lastEndDate, kaishi, jeishu)
  515. if (kaishi == jeishu) {
  516. this.init()
  517. } else {
  518. uni.showToast({
  519. title: '请选择相同天数',
  520. duration: 2000
  521. });
  522. }
  523. this.totalTimeShow2 = false;
  524. },
  525. //自定义时间
  526. totalTimeChange3(e) {
  527. this.pamect.firstStartDate = "";
  528. this.pamect.firstEndDate = "";
  529. this.pamect.lastStartDate = e.startDate;
  530. this.pamect.lastEndDate = e.endDate;
  531. this.init()
  532. this.totalTimeShow3 = false;
  533. },
  534. //时间切换
  535. tabtimetap(index) {
  536. if (index == 0) {
  537. this.pamect.timeType = "4";
  538. this.pamect.firstStartDate = '';
  539. this.pamect.firstEndDate = '';
  540. this.pamect.lastStartDate = '';
  541. this.pamect.lastEndDate = '';
  542. this.init()
  543. } else if (index == 1) {
  544. this.pamect.timeType = "5";
  545. this.pamect.firstStartDate = '';
  546. this.pamect.firstEndDate = '';
  547. this.pamect.lastStartDate = '';
  548. this.pamect.lastEndDate = '';
  549. this.init()
  550. } else if (index == 2) {
  551. this.pamect.timeType = "6";
  552. this.pamect.firstStartDate = '';
  553. this.pamect.firstEndDate = '';
  554. this.pamect.lastStartDate = '';
  555. this.pamect.lastEndDate = '';
  556. this.init()
  557. } else if (index == 3) {
  558. this.pamect.timeType = "";
  559. this.totalTimeShow = true;
  560. } else if (index == 4) {
  561. this.pamect.timeType = "";
  562. var kaishi = this.DateDiff(this.pamect.lastStartDate, this.pamect.lastEndDate)
  563. console.log(kaishi)
  564. this.intervaltime = kaishi - 1;
  565. this.totalTimeShow2 = true;
  566. } else {
  567. this.pamect.timeType = "";
  568. this.totalTimeShow3 = true;
  569. }
  570. this.activeTotal = index;
  571. },
  572. //tab切换
  573. tabxuanxiangtap(index) {
  574. this.newactiveTotal = index;
  575. this.guwenshow = false;
  576. this.Selectlevel = false;
  577. this.Selecttuandui = false;
  578. this.init()
  579. if (index == 1) {
  580. this.guwenshow = true;
  581. }
  582. },
  583. //项目维度
  584. ProjectDimension() {
  585. const that = this;
  586. that.lineOptsect = {
  587. categories: [],
  588. series: []
  589. };
  590. this.linetype = "line";
  591. this.$u.post("/cusLvStatistics/teamOrOneValueShow", this.pamect).then(data => {
  592. if (this.pamect.showStatus == 0) {
  593. that.lineOptsect = {
  594. categories: [],
  595. series: [{
  596. name: '起始时间',
  597. data: [],
  598. color: '#7ED3F4'
  599. }]
  600. }
  601. data.lastValue.forEach((child, zxc) => {
  602. that.lineOptsect.categories.push(child.statDate.substring(5, 10))
  603. })
  604. that.lineOptsect.series[0].data = data.lastValue.map(item => item.fraction);
  605. } else {
  606. that.lineOptsect = {
  607. categories: [],
  608. series: [{
  609. name: '起始时间',
  610. data: [],
  611. color: '#7ED3F4'
  612. },
  613. {
  614. name: '对比时间',
  615. data: [],
  616. color: '#FF7070'
  617. },
  618. ]
  619. }
  620. data.firstValue.forEach((item, sdf) => {
  621. data.lastValue.forEach((child, zxc) => {
  622. if (sdf == zxc) {
  623. that.lineOptsect.categories.push(
  624. child.statDate.substring(5, 10) + 'vs' + item.statDate
  625. .substring(5, 10)
  626. )
  627. }
  628. })
  629. })
  630. that.lineOptsect.series[1].data = data.firstValue.map(item => item.fraction);
  631. that.lineOptsect.series[0].data = data.lastValue.map(item => item.fraction)
  632. that.guwenFlag = false
  633. // // 处理表格数据
  634. let arr = [
  635. ['时间', '时段一', '时段二', '变化']
  636. // {
  637. // time:'时间',
  638. // time1:'时段一',
  639. // time2:'时段二',
  640. // compare:'变化'
  641. // },
  642. ]
  643. that.lineOptsect.categories.map((item, index) => {
  644. let newarr = [item, data.lastValue[index].fraction, data.firstValue[index]
  645. .fraction, data.contrast[index].data
  646. ]
  647. // obj.time=item
  648. // obj.time1=data.firstValue[index].fraction
  649. // obj.time2=data.lastValue[index].fraction
  650. // obj.compare=data.contrast[index].data
  651. // arr.push(obj)
  652. arr.push(newarr)
  653. })
  654. // console.log(arr)
  655. that.tableDate = arr
  656. }
  657. });
  658. },
  659. //顾问维度
  660. ConsultantDimension() {
  661. const that = this;
  662. that.lineOptsect = {
  663. categories: [],
  664. series: []
  665. };
  666. this.linetype = "radar";
  667. this.$u.post("/cusLvStatistics/accFirstLevelContrast", this.pamect).then(data => {
  668. // return
  669. let max = data.firstList[0].total
  670. for (let i = 0; i < data.firstList.length; i++) {
  671. if (max < data.firstList[i]) max = data.firstList[i];
  672. }
  673. this.opts = {
  674. ...this.opts,
  675. fontSize: 10,
  676. extra: {
  677. radar: {
  678. max: max + 25
  679. }
  680. }
  681. }
  682. if (this.pamect.showStatus == 0) {
  683. that.lineOptsect = {
  684. categories: [],
  685. series: [{
  686. name: '时段一',
  687. data: [],
  688. color: '#7ED3F4'
  689. }]
  690. }
  691. data.firstList.forEach((item, sdf) => {
  692. that.lineOptsect.categories.push(item.name)
  693. that.lineOptsect.series[0].data.push(data.firstList[sdf].total)
  694. })
  695. console.log(this.lineOptsect, 'console.log(this.lineOptsect)')
  696. // that.lineOptsect.series[0].data = data.lastValue.map(item => item.fraction);
  697. } else {
  698. // 当有对比的时候
  699. that.lineOptsect = {
  700. categories: [],
  701. series: [{
  702. name: '时段一',
  703. data: [],
  704. color: '#7ED3F4'
  705. },
  706. {
  707. name: '时段二',
  708. data: [],
  709. color: '#FF7070'
  710. },
  711. ]
  712. }
  713. data.headerList.forEach((item, sdf) => {
  714. that.lineOptsect.categories.push(item.name)
  715. that.lineOptsect.series[0].data.push(data.firstList[sdf].total)
  716. that.lineOptsect.series[1].data.push(data.secondList[sdf].total)
  717. })
  718. // return
  719. // // 处理表格数据
  720. that.guwenFlag = true
  721. let arr = []
  722. arr[0] = ['时间', ...that.lineOptsect.categories]
  723. arr[1] = ['变化']
  724. arr[2] = ['时段一']
  725. arr[3] = ['时段二']
  726. // console.log(arr)
  727. data.firstList.map((item, index) => {
  728. arr[2].push(item.total)
  729. arr[3].push(data.secondList[index].total)
  730. arr[1].push(data.thirdList[index].total)
  731. })
  732. that.tableDate = arr
  733. console.log(this.lineOptsect, 'console.log(this.lineOptsect)')
  734. }
  735. });
  736. },
  737. // 顾问纬度选择顾问
  738. oninputtap() {
  739. this.Showhiddenunits = true;
  740. },
  741. // 顾问选择确认
  742. confirm(e) {
  743. this.lopanobj.id = e[0].value;
  744. this.lopanobj.name = e[0].label;
  745. this.pamect.accountId = this.lopanobj.id;
  746. this.ConsultantDimension()
  747. this.Showhiddenunits = false;
  748. for (let i = 0; i < this.selectlist.length; i++) {
  749. if (e[0].value == this.selectlist[i].value) {
  750. this.selindexList[0] = i
  751. }
  752. }
  753. },
  754. //获取顾问
  755. getguwenlist() {
  756. this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
  757. houseId: this.pamect.houseId
  758. }).then(data => {
  759. this.selectlist = [];
  760. if (data.length == 0) {
  761. this.lineOptsect = {
  762. categories: [],
  763. series: []
  764. };
  765. this.guwenshow = false;
  766. return
  767. } else {
  768. this.guwenshow = true;
  769. data.forEach(item => {
  770. this.selectlist.push({
  771. value: item.accountId,
  772. label: item.name
  773. })
  774. })
  775. this.lopanobj.id = data[0].accountId;
  776. this.lopanobj.name = data[0].name;
  777. this.pamect.accountId = this.lopanobj.id;
  778. this.ConsultantDimension()
  779. }
  780. })
  781. },
  782. //销讲一级
  783. speakingLevel() {
  784. this.linetype = "radar";
  785. this.lineOptsect = {
  786. categories: [],
  787. series: []
  788. };
  789. this.$u.post("/cusLvStatistics/firstLevelContrast", this.pamect).then(data => {
  790. if (data.length == 0) {
  791. return
  792. } else {
  793. let max = data[0].avgExecutionRate
  794. let list = data.map(item => {
  795. return item.name
  796. });
  797. let list1 = data.map(item => {
  798. if (item.avgExecutionRate == null) {
  799. item.avgExecutionRate = 0
  800. } else {
  801. item.avgExecutionRate = item.avgExecutionRate
  802. }
  803. if (max < item.avgExecutionRate) max = item.avgExecutionRate;
  804. return item.avgExecutionRate
  805. });
  806. this.opts = {
  807. ...this.opts,
  808. fontSize: 10,
  809. extra: {
  810. radar: {
  811. max: max + 25
  812. }
  813. }
  814. }
  815. this.lineOptsect = {
  816. "categories": list,
  817. "series": [{
  818. "name": "销讲一级",
  819. "data": list1
  820. }]
  821. }
  822. }
  823. })
  824. },
  825. //销讲二级
  826. aboutEecondary() {
  827. this.lineOptsect = {};
  828. this.linetype = "line";
  829. this.$u.post("/cusLvStatistics/level2Contrast", this.pamect).then(data => {
  830. if (this.pamect.showStatus == 0) {
  831. this.lineOptsect = {
  832. categories: [],
  833. series: [{
  834. name: '起始时间',
  835. data: [],
  836. color: '#7ED3F4'
  837. }]
  838. }
  839. data.lastList.forEach((item, sdf) => {
  840. this.lineOptsect.categories.push(item.statDate.substring(5, 10))
  841. })
  842. this.lineOptsect.series[0].data = data.lastList.map(item => item.avgExecutionRate);
  843. } else {
  844. this.lineOptsect = {
  845. categories: [],
  846. series: [{
  847. name: '起始时间',
  848. data: [],
  849. color: '#7ED3F4'
  850. },
  851. {
  852. name: '对比时间',
  853. data: [],
  854. color: '#FF7070'
  855. },
  856. ]
  857. }
  858. data.firstList.forEach((item, sdf) => {
  859. data.lastList.forEach((child, zxc) => {
  860. if (sdf == zxc) {
  861. this.lineOptsect.categories.push(
  862. child.statDate.substring(5, 10) + 'vs' + item.statDate
  863. .substring(5, 10)
  864. )
  865. }
  866. })
  867. })
  868. this.lineOptsect.series[1].data = data.firstList.map(item => item.avgExecutionRate);
  869. this.lineOptsect.series[0].data = data.lastList.map(item => item.avgExecutionRate)
  870. let that = this
  871. this.guwenFlag = false
  872. // // 处理表格数据
  873. let arr = [
  874. ['时间', '时段一', '时段二', '变化']
  875. ]
  876. that.lineOptsect.categories.map((item, index) => {
  877. let newarr = [item, data.lastList[
  878. index].avgExecutionRate, data.firstList[index].avgExecutionRate,
  879. data.contrast[index].data
  880. ]
  881. arr.push(newarr)
  882. })
  883. // console.log(arr)
  884. that.tableDate = arr
  885. }
  886. })
  887. },
  888. //销讲二级:获取一级
  889. getonsyiji() {
  890. this.$u.post("/cusLvStatistics/findAllFirstLevel", {
  891. houseId: this.pamect.houseId
  892. }).then(data => {
  893. this.selectlist2 = [];
  894. if (data.length == 0) {
  895. this.Selectlevel = false;
  896. this.lineOptsect = {
  897. categories: [],
  898. series: []
  899. };
  900. return
  901. } else {
  902. this.Selectlevel = true;
  903. data.forEach(item => {
  904. this.selectlist2.push({
  905. value: item.marketingId,
  906. label: item.name
  907. })
  908. })
  909. this.Selectlevelobj.id = data[0].marketingId;
  910. this.Selectlevelobj.name = data[0].name;
  911. this.getonserji(this.Selectlevelobj.id)
  912. }
  913. })
  914. },
  915. //销讲二级:通过一级获取二级
  916. getonserji(ccd) {
  917. this.$u.post("/cusLvStatistics/findLevel2ByFirstLevel", {
  918. houseId: this.pamect.houseId,
  919. marketingId: ccd
  920. }).then(data => {
  921. this.selectlist3 = [];
  922. data.forEach(item => {
  923. this.selectlist3.push({
  924. value: item.marketingId,
  925. label: item.name
  926. })
  927. })
  928. this.erSelectlevelobj.id = data[0].marketingId;
  929. this.erSelectlevelobj.name = data[0].name;
  930. this.pamect.marketingId = this.erSelectlevelobj.id;
  931. this.aboutEecondary()
  932. })
  933. },
  934. //销讲二级:一级选择
  935. oninputtap2() {
  936. this.Showhiddenunits2 = true;
  937. },
  938. //销讲二级:二级选择
  939. oninputtap3() {
  940. if (this.Selectlevelobj.id == "") {
  941. uni.showToast({
  942. title: '请先选择一级',
  943. duration: 2000
  944. });
  945. } else {
  946. this.Showhiddenunits3 = true;
  947. }
  948. },
  949. //销讲二级:一级选择确认
  950. confirm2(e) {
  951. this.Selectlevelobj.id = e[0].value;
  952. this.Selectlevelobj.name = e[0].label;
  953. this.getonserji(this.Selectlevelobj.id)
  954. },
  955. //销讲二级:二级选择确认
  956. confirm3(e) {
  957. this.erSelectlevelobj.id = e[0].value;
  958. this.erSelectlevelobj.name = e[0].label;
  959. this.pamect.marketingId = this.erSelectlevelobj.id;
  960. this.aboutEecondary()
  961. },
  962. //团队请选择
  963. oninputtap4() {
  964. this.Showhiddenunits4 = true;
  965. },
  966. //团队选择确认
  967. confirm4(e) {
  968. this.Selecttuanduiobj.id = e[0].value;
  969. this.Selecttuanduiobj.name = e[0].label;
  970. this.pamect.deptId = this.Selecttuanduiobj.id;
  971. this.pamect.showStatus = 0;
  972. this.pamect.timeType = "4";
  973. this.pamect.firstStartDate = '';
  974. this.pamect.firstEndDate = '';
  975. this.pamect.lastStartDate = '';
  976. this.pamect.lastEndDate = '';
  977. this.activeTotal = 0;
  978. this.timepickpickisshow = false;
  979. this.init()
  980. this.TeamCompared()
  981. for (let i = 0; i < this.selectlist4.length; i++) {
  982. if (e[0].value == this.selectlist4[i].value) {
  983. this.selindexList4[0] = i
  984. }
  985. }
  986. },
  987. //获取团队列表
  988. getuanduilist() {
  989. this.$u.post("/cusLvStatistics/findAllDeptIdByHouseId ", {
  990. houseId: this.pamect.houseId
  991. }).then(data => {
  992. this.selectlist4 = [{
  993. value: "",
  994. label: "全部"
  995. }];
  996. if (data.length == 0) {
  997. this.Selecttuandui = false;
  998. this.lineOptsect = {
  999. categories: [],
  1000. series: []
  1001. };
  1002. return
  1003. } else {
  1004. this.Selecttuandui = true;
  1005. data.forEach(item => {
  1006. this.selectlist4.push({
  1007. value: item.deptId,
  1008. label: item.deptName
  1009. })
  1010. })
  1011. this.Selecttuanduiobj.id = "";
  1012. this.Selecttuanduiobj.name = "全部";
  1013. this.pamect.deptId = this.Selecttuanduiobj.id;
  1014. this.TeamCompared()
  1015. }
  1016. })
  1017. },
  1018. //团队对比
  1019. TeamCompared() {
  1020. const that = this;
  1021. that.lineOptsect = {};
  1022. this.linetype = "line";
  1023. this.$u.post("/cusLvStatistics/teamOrOneValueShowByDept", this.pamect).then(data => {
  1024. if (this.Selecttuanduiobj.id == "") {
  1025. var newlist = [];
  1026. for (var i in data) {
  1027. var ect = data[i].receptionStatList.map(item => {
  1028. if (item.fraction == null) {
  1029. item.fraction = 0
  1030. } else {
  1031. item.fraction = item.fraction
  1032. }
  1033. return item.fraction
  1034. });
  1035. newlist.push({
  1036. name: data[i].deptName,
  1037. data: ect
  1038. })
  1039. }
  1040. var timelist = [];
  1041. for (var i in data) {
  1042. var ect = data[i].receptionStatList.map(item => {
  1043. return item.statDate
  1044. });
  1045. timelist.push({
  1046. name: data[i].deptName,
  1047. data: ect
  1048. })
  1049. }
  1050. var xAxisdata = [];
  1051. timelist[0].data.forEach((item, sdf) => {
  1052. xAxisdata.push(item.substring(5, 10))
  1053. })
  1054. that.lineOptsect = {
  1055. categories: xAxisdata,
  1056. series: newlist
  1057. }
  1058. } else {
  1059. if (this.pamect.showStatus == 0) {
  1060. that.lineOptsect = {
  1061. categories: [],
  1062. series: [{
  1063. name: '起始时间',
  1064. data: [],
  1065. color: '#7ED3F4'
  1066. }]
  1067. }
  1068. data.lastValue.receptionStatList.forEach((item, sdf) => {
  1069. that.lineOptsect.categories.push(item.statDate.substring(5, 10))
  1070. })
  1071. that.lineOptsect.series[0].data = data.lastValue.receptionStatList.map(item => item
  1072. .fraction);
  1073. } else {
  1074. that.lineOptsect = {
  1075. categories: [],
  1076. series: [{
  1077. name: '起始时间',
  1078. data: [],
  1079. color: '#7ED3F4'
  1080. },
  1081. {
  1082. name: '对比时间',
  1083. data: [],
  1084. color: '#FF7070'
  1085. },
  1086. ]
  1087. }
  1088. data.firstValue.receptionStatList.forEach((item, sdf) => {
  1089. data.lastValue.receptionStatList.forEach((child, zxc) => {
  1090. if (sdf == zxc) {
  1091. that.lineOptsect.categories.push(
  1092. child.statDate.substring(5, 10) + 'vs' + item
  1093. .statDate.substring(5, 10)
  1094. )
  1095. }
  1096. })
  1097. })
  1098. that.lineOptsect.series[1].data = data.firstValue.receptionStatList.map(item => item
  1099. .fraction);
  1100. that.lineOptsect.series[0].data = data.lastValue.receptionStatList.map(item => item
  1101. .fraction)
  1102. that.guwenFlag = false
  1103. // 团队处理数据
  1104. // // 处理表格数据
  1105. let arr = [
  1106. ['时间', '时段一', '时段二', '变化']
  1107. // {
  1108. // time:'时间',
  1109. // time1:'时段一',
  1110. // time2:'时段二',
  1111. // compare:'变化'
  1112. // },
  1113. ]
  1114. that.lineOptsect.categories.map((item, index) => {
  1115. let newarr = [item, data
  1116. .lastValue.receptionStatList[index].fraction, data.firstValue
  1117. .receptionStatList[index].fraction, data.contrast
  1118. .receptionStatList[index].data
  1119. ]
  1120. // obj.time=item
  1121. // obj.time1=data.firstValue[index].fraction
  1122. // obj.time2=data.lastValue[index].fraction
  1123. // obj.compare=data.contrast[index].data
  1124. // arr.push(obj)
  1125. arr.push(newarr)
  1126. })
  1127. // console.log(arr)
  1128. that.tableDate = arr
  1129. }
  1130. }
  1131. });
  1132. },
  1133. //算相隔天数
  1134. DateDiff(sDate1, sDate2) {
  1135. var aDate, oDate1, oDate2, iDays;
  1136. aDate = sDate1.split("-");
  1137. oDate1 = new Date(aDate[1] + '/' + aDate[2] + '/' + aDate[0]); //转换为yyyy-MM-dd格式
  1138. aDate = sDate2.split("-");
  1139. oDate2 = new Date(aDate[1] + '/' + aDate[2] + '/' + aDate[0]);
  1140. iDays = parseInt(Math.abs(oDate1 - oDate2) / 1000 / 60 / 60 / 24); //把相差的毫秒数转换为天数
  1141. return iDays + 1; //返回相差天数
  1142. },
  1143. },
  1144. }
  1145. </script>
  1146. <style lang="scss" scoped>
  1147. .title2-che {
  1148. width: 178rpx;
  1149. height: 48rpx;
  1150. background: #FFFFFF;
  1151. border-radius: 6rpx;
  1152. border: 1px solid #E0E0E0;
  1153. line-height: 48rpx;
  1154. font-size: 28rpx;
  1155. font-weight: 400;
  1156. color: #666666;
  1157. text-indent: 12rpx;
  1158. margin-left: 35rpx;
  1159. position: relative;
  1160. .righttochoose {
  1161. width: 18rpx;
  1162. height: 24rpx;
  1163. position: absolute;
  1164. top: 12rpx;
  1165. right: 12rpx;
  1166. }
  1167. }
  1168. .table {
  1169. border: 0px solid darkgray;
  1170. .tr {
  1171. display: flex;
  1172. // width: 100%;
  1173. justify-content: center;
  1174. height: 64rpx;
  1175. align-items: center;
  1176. border-bottom: 1px solid #E0E0E0;
  1177. flex-wrap: nowrap;
  1178. .td {
  1179. text-align: center;
  1180. font-size: 24rpx;
  1181. font-weight: 400;
  1182. color: #333333;
  1183. height: 64rpx;
  1184. line-height: 64rpx;
  1185. // flex-shrink: 0;
  1186. }
  1187. .trd {
  1188. flex-shrink: 0;
  1189. min-width: 300rpx;
  1190. // border-bottom: 1px solid #ccc;
  1191. }
  1192. .th {
  1193. height: 64rpx;
  1194. text-align: center;
  1195. font-size: 28rpx;
  1196. font-weight: 400;
  1197. color: #666666;
  1198. line-height: 64rpx;
  1199. }
  1200. }
  1201. }
  1202. .uchaserbox {
  1203. width: 100%;
  1204. }
  1205. .uchaserboxs {
  1206. width: 100%;
  1207. height: 70vh;
  1208. }
  1209. .activecllasscet2 {
  1210. color: #2671E2;
  1211. border-bottom: 2px solid #2671E2;
  1212. }
  1213. .timeduibi {
  1214. width: 100%;
  1215. background: #FFFFFF;
  1216. padding-bottom: 10rpx;
  1217. .timeshow {
  1218. color: #666666;
  1219. width: 100%;
  1220. height: 50rpx;
  1221. font-size: 28rpx;
  1222. line-height: 50rpx;
  1223. text-indent: 30rpx;
  1224. }
  1225. }
  1226. // 顶部时间切换
  1227. .timetabct {
  1228. width: 100%;
  1229. height: 98rpx;
  1230. display: flex;
  1231. align-items: center;
  1232. border-bottom: 1px solid #E0E0E0;
  1233. }
  1234. .timetabctview {
  1235. flex: 1;
  1236. height: 100%;
  1237. display: flex;
  1238. justify-content: center;
  1239. align-items: center;
  1240. }
  1241. .timetabct view {
  1242. width: 94rpx;
  1243. text-align: center;
  1244. height: 100%;
  1245. line-height: 98rpx;
  1246. font-size: 28rpx;
  1247. font-family: PingFangSC-Regular, PingFang SC;
  1248. font-weight: 400;
  1249. color: #666666;
  1250. }
  1251. .activecllasscet {
  1252. border-bottom: 2px solid #2671E2;
  1253. }
  1254. // 对比时间切换
  1255. .timepick {
  1256. width: 100%;
  1257. height: 90rpx;
  1258. display: flex;
  1259. align-items: center;
  1260. background: #FFFFFF;
  1261. }
  1262. .timepicktime {
  1263. width: 260rpx;
  1264. height: 50rpx;
  1265. border: 1rpx solid #E0E0E0;
  1266. margin-left: 30rpx;
  1267. display: flex;
  1268. background: #FFFFFF;
  1269. }
  1270. .timepicktime>view:nth-of-type(1) {
  1271. width: 210rpx;
  1272. height: 100%;
  1273. line-height: 50rpx;
  1274. font-size: 26rpx;
  1275. font-weight: 400;
  1276. text-align: center;
  1277. }
  1278. .timepicktime>view:nth-of-type(2) {
  1279. width: 49rpx;
  1280. height: 100%;
  1281. // border-left: 1px solid #E0E0E0;
  1282. }
  1283. .timepickpick {
  1284. width: 110rpx;
  1285. height: 50rpx;
  1286. margin-left: 30rpx;
  1287. display: flex;
  1288. align-items: center;
  1289. }
  1290. .Underimg {
  1291. width: 50rpx;
  1292. height: 50rpx;
  1293. margin-top: -2rpx;
  1294. }
  1295. .timeButton {
  1296. width: 100%;
  1297. height: 60rpx;
  1298. display: flex;
  1299. color: #b1b1b1;
  1300. font-size: 28rpx;
  1301. .item {
  1302. text-align: center;
  1303. line-height: 60rpx;
  1304. padding-left: 12rpx;
  1305. padding-right: 12rpx;
  1306. border-radius: 8rpx;
  1307. border: 1px solid #E0E0E0;
  1308. margin-right: 20rpx;
  1309. &.active {
  1310. color: #FFFFFF;
  1311. background-color: #2671E2;
  1312. }
  1313. }
  1314. }
  1315. .boardbox {
  1316. width: 100%;
  1317. height: 172rpx;
  1318. display: flex;
  1319. align-items: center;
  1320. background: #F4F8FD;
  1321. border-radius: 8rpx;
  1322. margin-top: 28rpx;
  1323. .boardbox-zuo {
  1324. width: 50%;
  1325. height: 120rpx;
  1326. border-right: 1px solid #E0E0E0;
  1327. }
  1328. .boardbox-you {
  1329. width: 50%;
  1330. height: 120rpx;
  1331. }
  1332. .boardbox-text1 {
  1333. width: 100%;
  1334. text-align: center;
  1335. font-size: 28rpx;
  1336. color: #333333;
  1337. }
  1338. .boardbox-text2 {
  1339. width: 100%;
  1340. text-align: center;
  1341. font-size: 26rpx;
  1342. color: #333333;
  1343. margin-top: 10rpx;
  1344. }
  1345. }
  1346. .comparesize {
  1347. flex: 1;
  1348. font-size: 24rpx;
  1349. color: #666666;
  1350. margin-top: 10rpx;
  1351. }
  1352. .grid:nth-child(1) {
  1353. border-right: none;
  1354. border-bottom: none;
  1355. }
  1356. .grid:nth-child(3) {
  1357. width: 50.5%;
  1358. }
  1359. </style>