Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

1440 рядки
39 KiB

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