deviceControl.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625
  1. <template>
  2. <view class="device-detail">
  3. <view class="device-detail__header">
  4. <u-icon
  5. size="36"
  6. class="arrow-left"
  7. name="arrow-left"
  8. @click="handleBack"
  9. ></u-icon>
  10. {{ title }}
  11. </view>
  12. <view class="device-detail__body">
  13. <view class="tabs">
  14. <view class="tab-container">
  15. <view class="tab-item" v-if="myuser_type" :class="activeTab === 'pestAnalysis'?'active':''" @click="handleTabClick('pestAnalysis')">
  16. 管理员
  17. </view>
  18. <view class="tab-item" :class="activeTab === 'viewImage'?'active':''" @click="handleTabClick('viewImage')">
  19. 设置
  20. </view>
  21. </view>
  22. </view>
  23. <view class="device-detail-content" v-if="activeTab === 'pestAnalysis'">
  24. <view class="device-detail-item">
  25. <text class="device-detail-label">联网模块</text>
  26. <view class="device-detail-btn-container">
  27. <view class="device-detail-btn" @click="setDeviceContorl('dtu_update')">升级</view>
  28. <view class="device-detail-btn" @click="setDeviceContorl('dtu_reboot')">重启</view>
  29. <!-- <view class="device-detail-btn" @click="showMqttConfig">MQTT配置</view> -->
  30. </view>
  31. </view>
  32. <view class="device-detail-item">
  33. <text class="device-detail-label">板子设置</text>
  34. <view class="device-detail-btn-container">
  35. <!-- <view class="device-detail-btn">查看原始IMEI</view> -->
  36. <view class="device-detail-btn" @click="showMqttConfig('imei')">更改IMEI</view>
  37. </view>
  38. </view>
  39. <view class="device-detail-item">
  40. <text class="device-detail-label">强制操作</text>
  41. <view class="device-detail-btn-container">
  42. <view class="device-detail-btn force-btn" @click="setDeviceContorl('takephoto')">拍照</view>
  43. <view class="device-detail-btn force-btn" @click="setDeviceContorl('update')">升级</view>
  44. <view class="device-detail-btn force-btn" @click="setDeviceContorl('reboot')">重启</view>
  45. <view class="device-detail-btn force-btn" @click="setDeviceContorl('open_shake')">震动开启</view>
  46. <view class="device-detail-btn force-btn" @click="setDeviceContorl('close_shake')">震动关闭</view>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="device-detail-content" style="padding-bottom: 50rpx" v-if="activeTab === 'viewImage'">
  51. <view class="device-detail-viewImage">
  52. <text class="device-detail-label">设备开关:</text>
  53. <u-switch v-model="equipContrlForm.ds" size="40" active-color="#0BBC58" active-value="1" inactive-value="0"></u-switch>
  54. </view>
  55. <view class="device-detail-viewImage">
  56. <text class="device-detail-label">定时模式</text>
  57. </view>
  58. <u-radio-group v-model="equipContrlForm.ts" @change="radioGroupChange" active-color="#0BBC58">
  59. <u-radio
  60. :name="0"
  61. >光控
  62. </u-radio>
  63. <u-radio
  64. :name="1"
  65. >时控
  66. </u-radio>
  67. </u-radio-group>
  68. <view class="device-detail-viewImage">
  69. <text class="device-detail-label">定时时长(h){{ equipContrlForm.tt }}</text>
  70. </view>
  71. <!-- <view class="slider-container">
  72. <view class="slider-min-value">0</view>
  73. <u-slider v-model="equipContrlForm.tt" class="slider" max="100" min="0" active-color="#0BBC58"></u-slider>
  74. <view class="slider-max-value">100</view>
  75. </view> -->
  76. <view class="slider-container">
  77. <view class="slider-min-value">1</view>
  78. <view
  79. class="custom-progress"
  80. @touchstart.stop="onSliderTouchStart($event, 'tt', 1, 10)"
  81. @touchmove.stop.prevent="onSliderTouchMove($event, 1, 10)"
  82. @touchend.stop="onSliderTouchEnd"
  83. @tap.stop="onSliderTap($event, 'tt', 1, 10)"
  84. >
  85. <view class="progress-track">
  86. <view class="progress-fill" :style="{ width: getProgressWidth(equipContrlForm.tt, 1, 10) + '%' }"></view>
  87. <view class="progress-thumb" :style="{ left: getProgressWidth(equipContrlForm.tt, 1, 10) + '%' }"></view>
  88. </view>
  89. </view>
  90. <view class="slider-max-value">10</view>
  91. </view>
  92. <view class="device-detail-viewImage">
  93. <text class="device-detail-label">落虫时间(min){{ equipContrlForm.collt }}</text>
  94. </view>
  95. <!-- <view class="slider-container">
  96. <view class="slider-min-value">0</view>
  97. <u-slider v-model="equipContrlForm.collt" class="slider" max="100" min="0" active-color="#0BBC58"></u-slider>
  98. <view class="slider-max-value">100</view>
  99. </view> -->
  100. <view class="slider-container">
  101. <view class="slider-min-value">1</view>
  102. <view
  103. class="custom-progress"
  104. @touchstart.stop="onSliderTouchStart($event, 'collt', 1, 20)"
  105. @touchmove.stop.prevent="onSliderTouchMove($event, 1, 20)"
  106. @touchend.stop="onSliderTouchEnd"
  107. @tap.stop="onSliderTap($event, 'collt', 1, 20)"
  108. >
  109. <view class="progress-track">
  110. <view class="progress-fill" :style="{ width: getProgressWidth(equipContrlForm.collt, 1, 20) + '%' }"></view>
  111. <view class="progress-thumb" :style="{ left: getProgressWidth(equipContrlForm.collt, 1, 20) + '%' }"></view>
  112. </view>
  113. </view>
  114. <view class="slider-max-value">20</view>
  115. </view>
  116. <view class="device-detail-viewImage">
  117. <text class="device-detail-label">加热时间(min){{ equipContrlForm.htim }}</text>
  118. </view>
  119. <!-- <view class="slider-container">
  120. <view class="slider-min-value">0</view>
  121. <u-slider v-model="equipContrlForm.htim" class="slider" max="100" min="0" active-color="#0BBC58"></u-slider>
  122. <view class="slider-max-value">100</view>
  123. </view> -->
  124. <view class="slider-container">
  125. <view class="slider-min-value">1</view>
  126. <view
  127. class="custom-progress"
  128. @touchstart.stop="onSliderTouchStart($event, 'htim', 1, 20)"
  129. @touchmove.stop.prevent="onSliderTouchMove($event, 1, 20)"
  130. @touchend.stop="onSliderTouchEnd"
  131. @tap.stop="onSliderTap($event, 'htim', 1, 20)"
  132. >
  133. <view class="progress-track">
  134. <view class="progress-fill" :style="{ width: getProgressWidth(equipContrlForm.htim, 1, 20) + '%' }"></view>
  135. <view class="progress-thumb" :style="{ left: getProgressWidth(equipContrlForm.htim, 1, 20) + '%' }"></view>
  136. </view>
  137. </view>
  138. <view class="slider-max-value">20</view>
  139. </view>
  140. <view class="device-detail-viewImage">
  141. <text class="device-detail-label">加热温度(℃){{ equipContrlForm.hst }}</text>
  142. </view>
  143. <!-- <view class="slider-container">
  144. <view class="slider-min-value">0</view>
  145. <u-slider v-model="equipContrlForm.hst" class="slider" max="100" min="0" active-color="#0BBC58"></u-slider>
  146. <view class="slider-max-value">100</view>
  147. </view> -->
  148. <view class="slider-container">
  149. <view class="slider-min-value">75</view>
  150. <view
  151. class="custom-progress"
  152. @touchstart.stop="onSliderTouchStart($event, 'hst', 75, 120)"
  153. @touchmove.stop.prevent="onSliderTouchMove($event, 75, 120)"
  154. @touchend.stop="onSliderTouchEnd"
  155. @tap.stop="onSliderTap($event, 'hst', 75, 120)"
  156. >
  157. <view class="progress-track">
  158. <view class="progress-fill" :style="{ width: getProgressWidth(equipContrlForm.hst, 75, 120) + '%' }"></view>
  159. <view class="progress-thumb" :style="{ left: getProgressWidth(equipContrlForm.hst, 75, 120) + '%' }"></view>
  160. </view>
  161. </view>
  162. <view class="slider-max-value">120</view>
  163. </view>
  164. <view class="device-detail-viewImage">
  165. <text class="device-detail-label">高温保护阀值(℃){{ equipContrlForm.tph }}</text>
  166. </view>
  167. <!-- <view class="slider-container">
  168. <view class="slider-min-value">0</view>
  169. <u-slider v-model="equipContrlForm.tph" class="slider" max="100" min="0" active-color="#0BBC58"></u-slider>
  170. <view class="slider-max-value">100</view>
  171. </view> -->
  172. <view class="slider-container">
  173. <view class="slider-min-value">50</view>
  174. <view
  175. class="custom-progress"
  176. @touchstart.stop="onSliderTouchStart($event, 'tph', 50, 70)"
  177. @touchmove.stop.prevent="onSliderTouchMove($event, 50, 70)"
  178. @touchend.stop="onSliderTouchEnd"
  179. @tap.stop="onSliderTap($event, 'tph', 50, 70)"
  180. >
  181. <view class="progress-track">
  182. <view class="progress-fill" :style="{ width: getProgressWidth(equipContrlForm.tph, 50, 70) + '%' }"></view>
  183. <view class="progress-thumb" :style="{ left: getProgressWidth(equipContrlForm.tph, 50, 70) + '%' }"></view>
  184. </view>
  185. </view>
  186. <view class="slider-max-value">70</view>
  187. </view>
  188. <view class="device-detail-viewImage">
  189. <text class="device-detail-label">低温保护阀值(℃){{ equipContrlForm.tpl }}</text>
  190. </view>
  191. <!-- <view class="slider-container">
  192. <view class="slider-min-value">0</view>
  193. <u-slider v-model="equipContrlForm.tpl" class="slider" max="100" min="0" active-color="#0BBC58"></u-slider>
  194. <view class="slider-max-value">100</view>
  195. </view> -->
  196. <view class="slider-container">
  197. <view class="slider-min-value">-30</view>
  198. <view
  199. class="custom-progress"
  200. @touchstart.stop="onSliderTouchStart($event, 'tpl', -30, 20)"
  201. @touchmove.stop.prevent="onSliderTouchMove($event, -30, 20)"
  202. @touchend.stop="onSliderTouchEnd"
  203. @tap.stop="onSliderTap($event, 'tpl', -30, 20)"
  204. >
  205. <view class="progress-track">
  206. <view class="progress-fill" :style="{ width: getProgressWidth(equipContrlForm.tpl, -30, 20) + '%' }"></view>
  207. <view class="progress-thumb" :style="{ left: getProgressWidth(equipContrlForm.tpl, -30, 20) + '%' }"></view>
  208. </view>
  209. </view>
  210. <view class="slider-max-value">20</view>
  211. </view>
  212. <view class="device-detail-viewImage">
  213. <text class="device-detail-label">数据上传间隔(min){{ equipContrlForm.datt }}</text>
  214. </view>
  215. <!-- <view class="slider-container">
  216. <view class="slider-min-value">0</view>
  217. <u-slider v-model="equipContrlForm.datt" class="slider" max="100" min="0" active-color="#0BBC58"></u-slider>
  218. <view class="slider-max-value">100</view>
  219. </view> -->
  220. <view class="slider-container">
  221. <view class="slider-min-value">10</view>
  222. <view
  223. class="custom-progress"
  224. @touchstart.stop="onSliderTouchStart($event, 'datt', 10, 60)"
  225. @touchmove.stop.prevent="onSliderTouchMove($event, 10, 60)"
  226. @touchend.stop="onSliderTouchEnd"
  227. @tap.stop="onSliderTap($event, 'datt', 10, 60)"
  228. >
  229. <view class="progress-track">
  230. <view class="progress-fill" :style="{ width: getProgressWidth(equipContrlForm.datt, 10, 60) + '%' }"></view>
  231. <view class="progress-thumb" :style="{ left: getProgressWidth(equipContrlForm.datt, 10, 60) + '%' }"></view>
  232. </view>
  233. </view>
  234. <view class="slider-max-value">60</view>
  235. </view>
  236. </view>
  237. </view>
  238. <view class="device-detail-btn-footer" v-if="activeTab === 'viewImage'">
  239. <view class="device-detail-btn" @click="saveSettings">保存</view>
  240. </view>
  241. <u-popup v-model="show" mode="bottom">
  242. <view class="device-detail-content" style="height: 50vh">
  243. <view class="device-detail-item">
  244. <text class="device-detail-label">请输入imei</text>
  245. <u-input v-model="equipContrlForm.imei" placeholder="请输入imei"></u-input>
  246. </view>
  247. </view>
  248. <view class="device-detail-btn-footer">
  249. <view class="device-detail-btn" @click="setDeviceContorl('imei')">保存</view>
  250. </view>
  251. </u-popup>
  252. </view>
  253. </template>
  254. <script>
  255. export default {
  256. data(){
  257. return {
  258. value: 10,
  259. imageList: [],
  260. equipContrlForm: {},
  261. time: '',
  262. activeTab: 'pestAnalysis',
  263. title: '设置控制',
  264. myuser_type: false,
  265. deviceType: '',
  266. location: '',
  267. d_id: '',
  268. show: false,
  269. checked: false
  270. }
  271. },
  272. onLoad(options){
  273. this.d_id = options.d_id
  274. this.getControlDeviceConfigInfo()
  275. uni.getStorage({
  276. key:"myuser_type",
  277. success:(res)=>{
  278. if(Number(res.data) == 1){
  279. this.myuser_type = true
  280. this.activeTab = 'pestAnalysis'
  281. }else{
  282. this.activeTab = 'viewImage'
  283. }
  284. }
  285. })
  286. },
  287. methods: {
  288. getProgressWidth(value, min, max) {
  289. if (max === min) return 0
  290. return ((value - min) / (max - min)) * 100
  291. },
  292. onSliderTouchStart(e, field, min, max) {
  293. this.sliderField = field
  294. this.sliderMin = min
  295. this.sliderMax = max
  296. const query = uni.createSelectorQuery().in(this)
  297. query.select('.custom-progress').boundingClientRect(rect => {
  298. this.sliderRect = rect
  299. }).exec()
  300. this.updateSliderValue(e.touches[0].clientX, field, min, max)
  301. },
  302. onSliderTouchMove(e, min, max) {
  303. if (!this.sliderField || !this.sliderRect) return
  304. this.updateSliderValue(e.touches[0].clientX, this.sliderField, min, max)
  305. },
  306. onSliderTouchEnd() {
  307. this.sliderField = ''
  308. },
  309. onSliderTap(e, field, min, max) {
  310. const query = uni.createSelectorQuery().in(this)
  311. query.select('.custom-progress').boundingClientRect(rect => {
  312. this.sliderRect = rect
  313. this.updateSliderValue(e.detail.x + rect.left, field, min, max)
  314. }).exec()
  315. },
  316. updateSliderValue(clientX, field, min, max) {
  317. if (!this.sliderRect) return
  318. let ratio = (clientX - this.sliderRect.left) / this.sliderRect.width
  319. ratio = Math.max(0, Math.min(1, ratio))
  320. const value = Math.round(min + ratio * (max - min))
  321. this.$set(this.equipContrlForm, field, value)
  322. },
  323. handleBack() {
  324. uni.navigateBack({
  325. delta: 1
  326. });
  327. },
  328. handleTabClick(tab) {
  329. this.activeTab = tab;
  330. },
  331. showMqttConfig(){
  332. this.show = true;
  333. },
  334. closeMqttConfig(){
  335. this.show = false;
  336. },
  337. async setDeviceContorl(type){
  338. const data = {
  339. device_type_id: 3,
  340. d_id: this.d_id,
  341. cmd: type,
  342. }
  343. if(type === 'imei'){
  344. data.imei = this.equipContrlForm.imei
  345. }else{
  346. delete data.imei
  347. }
  348. this.$myRequest({
  349. url: '/api/api_gateway?method=forecast.send_control.admin_device_control',
  350. method: 'POST',
  351. data
  352. }).then(res => {
  353. this.closeMqttConfig()
  354. if (res) {
  355. uni.showToast({
  356. title: '设备控制修改成功!',
  357. icon: 'success',
  358. });
  359. } else {
  360. uni.showToast({
  361. title: '设备控制修改失败',
  362. icon: 'error',
  363. });
  364. }
  365. });
  366. },
  367. saveSettings(){
  368. let newForm = Object.assign({}, this.equipContrlForm) // 深拷贝
  369. newForm.st = newForm.st + ''
  370. newForm.et = newForm.et + ''
  371. newForm.st && newForm.st.slice(0, 2).charAt(0) != '0'
  372. ? newForm.st.slice(0, 2)
  373. : newForm.st.slice(1, 2)
  374. newForm.et =
  375. newForm.et && newForm.et.slice(0, 2).charAt(0) != '0'
  376. ? newForm.et.slice(0, 2)
  377. : newForm.et.slice(1, 2)
  378. for (let k in newForm) {
  379. if (typeof newForm[k] === 'number') {
  380. newForm[k] = newForm[k] + ''
  381. }
  382. }
  383. newForm.st = newForm.st.replace(':00', '')
  384. this.$myRequest({
  385. url: '/api/api_gateway?method=forecast.send_control.device_control',
  386. method: 'POST',
  387. data: {
  388. device_type_id: 3,
  389. d_id: this.d_id,
  390. config: JSON.stringify(newForm)
  391. }
  392. }).then(res => {
  393. if (res) {
  394. // 设备控制修改成功
  395. uni.showToast({
  396. title: '设备控制修改成功!',
  397. icon: 'success',
  398. });
  399. } else {
  400. uni.showToast({
  401. title: '设备控制修改失败',
  402. icon: 'error',
  403. });
  404. }
  405. })
  406. },
  407. async getControlDeviceConfigInfo(){
  408. const res = await this.$myRequest({
  409. url: '/api/api_gateway?method=forecast.send_control.device_control_info',
  410. method: 'POST',
  411. data: {
  412. d_id: this.d_id,
  413. cmd:'paramconf'
  414. },
  415. });
  416. this.equipContrlForm = res
  417. },
  418. }
  419. }
  420. </script>
  421. <style scoped lang="scss">
  422. .device-detail {
  423. display: flex;
  424. width: 100%;
  425. height: calc(100vh - 112rpx);
  426. padding-top: 112rpx;
  427. flex-direction: column;
  428. align-items: center;
  429. background: linear-gradient(180deg, #ffffff00 0%, #F5F6FA 23.64%, #F5F6FA 100%), linear-gradient(102deg, #BFEADD 6.77%, #B8F1E7 40.15%, #B9EEF5 84.02%);
  430. .device-detail__header {
  431. width: 100%;
  432. font-size: 28rpx;
  433. color: #999;
  434. color: #042118;
  435. font-family: 'Source Han Sans CN VF';
  436. font-weight: 700;
  437. position: relative;
  438. text-align: center;
  439. .arrow-left {
  440. position: absolute;
  441. left: 32rpx;
  442. margin-right: 12rpx;
  443. }
  444. }
  445. .device-detail__body {
  446. width: calc(100% - 64rpx);
  447. margin: 0 auto;
  448. border-radius: 16rpx;
  449. overflow-x: hidden;
  450. overflow-y: auto;
  451. // 隐藏滚动条
  452. -ms-overflow-style: none;
  453. scrollbar-width: none;
  454. }
  455. .tabs {
  456. margin: 24rpx 0;
  457. border-radius: 16rpx;
  458. padding: 16rpx 0;
  459. padding-top: 0;
  460. .tab-container{
  461. display: flex;
  462. width: 100%;
  463. height: 88rpx;
  464. line-height: 88rpx;
  465. text-align: center;
  466. font-size: 28rpx;
  467. font-weight: 700;
  468. color: #042118;
  469. font-family: 'Source Han Sans CN VF';
  470. }
  471. .tab-item {
  472. margin-right: 40rpx;
  473. color:#999999;
  474. }
  475. .active{
  476. position: relative;
  477. color: #303133;
  478. text-align: center;
  479. font-family: "Source Han Sans CN VF";
  480. font-size: 28rpx;
  481. font-weight: 700;
  482. &::after {
  483. content: '';
  484. position: absolute;
  485. bottom: 10rpx;
  486. left: 50%;
  487. transform: translateX(-50%);
  488. width: 100%;
  489. height: 36rpx;
  490. border-bottom: 6rpx solid #303133;
  491. }
  492. }
  493. }
  494. .device-detail-content{
  495. display: flex;
  496. padding: 24rpx 32rpx;
  497. flex-direction: column;
  498. align-items: flex-start;
  499. gap: 20rpx;
  500. border-radius: 16rpx;
  501. background: #FFF;
  502. .device-detail-item{
  503. .device-detail-label{
  504. color: #303133;
  505. font-family: "Source Han Sans CN VF";
  506. font-size: 28rpx;
  507. font-weight: 400;
  508. }
  509. .device-detail-btn-container{
  510. display: flex;
  511. gap: 24rpx;
  512. margin-top: 12rpx;
  513. }
  514. .device-detail-btn{
  515. display: flex;
  516. padding: 10rpx 16rpx;
  517. justify-content: center;
  518. align-items: center;
  519. gap: 16rpx;
  520. border-radius: 16rpx;
  521. background: #0BBC58;
  522. color: #ffffff;
  523. font-family: "Source Han Sans CN VF";
  524. font-size: 24rpx;
  525. font-weight: 400;
  526. }
  527. .force-btn{
  528. background: #FB4E52;
  529. }
  530. }
  531. .device-detail-viewImage{
  532. width: 100%;
  533. display: flex;
  534. justify-content: space-between;
  535. align-items: center;
  536. padding-bottom: 20rpx;
  537. }
  538. }
  539. .slider-container{
  540. position: relative;
  541. margin-bottom: 20rpx;
  542. .slider-min-value{
  543. position: absolute;
  544. left: 0;
  545. top: -50rpx;
  546. }
  547. .slider{
  548. width: 600rpx;
  549. }
  550. .slider-max-value{
  551. position: absolute;
  552. right: 0;
  553. top: -50rpx;
  554. }
  555. }
  556. .custom-progress{
  557. width: 600rpx;
  558. padding: 0;
  559. .progress-track{
  560. position: relative;
  561. height: 12rpx;
  562. background-color: #ebedf0;
  563. border-radius: 6rpx;
  564. }
  565. .progress-fill{
  566. position: absolute;
  567. left: 0;
  568. top: 0;
  569. height: 100%;
  570. background-color: #0BBC58;
  571. border-radius: 6rpx;
  572. transition: width 0.2s;
  573. }
  574. .progress-thumb{
  575. position: absolute;
  576. top: 50%;
  577. width: 28rpx;
  578. height: 28rpx;
  579. margin-left: -14rpx;
  580. margin-top: -14rpx;
  581. border-radius: 50%;
  582. background-color: #fff;
  583. box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  584. transition: left 0.2s;
  585. }
  586. }
  587. .device-detail-btn-footer{
  588. position: fixed;
  589. bottom: 0;
  590. left: 0;
  591. width: 100%;
  592. height: 112rpx;
  593. line-height: 112rpx;
  594. text-align: center;
  595. font-size: 28rpx;
  596. font-weight: 700;
  597. color: #042118;
  598. font-family: 'Source Han Sans CN VF';
  599. background: #ffffff;
  600. display: flex;
  601. justify-content: center;
  602. align-items: center;
  603. .device-detail-btn{
  604. display: flex;
  605. height: 80rpx;
  606. width: 90%;
  607. margin: 0 auto;
  608. padding: 0rpx 20rpx;
  609. justify-content: center;
  610. align-items: center;
  611. gap: 8rpx;
  612. border-radius: 16rpx;
  613. background:#0BBC58;
  614. color: #ffffff;
  615. text-align: center;
  616. font-family: "Source Han Sans CN VF";
  617. font-size: 14px;
  618. font-style: normal;
  619. font-weight: 500;
  620. }
  621. }
  622. }
  623. </style>