equipmentStatusList.vue 20 KB

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