cmb.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  1. <template>
  2. <view>
  3. <view class="status_bar"></view>
  4. <view class="" style="position: relative; top: 44px">
  5. <view style="position: fixed; z-index: 100; width: 100%">
  6. <uni-nav-bar
  7. @clickLeft="clickLeft"
  8. left-icon="back"
  9. left-text="返回"
  10. title="设备详情"
  11. ></uni-nav-bar>
  12. </view>
  13. <view class="info">
  14. <view class="info_item">
  15. <image
  16. :src="$imageURL+'/bigdata_app/image/cb/onBg.png'"
  17. mode=""
  18. class="bgi"
  19. ></image>
  20. <p style="font-size: 32rpx" @click="copy(eqinfo.device_id)">
  21. 设备 ID:{{ eqinfo.device_id }}
  22. <image
  23. :src="$imageURL+'/bigdata_app/image/environment/fuzhi.png'"
  24. mode=""
  25. class="tishi"
  26. ></image>
  27. </p>
  28. <p>设备名称:{{ eqinfo.device_name || '无' }}</p>
  29. <p>
  30. 最近上报时间:<span v-if="eqinfo.uptime">{{
  31. eqinfo.uptime == 0 ? '无' : eqinfo.uptime | timeFormat()
  32. }}</span
  33. ><span v-else>{{
  34. eqinfo.uptime == 0 ? '无' : eqinfo.uptime | timeFormat()
  35. }}</span>
  36. </p>
  37. <p>地址:{{ eqinfo.location || '暂无地址' }}</p>
  38. </view>
  39. </view>
  40. <view class="control">
  41. <view class="control_item" v-if="kongtf" @click="control">
  42. <image
  43. :src="
  44. $imageURL+ '/bigdata_app' +
  45. '/image/environment/forecastResult.png'
  46. "
  47. mode=""
  48. ></image>
  49. <p>预测结果</p>
  50. </view>
  51. </view>
  52. <view class="his_box" v-if="datatf">
  53. <view class="selecttimes" @click="tiemshow = !tiemshow">
  54. <view class="timesbox">
  55. <image
  56. :src="$imageURL+'/bigdata_app/image/prevention/1acfe2751c01d3786cdc49b83d7e505.png'"
  57. mode=""
  58. ></image>
  59. <p>{{ timetab(begintime) }}</p>
  60. <p class="or">~</p>
  61. <p>{{ timetab(end) }}</p>
  62. <u-icon
  63. name="rili"
  64. custom-prefix="custom-icon"
  65. class="icon"
  66. ></u-icon>
  67. </view>
  68. <u-calendar
  69. v-model="tiemshow"
  70. mode="range"
  71. @change="tiemchange"
  72. ></u-calendar>
  73. </view>
  74. <view class="shuju_one">
  75. <view class="canvastishi" v-if="!canvastishiTF && !dataloadingtf">
  76. 暂无数据
  77. </view>
  78. <view class="canvastishi" v-if="dataloadingtf">
  79. <p class="dataloading">加载中</p>
  80. </view>
  81. <canvas
  82. v-show="!tiemshow"
  83. canvas-id="canvasColumnA"
  84. id="canvasColumnA"
  85. class="charts"
  86. @touchstart="touchLineA($event)"
  87. @touchmove="moveLineA($event)"
  88. @touchend="touchEndLineA($event)"
  89. disable-scroll="true"
  90. :style="{
  91. width: cWidth * pixelRatio + 'px',
  92. height: cHeight * pixelRatio + 'px',
  93. transform: 'scale(' + 1 / pixelRatio + ')',
  94. 'margin-left': (-cWidth * (pixelRatio - 1)) / 2 + 'px',
  95. 'margin-top': (-cHeight * (pixelRatio - 1)) / 2 + 'px',
  96. }"
  97. ></canvas>
  98. <canvas
  99. v-show="!tiemshow"
  100. canvas-id="canvasColumnB"
  101. id="canvasColumnB"
  102. class="charts"
  103. @touchstart="touchLineB($event)"
  104. @touchmove="moveLineB($event)"
  105. @touchend="touchEndLineB($event)"
  106. disable-scroll="true"
  107. :style="{
  108. width: cWidth * pixelRatio + 'px',
  109. height: cHeight * pixelRatio + 'px',
  110. transform: 'scale(' + 1 / pixelRatio + ')',
  111. 'margin-left': (-cWidth * (pixelRatio - 1)) / 2 + 'px',
  112. 'margin-top': (-cHeight * (pixelRatio - 1)) / 2 + 'px',
  113. }"
  114. ></canvas>
  115. </view>
  116. <view class="condition">
  117. <scroll-view scroll-top="0" scroll-x="true" class="scroll-X">
  118. <table class="table">
  119. <tr class="tr">
  120. <th
  121. class="th"
  122. v-for="(item, index) in tableHead"
  123. :key="'a' + index"
  124. >
  125. {{ item }}
  126. </th>
  127. </tr>
  128. <tr
  129. class="tr"
  130. v-for="(items, indexs) in historylistdata"
  131. :key="'b' + indexs"
  132. v-if="!forbidden"
  133. >
  134. <td class="td">{{ items.uploadTime | timeFormat() }}</td>
  135. <td class="td">{{ items.dianChiDianYa }}</td>
  136. <td class="td">{{ items.fiftyTuRangHanShuiLiang }}</td>
  137. <td class="td">{{ items.fiftyTuRangWenDu }}</td>
  138. <td class="td">{{ items.fiveTuRangHanShuiLiang }}</td>
  139. <td class="td">{{ items.fiveTuRangWenDu }}</td>
  140. <td class="td">{{ items.kongQiWenDu }}</td>
  141. <td class="td">{{ items.luDianWenDu }}</td>
  142. <td class="td">{{ items.riZhaoShiShu }}</td>
  143. <td class="td">{{ items.shiRunShiJian }}</td>
  144. <td class="td">{{ items.tenTuRangHanShuiLiang }}</td>
  145. <td class="td">{{ items.tenTuRangWenDu }}</td>
  146. <td class="td">{{ items.tianJiangYuLiang }}</td>
  147. <td class="td">{{ items.tuRangDaoDianLv }}</td>
  148. <td class="td">{{ items.twentyFiveTuRangHanShuiLiang }}</td>
  149. <td class="td">{{ items.twentyFiveTuRangWenDu }}</td>
  150. <td class="td">{{ items.twentyTuRangHanShuiLiang }}</td>
  151. <td class="td">{{ items.twentyTuRangWenDu }}</td>
  152. <td class="td">{{ items.xiangDuiShiDu }}</td>
  153. <td class="td">{{ items.xiaoShiJiangYuLiang }}</td>
  154. </tr>
  155. <tr class="tr" v-if="forbidden">
  156. <td class="td" v-for="item in 13">暂无数据</td>
  157. </tr>
  158. </table>
  159. </scroll-view>
  160. <view class="pagenumber">
  161. <button @click="prev">上一页</button>
  162. <view class="pagenumber_page"> 第 {{ page }} 页 </view>
  163. <view class="pagenumber_page"> 共 {{ pagesum }} 页 </view>
  164. <button @click="next">下一页</button>
  165. </view>
  166. </view>
  167. </view>
  168. </view>
  169. </view>
  170. </template>
  171. <script>
  172. import uCharts from '../../components/js_sdk/u-charts/u-charts/u-charts.js';
  173. var canvaColumnA = null;
  174. var canvaColumnB = null;
  175. export default {
  176. data() {
  177. return {
  178. basetype: '',
  179. kongtf: false,
  180. datatf: false,
  181. eqinfo: {},
  182. city: '河南省',
  183. tiemshow: false, //时间筛选弹框
  184. begintime: '', //开始时间
  185. end: '', //结束时间
  186. dataloadingtf: true,
  187. canvastishiTF: false,
  188. device_id: '', //设备ID
  189. tableHead: [
  190. '上报时间',
  191. '电池电压',
  192. '50cm土壤含水量',
  193. '50cm土壤温度',
  194. '5cm土壤含水量',
  195. '5cm土壤温度',
  196. '空气温度',
  197. '露点温度',
  198. '日照时数',
  199. '叶面湿润时间',
  200. '10cm土壤含水量',
  201. '10cm土壤温度',
  202. '天降雨量',
  203. '土壤导电率',
  204. '25cm土壤含水量',
  205. '25cm土壤温度',
  206. '20cm土壤含水量',
  207. '20cm土壤温度',
  208. '相对湿度',
  209. '时降雨量',
  210. ], //表格抬头
  211. forbidden: false,
  212. historylistdata: [], //历史数据
  213. pagesum: 1,
  214. page: 1,
  215. cWidth: '',
  216. cHeight: '',
  217. pixelRatio: 1,
  218. param: {
  219. dianChiDianYa: '电池电压',
  220. fiftyTuRangHanShuiLiang: '50cm土壤含水量',
  221. fiftyTuRangWenDu: '50cm土壤温度',
  222. fiveTuRangHanShuiLiang: '5cm土壤含水量',
  223. fiveTuRangWenDu: '5cm土壤温度',
  224. kongQiWenDu: '空气温度',
  225. luDianWenDu: '露点温度',
  226. riZhaoShiShu: '日照时数',
  227. shiRunShiJian: '叶面湿润时间',
  228. tenTuRangHanShuiLiang: '10cm土壤含水量',
  229. tenTuRangWenDu: '10cm土壤温度',
  230. tianJiangYuLiang: '天降雨量',
  231. tuRangDaoDianLv: '土壤导电率',
  232. twentyFiveTuRangHanShuiLiang: '25cm土壤含水量',
  233. twentyFiveTuRangWenDu: '25cm土壤温度',
  234. twentyTuRangHanShuiLiang: '20cm土壤含水量',
  235. twentyTuRangWenDu: '20cm土壤温度',
  236. xiangDuiShiDu: '相对湿度',
  237. xiaoShiJiangYuLiang: '小时降雨量',
  238. },
  239. color: [
  240. '#ff7b30',
  241. '#f93948',
  242. '#fb2ea4',
  243. '#bc59db',
  244. '#7457ec',
  245. '#307dfd',
  246. '#31bfff',
  247. '#46e9b1',
  248. '#19cd48',
  249. '#b2e409',
  250. '#f0f254',
  251. '#fed000',
  252. '#f06f14',
  253. '#a74040',
  254. '#90bb71',
  255. '#a07635',
  256. '#6502bd',
  257. '#048bbb',
  258. '#9ebb01',
  259. '#cc9202',
  260. '#ff8fa0',
  261. '#a3d55f',
  262. '#d9bedd',
  263. '#00a6b6',
  264. '#236093',
  265. '#009fff',
  266. '#ddc0a6',
  267. '#c4a6dd',
  268. '#dda6a6',
  269. '#779e33',
  270. '#a6ddb0',
  271. ],
  272. };
  273. },
  274. methods: {
  275. copy(item) {
  276. uni.setClipboardData({
  277. data: item,
  278. success: function () {
  279. console.log('success');
  280. },
  281. });
  282. },
  283. control() {
  284. //设备控制
  285. uni.navigateTo({
  286. url: './forecastResult?id=' + this.eqinfo.device_id,
  287. });
  288. },
  289. tiemchange(e) {
  290. console.log(e);
  291. //切换时间
  292. // this.begintime = parseInt(+new Date(e.startDate) / 1000);
  293. this.begintime = parseInt(+new Date(`${e.startDate} 00:00:00`) / 1000);
  294. this.end = parseInt(+new Date(`${e.endDate} 00:00:00`) / 1000);
  295. this.histprydatas();
  296. this.getChartLine();
  297. },
  298. timetab(e) {
  299. //时间转换
  300. e = new Date(e * 1000);
  301. var year = e.getFullYear();
  302. var month =
  303. e.getMonth() + 1 < 10 ? '0' + (e.getMonth() + 1) : e.getMonth() + 1;
  304. var day = e.getDate() < 10 ? '0' + e.getDate() : e.getDate();
  305. var time = year + '/' + month + '/' + day;
  306. return time;
  307. },
  308. // 表格数据
  309. async histprydatas() {
  310. //表格历史数据
  311. const res = await this.$myRequest({
  312. url: '/api/api_gateway?method=wheat.wheat.wheat_data_list',
  313. data: {
  314. device_id: this.eqinfo.device_id,
  315. page: this.page,
  316. begin: this.begintime,
  317. end: this.end,
  318. },
  319. });
  320. this.pagesum = Math.ceil(res.nums / 10) || 1;
  321. if (this.pagesum > 0) {
  322. var dat = res.sta;
  323. this.historylistdata = [];
  324. for (var i = 0; i < dat.length; i++) {
  325. var item = eval('(' + dat[i] + ')');
  326. var obj = {};
  327. for (var i1 in item) {
  328. // if (i1 == "uploadTime") {
  329. // obj[i1] = this.formatTime(item[i1] * 1000);
  330. // } else {
  331. obj[i1] = item[i1];
  332. // }
  333. }
  334. this.historylistdata.push(obj);
  335. }
  336. } else {
  337. this.historylistdata = [];
  338. }
  339. },
  340. //获取折线图数据
  341. async getChartLine() {
  342. const res = await this.$myRequest({
  343. method: 'POST',
  344. url: '/api/api_gateway?method=wheat.wheat.wheat_data',
  345. data: {
  346. device_id: this.eqinfo.device_id,
  347. begin: this.begintime,
  348. end: this.end,
  349. },
  350. });
  351. this.dataloadingtf = false;
  352. var dat = res;
  353. if (dat.length) {
  354. var regroupData = []; //重组数据
  355. var kindArr = []; //通道数组
  356. var time = [];
  357. var xtitle = [];
  358. for (var i = 0; i < dat.length; i++) {
  359. var item = eval('(' + dat[i] + ')');
  360. console.log(item);
  361. var tim = parseInt(item['uploadTime']) * 1000;
  362. var times = new Date(tim);
  363. xtitle.unshift(
  364. times.getMonth() +
  365. 1 +
  366. '/' +
  367. times.getDate() +
  368. '-' +
  369. times.getHours() +
  370. ':' +
  371. times.getMinutes()
  372. );
  373. time.unshift(tim);
  374. for (var j in item) {
  375. var arr = '';
  376. if (j == 'id' || j == 'uploadTime') {
  377. continue;
  378. } else if (kindArr.indexOf(j) == '-1') {
  379. kindArr.push(j);
  380. regroupData.push({
  381. name: this.param[j],
  382. color: this.color[kindArr.length - 1],
  383. data: [],
  384. });
  385. // arr.push(tim);
  386. arr = parseFloat(item[j]);
  387. regroupData[kindArr.indexOf(j)].data.unshift(arr);
  388. } else {
  389. // arr.push(tim);
  390. // arr.push(parseFloat(item[j]));
  391. arr = parseFloat(item[j]);
  392. regroupData[kindArr.indexOf(j)].data.unshift(arr);
  393. }
  394. }
  395. }
  396. console.log(regroupData);
  397. // 分割折线图
  398. const regroupDataNum = Math.ceil(regroupData.length / 2);
  399. const options1 = regroupData.filter((v, i) => {
  400. return i < regroupDataNum;
  401. });
  402. const options2 = regroupData.filter((v, i) => {
  403. return i >= regroupDataNum;
  404. });
  405. console.log(options1, options1);
  406. this.showColumn('canvasColumnA', xtitle, options1);
  407. this.showColumn('canvasColumnB', xtitle, options2);
  408. this.canvastishiTF = true;
  409. } else {
  410. this.canvastishiTF = false;
  411. this.showColumn('canvasColumnA', xtitle, []);
  412. this.showColumn('canvasColumnB', xtitle, []);
  413. }
  414. },
  415. prev() {
  416. //上一页
  417. if (this.page > 1) {
  418. this.page--;
  419. this.histprydatas();
  420. }
  421. },
  422. next() {
  423. //下一页
  424. if (this.page < this.pagesum) {
  425. this.page++;
  426. this.histprydatas();
  427. }
  428. },
  429. clickLeft() {
  430. uni.navigateBack({
  431. delta: 1,
  432. });
  433. },
  434. showColumn(id, xtitle, xinfo) {
  435. console.log(id);
  436. var _self = this;
  437. const ctx = uni.createCanvasContext(id, this);
  438. if (id === 'canvasColumnA') {
  439. canvaColumnA = new uCharts({
  440. context: ctx,
  441. type: 'line',
  442. legend: {
  443. position: 'top',
  444. },
  445. fontSize: 11,
  446. background: '#FFFFFF',
  447. pixelRatio: 1,
  448. animation: true,
  449. dataLabel: false,
  450. categories: xtitle,
  451. series: xinfo,
  452. enableScroll: true, //开启图表拖拽功能
  453. xAxis: {
  454. disableGrid: true,
  455. type: 'grid',
  456. gridType: 'dash',
  457. itemCount: 4, //x轴单屏显示数据的数量,默认为5个
  458. scrollShow: true, //新增是否显示滚动条,默认false
  459. // scrollAlign: 'left', //滚动条初始位置
  460. scrollBackgroundColor: '#F7F7FF', //默认为 #EFEBEF
  461. scrollColor: '#DEE7F7', //默认为 #A6A6A6
  462. },
  463. yAxis: {},
  464. width: _self.cWidth * 1,
  465. height: _self.cHeight * 1,
  466. extra: {
  467. line: {
  468. type: 'curve',
  469. },
  470. },
  471. });
  472. } else if (id === 'canvasColumnB') {
  473. canvaColumnB = new uCharts({
  474. context: ctx,
  475. type: 'line',
  476. legend: {
  477. position: 'top',
  478. },
  479. fontSize: 11,
  480. background: '#FFFFFF',
  481. pixelRatio: 1,
  482. animation: true,
  483. dataLabel: false,
  484. categories: xtitle,
  485. series: xinfo,
  486. enableScroll: true, //开启图表拖拽功能
  487. xAxis: {
  488. disableGrid: true,
  489. type: 'grid',
  490. gridType: 'dash',
  491. itemCount: 4, //x轴单屏显示数据的数量,默认为5个
  492. scrollShow: true, //新增是否显示滚动条,默认false
  493. // scrollAlign: 'left', //滚动条初始位置
  494. scrollBackgroundColor: '#F7F7FF', //默认为 #EFEBEF
  495. scrollColor: '#DEE7F7', //默认为 #A6A6A6
  496. },
  497. yAxis: {},
  498. width: _self.cWidth * 1,
  499. height: _self.cHeight * 1,
  500. extra: {
  501. line: {
  502. type: 'curve',
  503. },
  504. },
  505. });
  506. }
  507. },
  508. touchLineA(e) {
  509. console.log(e);
  510. canvaColumnA.scrollStart(e);
  511. },
  512. moveLineA(e) {
  513. canvaColumnA.scroll(e);
  514. },
  515. touchEndLineA(e) {
  516. canvaColumnA.scrollEnd(e);
  517. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  518. canvaColumnA.showToolTip(e, {
  519. format: function (item, category) {
  520. return category + ' ' + item.name + ':' + item.data;
  521. },
  522. });
  523. },
  524. touchLineB(e) {
  525. console.log(e);
  526. canvaColumnB.scrollStart(e);
  527. },
  528. moveLineB(e) {
  529. canvaColumnB.scroll(e);
  530. },
  531. touchEndLineB(e) {
  532. canvaColumnB.scrollEnd(e);
  533. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  534. canvaColumnB.showToolTip(e, {
  535. format: function (item, category) {
  536. return category + ' ' + item.name + ':' + item.data;
  537. },
  538. });
  539. },
  540. },
  541. onLoad(option) {
  542. this.eqinfo = JSON.parse(option.shebei);
  543. console.log(this.eqinfo,'病害加载')
  544. this.basetype = this.eqinfo.type||this.eqinfo.equip_type;
  545. this.cWidth = uni.upx2px(650);
  546. this.cHeight = uni.upx2px(500);
  547. this.device_id = option.id;
  548. this.end = parseInt(+new Date() / 1000);
  549. this.begintime = parseInt(this.end - 24 * 60 * 60);
  550. this.histprydatas();
  551. this.getChartLine();
  552. if (this.basetype == 11) {
  553. this.kongtf = this.$QueryPermission(251);
  554. this.datatf = this.$QueryPermission(221);
  555. } else if (this.basetype == 19) {
  556. this.kongtf = this.$QueryPermission(252);
  557. this.datatf = this.$QueryPermission(222);
  558. } else if (this.basetype == 20) {
  559. this.kongtf = this.$QueryPermission(253);
  560. this.datatf = this.$QueryPermission(223);
  561. } else if (this.basetype == 21) {
  562. this.kongtf = this.$QueryPermission(280);
  563. this.datatf = this.$QueryPermission(279);
  564. } else if (this.basetype == 26) {
  565. this.kongtf = this.$QueryPermission(344);
  566. this.datatf = this.$QueryPermission(343);
  567. }
  568. },
  569. };
  570. </script>
  571. <style lang="scss">
  572. .info {
  573. width: 100%;
  574. position: absolute;
  575. top: 44px;
  576. .info_item {
  577. width: 90%;
  578. margin: 0 auto;
  579. height: 240rpx;
  580. padding: 40rpx 50rpx;
  581. position: relative;
  582. box-sizing: border-box;
  583. .bgi {
  584. width: 100%;
  585. height: 100%;
  586. position: absolute;
  587. top: 0;
  588. left: 0;
  589. z-index: -1;
  590. }
  591. p {
  592. font-size: 24rpx;
  593. color: #ffffff;
  594. margin-bottom: 10rpx;
  595. .tishi {
  596. width: 30rpx;
  597. height: 30rpx;
  598. margin: 0rpx 0 0 20rpx;
  599. }
  600. }
  601. }
  602. }
  603. .control {
  604. width: 90%;
  605. position: absolute;
  606. top: 360rpx;
  607. left: 5%;
  608. display: flex;
  609. text-align: center;
  610. // padding: 0 30rpx;
  611. box-sizing: border-box;
  612. .control_item {
  613. width: 128rpx;
  614. height: 120rpx;
  615. width: 20%;
  616. image {
  617. width: 70rpx;
  618. height: 70rpx;
  619. }
  620. p {
  621. font-size: 24rpx;
  622. }
  623. }
  624. }
  625. .his_box {
  626. width: 100%;
  627. top: 270px;
  628. position: relative;
  629. }
  630. .selecttimes {
  631. width: 90%;
  632. box-shadow: 0 0 10rpx #bcb9ca;
  633. padding: 10rpx 20rpx;
  634. box-sizing: border-box;
  635. margin: 0 auto;
  636. font-size: 28rpx;
  637. .timesbox {
  638. display: flex;
  639. justify-content: space-around;
  640. image {
  641. width: 30rpx;
  642. height: 30rpx;
  643. margin-top: 6rpx;
  644. }
  645. .icon {
  646. color: #949494;
  647. text-align: right;
  648. margin-left: 30rpx;
  649. }
  650. }
  651. ::v-deep .u-calendar__action {
  652. display: flex;
  653. justify-content: space-around;
  654. .u-calendar__action__text {
  655. line-height: 25px;
  656. }
  657. }
  658. }
  659. .shuju_one {
  660. width: 90%;
  661. margin: 20px auto;
  662. box-shadow: 0 0 10rpx #bcb9ca;
  663. padding-top: 20rpx;
  664. height: 1000rpx;
  665. .canvastishi {
  666. font-size: 32rpx;
  667. position: absolute;
  668. top: 50%;
  669. left: 50%;
  670. margin-left: -64rpx;
  671. margin-top: -21rpx;
  672. .dataloading:after {
  673. overflow: hidden;
  674. display: inline-block;
  675. vertical-align: bottom;
  676. animation: ellipsis 2s infinite;
  677. content: '\2026';
  678. }
  679. @keyframes ellipsis {
  680. from {
  681. width: 2px;
  682. }
  683. to {
  684. width: 15px;
  685. }
  686. }
  687. }
  688. }
  689. .condition {
  690. display: flex;
  691. flex-wrap: wrap;
  692. width: 90%;
  693. box-shadow: 0 0 10rpx #bcb9ca;
  694. margin: 0 auto 30rpx;
  695. .scroll-X {
  696. width: 95%;
  697. margin: 20rpx auto;
  698. .tr {
  699. display: flex;
  700. overflow: hidden;
  701. .th,
  702. .td {
  703. display: inline-block;
  704. padding: 5rpx;
  705. width: 300rpx;
  706. text-align: center;
  707. height: 52rpx;
  708. line-height: 52rpx;
  709. border: 2rpx solid #f1f1f1;
  710. }
  711. }
  712. .tr:nth-child(2n-1) {
  713. background-color: #f5fff8;
  714. }
  715. .tr:first-child {
  716. background-color: #57c878;
  717. color: #fff;
  718. }
  719. }
  720. .pagenumber {
  721. display: flex;
  722. margin: 20rpx auto;
  723. button {
  724. width: 150rpx;
  725. height: 50rpx;
  726. line-height: 50rpx;
  727. font-size: 26rpx;
  728. text-align: center;
  729. background-color: #57c878;
  730. color: #ffffff;
  731. }
  732. .pagenumber_page {
  733. width: 100rpx;
  734. height: 50rpx;
  735. line-height: 50rpx;
  736. font-size: 26rpx;
  737. text-align: center;
  738. }
  739. }
  740. }
  741. </style>