equipmentStatusList.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  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><span>最近刷新时间:</span><span>{{equipment.lastUpdateTime}}</span></view>
  157. <view><span>音量:</span><span>{{equipment.volume?equipment.volume:''}}</span></view>
  158. <view class="" v-if="equipment.hasTodayAlarm">
  159. <view><span>{{$t('equipmentStatusList.alarm')}}:</span></view>
  160. <view v-for="(alarm,index) in equipment.alarmList" :key="index">
  161. <view>
  162. <span class="baojing">{{alarm.occurrenceTime?alarm.occurrenceTime:''}} {{alarm.alarmContent}}
  163. <button v-if="alarm.isEliminate==1" style="color:#BEBEBE;" @click="eliminate(alarm.id)" class="eliminateButton">
  164. <p class="p">{{$t('equipmentStatusList.yixiaochu')}}</p>
  165. </button>
  166. <button v-if="alarm.isEliminate!=1" type="primary" @click="eliminate(alarm.id)" class="eliminateButton">
  167. <p class="p">{{$t('equipmentStatusList.xiaochu')}}</p>
  168. </button>
  169. </span>
  170. </view>
  171. </view>
  172. </view>
  173. <view class="" v-else>
  174. <view><span>{{$t('equipmentStatusList.alarm')}}:</span><span>{{equipment.occurrenceTime?equipment.occurrenceTime:''}}
  175. {{equipment.alarmContent}}</span></view>
  176. </view>
  177. </view>
  178. </uni-collapse-item>
  179. </view>
  180. </uni-collapse>
  181. </view>
  182. </template>
  183. <script>
  184. import {
  185. mapState,
  186. mapActions,
  187. mapMutations
  188. } from 'vuex'
  189. import uniCollapse from '@/components/uni-collapse/uni-collapse.vue'
  190. import uniCollapseItem from '@/components/uni-collapse-item/uni-collapse-item.vue'
  191. import uniList from '@/components/uni-list/uni-list.vue'
  192. import uniListItem from '@/components/uni-list-item/uni-list-item.vue'
  193. import {
  194. dateUtils
  195. } from '@/common/util.js';
  196. export default {
  197. components: {
  198. uniCollapse,
  199. uniCollapseItem,
  200. uniList,
  201. uniListItem,
  202. },
  203. data() {
  204. return {
  205. globalUser: {},
  206. merchantList: [{
  207. equipmentList: []
  208. }],
  209. extraIcon: {
  210. color: '#4cd964',
  211. size: '22',
  212. type: 'spinner'
  213. },
  214. statusNormal: 'status-normal',
  215. statusError: 'status-error',
  216. sleepChecked: null,
  217. onffChecked: null,
  218. time: null,
  219. timeAll: {
  220. },
  221. input: 0,
  222. }
  223. },
  224. computed: {
  225. ...mapState(['loginUser']),
  226. },
  227. onPullDownRefresh() {
  228. this.getEquipmentListData();
  229. },
  230. onShow() {
  231. this.input = this.input + 1;
  232. this.globalUser = uni.getStorageSync("globalUser");
  233. uni.setNavigationBarTitle({
  234. title: this.$t('equipmentStatusList.title')
  235. });
  236. uni.setTabBarItem({
  237. index: 3,
  238. text: this.$t('tabs.tab4')
  239. });
  240. var token = uni.getStorageSync("token");
  241. if (token.length > 1) {
  242. this.getEquipmentListData();
  243. } else {
  244. uni.reLaunch({
  245. url: '../Login/Login',
  246. });
  247. }
  248. },
  249. methods: {
  250. ...mapActions('chart', ['getEquipmentListByUser']),
  251. getMerchantTitle(merchant) {
  252. return merchant.name ? merchant.name : merchant.username;
  253. },
  254. getEquipmentTitle(equipment) {
  255. return equipment.name ? equipment.name : '暂无名称';
  256. },
  257. getEquipmentListData() {
  258. this.getEquipmentListByUser(this.globalUser)
  259. .then(data => {
  260. this.merchantList = data;
  261. var listName = data[0].equipmentList;
  262. var times = new Map;
  263. if (this.input == 1) {
  264. for (var i = 0; i < listName.length; i++) {
  265. var k = listName[i].id;
  266. times.set(k, null);
  267. }
  268. this.timeAll = times;
  269. }
  270. var listId = data[0].id;
  271. if (listId != null && listId != '1') {
  272. uni.setStorageSync("listName", listName);
  273. }
  274. uni.stopPullDownRefresh();
  275. }, _ => void uni.stopPullDownRefresh());
  276. },
  277. //查看经纬度
  278. lookMap(id,longitude,latitude){
  279. var item={};
  280. item["id"] = id;
  281. item["longitude"] = longitude;
  282. item["latitude"] = latitude;
  283. uni.navigateTo({
  284. // url:'map?item='+ encodeURIComponent(JSON.stringify(item))
  285. url:'../../packageA/pages/equipmentStatus/map?item='+ encodeURIComponent(JSON.stringify(item))
  286. // url:'GoogleMap?item='+ encodeURIComponent(JSON.stringify(item))
  287. // url: '/pages/user/map?item='+ encodeURIComponent(JSON.stringify(item))
  288. });
  289. },
  290. OnOff(id, code) {
  291. var that = this;
  292. // var token = uni.getStorageSync("token");
  293. // uni.request({
  294. // url: that.serverurl + '/TEquipment/onoffStatus',
  295. // data: {
  296. // "equipmentId": id
  297. // },
  298. // header:{
  299. // 'token':token
  300. // },
  301. // method: "POST",
  302. // success: (res) => {
  303. // },
  304. // });
  305. var ddd = this.timeAll.get(id);
  306. if (that.timeAll.get(id) != null) {
  307. var stamp = Date.parse(new Date());
  308. var t = (stamp - that.timeAll.get(id)) / 1000;
  309. if (t < 30) {
  310. var s = 30 - t;
  311. uni.showModal({
  312. title: that.$t('equipmentStatusList.onoff'),
  313. content: that.$t('equipmentStatusList.remainingtime') + s + "s",
  314. success: function(res) {
  315. that.getEquipmentListData();
  316. }
  317. });
  318. return;
  319. }
  320. }
  321. var code1 = code;
  322. if (code1 == 0) {
  323. uni.showModal({
  324. title: that.$t('equipmentStatusList.tip'),
  325. content: that.$t('equipmentStatusList.onoffTip'),
  326. success: function(res) {
  327. if (res.confirm) {
  328. var serverurl = that.serverurl;
  329. var code2 = code1;
  330. var equipmentId = id;
  331. var token = uni.getStorageSync("token");
  332. uni.request({
  333. url: serverurl + '/TEquipment/onOff',
  334. data: {
  335. "adminId": code2,
  336. "equipmentId": equipmentId
  337. },
  338. method: "POST",
  339. header: {
  340. 'token': token
  341. },
  342. success: (res) => {
  343. var list = res.data.data;
  344. that.input = 2;
  345. var timestamp = Date.parse(new Date());
  346. that.timeAll.set(id, timestamp);
  347. var oo = that.timeAll;
  348. // that.time = timestamp;
  349. that.getEquipmentListData();
  350. if (list == 'SUCCESS') {
  351. uni.showModal({
  352. title: that.$t('equipmentStatusList.guanji'),
  353. content: that.$t('equipmentStatusList.tishi'),
  354. success: function(res) {
  355. that.getEquipmentListData();
  356. setTimeout(function() {
  357. that.network(id);
  358. }, 7000);
  359. }
  360. })
  361. } else {
  362. uni.showModal({
  363. title: that.$t('equipmentStatusList.error'),
  364. content: that.$t('equipmentStatusList.guanjierror'),
  365. success: function(res) {
  366. that.onffChecked = true;
  367. that.getEquipmentListData();
  368. }
  369. })
  370. }
  371. }
  372. });
  373. } else if (res.cancel) {
  374. that.onffChecked = false;
  375. that.getEquipmentListData();
  376. }
  377. }
  378. });
  379. } else {
  380. var serverurl = that.serverurl;
  381. var code = code;
  382. var equipmentId = id;
  383. var token = uni.getStorageSync("token");
  384. uni.request({
  385. url: serverurl + '/TEquipment/onOff',
  386. data: {
  387. "adminId": code,
  388. "equipmentId": equipmentId
  389. },
  390. method: "POST",
  391. header: {
  392. 'token': token
  393. },
  394. success: (res) => {
  395. that.input = 2;
  396. var list = res.data.data;
  397. that.getEquipmentListData();
  398. var timestamp = Date.parse(new Date());
  399. that.timeAll.set(id, timestamp);
  400. var oo = that.timeAll;
  401. // that.time = timestamp;
  402. if (list == "SUCCESS") {
  403. uni.showModal({
  404. title: that.$t('equipmentStatusList.kaiji'),
  405. content: that.$t('equipmentStatusList.tishi'),
  406. success: function(res) {
  407. that.getEquipmentListData();
  408. setTimeout(function() {
  409. that.network(id);
  410. }, 7000);
  411. }
  412. })
  413. } else {
  414. uni.showModal({
  415. title: that.$t('equipmentStatusList.error'),
  416. content: that.$t('equipmentStatusList.kaijierror'),
  417. success: function(res) {
  418. that.onffChecked = false;
  419. that.getEquipmentListData();
  420. }
  421. })
  422. }
  423. }
  424. });
  425. }
  426. },
  427. eliminate(id) {
  428. var token = uni.getStorageSync("token");
  429. uni.request({
  430. url: this.serverurl + '/TEquipment/eliminate',
  431. data: {
  432. "id": id
  433. },
  434. method: "POST",
  435. header: {
  436. 'token': token
  437. },
  438. success: (res) => {
  439. uni.showToast({
  440. title: "发送成功",
  441. icon: 'none',
  442. duration: 1000
  443. });
  444. this.getEquipmentListData();
  445. }
  446. });
  447. },
  448. network(id) {
  449. console.log("network");
  450. var token = uni.getStorageSync("token");
  451. var equipmentId = id;
  452. uni.request({
  453. url: this.serverurl + '/TEquipment/checkStatus',
  454. data: {
  455. "equipmentId": id
  456. },
  457. method: "POST",
  458. header: {
  459. 'token': token
  460. },
  461. success: (res) => {
  462. var data = res.data.data;
  463. if (data == 'fail') {
  464. uni.showToast({
  465. title: this.$t('equipmentStatusList.network'),
  466. icon: 'none',
  467. duration: 3000
  468. });
  469. this.getEquipmentListData();
  470. }
  471. }
  472. });
  473. },
  474. openDoor(id) {
  475. var token = uni.getStorageSync("token");
  476. uni.request({
  477. url: this.serverurl + '/TEquipment/openDoor',
  478. data: {
  479. "equipmentId": id
  480. },
  481. method: "POST",
  482. header: {
  483. 'token': token
  484. },
  485. success: (res) => {
  486. uni.showModal({
  487. title: this.$t('equipmentStatusList.open'),
  488. content: this.$t('equipmentStatusList.opensuccess'),
  489. success: function(res) {
  490. }
  491. })
  492. }
  493. });
  494. },
  495. change(id, code) {
  496. var that = this;
  497. var code1 = code;
  498. if (code1 == 1) {
  499. uni.showModal({
  500. title: that.$t('equipmentStatusList.tip'),
  501. content: that.$t('equipmentStatusList.sleepTip'),
  502. success: function(res) {
  503. if (res.confirm) {
  504. var serverurl = that.serverurl;
  505. var code2 = code1;
  506. var equipmentId = id;
  507. var token = uni.getStorageSync("token");
  508. uni.request({
  509. url: serverurl + '/TEquipment/sleep',
  510. data: {
  511. "adminId": code2,
  512. "equipmentId": equipmentId
  513. },
  514. method: "POST",
  515. header: {
  516. 'token': token
  517. },
  518. success: (res) => {
  519. var list = res.data.data;
  520. that.getEquipmentListData();
  521. }
  522. });
  523. } else if (res.cancel) {
  524. that.sleepChecked = false;
  525. that.getEquipmentListData();
  526. }
  527. }
  528. });
  529. } else {
  530. var serverurl = that.serverurl;
  531. var code = code;
  532. var equipmentId = id;
  533. var token = uni.getStorageSync("token");
  534. uni.request({
  535. url: serverurl + '/TEquipment/sleep',
  536. data: {
  537. "adminId": code,
  538. "equipmentId": equipmentId
  539. },
  540. method: "POST",
  541. header: {
  542. 'token': token
  543. },
  544. success: (res) => {
  545. var list = res.data.data;
  546. that.getEquipmentListData();
  547. }
  548. });
  549. }
  550. },
  551. }
  552. }
  553. </script>
  554. <style>
  555. .status-css {
  556. position: absolute;
  557. width: 30upx;
  558. height: 30upx;
  559. right: 86upx;
  560. top: 30upx;
  561. border-radius: 30upx;
  562. color: "#596D83";
  563. font-size: 12upx;
  564. }
  565. .status-error {
  566. background-color: #dd524d
  567. }
  568. .status-normal {
  569. background-color: #4cd964
  570. }
  571. .baojing {
  572. display: flex;
  573. flex-direction: row;
  574. padding-left: 20upx;
  575. }
  576. .titleFlag {
  577. height: 56upx;
  578. background-color: #F8F8F8;
  579. color: #8C959F;
  580. font-size: 22upx;
  581. display: flex;
  582. flex-direction: row;
  583. }
  584. .opendoor {
  585. /* #ifdef H5 */
  586. /* #endif */
  587. padding-top: 10upx;
  588. padding-bottom: 10upx;
  589. /* text-align: center; */
  590. display: flex;
  591. flex-direction: row;
  592. }
  593. .button {
  594. /* #ifdef H5 */
  595. text-align: center;
  596. height: 50upx;
  597. weight: 20upx;
  598. /* #endif */
  599. padding-left: 15upx;
  600. /* padding-top: 2upx; */
  601. }
  602. .eliminateButton {
  603. /* #ifdef H5 */
  604. text-align: center;
  605. height: 50upx;
  606. weight: 20upx;
  607. /* #endif */
  608. padding-left: 15upx;
  609. /* padding-top: 2upx; */
  610. }
  611. .p {
  612. /* #ifdef H5 */
  613. font-size: 28upx;
  614. height: 50upx;
  615. weight: 20upx;
  616. transform: translateY(-14upx);
  617. /* text-align: center; */
  618. /* #endif */
  619. /* padding-bottom: 50upx; */
  620. text-align: center;
  621. padding-left: 13upx;
  622. }
  623. .img {
  624. padding-top: 20upx;
  625. padding-left: 30upx;
  626. width: 15upx;
  627. height: 15upx;
  628. }
  629. .wenziT {
  630. padding-top: 10upx;
  631. padding-left: 10upx;
  632. }
  633. .titlelist {
  634. color: #363D44;
  635. font-size: 16upx;
  636. font-family: "PingFang-SC-Medium";
  637. }
  638. .swithBox {
  639. display: flex;
  640. flex-direction: row;
  641. padding-bottom: 15upx;
  642. padding-top: 5upx;
  643. }
  644. .switch {
  645. width: 100upx;
  646. height: 22upx;
  647. }
  648. .switch1 {
  649. display: flex;
  650. flex-direction: row;
  651. width: 35%;
  652. height: 42upx;
  653. padding-top: 13upx;
  654. padding-left: 72upx;
  655. }
  656. .swichFont {
  657. width: 85%;
  658. padding-top: 12upx;
  659. }
  660. .swichFont1 {
  661. width: 55%;
  662. padding-top: 12upx;
  663. }
  664. .line1 {
  665. width: 100%;
  666. height: 3upx;
  667. background: #000000;
  668. }
  669. </style>