equipmentStatusList.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695
  1. <!-- 机器状态页面 -->
  2. <template>
  3. <view v-if="merchantList.length>1">
  4. <uni-collapse :accordion="true">
  5. <view class="titleFlag">
  6. <image class="img" src="../../static/img/red.png"></image>
  7. <font class="wenziT">红色代表机器报警</font>
  8. <image class="img" src="../../static/img/green.png"></image>
  9. <font class="wenziT">绿色代表机器正常</font>
  10. </view>
  11. <view class="titlelist" v-for="(merchant,index) in merchantList" :key="merchant.id">
  12. <uni-collapse-item :title="getMerchantTitle(merchant)" :open="index===0">
  13. <view style="padding: 20upx;background-color: aliceblue;">
  14. <view v-if="merchant.equipmentList.length==0" style="text-align: center;">暂无数据</view>
  15. <view v-if="merchant.equipmentList.length>0">
  16. <uni-collapse :show-animation="true">
  17. <view style="position: relative;" v-for="equipment in merchant.equipmentList" :key="equipment.id">
  18. <span class="status-css" :class="equipment.hasTodayAlarm===true?statusError : statusNormal"></span>
  19. <uni-collapse-item :title="getEquipmentTitle(equipment)">
  20. <view style="padding: 20upx;background-color: antiquewhite;">
  21. <view class="swithBox" v-if="equipment.isSleep">
  22. <view class="swichFont">睡眠状态:机器已睡眠</view>
  23. <view class="switch">
  24. <switch style="transform:scale(0.65)" checked @change="change(equipment.id,0)" />
  25. </view>
  26. </view>
  27. <view class="swithBox" v-else>
  28. <view class="swichFont">睡眠状态:未睡眠</view>
  29. <view class="switch">
  30. <switch style="transform:scale(0.65)" :checked="sleepChecked" @change="change(equipment.id,1)" />
  31. </view>
  32. </view>
  33. <view class="line1"></view>
  34. <view class="swithBox" v-if="equipment.eqeStatus==0">
  35. <view class="swichFont">关机:已关机</view>
  36. <view class="switch">
  37. <switch style="transform:scale(0.65)" checked @change="OnOff(equipment.id,1)" />
  38. </view>
  39. </view>
  40. <view class="swithBox" v-else>
  41. <view class="swichFont">关机:未关机</view>
  42. <view class="switch">
  43. <switch style="transform:scale(0.65)" :checked="onffChecked" @change="OnOff(equipment.id,0)" />
  44. </view>
  45. </view>
  46. <view class="line1"></view>
  47. <view><span>机器唯一码:</span><span>{{equipment.clientId}}</span></view>
  48. <view><span>所在地:</span><span>{{equipment.fullName?equipment.fullName:''}}</span></view>
  49. <view><span>炉头温度:</span><span>{{equipment.furnaceTm?equipment.furnaceTm:''}}</span></view>
  50. <view><span>柜内湿度:</span><span>{{equipment.cabinetHd?equipment.cabinetHd:''}}</span></view>
  51. <view><span>柜内温度:</span><span>{{equipment.cabinetTm?equipment.cabinetTm:''}}</span></view>
  52. <view v-if="equipment.hasTodayAlarm">
  53. <view><span>报警内容:</span></view>
  54. <view v-for="(alarm,index) in equipment.alarmList" :key="index">
  55. <view><span class="baojing">{{alarm.occurrenceTime?alarm.occurrenceTime:''}} {{alarm.alarmContent}}
  56. <button v-if="alarm.isEliminate==1" style="color:#BEBEBE;" @click="eliminate(alarm.id)" class="eliminateButton">
  57. <p class="p">已消除</p>
  58. </button>
  59. <button v-if="alarm.isEliminate!=1" type="primary" @click="eliminate(alarm.id)" class="eliminateButton">
  60. <p class="p">消除</p>
  61. </button>
  62. </span></view>
  63. </view>
  64. </view>
  65. <view v-else>
  66. <view><span>报警内容:</span><span>{{equipment.occurrenceTime?equipment.occurrenceTime:''}}
  67. {{equipment.alarmContent}}</span></view>
  68. </view>
  69. </view>
  70. </uni-collapse-item>
  71. </view>
  72. </uni-collapse>
  73. </view>
  74. </view>
  75. </uni-collapse-item>
  76. </view>
  77. </uni-collapse>
  78. </view>
  79. <view v-else>
  80. <uni-collapse :show-animation="true">
  81. <view class="titleFlag">
  82. <image class="img" src="../../static/img/red.png"></image>
  83. <font class="wenziT">{{$t('equipmentStatusList.red')}}</font>
  84. <image class="img" src="../../static/img/green.png"></image>
  85. <font class="wenziT">{{$t('equipmentStatusList.green')}}</font>
  86. </view>
  87. <view class="titlelist" style="position: relative;" v-for="equipment in merchantList[0].equipmentList" :key="equipment.id">
  88. <span class="status-css" :class="equipment.hasTodayAlarm===true?statusError : statusNormal"></span>
  89. <uni-collapse-item :title="getEquipmentTitle(equipment)">
  90. <!-- 睡眠 -->
  91. <view style="padding: 20upx;background-color: antiquewhite;">
  92. <view class="swithBox" v-if="equipment.isSleep">
  93. <view class="swichFont">{{$t('equipmentStatusList.sleep')}}</view>
  94. <view class="switch">
  95. <switch style="transform:scale(0.65)" checked @change="change(equipment.id,0)" />
  96. </view>
  97. </view>
  98. <view class="swithBox" v-else>
  99. <view class="swichFont">{{$t('equipmentStatusList.unsleep')}}</view>
  100. <view class="switch">
  101. <switch style="transform:scale(0.65)" :checked="sleepChecked" @change="change(equipment.id,1)" />
  102. </view>
  103. </view>
  104. <view class="line1"></view>
  105. <!-- 关机 -->
  106. <view class="" v-if="globalUser.open==0">
  107. <!-- 已关机 -->
  108. <view class="swithBox" v-if="equipment.eqeStatus==0">
  109. <view class="swichFont1">{{$t('equipmentStatusList.off')}}</view>
  110. <view class="switch1">
  111. <!-- <switch style="transform:scale(0.65)" checked @change="OnOff(equipment.id,1)" /> -->
  112. <button style="color:#BEBEBE;" @click="OnOff(equipment.id,1)" class="button">
  113. <p class="p">{{$t('equipmentStatusList.kaiqi')}}</p>
  114. </button>
  115. <button type="primary" @click="OnOff(equipment.id,0)" class="button">
  116. <p class="p">{{$t('equipmentStatusList.guanbi')}}</p>
  117. </button>
  118. </view>
  119. </view>
  120. <!-- 已开机 -->
  121. <view class="swithBox" v-else>
  122. <view class="swichFont1">{{$t('equipmentStatusList.on')}}</view>
  123. <view class="switch1">
  124. <!-- <switch style="transform:scale(0.65)" :checked="onffChecked" @change="OnOff(equipment.id,0)" /> -->
  125. <button type="primary" @click="OnOff(equipment.id,1)" class="button">
  126. <p class="p">{{$t('equipmentStatusList.kaiqi')}}</p>
  127. </button>
  128. <button style="color:#BEBEBE;" @click="OnOff(equipment.id,0)" class="button">
  129. <p class="p">{{$t('equipmentStatusList.guanbi')}}</p>
  130. </button>
  131. </view>
  132. </view>
  133. </view>
  134. <view class="line1"></view>
  135. <!-- 远程开门 -->
  136. <view class="opendoor"><span>{{$t('equipmentStatusList.door')}}:</span>
  137. <view class="">
  138. <button type="primary" @click="openDoor(equipment.id)" class="button">
  139. <p class="p">{{$t('equipmentStatusList.open')}}</p>
  140. </button>
  141. </view>
  142. </view>
  143. <!-- 查看定位 -->
  144. <view class="opendoor"><span>{{$t('equipmentStatusList.gps')}}:</span>
  145. <view class="">
  146. <button type="primary" @click="lookMap(equipment.id,equipment.longitude,equipment.latitude)" class="button">
  147. <p class="p">{{$t('equipmentStatusList.look')}}</p>
  148. </button>
  149. </view>
  150. </view>
  151. <view><span>{{$t('equipmentStatusList.equipmentNo')}}:</span><span>{{equipment.clientId}}</span></view>
  152. <view><span>{{$t('equipmentStatusList.area')}}:</span><span>{{equipment.fullName?equipment.fullName:''}}</span></view>
  153. <view><span>{{$t('equipmentStatusList.temperature')}}:</span><span>{{equipment.furnaceTm?equipment.furnaceTm:''}}</span></view>
  154. <view><span>{{$t('equipmentStatusList.humidity')}}:</span><span>{{equipment.cabinetHd?equipment.cabinetHd:''}}</span></view>
  155. <view><span>{{$t('equipmentStatusList.equipmentTemperature')}}:</span><span>{{equipment.cabinetTm?equipment.cabinetTm:''}}</span></view>
  156. <view class="" v-if="equipment.hasTodayAlarm">
  157. <view><span>{{$t('equipmentStatusList.alarm')}}:</span></view>
  158. <view v-for="(alarm,index) in equipment.alarmList" :key="index">
  159. <view>
  160. <span class="baojing">{{alarm.occurrenceTime?alarm.occurrenceTime:''}} {{alarm.alarmContent}}
  161. <button v-if="alarm.isEliminate==1" style="color:#BEBEBE;" @click="eliminate(alarm.id)" class="eliminateButton">
  162. <p class="p">{{$t('equipmentStatusList.yixiaochu')}}</p>
  163. </button>
  164. <button v-if="alarm.isEliminate!=1" type="primary" @click="eliminate(alarm.id)" class="eliminateButton">
  165. <p class="p">{{$t('equipmentStatusList.xiaochu')}}</p>
  166. </button>
  167. </span>
  168. </view>
  169. </view>
  170. </view>
  171. <view class="" v-else>
  172. <view><span>{{$t('equipmentStatusList.alarm')}}:</span><span>{{equipment.occurrenceTime?equipment.occurrenceTime:''}}
  173. {{equipment.alarmContent}}</span></view>
  174. </view>
  175. </view>
  176. </uni-collapse-item>
  177. </view>
  178. </uni-collapse>
  179. </view>
  180. </template>
  181. <script>
  182. import {
  183. mapState,
  184. mapActions,
  185. mapMutations
  186. } from 'vuex'
  187. import uniCollapse from '@/components/uni-collapse/uni-collapse.vue'
  188. import uniCollapseItem from '@/components/uni-collapse-item/uni-collapse-item.vue'
  189. import uniList from '@/components/uni-list/uni-list.vue'
  190. import uniListItem from '@/components/uni-list-item/uni-list-item.vue'
  191. import {
  192. dateUtils
  193. } from '@/common/util.js';
  194. export default {
  195. components: {
  196. uniCollapse,
  197. uniCollapseItem,
  198. uniList,
  199. uniListItem,
  200. },
  201. data() {
  202. return {
  203. globalUser: {},
  204. merchantList: [{
  205. equipmentList: []
  206. }],
  207. extraIcon: {
  208. color: '#4cd964',
  209. size: '22',
  210. type: 'spinner'
  211. },
  212. statusNormal: 'status-normal',
  213. statusError: 'status-error',
  214. sleepChecked: null,
  215. onffChecked: null,
  216. time: null,
  217. timeAll: {
  218. },
  219. input: 0,
  220. }
  221. },
  222. computed: {
  223. ...mapState(['loginUser']),
  224. },
  225. onPullDownRefresh() {
  226. this.getEquipmentListData();
  227. },
  228. onShow() {
  229. this.input = this.input + 1;
  230. this.globalUser = uni.getStorageSync("globalUser");
  231. uni.setNavigationBarTitle({
  232. title: this.$t('equipmentStatusList.title')
  233. });
  234. uni.setTabBarItem({
  235. index: 3,
  236. text: this.$t('tabs.tab4')
  237. });
  238. var token = uni.getStorageSync("token");
  239. if (token.length > 1) {
  240. this.getEquipmentListData();
  241. } else {
  242. uni.reLaunch({
  243. url: '../Login/Login',
  244. });
  245. }
  246. },
  247. methods: {
  248. ...mapActions('chart', ['getEquipmentListByUser']),
  249. getMerchantTitle(merchant) {
  250. return merchant.name ? merchant.name : merchant.username;
  251. },
  252. getEquipmentTitle(equipment) {
  253. return equipment.name ? equipment.name : '暂无名称';
  254. },
  255. getEquipmentListData() {
  256. this.getEquipmentListByUser(this.globalUser)
  257. .then(data => {
  258. this.merchantList = data;
  259. var listName = data[0].equipmentList;
  260. var times = new Map;
  261. if (this.input == 1) {
  262. for (var i = 0; i < listName.length; i++) {
  263. var k = listName[i].id;
  264. times.set(k, null);
  265. }
  266. this.timeAll = times;
  267. }
  268. var listId = data[0].id;
  269. if (listId != null && listId != '1') {
  270. uni.setStorageSync("listName", listName);
  271. }
  272. uni.stopPullDownRefresh();
  273. }, _ => void uni.stopPullDownRefresh());
  274. },
  275. //查看经纬度
  276. lookMap(id,longitude,latitude){
  277. var item={};
  278. item["id"] = id;
  279. item["longitude"] = longitude;
  280. item["latitude"] = latitude;
  281. uni.navigateTo({
  282. // url:'map?item='+ encodeURIComponent(JSON.stringify(item))
  283. url:'../../packageA/pages/equipmentStatus/map?item='+ encodeURIComponent(JSON.stringify(item))
  284. // url:'GoogleMap?item='+ encodeURIComponent(JSON.stringify(item))
  285. // url: '/pages/user/map?item='+ encodeURIComponent(JSON.stringify(item))
  286. });
  287. },
  288. OnOff(id, code) {
  289. var that = this;
  290. // var token = uni.getStorageSync("token");
  291. // uni.request({
  292. // url: that.serverurl + '/TEquipment/onoffStatus',
  293. // data: {
  294. // "equipmentId": id
  295. // },
  296. // header:{
  297. // 'token':token
  298. // },
  299. // method: "POST",
  300. // success: (res) => {
  301. // },
  302. // });
  303. var ddd = this.timeAll.get(id);
  304. if (that.timeAll.get(id) != null) {
  305. var stamp = Date.parse(new Date());
  306. var t = (stamp - that.timeAll.get(id)) / 1000;
  307. if (t < 30) {
  308. var s = 30 - t;
  309. uni.showModal({
  310. title: that.$t('equipmentStatusList.onoff'),
  311. content: that.$t('equipmentStatusList.remainingtime') + s + "s",
  312. success: function(res) {
  313. that.getEquipmentListData();
  314. }
  315. });
  316. return;
  317. }
  318. }
  319. var code1 = code;
  320. if (code1 == 0) {
  321. uni.showModal({
  322. title: that.$t('equipmentStatusList.tip'),
  323. content: that.$t('equipmentStatusList.onoffTip'),
  324. success: function(res) {
  325. if (res.confirm) {
  326. var serverurl = that.serverurl;
  327. var code2 = code1;
  328. var equipmentId = id;
  329. var token = uni.getStorageSync("token");
  330. uni.request({
  331. url: serverurl + '/TEquipment/onOff',
  332. data: {
  333. "adminId": code2,
  334. "equipmentId": equipmentId
  335. },
  336. method: "POST",
  337. header: {
  338. 'token': token
  339. },
  340. success: (res) => {
  341. var list = res.data.data;
  342. that.input = 2;
  343. var timestamp = Date.parse(new Date());
  344. that.timeAll.set(id, timestamp);
  345. var oo = that.timeAll;
  346. // that.time = timestamp;
  347. that.getEquipmentListData();
  348. if (list == 'SUCCESS') {
  349. uni.showModal({
  350. title: that.$t('equipmentStatusList.guanji'),
  351. content: that.$t('equipmentStatusList.tishi'),
  352. success: function(res) {
  353. that.getEquipmentListData();
  354. setTimeout(function() {
  355. that.network(id);
  356. }, 7000);
  357. }
  358. })
  359. } else {
  360. uni.showModal({
  361. title: that.$t('equipmentStatusList.error'),
  362. content: that.$t('equipmentStatusList.guanjierror'),
  363. success: function(res) {
  364. that.onffChecked = true;
  365. that.getEquipmentListData();
  366. }
  367. })
  368. }
  369. }
  370. });
  371. } else if (res.cancel) {
  372. that.onffChecked = false;
  373. that.getEquipmentListData();
  374. }
  375. }
  376. });
  377. } else {
  378. var serverurl = that.serverurl;
  379. var code = code;
  380. var equipmentId = id;
  381. var token = uni.getStorageSync("token");
  382. uni.request({
  383. url: serverurl + '/TEquipment/onOff',
  384. data: {
  385. "adminId": code,
  386. "equipmentId": equipmentId
  387. },
  388. method: "POST",
  389. header: {
  390. 'token': token
  391. },
  392. success: (res) => {
  393. that.input = 2;
  394. var list = res.data.data;
  395. that.getEquipmentListData();
  396. var timestamp = Date.parse(new Date());
  397. that.timeAll.set(id, timestamp);
  398. var oo = that.timeAll;
  399. // that.time = timestamp;
  400. if (list == "SUCCESS") {
  401. uni.showModal({
  402. title: that.$t('equipmentStatusList.kaiji'),
  403. content: that.$t('equipmentStatusList.tishi'),
  404. success: function(res) {
  405. that.getEquipmentListData();
  406. setTimeout(function() {
  407. that.network(id);
  408. }, 7000);
  409. }
  410. })
  411. } else {
  412. uni.showModal({
  413. title: that.$t('equipmentStatusList.error'),
  414. content: that.$t('equipmentStatusList.kaijierror'),
  415. success: function(res) {
  416. that.onffChecked = false;
  417. that.getEquipmentListData();
  418. }
  419. })
  420. }
  421. }
  422. });
  423. }
  424. },
  425. eliminate(id) {
  426. var token = uni.getStorageSync("token");
  427. uni.request({
  428. url: this.serverurl + '/TEquipment/eliminate',
  429. data: {
  430. "id": id
  431. },
  432. method: "POST",
  433. header: {
  434. 'token': token
  435. },
  436. success: (res) => {
  437. uni.showToast({
  438. title: "发送成功",
  439. icon: 'none',
  440. duration: 1000
  441. });
  442. this.getEquipmentListData();
  443. }
  444. });
  445. },
  446. network(id) {
  447. console.log("network");
  448. var token = uni.getStorageSync("token");
  449. var equipmentId = id;
  450. uni.request({
  451. url: this.serverurl + '/TEquipment/checkStatus',
  452. data: {
  453. "equipmentId": id
  454. },
  455. method: "POST",
  456. header: {
  457. 'token': token
  458. },
  459. success: (res) => {
  460. var data = res.data.data;
  461. if (data == 'fail') {
  462. uni.showToast({
  463. title: this.$t('equipmentStatusList.network'),
  464. icon: 'none',
  465. duration: 3000
  466. });
  467. this.getEquipmentListData();
  468. }
  469. }
  470. });
  471. },
  472. openDoor(id) {
  473. var token = uni.getStorageSync("token");
  474. uni.request({
  475. url: this.serverurl + '/TEquipment/openDoor',
  476. data: {
  477. "equipmentId": id
  478. },
  479. method: "POST",
  480. header: {
  481. 'token': token
  482. },
  483. success: (res) => {
  484. uni.showModal({
  485. title: this.$t('equipmentStatusList.open'),
  486. content: this.$t('equipmentStatusList.opensuccess'),
  487. success: function(res) {
  488. }
  489. })
  490. }
  491. });
  492. },
  493. change(id, code) {
  494. var that = this;
  495. var code1 = code;
  496. if (code1 == 1) {
  497. uni.showModal({
  498. title: that.$t('equipmentStatusList.tip'),
  499. content: that.$t('equipmentStatusList.sleepTip'),
  500. success: function(res) {
  501. if (res.confirm) {
  502. var serverurl = that.serverurl;
  503. var code2 = code1;
  504. var equipmentId = id;
  505. var token = uni.getStorageSync("token");
  506. uni.request({
  507. url: serverurl + '/TEquipment/sleep',
  508. data: {
  509. "adminId": code2,
  510. "equipmentId": equipmentId
  511. },
  512. method: "POST",
  513. header: {
  514. 'token': token
  515. },
  516. success: (res) => {
  517. var list = res.data.data;
  518. that.getEquipmentListData();
  519. }
  520. });
  521. } else if (res.cancel) {
  522. that.sleepChecked = false;
  523. that.getEquipmentListData();
  524. }
  525. }
  526. });
  527. } else {
  528. var serverurl = that.serverurl;
  529. var code = code;
  530. var equipmentId = id;
  531. var token = uni.getStorageSync("token");
  532. uni.request({
  533. url: serverurl + '/TEquipment/sleep',
  534. data: {
  535. "adminId": code,
  536. "equipmentId": equipmentId
  537. },
  538. method: "POST",
  539. header: {
  540. 'token': token
  541. },
  542. success: (res) => {
  543. var list = res.data.data;
  544. that.getEquipmentListData();
  545. }
  546. });
  547. }
  548. },
  549. }
  550. }
  551. </script>
  552. <style>
  553. .status-css {
  554. position: absolute;
  555. width: 30upx;
  556. height: 30upx;
  557. right: 86upx;
  558. top: 30upx;
  559. border-radius: 30upx;
  560. color: "#596D83";
  561. font-size: 12upx;
  562. }
  563. .status-error {
  564. background-color: #dd524d
  565. }
  566. .status-normal {
  567. background-color: #4cd964
  568. }
  569. .baojing {
  570. display: flex;
  571. flex-direction: row;
  572. padding-left: 20upx;
  573. }
  574. .titleFlag {
  575. height: 56upx;
  576. background-color: #F8F8F8;
  577. color: #8C959F;
  578. font-size: 22upx;
  579. display: flex;
  580. flex-direction: row;
  581. }
  582. .opendoor {
  583. /* #ifdef H5 */
  584. /* #endif */
  585. padding-top: 10upx;
  586. padding-bottom: 10upx;
  587. /* text-align: center; */
  588. display: flex;
  589. flex-direction: row;
  590. }
  591. .button {
  592. /* #ifdef H5 */
  593. text-align: center;
  594. height: 50upx;
  595. weight: 20upx;
  596. /* #endif */
  597. padding-left: 15upx;
  598. /* padding-top: 2upx; */
  599. }
  600. .eliminateButton {
  601. /* #ifdef H5 */
  602. text-align: center;
  603. height: 50upx;
  604. weight: 20upx;
  605. /* #endif */
  606. padding-left: 15upx;
  607. /* padding-top: 2upx; */
  608. }
  609. .p {
  610. /* #ifdef H5 */
  611. font-size: 28upx;
  612. height: 50upx;
  613. weight: 20upx;
  614. transform: translateY(-14upx);
  615. /* text-align: center; */
  616. /* #endif */
  617. /* padding-bottom: 50upx; */
  618. text-align: center;
  619. padding-left: 13upx;
  620. }
  621. .img {
  622. padding-top: 20upx;
  623. padding-left: 30upx;
  624. width: 15upx;
  625. height: 15upx;
  626. }
  627. .wenziT {
  628. padding-top: 10upx;
  629. padding-left: 10upx;
  630. }
  631. .titlelist {
  632. color: #363D44;
  633. font-size: 16upx;
  634. font-family: "PingFang-SC-Medium";
  635. }
  636. .swithBox {
  637. display: flex;
  638. flex-direction: row;
  639. padding-bottom: 15upx;
  640. padding-top: 5upx;
  641. }
  642. .switch {
  643. width: 100upx;
  644. height: 22upx;
  645. }
  646. .switch1 {
  647. display: flex;
  648. flex-direction: row;
  649. width: 35%;
  650. height: 42upx;
  651. padding-top: 13upx;
  652. padding-left: 72upx;
  653. }
  654. .swichFont {
  655. width: 85%;
  656. padding-top: 12upx;
  657. }
  658. .swichFont1 {
  659. width: 55%;
  660. padding-top: 12upx;
  661. }
  662. .line1 {
  663. width: 100%;
  664. height: 3upx;
  665. background: #000000;
  666. }
  667. </style>