index.vue 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873
  1. <!-- 订单类型orderType:0-学校 1-包场 2-无固定场 3-个人赛 4-团队赛 5-课程 -->
  2. <template>
  3. <view class="content" v-if="!loading">
  4. <view class="t-order-timer" v-if="orderDetailInfo?.orderStatus == '待付款'">
  5. <view class="timer-text">请在<text style="color: #FB5B5B;">{{ downTime }}</text>内支付</view>
  6. <view class="timer-btn">
  7. <view class="cancel-btn" @click="cancelOrder(orderDetailInfo?.id)">取消订单</view>
  8. <view class="pay-btn" @click="submitPay(orderDetailInfo?.id)">立即支付¥{{ orderDetailInfo?.price }}</view>
  9. </view>
  10. </view>
  11. <view class="t-header" v-else>
  12. <view class="title">{{ orderDetailInfo?.orderStatus }}</view>
  13. <view style="display: flex;gap: 10rpx;flex-wrap: wrap;">
  14. <view class="time" v-for="item in orderDetailInfo?.proInfoList" :key="item.id">
  15. <block v-if="item.userName">
  16. <!-- v-if="item.type != 6" -->
  17. <text style="color: #FB5B5B;" v-if="item.type != 6">{{ item.userName }}</text>
  18. <!-- 0-待付款 1-待使用 2-已使用 3-已到期 4-已取消 5-退款中 6已退款 -->
  19. <text v-if="item.type != 6">{{ getStatusText(item.orderStatus) }}</text>
  20. <!-- <text v-if="orderDetailInfo?.orderStatus == '待使用'">,请按课表到上课地点按时上课。</text> -->
  21. </block>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="t-booking-card" v-if="orderDetailInfo?.advanceTime">
  26. <view class="booking-text">
  27. <view class="b-title">请您提前联系场馆进行预约</view>
  28. <view class="b-text">请提前{{ orderDetailInfo?.advanceTime }}小时预约>场馆确认>到馆消费</view>
  29. </view>
  30. <view class="booking-btn" @click="submitBooking">立即预约</view>
  31. </view>
  32. <!-- 场地 -->
  33. <view class="c-scheduled-card" v-if="orderPageInfo?.orderType == 0 || orderPageInfo?.orderType == 1">
  34. <view class="title">预定信息</view>
  35. <view class="schedule-address">
  36. <view class="text">场馆</view>
  37. <view class="name">{{ orderDetailInfo?.siteName }}</view>
  38. </view>
  39. <view class="schedule-address">
  40. <view class="text">场次</view>
  41. <view class="">
  42. <view class="time-box" v-for="item in orderDetailInfo?.proInfoList" :key="item.id">
  43. <view class="time" v-if="item.type != 6">{{ item.useDateStr }} {{ item.frameTimeStr }} {{
  44. item.productName }}</view>
  45. <!-- <view class="status" v-if="orderPageInfo?.orderType == 1">已退款</view> -->
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="t-shoping-card"
  51. v-if="orderPageInfo?.orderType == 2 || orderPageInfo?.orderType == 5 || orderPageInfo?.orderType == 3 || orderPageInfo?.orderType == 4">
  52. <view class="venue-address" v-if="orderPageInfo?.orderType == 2">
  53. <view class="address">
  54. <zzx-icon name="venue-icon4" size="14"></zzx-icon>
  55. <view class="name">{{ orderDetailInfo?.siteName }}</view>
  56. <view class="venue-tags">{{ orderDetailInfo?.runStatus == 0 ? '营业中' : '休息中' }}</view>
  57. </view>
  58. <view class="check-all">
  59. <text>查看所有可用场馆</text>
  60. <zzx-icon name="ashRight" size="12"></zzx-icon>
  61. </view>
  62. </view>
  63. <view class="t-shoping-info">
  64. <image class="shoping-img"
  65. :src="orderDetailInfo?.appCourses?.cover || orderDetailInfo?.proInfoList[0].productImage" mode="">
  66. </image>
  67. <view class="shoping-info">
  68. <view class="name">{{ orderDetailInfo?.appCourses?.name ||
  69. orderDetailInfo?.proInfoList[0].productName
  70. }} &nbsp;<text style="font-weight: normal;color: #AAAAAA;font-size: 22rpx;">x{{
  71. orderDetailInfo?.proInfoList?.length }}</text></view>
  72. <!-- refundType:退款类型;0可退/到期自动退 1限时退 2不可退" -->
  73. <view class="shoping-refund" v-if="orderDetailInfo?.runType == 0">全天</view>
  74. <view class="shoping-refund"
  75. v-if="orderDetailInfo?.runType != null && orderDetailInfo?.runType != 0">
  76. {{ orderDetailInfo?.startTime }}-{{ orderDetailInfo?.endTime }}
  77. </view>
  78. <view class="shoping-refund" style="display: flex;align-items: center;"
  79. v-if="orderDetailInfo?.gameScheduleNum"
  80. @click="RouterUtils.to_page(`/pages/index/gamePlan/index?orderId=${orderDetailInfo?.id}`)">
  81. <text>{{ orderDetailInfo?.appGameScheduleVOList[0].name }}</text>
  82. <text>{{ orderDetailInfo?.gameScheduleNum }}场</text>
  83. <zzx-icon name="ashRight" size="10"></zzx-icon>
  84. </view>
  85. <view class="shoping-refund">
  86. <!-- 退款类型;0可退/到期自动退 1限时退 2不可退-->
  87. <text v-if="orderDetailInfo?.refundType == 0 || orderDetailInfo?.refundType == 1">随时退·过期退</text>
  88. <text v-if="orderDetailInfo?.refundType == 2">不支持退款</text>
  89. </view>
  90. <view class="shoping-price" @click="pricePopup.open()">
  91. <view class="price">¥{{ orderDetailInfo?.totalPrice.toFixed(2) }}</view>
  92. <view class="text">
  93. <text>实付</text>
  94. <text class="mini-text">¥</text>
  95. <text class="price-big">{{ orderDetailInfo?.price.toFixed(2) }}</text>
  96. <zzx-icon name="ashRight" size="10"></zzx-icon>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. <view class="t-shoping-address"
  102. @click="RouterUtils.to_page(`/pages/index/verificationRecord/index?orderId=${orderDetailInfo?.id}&proInfoList=${JSON.stringify(orderDetailInfo?.proInfoList)}`)"
  103. v-if="orderPageInfo?.orderType == 5">
  104. <view class="address">上课地点:{{ orderDetailInfo?.courseSiteAddress }}</view>
  105. <view class="course-time">
  106. <text>{{ orderDetailInfo?.appCourses?.classNum }}课时
  107. {{ DateUtils.formatDateToMMDD(orderDetailInfo?.appCourses?.startTime) + '-' +
  108. DateUtils.formatDateToMMDD(orderDetailInfo?.appCourses?.endTime) }}</text>
  109. <zzx-icon name="ashRight" size="10"></zzx-icon>
  110. </view>
  111. </view>
  112. <view class="t-invite" v-if="orderPageInfo?.orderType == 5">
  113. <button class="g-share-btn" open-type="share"></button>
  114. 邀请好友报名
  115. </view>
  116. <view class="t-shoping-address-eventInfo"
  117. v-if="countdownVisible && orderDetailInfo?.orderType == 3 || orderDetailInfo?.orderType == 4">
  118. <view class="time">{{ days }}</view>
  119. <view class="unit">天</view>
  120. <view class="time">{{ hours }}</view>
  121. <view class="unit">:</view>
  122. <view class="time">{{ minutes }}</view>
  123. <view class="unit">:</view>
  124. <view class="time">{{ seconds }}</view>
  125. <view class="">后比赛开始</view>
  126. </view>
  127. </view>
  128. <!-- 待使用展示 -->
  129. <view class="t-qrcode-card"
  130. v-if="orderPageInfo?.orderType == 0 || orderPageInfo?.orderType == 2 || orderPageInfo?.orderType == 5 || orderPageInfo?.orderType == 1 || orderPageInfo?.orderType == 3 || orderPageInfo?.orderType == 4 && orderDetailInfo?.orderStatus != 0">
  131. <block v-if="orderDetailInfo?.orSchoolCourse != 1 && hasPendingUsageItems && orderPageInfo?.orderType != 0">
  132. <view class="qrcode-box">
  133. <view class="item-qrcode">
  134. <uv-qrcode ref="qrcode" size="100px" :value="orderDetailInfo?.id"></uv-qrcode>
  135. </view>
  136. </view>
  137. <view class="download-qrcode" @click="download_qrcode">下载到手机</view>
  138. </block>
  139. <view v-if="orderDetailInfo?.orderType == 0 || orderDetailInfo?.orderType == 5"
  140. style="color: #222;font-size: 26rpx;">通过学校门口闸机时,通过人脸自动核验</view>
  141. <view class="t-todeused" v-for="(item, index) in orderDetailInfo?.proInfoList" :key="item.id">
  142. <view class="todeused">
  143. <view class="text">
  144. <text v-if="item.orderStatus == 0">待付款</text>
  145. <text v-if="item.orderStatus == 1">待使用</text>
  146. <text v-if="item.orderStatus == 2">已使用</text>
  147. <text v-if="item.orderStatus == 3">已到期</text>
  148. <text v-if="item.orderStatus == 4">已取消</text>
  149. <text v-if="item.orderStatus == 5">退款中</text>
  150. <text v-if="item.orderStatus == 6">已退款</text>
  151. </view>
  152. <view class="time">
  153. <!-- {{ orderDetailInfo?.appCourses?.endTime || orderDetailInfo?.endTime }} -->
  154. {{ item.expireTime }}
  155. 到期
  156. </view>
  157. </view>
  158. <!-- orderStatus:0-待付款 1-待使用 2-已使用 3-已到期 4-已取消 5-退款中 6已退款 -->
  159. <!-- type:0-学校 1-包场 2-无固定场 3-个人赛 4-团队赛 5-课程 6-保险 -->
  160. <view style="display: flex;align-items: center;justify-content: space-between;">
  161. <view class="order-num" @click="selectOrderInfo(item, index)">
  162. <text v-if="item.type != 6">{{ item.ticketNo }}&nbsp;&nbsp; {{ item.userName }}
  163. {{item.classGroupingName }} {{ item.coachName }}</text>
  164. <text v-if="!item.classGroupingName&& item.type ==5">暂未分班</text>
  165. <zzx-icon v-if="item.type != 6" name="ashRight" size="12"></zzx-icon>
  166. <!-- <text v-if="item.type != 6 && orderPageInfo?.orderType == 1">{{ item.expireTime }}到期</text> -->
  167. </view>
  168. <!-- &&item.type != 5 -->
  169. <view class="application-btn" @click="openRefund(item)"
  170. v-if="(item.type == 1 || item.type == 2) && (item.orderStatus == 1 && orderDetailInfo?.refundType != 2)">
  171. 申请退款</view>
  172. </view>
  173. </view>
  174. </view>
  175. <view class="t-address-card">
  176. <view class="address">
  177. <zzx-icon name="location"></zzx-icon>
  178. <view class="">{{ orderDetailInfo?.courseSiteAddress ||
  179. orderDetailInfo?.schoolAddress || orderDetailInfo?.gameAddress }}</view>
  180. </view>
  181. <view class="nav-info">
  182. <view class="nav" @click="open_map">
  183. <zzx-icon name="navigation" size="14"></zzx-icon>
  184. <view class="nav-text">导航</view>
  185. </view>
  186. <view class="phone" @click="open_phone" v-if="orderDetailInfo?.phone">
  187. <zzx-icon name="phone" size="14"></zzx-icon>
  188. <view class="">电话</view>
  189. </view>
  190. </view>
  191. </view>
  192. <view class="t-use-card" v-if="orderDetailInfo?.earlyRefundTime">
  193. <view class="use-tips">
  194. <view class="title">退改规则</view>
  195. <view class="text">
  196. 每场次开场前{{ orderDetailInfo?.earlyRefundTime }}分钟之前可随时退款,之后不可退款,如您有疑问,可联系场馆
  197. </view>
  198. </view>
  199. </view>
  200. <view class="t-use-card">
  201. <view class="use-tips">
  202. <view class="title">{{ orderPageInfo?.orderType == 1 ? '温馨提示' : '使用须知' }}</view>
  203. <view class="text">
  204. <rich-text :nodes="fixImgStyle(orderDetailInfo?.reminder)"></rich-text>
  205. </view>
  206. </view>
  207. </view>
  208. <view class="t-use-card" v-if="orderDetailInfo?.insureOrderInfoList">
  209. <view class="use-tips">
  210. <view class="title">参赛意外险</view>
  211. <view class="t-use-insureOrder">
  212. <view class="insureOrder-title">被保人</view>
  213. <view class="insureOrder-text" v-if="orderDetailInfo?.insureOrderInfoList">
  214. {{ orderDetailInfo?.insureOrderInfoList.length }}人(<text
  215. v-for="(name, index) in orderDetailInfo?.insureOrderInfoList" :key="name.id">{{
  216. name.familyUserName
  217. }}{{ index < orderDetailInfo?.insureOrderInfoList.length - 1 ? ',' : '' }}</text>)</view>
  218. </view>
  219. <view class="t-use-insureOrder">
  220. <view class="insureOrder-title">生效时间</view>
  221. <view class="insureOrder-text" v-if="orderDetailInfo?.insureOrderInfoList">
  222. {{ orderDetailInfo?.insureOrderInfoList[0].assertStartTime?.slice(0, 10) }}至{{
  223. orderDetailInfo?.insureOrderInfoList[0].assertEndTime?.slice(0, 10) }}
  224. </view>
  225. </view>
  226. <view class="t-use-insureOrder">
  227. <view class="insureOrder-title">保费总金额</view>
  228. <view class="insureOrder-text" v-if="orderDetailInfo?.insureOrderInfoList">¥{{
  229. orderDetailInfo?.insureOrderInfoList.length * orderDetailInfo?.insureOrderInfoList[0].money }}
  230. </view>
  231. </view>
  232. </view>
  233. </view>
  234. <view class="t-use-card"
  235. v-if="orderPageInfo?.orderType == 5 && queryWaitSignList?.length > 0 && orderDetailInfo?.orderStatus != 0">
  236. <view class="use-tips t-contract-list">
  237. <view class="title">电子合同</view>
  238. <view class="text contract-list">
  239. <view class="item-no-sign">
  240. <view class="sign-title">未签署:</view>
  241. <view class="sign-names-container">
  242. <view class="sign-name" v-for="item in notSignList" :key="item.id" @click="checkSign(item)">
  243. {{ item.fullName }}
  244. </view>
  245. </view>
  246. </view>
  247. <view class="item-sign">
  248. <view class="sign-title">已签署:</view>
  249. <view class="sign-names-container">
  250. <view class="sign-name" v-for="item in signList" :key="item.id" @click="checkSign(item)">
  251. {{ item.fullName }}
  252. </view>
  253. </view>
  254. </view>
  255. </view>
  256. </view>
  257. <!-- <view class="check-all" @click="goToContract">
  258. <text>查看详情</text>
  259. <zzx-icon name="ashRight" size="12"></zzx-icon>
  260. </view> -->
  261. </view>
  262. <view class="t-order-info-card">
  263. <view class="title">订单信息</view>
  264. <view class="info-list">
  265. <view class="item-left">实际付款</view>
  266. <view class="item-right">¥{{ orderDetailInfo?.price }}</view>
  267. </view>
  268. <view class="info-list">
  269. <view class="item-left">手机号码</view>
  270. <view class="item-right">{{ orderDetailInfo?.phoneNumber || orderDetailInfo?.phone }}</view>
  271. </view>
  272. <view class="info-list">
  273. <view class="item-left">订单编号</view>
  274. <view class="item-right">{{ orderDetailInfo?.orderCode }}</view>
  275. </view>
  276. <view class="info-list">
  277. <view class="item-left">下单时间</view>
  278. <view class="item-right">{{ orderDetailInfo?.createTime }}</view>
  279. </view>
  280. <view class="info-list">
  281. <view class="item-left">付款时间</view>
  282. <view class="item-right">{{ orderDetailInfo?.payTime || '--' }}</view>
  283. </view>
  284. </view>
  285. <!-- 团队赛 -->
  286. <view class="t-team-card" v-if="orderDetailInfo?.gameCertification">
  287. <view class="t-team-card-title">
  288. <view class="title">队名</view>
  289. <view class="team-name">{{ gameCertificationList?.teamName }}</view>
  290. </view>
  291. <view class="t-taem-card-info">
  292. <view class="item-info">队徽</view>
  293. <view class="item-img">
  294. <image
  295. @click="_previewImage([gameCertificationList?.teamEmblemImg], gameCertificationList?.teamEmblemImg)"
  296. :src="gameCertificationList?.teamEmblemImg" mode="scaleToFill" />
  297. </view>
  298. </view>
  299. <view class="t-taem-card-info" v-for="(item, index) in gameCertificationList?.certificationDTOS"
  300. :key="index">
  301. <view class="item-info">{{ item.name }}</view>
  302. <view class="item-img">
  303. <image v-for="(img, imgIndex) in item.certificationImg.split(',')" :key="imgIndex"
  304. @click="_previewImage(item.certificationImg.split(','), img)" :src="img" mode="scaleToFill" />
  305. </view>
  306. </view>
  307. </view>
  308. <view class="t-morefeatures-card" v-if="orderPageInfo?.orderType == 3 || orderPageInfo?.orderType == 4">
  309. <view class="morefeatures-title">更多功能</view>
  310. <view class="morefeatures-btn"
  311. @click="RouterUtils.to_page(`/pages/index/gameResult/index?orderId=${orderDetailInfo?.id}`)">查看成绩</view>
  312. </view>
  313. <!-- 已使用展示 -->
  314. <view class="appraise-btn"
  315. v-if="orderPageInfo?.orderType != 3 && orderDetailInfo?.orderStatus == '已使用' && orderDetailInfo?.orEvaluate == 0 && orderDetailInfo?.type != 3 && orderDetailInfo?.type != 4"
  316. @click="RouterUtils.to_page(`/pages/index/writeComments/index?siteId=${orderDetailInfo?.addressSiteId}&orderId=${orderDetailInfo?.id}&siteName=${orderDetailInfo?.siteName}`)">
  317. 写评价
  318. </view>
  319. </view>
  320. <zs-loading v-else></zs-loading>
  321. <!-- 价格详情弹窗 -->
  322. <uni-popup ref="pricePopup" :safe-area="false" type="bottom">
  323. <view class="price-detail" v-if="orderDetailInfo">
  324. <view class="price-title">价格明细</view>
  325. <view class="price-list">
  326. <view class="price-total">
  327. <view class="text">商品总价(共2件)</view>
  328. <view class="price">¥{{ orderDetailInfo?.totalPrice }}</view>
  329. </view>
  330. <view class="price-total">
  331. <view class="text">团购优惠</view>
  332. <view class="price">-¥{{ orderDetailInfo?.tdiscounts || '0' }}</view>
  333. </view>
  334. <view class="price-total">
  335. <view class="text">实付金额</view>
  336. <view class="price">¥{{ orderDetailInfo?.price }}</view>
  337. </view>
  338. </view>
  339. </view>
  340. </uni-popup>
  341. <!-- 退款 -->
  342. <uni-popup ref="refundPopup" :safe-area="false" type="bottom">
  343. <view class="refund-detail">
  344. <view class="refund-title">申请退款</view>
  345. <view class="refund-text">{{ refundInfo?.productName }}</view>
  346. <view class="refund-num-card">
  347. <!-- <view class="refund-number">
  348. <view class="text">退款数量<text style="color: #AAAAAA ;">(上限{{refundNumber?.length}}张)</text></view>
  349. <view class="price-stepper">
  350. <view class="minus" @click="refundMinus">-</view>
  351. <input type="number" style="text-align: center;" v-model="refundCountTotal" />
  352. <view class="add" @click="refundAdd">+</view>
  353. </view>
  354. </view> -->
  355. <!-- 包场 -->
  356. <!-- <view class="c-scheduled-card">
  357. <view class="title">退款信息</view>
  358. <view class="schedule-address">
  359. <view class="text">场馆</view>
  360. <view class="name">{{ refundInfo?.address }}</view>
  361. </view>
  362. </view> -->
  363. <view class="refund-price">
  364. <view class="p-text">退款金额<text style="color: #AAAAAA ;">(实付金额)</text></view>
  365. <view class="p-price">¥{{ refundInfo?.price }}</view>
  366. </view>
  367. <view class="refund-account">
  368. <view class="a-text">退款账户</view>
  369. <view class="a-account">原支付账户</view>
  370. </view>
  371. <view class="refund-tips"><text style="color: #FB5B5B;">1-3个工作日</text>内到账</view>
  372. </view>
  373. <view class="refund-cause-card">
  374. <view class="c-title">退款原因<text style="color: #AAAAAA ;">(必选)</text></view>
  375. <view class="c-cause-list">
  376. <view class="cause-list" v-for="item in refundList" :key="item.id" @click="selectRefundType(item)">
  377. <view class="cause">{{ item.name }}</view>
  378. <zzx-icon :name="isSelectType == item.id ? 'selected' : 'unchecked'" size="14"></zzx-icon>
  379. </view>
  380. </view>
  381. </view>
  382. <view class="refund-tips">
  383. <view class="tips-icon">!</view>
  384. <view class="tips-text">退款申请一经提交,不可取消</view>
  385. </view>
  386. <view style="height: 130rpx;"></view>
  387. <view class="refund-btn-box">
  388. <view class="refund-btn" @click="refund_btn">申请退款</view>
  389. </view>
  390. </view>
  391. </uni-popup>
  392. </template>
  393. <script lang="ts" setup>
  394. import { ref, onMounted, computed } from 'vue';
  395. import { TipsUtils, RouterUtils, DateUtils, _previewImage, fixImgStyle } from '@/utils/util'
  396. import { onLoad, onShow, onShareAppMessage, onUnload } from '@dcloudio/uni-app';
  397. import { http } from '@/utils/http'
  398. import zsLoading from '@/components/zzx-loading/zzx-loading.vue'
  399. const qrcode = ref();
  400. const pricePopup = ref(); //价格
  401. const refundPopup = ref(); //退款
  402. const selected = ref(false);
  403. const orderPageInfo = ref();
  404. const refundList = ref([{
  405. id: 1,
  406. name: '价格不划算'
  407. }, {
  408. id: 2,
  409. name: '场地无法提供使用'
  410. }, {
  411. id: 3,
  412. name: '不需要了'
  413. }, {
  414. id: 4,
  415. name: '重新购买'
  416. }, {
  417. id: 5,
  418. name: '场馆要求改用其他方式/平台付款'
  419. }, {
  420. id: 6,
  421. name: '其他原因'
  422. }])
  423. onLoad((option) => {
  424. orderPageInfo.value = option
  425. console.log(option, '路由参数');
  426. })
  427. onShow(() => {
  428. getOrderDetailInfo()
  429. })
  430. onUnload(() => {
  431. console.log('点击了返回按钮');
  432. if (orderPageInfo.value.isPayOrder != 1) {
  433. uni.switchTab({
  434. url: '/pages/index/index'
  435. });
  436. return true;
  437. }
  438. });
  439. onShareAppMessage((res) => {
  440. if (res.from === 'button') {// 来自页面内分享按钮
  441. console.log(res.target)
  442. }
  443. return {
  444. title: `邀请您报名《${orderDetailInfo?.value.appCourses?.name}》`,
  445. path: `/pages/index/courseDetail/index?id=${orderDetailInfo?.value.appCourses?.id}`,
  446. imageUrl: orderDetailInfo?.value.appCourses?.cover,
  447. }
  448. })
  449. onMounted(() => {
  450. })
  451. // 子订单状态映射
  452. const statusMap = {
  453. 0: '待付款',
  454. 1: '待使用',
  455. 2: '已使用',
  456. 3: '已到期',
  457. 4: '已取消',
  458. 5: '退款中'
  459. }
  460. // 判断是否有待使用的项目
  461. const hasPendingUsageItems = computed(() => {
  462. if (!orderDetailInfo.value?.proInfoList || !Array.isArray(orderDetailInfo.value.proInfoList)) {
  463. return false;
  464. }
  465. // 检查是否有任意一项的orderStatus为1(待使用)
  466. return orderDetailInfo.value.proInfoList.some(item => item.orderStatus === 1);
  467. });
  468. // 获取状态文本的函数
  469. const getStatusText = (status: number): string => {
  470. return statusMap[status as keyof typeof statusMap] || ''
  471. }
  472. // ===========发起退款start===========
  473. const refundInfo = ref()
  474. const refundCountTotal = ref(0);
  475. const refundNumber = ref([])
  476. const openRefund = (e) => {
  477. refundNumber.value = orderDetailInfo?.value.proInfoList.filter(item => item.orderStatus == 1)
  478. refundInfo.value = e
  479. refundCountTotal.value = 0
  480. refundFromData.value.orderProInfoIds = e.id
  481. refundPopup?.value.open()
  482. }
  483. const refundMinus = () => {
  484. if (refundCountTotal.value > 0) {
  485. refundCountTotal.value--
  486. }
  487. }
  488. const refundAdd = () => {
  489. if (refundCountTotal.value > (refundNumber.value.length - 1)) return TipsUtils.tips_toast('已达可退款上限')
  490. refundCountTotal.value++
  491. }
  492. const isSelectType = ref()
  493. const selectRefundType = (item) => {
  494. refundFromData.value.reason = item.name
  495. isSelectType.value = item.id
  496. }
  497. // 确定退款
  498. const refundFromData = ref({
  499. orderCode: '',
  500. orderProInfoIds: '',
  501. reason: '',
  502. type:1
  503. })
  504. const refund_btn = async () => {
  505. if (refundFromData.value.reason == '') {
  506. return TipsUtils.tips_toast('请选择退款原因')
  507. }
  508. refundFromData.value.orderCode = orderDetailInfo?.value.orderCode
  509. let res: any = await TipsUtils.tips_alert('确定要申请退款吗?', true)
  510. if (res.confirm) {
  511. http.post('/order/refundOrder', refundFromData.value, { loading: true }).then((res) => {
  512. TipsUtils.tips_toast(res.result.message)
  513. RouterUtils.to_page(`/pages/index/refundDetail/index?orderId=${orderDetailInfo?.value.id}&orderProInfoId=${refundFromData.value.orderProInfoIds}`)
  514. refundPopup?.value.close()
  515. })
  516. }
  517. }
  518. // ===========发起退款end===========
  519. // 查看子订单状态
  520. // <!-- orderStatus:0-待付款 1-待使用 2-已使用 3-已到期 4-已取消 5-退款中 6已退款 -->
  521. const selectOrderInfo = (e: any, i: number) => {
  522. if (e.orderStatus == 5 || e.orderStatus == 6) {
  523. RouterUtils.to_page(`/pages/index/refundDetail/index?orderId=${orderDetailInfo?.value.id}&orderProInfoId=${e.id}`)
  524. } else {
  525. RouterUtils.to_page(`/pages/index/tryUseRecord/index?ticketNo=${e.ticketNo}&proInfoList=${JSON.stringify(orderDetailInfo?.value.proInfoList)}&selectValue=${i}`)
  526. }
  527. }
  528. const download_qrcode = () => { //下载二维码,增加授权判断
  529. // #ifdef MP-WEIXIN
  530. uni.authorize({
  531. scope: 'scope.writePhotosAlbum',
  532. success() {
  533. uni.showLoading()
  534. qrcode.value.save({
  535. success: (res: any) => {
  536. uni.hideLoading()
  537. TipsUtils.tips_toast('下载成功')
  538. },
  539. fail: (err: any) => {
  540. console.log(err, '下载失败');
  541. uni.hideLoading()
  542. }
  543. });
  544. },
  545. fail() {
  546. uni.showModal({
  547. title: '提示',
  548. content: '需要授权保存到相册,是否去设置?',
  549. success: (res: any) => {
  550. if (res.confirm) {
  551. uni.openSetting();
  552. }
  553. }
  554. });
  555. }
  556. });
  557. // #endif
  558. // #ifndef MP-WEIXIN
  559. uni.showLoading()
  560. qrcode.value.save({
  561. success: (res: any) => {
  562. uni.hideLoading()
  563. TipsUtils.tips_toast('下载成功')
  564. },
  565. fail: (err: any) => {
  566. console.log(err);
  567. uni.hideLoading()
  568. }
  569. });
  570. // #endif
  571. }
  572. const submitBooking = () => {
  573. uni.makePhoneCall({
  574. phoneNumber: orderDetailInfo.value.phone
  575. });
  576. }
  577. // 打开地图
  578. const open_map = () => {
  579. uni.openLocation({
  580. latitude: orderDetailInfo.value.latitude,
  581. longitude: orderDetailInfo.value.longitude,
  582. name: orderDetailInfo.value.siteName || orderDetailInfo.value.schoolAddress,
  583. address: orderDetailInfo.value.courseSiteAddress,
  584. success: function () {
  585. console.log('success');
  586. }
  587. });
  588. }
  589. // 拨打电话
  590. const open_phone = () => {
  591. uni.makePhoneCall({
  592. phoneNumber: orderDetailInfo.value.phone
  593. });
  594. }
  595. // 订单状态 0-待付款 1-待使用 2-已使用 3-已到期 4-已取消 5-退款中 6已退款
  596. const orderDetailInfo = ref()
  597. const loading = ref(true)
  598. const gameCertificationList = ref({})
  599. const downTime = ref(null)
  600. const createTime = ref(null)
  601. const getOrderDetailInfo = (() => {
  602. http.get('/order/queryOrderInfo', { data: { orderId: orderPageInfo.value.orderId }, loading: true }).then((res) => {
  603. if (res.result.orderStatus == 0) {
  604. createTime.value = new Date(res.result.createTime);
  605. downTimeFun(); // 在获取到待付款订单信息时启动倒计时
  606. }
  607. switch (res.result.orderStatus) {
  608. case 0:
  609. res.result.orderStatus = '待付款'
  610. break;
  611. case 1:
  612. res.result.orderStatus = '待使用'
  613. break;
  614. case 2:
  615. res.result.orderStatus = '已使用'
  616. break;
  617. case 3:
  618. res.result.orderStatus = '已到期'
  619. break;
  620. case 4:
  621. res.result.orderStatus = '已取消'
  622. break;
  623. case 5:
  624. res.result.orderStatus = '退款中'
  625. break;
  626. case 6:
  627. res.result.orderStatus = '已退款'
  628. default:
  629. break;
  630. }
  631. orderDetailInfo.value = res.result
  632. gameCertificationList.value = JSON.parse(res.result.gameCertification || '{}')
  633. loading.value = false
  634. getQueryWaitSignList(res.result.id)
  635. // 初始化倒计时(如果订单类型是比赛相关)
  636. if ((res.result.orderType == 3 || res.result.orderType == 4) && res.result.appGameScheduleVOList?.length > 0) {
  637. const gameStartTime = res.result.gameStartTime;
  638. if (gameStartTime) {
  639. startCountdown(gameStartTime);
  640. }
  641. }
  642. })
  643. })
  644. // 倒计时
  645. let callCount = 0;
  646. const downTimeFun = () => {
  647. const endTime = new Date(createTime.value.getTime() + 15 * 60 * 1000);
  648. const remainingTime = endTime - new Date();
  649. if (remainingTime > 0) {
  650. const minutes = Math.floor(remainingTime / (1000 * 60));
  651. const seconds = Math.floor((remainingTime % (1000 * 60)) / 1000);
  652. downTime.value = `${minutes.toString().padStart(2, '0')}分${seconds.toString().padStart(2, '0')}秒`;
  653. const timer = setInterval(() => {
  654. const now = new Date();
  655. const newRemainingTime = endTime - now;
  656. if (newRemainingTime <= 0) {
  657. clearInterval(timer);
  658. downTime.value = "00:00";
  659. if (callCount < 3) {
  660. callCount++;
  661. getOrderDetailInfo();
  662. }
  663. return;
  664. }
  665. const newMinutes = Math.floor(newRemainingTime / (1000 * 60));
  666. const newSeconds = Math.floor((newRemainingTime % (1000 * 60)) / 1000);
  667. downTime.value = `${newMinutes.toString().padStart(2, '0')}分${newSeconds.toString().padStart(2, '0')}秒`;
  668. }, 1000);
  669. } else {
  670. if (callCount < 3) {
  671. callCount++;
  672. setTimeout(() => {
  673. getOrderDetailInfo();
  674. }, 500)
  675. }
  676. downTime.value = "00:00";
  677. }
  678. }
  679. // ==================赛事倒计时start==================
  680. // 添加倒计时相关响应式数据
  681. const countdownVisible = ref(false);
  682. const days = ref('00');
  683. const hours = ref('00');
  684. const minutes = ref('00');
  685. const seconds = ref('00');
  686. let countdownTimer: any = null;
  687. // 添加倒计时函数
  688. const startCountdown = (startTime: string) => {
  689. const startDate = new Date(startTime);
  690. startDate.setHours(0, 0, 0, 0);
  691. const now = new Date();
  692. let timeDifference = startDate.getTime() - now.getTime();
  693. if (timeDifference <= 0) {
  694. countdownVisible.value = false;
  695. return;
  696. }
  697. countdownVisible.value = true;
  698. // 清除之前的定时器
  699. if (countdownTimer) {
  700. clearInterval(countdownTimer);
  701. }
  702. // 立即更新一次显示
  703. updateCountdown(timeDifference);
  704. countdownTimer = setInterval(() => {
  705. timeDifference = startDate.getTime() - new Date().getTime();
  706. if (timeDifference <= 0) {
  707. clearInterval(countdownTimer);
  708. countdownVisible.value = false;
  709. return;
  710. }
  711. updateCountdown(timeDifference);
  712. }, 1000);
  713. };
  714. // ==================赛事倒计时end==================
  715. // 更新倒计时显示
  716. const updateCountdown = (timeDifference: number) => {
  717. // 计算天、小时、分钟、秒
  718. const totalSeconds = Math.floor(timeDifference / 1000);
  719. const totalMinutes = Math.floor(totalSeconds / 60);
  720. const totalHours = Math.floor(totalMinutes / 60);
  721. const totalDays = Math.floor(totalHours / 24);
  722. days.value = totalDays.toString().padStart(2, '0');
  723. hours.value = (totalHours % 24).toString().padStart(2, '0');
  724. minutes.value = (totalMinutes % 60).toString().padStart(2, '0');
  725. seconds.value = (totalSeconds % 60).toString().padStart(2, '0');
  726. };
  727. // ==================提交支付start==================
  728. const orderCode = ref()
  729. const orderId = ref()
  730. const submitPay = (e: any) => {
  731. http.put(`/order/payOrder?appOrderId=${e}`, {}, { loading: true }).then((res) => {
  732. orderCode.value = res.result.orderCode
  733. orderId.value = res.result.orderId
  734. paymentOrder(res.result.params)
  735. })
  736. }
  737. const paymentOrder = (payInfo: object) => {
  738. // getOrderQuery(orderCode.value, orderId.value)
  739. console.log(payInfo, '支付参数');
  740. uni.requestPayment({
  741. provider: 'wxpay',
  742. ...payInfo,
  743. success: function (res) {
  744. console.log('支付成功', res);
  745. setTimeout(() => {
  746. getOrderQuery(orderCode.value, orderId.value)
  747. }, 500)
  748. },
  749. fail: function (err) {
  750. console.log('支付失败', err);
  751. // TipsUtils.tips_toast('支付失败,请稍后重试');
  752. }
  753. });
  754. }
  755. const getOrderQuery = (orderCode: string, orderId: string, retryCount = 0) => {
  756. http.get('/order/orderQuery', { data: { orderCode: orderCode }, loading: true }).then((res) => {
  757. if (res.result == '100001') {
  758. TipsUtils.tips_toast('支付成功');
  759. getOrderDetailInfo()
  760. } else if (retryCount <= 3) {
  761. setTimeout(() => {
  762. getOrderQuery(orderCode, orderId, retryCount + 1)
  763. }, 1000)
  764. } else {
  765. if (res.result == '100003') {
  766. console.log('查询中,但已达到最大查询次数')
  767. } else if (res.result == '100002') {
  768. console.log('查询失败')
  769. } else if (res.result == '100004') {
  770. console.log('支付失败')
  771. TipsUtils.tips_toast('支付失败')
  772. }
  773. }
  774. }).catch((error) => {
  775. console.error('查询订单失败:', error)
  776. if (retryCount < 2) {
  777. setTimeout(() => {
  778. getOrderQuery(orderCode, orderId, retryCount + 1)
  779. }, 1000)
  780. }
  781. })
  782. }
  783. // ==================提交支付end==================
  784. // 取消订单
  785. const cancelOrder = async (e: any) => {
  786. let res: any = await TipsUtils.tips_alert('确定取消订单吗?', true)
  787. if (res.confirm) {
  788. http.put(`/order/cancelOrder?orderId=${e}`, {}, { loading: true }).then((res: any) => {
  789. TipsUtils.tips_toast('订单已取消')
  790. getOrderDetailInfo()
  791. })
  792. }
  793. }
  794. const queryWaitSignList = ref([]) // 合同信息
  795. const notSignList = ref([]) // 未签署
  796. const signList = ref([]) // 已签署
  797. const getQueryWaitSignList = (orderId: string) => {
  798. http.get('/esign/queryWaitSignList', { data: { orderId: orderId }, loading: true }).then((res) => {
  799. notSignList.value = res.result.filter((item: any) => item.isSign == 0)
  800. signList.value = res.result.filter((item: any) => item.isSign == 1)
  801. queryWaitSignList.value = res.result
  802. })
  803. }
  804. // 签署未完成
  805. const checkSign = (e: any) => {
  806. get_UserIdentityInfo(e.familyId)
  807. }
  808. // 已签署
  809. const checkItemSign = (item: any) => {
  810. console.log(item);
  811. http.get('/esign/fileDownloadUrl', { data: { signFlowId: item.signFlowId }, loading: true }).then((res) => {
  812. uni.downloadFile({
  813. url: res.result[0].downloadUrl,
  814. timeout: 30000,
  815. success: function (res) {
  816. if (res.statusCode === 200) {
  817. uni.openDocument({
  818. filePath: res.tempFilePath,
  819. fileType: 'pdf',
  820. showMenu: true,
  821. success: function (res) {
  822. console.log('打开文档成功');
  823. },
  824. fail: function (err) {
  825. console.log('打开文档失败', err);
  826. uni.saveFile({
  827. tempFilePath: res.tempFilePath,
  828. success: function (saveRes) {
  829. console.log('文件保存成功', saveRes.savedFilePath);
  830. }
  831. });
  832. }
  833. });
  834. } else {
  835. console.error('下载失败,状态码:', res.statusCode);
  836. }
  837. },
  838. fail: function (err) {
  839. console.error('下载失败', err);
  840. }
  841. });
  842. });
  843. }
  844. // 查询授权
  845. const get_UserIdentityInfo = (familyId: string) => {
  846. http.get('/esign/getUserIdentityInfo', { data: { familyId: familyId }, loading: true }).then((res) => {
  847. if (res.result) {
  848. get_createSign(familyId)
  849. } else {
  850. getAuthUrl(familyId)
  851. }
  852. })
  853. }
  854. // 发起签署
  855. const get_createSign = (familyId: string) => {
  856. http.get('/esign/createSign', { data: { orderCode: orderDetailInfo.value.orderCode, familyId: familyId }, loading: true }).then((res) => {
  857. getSignUrl(res.result)
  858. })
  859. }
  860. // 未授权跳转链接
  861. const getAuthUrl = (familyId: string) => {
  862. http.get('/esign/getAuthUrl', { data: { familyId: familyId }, loading: true }).then((res) => {
  863. RouterUtils.to_page(`/pages/index/signWebview/index?url=${res.result}`)
  864. })
  865. }
  866. // 获取签署链接
  867. const getSignUrl = (signFlowId: string) => {
  868. http.get('/esign/getSignUrl', { data: { signFlowId: signFlowId }, loading: true }).then((res) => {
  869. RouterUtils.to_page(`/pages/index/signWebview/index?url=${res.result}`)
  870. })
  871. }
  872. </script>
  873. <style lang="less" scoped>
  874. .t-order-timer {
  875. margin-top: 20rpx;
  876. .timer-text {
  877. font-weight: bold;
  878. font-size: 36rpx;
  879. color: #222222;
  880. }
  881. .timer-btn {
  882. display: flex;
  883. align-items: center;
  884. gap: 20rpx;
  885. margin-top: 20rpx;
  886. .cancel-btn {
  887. width: 226rpx;
  888. height: 68rpx;
  889. background: #E6E6E6;
  890. border-radius: 60rpx;
  891. font-weight: bold;
  892. font-size: 28rpx;
  893. color: #AAAAAA;
  894. text-align: center;
  895. line-height: 68rpx;
  896. }
  897. .pay-btn {
  898. width: 440rpx;
  899. height: 68rpx;
  900. background: #C8FF0C;
  901. border-radius: 60rpx;
  902. font-weight: bold;
  903. font-size: 28rpx;
  904. color: #222222;
  905. text-align: center;
  906. line-height: 68rpx;
  907. }
  908. }
  909. }
  910. .t-header {
  911. margin-top: 20rpx;
  912. .title {
  913. font-weight: bold;
  914. font-size: 36rpx;
  915. color: #222222;
  916. }
  917. .time {
  918. margin-top: 20rpx;
  919. font-size: 24rpx;
  920. color: #AAAAAA;
  921. &>text {
  922. font-size: 28rpx;
  923. color: #222222;
  924. }
  925. }
  926. }
  927. .t-booking-card {
  928. display: flex;
  929. align-items: center;
  930. justify-content: space-between;
  931. background: #FFFFFF;
  932. border-radius: 32rpx;
  933. padding: 20rpx;
  934. margin-top: 20rpx;
  935. .booking-text {
  936. .b-title {
  937. font-weight: bold;
  938. font-size: 32rpx;
  939. color: #222222;
  940. }
  941. .b-text {
  942. margin-top: 20rpx;
  943. font-size: 28rpx;
  944. color: #AAAAAA;
  945. }
  946. }
  947. .booking-btn {
  948. width: 152rpx;
  949. height: 48rpx;
  950. background: #C8FF0C;
  951. border-radius: 8rpx;
  952. font-weight: bold;
  953. font-size: 28rpx;
  954. color: #222222;
  955. text-align: center;
  956. line-height: 48rpx;
  957. }
  958. }
  959. .c-scheduled-card {
  960. margin-top: 20rpx;
  961. padding: 20rpx;
  962. background: #FFFFFF;
  963. border-radius: 32rpx;
  964. .title {
  965. font-weight: bold;
  966. font-size: 28rpx;
  967. color: #222222;
  968. }
  969. .schedule-address {
  970. display: flex;
  971. gap: 20rpx;
  972. margin-top: 20rpx;
  973. .text {
  974. font-size: 24rpx;
  975. color: #AAAAAA;
  976. }
  977. .name {
  978. font-weight: bold;
  979. font-size: 24rpx;
  980. color: #222222;
  981. }
  982. .time-box {
  983. height: 60rpx;
  984. display: flex;
  985. align-items: center;
  986. gap: 10rpx;
  987. .time {
  988. font-weight: bold;
  989. font-size: 24rpx;
  990. color: #222222;
  991. margin-bottom: 20rpx;
  992. }
  993. .status {
  994. margin-bottom: 20rpx;
  995. width: 112rpx;
  996. height: 40rpx;
  997. background: #F6F6F6;
  998. border-radius: 8rpx;
  999. font-size: 24rpx;
  1000. color: #AAAAAA;
  1001. text-align: center;
  1002. line-height: 40rpx;
  1003. }
  1004. }
  1005. }
  1006. }
  1007. .t-shoping-card {
  1008. margin-top: 20rpx;
  1009. padding: 20rpx;
  1010. background: #FFFFFF;
  1011. border-radius: 32rpx;
  1012. .venue-address {
  1013. display: flex;
  1014. align-items: center;
  1015. justify-content: space-between;
  1016. border-bottom: 1rpx solid #F0F0F0;
  1017. padding-bottom: 20rpx;
  1018. .address {
  1019. display: flex;
  1020. align-items: center;
  1021. gap: 4rpx;
  1022. .name {
  1023. font-weight: 800;
  1024. font-size: 32rpx;
  1025. color: #222222;
  1026. }
  1027. .venue-tags {
  1028. width: 98rpx;
  1029. height: 32rpx;
  1030. background: rgba(77, 217, 81, 0.2);
  1031. border-radius: 8rpx;
  1032. font-size: 22rpx;
  1033. color: #4DD951;
  1034. text-align: center;
  1035. line-height: 32rpx;
  1036. }
  1037. }
  1038. .check-all {
  1039. font-size: 24rpx;
  1040. color: #AAAAAA;
  1041. display: flex;
  1042. align-items: center;
  1043. gap: 8rpx;
  1044. width: 280rpx;
  1045. &>text {
  1046. margin-bottom: 10rpx;
  1047. }
  1048. }
  1049. }
  1050. .t-shoping-info {
  1051. display: flex;
  1052. align-items: center;
  1053. gap: 20rpx;
  1054. margin-top: 4rpx;
  1055. .shoping-img {
  1056. width: 200rpx;
  1057. height: 200rpx;
  1058. border-radius: 32rpx;
  1059. }
  1060. .shoping-info {
  1061. width: 450rpx;
  1062. .name {
  1063. font-weight: 800;
  1064. font-size: 32rpx;
  1065. color: #222222;
  1066. }
  1067. .shoping-refund {
  1068. margin-top: 10rpx;
  1069. font-size: 24rpx;
  1070. color: #AAAAAA;
  1071. }
  1072. .shoping-price {
  1073. display: flex;
  1074. align-items: center;
  1075. justify-content: space-between;
  1076. .price {
  1077. font-weight: 600;
  1078. font-size: 30rpx;
  1079. color: #FB5B5B;
  1080. }
  1081. .text {
  1082. &>text:first-child {
  1083. font-size: 28rpx;
  1084. color: #222222;
  1085. }
  1086. .price-big {
  1087. font-weight: 600;
  1088. font-size: 30rpx;
  1089. color: #FB5B5B;
  1090. }
  1091. }
  1092. }
  1093. }
  1094. }
  1095. .t-shoping-address {
  1096. margin-top: 20rpx;
  1097. font-size: 24rpx;
  1098. color: #AAAAAA;
  1099. .address {
  1100. border-top: 1rpx solid #F0F0F0;
  1101. height: 56rpx;
  1102. line-height: 60rpx;
  1103. }
  1104. .course-time {
  1105. border-bottom: 1rpx solid #F0F0F0;
  1106. height: 58rpx;
  1107. line-height: 60rpx;
  1108. display: flex;
  1109. align-items: center;
  1110. gap: 10rpx;
  1111. }
  1112. }
  1113. .t-shoping-address-eventInfo {
  1114. margin-top: 20rpx;
  1115. display: flex;
  1116. align-items: center;
  1117. justify-content: center;
  1118. gap: 8rpx;
  1119. font-weight: bold;
  1120. font-size: 28rpx;
  1121. color: #222222;
  1122. border-top: 1rpx solid #F0F0F0;
  1123. height: 80rpx;
  1124. .time {
  1125. width: 60rpx;
  1126. height: 60rpx;
  1127. background: rgba(200, 255, 12, 0.5);
  1128. border-radius: 16rpx;
  1129. text-align: center;
  1130. line-height: 60rpx;
  1131. }
  1132. }
  1133. .t-invite {
  1134. margin-top: 24rpx;
  1135. font-size: 28rpx;
  1136. color: #FDD143;
  1137. text-align: center;
  1138. position: relative;
  1139. .g-share-btn {
  1140. position: absolute;
  1141. top: -10rpx;
  1142. width: 600rpx;
  1143. height: 60rpx;
  1144. opacity: 0;
  1145. }
  1146. }
  1147. }
  1148. .t-qrcode-card {
  1149. margin-top: 20rpx;
  1150. padding: 20rpx;
  1151. background: #FFFFFF;
  1152. border-radius: 32rpx;
  1153. .qrcode-box {
  1154. height: 200rpx;
  1155. position: relative;
  1156. .item-qrcode {
  1157. position: absolute;
  1158. margin-left: 35%;
  1159. width: 200rpx;
  1160. height: 200rpx;
  1161. border-radius: 16rpx;
  1162. }
  1163. }
  1164. .download-qrcode {
  1165. margin: auto;
  1166. margin-top: 24rpx;
  1167. width: 226rpx;
  1168. height: 68rpx;
  1169. background: #C8FF0C;
  1170. border-radius: 60rpx;
  1171. font-weight: bold;
  1172. font-size: 28rpx;
  1173. color: #222222;
  1174. text-align: center;
  1175. line-height: 68rpx;
  1176. }
  1177. .t-todeused {
  1178. margin-top: 20rpx;
  1179. .todeused {
  1180. display: flex;
  1181. align-items: center;
  1182. justify-content: space-between;
  1183. .item-todeused {
  1184. display: flex;
  1185. align-items: center;
  1186. gap: 20rpx;
  1187. }
  1188. .text {
  1189. font-size: 28rpx;
  1190. color: #222222;
  1191. }
  1192. .time {
  1193. font-size: 28rpx;
  1194. color: #AAAAAA;
  1195. }
  1196. }
  1197. .order-num {
  1198. margin-top: 20rpx;
  1199. font-size: 28rpx;
  1200. color: #AAAAAA;
  1201. display: flex;
  1202. align-items: center;
  1203. gap: 8rpx;
  1204. &>text {
  1205. margin-bottom: 8rpx;
  1206. }
  1207. .t-use-status {
  1208. width: 100rpx;
  1209. height: 40rpx;
  1210. background: #C8FF0C;
  1211. border-radius: 8rpx;
  1212. font-size: 24rpx;
  1213. color: #222222;
  1214. text-align: center;
  1215. line-height: 40rpx;
  1216. }
  1217. }
  1218. .application-btn {
  1219. width: 152rpx;
  1220. height: 44rpx;
  1221. background: #C8FF0C;
  1222. border-radius: 8rpx;
  1223. font-size: 24rpx;
  1224. color: #222222;
  1225. text-align: center;
  1226. line-height: 44rpx;
  1227. }
  1228. }
  1229. }
  1230. .t-scheduled-card {
  1231. margin-top: 20rpx;
  1232. padding: 20rpx;
  1233. background: #FFFFFF;
  1234. border-radius: 32rpx;
  1235. .s-title {
  1236. font-weight: bold;
  1237. font-size: 28rpx;
  1238. color: #222222;
  1239. }
  1240. .t-scheduled-list {
  1241. .item-list {
  1242. display: flex;
  1243. align-items: center;
  1244. gap: 20rpx;
  1245. margin-top: 20rpx;
  1246. .list-left {
  1247. font-size: 24rpx;
  1248. color: #AAAAAA;
  1249. }
  1250. .list-right {
  1251. font-weight: bold;
  1252. font-size: 24rpx;
  1253. color: #222222;
  1254. }
  1255. }
  1256. }
  1257. }
  1258. .t-address-card {
  1259. display: flex;
  1260. align-items: center;
  1261. justify-content: space-between;
  1262. margin-top: 20rpx;
  1263. padding: 20rpx;
  1264. background: #FFFFFF;
  1265. border-radius: 32rpx;
  1266. .address {
  1267. display: flex;
  1268. align-items: center;
  1269. gap: 4rpx;
  1270. font-weight: bold;
  1271. font-size: 24rpx;
  1272. color: #222222;
  1273. }
  1274. .nav-info {
  1275. display: flex;
  1276. align-items: center;
  1277. text-align: center;
  1278. gap: 32rpx;
  1279. font-size: 22rpx;
  1280. color: #222222;
  1281. }
  1282. }
  1283. .t-use-card {
  1284. margin-top: 20rpx;
  1285. padding: 20rpx;
  1286. background: #FFFFFF;
  1287. border-radius: 32rpx;
  1288. display: flex;
  1289. align-items: center;
  1290. justify-content: space-between;
  1291. .use-tips {
  1292. .title {
  1293. font-weight: bold;
  1294. font-size: 32rpx;
  1295. color: #222222;
  1296. }
  1297. .text {
  1298. margin-top: 20rpx;
  1299. font-size: 28rpx;
  1300. color: #AAAAAA;
  1301. }
  1302. .t-use-insureOrder {
  1303. display: flex;
  1304. align-items: center;
  1305. justify-content: space-between;
  1306. width: 660rpx;
  1307. margin-top: 20rpx;
  1308. .insureOrder-title {
  1309. font-size: 28rpx;
  1310. color: #AAAAAA;
  1311. }
  1312. .insureOrder-text {
  1313. font-size: 28rpx;
  1314. color: #222222;
  1315. }
  1316. }
  1317. }
  1318. .t-contract-list {
  1319. .contract-list {
  1320. .item-no-sign {
  1321. display: flex;
  1322. flex-wrap: wrap;
  1323. .sign-title {
  1324. white-space: nowrap;
  1325. margin-right: 20rpx;
  1326. }
  1327. .sign-names-container {
  1328. display: flex;
  1329. flex-wrap: wrap;
  1330. flex: 1;
  1331. gap: 20rpx;
  1332. }
  1333. .sign-name {
  1334. padding: 4rpx 10rpx 4rpx 10rpx;
  1335. border-radius: 8rpx;
  1336. background: #F6F6F6;
  1337. font-size: 24rpx;
  1338. color: #AAAAAA;
  1339. white-space: nowrap;
  1340. }
  1341. }
  1342. .item-sign {
  1343. display: flex;
  1344. flex-wrap: wrap;
  1345. .sign-title {
  1346. white-space: nowrap;
  1347. margin-right: 20rpx;
  1348. }
  1349. .sign-names-container {
  1350. display: flex;
  1351. flex-wrap: wrap;
  1352. flex: 1;
  1353. gap: 20rpx;
  1354. }
  1355. .sign-name {
  1356. padding: 4rpx 10rpx 4rpx 10rpx;
  1357. border-radius: 8rpx;
  1358. background: #F6F6F6;
  1359. font-size: 24rpx;
  1360. color: #AAAAAA;
  1361. white-space: nowrap;
  1362. }
  1363. }
  1364. }
  1365. }
  1366. .check-all {
  1367. display: flex;
  1368. align-items: center;
  1369. gap: 10rpx;
  1370. font-size: 24rpx;
  1371. color: #AAAAAA;
  1372. &>text {
  1373. margin-bottom: 10rpx;
  1374. }
  1375. }
  1376. }
  1377. .t-order-info-card {
  1378. margin-top: 20rpx;
  1379. padding: 20rpx;
  1380. background: #FFFFFF;
  1381. border-radius: 32rpx;
  1382. .title {
  1383. font-weight: bold;
  1384. font-size: 32rpx;
  1385. color: #222222;
  1386. }
  1387. .info-list {
  1388. display: flex;
  1389. align-items: center;
  1390. gap: 24rpx;
  1391. margin-top: 20rpx;
  1392. .item-left {
  1393. font-size: 28rpx;
  1394. color: #AAAAAA;
  1395. }
  1396. .item-right {
  1397. font-size: 28rpx;
  1398. color: #222222;
  1399. }
  1400. }
  1401. }
  1402. .t-team-card {
  1403. margin-top: 20rpx;
  1404. padding: 20rpx;
  1405. background: #FFFFFF;
  1406. border-radius: 32rpx;
  1407. .t-team-card-title {
  1408. display: flex;
  1409. align-items: center;
  1410. gap: 30rpx;
  1411. .title {
  1412. font-weight: bold;
  1413. font-size: 28rpx;
  1414. color: #222222;
  1415. }
  1416. .team-name {
  1417. font-size: 28rpx;
  1418. color: #AAAAAA;
  1419. }
  1420. }
  1421. .t-taem-card-info {
  1422. margin-top: 28rpx;
  1423. .item-info {
  1424. font-weight: bold;
  1425. font-size: 28rpx;
  1426. color: #222222;
  1427. }
  1428. .item-img {
  1429. margin-top: 20rpx;
  1430. display: flex;
  1431. flex-wrap: wrap;
  1432. gap: 10px;
  1433. &>image {
  1434. width: 200rpx;
  1435. height: 200rpx;
  1436. border-radius: 32rpx;
  1437. object-fit: cover;
  1438. }
  1439. }
  1440. }
  1441. }
  1442. .t-morefeatures-card {
  1443. display: flex;
  1444. align-items: center;
  1445. justify-content: space-between;
  1446. margin-top: 20rpx;
  1447. padding: 20rpx;
  1448. background: #FFFFFF;
  1449. border-radius: 32rpx;
  1450. .morefeatures-title {
  1451. font-weight: bold;
  1452. font-size: 32rpx;
  1453. color: #222222;
  1454. }
  1455. .morefeatures-btn {
  1456. width: 226rpx;
  1457. height: 68rpx;
  1458. background: #C8FF0C;
  1459. border-radius: 60rpx;
  1460. font-weight: bold;
  1461. font-size: 28rpx;
  1462. color: #222222;
  1463. text-align: center;
  1464. line-height: 68rpx;
  1465. }
  1466. }
  1467. .appraise-btn {
  1468. margin-top: 20rpx;
  1469. width: 686rpx;
  1470. height: 100rpx;
  1471. background: #C8FF0C;
  1472. border-radius: 60rpx;
  1473. font-weight: bold;
  1474. font-size: 32rpx;
  1475. color: #222222;
  1476. text-align: center;
  1477. line-height: 100rpx;
  1478. }
  1479. .price-detail {
  1480. background: #FFFFFF;
  1481. border-radius: 32rpx 32rpx 0rpx 0rpx;
  1482. padding: 20rpx;
  1483. .price-title {
  1484. font-weight: bold;
  1485. font-size: 32rpx;
  1486. color: #222222;
  1487. text-align: center;
  1488. }
  1489. .price-list {
  1490. .price-total {
  1491. display: flex;
  1492. align-items: center;
  1493. justify-content: space-between;
  1494. margin-top: 24rpx;
  1495. .text {
  1496. font-size: 28rpx;
  1497. color: #222222;
  1498. }
  1499. .price {
  1500. font-weight: bold;
  1501. font-size: 28rpx;
  1502. color: #FB5B5B;
  1503. }
  1504. }
  1505. }
  1506. }
  1507. .refund-detail {
  1508. background: #F6F6F6;
  1509. border-radius: 32rpx 32rpx 0rpx 0rpx;
  1510. padding: 20rpx;
  1511. max-height: 1200rpx;
  1512. overflow: auto;
  1513. .refund-title {
  1514. text-align: center;
  1515. font-weight: bold;
  1516. font-size: 32rpx;
  1517. color: #222222;
  1518. }
  1519. .refund-text {
  1520. margin-top: 20rpx;
  1521. padding: 20rpx;
  1522. background: #FFFFFF;
  1523. border-radius: 32rpx;
  1524. font-weight: bold;
  1525. font-size: 32rpx;
  1526. color: #222222;
  1527. }
  1528. .refund-num-card {
  1529. background: #FFFFFF;
  1530. border-radius: 32rpx;
  1531. padding: 20rpx;
  1532. margin-top: 20rpx;
  1533. .refund-number {
  1534. display: flex;
  1535. align-items: center;
  1536. justify-content: space-between;
  1537. .text {
  1538. font-size: 28rpx;
  1539. color: #222222;
  1540. }
  1541. .price-stepper {
  1542. display: flex;
  1543. align-items: center;
  1544. border: 1rpx solid #F0F0F0;
  1545. border-radius: 8rpx;
  1546. .minus {
  1547. text-align: center;
  1548. width: 44rpx;
  1549. border-right: 1rpx solid #F0F0F0;
  1550. }
  1551. &>input {
  1552. width: 80rpx;
  1553. font-size: 28rpx;
  1554. color: #222222;
  1555. }
  1556. .add {
  1557. text-align: center;
  1558. width: 44rpx;
  1559. border-left: 1rpx solid #F0F0F0;
  1560. }
  1561. }
  1562. }
  1563. .refund-price {
  1564. margin-top: 20rpx;
  1565. display: flex;
  1566. align-items: center;
  1567. justify-content: space-between;
  1568. .p-text {
  1569. font-size: 28rpx;
  1570. color: #222222;
  1571. }
  1572. .p-price {
  1573. font-weight: bold;
  1574. font-size: 28rpx;
  1575. color: #FB5B5B;
  1576. }
  1577. }
  1578. .refund-account {
  1579. margin-top: 20rpx;
  1580. display: flex;
  1581. align-items: center;
  1582. justify-content: space-between;
  1583. .a-text {
  1584. font-size: 28rpx;
  1585. color: #222222;
  1586. }
  1587. .a-account {
  1588. font-size: 28rpx;
  1589. color: #222222;
  1590. }
  1591. }
  1592. .refund-tips {
  1593. display: flex;
  1594. align-items: center;
  1595. justify-content: flex-end;
  1596. height: 80rpx;
  1597. line-height: 80rpx;
  1598. font-size: 24rpx;
  1599. color: #222222;
  1600. }
  1601. }
  1602. .c-scheduled-card {
  1603. margin-top: 20rpx;
  1604. padding: 20rpx;
  1605. background: #FFFFFF;
  1606. border-radius: 32rpx;
  1607. .title {
  1608. font-weight: bold;
  1609. font-size: 28rpx;
  1610. color: #222222;
  1611. }
  1612. .schedule-address {
  1613. display: flex;
  1614. gap: 20rpx;
  1615. margin-top: 20rpx;
  1616. .text {
  1617. font-size: 24rpx;
  1618. color: #AAAAAA;
  1619. }
  1620. .name {
  1621. font-weight: bold;
  1622. font-size: 24rpx;
  1623. color: #222222;
  1624. }
  1625. .time-box {
  1626. height: 60rpx;
  1627. display: flex;
  1628. align-items: center;
  1629. gap: 160rpx;
  1630. .time {
  1631. font-weight: bold;
  1632. font-size: 24rpx;
  1633. color: #222222;
  1634. margin-bottom: 20rpx;
  1635. }
  1636. .time-icon {
  1637. margin-bottom: 20rpx;
  1638. }
  1639. }
  1640. }
  1641. }
  1642. .refund-cause-card {
  1643. background: #FFFFFF;
  1644. border-radius: 32rpx;
  1645. padding: 20rpx;
  1646. margin-top: 20rpx;
  1647. .c-title {
  1648. font-weight: bold;
  1649. font-size: 28rpx;
  1650. color: #222222;
  1651. }
  1652. .c-cause-list {
  1653. .cause-list {
  1654. display: flex;
  1655. align-items: center;
  1656. justify-content: space-between;
  1657. margin-top: 20rpx;
  1658. .cause {
  1659. font-size: 24rpx;
  1660. color: #222222;
  1661. }
  1662. }
  1663. }
  1664. }
  1665. .refund-tips {
  1666. display: flex;
  1667. align-items: center;
  1668. gap: 8rpx;
  1669. margin-top: 20rpx;
  1670. .tips-icon {
  1671. width: 30rpx;
  1672. height: 30rpx;
  1673. border-radius: 50%;
  1674. background: #FFA347;
  1675. color: #fff;
  1676. text-align: center;
  1677. line-height: 30rpx;
  1678. }
  1679. .tips-text {
  1680. font-size: 24rpx;
  1681. color: #222222;
  1682. }
  1683. }
  1684. .refund-btn-box {
  1685. position: fixed;
  1686. bottom: 0;
  1687. left: 0;
  1688. width: 95%;
  1689. background: #FFFFFF;
  1690. box-shadow: 0rpx -6rpx 12rpx 2rpx rgba(0, 0, 0, 0.09);
  1691. border-radius: 32rpx 32rpx 0rpx 0rpx;
  1692. padding: 20rpx;
  1693. .refund-btn {
  1694. width: 686rpx;
  1695. height: 100rpx;
  1696. background: #C8FF0C;
  1697. border-radius: 60rpx;
  1698. font-weight: bold;
  1699. font-size: 32rpx;
  1700. color: #222222;
  1701. text-align: center;
  1702. line-height: 100rpx;
  1703. }
  1704. }
  1705. }
  1706. </style>