diff --git a/pagesA/pages/askingSy/askingSy.js b/pagesA/pages/askingSy/askingSy.js index 4b40826..09707ec 100644 --- a/pagesA/pages/askingSy/askingSy.js +++ b/pagesA/pages/askingSy/askingSy.js @@ -1,7 +1,9 @@ import http from '../../../utils/api' +const baseUrl = require('../../../utils/baseUrl') Page({ data: { - diagnosisList: [] + diagnosisList: [], + baseUrl:baseUrl }, onLoad: function () { @@ -63,9 +65,9 @@ Page({ // 查看详情 viewDetail: function (e) { - const data = e.currentTarget.dataset.value + const id = e.currentTarget.dataset.id wx.navigateTo({ - url: `/pagesA/pages/askingSyDetails/askingSyDetails?data=${encodeURIComponent(JSON.stringify(data))}`, + url: `/pagesA/pages/askingSyDetails/askingSyDetails?id=${id}`, }); }, diff --git a/pagesA/pages/askingSy/askingSy.wxml b/pagesA/pages/askingSy/askingSy.wxml index 5c3cfe6..229d34a 100644 --- a/pagesA/pages/askingSy/askingSy.wxml +++ b/pagesA/pages/askingSy/askingSy.wxml @@ -29,11 +29,11 @@ {{diagnosisList.length}}条 - + - + {{item.farmerName || '用户'}} diff --git a/pagesA/pages/askingSyDetails/askingSyDetails.js b/pagesA/pages/askingSyDetails/askingSyDetails.js index 9f710c2..4d82c12 100644 --- a/pagesA/pages/askingSyDetails/askingSyDetails.js +++ b/pagesA/pages/askingSyDetails/askingSyDetails.js @@ -9,67 +9,65 @@ Page({ diagnosisData: {}, replies: [], baseUrl: baseUrl, - refreshing: false + refreshing: false, + showPlanModal: false, // 控制弹框显示 + planList: [] // 方案列表数据 }, /** * 生命周期函数--监听页面加载 */ onLoad(options) { - if (options.data) { - // 根据id加载兽医回复数据 - const data = JSON.parse(decodeURIComponent(options.data)); + if (options.id) { + this.getwzdetails(options.id) + } + }, - // 处理用户图片 - 确保是数组格式 - if (data.images) { - if (typeof data.images === 'string') { - data.images = data.images.split(',') + // 问诊单详情 + getwzdetails(id) { + http.wzdDetails({ + data: { + id: id + }, + success: res => { + console.log(1111, res); + if (res.data.images) { + if (typeof res.data.images === 'string') { + res.data.images = res.data.images.split(',') + } + } else { + res.data.images = []; } - console.log('用户图片:', data.images); - } else { - data.images = []; + + this.loadDiagnosisData(res.data.formId); + + this.setData({ + diagnosisData: res.data, + }) } - - this.setData({ - diagnosisData: data, - }) - this.loadDiagnosisData(data.formId); - } + }) }, - /** - * 加载问诊数据(兽医回复) - * @param {string} id - 问诊ID - */ + // 加载问诊数据(兽医回复) loadDiagnosisData(id) { - console.log('加载问诊数据:', id); http.wzdxq({ data: { consultationId: id }, success: res => { - // 处理兽医回复的图片 let replies = []; - if (res && res.rows) { replies = res.rows || []; - - // 遍历每个回复,处理图片字段 for (let i = 0; i < replies.length; i++) { const item = replies[i]; - - // 处理图片 - 确保是数组格式 if (item.images) { if (typeof item.images === 'string') { - // 如果是空字符串,设为空数组 if (item.images.trim() === '') { item.images = []; } else { - // 按逗号分割字符串 item.images = item.images.split(','); } } else if (Array.isArray(item.images)) { - // 已经是数组,但需要过滤空值 item.images = item.images.filter(img => img && img.trim() !== ''); } else { item.images = []; @@ -77,24 +75,104 @@ Page({ } else { item.images = []; } - - console.log(`兽医回复[${i}]图片:`, item.images); } } - - console.log('兽医回复数据:', replies); this.setData({ replies: replies }) }, fail: err => { - console.error('加载回复失败:', err); wx.showToast({ title: '加载失败', icon: 'none' }); } - }) + }); + }, + + // 获取方案列表 + getplanDetails(id) { + http.planDetails({ + data: { + consultationId: id + }, + success: res => { + console.log('方案列表:', res); + let list = []; + if (res.rows) { + list = res.rows + + // 处理图片字段 + list.forEach(item => { + if (item.images) { + if (typeof item.images === 'string') { + item.images = item.images ? item.images.split(',') : []; + } + } else { + item.images = []; + } + }); + } + this.setData({ planList: list }); + }, + fail: err => { + console.error('获取方案列表失败', err); + wx.showToast({ + title: '获取方案失败', + icon: 'none' + }); + } + }); + }, + + // 显示方案弹框 + showPlanModal() { + const consultationId = this.data.diagnosisData.id || this.data.diagnosisData.formId; + if (!consultationId) { + wx.showToast({ title: '问诊单ID不存在', icon: 'none' }); + return; + } + wx.showLoading({ title: '加载中...', mask: true }); + this.getplanDetails(consultationId); + setTimeout(() => { + wx.hideLoading(); + this.setData({ showPlanModal: true }); + }, 500); + }, + + // 隐藏方案弹框 + hidePlanModal() { + this.setData({ showPlanModal: false }); + }, + + // 阻止事件冒泡 + stopPropagation() { + return; + }, + + // 阻止触摸滚动 + preventTouch() { + return; + }, + + // 预览方案图片 + previewPlanImage(e) { + const dataset = e.currentTarget.dataset; + const currentUrl = dataset.url; + const urls = dataset.urls || []; + const base = dataset.base || baseUrl; + + const fullUrls = urls.map(item => { + if (typeof item === 'string' && (item.startsWith('http://') || item.startsWith('https://'))) { + return item; + } + return base + item; + }); + + wx.previewImage({ + current: currentUrl, + urls: fullUrls + }); }, /** @@ -104,39 +182,16 @@ Page({ wx.navigateBack(); }, - /** - * 分享 - */ - onShare() { - wx.showActionSheet({ - itemList: ['分享给好友', '保存到相册'], - success: (res) => { - if (res.tapIndex === 0) { - wx.showToast({ - title: '已分享', - icon: 'success' - }); - } - } - }); - }, - /** * 下拉刷新 */ onRefresh() { - this.setData({ - refreshing: true - }); - + this.setData({ refreshing: true }); if (this.data.diagnosisData && this.data.diagnosisData.formId) { - this.loadDiagnosisData(this.data.diagnosisData.formId) + this.loadDiagnosisData(this.data.diagnosisData.formId); } - setTimeout(() => { - this.setData({ - refreshing: false - }); + this.setData({ refreshing: false }); wx.showToast({ title: '刷新成功', icon: 'success' @@ -151,18 +206,12 @@ Page({ const dataset = e.currentTarget.dataset; const current = dataset.url; const urls = dataset.urls || []; - - // 构建完整URL数组 const urlsArray = urls.map(item => { - // 如果已经是完整URL,直接返回 if (typeof item === 'string' && (item.startsWith('http://') || item.startsWith('https://'))) { return item; } - // 否则拼接baseUrl return baseUrl + item; }); - - console.log('预览用户图片:', urlsArray); wx.previewImage({ current: current, urls: urlsArray @@ -170,39 +219,27 @@ Page({ }, /** - * 预览兽医回复图片 - 修复版 + * 预览兽医回复图片 */ previewReplyImage(e) { const dataset = e.currentTarget.dataset; - - // 获取数据 - 使用三种可能的来源 - const currentFileName = dataset.url; // 当前点击的图片文件名 - const currentFullUrl = dataset.fullurl; // 当前点击的图片完整URL - const urlsArray = dataset.urls || []; // 该回复的所有图片文件名数组 - const currentIndex = dataset.currentIndex || 0; // 当前点击图片的索引 - const replyIndex = dataset.replyIndex; // 回复在列表中的索引 - - console.log('预览兽医图片 - 数据集:', dataset); - - // 方法1: 从replies数据中获取当前回复的图片列表 - let targetUrls = []; - let targetCurrentUrl = ''; - + const currentFileName = dataset.url; + const currentFullUrl = dataset.fullurl; + const urlsArray = dataset.urls || []; + const currentIndex = dataset.currentIndex || 0; + const replyIndex = dataset.replyIndex; + if (replyIndex !== undefined && this.data.replies[replyIndex]) { - // 从replies数据中获取完整的图片列表 const reply = this.data.replies[replyIndex]; if (reply.images && reply.images.length > 0) { - targetUrls = reply.images; - - // 构建完整URL数组 + const targetUrls = reply.images; const fullUrls = targetUrls.map(img => { if (typeof img === 'string' && (img.startsWith('http://') || img.startsWith('https://'))) { return img; } return baseUrl + img; }); - - // 确定当前图片的完整URL + let targetCurrentUrl = ''; if (currentIndex < fullUrls.length) { targetCurrentUrl = fullUrls[currentIndex]; } else if (currentFullUrl) { @@ -210,9 +247,6 @@ Page({ } else if (currentFileName) { targetCurrentUrl = baseUrl + currentFileName; } - - console.log('预览兽医回复图片(从replies数据):', fullUrls, '当前:', targetCurrentUrl); - wx.previewImage({ current: targetCurrentUrl, urls: fullUrls @@ -220,18 +254,14 @@ Page({ return; } } - - // 方法2: 使用dataset中的数据 + if (urlsArray && urlsArray.length > 0) { - // 构建完整URL数组 const fullUrls = urlsArray.map(item => { if (typeof item === 'string' && (item.startsWith('http://') || item.startsWith('https://'))) { return item; } return baseUrl + item; }); - - // 确定当前图片的完整URL let currentUrl = ''; if (currentFullUrl) { currentUrl = currentFullUrl; @@ -240,26 +270,20 @@ Page({ } else if (currentFileName) { currentUrl = baseUrl + currentFileName; } - - console.log('预览兽医回复图片(从dataset):', fullUrls, '当前:', currentUrl); - wx.previewImage({ current: currentUrl, urls: fullUrls }); return; } - - // 方法3: 只预览单张图片 + if (currentFullUrl) { - console.log('预览单张兽医图片:', [currentFullUrl]); wx.previewImage({ current: currentFullUrl, urls: [currentFullUrl] }); } else if (currentFileName) { const fullUrl = baseUrl + currentFileName; - console.log('预览单张兽医图片(拼接后):', [fullUrl]); wx.previewImage({ current: fullUrl, urls: [fullUrl] diff --git a/pagesA/pages/askingSyDetails/askingSyDetails.wxml b/pagesA/pages/askingSyDetails/askingSyDetails.wxml index 3afb31a..3f9e35e 100644 --- a/pagesA/pages/askingSyDetails/askingSyDetails.wxml +++ b/pagesA/pages/askingSyDetails/askingSyDetails.wxml @@ -1,8 +1,9 @@ + - - + + @@ -54,21 +55,20 @@ - + - + + + + + 方案制定查看 + + + @@ -120,25 +120,14 @@ {{item.content}} - - + + - - - + + + +{{item.images.length - 4}} @@ -154,7 +143,7 @@ {{item.createdAt || item.createTime || ''}} - + @@ -172,6 +161,95 @@ - + + + —— 已经没有更多了 —— + + + + + + + + 📋 治疗方案 + + + + + + + + + + + + + + + {{item.vetNickName || '兽医'}} + {{item.title}} + + + + + + 🔍 诊断结果 + {{item.diagnosis}} + + + + + 💊 治疗方式 + {{item.treatmentMethod}} + + + + + 📝 方案描述 + {{item.treatmentDesc}} + + + + + ⚠️ 注意事项 + {{item.precautions}} + + + + + + + + + + + + + + + + + + 📭 + 暂无治疗方案 + + + + + 加载更多... + + + + + —— 没有更多治疗方案 —— + + + + + + + + + \ No newline at end of file diff --git a/pagesA/pages/askingSyDetails/askingSyDetails.wxss b/pagesA/pages/askingSyDetails/askingSyDetails.wxss index a9e0110..01dc1b1 100644 --- a/pagesA/pages/askingSyDetails/askingSyDetails.wxss +++ b/pagesA/pages/askingSyDetails/askingSyDetails.wxss @@ -1,14 +1,27 @@ .xqbox { background: linear-gradient(180deg, #F8FBFF 0%, #F0F7FF 100%); min-height: 100vh; + height: 100vh; + display: flex; + flex-direction: column; + overflow: hidden; } /* 页面内容 */ .page-content { - height: calc(100vh - 120rpx); + height: 100vh; + padding-bottom: 40rpx; box-sizing: border-box; } +/* iOS 底部安全区域适配 */ +@supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) { + .page-content { + padding-bottom: calc(40rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(40rpx + env(safe-area-inset-bottom)); + } +} + /* 动画效果 */ @keyframes cardEnter { 0% { @@ -43,9 +56,15 @@ 100% { transform: scale(1); } } -@keyframes float { - 0%, 100% { transform: translateY(0); } - 50% { transform: translateY(-10rpx); } +@keyframes slideUp { + 0% { + opacity: 0; + transform: translateY(100rpx) scale(0.9); + } + 100% { + opacity: 1; + transform: translateY(0) scale(1); + } } .card-enter { @@ -66,14 +85,6 @@ animation: pulse 2s infinite; } -.hover-effect { - transition: all 0.3s ease; -} - -.hover-effect:active { - transform: scale(0.95); -} - /* 渐变背景 */ .gradient-blue { background: linear-gradient(135deg, #6D9EFF 0%, #4A7CFF 100%); @@ -173,8 +184,6 @@ box-shadow: 0 8rpx 24rpx rgba(74, 144, 226, 0.3); } - - .user-details { flex: 1; } @@ -244,15 +253,13 @@ align-self: flex-start; } - - .time-text { font-size: 24rpx; color: #6D9EFF; font-weight: 500; } -/* 症状描述区域 */ +/* 症状描述区域 */ .symptom-section { padding: 32rpx; position: relative; @@ -265,9 +272,6 @@ margin-bottom: 28rpx; } - - - .section-title { font-size: 32rpx; font-weight: 700; @@ -364,7 +368,6 @@ border-radius: 20rpx; } - /* 兽医回复区域 */ .replies-section { margin: 24rpx; @@ -409,7 +412,6 @@ backdrop-filter: blur(20rpx); } - /* 兽医信息 */ .vet-info { display: flex; @@ -483,8 +485,6 @@ border-radius: 16rpx; } - - .vet-hospital, .vet-experience { font-size: 24rpx; @@ -543,7 +543,6 @@ border-radius: 20rpx; } - /* 无回复状态 */ .no-replies { background: #FFFFFF; @@ -556,7 +555,6 @@ overflow: hidden; } - .no-replies-title { font-size: 32rpx; color: #333; @@ -589,16 +587,48 @@ animation: pulse 1.5s infinite ease-in-out; } +.fazd { + width: 100%; + display: flex; + justify-content: flex-end; +} + +.zdnr { + display: inline-block; + background-color: #5587FF; + color: #fff; + margin: 20rpx; + padding: 10rpx 20rpx; + border-radius: 10rpx; + font-size: 28rpx; +} + .loading-dot.dot-1 { animation-delay: 0s; } .loading-dot.dot-2 { animation-delay: 0.2s; } .loading-dot.dot-3 { animation-delay: 0.4s; } -/* 页面底部安全区域 */ -.page-bottom { - height: 60rpx; +/* 底部安全区域 */ +.page-bottom-safe { + padding: 30rpx 0 40rpx; + margin-top: 20rpx; + text-align: center; +} + +.bottom-content { + display: flex; + align-items: center; + justify-content: center; + padding: 20rpx 0; } -/* 新增兽医回复图片预览 */ +.bottom-text { + font-size: 24rpx; + color: #999; + opacity: 0.8; + letter-spacing: 2rpx; +} + +/* 兽医回复图片预览 */ .reply-images-section { margin-top: 24rpx; padding: 0 8rpx; @@ -610,7 +640,6 @@ width: 100%; } -/* 根据图片数量自适应网格 */ .reply-images-grid.grid-1 { grid-template-columns: repeat(1, minmax(200rpx, 320rpx)); justify-content: start; @@ -623,7 +652,6 @@ .reply-images-grid.grid-3, .reply-images-grid.grid-4, .reply-images-grid:not(.grid-1):not(.grid-2) { - /* 超过2张时显示为2列网格*/ grid-template-columns: repeat(2, 1fr); } @@ -632,7 +660,7 @@ border-radius: 16rpx; overflow: hidden; background-color: #f5f5f5; - aspect-ratio: 1 / 1; /* 保持正方形 */ + aspect-ratio: 1 / 1; box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.1); transition: transform 0.2s ease; } @@ -648,7 +676,7 @@ object-fit: cover; } -/* 图片数量遮罩(超过4张时显示) */ +/* 图片数量遮罩 */ .image-more-mask { position: absolute; top: 0; @@ -667,4 +695,362 @@ font-size: 36rpx; font-weight: 700; text-shadow: 0 2rpx 4rpx rgba(0,0,0,0.3); +} + + +.modal-mask { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.6); + display: flex; + align-items: center; + justify-content: center; + z-index: 1000; + animation: fadeIn 0.3s ease; + backdrop-filter: blur(8rpx); + /* 确保在 iOS 上正确显示 */ + -webkit-backdrop-filter: blur(8rpx); +} + +/* 弹框内容 - 优化高度计算 */ +.modal-content { + width: 700rpx; + max-height: 80vh; + background: linear-gradient(135deg, #FFFFFF 0%, #F8FBFF 100%); + border-radius: 40rpx; + overflow: hidden; + box-shadow: 0 40rpx 80rpx rgba(0, 0, 0, 0.3); + animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); + /* 优化显示 */ + display: flex; + flex-direction: column; +} + +/* 弹框头部 - 固定在顶部 */ +.modal-header { + padding: 30rpx 40rpx; + display: flex; + align-items: center; + justify-content: space-between; + border-bottom: 2rpx solid #E5F0FF; + background: linear-gradient(90deg, #6D9EFF 0%, #4A7CFF 100%); + flex-shrink: 0; +} + +.modal-title { + font-size: 36rpx; + font-weight: 700; + color: #FFFFFF; + text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.2); + letter-spacing: 1rpx; +} + +.modal-close { + width: 48rpx; + height: 48rpx; + background: rgba(255, 255, 255, 0.3); + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + transition: all 0.3s ease; + flex-shrink: 0; +} + +.modal-close:active { + background: rgba(255, 255, 255, 0.5); + transform: scale(0.9); +} + +.close-icon { + color: #FFFFFF; + font-size: 36rpx; + font-weight: 500; + line-height: 1; +} + +/* 弹框主体*/ +.modal-body { + flex: 1; + overflow-y: scroll; + -webkit-overflow-scrolling: touch; + padding: 0; + box-sizing: border-box; + /* 优化滚动条 */ + scrollbar-width: thin; + scrollbar-color: #6D9EFF #E5F0FF; +} + +/* 自定义滚动条样式 */ +.modal-body::-webkit-scrollbar { + width: 6rpx; +} + +.modal-body::-webkit-scrollbar-track { + background: #E5F0FF; + border-radius: 3rpx; +} + +.modal-body::-webkit-scrollbar-thumb { + background: #6D9EFF; + border-radius: 3rpx; +} + +.modal-body::-webkit-scrollbar-thumb:hover { + background: #4A7CFF; +} + +/* 方案列表容器 */ +.plan-list { + display: flex; + flex-direction: column; + gap: 24rpx; + padding: 30rpx; +} + +/* 方案卡片 */ +.plan-card { + background: #FFFFFF; + border-radius: 28rpx; + padding: 30rpx; + box-shadow: 0 8rpx 24rpx rgba(74, 144, 226, 0.15); + border: 2rpx solid #E5F0FF; + position: relative; + overflow: hidden; + transition: all 0.3s ease; +} + +.plan-card:last-child { + margin-bottom: 0; +} + +.plan-card:active { + transform: translateY(-4rpx); + box-shadow: 0 16rpx 40rpx rgba(74, 144, 226, 0.25); +} + +/* 兽医信息行 */ +.plan-vet-row { + display: flex; + align-items: center; + margin-bottom: 24rpx; + padding-bottom: 20rpx; + border-bottom: 2rpx dashed #E5F0FF; +} + +.plan-avatar { + width: 72rpx; + height: 72rpx; + border-radius: 50%; + margin-right: 20rpx; + border: 3rpx solid #FFFFFF; + box-shadow: 0 4rpx 12rpx rgba(74, 144, 226, 0.3); + flex-shrink: 0; +} + +.plan-vet-info { + flex: 1; + display: flex; + flex-direction: column; + gap: 6rpx; +} + +.plan-user-name { + font-size: 32rpx; + font-weight: 700; + color: #1A1A1A; + line-height: 1.2; +} + +.plan-title-tag { + font-size: 22rpx; + background: linear-gradient(135deg, #FFD700 0%, #FFB300 100%); + color: #FFFFFF; + padding: 4rpx 16rpx; + border-radius: 20rpx; + display: inline-block; + align-self: flex-start; + font-weight: 600; + box-shadow: 0 4rpx 12rpx rgba(255, 215, 0, 0.3); +} + +/* 方案条目 */ +.plan-item { + margin-bottom: 24rpx; + background: #F8FBFF; + border-radius: 20rpx; + padding: 20rpx; + border: 2rpx solid #E5F0FF; +} + +.plan-item:last-child { + margin-bottom: 0; +} + +.item-label { + font-size: 26rpx; + font-weight: 600; + color: #4A7CFF; + margin-bottom: 12rpx; + display: flex; + align-items: center; + gap: 8rpx; +} + +.item-value { + font-size: 28rpx; + color: #333; + line-height: 1.6; + word-break: break-word; +} + +.diagnosis-text { + font-weight: 500; + color: #1A1A1A; + background: rgba(109, 158, 255, 0.1); + padding: 16rpx; + border-radius: 16rpx; +} + +.precautions-text { + color: #FF6B6B; + background: rgba(255, 107, 107, 0.05); + padding: 16rpx; + border-radius: 16rpx; +} + +/* 方案图片 */ +.plan-images { + margin-top: 24rpx; + padding-top: 20rpx; + border-top: 2rpx solid #E5F0FF; +} + +.plan-images-scroll { + width: 100%; + white-space: nowrap; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + padding-bottom: 4rpx; +} + +.plan-images-scroll::-webkit-scrollbar { + height: 4rpx; +} + +.plan-images-scroll::-webkit-scrollbar-track { + background: #E5F0FF; + border-radius: 2rpx; +} + +.plan-images-scroll::-webkit-scrollbar-thumb { + background: #6D9EFF; + border-radius: 2rpx; +} + +.plan-images-container { + display: flex; + gap: 16rpx; + padding: 8rpx 0; +} + +.plan-thumb { + width: 160rpx; + height: 160rpx; + border-radius: 16rpx; + box-shadow: 0 8rpx 16rpx rgba(0, 0, 0, 0.15); + transition: all 0.3s ease; + flex-shrink: 0; +} + +.plan-thumb:active { + transform: scale(0.95); +} + +/* 加载更多提示 */ +.plan-loading-more, +.plan-no-more { + padding: 30rpx 0 20rpx; + text-align: center; +} + +.loading-more-text { + font-size: 26rpx; + color: #6D9EFF; + font-weight: 500; + padding: 10rpx 30rpx; + background: rgba(109, 158, 255, 0.1); + border-radius: 40rpx; + display: inline-block; +} + +.no-more-text { + font-size: 24rpx; + color: #999; + opacity: 0.6; +} + +/* 底部填充区域 */ +.modal-bottom-fill { + height: 20rpx; + width: 100%; +} + +/* 空状态 */ +.plan-empty { + padding: 80rpx 0; + text-align: center; + background: #F8FBFF; + border-radius: 28rpx; +} + +.empty-icon { + font-size: 80rpx; + display: block; + margin-bottom: 20rpx; + opacity: 0.5; +} + +.empty-text { + font-size: 28rpx; + color: #999; + font-weight: 500; +} + + + +/* iOS 底部安全区域适配 */ +@supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) { + .modal-footer { + padding-bottom: calc(20rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(20rpx + env(safe-area-inset-bottom)); + } +} + +.fazd { + width: 100%; + display: flex; + justify-content: flex-end; + cursor: pointer; +} + +.zdnr { + display: inline-block; + background: linear-gradient(135deg, #5587FF 0%, #3A6AFF 100%); + color: #fff; + margin: 20rpx; + padding: 16rpx 32rpx; + border-radius: 40rpx; + font-size: 28rpx; + font-weight: 600; + box-shadow: 0 8rpx 24rpx rgba(85, 135, 255, 0.4); + transition: all 0.3s ease; +} + +.zdnr:active { + transform: scale(0.95); + box-shadow: 0 4rpx 12rpx rgba(85, 135, 255, 0.3); } \ No newline at end of file diff --git a/utils/api.js b/utils/api.js index 9643793..85b609a 100644 --- a/utils/api.js +++ b/utils/api.js @@ -71,6 +71,18 @@ function wzd(params) { http('/muhu/consultation/list', 'get', params) } +//问诊单详情 +function wzdDetails(params) { + http('/muhu/consultation/' + params.data.id, 'get', params) +} + + +// 问兽医-问诊单制定方案详情 +function planDetails(params) { + http('/vet/plan/list', 'get', params) +} + + // 问兽医-问诊单新增 function wzdAdd(params) { http('/muhu/consultation', 'post', params) @@ -81,6 +93,7 @@ function wzdxq(params) { http('/vet/comments/list', 'get', params) } + // 专家列表 function expertsList(params) { http('/vet/experts/list', 'get', params) @@ -212,8 +225,6 @@ function shareAdd(params) { } - - // 实名认证 function realName(params) { http('/muhu/user/auth/submit', 'post', params) @@ -246,5 +257,5 @@ export default { // 暴露接口 recommendationXq,queryList,tipList,article,articleDetails,articleZd,policyelucidation, areaChildren,userCode,UserInfo,videoList,videoZd,videoDetails,forumList,forumAdd,forumDetails, forumReply,commentReply,experience,experiencezd,experienceDetails,realName,revise,feedback, - warningType,disasterDetail,today,carouselDetail + warningType,disasterDetail,today,carouselDetail,planDetails,wzdDetails }