acupointEdit.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791
  1. <template>
  2. <view class="page">
  3. <!-- 自定义导航栏 -->
  4. <view class="status-bar" :style="{height: statusBarHeight + 'px'}"></view>
  5. <view class="nav-bar">
  6. <view class="nav-back" @click="goBack">
  7. <image src="/static/public/back.png" mode="aspectFill" class="back-icon"></image>
  8. </view>
  9. <text class="nav-title">穴位定位</text>
  10. <view class="nav-right">
  11. <text class="nav-count">{{acupointList.length}}穴位</text>
  12. </view>
  13. </view>
  14. <!-- 人体模型 + 穴位标注 -->
  15. <scroll-view class="body-scroll" scroll-y :scroll-top="scrollTop" @scroll="onScroll" scroll-with-animation>
  16. <view class="body-content">
  17. <view class="body-wrapper">
  18. <!-- 中线参考 -->
  19. <view class="midline"></view>
  20. <!-- 人体背部剪影 -->
  21. <image
  22. src="/static/device/body-back-silhouette.svg"
  23. mode="aspectFit"
  24. class="body-img"
  25. @load="onImageLoad"
  26. ></image>
  27. <!-- 穴位点 -->
  28. <view
  29. v-for="(point, index) in positionedAcupoints"
  30. :key="point.id"
  31. class="acupoint-dot"
  32. :class="{
  33. 'acupoint-active': selectedIndex === index
  34. }"
  35. :style="{
  36. left: point.screenX + 'px',
  37. top: point.screenY + 'px'
  38. }"
  39. @click="onAcupointTap(index)"
  40. >
  41. <view class="dot-inner"></view>
  42. </view>
  43. </view>
  44. </view>
  45. </scroll-view>
  46. <!-- 穴位列表 -->
  47. <view class="list-section">
  48. <view class="list-header">
  49. <text class="list-title">穴位清单</text>
  50. </view>
  51. <scroll-view class="list-scroll" scroll-y>
  52. <view class="list-grid">
  53. <view
  54. v-for="(point, index) in acupointList"
  55. :key="point.id"
  56. class="list-item"
  57. :class="{
  58. 'list-item-active': selectedIndex === index,
  59. 'list-item-full': point.isSingle
  60. }"
  61. @click="onListItemTap(index)"
  62. >
  63. <view class="item-index" :class="{'item-index-active': selectedIndex === index}">
  64. <text class="index-text">{{index + 1}}</text>
  65. </view>
  66. <text class="item-name">{{point.acupointName}}</text>
  67. </view>
  68. </view>
  69. </scroll-view>
  70. </view>
  71. <!-- 编辑弹窗 -->
  72. <view class="popup-mask" v-if="showPopup" @click="closePopup">
  73. <view class="popup-content" @click.stop>
  74. <view class="popup-header">
  75. <text class="popup-title">编辑穴位参数</text>
  76. <text class="popup-acupoint-name">{{ currentEditAcupoint?.acupointName }}</text>
  77. </view>
  78. <view class="popup-body">
  79. <!-- 侧别 -->
  80. <view class="form-group">
  81. <text class="form-label">侧别</text>
  82. <view class="tags-row">
  83. <view
  84. class="tag-item"
  85. v-for="item in sideOptions"
  86. :key="item"
  87. :class="{'tag-item-active': editForm.side === item}"
  88. @click="editForm.side = item"
  89. >
  90. {{item}}
  91. </view>
  92. </view>
  93. </view>
  94. <!-- 手法 -->
  95. <view class="form-group">
  96. <text class="form-label">手法选择</text>
  97. <view class="tags-row">
  98. <view
  99. class="tag-item"
  100. v-for="item in methodOptions"
  101. :key="item"
  102. :class="{'tag-item-active': editForm.method === item}"
  103. @click="editForm.method = item"
  104. >
  105. {{item}}
  106. </view>
  107. </view>
  108. </view>
  109. <!-- 温度与时间 -->
  110. <view class="form-row-2">
  111. <view class="form-group half-width">
  112. <text class="form-label">温度 (°C)</text>
  113. <view class="stepper">
  114. <view class="stepper-btn" @click="editForm.temperature > 30 && editForm.temperature--">-</view>
  115. <input class="stepper-input" type="number" v-model="editForm.temperature" />
  116. <view class="stepper-btn" @click="editForm.temperature < 60 && editForm.temperature++">+</view>
  117. </view>
  118. </view>
  119. <view class="form-group half-width">
  120. <text class="form-label">时间 (分钟)</text>
  121. <view class="stepper">
  122. <view class="stepper-btn" @click="editForm.duration > 1 && editForm.duration--">-</view>
  123. <input class="stepper-input" type="number" v-model="editForm.duration" />
  124. <view class="stepper-btn" @click="editForm.duration < 60 && editForm.duration++">+</view>
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. <view class="popup-footer">
  130. <view class="btn btn-cancel" @click="closePopup">取消</view>
  131. <view class="btn btn-confirm" @click="saveEdit">确定</view>
  132. </view>
  133. </view>
  134. </view>
  135. <!-- 加载提示 -->
  136. <view class="loading-mask" v-if="loading">
  137. <view class="loading-card">
  138. <view class="loading-spinner"></view>
  139. <text class="loading-text">加载中...</text>
  140. </view>
  141. </view>
  142. </view>
  143. </template>
  144. <script>
  145. import { getBackAcupoints } from '@/utils/api/acupoint.js'
  146. export default {
  147. data() {
  148. return {
  149. statusBarHeight: 44,
  150. loading: false,
  151. acupointList: [],
  152. selectedIndex: -1,
  153. imageReady: false,
  154. // SVG viewBox: 0 0 300 400, 一体式实心剪影
  155. containerWidth: 345,
  156. containerHeight: 460,
  157. // 大椎穴(0,0)在容器中的位置
  158. // 颈根/斜方肌起点(C7)在SVG中 y=78 -> 按比例放大1.15倍
  159. originX: 172.5,
  160. originY: 89.7,
  161. // 毫米到像素缩放比
  162. // 0.5 * 1.15 = 0.575
  163. mmToPixel: 0.575,
  164. // 弹窗表单
  165. showPopup: false,
  166. editForm: {
  167. side: '',
  168. method: '温和灸',
  169. temperature: 45,
  170. duration: 15
  171. },
  172. sideOptions: ['双侧', '中心', '左侧', '右侧'],
  173. methodOptions: ['温和灸', '雀啄灸', '回旋灸'],
  174. scrollTop: 0,
  175. oldScrollTop: 0
  176. }
  177. },
  178. computed: {
  179. /** 当前正在编辑的穴位 */
  180. currentEditAcupoint() {
  181. if (this.selectedIndex >= 0 && this.acupointList[this.selectedIndex]) {
  182. return this.acupointList[this.selectedIndex]
  183. }
  184. return null
  185. },
  186. /** 计算屏幕坐标后的穴位列表 */
  187. positionedAcupoints() {
  188. if (!this.imageReady || this.acupointList.length === 0) return []
  189. return this.acupointList.map(point => {
  190. // coordinateX: 向右为正 (mm), coordinateY: 向下为正 (mm)
  191. // 大椎穴为(0,0)原点
  192. const screenX = this.originX + (point.coordinateX * this.mmToPixel)
  193. const screenY = this.originY + (point.coordinateY * this.mmToPixel)
  194. return {
  195. ...point,
  196. screenX: Math.max(8, Math.min(this.containerWidth - 8, screenX)),
  197. screenY: Math.max(8, Math.min(this.containerHeight - 8, screenY))
  198. }
  199. })
  200. }
  201. },
  202. onLoad() {
  203. const sysInfo = uni.getSystemInfoSync()
  204. this.statusBarHeight = sysInfo.statusBarHeight || 44
  205. this.loadAcupoints()
  206. },
  207. methods: {
  208. goBack() {
  209. uni.navigateBack()
  210. },
  211. onScroll(e) {
  212. this.oldScrollTop = e.detail.scrollTop
  213. },
  214. /** 图片加载完成 */
  215. onImageLoad() {
  216. this.imageReady = true
  217. },
  218. /** 加载穴位数据 */
  219. async loadAcupoints() {
  220. this.loading = true
  221. try {
  222. const data = await getBackAcupoints(4)
  223. if (Array.isArray(data)) {
  224. // 按名称分组并计算平均 Y 坐标,以处理对称穴位
  225. const nameMap = new Map()
  226. data.forEach(point => {
  227. if (!nameMap.has(point.acupointName)) {
  228. nameMap.set(point.acupointName, {
  229. name: point.acupointName,
  230. points: [],
  231. sumY: 0
  232. })
  233. }
  234. const group = nameMap.get(point.acupointName)
  235. group.points.push(point)
  236. group.sumY += point.coordinateY
  237. })
  238. const groups = Array.from(nameMap.values())
  239. groups.forEach(group => {
  240. group.avgY = group.sumY / group.points.length
  241. // 同名穴位按 X 坐标从左到右排序
  242. group.points.sort((a, b) => a.coordinateX - b.coordinateX)
  243. })
  244. // 组之间按平均 Y 坐标从上到下排序
  245. groups.sort((a, b) => a.avgY - b.avgY)
  246. // 重新打平为一维数组,并标记是否为单穴(用于占满整行)
  247. const sortedData = []
  248. groups.forEach(group => {
  249. const isSingle = group.points.length === 1
  250. group.points.forEach(p => {
  251. p.isSingle = isSingle
  252. })
  253. sortedData.push(...group.points)
  254. })
  255. this.acupointList = sortedData
  256. } else {
  257. this.acupointList = []
  258. }
  259. } catch (e) {
  260. console.error('加载穴位数据失败:', e)
  261. uni.showToast({ title: '穴位数据加载失败', icon: 'none' })
  262. this.acupointList = []
  263. } finally {
  264. this.loading = false
  265. // 确保图片加载后穴位可显示
  266. this.$nextTick(() => {
  267. if (!this.imageReady) {
  268. this.imageReady = true
  269. }
  270. })
  271. }
  272. },
  273. /** 点击穴位点 */
  274. onAcupointTap(index) {
  275. this.openPopup(index)
  276. },
  277. /** 点击列表项 */
  278. onListItemTap(index) {
  279. this.openPopup(index)
  280. },
  281. /** 打开编辑弹窗 */
  282. openPopup(index) {
  283. this.selectedIndex = index
  284. const point = this.acupointList[index]
  285. // 初始化表单数据
  286. this.editForm = {
  287. side: point.customSide || this.sideLabel(point.acupointSide) || '中心',
  288. method: point.method || '温和灸',
  289. temperature: point.temperature || 45,
  290. duration: point.duration || 15
  291. }
  292. this.showPopup = true
  293. this.scrollToAcupoint()
  294. },
  295. /** 滚动到选中的穴位 */
  296. scrollToAcupoint() {
  297. this.$nextTick(() => {
  298. const query = uni.createSelectorQuery().in(this)
  299. query.select('.body-scroll').boundingClientRect()
  300. query.select('.acupoint-active').boundingClientRect()
  301. query.exec(res => {
  302. const scrollRes = res[0]
  303. const dotRes = res[1]
  304. if (scrollRes && dotRes) {
  305. const relativeTop = dotRes.top - scrollRes.top
  306. const offset = relativeTop - (scrollRes.height / 2) + (dotRes.height / 2)
  307. if (Math.abs(offset) > 5) {
  308. let newScrollTop = this.oldScrollTop + offset
  309. if (newScrollTop < 0) newScrollTop = 0
  310. this.scrollTop = this.oldScrollTop
  311. this.$nextTick(() => {
  312. this.scrollTop = newScrollTop
  313. })
  314. }
  315. }
  316. })
  317. })
  318. },
  319. /** 关闭弹窗 */
  320. closePopup() {
  321. this.showPopup = false
  322. },
  323. /** 保存编辑结果 */
  324. saveEdit() {
  325. if (this.selectedIndex >= 0) {
  326. const point = this.acupointList[this.selectedIndex]
  327. // 更新穴位列表中的对应数据(使用Vue的响应式需要特殊处理,但这里我们直接改属性,若无法触发视图更新可用$set或splice,但简单修改通常有效)
  328. point.customSide = this.editForm.side
  329. point.method = this.editForm.method
  330. point.temperature = this.editForm.temperature
  331. point.duration = this.editForm.duration
  332. }
  333. this.closePopup()
  334. },
  335. /** 侧别标签 */
  336. sideLabel(side) {
  337. const map = { left: '左侧', right: '右侧', center: '中心' }
  338. return map[side] || side
  339. },
  340. /** 置信度标签 */
  341. confidenceLabel(confidence) {
  342. const map = { high: '高', medium: '中', low: '低' }
  343. return map[confidence] || confidence
  344. }
  345. }
  346. }
  347. </script>
  348. <style scoped>
  349. .page {
  350. display: flex;
  351. flex-direction: column;
  352. height: 100vh;
  353. background: linear-gradient(to bottom, #389588, rgba(56,149,136,0.3) 40%, #F8F8F8 60%);
  354. }
  355. .status-bar {
  356. background-color: transparent;
  357. }
  358. /* 导航栏 */
  359. .nav-bar {
  360. display: flex;
  361. flex-direction: row;
  362. justify-content: space-between;
  363. align-items: center;
  364. height: 44px;
  365. padding: 0 15px;
  366. }
  367. .nav-back {
  368. width: 25px;
  369. height: 25px;
  370. display: flex;
  371. justify-content: center;
  372. align-items: center;
  373. }
  374. .back-icon {
  375. width: 25px;
  376. height: 25px;
  377. }
  378. .nav-title {
  379. font-size: 16px;
  380. font-weight: bold;
  381. color: #FFFFFF;
  382. }
  383. .nav-right {
  384. width: 60px;
  385. display: flex;
  386. justify-content: flex-end;
  387. }
  388. .nav-count {
  389. font-size: 12px;
  390. color: rgba(255,255,255,0.8);
  391. }
  392. /* 人体模型容器 */
  393. .body-scroll {
  394. flex: 1;
  395. min-height: 0;
  396. width: 100%;
  397. }
  398. .body-content {
  399. display: flex;
  400. justify-content: center;
  401. align-items: flex-start; /* 改为顶部对齐,防止高度不足时头部被居中截断 */
  402. padding: 20px 10px; /* 增加顶部间距,保护头部不贴边 */
  403. min-height: 100%;
  404. box-sizing: border-box;
  405. }
  406. .body-wrapper {
  407. position: relative;
  408. width: 345px;
  409. height: 460px;
  410. margin: auto 0; /* 空间充足时保持垂直居中,空间不足时贴顶 */
  411. /* Removed bubble-like styling to keep it clean */
  412. }
  413. /* 中线 */
  414. .midline {
  415. position: absolute;
  416. left: 50%;
  417. top: 60px;
  418. bottom: 20px;
  419. width: 1px;
  420. background: transparent;
  421. border-left: 1px dashed rgba(255, 255, 255, 0.4);
  422. z-index: 2;
  423. pointer-events: none;
  424. }
  425. .body-img {
  426. position: relative;
  427. width: 345px;
  428. height: 460px;
  429. z-index: 3;
  430. /* Added a soft drop shadow to make the human shape stand out nicely */
  431. filter: drop-shadow(0px 15px 25px rgba(0, 0, 0, 0.12));
  432. }
  433. /* 穴位点 */
  434. .acupoint-dot {
  435. position: absolute;
  436. width: 30px;
  437. height: 30px;
  438. margin-left: -15px;
  439. margin-top: -15px;
  440. display: flex;
  441. justify-content: center;
  442. align-items: center;
  443. z-index: 10;
  444. }
  445. .dot-inner {
  446. width: 8px;
  447. height: 8px;
  448. border-radius: 50%;
  449. background: #FFFFFF;
  450. border: 1.5px solid #389588;
  451. box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  452. transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  453. z-index: 1;
  454. }
  455. /* 选中态 */
  456. .acupoint-active .dot-inner {
  457. width: 14px;
  458. height: 14px;
  459. background: #F65252;
  460. border: 2px solid #FFFFFF;
  461. box-shadow: 0 4px 12px rgba(246, 82, 82, 0.4);
  462. transform: scale(1.1);
  463. }
  464. /* 穴位列表 */
  465. .list-section {
  466. background: #FFFFFF;
  467. border-radius: 28px 28px 0 0;
  468. padding: 20px 12px 0;
  469. max-height: 40vh;
  470. display: flex;
  471. flex-direction: column;
  472. box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.06);
  473. }
  474. .list-header {
  475. display: flex;
  476. flex-direction: column;
  477. align-items: center;
  478. margin-bottom: 16px;
  479. }
  480. .list-title {
  481. font-size: 15px;
  482. color: #333333;
  483. font-weight: 600;
  484. }
  485. .list-scroll {
  486. flex: 1;
  487. overflow-y: auto;
  488. padding: 4px 8px 20px 8px;
  489. }
  490. .list-grid {
  491. display: flex;
  492. flex-direction: row;
  493. flex-wrap: wrap;
  494. gap: 10px;
  495. }
  496. .list-item {
  497. display: flex;
  498. flex-direction: row;
  499. align-items: center;
  500. padding: 10px 12px;
  501. border-radius: 12px;
  502. background: #F8FAFA;
  503. border: 1px solid rgba(56, 149, 136, 0.05);
  504. transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  505. width: calc(50% - 5px);
  506. box-sizing: border-box;
  507. }
  508. .list-item-active {
  509. background: rgba(56, 149, 136, 0.08);
  510. border-color: rgba(56, 149, 136, 0.3);
  511. box-shadow: 0 4px 12px rgba(56, 149, 136, 0.1);
  512. transform: scale(1);
  513. }
  514. .list-item-full {
  515. margin-right: 50%;
  516. }
  517. .item-index {
  518. width: 24px;
  519. height: 24px;
  520. border-radius: 8px;
  521. background: rgba(56, 149, 136, 0.1);
  522. display: flex;
  523. justify-content: center;
  524. align-items: center;
  525. margin-right: 8px;
  526. transition: all 0.25s;
  527. flex-shrink: 0;
  528. }
  529. .item-index-active {
  530. background: rgba(246, 82, 82, 0.1);
  531. }
  532. .index-text {
  533. font-size: 11px;
  534. font-weight: 600;
  535. color: #389588;
  536. }
  537. .item-index-active .index-text {
  538. color: #F65252;
  539. }
  540. .item-name {
  541. font-size: 13px;
  542. color: #545F71;
  543. font-weight: 500;
  544. line-height: 1.3;
  545. overflow: hidden;
  546. text-overflow: ellipsis;
  547. white-space: nowrap;
  548. }
  549. /* 加载遮罩 */
  550. .loading-mask {
  551. position: fixed;
  552. top: 0;
  553. left: 0;
  554. right: 0;
  555. bottom: 0;
  556. background: rgba(0, 0, 0, 0.4);
  557. display: flex;
  558. justify-content: center;
  559. align-items: center;
  560. z-index: 100;
  561. }
  562. .loading-card {
  563. display: flex;
  564. flex-direction: column;
  565. align-items: center;
  566. background: #FFFFFF;
  567. border-radius: 16px;
  568. padding: 28px 36px;
  569. box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  570. }
  571. @keyframes spin {
  572. 0% { transform: rotate(0deg); }
  573. 100% { transform: rotate(360deg); }
  574. }
  575. .loading-spinner {
  576. width: 32px;
  577. height: 32px;
  578. border: 2px solid #EEF1F4;
  579. border-top-color: #389588;
  580. border-radius: 50%;
  581. animation: spin 0.8s linear infinite;
  582. margin-bottom: 14px;
  583. }
  584. .loading-text {
  585. color: #545F71;
  586. font-size: 13px;
  587. font-weight: 500;
  588. }
  589. /* 弹窗样式 */
  590. .popup-mask {
  591. position: fixed;
  592. top: 0;
  593. left: 0;
  594. right: 0;
  595. bottom: 0;
  596. background: rgba(0, 0, 0, 0.5);
  597. z-index: 200;
  598. display: flex;
  599. justify-content: center;
  600. align-items: center;
  601. animation: fadeIn 0.3s ease;
  602. }
  603. @keyframes fadeIn {
  604. from { opacity: 0; }
  605. to { opacity: 1; }
  606. }
  607. .popup-content {
  608. width: 320px;
  609. background: #FFFFFF;
  610. border-radius: 20px;
  611. overflow: hidden;
  612. box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  613. animation: slideUp 0.3s ease;
  614. }
  615. @keyframes slideUp {
  616. from { transform: translateY(20px); opacity: 0; }
  617. to { transform: translateY(0); opacity: 1; }
  618. }
  619. .popup-header {
  620. padding: 20px 24px 16px;
  621. border-bottom: 1px solid #F0F2F5;
  622. display: flex;
  623. justify-content: space-between;
  624. align-items: center;
  625. }
  626. .popup-title {
  627. font-size: 16px;
  628. font-weight: 600;
  629. color: #333333;
  630. }
  631. .popup-acupoint-name {
  632. font-size: 15px;
  633. color: #389588;
  634. font-weight: 600;
  635. background: rgba(56, 149, 136, 0.1);
  636. padding: 4px 10px;
  637. border-radius: 6px;
  638. }
  639. .popup-body {
  640. padding: 20px 24px;
  641. }
  642. .form-group {
  643. margin-bottom: 20px;
  644. }
  645. .form-group:last-child {
  646. margin-bottom: 0;
  647. }
  648. .form-row-2 {
  649. display: flex;
  650. justify-content: space-between;
  651. gap: 16px;
  652. }
  653. .half-width {
  654. flex: 1;
  655. }
  656. .form-label {
  657. font-size: 13px;
  658. color: #545F71;
  659. margin-bottom: 10px;
  660. display: block;
  661. font-weight: 500;
  662. }
  663. .tags-row {
  664. display: flex;
  665. flex-wrap: wrap;
  666. gap: 10px;
  667. }
  668. .tag-item {
  669. padding: 8px 14px;
  670. background: #F4F6F8;
  671. border-radius: 8px;
  672. font-size: 13px;
  673. color: #545F71;
  674. border: 1px solid transparent;
  675. transition: all 0.2s;
  676. }
  677. .tag-item-active {
  678. background: rgba(56, 149, 136, 0.1);
  679. color: #389588;
  680. border-color: #389588;
  681. font-weight: 500;
  682. }
  683. .stepper {
  684. display: flex;
  685. align-items: center;
  686. background: #F4F6F8;
  687. border-radius: 8px;
  688. overflow: hidden;
  689. }
  690. .stepper-btn {
  691. width: 36px;
  692. height: 36px;
  693. display: flex;
  694. justify-content: center;
  695. align-items: center;
  696. font-size: 18px;
  697. color: #545F71;
  698. background: #EEF1F4;
  699. }
  700. .stepper-btn:active {
  701. background: #E2E6EA;
  702. }
  703. .stepper-input {
  704. flex: 1;
  705. height: 36px;
  706. text-align: center;
  707. font-size: 14px;
  708. color: #333333;
  709. font-weight: 500;
  710. }
  711. .popup-footer {
  712. display: flex;
  713. border-top: 1px solid #F0F2F5;
  714. }
  715. .btn {
  716. flex: 1;
  717. height: 50px;
  718. display: flex;
  719. justify-content: center;
  720. align-items: center;
  721. font-size: 15px;
  722. font-weight: 500;
  723. }
  724. .btn-cancel {
  725. color: #9BA5B7;
  726. background: #FFFFFF;
  727. }
  728. .btn-confirm {
  729. color: #FFFFFF;
  730. background: #389588;
  731. }
  732. /* 参数展示 */
  733. .item-params {
  734. display: flex;
  735. align-items: center;
  736. }
  737. .param-text {
  738. font-size: 11px;
  739. color: #389588;
  740. background: rgba(56, 149, 136, 0.1);
  741. padding: 2px 6px;
  742. border-radius: 4px;
  743. }
  744. </style>