index.vue 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612
  1. <template>
  2. <view class="detail-container">
  3. <!-- 加载动画 -->
  4. <view class="loading-container" v-if="pageLoading">
  5. <!-- 顶部骨架 -->
  6. <view class="skeleton-header">
  7. <view class="skeleton-line skeleton-ani" style="width: 30%; height: 36rpx;"></view>
  8. <view class="skeleton-line skeleton-ani" style="width: 20%; height: 36rpx;"></view>
  9. </view>
  10. <view class="skeleton-progress">
  11. <view class="skeleton-circle skeleton-ani" v-for="i in 4" :key="i"></view>
  12. </view>
  13. <!-- 卡片骨架 -->
  14. <view class="skeleton-card" v-for="j in 3" :key="'c' + j">
  15. <view class="skeleton-line skeleton-ani" style="width: 60%; height: 28rpx; margin-bottom: 20rpx;">
  16. </view>
  17. <view class="skeleton-line skeleton-ani" style="width: 90%; height: 24rpx; margin-bottom: 14rpx;">
  18. </view>
  19. <view class="skeleton-line skeleton-ani" style="width: 75%; height: 24rpx;"></view>
  20. </view>
  21. </view>
  22. <template v-else>
  23. <!-- 顶部动态状态区 -->
  24. <view class="detail-header">
  25. <view class="status-row">
  26. <text class="status-title">{{ displayStatusText }}</text>
  27. <text class="status-price">¥{{ orderDetail.fulfillmentCommission }}</text>
  28. </view>
  29. <!-- 进度条区域 -->
  30. <view class="progress-bar">
  31. <view class="step-item" v-for="(step, index) in progressSteps" :key="index"
  32. :class="{ 'active': index === progressIndex, 'done': index < progressIndex }">
  33. <view class="step-circle-wrapper">
  34. <!-- Connecting Line before circle, except first item -->
  35. <view class="step-line" v-if="index !== 0"
  36. :class="{ 'active-line': index <= progressIndex }">
  37. </view>
  38. <view class="step-circle">{{ index + 1 }}</view>
  39. </view>
  40. <text class="step-text">{{ step }}</text>
  41. </view>
  42. </view>
  43. </view>
  44. <!-- 内容区域 -->
  45. <scroll-view scroll-y class="detail-content">
  46. <!-- 宠物信息 -->
  47. <view class="white-card pet-bar">
  48. <image class="pb-avatar" :src="orderDetail.petAvatar" mode="aspectFill"></image>
  49. <view class="pb-info">
  50. <view class="pb-name-row">
  51. <text class="pb-name">{{ orderDetail.petName }}</text>
  52. </view>
  53. <view class="pb-tags">
  54. <text class="pb-tag">{{ orderDetail.serviceName }}</text>
  55. </view>
  56. </view>
  57. <view class="pb-actions">
  58. <view class="pb-btn profile-btn" @click="showPetProfile">宠物档案</view>
  59. <view class="pb-btn phone-btn" @click="callPhone">
  60. <image class="phone-icon" src="/static/icons/phone_orange.svg"></image>
  61. </view>
  62. </view>
  63. </view>
  64. <!-- 路线及服务信息 -->
  65. <view class="white-card service-info-card">
  66. <view class="si-row time-row">
  67. <image class="si-icon outline" src="/static/icons/clock.svg"></image>
  68. <view class="si-content">
  69. <text class="si-label">服务时间</text>
  70. <text class="si-val">{{ orderDetail.time }}</text>
  71. </view>
  72. <view class="si-action record-btn" @tap.stop="openAnomalyModal">
  73. <text>异常记录</text>
  74. <image class="record-arrow" src="/static/icons/right_arrow_orange.svg"></image>
  75. </view>
  76. </view>
  77. <!-- 接送类型的地址展现 -->
  78. <template v-if="orderDetail.type === 1">
  79. <view class="si-row addr-row start-addr">
  80. <view class="icon-circle start">起</view>
  81. <view class="route-line-vertical"></view>
  82. <view class="si-content">
  83. <text class="si-addr-title">{{ orderDetail.startLocation }}</text>
  84. <text class="si-addr-desc">{{ orderDetail.startAddress }}</text>
  85. </view>
  86. <view class="nav-btn-circle" @click="openNavigation('start')">
  87. <image class="nav-arrow" src="/static/icons/nav_arrow.svg"></image>
  88. </view>
  89. </view>
  90. <view class="si-row addr-row end-addr">
  91. <view class="icon-circle end">终</view>
  92. <view class="si-content">
  93. <text class="si-addr-title">{{ orderDetail.endLocation }}</text>
  94. <text class="si-addr-desc">{{ orderDetail.endAddress }}</text>
  95. </view>
  96. <view class="nav-btn-circle" @click="openNavigation('end')">
  97. <image class="nav-arrow" src="/static/icons/nav_arrow.svg"></image>
  98. </view>
  99. </view>
  100. </template>
  101. <!-- 喂遛/洗护类型的地址展现 -->
  102. <template v-else>
  103. <view class="si-row addr-row end-addr">
  104. <view class="icon-circle service">服</view>
  105. <view class="si-content">
  106. <text class="si-addr-title">{{ orderDetail.endLocation }}</text>
  107. <text class="si-addr-desc">{{ orderDetail.endAddress }}</text>
  108. </view>
  109. <view class="nav-btn-circle" @click="openNavigation('end')">
  110. <image class="nav-arrow" src="/static/icons/nav_arrow.svg"></image>
  111. </view>
  112. </view>
  113. </template>
  114. <view class="si-row">
  115. <image class="si-icon outline custom-icon-file" src="/static/icons/file.svg"></image>
  116. <view class="si-content">
  117. <text class="si-label">备注</text>
  118. <text class="si-val">{{ orderDetail.remark || '无' }}</text>
  119. </view>
  120. </view>
  121. <!-- <view class="si-row record-history-row" @tap.stop="openAnomalyModal">
  122. <view class="si-content">
  123. <text class="si-label">异常记录</text>
  124. <text class="si-val">查看历史异常记录</text>
  125. </view>
  126. <image class="record-arrow" src="/static/icons/right_arrow_orange.svg"></image>
  127. </view> -->
  128. </view>
  129. <!-- 打卡任务 -->
  130. <view class="white-card task-card" v-if="currentStep < steps.length">
  131. <text class="tc-title">当前任务:{{ currentTaskTitle }}</text>
  132. <text class="tc-desc">{{ currentTaskDesc }}</text>
  133. <!-- 单个巨大点击区触发弹窗 -->
  134. <view class="full-media-add" @click="openUploadModal">
  135. <image class="upload-icon-large" src="/static/icons/camera_grey.svg"></image>
  136. <text class="upload-text-large">上传图或视频</text>
  137. </view>
  138. </view>
  139. <!-- 订单属性 -->
  140. <view class="white-card base-info-card">
  141. <view class="bi-row">
  142. <image class="si-icon outline" src="/static/icons/order_no.svg"></image>
  143. <view class="bi-content">
  144. <text class="bi-label">订单编号</text>
  145. <view class="bi-val-row">
  146. <text class="bi-val">{{ orderDetail.orderNo }}</text>
  147. <text class="bi-copy" @click="copyOrderNo">复制</text>
  148. </view>
  149. </view>
  150. </view>
  151. <view class="bi-row">
  152. <image class="si-icon outline" src="/static/icons/clock.svg"></image>
  153. <view class="bi-content">
  154. <text class="bi-label">下单时间</text>
  155. <text class="bi-val">{{ orderDetail.createTime }}</text>
  156. </view>
  157. </view>
  158. </view>
  159. <!-- 订单进度 -->
  160. <view class="white-card timeline-card">
  161. <view class="tl-title-row">
  162. <view class="orange-bar"></view>
  163. <text class="tl-title">订单进度</text>
  164. </view>
  165. <view class="tl-list">
  166. <view class="tl-item" v-for="(log, idx) in orderDetail.progressLogs" :key="idx">
  167. <view class="tl-marker active">
  168. <view class="tl-dot-inner"></view>
  169. </view>
  170. <view class="tl-content-row">
  171. <view class="tl-header">
  172. <text class="tl-status">{{ log.status }}</text>
  173. <text class="tl-time">{{ log.time }}</text>
  174. </view>
  175. <!-- 媒体(图片/视频)展示 -->
  176. <view class="tl-medias" v-if="log.medias && log.medias.length > 0">
  177. <view class="tl-media-item" v-for="(media, midx) in log.medias" :key="midx"
  178. @click="previewMedia(log.medias, midx)">
  179. <image v-if="!isVideo(media)" class="tl-img" :src="media" mode="aspectFill">
  180. </image>
  181. <view v-else class="tl-video-placeholder">
  182. <view class="tl-play-icon">
  183. </view>
  184. <text class="tl-video-label">视频</text>
  185. </view>
  186. </view>
  187. </view>
  188. <!-- 备注展示 -->
  189. <view class="tl-remark" v-if="log.remark">
  190. <text>{{ log.remark }}</text>
  191. </view>
  192. </view>
  193. </view>
  194. </view>
  195. </view>
  196. <view style="height: 140rpx;"></view>
  197. </scroll-view>
  198. <!-- 底部操作栏 -->
  199. <view class="bottom-action-bar">
  200. <view class="action-left">
  201. <button class="action-btn outline grey-outline" @click="goToAnomaly">异常上报</button>
  202. <button class="action-btn outline orange-outline" @click="openSumModal"
  203. v-if="serviceMode === 0">宠护小结</button>
  204. </view>
  205. <view class="action-right">
  206. <button class="action-btn primary" @click="openUploadModal" v-if="currentStep < steps.length">{{
  207. currentTaskTitle }}</button>
  208. <button class="action-btn primary grey-bg" v-else>已完成</button>
  209. </view>
  210. </view>
  211. <!-- 宠物档案弹窗 -->
  212. <view class="pet-modal-mask" v-if="showPetModal" @click="closePetProfile">
  213. <view class="pet-modal-content" @click.stop>
  214. <!-- 头部 -->
  215. <view class="pet-modal-header">
  216. <text class="pet-modal-title">宠物档案</text>
  217. <view style="flex:1"></view>
  218. <view class="pm-remark-btn" @click="openPetRemarkInput">备注</view>
  219. <view class="close-icon-btn" @click="closePetProfile">×</view>
  220. </view>
  221. <scroll-view scroll-y class="pet-modal-scroll">
  222. <!-- 宠物基础信息 -->
  223. <view class="pet-base-info">
  224. <image class="pm-avatar" :src="currentPetInfo.petAvatar" mode="aspectFill"></image>
  225. <view class="pm-info-text">
  226. <view class="pm-name-row">
  227. <text class="pm-name">{{ currentPetInfo.petName }}</text>
  228. <view class="pm-gender" v-if="currentPetInfo.petGender === 'M'">
  229. <text class="gender-icon">♂</text>
  230. <text>公</text>
  231. </view>
  232. <view class="pm-gender female" v-else-if="currentPetInfo.petGender === 'F'">
  233. <text class="gender-icon">♀</text>
  234. <text>母</text>
  235. </view>
  236. </view>
  237. <text class="pm-breed">品种:{{ currentPetInfo.petBreed }}</text>
  238. </view>
  239. </view>
  240. <!-- 属性网格 -->
  241. <view class="pm-detail-grid">
  242. <view class="pm-grid-item half">
  243. <text class="pm-label">年龄</text>
  244. <text class="pm-val">{{ currentPetInfo.petAge || '未知' }}</text>
  245. </view>
  246. <view class="pm-grid-item half">
  247. <text class="pm-label">体重</text>
  248. <text class="pm-val">{{ currentPetInfo.petWeight || '未知' }}</text>
  249. </view>
  250. <view class="pm-grid-item full">
  251. <text class="pm-label">性格</text>
  252. <text class="pm-val">{{ currentPetInfo.petPersonality || '无' }}</text>
  253. </view>
  254. <view class="pm-grid-item full">
  255. <text class="pm-label">爱好</text>
  256. <text class="pm-val">{{ currentPetInfo.petHobby || '无' }}</text>
  257. </view>
  258. <view class="pm-grid-item full">
  259. <text class="pm-label">备注</text>
  260. <text class="pm-val">{{ currentPetInfo.petRemark || '无特殊过敏史' }}</text>
  261. </view>
  262. </view>
  263. <!-- 标签 -->
  264. <view class="pm-tags-row" v-if="currentPetInfo.petTags && currentPetInfo.petTags.length > 0">
  265. <view class="pm-tag-chip" v-for="(tag, ti) in currentPetInfo.petTags" :key="ti">
  266. <text class="pm-tag-chip-text">{{ tag }}</text>
  267. </view>
  268. </view>
  269. <!-- 备注日志 -->
  270. <view class="pm-log-section">
  271. <view class="pm-log-header">
  272. <view
  273. style="width:6rpx; height:28rpx; background:#FF9800; border-radius:3rpx; margin-right:12rpx;">
  274. </view>
  275. <text class="pm-log-section-title">备注日志</text>
  276. </view>
  277. <view class="pm-log-item" v-for="(log, lIndex) in currentPetInfo.petLogs" :key="lIndex">
  278. <text class="pm-log-date">{{ log.date }}</text>
  279. <text class="pm-log-text">{{ log.content }}</text>
  280. <text class="pm-log-recorder" v-if="log.recorder !== '系统记录'">记录人:{{ log.recorder
  281. }}</text>
  282. <text class="pm-log-recorder system" v-else>系统记录</text>
  283. </view>
  284. </view>
  285. <view style="height: 30rpx;"></view>
  286. </scroll-view>
  287. </view>
  288. </view>
  289. <!-- 宠物备注输入弹窗 -->
  290. <view class="upload-modal-mask" v-if="showPetRemarkInput" @click="closePetRemarkInput">
  291. <view class="upload-modal-content" @click.stop>
  292. <view class="um-header">
  293. <text class="um-title">添加备注</text>
  294. </view>
  295. <view class="um-body">
  296. <textarea class="um-textarea" v-model="petRemarkText" auto-height placeholder="请输入宠物备注内容..."
  297. placeholder-style="color:#ccc; font-size:26rpx;"></textarea>
  298. </view>
  299. <view class="um-footer">
  300. <button class="um-submit-btn active" @click="submitPetRemark">确认提交</button>
  301. </view>
  302. </view>
  303. </view>
  304. <!-- 选择地图导航弹窗 (复用) -->
  305. <view class="nav-modal-mask" v-if="showNavModal" @click="closeNavModal">
  306. <view class="nav-action-sheet" @click.stop>
  307. <view class="nav-sheet-title">选择地图进行导航</view>
  308. <view class="nav-sheet-item" @click="chooseMap('高德')">高德地图</view>
  309. <view class="nav-sheet-item" @click="chooseMap('腾讯')">腾讯地图</view>
  310. <view class="nav-sheet-item" @click="chooseMap('百度')">百度地图</view>
  311. <view class="nav-sheet-gap"></view>
  312. <view class="nav-sheet-item cancel" @click="closeNavModal">取消</view>
  313. </view>
  314. </view>
  315. <!-- 上传图视频弹窗 (新增) -->
  316. <view class="upload-modal-mask" v-if="showUploadModal" @click="closeUploadModal">
  317. <view class="upload-modal-content" @click.stop>
  318. <view class="um-header">
  319. <text class="um-title">上传图或视频 ({{ modalMediaList.length }}/5)</text>
  320. <text class="um-remark-hint">{{ currentTaskDesc }}</text>
  321. </view>
  322. <view class="um-body">
  323. <view class="um-grid">
  324. <view class="um-item" v-for="(img, idx) in modalMediaList" :key="idx">
  325. <image class="um-preview" :src="img.thumb || img.url || img.localPath || img"
  326. mode="aspectFill">
  327. </image>
  328. <view class="um-video-badge" v-if="img.mediaType === 'video'">
  329. <image class="play-icon-small" src="/static/icons/play_circle.svg"></image>
  330. </view>
  331. <view class="um-del" @click="removeModalMedia(idx)">×</view>
  332. </view>
  333. <view class="um-add" @click="chooseModalMedia" v-if="modalMediaList.length < 5">
  334. <image class="um-add-icon" src="/static/icons/camera_grey.svg"></image>
  335. <text class="um-add-text">拍摄/上传</text>
  336. </view>
  337. </view>
  338. <textarea class="um-textarea" v-model="modalRemark" placeholder="在此输入备注信息..."
  339. placeholder-style="color:#ccc; font-size:26rpx;"></textarea>
  340. </view>
  341. <view class="um-footer">
  342. <view class="um-submit-btn" :class="{ 'active': modalMediaList.length > 0 }"
  343. @click="handleConfirmUpload">
  344. 确认提交</view>
  345. </view>
  346. </view>
  347. </view>
  348. <!-- 宠护小结弹窗 -->
  349. <view class="sum-modal-mask" v-if="showSumModal" @click="closeSumModal">
  350. <view class="sum-modal-card" @click.stop>
  351. <scroll-view scroll-y class="sum-modal-scroll">
  352. <view class="sum-modal-inner">
  353. <text class="sum-modal-title">宠物护理工作小结</text>
  354. <view class="sum-meta-row">
  355. <text class="sum-meta-label">日期:</text>
  356. <text class="sum-meta-val">{{ sumDate }}</text>
  357. </view>
  358. <view class="sum-meta-row">
  359. <text class="sum-meta-label">客户住址:</text>
  360. <text class="sum-meta-val">{{ orderDetail.endAddress }}</text>
  361. </view>
  362. <view class="sum-meta-row">
  363. <text class="sum-meta-label">宠主姓名:</text>
  364. <text class="sum-meta-val">{{ orderDetail.ownerName || '未知' }}</text>
  365. </view>
  366. <view class="sum-section-title">宠物信息</view>
  367. <view class="sum-pet-card">
  368. <image class="sum-pet-avatar" :src="orderDetail.petAvatar" mode="aspectFill"></image>
  369. <view class="sum-pet-info">
  370. <view class="sum-pet-name-row">
  371. <text class="sum-pet-name">{{ orderDetail.petName || '未知' }}</text>
  372. <text class="sum-pet-breed">品种: {{ orderDetail.petBreed || '未知' }}</text>
  373. </view>
  374. <text class="sum-pet-remark">{{ orderDetail.petNotes || '暂无备注' }}</text>
  375. </view>
  376. </view>
  377. <view class="sum-section-title">服务内容记录</view>
  378. <textarea class="sum-textarea" v-model="sumContent" auto-height placeholder="请填写服务内容..."
  379. placeholder-style="color:#ccc"></textarea>
  380. <view class="sum-sign-row">
  381. <text class="sum-sign-label">护宠师签名:</text>
  382. <text class="sum-sign-val">{{ sumSigner }}</text>
  383. </view>
  384. <view style="height: 20rpx;"></view>
  385. </view>
  386. </scroll-view>
  387. <view class="sum-footer">
  388. <button class="sum-submit-btn" @click="submitSumModal">提交小结</button>
  389. </view>
  390. </view>
  391. </view>
  392. <!-- 异常记录弹窗 -->
  393. <view class="modal-mask" v-if="showAnomalyModal" @click="closeAnomalyModal">
  394. <view class="anomaly-modal-content" @click.stop>
  395. <view class="am-header">
  396. <text class="am-title">历史异常记录</text>
  397. <view class="close-icon-btn" @click="closeAnomalyModal">×</view>
  398. </view>
  399. <scroll-view scroll-y class="am-scroll-list">
  400. <view class="empty-list" v-if="anomalyList.length === 0">
  401. <image class="empty-icon" src="/static/empty-rest.png" mode="aspectFit"></image>
  402. <text class="empty-text">暂无异常记录</text>
  403. </view>
  404. <view class="am-item" v-for="(item, index) in anomalyList" :key="index">
  405. <view class="am-item-header">
  406. <text class="am-item-type">{{ item.typeLabel }}</text>
  407. <text class="am-item-status" :class="'status-' + item.status">{{
  408. getAnomalyStatusLabel(item.status)
  409. }}</text>
  410. </view>
  411. <text class="am-item-content">{{ item.content }}</text>
  412. <view class="am-item-photos" v-if="item.photos && item.photos.length > 0">
  413. <view class="am-photo-item" v-for="(photoUrl, pIdx) in item.photoUrls" :key="pIdx"
  414. @click="previewMedia(item.photoUrls, pIdx)">
  415. <image v-if="!isVideo(photoUrl)" class="am-photo" :src="photoUrl" mode="aspectFill">
  416. </image>
  417. <view v-else class="tl-video-placeholder miniaturized">
  418. <view class="tl-play-icon small">
  419. </view>
  420. <text class="tl-video-label small">视频</text>
  421. </view>
  422. </view>
  423. </view>
  424. <view class="am-audit-box" v-if="item.status !== 0">
  425. <view class="am-audit-header">
  426. <text class="am-audit-label">{{ item.status === 1 ? '审核通过' : '驳回理由' }}</text>
  427. <text class="am-audit-time">{{ item.auditTime }}</text>
  428. </view>
  429. <text class="am-audit-remark">{{ item.auditRemark || '无' }}</text>
  430. </view>
  431. </view>
  432. </scroll-view>
  433. </view>
  434. </view>
  435. <!-- 视频播放弹窗 -->
  436. <view class="video-player-mask" v-if="videoPlayerShow" @click="closeVideoPlayer">
  437. <view class="video-player-content" @click.stop>
  438. <video class="v-player" :src="videoPlayerUrl" autoplay controls></video>
  439. <view class="v-close" @click="closeVideoPlayer">×</view>
  440. </view>
  441. </view>
  442. </template>
  443. </view>
  444. </template>
  445. <script>
  446. import { getOrderInfo, clockIn, submitNursingSummary } from '@/api/order/subOrder'
  447. import { getOrderLogs } from '@/api/order/subOrderLog'
  448. import { uploadFile } from '@/api/fulfiller/app'
  449. import { getAnomalyList } from '@/api/fulfiller/anamaly'
  450. import { listAllService } from '@/api/service/list'
  451. import { reportGps } from '@/utils/gps'
  452. import { getDictDataByType } from '@/api/system/dict'
  453. import { getPetDetail, submitPetRemark as apiSubmitPetRemark } from '@/api/archieves/pet'
  454. import { listChangeLog } from '@/api/archieves/changeLog'
  455. export default {
  456. data() {
  457. return {
  458. orderId: null,
  459. pageLoading: true,
  460. orderType: 1,
  461. orderStatus: 2,
  462. serviceId: null,
  463. serviceMode: null,
  464. petId: null,
  465. petDetail: null,
  466. clockInSteps: [],
  467. currentClockIn: null,
  468. currentStep: 0,
  469. orderDetail: {
  470. type: 1, fulfillmentCommission: '0.00', timeLabel: '服务时间', time: '',
  471. petAvatar: '/static/dog.png', petName: '', petBreed: '',
  472. serviceTag: '', startLocation: '', startAddress: '', endAddress: '',
  473. customerPhone: '', serviceContent: '', remark: '',
  474. orderNo: '', createTime: '', serviceName: '',
  475. progressLogs: [], nursingSummary: ''
  476. },
  477. serviceList: [],
  478. showPetModal: false,
  479. currentPetInfo: {},
  480. showNavModal: false,
  481. navTargetPointType: '',
  482. showUploadModal: false,
  483. modalMediaList: [],
  484. modalRemark: '',
  485. showSumModal: false,
  486. sumContent: '',
  487. sumDate: '',
  488. sumSigner: '未知',
  489. showPetRemarkInput: false,
  490. petRemarkText: '',
  491. showAnomalyModal: false,
  492. anomalyList: [],
  493. anomalyTypeDict: [],
  494. videoPlayerShow: false,
  495. videoPlayerUrl: ''
  496. }
  497. },
  498. computed: {
  499. steps() {
  500. if (this.clockInSteps.length > 0) return this.clockInSteps.map(s => s.title)
  501. return this.orderType === 1
  502. ? ['到达打卡', '确认出发', '送达打卡']
  503. : ['到达打卡', '开始服务', '服务结束']
  504. },
  505. progressSteps() { return ['已接单', ...this.steps, '订单完成'] },
  506. progressIndex() { return this.currentStep + 1 },
  507. displayStatusText() {
  508. if (this.currentStep >= this.steps.length) return '已完成';
  509. if (this.currentStep > 0) return this.orderType === 1 ? '配送中' : '服务中';
  510. return this.orderType === 1 ? '待接送' : '待服务';
  511. },
  512. currentStatusText() {
  513. return this.currentStep >= this.steps.length ? '已完成' : this.steps[this.currentStep];
  514. },
  515. currentTaskTitle() {
  516. if (this.currentStep >= this.steps.length) return '订单已完成';
  517. if (this.currentClockIn) return this.currentClockIn.title;
  518. return this.steps[this.currentStep] || '打卡';
  519. },
  520. currentTaskDesc() {
  521. if (this.currentStep >= this.steps.length) return '感谢您的服务,请注意休息';
  522. if (this.currentClockIn && this.currentClockIn.remark) return this.currentClockIn.remark;
  523. return '请按要求提交照片或视频及备注';
  524. }
  525. },
  526. async onLoad(options) {
  527. if (options.id) this.orderId = options.id
  528. this.pageLoading = true
  529. reportGps(true).catch(e => console.log('Init GPS check skipped', e));
  530. try {
  531. await this.loadAnomalyTypeDict()
  532. await this.loadServiceList()
  533. await this.loadOrderDetail()
  534. } finally {
  535. this.pageLoading = false
  536. }
  537. },
  538. methods: {
  539. async loadServiceList() {
  540. try {
  541. const res = await listAllService()
  542. this.serviceList = res.data || []
  543. } catch (err) { console.error('获取服务类型失败:', err) }
  544. },
  545. loadServiceDetail(serviceId) {
  546. const serviceInfo = (this.serviceList || []).find(s => s.id === serviceId)
  547. if (serviceInfo) {
  548. this.serviceMode = serviceInfo.mode
  549. this.orderDetail.serviceName = serviceInfo.name
  550. if (serviceInfo.clockInRemark) {
  551. try {
  552. const parsed = JSON.parse(serviceInfo.clockInRemark)
  553. if (Array.isArray(parsed) && parsed.length > 0) this.clockInSteps = parsed
  554. } catch (parseErr) { console.error('解析 clockInRemark 失败:', parseErr) }
  555. }
  556. }
  557. },
  558. async loadOrderDetail() {
  559. if (!this.orderId) { uni.showToast({ title: '订单ID缺失', icon: 'none' }); return }
  560. try {
  561. const res = await getOrderInfo(this.orderId)
  562. const order = res.data
  563. if (!order) { uni.showToast({ title: '订单不存在', icon: 'none' }); return }
  564. this.serviceId = order.service
  565. this.petId = order.usrPet || null
  566. this.transformOrderData(order)
  567. if (this.serviceId) this.loadServiceDetail(this.serviceId)
  568. if (this.petId) await this.loadPetDetail(this.petId)
  569. await this.loadOrderLogs()
  570. } catch (err) {
  571. console.error('获取订单详情失败:', err)
  572. uni.showToast({ title: '加载失败', icon: 'none' })
  573. }
  574. },
  575. async loadOrderLogs() {
  576. try {
  577. const res = await getOrderLogs(this.orderId)
  578. const logs = res.data || []
  579. const progressLogs = logs.filter(log => log.logType === 1)
  580. this.orderDetail.progressLogs = progressLogs.map(log => ({
  581. status: log.title || '', time: log.createTime || '',
  582. medias: log.photoUrls || [], remark: log.content || ''
  583. }))
  584. const validLogs = logs.filter(log => log.logType === 1 && log.step !== undefined && log.step !== null)
  585. .sort((a, b) => new Date(b.createTime).getTime() - new Date(a.createTime).getTime())
  586. if (validLogs.length > 0) {
  587. const latestStep = validLogs[0].step
  588. const stepIndex = this.clockInSteps.findIndex(s => s.step === latestStep)
  589. this.currentStep = stepIndex >= 0 ? stepIndex + 1 : Number(latestStep)
  590. } else { this.currentStep = 0 }
  591. this.updateCurrentClockIn()
  592. } catch (err) { console.error('获取订单日志失败:', err) }
  593. },
  594. updateCurrentClockIn() {
  595. this.currentClockIn = this.currentStep < this.clockInSteps.length ? this.clockInSteps[this.currentStep] : null
  596. },
  597. transformOrderData(order) {
  598. const mode = order.mode || 0
  599. const isRoundTrip = mode === 1
  600. this.orderType = isRoundTrip ? 1 : 2
  601. this.orderStatus = order.status || 2
  602. this.orderDetail = {
  603. type: this.orderType,
  604. fulfillmentCommission: (order.price / 100).toFixed(2),
  605. timeLabel: isRoundTrip ? '取货时间' : '服务时间',
  606. time: order.serviceTime || '',
  607. petAvatar: '/static/dog.png',
  608. petName: order.petName || order.contact || '',
  609. petBreed: order.breed || '',
  610. serviceTag: order.groupPurchasePackageName || '',
  611. startLocation: order.fromAddress || '暂无起点',
  612. startAddress: order.fromAddress || '',
  613. fromAddress: order.fromAddress || '',
  614. fromLat: order.fromLat, fromLng: order.fromLng,
  615. endLocation: (order.contact || '') + ' ' + (order.contactPhoneNumber || ''),
  616. endAddress: order.toAddress || '',
  617. toAddress: order.toAddress || '',
  618. toLat: order.toLat, toLng: order.toLng,
  619. customerPhone: order.contactPhoneNumber || '',
  620. ownerName: order.contact || '',
  621. serviceContent: '', remark: '',
  622. orderNo: order.code || 'T' + order.id,
  623. createTime: order.serviceTime || '',
  624. nursingSummary: order.nursingSummary || '',
  625. fulfillerName: order.fulfillerName || '',
  626. progressLogs: [{ status: '您已接单', time: order.serviceTime || '' }]
  627. }
  628. if (this.orderDetail.fulfillerName) this.sumSigner = this.orderDetail.fulfillerName
  629. },
  630. async loadPetDetail(petId) {
  631. try {
  632. const res = await getPetDetail(petId)
  633. const pet = res.data
  634. if (pet) {
  635. this.petDetail = pet
  636. this.orderDetail.petAvatar = pet.avatarUrl || '/static/dog.png'
  637. this.orderDetail.petName = pet.name || this.orderDetail.petName
  638. this.orderDetail.petBreed = pet.breed || this.orderDetail.petBreed
  639. this.orderDetail.ownerName = pet.ownerName || this.orderDetail.ownerName
  640. }
  641. } catch (err) { console.error('获取宠物档案失败:', err) }
  642. },
  643. async loadAnomalyList() {
  644. if (!this.orderId) return
  645. try {
  646. const res = await getAnomalyList(this.orderId)
  647. const list = res.data || []
  648. this.anomalyList = list.map(item => {
  649. const dict = this.anomalyTypeDict.find(d => d.value === item.type)
  650. return { ...item, typeLabel: dict ? dict.label : item.type, photoUrls: item.photoUrls || [] }
  651. })
  652. } catch (err) { console.error('获取异常列表失败:', err) }
  653. },
  654. async loadAnomalyTypeDict() {
  655. try {
  656. const res = await getDictDataByType('flf_anamaly_type')
  657. this.anomalyTypeDict = res.data.map(item => ({ label: item.dictLabel, value: item.dictValue }))
  658. } catch (err) { console.error('获取异常字典失败:', err) }
  659. },
  660. openAnomalyModal() { this.showAnomalyModal = true; this.loadAnomalyList() },
  661. closeAnomalyModal() { this.showAnomalyModal = false },
  662. getAnomalyStatusLabel(status) {
  663. return { 0: '待审核', 1: '已通过', 2: '已驳回' }[status] || '未知'
  664. },
  665. showPetProfile() {
  666. const pet = this.petDetail
  667. if (pet) {
  668. this.currentPetInfo = {
  669. petAvatar: pet.avatarUrl || '/static/dog.png',
  670. petName: pet.name || '', petBreed: pet.breed || '',
  671. petGender: pet.gender === 1 ? 'M' : (pet.gender === 2 ? 'F' : ''),
  672. petAge: pet.age ? pet.age + '岁' : '未知',
  673. petWeight: pet.weight ? pet.weight + 'kg' : '未知',
  674. petPersonality: pet.personality || pet.cutePersonality || '无',
  675. petHobby: '', petRemark: pet.remark || '无',
  676. petTags: (pet.tags || []).map(t => t.name), petLogs: [],
  677. petSize: pet.size || '', petIsSterilized: pet.isSterilized,
  678. petHealthStatus: pet.healthStatus || '', petAllergies: pet.allergies || '',
  679. petMedicalHistory: pet.medicalHistory || '', petVaccineStatus: pet.vaccineStatus || '',
  680. ownerName: pet.ownerName || '', ownerPhone: pet.ownerPhone || ''
  681. }
  682. this.loadPetChangeLogs(pet.id)
  683. } else {
  684. this.currentPetInfo = {
  685. ...this.orderDetail, petGender: '', petAge: '未知', petWeight: '未知',
  686. petPersonality: '无', petHobby: '', petRemark: '无', petTags: [], petLogs: []
  687. }
  688. }
  689. this.showPetModal = true
  690. },
  691. async loadPetChangeLogs(petId) {
  692. if (!petId) return
  693. try {
  694. const res = await listChangeLog({ targetId: petId, targetType: 'pet' })
  695. const logs = res.data || []
  696. this.currentPetInfo.petLogs = logs.map(item => ({
  697. date: item.createTime || '', content: item.content || '', recorder: item.operatorName || '未知'
  698. }))
  699. } catch (err) { console.error('获取宠物备注列表失败:', err) }
  700. },
  701. closePetProfile() { this.showPetModal = false },
  702. openPetRemarkInput() { this.petRemarkText = ''; this.showPetRemarkInput = true },
  703. closePetRemarkInput() { this.showPetRemarkInput = false },
  704. async submitPetRemark() {
  705. if (!this.petRemarkText.trim()) { uni.showToast({ title: '备注内容不能为空', icon: 'none' }); return }
  706. if (!this.petId) { uni.showToast({ title: '宠物信息缺失', icon: 'none' }); return }
  707. uni.showLoading({ title: '提交中...', mask: true });
  708. try {
  709. await apiSubmitPetRemark({ petId: this.petId, content: this.petRemarkText });
  710. uni.hideLoading(); uni.showToast({ title: '备注已添加', icon: 'success' });
  711. this.closePetRemarkInput(); this.loadPetChangeLogs(this.petId);
  712. } catch (err) { uni.hideLoading(); console.error('提交宠物备注失败:', err) }
  713. },
  714. goToAnomaly() {
  715. uni.navigateTo({ url: '/pages/orders/anomaly/index?orderId=' + (this.orderId || '') });
  716. },
  717. callPhone() {
  718. const phoneNum = this.orderDetail.customerPhone || '18900008451'
  719. if (!phoneNum) { uni.showToast({ title: '手机号不存在', icon: 'none' }); return }
  720. uni.showModal({
  721. title: '拨号提示',
  722. content: `系统将为您拨打手机号: ${phoneNum},请授予拨号权限以正常通话。`,
  723. confirmText: '呼叫', cancelText: '取消',
  724. success: (res) => {
  725. if (res.confirm) {
  726. uni.makePhoneCall({
  727. phoneNumber: phoneNum,
  728. fail: () => { uni.showToast({ title: '无法唤起拨号盘,请检查权限设置', icon: 'none' }) }
  729. });
  730. }
  731. }
  732. });
  733. },
  734. openNavigation(type) { this.navTargetPointType = type; this.showNavModal = true },
  735. closeNavModal() { this.showNavModal = false },
  736. chooseMap(mapType) {
  737. let pointType = this.navTargetPointType;
  738. let name = pointType === 'start' ? (this.orderDetail.fromAddress || '起点') : (this.orderDetail.toAddress || '终点');
  739. let address = pointType === 'start' ? (this.orderDetail.fromAddress || '起点地址') : (this.orderDetail.toAddress || '终点地址');
  740. let latitude = pointType === 'start' ? Number(this.orderDetail.fromLat) : Number(this.orderDetail.toLat);
  741. let longitude = pointType === 'start' ? Number(this.orderDetail.fromLng) : Number(this.orderDetail.toLng);
  742. this.showNavModal = false;
  743. const navigateTo = (lat, lng, addrName, addrDesc) => {
  744. uni.openLocation({
  745. latitude: lat, longitude: lng, name: addrName,
  746. address: addrDesc || '无法获取详细地址',
  747. success: () => { console.log('打开导航成功: ' + mapType) },
  748. fail: (err) => { console.error('打开导航失败:', err); uni.showToast({ title: '打开地图失败', icon: 'none' }) }
  749. });
  750. };
  751. if (latitude && longitude && !isNaN(latitude) && !isNaN(longitude)) {
  752. navigateTo(latitude, longitude, name, address);
  753. } else {
  754. uni.showLoading({ title: '获取当前位置...', mask: true });
  755. reportGps(true).then(res => {
  756. uni.hideLoading(); navigateTo(res.latitude, res.longitude, name, address);
  757. }).catch(err => { uni.hideLoading(); console.error('获取地理位置失败:', err) });
  758. }
  759. },
  760. openUploadModal() { this.modalMediaList = []; this.modalRemark = ''; this.showUploadModal = true },
  761. closeUploadModal() { this.showUploadModal = false },
  762. handleConfirmUpload() { this.confirmUploadModal() },
  763. async chooseModalMedia() {
  764. uni.chooseMedia({
  765. count: 5 - this.modalMediaList.length,
  766. mediaType: ['image', 'video'],
  767. sourceType: ['album', 'camera'],
  768. success: async (res) => {
  769. uni.showLoading({ title: '上传中...', mask: true });
  770. try {
  771. for (const file of res.tempFiles) {
  772. const uploadRes = await uploadFile(file.tempFilePath);
  773. if (uploadRes.code === 200) {
  774. this.modalMediaList.push({
  775. url: uploadRes.data.url, ossId: uploadRes.data.ossId,
  776. localPath: file.tempFilePath, mediaType: file.fileType,
  777. thumb: file.thumbTempFilePath
  778. });
  779. }
  780. }
  781. uni.hideLoading(); uni.showToast({ title: '上传成功', icon: 'success' });
  782. } catch (err) { uni.hideLoading(); uni.showToast({ title: '上传失败', icon: 'none' }) }
  783. },
  784. fail: (err) => { console.error('选择媒体文件失败:', err) }
  785. });
  786. },
  787. removeModalMedia(index) { this.modalMediaList.splice(index, 1) },
  788. async confirmUploadModal() {
  789. if (this.modalMediaList.length === 0) { uni.showToast({ title: '请上传至少一张图片或视频', icon: 'none' }); return }
  790. try {
  791. uni.showLoading({ title: '提交中...' });
  792. const ossIds = this.modalMediaList.map(item => item.ossId);
  793. const clockInType = this.currentClockIn ? this.currentClockIn.step : (this.currentStep + 1);
  794. const clockInData = {
  795. orderId: this.orderId, photos: ossIds,
  796. content: this.modalRemark || '', step: clockInType,
  797. title: this.currentTaskTitle,
  798. startFlag: Number(clockInType) === 1,
  799. endFlag: Number(this.currentStep) === this.steps.length - 1
  800. };
  801. await clockIn(clockInData);
  802. uni.hideLoading(); this.closeUploadModal();
  803. uni.showToast({ title: '打卡成功', icon: 'success' });
  804. await this.loadOrderDetail();
  805. } catch (err) {
  806. uni.hideLoading(); console.error('打卡失败:', err);
  807. uni.showToast({ title: '打卡失败,请重试', icon: 'none' });
  808. }
  809. },
  810. copyOrderNo() {
  811. uni.setClipboardData({ data: this.orderDetail.orderNo, success: () => { uni.showToast({ title: '复制成功', icon: 'none' }) } });
  812. },
  813. openSumModal() {
  814. let displayDate = '';
  815. if (this.orderDetail.time) {
  816. displayDate = this.orderDetail.time.split(' ')[0].replace(/-/g, '/');
  817. } else {
  818. const now = new Date();
  819. displayDate = `${now.getFullYear()}/${String(now.getMonth() + 1).padStart(2, '0')}/${String(now.getDate()).padStart(2, '0')}`;
  820. }
  821. this.sumDate = displayDate;
  822. if (this.orderDetail.nursingSummary) {
  823. this.sumContent = this.orderDetail.nursingSummary;
  824. } else if (!this.sumContent) {
  825. this.sumContent = '1. 精神/身体状态:\n2. 进食/饮水:\n3. 排泤情况:\n4. 卫生情况:\n5. 互动情况:\n6. 特殊情况/备注:';
  826. }
  827. this.showSumModal = true;
  828. },
  829. closeSumModal() { this.showSumModal = false },
  830. async submitSumModal() {
  831. if (!this.sumContent.trim()) { uni.showToast({ title: '请填写服务内容', icon: 'none' }); return }
  832. uni.showLoading({ title: '提交中...', mask: true });
  833. try {
  834. const res = await submitNursingSummary({ orderId: this.orderId, content: this.sumContent });
  835. uni.hideLoading();
  836. if (res.code === 200) {
  837. uni.showToast({ title: '小结已提交', icon: 'success' });
  838. this.closeSumModal(); await this.loadOrderDetail();
  839. } else { uni.showToast({ title: res.msg || '提交失败', icon: 'none' }) }
  840. } catch (err) {
  841. uni.hideLoading(); console.error('提交宠护小结失败:', err);
  842. uni.showToast({ title: '提交失败,请重试', icon: 'none' });
  843. }
  844. },
  845. isVideo(url) {
  846. if (!url) return false;
  847. const videoExts = ['.mp4', '.mov', '.m4v', '.3gp', '.avi', '.wmv'];
  848. return videoExts.some(ext => url.toLowerCase().includes(ext));
  849. },
  850. getVideoPoster(url) {
  851. if (!this.isVideo(url)) return url;
  852. if (url.includes('?x-oss-process') || url.includes('?ci-process') || url.includes('?vframe')) return url;
  853. if (url.includes('myqcloud.com')) return url + '?ci-process=snapshot&time=1';
  854. return url + '?x-oss-process=video/snapshot,t_1,f_jpg,w_300,m_fast';
  855. },
  856. previewMedia(medias, currentIdx) {
  857. const url = medias[currentIdx];
  858. if (this.isVideo(url)) {
  859. this.videoPlayerUrl = url; this.videoPlayerShow = true;
  860. } else {
  861. const imageUrls = medias.filter(m => !this.isVideo(m));
  862. const newIdx = imageUrls.indexOf(url);
  863. uni.previewImage({ current: newIdx >= 0 ? newIdx : 0, urls: imageUrls });
  864. }
  865. },
  866. closeVideoPlayer() { this.videoPlayerShow = false; this.videoPlayerUrl = '' }
  867. }
  868. }
  869. </script>
  870. <style>
  871. page {
  872. background-color: #F8F8F8;
  873. }
  874. .detail-container {
  875. padding-bottom: 200rpx;
  876. }
  877. .loading-container {
  878. padding: 30rpx;
  879. }
  880. .skeleton-header {
  881. background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
  882. border-radius: 20rpx;
  883. padding: 40rpx;
  884. display: flex;
  885. justify-content: space-between;
  886. align-items: center;
  887. margin-bottom: 20rpx;
  888. }
  889. .skeleton-progress {
  890. background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
  891. border-radius: 0 0 20rpx 20rpx;
  892. margin-top: -40rpx;
  893. padding: 30rpx 40rpx 40rpx;
  894. display: flex;
  895. justify-content: space-around;
  896. margin-bottom: 25rpx;
  897. }
  898. .skeleton-circle {
  899. width: 40rpx;
  900. height: 40rpx;
  901. border-radius: 50%;
  902. background-color: rgba(255, 255, 255, 0.3);
  903. }
  904. .skeleton-card {
  905. background-color: #fff;
  906. border-radius: 20rpx;
  907. padding: 30rpx;
  908. margin-bottom: 25rpx;
  909. box-shadow: 0 5rpx 20rpx rgba(0, 0, 0, 0.03);
  910. }
  911. .skeleton-line {
  912. border-radius: 8rpx;
  913. background-color: #f0f0f0;
  914. }
  915. .skeleton-ani {
  916. background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 37%, #f0f0f0 63%);
  917. background-size: 400% 100%;
  918. animation: skeleton-loading 1.4s ease infinite;
  919. }
  920. .skeleton-header .skeleton-ani {
  921. background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.35) 37%, rgba(255, 255, 255, 0.2) 63%);
  922. background-size: 400% 100%;
  923. animation: skeleton-loading 1.4s ease infinite;
  924. }
  925. .skeleton-progress .skeleton-ani {
  926. background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.35) 37%, rgba(255, 255, 255, 0.2) 63%);
  927. background-size: 400% 100%;
  928. animation: skeleton-loading 1.4s ease infinite;
  929. }
  930. @keyframes skeleton-loading {
  931. 0% {
  932. background-position: 100% 50%;
  933. }
  934. 100% {
  935. background-position: 0 50%;
  936. }
  937. }
  938. .detail-header {
  939. background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
  940. padding: 40rpx 40rpx 50rpx 40rpx;
  941. color: #fff;
  942. border-radius: 20rpx;
  943. margin: 30rpx 30rpx 25rpx 30rpx;
  944. box-shadow: 0 5rpx 15rpx rgba(255, 87, 34, 0.2);
  945. }
  946. .status-row {
  947. display: flex;
  948. justify-content: space-between;
  949. align-items: center;
  950. margin-bottom: 40rpx;
  951. }
  952. .status-title {
  953. font-size: 28rpx;
  954. font-weight: bold;
  955. }
  956. .status-fulfillmentCommission {
  957. font-size: 40rpx;
  958. font-weight: bold;
  959. }
  960. .progress-bar {
  961. display: flex;
  962. justify-content: space-between;
  963. align-items: flex-start;
  964. padding: 0 10rpx;
  965. }
  966. .step-item {
  967. display: flex;
  968. flex-direction: column;
  969. align-items: center;
  970. flex: 1;
  971. position: relative;
  972. opacity: 0.5;
  973. }
  974. .step-item.done {
  975. opacity: 1;
  976. }
  977. .step-item.done .step-circle {
  978. background-color: #fff;
  979. color: #FF5722;
  980. font-weight: bold;
  981. }
  982. .step-item.done .step-text {
  983. font-weight: 500;
  984. }
  985. .step-item.active {
  986. opacity: 1;
  987. }
  988. .step-item.active .step-circle {
  989. background-color: #fff;
  990. color: #FF5722;
  991. font-weight: bold;
  992. width: 48rpx;
  993. height: 48rpx;
  994. font-size: 24rpx;
  995. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.15);
  996. }
  997. .step-item.active .step-text {
  998. font-weight: bold;
  999. }
  1000. .step-circle-wrapper {
  1001. position: relative;
  1002. width: 100%;
  1003. display: flex;
  1004. justify-content: center;
  1005. margin-bottom: 10rpx;
  1006. }
  1007. .step-circle {
  1008. width: 40rpx;
  1009. height: 40rpx;
  1010. border-radius: 50%;
  1011. background-color: rgba(255, 255, 255, 0.3);
  1012. color: rgba(255, 255, 255, 0.8);
  1013. font-size: 20rpx;
  1014. display: flex;
  1015. justify-content: center;
  1016. align-items: center;
  1017. position: relative;
  1018. z-index: 2;
  1019. transition: all 0.2s;
  1020. }
  1021. .step-line {
  1022. position: absolute;
  1023. top: 50%;
  1024. right: calc(50% + 20rpx);
  1025. width: calc(100% - 40rpx);
  1026. height: 2rpx;
  1027. background-color: rgba(255, 255, 255, 0.3);
  1028. z-index: 1;
  1029. transform: translateY(-50%);
  1030. }
  1031. .step-line.active-line {
  1032. background-color: #fff;
  1033. height: 3rpx;
  1034. }
  1035. .step-text {
  1036. font-size: 24rpx;
  1037. }
  1038. .detail-content {
  1039. width: 100%;
  1040. box-sizing: border-box;
  1041. padding: 0 30rpx;
  1042. position: relative;
  1043. z-index: 10;
  1044. }
  1045. .white-card {
  1046. background-color: #fff;
  1047. border-radius: 20rpx;
  1048. padding: 30rpx;
  1049. margin-bottom: 25rpx;
  1050. box-shadow: 0 5rpx 20rpx rgba(0, 0, 0, 0.03);
  1051. }
  1052. .pet-bar {
  1053. display: flex;
  1054. align-items: center;
  1055. }
  1056. .pb-avatar {
  1057. width: 100rpx;
  1058. height: 100rpx;
  1059. border-radius: 50%;
  1060. margin-right: 20rpx;
  1061. }
  1062. .pb-info {
  1063. flex: 1;
  1064. display: flex;
  1065. flex-direction: column;
  1066. }
  1067. .pb-name-row {
  1068. margin-bottom: 10rpx;
  1069. }
  1070. .pb-name {
  1071. font-size: 32rpx;
  1072. font-weight: bold;
  1073. color: #333;
  1074. margin-right: 15rpx;
  1075. }
  1076. .pb-breed {
  1077. font-size: 26rpx;
  1078. color: #999;
  1079. }
  1080. .pb-tags {
  1081. display: flex;
  1082. }
  1083. .pb-tag {
  1084. background-color: #FFF3E0;
  1085. color: #FF9800;
  1086. font-size: 22rpx;
  1087. padding: 4rpx 16rpx;
  1088. border-radius: 8rpx;
  1089. }
  1090. .pb-actions {
  1091. display: flex;
  1092. align-items: center;
  1093. }
  1094. .pb-btn {
  1095. display: flex;
  1096. align-items: center;
  1097. justify-content: center;
  1098. }
  1099. .profile-btn {
  1100. border: 2rpx solid #FF9800;
  1101. color: #FF9800;
  1102. font-size: 24rpx;
  1103. padding: 8rpx 20rpx;
  1104. border-radius: 30rpx;
  1105. margin-right: 20rpx;
  1106. }
  1107. .phone-btn {
  1108. width: 60rpx;
  1109. height: 60rpx;
  1110. border-radius: 50%;
  1111. background-color: #FFF3E0;
  1112. }
  1113. .phone-icon {
  1114. width: 32rpx;
  1115. height: 32rpx;
  1116. }
  1117. .si-row {
  1118. display: flex;
  1119. align-items: flex-start;
  1120. margin-bottom: 30rpx;
  1121. }
  1122. .si-row:last-child {
  1123. margin-bottom: 0;
  1124. }
  1125. .si-icon {
  1126. width: 36rpx;
  1127. height: 36rpx;
  1128. margin-right: 20rpx;
  1129. margin-top: 4rpx;
  1130. }
  1131. .si-icon-uni {
  1132. margin-right: 20rpx;
  1133. margin-top: 4rpx;
  1134. display: flex;
  1135. align-items: center;
  1136. justify-content: center;
  1137. }
  1138. .si-content {
  1139. flex: 1;
  1140. display: flex;
  1141. flex-direction: column;
  1142. }
  1143. .si-label {
  1144. font-size: 24rpx;
  1145. color: #999;
  1146. margin-bottom: 6rpx;
  1147. }
  1148. .icon-bg {
  1149. width: 44rpx;
  1150. height: 44rpx;
  1151. border-radius: 8rpx;
  1152. display: flex;
  1153. justify-content: center;
  1154. align-items: center;
  1155. margin-right: 20rpx;
  1156. margin-top: 4rpx;
  1157. flex-shrink: 0;
  1158. }
  1159. .icon-bg.grey-bg {
  1160. background-color: #F8F8F8;
  1161. }
  1162. .custom-icon {
  1163. width: 28rpx;
  1164. height: 28rpx;
  1165. }
  1166. .custom-icon-file {
  1167. width: 36rpx;
  1168. height: 36rpx;
  1169. }
  1170. .si-val {
  1171. font-size: 28rpx;
  1172. color: #333;
  1173. }
  1174. .record-btn {
  1175. font-size: 24rpx;
  1176. color: #FF5722;
  1177. display: flex;
  1178. align-items: center;
  1179. }
  1180. .record-arrow {
  1181. width: 24rpx;
  1182. height: 24rpx;
  1183. margin-left: 6rpx;
  1184. }
  1185. .record-history-row {
  1186. margin-top: 30rpx;
  1187. padding-top: 25rpx;
  1188. border-top: 1px dashed #f0f0f0;
  1189. display: flex;
  1190. justify-content: space-between;
  1191. align-items: center;
  1192. }
  1193. .addr-row {
  1194. position: relative;
  1195. align-items: stretch;
  1196. }
  1197. .icon-circle {
  1198. width: 40rpx;
  1199. height: 40rpx;
  1200. border-radius: 50%;
  1201. color: #fff;
  1202. font-size: 22rpx;
  1203. display: flex;
  1204. align-items: center;
  1205. justify-content: center;
  1206. margin-right: 20rpx;
  1207. flex-shrink: 0;
  1208. font-weight: bold;
  1209. margin-top: 6rpx;
  1210. position: relative;
  1211. z-index: 1;
  1212. }
  1213. .icon-circle.start {
  1214. background-color: #FFB74D;
  1215. }
  1216. .icon-circle.end {
  1217. background-color: #81C784;
  1218. }
  1219. .icon-circle.service {
  1220. background-color: #81C784;
  1221. }
  1222. .route-line-vertical {
  1223. position: absolute;
  1224. left: 19rpx;
  1225. top: 46rpx;
  1226. bottom: -6rpx;
  1227. border-left: 2rpx dashed #E0E0E0;
  1228. width: 0;
  1229. z-index: 0;
  1230. }
  1231. .si-addr-title {
  1232. font-size: 30rpx;
  1233. font-weight: bold;
  1234. color: #333;
  1235. margin-bottom: 6rpx;
  1236. }
  1237. .si-addr-desc {
  1238. font-size: 24rpx;
  1239. color: #999;
  1240. }
  1241. .nav-btn-circle {
  1242. width: 50rpx;
  1243. height: 50rpx;
  1244. background-color: #FFF3E0;
  1245. border-radius: 50%;
  1246. display: flex;
  1247. align-items: center;
  1248. justify-content: center;
  1249. margin-top: 6rpx;
  1250. }
  1251. .nav-arrow {
  1252. width: 28rpx;
  1253. height: 28rpx;
  1254. }
  1255. .task-card {
  1256. display: flex;
  1257. flex-direction: column;
  1258. }
  1259. .tc-title {
  1260. font-size: 30rpx;
  1261. font-weight: bold;
  1262. color: #333;
  1263. margin-bottom: 15rpx;
  1264. }
  1265. .tc-desc {
  1266. font-size: 22rpx;
  1267. color: #666;
  1268. margin-bottom: 12rpx;
  1269. }
  1270. .media-grid {
  1271. display: flex;
  1272. flex-wrap: wrap;
  1273. gap: 20rpx;
  1274. margin-bottom: 20rpx;
  1275. }
  1276. .media-item {
  1277. width: 160rpx;
  1278. height: 160rpx;
  1279. position: relative;
  1280. border-radius: 12rpx;
  1281. }
  1282. .media-preview {
  1283. width: 100%;
  1284. height: 100%;
  1285. border-radius: 12rpx;
  1286. }
  1287. .media-del {
  1288. position: absolute;
  1289. top: -10rpx;
  1290. right: -10rpx;
  1291. width: 36rpx;
  1292. height: 36rpx;
  1293. background-color: rgba(0, 0, 0, 0.5);
  1294. color: #fff;
  1295. border-radius: 50%;
  1296. display: flex;
  1297. align-items: center;
  1298. justify-content: center;
  1299. font-size: 24rpx;
  1300. z-index: 2;
  1301. }
  1302. .media-add {
  1303. width: 160rpx;
  1304. height: 160rpx;
  1305. border: 2rpx dashed #ccc;
  1306. border-radius: 12rpx;
  1307. display: flex;
  1308. flex-direction: column;
  1309. align-items: center;
  1310. justify-content: center;
  1311. background-color: #FAFAFA;
  1312. box-sizing: border-box;
  1313. }
  1314. .upload-icon-small {
  1315. width: 40rpx;
  1316. height: 40rpx;
  1317. margin-bottom: 10rpx;
  1318. }
  1319. .upload-text-small {
  1320. font-size: 22rpx;
  1321. color: #999;
  1322. }
  1323. .full-media-add {
  1324. width: 100%;
  1325. height: 140rpx;
  1326. background-color: #FAFAFA;
  1327. border: 2rpx dashed #E0E0E0;
  1328. border-radius: 12rpx;
  1329. display: flex;
  1330. flex-direction: column;
  1331. justify-content: center;
  1332. align-items: center;
  1333. margin-top: 10rpx;
  1334. }
  1335. .upload-icon-large {
  1336. width: 50rpx;
  1337. height: 50rpx;
  1338. margin-bottom: 10rpx;
  1339. opacity: 0.5;
  1340. }
  1341. .upload-text-large {
  1342. font-size: 24rpx;
  1343. color: #999;
  1344. }
  1345. .bi-row {
  1346. display: flex;
  1347. align-items: flex-start;
  1348. margin-bottom: 25rpx;
  1349. }
  1350. .bi-row:last-child {
  1351. margin-bottom: 0;
  1352. }
  1353. .bi-icon {
  1354. width: 32rpx;
  1355. height: 32rpx;
  1356. margin-right: 20rpx;
  1357. margin-top: 4rpx;
  1358. }
  1359. .bi-icon-uni {
  1360. margin-right: 20rpx;
  1361. margin-top: 4rpx;
  1362. display: flex;
  1363. align-items: center;
  1364. justify-content: center;
  1365. }
  1366. .bi-content {
  1367. flex: 1;
  1368. display: flex;
  1369. flex-direction: column;
  1370. }
  1371. .bi-label {
  1372. font-size: 24rpx;
  1373. color: #999;
  1374. margin-bottom: 6rpx;
  1375. }
  1376. .bi-val-row {
  1377. display: flex;
  1378. align-items: center;
  1379. }
  1380. .bi-val {
  1381. font-size: 28rpx;
  1382. color: #333;
  1383. }
  1384. .bi-copy {
  1385. background-color: #F0F0F0;
  1386. color: #666;
  1387. font-size: 20rpx;
  1388. padding: 2rpx 10rpx;
  1389. border-radius: 6rpx;
  1390. margin-left: 15rpx;
  1391. }
  1392. .tl-title-row {
  1393. display: flex;
  1394. align-items: center;
  1395. margin-bottom: 30rpx;
  1396. }
  1397. .orange-bar {
  1398. width: 8rpx;
  1399. height: 32rpx;
  1400. background-color: #FF9800;
  1401. margin-right: 16rpx;
  1402. border-radius: 4rpx;
  1403. }
  1404. .tl-title {
  1405. font-size: 30rpx;
  1406. font-weight: bold;
  1407. color: #333;
  1408. }
  1409. .tl-list {
  1410. display: flex;
  1411. flex-direction: column;
  1412. padding-left: 10rpx;
  1413. }
  1414. .tl-item {
  1415. display: flex;
  1416. position: relative;
  1417. padding-bottom: 40rpx;
  1418. }
  1419. .tl-item:last-child {
  1420. padding-bottom: 0;
  1421. }
  1422. .tl-marker {
  1423. width: 16rpx;
  1424. height: 16rpx;
  1425. border-radius: 50%;
  1426. background-color: #E0E0E0;
  1427. position: absolute;
  1428. left: 0;
  1429. top: 6rpx;
  1430. z-index: 2;
  1431. display: flex;
  1432. justify-content: center;
  1433. align-items: center;
  1434. }
  1435. .tl-marker.active {
  1436. background-color: #fff;
  1437. border: 3rpx solid #FF9800;
  1438. width: 18rpx;
  1439. height: 18rpx;
  1440. left: -1rpx;
  1441. }
  1442. .tl-dot-inner {
  1443. width: 10rpx;
  1444. height: 10rpx;
  1445. border-radius: 50%;
  1446. background-color: #FF9800;
  1447. }
  1448. .tl-item:not(:last-child)::after {
  1449. content: '';
  1450. position: absolute;
  1451. left: 7rpx;
  1452. top: 24rpx;
  1453. bottom: -6rpx;
  1454. width: 2rpx;
  1455. background-color: #FFE0B2;
  1456. z-index: 1;
  1457. }
  1458. .tl-content-row {
  1459. margin-left: 40rpx;
  1460. display: flex;
  1461. flex-direction: column;
  1462. width: 100%;
  1463. }
  1464. .tl-header {
  1465. display: flex;
  1466. justify-content: space-between;
  1467. align-items: center;
  1468. width: 100%;
  1469. margin-bottom: 10rpx;
  1470. }
  1471. .tl-status {
  1472. font-size: 28rpx;
  1473. color: #333;
  1474. font-weight: 500;
  1475. }
  1476. .tl-time {
  1477. font-size: 24rpx;
  1478. color: #999;
  1479. }
  1480. .tl-medias {
  1481. display: flex;
  1482. flex-wrap: wrap;
  1483. gap: 15rpx;
  1484. margin-bottom: 15rpx;
  1485. }
  1486. .tl-img {
  1487. width: 140rpx;
  1488. height: 140rpx;
  1489. border-radius: 8rpx;
  1490. }
  1491. .tl-remark {
  1492. font-size: 24rpx;
  1493. color: #666;
  1494. background-color: #F9F9F9;
  1495. padding: 15rpx;
  1496. border-radius: 8rpx;
  1497. line-height: 1.5;
  1498. }
  1499. .bottom-action-bar {
  1500. position: fixed;
  1501. bottom: 0;
  1502. left: 0;
  1503. width: 100%;
  1504. height: 120rpx;
  1505. background-color: #fff;
  1506. display: flex;
  1507. align-items: center;
  1508. justify-content: space-between;
  1509. padding: 0 30rpx;
  1510. box-shadow: 0 -5rpx 20rpx rgba(0, 0, 0, 0.05);
  1511. box-sizing: border-box;
  1512. padding-bottom: constant(safe-area-inset-bottom);
  1513. padding-bottom: env(safe-area-inset-bottom);
  1514. z-index: 100;
  1515. }
  1516. .action-left,
  1517. .action-right {
  1518. display: flex;
  1519. align-items: center;
  1520. }
  1521. .action-btn {
  1522. height: 64rpx;
  1523. line-height: 64rpx;
  1524. border-radius: 32rpx;
  1525. font-size: 26rpx;
  1526. padding: 0 35rpx;
  1527. margin: 0;
  1528. }
  1529. .action-left .action-btn:first-child {
  1530. margin-right: 20rpx;
  1531. }
  1532. .action-btn.grey-outline {
  1533. background-color: #fff;
  1534. color: #666;
  1535. border: 1px solid #E0E0E0;
  1536. }
  1537. .action-btn.orange-outline {
  1538. background-color: #FFF8F0;
  1539. color: #FF9800;
  1540. border: 1px solid #FF9800;
  1541. }
  1542. .action-btn.primary {
  1543. background: linear-gradient(90deg, #FF9800 0%, #FF5722 100%);
  1544. color: #fff;
  1545. box-shadow: 0 4rpx 12rpx rgba(255, 87, 34, 0.2);
  1546. border: none;
  1547. }
  1548. .action-btn.grey-bg {
  1549. background: #E0E0E0;
  1550. color: #999;
  1551. box-shadow: none;
  1552. border: none;
  1553. }
  1554. .action-btn::after {
  1555. border: none;
  1556. }
  1557. .upload-modal-mask {
  1558. position: fixed;
  1559. top: 0;
  1560. left: 0;
  1561. width: 100%;
  1562. height: 100%;
  1563. background-color: rgba(0, 0, 0, 0.4);
  1564. z-index: 999;
  1565. display: flex;
  1566. justify-content: center;
  1567. align-items: center;
  1568. }
  1569. .upload-modal-content {
  1570. width: 600rpx;
  1571. background-color: #ffffff;
  1572. border-radius: 20rpx;
  1573. padding: 40rpx;
  1574. box-sizing: border-box;
  1575. display: flex;
  1576. flex-direction: column;
  1577. }
  1578. .um-header {
  1579. text-align: center;
  1580. margin-bottom: 40rpx;
  1581. }
  1582. .um-title {
  1583. font-size: 32rpx;
  1584. font-weight: bold;
  1585. color: #333;
  1586. }
  1587. .um-remark-hint {
  1588. display: block;
  1589. font-size: 22rpx;
  1590. color: #999;
  1591. margin-top: 16rpx;
  1592. line-height: 1.4;
  1593. }
  1594. .um-grid {
  1595. display: flex;
  1596. flex-wrap: wrap;
  1597. margin-bottom: 30rpx;
  1598. }
  1599. .um-item {
  1600. width: 130rpx;
  1601. height: 130rpx;
  1602. border-radius: 8rpx;
  1603. margin-right: 20rpx;
  1604. margin-bottom: 20rpx;
  1605. position: relative;
  1606. background-color: #f5f5f5;
  1607. overflow: hidden;
  1608. }
  1609. .um-item:nth-child(4n) {
  1610. margin-right: 0;
  1611. }
  1612. .um-preview {
  1613. width: 100%;
  1614. height: 100%;
  1615. }
  1616. .um-del {
  1617. position: absolute;
  1618. top: 4rpx;
  1619. right: 4rpx;
  1620. width: 36rpx;
  1621. height: 36rpx;
  1622. line-height: 32rpx;
  1623. text-align: center;
  1624. background-color: rgba(0, 0, 0, 0.5);
  1625. color: #fff;
  1626. border-radius: 50%;
  1627. font-size: 28rpx;
  1628. z-index: 10;
  1629. }
  1630. .um-video-badge {
  1631. position: absolute;
  1632. top: 0;
  1633. left: 0;
  1634. right: 0;
  1635. bottom: 0;
  1636. display: flex;
  1637. justify-content: center;
  1638. align-items: center;
  1639. background-color: rgba(0, 0, 0, 0.2);
  1640. z-index: 5;
  1641. }
  1642. .play-icon-small {
  1643. width: 48rpx;
  1644. height: 48rpx;
  1645. opacity: 0.9;
  1646. }
  1647. .um-add {
  1648. width: 130rpx;
  1649. height: 130rpx;
  1650. border-radius: 8rpx;
  1651. border: 1px dashed #e5e5e5;
  1652. display: flex;
  1653. flex-direction: column;
  1654. justify-content: center;
  1655. align-items: center;
  1656. box-sizing: border-box;
  1657. margin-bottom: 20rpx;
  1658. }
  1659. .um-add-icon {
  1660. width: 44rpx;
  1661. height: 44rpx;
  1662. margin-bottom: 10rpx;
  1663. opacity: 0.4;
  1664. }
  1665. .um-add-text {
  1666. font-size: 24rpx;
  1667. color: #ccc;
  1668. }
  1669. .um-textarea {
  1670. width: 100%;
  1671. height: 160rpx;
  1672. background-color: #ffffff;
  1673. border-radius: 12rpx;
  1674. padding: 24rpx;
  1675. font-size: 28rpx;
  1676. color: #333;
  1677. box-sizing: border-box;
  1678. border: 1px solid #f0f0f0;
  1679. }
  1680. .um-footer {
  1681. margin-top: 40rpx;
  1682. display: flex;
  1683. justify-content: center;
  1684. }
  1685. .um-submit-btn {
  1686. width: 100%;
  1687. height: 88rpx;
  1688. line-height: 88rpx;
  1689. border-radius: 44rpx;
  1690. font-size: 32rpx;
  1691. background-color: #E0E0E0;
  1692. color: #fff;
  1693. border: none;
  1694. text-align: center;
  1695. }
  1696. .um-submit-btn.active {
  1697. background: linear-gradient(90deg, #FF9800 0%, #FF5722 100%);
  1698. color: #fff;
  1699. box-shadow: 0 4rpx 10rpx rgba(255, 87, 34, 0.3);
  1700. }
  1701. .um-submit-btn::after {
  1702. border: none;
  1703. }
  1704. .pet-modal-mask {
  1705. position: fixed;
  1706. top: 0;
  1707. left: 0;
  1708. width: 100%;
  1709. height: 100%;
  1710. background-color: rgba(0, 0, 0, 0.5);
  1711. z-index: 999;
  1712. display: flex;
  1713. justify-content: center;
  1714. align-items: center;
  1715. }
  1716. .pet-modal-content {
  1717. width: 680rpx;
  1718. max-height: 85vh;
  1719. background-color: #fff;
  1720. border-radius: 20rpx;
  1721. display: flex;
  1722. flex-direction: column;
  1723. overflow: hidden;
  1724. box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.15);
  1725. }
  1726. .pet-modal-header {
  1727. display: flex;
  1728. align-items: center;
  1729. padding: 30rpx 30rpx 20rpx;
  1730. border-bottom: 1px solid #f5f5f5;
  1731. flex-shrink: 0;
  1732. }
  1733. .pet-modal-title {
  1734. font-size: 32rpx;
  1735. font-weight: bold;
  1736. color: #333;
  1737. }
  1738. .close-icon-btn {
  1739. width: 52rpx;
  1740. height: 52rpx;
  1741. line-height: 52rpx;
  1742. text-align: center;
  1743. font-size: 36rpx;
  1744. color: #999;
  1745. border-radius: 50%;
  1746. background-color: #f5f5f5;
  1747. flex-shrink: 0;
  1748. }
  1749. .pm-remark-btn {
  1750. height: 52rpx;
  1751. line-height: 52rpx;
  1752. padding: 0 24rpx;
  1753. background: linear-gradient(90deg, #FF9800 0%, #FF5722 100%);
  1754. color: #fff;
  1755. font-size: 26rpx;
  1756. border-radius: 26rpx;
  1757. margin-right: 16rpx;
  1758. font-weight: bold;
  1759. flex-shrink: 0;
  1760. }
  1761. .pet-modal-scroll {
  1762. flex: 1;
  1763. height: 65vh;
  1764. overflow: auto;
  1765. }
  1766. .pet-base-info {
  1767. display: flex;
  1768. align-items: center;
  1769. padding: 24rpx 30rpx;
  1770. border-bottom: 1px solid #f9f9f9;
  1771. }
  1772. .pm-avatar {
  1773. width: 100rpx;
  1774. height: 100rpx;
  1775. border-radius: 50%;
  1776. margin-right: 20rpx;
  1777. flex-shrink: 0;
  1778. }
  1779. .pm-info-text {
  1780. flex: 1;
  1781. display: flex;
  1782. flex-direction: column;
  1783. }
  1784. .pm-name-row {
  1785. display: flex;
  1786. align-items: center;
  1787. margin-bottom: 8rpx;
  1788. }
  1789. .pm-name {
  1790. font-size: 32rpx;
  1791. font-weight: bold;
  1792. color: #333;
  1793. margin-right: 12rpx;
  1794. }
  1795. .pm-gender {
  1796. display: flex;
  1797. align-items: center;
  1798. background-color: #E3F2FD;
  1799. color: #1976D2;
  1800. font-size: 22rpx;
  1801. padding: 2rpx 10rpx;
  1802. border-radius: 10rpx;
  1803. }
  1804. .pm-gender.female {
  1805. background-color: #FCE4EC;
  1806. color: #C2185B;
  1807. }
  1808. .gender-icon {
  1809. font-size: 22rpx;
  1810. margin-right: 4rpx;
  1811. }
  1812. .pm-breed {
  1813. font-size: 26rpx;
  1814. color: #999;
  1815. }
  1816. .pm-detail-grid {
  1817. padding: 20rpx 30rpx;
  1818. display: flex;
  1819. flex-wrap: wrap;
  1820. gap: 16rpx;
  1821. border-bottom: 1px solid #f9f9f9;
  1822. }
  1823. .pm-grid-item {
  1824. background-color: #FAFAFA;
  1825. border-radius: 12rpx;
  1826. padding: 16rpx 20rpx;
  1827. display: flex;
  1828. flex-direction: column;
  1829. }
  1830. .pm-grid-item.half {
  1831. width: calc(50% - 8rpx);
  1832. }
  1833. .pm-grid-item.full {
  1834. width: 100%;
  1835. }
  1836. .pm-label {
  1837. font-size: 24rpx;
  1838. color: #999;
  1839. margin-bottom: 8rpx;
  1840. }
  1841. .pm-val {
  1842. font-size: 28rpx;
  1843. color: #333;
  1844. line-height: 1.5;
  1845. }
  1846. .pm-tags-row {
  1847. display: flex;
  1848. flex-wrap: wrap;
  1849. padding: 0 24rpx 20rpx;
  1850. gap: 16rpx;
  1851. }
  1852. .pm-tag-chip {
  1853. background-color: #FFF3E0;
  1854. border: 1px solid #FFB74D;
  1855. border-radius: 20rpx;
  1856. padding: 6rpx 20rpx;
  1857. }
  1858. .pm-tag-chip-text {
  1859. font-size: 24rpx;
  1860. color: #FF9800;
  1861. }
  1862. .pm-log-section {
  1863. padding: 20rpx 24rpx;
  1864. border-top: 1px solid #f5f5f5;
  1865. margin-top: 10rpx;
  1866. }
  1867. .pm-log-header {
  1868. display: flex;
  1869. align-items: center;
  1870. margin-bottom: 20rpx;
  1871. }
  1872. .pm-log-section-title {
  1873. font-size: 28rpx;
  1874. font-weight: bold;
  1875. color: #333;
  1876. }
  1877. .pm-log-item {
  1878. padding: 16rpx 0;
  1879. border-bottom: 1px solid #f9f9f9;
  1880. display: flex;
  1881. flex-direction: column;
  1882. }
  1883. .pm-log-date {
  1884. font-size: 24rpx;
  1885. color: #999;
  1886. margin-bottom: 8rpx;
  1887. }
  1888. .pm-log-text {
  1889. font-size: 28rpx;
  1890. color: #333;
  1891. line-height: 1.6;
  1892. margin-bottom: 6rpx;
  1893. }
  1894. .pm-log-recorder {
  1895. font-size: 22rpx;
  1896. color: #FF9800;
  1897. text-align: right;
  1898. }
  1899. .pm-log-recorder.system {
  1900. color: #999;
  1901. }
  1902. .pm-bottom-close {
  1903. margin: 16rpx 30rpx;
  1904. height: 72rpx;
  1905. line-height: 72rpx;
  1906. border-radius: 36rpx;
  1907. font-size: 28rpx;
  1908. background-color: #f5f5f5;
  1909. color: #666;
  1910. border: none;
  1911. }
  1912. .pm-bottom-close::after {
  1913. border: none;
  1914. }
  1915. .sum-modal-mask {
  1916. position: fixed;
  1917. top: 0;
  1918. left: 0;
  1919. width: 100%;
  1920. height: 100%;
  1921. background-color: rgba(0, 0, 0, 0.5);
  1922. z-index: 999;
  1923. display: flex;
  1924. justify-content: center;
  1925. align-items: center;
  1926. }
  1927. .sum-modal-card {
  1928. width: 660rpx;
  1929. max-height: 80vh;
  1930. background-color: #fff;
  1931. border-radius: 20rpx;
  1932. display: flex;
  1933. flex-direction: column;
  1934. overflow: hidden;
  1935. box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.15);
  1936. }
  1937. .sum-modal-scroll {
  1938. flex: 1;
  1939. overflow: hidden;
  1940. }
  1941. .sum-modal-inner {
  1942. padding: 32rpx 36rpx 0;
  1943. }
  1944. .sum-modal-title {
  1945. display: block;
  1946. font-size: 34rpx;
  1947. font-weight: bold;
  1948. color: #333;
  1949. text-align: center;
  1950. margin-bottom: 30rpx;
  1951. }
  1952. .sum-meta-row {
  1953. display: flex;
  1954. margin-bottom: 16rpx;
  1955. align-items: flex-start;
  1956. }
  1957. .sum-meta-label {
  1958. font-size: 26rpx;
  1959. color: #999;
  1960. flex-shrink: 0;
  1961. width: 140rpx;
  1962. }
  1963. .sum-meta-val {
  1964. font-size: 24rpx;
  1965. color: #333;
  1966. flex: 1;
  1967. }
  1968. .sum-section-title {
  1969. font-size: 26rpx;
  1970. font-weight: bold;
  1971. color: #333;
  1972. padding-left: 12rpx;
  1973. border-left: 6rpx solid #FF9800;
  1974. margin-top: 24rpx;
  1975. margin-bottom: 16rpx;
  1976. }
  1977. .sum-pet-card {
  1978. background-color: #FAFAFA;
  1979. border-radius: 12rpx;
  1980. padding: 20rpx;
  1981. display: flex;
  1982. align-items: center;
  1983. }
  1984. .sum-pet-avatar {
  1985. width: 80rpx;
  1986. height: 80rpx;
  1987. border-radius: 50%;
  1988. margin-right: 20rpx;
  1989. flex-shrink: 0;
  1990. }
  1991. .sum-pet-info {
  1992. flex: 1;
  1993. display: flex;
  1994. flex-direction: column;
  1995. }
  1996. .sum-pet-name-row {
  1997. display: flex;
  1998. align-items: center;
  1999. margin-bottom: 8rpx;
  2000. }
  2001. .sum-pet-name {
  2002. font-size: 26rpx;
  2003. font-weight: bold;
  2004. color: #333;
  2005. margin-right: 12rpx;
  2006. }
  2007. .sum-pet-breed {
  2008. font-size: 24rpx;
  2009. color: #999;
  2010. }
  2011. .sum-pet-remark {
  2012. font-size: 24rpx;
  2013. color: #666;
  2014. line-height: 1.5;
  2015. }
  2016. .sum-textarea {
  2017. width: 100%;
  2018. min-height: 220rpx;
  2019. background-color: #fff;
  2020. border: 1px solid #eeeeee;
  2021. border-radius: 12rpx;
  2022. padding: 18rpx;
  2023. font-size: 26rpx;
  2024. color: #333;
  2025. box-sizing: border-box;
  2026. line-height: 1.8;
  2027. }
  2028. .sum-sign-row {
  2029. display: flex;
  2030. align-items: center;
  2031. margin-top: 30rpx;
  2032. padding: 16rpx 0;
  2033. border-top: 1px solid #f5f5f5;
  2034. }
  2035. .sum-sign-label {
  2036. font-size: 26rpx;
  2037. color: #999;
  2038. margin-right: 10rpx;
  2039. }
  2040. .sum-sign-val {
  2041. font-size: 26rpx;
  2042. color: #333;
  2043. }
  2044. .sum-footer {
  2045. padding: 20rpx 36rpx 36rpx;
  2046. padding-bottom: max(36rpx, constant(safe-area-inset-bottom));
  2047. padding-bottom: max(36rpx, env(safe-area-inset-bottom));
  2048. background-color: #fff;
  2049. }
  2050. .sum-submit-btn {
  2051. width: 100%;
  2052. height: 84rpx;
  2053. line-height: 84rpx;
  2054. border-radius: 42rpx;
  2055. font-size: 30rpx;
  2056. background: linear-gradient(90deg, #FF9800 0%, #FF5722 100%);
  2057. color: #fff;
  2058. border: none;
  2059. box-shadow: 0 4rpx 16rpx rgba(255, 87, 34, 0.25);
  2060. }
  2061. .sum-submit-btn::after {
  2062. border: none;
  2063. }
  2064. .modal-mask {
  2065. position: fixed;
  2066. top: 0;
  2067. left: 0;
  2068. right: 0;
  2069. bottom: 0;
  2070. background-color: rgba(0, 0, 0, 0.5);
  2071. z-index: 999;
  2072. display: flex;
  2073. align-items: center;
  2074. justify-content: center;
  2075. }
  2076. .anomaly-modal-content {
  2077. width: 650rpx;
  2078. background-color: #fff;
  2079. border-radius: 20rpx;
  2080. padding: 30rpx;
  2081. position: relative;
  2082. max-height: 80vh;
  2083. display: flex;
  2084. flex-direction: column;
  2085. }
  2086. .am-header {
  2087. display: flex;
  2088. justify-content: space-between;
  2089. align-items: center;
  2090. margin-bottom: 30rpx;
  2091. padding-bottom: 20rpx;
  2092. border-bottom: 1px solid #f5f5f5;
  2093. }
  2094. .am-title {
  2095. font-size: 32rpx;
  2096. font-weight: bold;
  2097. color: #333;
  2098. }
  2099. .am-scroll-list {
  2100. flex: 1;
  2101. }
  2102. .am-item {
  2103. padding: 24rpx;
  2104. background-color: #F9FAFB;
  2105. border-radius: 12rpx;
  2106. margin-bottom: 24rpx;
  2107. }
  2108. .am-item-header {
  2109. display: flex;
  2110. justify-content: space-between;
  2111. align-items: center;
  2112. margin-bottom: 16rpx;
  2113. }
  2114. .am-item-type {
  2115. font-size: 28rpx;
  2116. font-weight: bold;
  2117. color: #333;
  2118. }
  2119. .am-item-status {
  2120. font-size: 22rpx;
  2121. padding: 4rpx 16rpx;
  2122. border-radius: 20rpx;
  2123. }
  2124. .am-item-status.status-0 {
  2125. background-color: #FFF3E0;
  2126. color: #FF9800;
  2127. }
  2128. .am-item-status.status-1 {
  2129. background-color: #E8F5E9;
  2130. color: #4CAF50;
  2131. }
  2132. .am-item-status.status-2 {
  2133. background-color: #FFEBEE;
  2134. color: #F44336;
  2135. }
  2136. .am-item-content {
  2137. font-size: 26rpx;
  2138. color: #666;
  2139. line-height: 1.6;
  2140. display: block;
  2141. margin-bottom: 16rpx;
  2142. }
  2143. .am-item-photos {
  2144. display: flex;
  2145. flex-wrap: wrap;
  2146. gap: 12rpx;
  2147. margin-bottom: 20rpx;
  2148. }
  2149. .am-photo {
  2150. width: 130rpx;
  2151. height: 130rpx;
  2152. border-radius: 8rpx;
  2153. }
  2154. .am-audit-box {
  2155. margin-top: 20rpx;
  2156. padding-top: 20rpx;
  2157. border-top: 1px dashed #E0E0E0;
  2158. }
  2159. .am-audit-header {
  2160. display: flex;
  2161. justify-content: space-between;
  2162. align-items: center;
  2163. margin-bottom: 8rpx;
  2164. }
  2165. .am-audit-label {
  2166. font-size: 24rpx;
  2167. font-weight: bold;
  2168. color: #333;
  2169. }
  2170. .am-audit-time {
  2171. font-size: 22rpx;
  2172. color: #999;
  2173. }
  2174. .am-audit-remark {
  2175. font-size: 24rpx;
  2176. color: #666;
  2177. line-height: 1.5;
  2178. }
  2179. .empty-list {
  2180. display: flex;
  2181. flex-direction: column;
  2182. align-items: center;
  2183. padding: 100rpx 0;
  2184. }
  2185. .empty-icon {
  2186. width: 200rpx;
  2187. height: 200rpx;
  2188. margin-bottom: 20rpx;
  2189. opacity: 0.5;
  2190. }
  2191. .empty-text {
  2192. font-size: 26rpx;
  2193. color: #999;
  2194. }
  2195. .tl-media-item {
  2196. position: relative;
  2197. width: 140rpx;
  2198. height: 140rpx;
  2199. }
  2200. .tl-video-placeholder {
  2201. width: 100%;
  2202. height: 100%;
  2203. background: linear-gradient(135deg, #444 0%, #222 100%);
  2204. border-radius: 8rpx;
  2205. display: flex;
  2206. flex-direction: column;
  2207. justify-content: center;
  2208. align-items: center;
  2209. }
  2210. .tl-video-placeholder.miniaturized {
  2211. border-radius: 8rpx;
  2212. overflow: hidden;
  2213. }
  2214. .tl-video-label {
  2215. color: #fff;
  2216. font-size: 20rpx;
  2217. margin-top: 50rpx;
  2218. opacity: 0.8;
  2219. }
  2220. .tl-video-label.small {
  2221. margin-top: 35rpx;
  2222. font-size: 18rpx;
  2223. }
  2224. .tl-play-icon {
  2225. position: absolute;
  2226. top: 50%;
  2227. left: 50%;
  2228. transform: translate(-50%, -50%);
  2229. width: 60rpx;
  2230. height: 60rpx;
  2231. display: flex;
  2232. justify-content: center;
  2233. align-items: center;
  2234. background-color: rgba(255, 255, 255, 0.2);
  2235. border: 2rpx solid #fff;
  2236. border-radius: 50%;
  2237. }
  2238. .tl-play-icon::after {
  2239. content: '';
  2240. display: block;
  2241. width: 0;
  2242. height: 0;
  2243. border-top: 15rpx solid transparent;
  2244. border-bottom: 15rpx solid transparent;
  2245. border-left: 20rpx solid #fff;
  2246. margin-left: 6rpx;
  2247. }
  2248. .tl-play-icon.small {
  2249. width: 40rpx;
  2250. height: 40rpx;
  2251. }
  2252. .tl-play-icon.small::after {
  2253. border-top: 10rpx solid transparent;
  2254. border-bottom: 10rpx solid transparent;
  2255. border-left: 14rpx solid #fff;
  2256. margin-left: 4rpx;
  2257. }
  2258. .video-player-mask {
  2259. position: fixed;
  2260. top: 0;
  2261. left: 0;
  2262. right: 0;
  2263. bottom: 0;
  2264. background-color: rgba(0, 0, 0, 0.9);
  2265. z-index: 999;
  2266. display: flex;
  2267. justify-content: center;
  2268. align-items: center;
  2269. }
  2270. .video-player-content {
  2271. position: relative;
  2272. width: 100%;
  2273. height: 600rpx;
  2274. }
  2275. .v-player {
  2276. width: 100%;
  2277. height: 100%;
  2278. }
  2279. .v-close {
  2280. position: absolute;
  2281. top: -80rpx;
  2282. right: 40rpx;
  2283. width: 60rpx;
  2284. height: 60rpx;
  2285. background-color: rgba(255, 255, 255, 0.2);
  2286. color: #fff;
  2287. border-radius: 50%;
  2288. display: flex;
  2289. justify-content: center;
  2290. align-items: center;
  2291. font-size: 40rpx;
  2292. }
  2293. .am-photo-item {
  2294. position: relative;
  2295. width: 150rpx;
  2296. height: 150rpx;
  2297. border-radius: 8rpx;
  2298. overflow: hidden;
  2299. }
  2300. .am-photo {
  2301. width: 150rpx;
  2302. height: 150rpx;
  2303. border-radius: 8rpx;
  2304. }
  2305. .nav-modal-mask {
  2306. position: fixed;
  2307. top: 0;
  2308. left: 0;
  2309. right: 0;
  2310. bottom: 0;
  2311. background-color: rgba(0, 0, 0, 0.6);
  2312. z-index: 1000;
  2313. display: flex;
  2314. align-items: flex-end;
  2315. }
  2316. .nav-action-sheet {
  2317. width: 100%;
  2318. background-color: #fff;
  2319. border-radius: 30rpx 30rpx 0 0;
  2320. padding-bottom: constant(safe-area-inset-bottom);
  2321. padding-bottom: env(safe-area-inset-bottom);
  2322. overflow: hidden;
  2323. }
  2324. .nav-sheet-title {
  2325. display: block;
  2326. text-align: center;
  2327. font-size: 26rpx;
  2328. color: #999;
  2329. padding: 30rpx 0;
  2330. border-bottom: 1px solid #f5f5f5;
  2331. }
  2332. .nav-sheet-item {
  2333. display: block;
  2334. text-align: center;
  2335. font-size: 32rpx;
  2336. color: #333;
  2337. padding: 35rpx 0;
  2338. border-bottom: 1px solid #f5f5f5;
  2339. background-color: #fff;
  2340. }
  2341. .nav-sheet-item:active {
  2342. background-color: #f9f9f9;
  2343. }
  2344. .nav-sheet-item.cancel {
  2345. color: #999;
  2346. }
  2347. .nav-sheet-gap {
  2348. height: 12rpx;
  2349. background-color: #f5f5f5;
  2350. }
  2351. </style>