acupointEdit.vue 18 KB

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