pointsSettings.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842
  1. <template>
  2. <view class="container">
  3. <Step :step="currentStep" :stepsData="currentText" />
  4. <scroll-view class="content" scroll-y>
  5. <!-- 客户积分设置列表 -->
  6. <view class="integral-section">
  7. <view class="section-header">
  8. <view class="section-title">客户姓名</view>
  9. <view class="section-subtitle">积分数值</view>
  10. </view>
  11. <view class="integral-list">
  12. <view class="integral-item" v-for="(customer, index) in customerList" :key="customer.id">
  13. <view class="customer-info">
  14. <view class="customer-name">{{ customer.name }}</view>
  15. </view>
  16. <view class="integral-input-wrapper">
  17. <input class="integral-input" type="number" :placeholder="customer.placeholder"
  18. v-model="customer.integral" :disabled="customer.disabled"
  19. @input="onIntegralInput($event, customer)" @blur="onIntegralBlur(customer)" />
  20. <view v-if="customer.integral" class="clear-icon-wrapper"
  21. @click.stop="clearIntegral(customer)">
  22. <image class="clear-icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_clear.png"></image>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </scroll-view>
  29. <!-- 概览悬浮按钮 -->
  30. <view class="suspension" @click="showOverviewPopup">概览</view>
  31. <!-- 概览弹窗 -->
  32. <!-- :show="showOverview" -->
  33. <u-popup :show="showOverview" mode="bottom" @close="closeOverviewPopup" round="20" :safeAreaInsetBottom="true">
  34. <view class="overview-popup">
  35. <!-- 弹窗头部 -->
  36. <view class="popup-header">
  37. <text class="popup-title">概览</text>
  38. <view class="close-btn" @click="closeOverviewPopup">
  39. <image class="close-icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_close.png"></image>
  40. </view>
  41. </view>
  42. <!-- 任务信息 -->
  43. <view class="overview-section">
  44. <view class="row">
  45. <text class="line"></text>
  46. <view class="section-title">任务信息</view>
  47. </view>
  48. <view class="info-list">
  49. <view class="info-item">
  50. <view class="info-label">项目归属:</view>
  51. <view class="info-value">{{ taskFormData.belongTypeDisplayText || '-' }}</view>
  52. </view>
  53. <view class="info-item">
  54. <view class="info-label">任务类型:</view>
  55. <view class="info-value">{{ taskFormData.taskTypeDisplayText || '-' }}</view>
  56. </view>
  57. <view class="info-item">
  58. <view class="info-label">项目时间:</view>
  59. <view class="info-value">{{ taskFormData.planStartTime ? taskFormData.planStartTime.replace(/-/g, '/') : '-' }} ~ {{ taskFormData.planEndTime ? taskFormData.planEndTime.replace(/-/g, '/') : '-' }}</view>
  60. </view>
  61. </view>
  62. </view>
  63. <!-- 客户信息 -->
  64. <view class="overview-section">
  65. <view class="row">
  66. <text class="line"></text>
  67. <view class="section-title">客户信息</view>
  68. </view>
  69. <view class="customer-table">
  70. <!-- 表头 -->
  71. <view class="table-header">
  72. <view class="table-cell" style="flex: 1.5;">姓名</view>
  73. <view class="table-cell" style="flex: 1;">级别</view>
  74. <view class="table-cell" style="flex: 1;">积分</view>
  75. <view class="table-cell" style="flex: 2;">联系方式</view>
  76. </view>
  77. <!-- 表格内容 -->
  78. <view class="table-body">
  79. <view class="table-row" v-for="(customer, index) in customerList" :key="customer.id">
  80. <view class="table-cell" style="flex: 1.5;">{{ customer.name }}</view>
  81. <view class="table-cell" style="flex: 1;">{{ customer.level || '-' }}</view>
  82. <view class="table-cell" style="flex: 1;">{{ customer.integral || '0' }}</view>
  83. <view class="table-cell" style="flex: 2;">{{ customer.mobile|| '-' }}</view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <!-- 安全区域占位 -->
  89. <view class="safe-area"></view>
  90. </view>
  91. </u-popup>
  92. <!-- 底部操作栏 -->
  93. <view class="bottom-bar">
  94. <view class="del-box" @click="deleteSelected">
  95. <image class="w40 h40" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_delete.png"></image>
  96. <text>删除</text>
  97. </view>
  98. <view class="action-buttons">
  99. <view class="btn btn-cancel" @click="handlePrev">上一步</view>
  100. <view class="btn btn-submit" @click="submit">提交</view>
  101. </view>
  102. </view>
  103. </view>
  104. </template>
  105. <script>
  106. import { getCompanyIntegralRanges } from '@/api/task.js'
  107. import Step from '@/pages_task/components/step.vue'
  108. import { addInfo} from '@/api/task.js';
  109. export default {
  110. components: {
  111. Step
  112. },
  113. data() {
  114. return {
  115. currentText: [{
  116. id: 1,
  117. stepNumber: 1,
  118. title: '填写任务'
  119. },
  120. {
  121. id: 2,
  122. stepNumber: 2,
  123. title: '选择客户'
  124. },
  125. {
  126. id: 3,
  127. stepNumber: 3,
  128. title: '积分设置'
  129. }
  130. ],
  131. currentStep: 3,
  132. showOverview: false, // 控制概览弹窗显示
  133. customerList: [],
  134. userInfo: uni.getStorageSync('userInfo'),
  135. taskFormData: {}, // 任务表单数据
  136. selectedCustomers: [] // 选中的客户数据
  137. }
  138. },
  139. onLoad() {
  140. // 从本地存储中获取任务表单数据
  141. const taskFormDataStr = uni.getStorageSync('taskFormData')
  142. if (taskFormDataStr) {
  143. try {
  144. this.taskFormData = JSON.parse(taskFormDataStr)
  145. } catch (e) {
  146. console.error('解析任务表单数据失败:', e)
  147. }
  148. }
  149. // 从本地存储中获取选中的客户数据
  150. const selectedCustomersData = uni.getStorageSync('selectedCustomers')
  151. if (selectedCustomersData) {
  152. try {
  153. const selectedCustomers = typeof selectedCustomersData === 'string' ? JSON.parse(selectedCustomersData) : selectedCustomersData
  154. // 确保selectedCustomers是数组
  155. if (Array.isArray(selectedCustomers)) {
  156. // 保存原始选中的客户数据
  157. this.selectedCustomers = selectedCustomers
  158. // 将选中的客户数据转换为积分设置需要的格式
  159. this.customerList = selectedCustomers.map(customer => ({
  160. id: customer.id,
  161. name: customer.doctorName || '未知姓名',
  162. doctorName: customer.doctorName || '未知姓名',
  163. integral: '',
  164. placeholder: '请输入积分',
  165. disabled: false
  166. }))
  167. }
  168. this.getCompanyIntegralRanges();//检查积分是否超出限制
  169. } catch (e) {
  170. console.error('解析客户数据失败:', e)
  171. }
  172. }
  173. },
  174. computed: {
  175. totalIntegral() {
  176. let total = 0
  177. this.customerList.forEach(customer => {
  178. const integral = parseInt(customer.integral) || 0
  179. total += integral
  180. })
  181. return total
  182. }
  183. },
  184. methods: {
  185. getCompanyIntegralRanges(){
  186. // 提取所有客户的id作为doctorIds数组,并确保都是数字类型
  187. const doctorIds = this.customerList.map(customer => parseInt(customer.id) || 0);
  188. let params = {
  189. companyId: this.userInfo.companyId,
  190. projectId: this.taskFormData.projectId,
  191. doctorIds: doctorIds,
  192. taskTypeId: this.taskFormData.taskTypeId || ''
  193. }
  194. console.log('传递的doctorIds:', doctorIds);
  195. getCompanyIntegralRanges(params).then(res => {
  196. if (res.code === 200) {
  197. const ranges = res.data || res.rows || [];
  198. // 建立 doctorId -> 范围配置 的映射
  199. const rangeMap = {};
  200. ranges.forEach(item => {
  201. const key = parseInt(item.doctorId || item.id);
  202. if (!isNaN(key)) {
  203. rangeMap[key] = item;
  204. }
  205. });
  206. // 合并到现有客户列表,保留已有积分值
  207. this.customerList = this.customerList.map(customer => {
  208. const id = parseInt(customer.id) || 0;
  209. const cfg = rangeMap[id] || {};
  210. const min = typeof cfg.minIntegral === 'number' ? cfg.minIntegral : customer.minIntegral;
  211. const max = typeof cfg.maxIntegral === 'number' ? cfg.maxIntegral : customer.maxIntegral;
  212. return {
  213. ...customer,
  214. level: cfg.levelName || customer.level,
  215. minIntegral: min,
  216. maxIntegral: max,
  217. placeholder: (typeof min === 'number' && typeof max === 'number')
  218. ? `请输入${min}-${max}`
  219. : (customer.placeholder || '请输入积分'),
  220. disabled: cfg.available === false ? true : customer.disabled
  221. }
  222. });
  223. }
  224. })
  225. },
  226. // 显示概览弹窗
  227. showOverviewPopup() {
  228. this.showOverview = true
  229. },
  230. // 关闭概览弹窗
  231. closeOverviewPopup() {
  232. this.showOverview = false
  233. },
  234. clearIntegral(customer) {
  235. // 使用 $set 确保响应式更新
  236. this.$set(customer, 'integral', '')
  237. },
  238. onIntegralInput(e, customer) {
  239. const raw = e && e.detail ? e.detail.value : customer.integral
  240. if (raw === '' || raw === null || raw === undefined) {
  241. this.$set(customer, 'integral', '');
  242. return;
  243. }
  244. let val = String(raw).replace(/[^\d]/g, '')
  245. if (val === '') {
  246. this.$set(customer, 'integral', '');
  247. return;
  248. }
  249. let num = parseInt(val)
  250. const minNum = Number(customer.minIntegral);
  251. const maxNum = Number(customer.maxIntegral);
  252. const hasMin = !Number.isNaN(minNum);
  253. const hasMax = !Number.isNaN(maxNum);
  254. // 输入阶段:超上限立即纠正;低于下限仅提示不改值(避免输入被打断)
  255. if (!Number.isNaN(num) && hasMax && num > maxNum) {
  256. num = maxNum
  257. val = String(maxNum)
  258. this.$set(customer, 'integral', val)
  259. uni.showToast({ icon: 'none', title: `不得高于${maxNum}` })
  260. return
  261. }
  262. if (!Number.isNaN(num) && hasMin && num < minNum) {
  263. uni.showToast({ icon: 'none', title: `不得少于${minNum}` })
  264. }
  265. this.$set(customer, 'integral', val);
  266. },
  267. onIntegralBlur(customer) {
  268. let val = parseInt(customer.integral);
  269. if (isNaN(val)) {
  270. this.$set(customer, 'integral', '');
  271. return;
  272. }
  273. const minNum = Number(customer.minIntegral);
  274. const maxNum = Number(customer.maxIntegral);
  275. const hasMin = !Number.isNaN(minNum);
  276. const hasMax = !Number.isNaN(maxNum);
  277. if (hasMin && val < minNum) {
  278. val = minNum;
  279. uni.showToast({ icon: 'none', title: `不得少于${minNum}` });
  280. }
  281. if (hasMax && val > maxNum) {
  282. val = maxNum;
  283. uni.showToast({ icon: 'none', title: `不得高于${maxNum}` });
  284. }
  285. this.$set(customer, 'integral', String(val));
  286. },
  287. handlePrev() {
  288. uni.navigateBack()
  289. },
  290. submit() {
  291. // 验证所有客户积分是否已填写
  292. const emptyCustomers = this.customerList.filter(customer => !customer.integral || customer.integral === '')
  293. if (emptyCustomers.length > 0) {
  294. uni.showToast({
  295. icon: 'none',
  296. title: '请为所有客户设置积分'
  297. })
  298. return
  299. }
  300. // 验证积分是否为数字
  301. const invalidCustomers = this.customerList.filter(customer => {
  302. const integral = parseInt(customer.integral)
  303. return isNaN(integral)
  304. })
  305. if (invalidCustomers.length > 0) {
  306. uni.showToast({
  307. icon: 'none',
  308. title: '请输入有效的积分数值'
  309. })
  310. return
  311. }
  312. // 验证是否在范围内
  313. const outOfRange = this.customerList.find(customer => {
  314. const v = parseInt(customer.integral);
  315. const minNum = Number(customer.minIntegral);
  316. const maxNum = Number(customer.maxIntegral);
  317. if (!Number.isNaN(minNum) && v < minNum) return true;
  318. if (!Number.isNaN(maxNum) && v > maxNum) return true;
  319. return false;
  320. });
  321. if (outOfRange) {
  322. const min = Number(outOfRange.minIntegral);
  323. const max = Number(outOfRange.maxIntegral);
  324. uni.showToast({
  325. icon: 'none',
  326. title: `${outOfRange.name || '该客户'}积分需在${min}-${max}`
  327. });
  328. return;
  329. }
  330. // 获取所有三个页面的数据
  331. const taskFormDataStr = uni.getStorageSync('taskFormData')
  332. const selectedCustomersStr = uni.getStorageSync('selectedCustomers')
  333. const taskFormData = taskFormDataStr ? JSON.parse(taskFormDataStr) : {}
  334. const selectedCustomers = selectedCustomersStr ? JSON.parse(selectedCustomersStr) : []
  335. // 获取用户信息
  336. const userInfoData = uni.getStorageSync('userInfo')
  337. const userInfo = typeof userInfoData === 'string' ? JSON.parse(userInfoData) : userInfoData || {}
  338. // 获取当前时间
  339. const now = new Date()
  340. const applyTime = now.toISOString().slice(0, 19).replace('T', ' ')
  341. // 构建提交数据
  342. const taskData = {
  343. // 任务基本信息
  344. // taskName: taskFormData.taskName || '',
  345. deptId: taskFormData.deptId || 0,
  346. projectId: taskFormData.projectId || 0,
  347. costShareId: taskFormData.costShareId || 0,
  348. taskType: taskFormData.taskType || 0,
  349. taskIntegral: this.totalIntegral || 0,
  350. taskUnit: taskFormData.taskUnit || 0,
  351. productId: taskFormData.productId || 0,
  352. planStartTime: taskFormData.planStartTime || '',
  353. planEndTime: taskFormData.planEndTime || '',
  354. // applyTime: applyTime,
  355. belongType: taskFormData.belongType || 0,
  356. companyId: userInfo.companyId || 0,
  357. companyUserId: userInfo.userId || 0,
  358. remark: taskFormData.remark || '',
  359. targetId: taskFormData.targetId || '',
  360. taskTypeId: taskFormData.taskTypeId || 0,
  361. // companyUserId: taskFormData.companyUserId || 0,
  362. // 构建doctorIds数组
  363. // doctorIds: this.customerList.map(customer => parseInt(customer.id) || 0),
  364. // 构建doctorTaskList数组
  365. doctorTaskList: this.customerList.map(customer => ({
  366. doctorId: parseInt(customer.id) || 0,
  367. taskIntegral: parseInt(customer.integral) || 0
  368. }))
  369. }
  370. console.log('提交的任务数据:', taskData)
  371. // 调用addInfo接口提交表单
  372. uni.showLoading({
  373. title: '提交中...'
  374. })
  375. addInfo(taskData).then(res => {
  376. uni.hideLoading()
  377. if (res.code === 200) {
  378. // 清除本地存储的数据
  379. uni.removeStorageSync('taskFormData')
  380. uni.removeStorageSync('selectedCustomers')
  381. // 显示提交成功提示
  382. uni.showToast({
  383. title: '任务创建成功',
  384. success: () => {
  385. // 延迟跳转,让用户看到成功提示
  386. setTimeout(() => {
  387. uni.redirectTo({
  388. url: "/pages_task/success?type=createTask"
  389. })
  390. }, 1500)
  391. }
  392. })
  393. } else {
  394. uni.showToast({
  395. icon: 'none',
  396. title: res.msg ||res.message
  397. })
  398. }
  399. }).catch(err => {
  400. uni.hideLoading()
  401. uni.showToast({
  402. icon: 'none',
  403. title: '网络错误,请重试'
  404. })
  405. })
  406. },
  407. deleteSelected() {
  408. // 删除所有客户数据
  409. uni.showModal({
  410. title: '提示',
  411. content: '确定要删除所有客户数据吗?删除后不可恢复。',
  412. success: (res) => {
  413. if (res.confirm) {
  414. // 清空所有客户的积分数据
  415. this.customerList.forEach(customer => {
  416. this.$set(customer, 'integral', '')
  417. })
  418. uni.showToast({
  419. title: '已清空所有客户积分',
  420. icon: 'success'
  421. })
  422. }
  423. }
  424. })
  425. }
  426. }
  427. }
  428. </script>
  429. <style lang="scss" scoped>
  430. .container {
  431. min-height: 100vh;
  432. background: #F7F8FA;
  433. display: flex;
  434. flex-direction: column;
  435. &::before {
  436. content: '';
  437. position: absolute;
  438. top: 0;
  439. left: 0;
  440. right: 0;
  441. width: 100%;
  442. height: 544rpx;
  443. background: linear-gradient(180deg, #E4EFFE 0%, rgba(228, 239, 254, 0) 100%);
  444. }
  445. }
  446. .content {
  447. flex: 1;
  448. padding: 24rpx;
  449. box-sizing: border-box;
  450. padding-bottom: 200rpx;
  451. position: relative;
  452. }
  453. .integral-section {
  454. background-color: #ffffff;
  455. border-radius: 24rpx;
  456. padding: 32rpx 24rpx;
  457. margin-bottom: 24rpx;
  458. .section-header {
  459. display: flex;
  460. justify-content: space-between;
  461. align-items: center;
  462. margin-bottom: 32rpx;
  463. padding: 32rpx 0;
  464. background: #F5F9FF;
  465. border-radius: 16rpx;
  466. font-size: 28rpx;
  467. color: #666666;
  468. text-align: center;
  469. font-weight: 600;
  470. .section-title {
  471. flex: 1;
  472. }
  473. .section-subtitle {
  474. flex: 1;
  475. }
  476. }
  477. .integral-list {
  478. .integral-item {
  479. display: flex;
  480. justify-content: space-between;
  481. align-items: center;
  482. padding: 32rpx 0;
  483. border-bottom: 1rpx solid #F2F3F5;
  484. &:last-child {
  485. border-bottom: none;
  486. }
  487. .customer-info {
  488. flex: 1;
  489. text-align: center;
  490. .customer-name {
  491. font-size: 32rpx;
  492. font-weight: 500;
  493. color: #333333;
  494. }
  495. }
  496. .integral-input-wrapper {
  497. flex: 1;
  498. display: flex;
  499. align-items: center;
  500. justify-content: center;
  501. position: relative;
  502. .integral-input {
  503. width: 100%;
  504. font-size: 32rpx;
  505. color: #333333;
  506. text-align: center;
  507. padding: 12rpx 60rpx 12rpx 16rpx;
  508. background: #F7F8FA;
  509. border-radius: 8rpx;
  510. &::placeholder {
  511. color: #C8C9CC;
  512. font-size: 28rpx;
  513. text-align: center;
  514. }
  515. &:disabled {
  516. background: transparent;
  517. opacity: 0.8;
  518. }
  519. }
  520. .clear-icon-wrapper {
  521. position: absolute;
  522. right: 8rpx;
  523. width: 48rpx;
  524. height: 48rpx;
  525. display: flex;
  526. align-items: center;
  527. justify-content: center;
  528. z-index: 10;
  529. cursor: pointer;
  530. &:active {
  531. opacity: 0.6;
  532. }
  533. .clear-icon {
  534. width: 28rpx;
  535. height: 28rpx;
  536. }
  537. }
  538. }
  539. }
  540. }
  541. }
  542. .suspension {
  543. position: fixed;
  544. text-align: center;
  545. line-height: 96rpx;
  546. right: 36rpx;
  547. top: 70%;
  548. width: 96rpx;
  549. height: 96rpx;
  550. background: linear-gradient(0deg, #388BFF 0%, #388BFF 100%);
  551. box-shadow: inset 0rpx 4rpx 8rpx 0rpx rgba(255, 255, 255, 0.25),
  552. inset 0rpx -6rpx 8rpx 0rpx rgba(255, 255, 255, 0.25),
  553. 4rpx 8rpx 12rpx 0rpx rgba(88, 144, 239, 0.29);
  554. border-radius: 110rpx;
  555. font-size: 28rpx;
  556. color: #FFFFFF;
  557. z-index: 999;
  558. cursor: pointer;
  559. &:active {
  560. opacity: 0.8;
  561. }
  562. }
  563. /* 概览弹窗样式 */
  564. .overview-popup {
  565. background-color: #fff;
  566. border-radius: 32rpx 32rpx 0 0;
  567. max-height: 80vh;
  568. overflow-y: auto;
  569. padding-bottom: env(safe-area-inset-bottom);
  570. }
  571. .popup-header {
  572. display: flex;
  573. justify-content: center;
  574. align-items: center;
  575. padding: 32rpx 40rpx;
  576. .popup-title {
  577. font-weight: 500;
  578. font-size: 32rpx;
  579. color: #333333;
  580. }
  581. .close-btn {
  582. width: 48rpx;
  583. height: 48rpx;
  584. display: flex;
  585. align-items: center;
  586. justify-content: center;
  587. cursor: pointer;
  588. position: absolute;
  589. right: 0;
  590. .close-icon {
  591. width: 44rpx;
  592. height: 44rpx;
  593. margin-right: 32rpx;
  594. flex-shrink: 0;
  595. }
  596. &:active {
  597. opacity: 0.6;
  598. }
  599. }
  600. }
  601. .overview-section {
  602. padding: 32rpx 40rpx;
  603. .row {
  604. display: flex;
  605. align-items: center;
  606. margin-bottom: 24rpx;
  607. &:last-child {
  608. border-bottom: none;
  609. }
  610. .line {
  611. width: 6rpx;
  612. height: 32rpx;
  613. background: #388BFF;
  614. border-radius: 36rpx;
  615. margin-right: 20rpx;
  616. }
  617. .section-title {
  618. font-size: 28rpx;
  619. font-weight: 600;
  620. color: #333333;
  621. }
  622. }
  623. .info-list {
  624. .info-item {
  625. display: flex;
  626. margin-bottom: 16rpx;
  627. align-items: flex-start;
  628. font-size: 28rpx;
  629. &:last-child {
  630. margin-bottom: 0;
  631. }
  632. .info-label {
  633. color: #999999;
  634. flex-shrink: 0;
  635. width: 140rpx;
  636. }
  637. .info-value {
  638. color: #333333;
  639. flex: 1;
  640. line-height: 1.4;
  641. }
  642. }
  643. }
  644. .customer-table {
  645. .table-header {
  646. display: flex;
  647. background: #F5F9FF;
  648. border-radius: 8rpx;
  649. padding: 20rpx 16rpx;
  650. margin-bottom: 8rpx;
  651. .table-cell {
  652. font-size: 24rpx;
  653. font-weight: 600;
  654. color: #666666;
  655. text-align: center;
  656. }
  657. }
  658. .table-body {
  659. .table-row {
  660. display: flex;
  661. padding: 20rpx 16rpx;
  662. border-bottom: 1rpx solid #F2F3F5;
  663. &:last-child {
  664. border-bottom: none;
  665. }
  666. .table-cell {
  667. font-size: 28rpx;
  668. color: #333333;
  669. text-align: center;
  670. &:first-child {
  671. font-weight: 500;
  672. }
  673. }
  674. }
  675. }
  676. }
  677. }
  678. .total-section {
  679. padding: 32rpx 40rpx;
  680. background: #F5F9FF;
  681. border-radius: 16rpx;
  682. margin: 24rpx 40rpx 40rpx;
  683. .total-item {
  684. display: flex;
  685. justify-content: space-between;
  686. align-items: center;
  687. margin-bottom: 16rpx;
  688. &:last-child {
  689. margin-bottom: 0;
  690. }
  691. .total-label {
  692. font-size: 28rpx;
  693. color: #666666;
  694. }
  695. .total-value {
  696. font-size: 28rpx;
  697. font-weight: 600;
  698. color: #388BFF;
  699. }
  700. }
  701. }
  702. .safe-area {
  703. height: env(safe-area-inset-bottom);
  704. }
  705. .bottom-bar {
  706. position: fixed;
  707. bottom: 0;
  708. left: 0;
  709. right: 0;
  710. background: #fff;
  711. padding: 24rpx 32rpx;
  712. border-top: 1rpx solid #F2F3F5;
  713. z-index: 100;
  714. display: flex;
  715. align-items: center;
  716. .del-box {
  717. display: flex;
  718. flex-direction: column;
  719. align-items: center;
  720. font-size: 24rpx;
  721. color: #666666;
  722. margin-right: 32rpx;
  723. cursor: pointer;
  724. &:active {
  725. opacity: 0.6;
  726. }
  727. }
  728. .action-buttons {
  729. display: flex;
  730. flex: 1;
  731. justify-content: space-between;
  732. .btn {
  733. width: 292rpx;
  734. height: 88rpx;
  735. display: flex;
  736. align-items: center;
  737. justify-content: center;
  738. font-size: 32rpx;
  739. font-weight: 500;
  740. border-radius: 200rpx 200rpx 200rpx 200rpx;
  741. cursor: pointer;
  742. &.btn-cancel {
  743. background: #fff;
  744. border: 2rpx solid #388BFF;
  745. color: #388BFF;
  746. }
  747. &.btn-submit {
  748. background: #388BFF;
  749. color: #fff;
  750. }
  751. }
  752. }
  753. }
  754. .w40 {
  755. width: 40rpx;
  756. }
  757. .h40 {
  758. height: 40rpx;
  759. }
  760. </style>