activityDetail.vue 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024
  1. <template>
  2. <view class="common_page adffc" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title="公益活动详情" bgColor="transparent"></cus-header>
  4. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/19/54b75bc8-d926-449b-95a5-1126f700b481.png" class="top_bg_img" mode="widthFix"></image>
  5. <view class="lunbo">
  6. <up-swiper
  7. :list="imgList"
  8. @change="e => current = e.current"
  9. :autoplay="true"
  10. height="440rpx"
  11. >
  12. <template #indicator>
  13. <view class="indicator adf">
  14. <view class="indicator__dot" v-for="(item, index) in imgList" :key="index"
  15. :class="[index === current && 'indicator__dot--active']">
  16. </view>
  17. </view>
  18. </template>
  19. </up-swiper>
  20. </view>
  21. <view class="box box1">
  22. <view class="box1-top">
  23. <text class="box1-top-status" :class="{'end':activityInfo?.activeState==3}">{{statusCfg[activityInfo?.activeState]||'未知'}}</text>
  24. <text class="box1-top-title">{{activityInfo?.activityName||''}}</text>
  25. </view>
  26. <view class="box1-line" style="margin-top: 36rpx;"></view>
  27. <view class="box1-place adfacjb">
  28. <view class="box1-place-left adffcjb">
  29. <text>活动地点</text>
  30. <view class="addr">{{activityInfo?.provinceName||''}}{{activityInfo?.cityName||''}}{{activityInfo?.address||''}}</view>
  31. </view>
  32. <view class="box1-place-right">
  33. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/239a8c29-499b-407b-a9b5-90447248d9ab.png"></image>
  34. </view>
  35. </view>
  36. <view class="box1-line" style="margin-top: 24rpx;"></view>
  37. <view class="box1-member adfacjb">
  38. <view class="box1-member-left adffc">
  39. <text>招募人数</text>
  40. <view class="num"><text>{{activityInfo?.recruitmentNow}}</text> /{{activityInfo?.recruitmentMax||'不限'}}</view>
  41. </view>
  42. <view class="box1-member-right adffc" @tap="handleReviewMembers">
  43. <view class="review adfac">
  44. <text>查看报名人员</text>
  45. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/b7b7531b-33fa-4ec3-841b-796be9035191.png"></image>
  46. </view>
  47. <view class="avatars">
  48. <up-avatar-group :urls="avatars" size="30" gap="0.4" :maxCount="3"></up-avatar-group>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="box1-line" style="margin-top: 33rpx;"></view>
  53. <view class="box1-time adffc">
  54. <text>活动时间</text>
  55. <view class="text">{{activityInfo?.activityStartTime}} - {{activityInfo?.activityEndTime}}</view>
  56. </view>
  57. <view class="box1-line" style="margin-top: 30rpx;"></view>
  58. <view class="box1-need adffc">
  59. <text>报名要求</text>
  60. <template v-if="activityInfo?.activityLimit==1">
  61. <view class="text"><text>{{activityInfo?.valueLimit||0}}</text>爱心值</view>
  62. <view class="tip">{{activityInfo?.loveValueContent||''}}</view>
  63. </template>
  64. <template v-else-if="activityInfo?.activityLimit==2">
  65. <view class="text"><text>{{activityInfo?.valueLimit||0}}</text>张专享券</view>
  66. <view class="tip">{{activityInfo?.loveValueContent||''}}</view>
  67. </template>
  68. <template v-else-if="activityInfo?.activityLimit==3">
  69. <view class="text"><text>免费</text></view>
  70. <view class="tip"></view>
  71. </template>
  72. </view>
  73. <view class="box1-line" style="margin-top: 30rpx;"></view>
  74. <view class="box1-info adfacjb">
  75. <view class="box1-info-pre">
  76. <text>年龄限制</text>
  77. <view class="text" v-if="activityInfo?.userAgeMax">{{activityInfo?.userAgeMin}}岁 到 {{activityInfo?.userAgeMax}}岁</view>
  78. <view class="text" v-else>不限制</view>
  79. </view>
  80. <view class="box1-info-pre line">
  81. <text>可获得义工时长</text>
  82. <!-- typeId=='1977564860095348737'为义工活动,义工时长只有义工活动才有 -->
  83. <view class="hour" v-if="activityInfo?.typeId=='1977564860095348737'"><text>{{activityInfo?.serviceHours||0}}</text> 小时</view>
  84. <view class="hour" v-else>无</view>
  85. </view>
  86. </view>
  87. <view class="box1-line" style="margin-top: 30rpx;"></view>
  88. <view class="box1-info adfacjb">
  89. <view class="box1-info-pre">
  90. <text>联系人</text>
  91. <view class="text">{{activityInfo?.contact||''}}/{{activityInfo?.contactPhone||''}}</view>
  92. </view>
  93. <view class="box1-info-pre line">
  94. <text>公益合作</text>
  95. <view class="text">{{activityInfo?.channelName||''}}</view>
  96. </view>
  97. </view>
  98. </view>
  99. <view class="box box2">
  100. <view class="box-title">活动详情</view>
  101. <view class="box2-detail" v-if="activityInfo&&activityInfo.activityDetails">
  102. <up-read-more :toggle="true" showHeight="374rpx" color="#989998" fontSize="24rpx" openText="收起更多信息" closeText="展开更多信息">
  103. <rich-text :nodes="activityInfo.activityDetails"></rich-text>
  104. </up-read-more>
  105. </view>
  106. </view>
  107. <view class="bottom">
  108. <view class="time">
  109. 报名时间:{{activityInfo?.signupStartTime}} - {{activityInfo?.signupEndTime}}
  110. </view>
  111. <view class="btns adfacjb">
  112. <view class="left adffcacjc" @tap="showShareOptions">
  113. <up-icon name="share-square" color="#252525" size="48rpx"></up-icon>
  114. <text>分享</text>
  115. </view>
  116. <view class="right" @click="handleApply" v-if="activityInfo?.activeState==1&&activityInfo?.signupState==0">立即报名</view>
  117. <view class="right" @click="handleCancel" v-else-if="activityInfo?.activeState==1&&activityInfo?.signupState==1">取消报名</view>
  118. <view class="right" @click="handleSignup" v-else-if="activityInfo?.activeState==2&&activityInfo?.signupState==1">我要签到</view>
  119. <view class="right" @click="handleFill" v-else-if="activityInfo?.activeState==3&&activityInfo?.signupState==1">填写公益档案</view>
  120. <view class="right end" v-else-if="activityInfo?.activeState==0">活动未开始</view>
  121. <view class="right end" v-else-if="activityInfo?.activeState==2&&activityInfo?.signupState==0">活动进行中不可报名</view>
  122. <view class="right end" v-else-if="activityInfo?.activeState==3">活动已结束</view>
  123. <view class="right end" v-else-if="activityInfo?.activeState==4">已报满暂无活动名额</view>
  124. </view>
  125. </view>
  126. <view class="fail" v-if="fail">
  127. <view class="fbox adffcac">
  128. <image class="clock" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/5fe8627b-adc4-4e24-8e86-45771d3ba5a2.png"></image>
  129. <image class="close" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/3d94527a-da92-4d8b-9e99-44683c4f5c84.png" @click="fail=false"></image>
  130. <image class="alert" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/fdf05bfa-5593-4448-940e-437152bbbaf9.png" mode="widthFix"></image>
  131. <view class="texts adffcacjc">
  132. <view class="text">您当前{{activityLimitCfg[activityInfo?.activityLimit]}}不足,无法报名活动</view>
  133. <view class="tip">欢迎联系专属客服,了解更多公益活动,积攒{{activityLimitCfg[activityInfo?.activityLimit]}}</view>
  134. </view>
  135. <image class="down" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/c7d4983d-ca93-4833-8922-e010dd1d450a.png"></image>
  136. <view class="user adfacjc">
  137. <!-- <view class="user adfac"> -->
  138. <!-- <view class="user-left">
  139. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/20ff1438-01a9-454c-b62c-501ed47c39a6.png"></image>
  140. </view>
  141. <view class="user-right">
  142. <view class="name">陈婧航</view>
  143. <view class="memo">@深圳善行少年基金会</view>
  144. </view> -->
  145. "善行少年"咨询微信
  146. </view>
  147. <view class="finfo adffcac">
  148. <view class="finfo-code adffcacjc">
  149. <!-- <image :src="imageUrl" @longpress="handleLongPress(imageUrl)"></image> -->
  150. <image :src="imageUrl" :show-menu-by-longpress="true"></image>
  151. </view>
  152. <view class="finfo-title">长按识别二维码</view>
  153. <view class="finfo-tip">添加您的专属公益向导</view>
  154. <view class="finfo-btn" @click="toWebView">了解善行少年</view>
  155. <view class="finfo-zblj" @click="fail=false">暂不了解</view>
  156. </view>
  157. </view>
  158. </view>
  159. <view class="share" v-if="share">
  160. <view class="sbox">
  161. <view class="sbox-title">分享给好友</view>
  162. <image class="close" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/7d1c7cf4-199a-4008-8114-ee0e1a8f0cc3.png" @click="share=false"></image>
  163. <view class="sbox-items adfac">
  164. <view class="sbox-items-pre adffcac">
  165. <button class="share-btn" open-type="share">
  166. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/a993c721-a4c7-4f5e-95cc-6451a50bfdce.png"></image>
  167. <text>分享页面</text>
  168. </button>
  169. </view>
  170. <view class="sbox-items-pre adffcac" @click="generatePoster">
  171. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/0c87d8a1-d7c5-466c-84aa-87ec5f163955.png"></image>
  172. <text>生成海报</text>
  173. </view>
  174. <view class="sbox-items-pre adffcac" @click="shareToTimeline">
  175. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/732ac5fd-af58-44d8-9625-aaf96c24fed0.png"></image>
  176. <text>分享到朋友圈</text>
  177. </view>
  178. </view>
  179. </view>
  180. </view>
  181. <view class="posterbox adffcacjc" v-if="posterShow">
  182. <div class="posterbox-card adffcac">
  183. <div class="posterbox-card-img">
  184. <image src="https://sxsn.ringzle.com/happytree-admin/profile/2025/12/12/e8218de1-d059-4197-b677-f9d2e446971e.png"></image>
  185. </div>
  186. <div class="posterbox-card-info adfacjb">
  187. <div class="posterbox-card-info-left">
  188. <div class="posterbox-card-info-left-title">{{'《环保知识知多少》让孩子成为健康公益大使'}}</div>
  189. <div class="posterbox-card-info-left-p adf" style="margin-top: 12rpx;">
  190. <image src="https://sxsn.ringzle.com/happytree-admin/profile/2025/12/12/7ae66915-7988-4827-86fa-991c1a850e24.png"></image>
  191. <text>{{'06.01-12:00 ~ 06.02-12:00'}}</text>
  192. </div>
  193. <div class="posterbox-card-info-left-p adf">
  194. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/11/e9025f86-a59e-4f82-92f0-9d22e846193c.png"></image>
  195. <text>{{'深圳市南山区南山街道丰潭路'}}</text>
  196. </div>
  197. <div class="posterbox-card-info-left-name adfac">
  198. <image src="https://sxsn.ringzle.com/happytree-admin/profile/2025/12/12/5a43c6f6-32c7-42a1-be09-3fe13575be10.png"></image>
  199. <text>锦鲤俱乐部</text>
  200. </div>
  201. </div>
  202. <div class="posterbox-card-info-right adffcac">
  203. <image src="https://sxsn.ringzle.com/happytree-admin/profile/2025/12/12/7e272eb5-272f-4ec2-909c-cb4582ee9124.jpg"></image>
  204. <text>微信扫一扫</text>
  205. </div>
  206. </div>
  207. </div>
  208. <div class="posterbox-menu adfacjb">
  209. <div class="posterbox-menu-pre adffcac" v-for="(item,index) in menuList" :key="index">
  210. <image :src="item.img"></image>
  211. <text>{{item.title}}</text>
  212. </div>
  213. </div>
  214. <div class="posterbox-close adfacjc">
  215. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/12/10/c1050d39-c090-49e5-974c-40da9d08648c.png" @click="posterShow=false"></image>
  216. </div>
  217. </view>
  218. </view>
  219. </template>
  220. <script setup name="">
  221. import CusHeader from '@/components/CusHeader/index.vue'
  222. import { onLoad } from '@dcloudio/uni-app';
  223. import { ref, reactive, onMounted, getCurrentInstance } from 'vue'
  224. import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
  225. const { proxy } = getCurrentInstance()
  226. const id = ref('')
  227. const activityInfo = ref(null)
  228. const statusCfg = ref({
  229. 0:'未开始',
  230. 1:'报名中',
  231. 4:'报名中',
  232. 2:'进行中',
  233. 3:'已结束'
  234. })
  235. const activityLimitCfg = ref({
  236. 1:'爱心值',
  237. 2:'专享券',
  238. 3:'免费'
  239. })
  240. const imgList = ref([])
  241. const detail = ref('')
  242. const avatars = ref([])
  243. const fail = ref(false)
  244. const share = ref(false)
  245. const showPoster = ref(false)
  246. const posterUrl = ref('')
  247. const canvasWidth = ref(375)
  248. const canvasHeight = ref(667)
  249. const activityData = reactive({
  250. title: '《环保知识知多少》让孩子成为大自然的守护者!',
  251. time: '06.01-12:00 ~ 06.02-12:00',
  252. address: '深圳市南山区南山街道丰潭路',
  253. organizer: '锦鲤俱乐部'
  254. })
  255. const imageUrl = ref('https://transcend.ringzle.com/xiaozhi-app/profile/2025/11/21/50ac5bc4-8f92-46a5-81d5-60908b84e9f0.png')
  256. const posterShow = ref(false)
  257. const menuList = ref([
  258. { img:'https://transcend.ringzle.com/xiaozhi-app/profile/2025/12/10/37642ab3-3085-4730-875a-435a4ffef73f.png',title:'发送给朋友' },
  259. { img:'https://transcend.ringzle.com/xiaozhi-app/profile/2025/12/10/f09f3499-a578-4638-bd75-b997161689b8.png',title:'分享到朋友圈' },
  260. { img:'https://transcend.ringzle.com/xiaozhi-app/profile/2025/12/10/6f18c1c5-323b-4476-98fd-e0c428790c3b.png',title:'收藏' },
  261. { img:'https://transcend.ringzle.com/xiaozhi-app/profile/2025/12/10/a34f93bc-d787-4d82-973d-c498ea306808.png',title:'保存图片' },
  262. ])
  263. const handleReviewMembers = () => {
  264. uni.navigateTo({
  265. url:'/pagesHome/recruitsNumber?activityId='+activityInfo.value?.id+'&recruitmentMax='+activityInfo.value?.recruitmentMax+'&recruitmentMin='+activityInfo.value?.recruitmentMin
  266. })
  267. }
  268. //立即报名
  269. const handleApply = async () => {
  270. let { loveValue, couponIds } = await getUserLoveTicket();
  271. let url = `/pagesHome/activityApply?activity=${encodeURIComponent(JSON.stringify(activityInfo.value))}`;
  272. if((activityInfo.value?.activityLimit==1&&loveValue<activityInfo?.value.valueLimit)
  273. ||(activityInfo.value?.activityLimit==2&&couponIds?.length<activityInfo?.value.valueLimit)){
  274. fail.value = true;
  275. return
  276. }
  277. uni.navigateTo({ url })
  278. }
  279. //取消报名
  280. const handleCancel = () => {
  281. uni.reLaunch({
  282. url:'/pages/nonprofit?type=1'
  283. })
  284. // uni.showModal({
  285. // title:'温馨提示',
  286. // content:'确认取消本次报名吗?取消后可再次报名本活动。',
  287. // success: (res) => {
  288. // if(res.confirm){
  289. // proxy.$api.get(`/core/activity/signup/cancelSignup/${activityInfo.value?.signupId||''}`).then(({data:res})=>{
  290. // if(res.code!==0) return proxy.$showToast(res.msg)
  291. // getActivityDetail(id.value)
  292. // proxy.$showToast('取消报名成功')
  293. // })
  294. // }
  295. // }
  296. // })
  297. }
  298. //我要签到
  299. const handleSignup = () => {
  300. uni.reLaunch({
  301. url:'/pages/nonprofit?type=2'
  302. })
  303. }
  304. //填写公益档案
  305. const handleFill = () => {
  306. uni.reLaunch({
  307. url:'/pages/nonprofit?type=3'
  308. })
  309. }
  310. const getUserLoveTicket = () => {
  311. return new Promise(resolve=>{
  312. let userId = JSON.parse(uni.getStorageSync('userInfo'))?.id;
  313. proxy.$api.get(`/core/activity/signup/userAsset/${userId}/${activityInfo.value?.id}`).then(({data:res})=>{
  314. if(res.code!==0) return proxy.$showToast(res.msg)
  315. resolve({loveValue:res.data?.loveValue||0,couponIds:res.data?.couponIds||0})
  316. })
  317. })
  318. }
  319. onShareAppMessage((res) => {
  320. const sharerId = JSON.parse(uni.getStorageSync('userInfo'))?.id;
  321. return {
  322. title: activityInfo.value?.activityName || '发现一个好物,分享给你!',
  323. path: `/pagesHome/activityDetail?shareADId=${activityInfo.value?.id}&shareUserId=${sharerId}`,
  324. imageUrl: activityInfo.value?.coverFile
  325. };
  326. })
  327. onShareTimeline((res) => {
  328. const sharerId = JSON.parse(uni.getStorageSync('userInfo'))?.id;
  329. return {
  330. title: activityInfo.value?.activityName || '发现一个好物,分享给你!',
  331. query: `shareADId=${activityInfo.value?.id}&shareUserId=${sharerId}`,
  332. imageUrl: activityInfo.value?.coverFile
  333. };
  334. })
  335. const showShareOptions = () => {
  336. share.value = true;
  337. uni.showShareMenu({
  338. withShareTicket: true,
  339. menus: ['shareAppMessage', 'shareTimeline'] // 显示分享给朋友和分享到朋友圈
  340. }).then(res => {
  341. console.log('显示分享菜单成功', res);
  342. }).catch(err => {
  343. console.error('显示分享菜单失败', err);
  344. });
  345. }
  346. // 分享到朋友圈
  347. const shareToTimeline = () => {
  348. uni.showModal({
  349. title:'温馨提示',
  350. content:'分享到朋友圈请点击页面右上方的“···”标志后选择“分享到朋友圈”进行分享'
  351. })
  352. }
  353. // 生成海报
  354. const generatePoster = async () => {
  355. share.value = false;
  356. posterShow.value = true;
  357. }
  358. const toWebView = () => {
  359. uni.navigateTo({
  360. url:'/pages/webView?src=https://mp.weixin.qq.com/s/-oQlSBucYU_ifgd1j6eL3A?scene=1&click_id=2'
  361. })
  362. }
  363. const getActivityDetail = (id) => {
  364. proxy.$api.get(`/core/activity/${id}`).then(({data:res})=>{
  365. if(res.code!==0) return proxy.$showToast(res.msg)
  366. activityInfo.value = res.data;
  367. if(activityInfo.value.signupState==0
  368. &&activityInfo.value.activeState===1
  369. &&activityInfo.value.recruitmentNow==(activityInfo.value.recruitmentMax||99999)){
  370. activityInfo.value.activeState = 4;//已报满暂无活动名额
  371. }
  372. imgList.value = activityInfo.value?.imageFiles&&(activityInfo.value?.imageFiles.split(',')||[])
  373. for(let i=0;i<activityInfo.value.recruitmentNow;i++){
  374. avatars.value.push('https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/565ca09a-88e2-4c2c-a89e-98bd51fbea7f.png')
  375. }
  376. })
  377. }
  378. onLoad(options=>{
  379. id.value = options?.id||options?.shareADId||'';
  380. if(id.value) {
  381. getActivityDetail(id.value)
  382. }
  383. })
  384. </script>
  385. <style scoped lang="scss">
  386. .share-btn {
  387. background-color: transparent;
  388. border: none;
  389. padding: 0;
  390. margin: 0;
  391. line-height: 1;
  392. display: flex;
  393. flex-direction: column;
  394. justify-content: center;
  395. align-items: center;
  396. &::after {
  397. border: none;
  398. }
  399. }
  400. .common_page{
  401. padding-bottom: 276rpx;
  402. .lunbo{
  403. width: 100%;
  404. height: 440rpx;
  405. margin-top: 20rpx;
  406. position: relative;
  407. }
  408. .box{
  409. background: linear-gradient(45deg,#FFFFFF 70%,#F2FFE8 100%);
  410. border-radius: 24rpx;
  411. padding: 36rpx 24rpx 30rpx;
  412. margin-top: 20rpx;
  413. position: relative;
  414. &-title{
  415. width: 170rpx;
  416. height: 44rpx;
  417. padding-left: 2rpx;
  418. font-family: PingFang-SC, PingFang-SC;
  419. font-weight: 800;
  420. font-size: 36rpx;
  421. color: #151B29;
  422. line-height: 36rpx;
  423. background-image: url('https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/11/6ec1f999-fcbb-4a0b-a1a5-d0b5e1374bb1.png');
  424. background-size: 170rpx 31rpx;
  425. background-position: 0 20rpx;
  426. background-repeat: no-repeat;
  427. }
  428. }
  429. .box1{
  430. &-top{
  431. &-status{
  432. padding: 10rpx 20rpx;
  433. background: url('https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/46184afd-e7cd-4ffa-b32f-7390f7a1decc.png') no-repeat;
  434. background-size: 100% 100%;
  435. font-family: PingFang-SC, PingFang-SC;
  436. font-weight: bold;
  437. font-size: 24rpx;
  438. color: #151B29;
  439. line-height: 33rpx;
  440. &.end{
  441. background: linear-gradient( 270deg, #FD8A8A 0%, #FE6161 100%);
  442. border-radius: 16px 4px 16px 4px;
  443. color: #FFFFFF;
  444. }
  445. }
  446. &-title{
  447. font-family: PingFang-SC, PingFang-SC;
  448. font-weight: bold;
  449. font-size: 36rpx;
  450. color: #151B29;
  451. line-height: 54rpx;
  452. margin-left: 10rpx;
  453. }
  454. }
  455. &-line{
  456. width: 100%;
  457. height: 1rpx;
  458. background: #E7E7E7;
  459. }
  460. &-place{
  461. &-left{
  462. width: calc(100% - 228rpx);
  463. text{
  464. font-family: PingFangSC, PingFang SC;
  465. font-weight: 400;
  466. font-size: 24rpx;
  467. color: #989998;
  468. line-height: 26rpx;
  469. }
  470. .addr{
  471. width: 100%;
  472. font-family: PingFang-SC, PingFang-SC;
  473. font-weight: bold;
  474. font-size: 26rpx;
  475. color: #151B29;
  476. line-height: 26rpx;
  477. margin-top: 24rpx;
  478. }
  479. }
  480. &-right{
  481. width: 188rpx;
  482. height: 115rpx;
  483. image{
  484. width: 100%;
  485. height: 100%;
  486. }
  487. }
  488. }
  489. &-member{
  490. margin-top: 37rpx;
  491. &-left{
  492. &>text{
  493. font-family: PingFangSC, PingFang SC;
  494. font-weight: 400;
  495. font-size: 24rpx;
  496. color: #989998;
  497. line-height: 26rpx;
  498. }
  499. .num{
  500. font-family: PingFang-SC, PingFang-SC;
  501. font-weight: bold;
  502. font-size: 26rpx;
  503. color: #676775;
  504. line-height: 48rpx;
  505. margin-top: 25rpx;
  506. text{
  507. font-size: 36rpx;
  508. color: #151B29;
  509. }
  510. }
  511. }
  512. &-right{
  513. .review{
  514. text{
  515. font-family: PingFangSC, PingFang SC;
  516. font-weight: 400;
  517. font-size: 24rpx;
  518. color: #989998;
  519. line-height: 26rpx;
  520. }
  521. image{
  522. width: 28rpx;
  523. height: 28rpx;
  524. margin-left: 8rpx;
  525. }
  526. }
  527. .avatars{
  528. margin-top: 27rpx;
  529. display: flex;
  530. justify-content: flex-end;
  531. }
  532. }
  533. }
  534. &-time{
  535. margin-top: 30rpx;
  536. text{
  537. font-family: PingFangSC, PingFang SC;
  538. font-weight: 400;
  539. font-size: 24rpx;
  540. color: #989998;
  541. line-height: 26rpx;
  542. }
  543. .text{
  544. font-family: PingFang-SC, PingFang-SC;
  545. font-weight: bold;
  546. font-size: 26rpx;
  547. color: #151B29;
  548. line-height: 26rpx;
  549. margin-top: 24rpx;
  550. }
  551. }
  552. &-need{
  553. margin-top: 30rpx;
  554. &>text{
  555. font-family: PingFangSC, PingFang SC;
  556. font-weight: 400;
  557. font-size: 24rpx;
  558. color: #989998;
  559. line-height: 26rpx;
  560. }
  561. .text{
  562. margin-top: 30rpx;
  563. font-family: PingFangSC, PingFang SC;
  564. font-weight: 400;
  565. font-size: 24rpx;
  566. color: #676775;
  567. line-height: 26rpx;
  568. text{
  569. font-weight: bold;
  570. font-size: 36rpx;
  571. color: #151B29;
  572. }
  573. }
  574. .tip{
  575. font-family: PingFangSC, PingFang SC;
  576. font-weight: 400;
  577. font-size: 24rpx;
  578. color: #C9A771;
  579. line-height: 26rpx;
  580. margin-top: 20rpx;
  581. }
  582. }
  583. &-info{
  584. margin-top: 30rpx;
  585. &-pre{
  586. width: 50%;
  587. &.line{
  588. border-left: 1rpx solid #E7E7E7;
  589. padding-left: 24rpx;
  590. box-sizing: border-box;
  591. }
  592. &>text{
  593. font-family: PingFangSC, PingFang SC;
  594. font-weight: 400;
  595. font-size: 24rpx;
  596. color: #989998;
  597. line-height: 26rpx;
  598. }
  599. .text{
  600. font-family: PingFang-SC, PingFang-SC;
  601. font-weight: bold;
  602. font-size: 26rpx;
  603. color: #151B29;
  604. line-height: 26rpx;
  605. margin-top: 24rpx;
  606. }
  607. .hour{
  608. margin-top: 24rpx;
  609. font-family: PingFangSC, PingFang SC;
  610. font-weight: 400;
  611. font-size: 24rpx;
  612. color: #676775;
  613. line-height: 26rpx;
  614. text{
  615. font-weight: bold;
  616. font-size: 36rpx;
  617. color: #151B29;
  618. }
  619. }
  620. }
  621. }
  622. }
  623. .box2{
  624. &-detail{
  625. margin-top: 40rpx;
  626. }
  627. }
  628. .bottom{
  629. width: 100%;
  630. height: 256rpx;
  631. background: #FFFFFF;
  632. box-shadow: 0rpx -2rpx 8rpx 0rpx rgba(178,178,178,0.1);
  633. position: fixed;
  634. left: 0;
  635. right: 0;
  636. bottom: 0;
  637. padding: 30rpx 24rpx 0;
  638. box-sizing: border-box;
  639. .time{
  640. padding: 19rpx 24rpx 12rpx;
  641. background: #F8F8F9;
  642. border-radius: 32rpx;
  643. font-family: PingFangSC, PingFang SC;
  644. font-weight: 400;
  645. font-size: 24rpx;
  646. color: #4B545C;
  647. line-height: 33rpx;
  648. }
  649. .btns{
  650. margin-top: 24rpx;
  651. .left{
  652. margin-left: 30rpx;
  653. text{
  654. font-family: PingFangSC, PingFang SC;
  655. font-weight: 400;
  656. font-size: 26rpx;
  657. color: #151B29;
  658. line-height: 26rpx;
  659. margin-top: 17rpx;
  660. }
  661. }
  662. .right{
  663. width: 540rpx;
  664. height: 90rpx;
  665. background: #B7F358;
  666. border-radius: 45rpx;
  667. font-family: PingFang-SC, PingFang-SC;
  668. font-weight: bold;
  669. font-size: 32rpx;
  670. color: #151B29;
  671. line-height: 90rpx;
  672. text-align: center;
  673. letter-spacing: 2rpx;
  674. &.end{
  675. background: #F7F7F7;
  676. }
  677. }
  678. }
  679. }
  680. .fail{
  681. position: fixed;
  682. left: 0;
  683. right: 0;
  684. top: 0;
  685. bottom: 0;
  686. background: rgba(0,0,0,0.4);
  687. display: flex;
  688. flex-direction: column;
  689. justify-content: flex-end;
  690. .fbox{
  691. background: #FFFFFF;
  692. background-image: url('https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/e5ca0b95-ae33-4a93-8955-fe1d5e05ed2d.png');
  693. background-repeat: no-repeat;
  694. background-position: top left;
  695. background-size: 100% 399rpx;
  696. border-radius: 24rpx 24rpx 0 0;
  697. position: relative;
  698. padding: 40rpx 30rpx 123rpx;
  699. .clock{
  700. width: 219rpx;
  701. height: 143rpx;
  702. position: absolute;
  703. left: 51rpx;
  704. top: -37rpx;
  705. }
  706. .close{
  707. width: 40rpx;
  708. height: 40rpx;
  709. position: absolute;
  710. top: 40rpx;
  711. right: 36rpx;
  712. }
  713. .alert{
  714. width: 212rpx;
  715. }
  716. .texts{
  717. width: 100%;
  718. margin-top: 69rpx;
  719. background: #FFFFFF;
  720. border-radius: 24rpx;
  721. border: 1rpx dotted #979797;
  722. padding: 36rpx 0;
  723. .text{
  724. font-family: PingFang-SC, PingFang-SC;
  725. font-weight: bold;
  726. font-size: 36rpx;
  727. color: #252525;
  728. line-height: 36rpx;
  729. }
  730. .tip{
  731. font-family: PingFangSC, PingFang SC;
  732. font-weight: 400;
  733. font-size: 24rpx;
  734. color: #676775;
  735. line-height: 26rpx;
  736. margin-top: 24rpx;
  737. }
  738. }
  739. .down{
  740. width: 514rpx;
  741. height: 34rpx;
  742. margin-top: 20rpx;
  743. }
  744. .user{
  745. width: 100%;
  746. // margin-top: 30rpx;
  747. // padding-left: 50rpx;
  748. margin-top: 50rpx;
  749. box-sizing: border-box;
  750. font-family: PingFang-SC, PingFang-SC;
  751. font-weight: bold;
  752. font-size: 32rpx;
  753. color: #252525;
  754. line-height: 32rpx;
  755. &-left{
  756. image{
  757. width: 98rpx;
  758. height: 98rpx;
  759. }
  760. }
  761. &-right{
  762. margin-left: 20rpx;
  763. .name{
  764. font-family: PingFang-SC, PingFang-SC;
  765. font-weight: bold;
  766. font-size: 32rpx;
  767. color: #252525;
  768. line-height: 32rpx;
  769. }
  770. .memo{
  771. font-family: PingFang-SC, PingFang-SC;
  772. font-weight: bold;
  773. font-size: 24rpx;
  774. color: #05A9FE;
  775. line-height: 24rpx;
  776. margin-top: 24rpx;
  777. }
  778. }
  779. }
  780. .finfo{
  781. width: 100%;
  782. margin-top: 36rpx;
  783. &-code{
  784. width: 310rpx;
  785. height: 310rpx;
  786. background: #FFFFFF;
  787. border: 3rpx solid #C5E3FE;
  788. image{
  789. width: 244rpx;
  790. height: 244rpx;
  791. }
  792. }
  793. &-title{
  794. margin-top: 24rpx;
  795. font-size: 28rpx;
  796. color: #252525;
  797. line-height: 40rpx;
  798. }
  799. &-tip{
  800. margin-top: 10rpx;
  801. font-size: 24rpx;
  802. color: #656775;
  803. line-height: 40rpx;
  804. }
  805. &-btn{
  806. width: calc(100% - 20rpx);
  807. height: 90rpx;
  808. background: #B7F358;
  809. border-radius: 45rpx;
  810. font-family: PingFang-SC, PingFang-SC;
  811. font-weight: bold;
  812. font-size: 32rpx;
  813. color: #151B29;
  814. line-height: 90rpx;
  815. text-align: center;
  816. margin-top: 48rpx;
  817. }
  818. &-zblj{
  819. font-family: PingFangSC, PingFang SC;
  820. font-weight: 400;
  821. font-size: 28rpx;
  822. color: #989998;
  823. line-height: 40rpx;
  824. margin-top: 48rpx;
  825. padding-bottom: 5rpx;
  826. border-bottom: 1rpx solid #989998;
  827. }
  828. }
  829. }
  830. }
  831. .share{
  832. position: fixed;
  833. left: 0;
  834. right: 0;
  835. top: 0;
  836. bottom: 0;
  837. background: rgba(0,0,0,0.4);
  838. display: flex;
  839. flex-direction: column;
  840. justify-content: flex-end;
  841. .sbox{
  842. position: relative;
  843. background: #FFFFFF;
  844. border-radius: 24rpx 24rpx 0rpx 0rpx;
  845. padding: 50rpx 30rpx 148rpx;
  846. &-title{
  847. font-family: PingFang-SC, PingFang-SC;
  848. font-weight: bold;
  849. font-size: 36rpx;
  850. color: #151B29;
  851. line-height: 36rpx;
  852. text-align: center;
  853. }
  854. .close{
  855. width: 27rpx;
  856. height: 27rpx;
  857. position: absolute;
  858. top: 50rpx;
  859. right: 40rpx;
  860. }
  861. &-items{
  862. margin-top: 88rpx;
  863. &-pre{
  864. width: calc(100% / 3);
  865. image{
  866. width: 94rpx;
  867. height: 94rpx;
  868. }
  869. text{
  870. font-family: PingFangSC, PingFang SC;
  871. font-weight: 400;
  872. font-size: 26rpx;
  873. color: #252525;
  874. line-height: 26rpx;
  875. text-align: center;
  876. margin-top: 24rpx;
  877. }
  878. }
  879. }
  880. }
  881. }
  882. .posterbox{
  883. position: fixed;
  884. left: 0;
  885. right: 0;
  886. top: 0;
  887. bottom: 0;
  888. background: rgba(0,0,0,0.7);
  889. &-card{
  890. width: calc(100% - 220rpx);
  891. background: #FFFFFF;
  892. padding: 24rpx 20rpx;
  893. box-sizing: border-box;
  894. &-img{
  895. width: 100%;
  896. height: 368rpx;
  897. image{
  898. width: 100%;
  899. height: 100%;
  900. }
  901. }
  902. &-info{
  903. width: 100%;
  904. margin-top: 14rpx;
  905. &-left{
  906. width: calc(100% - 163rpx);
  907. &-title{
  908. font-family: PingFang-SC, PingFang-SC;
  909. font-weight: bold;
  910. font-size: 24rpx;
  911. color: #252525;
  912. line-height: 36rpx;
  913. overflow: hidden;
  914. text-overflow: ellipsis;
  915. white-space: nowrap;
  916. }
  917. &-p{
  918. margin-top: 3rpx;
  919. image{
  920. width: 24rpx;
  921. height: 24rpx;
  922. }
  923. text{
  924. font-family: PingFang-SC, PingFang-SC;
  925. font-weight: bold;
  926. font-size: 20rpx;
  927. color: #8B8B8B;
  928. line-height: 36rpx;
  929. margin-left: 10rpx;
  930. }
  931. }
  932. &-name{
  933. margin-top: 6rpx;
  934. image{
  935. width: 30rpx;
  936. height: 30rpx;
  937. }
  938. text{
  939. font-family: PingFang-SC, PingFang-SC;
  940. font-weight: bold;
  941. font-size: 20rpx;
  942. color: #8B8B8B;
  943. line-height: 36rpx;
  944. margin-left: 10rpx;
  945. }
  946. }
  947. }
  948. &-right{
  949. width: 163rpx;
  950. image{
  951. width: 123rpx;
  952. height: 123rpx;
  953. }
  954. text{
  955. font-family: PingFang-SC, PingFang-SC;
  956. font-weight: bold;
  957. font-size: 20rpx;
  958. color: #8B8B8B;
  959. line-height: 36rpx;
  960. margin-top: 20rpx;
  961. }
  962. }
  963. }
  964. }
  965. &-menu{
  966. width: 100%;
  967. margin-top: 239rpx;
  968. &-pre{
  969. width: 25%;
  970. image{
  971. width: 103rpx;
  972. height: 104rpx;
  973. }
  974. text{
  975. font-family: PingFangSC, PingFang SC;
  976. font-weight: 400;
  977. font-size: 24rpx;
  978. color: rgba(255,255,255,0.6);
  979. line-height: 33rpx;
  980. margin-top: 32rpx;
  981. }
  982. }
  983. }
  984. &-close{
  985. margin-top: 58rpx;
  986. image{
  987. width: 64rpx;
  988. height: 64rpx;
  989. }
  990. }
  991. }
  992. }
  993. </style>