activityDetailNew.vue 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010
  1. <template>
  2. <!-- 教研室详情 -->
  3. <view class="activityDetailNew">
  4. <statusBar :item="navbar"></statusBar>
  5. <!-- 消息提示 -->
  6. <msgPop></msgPop>
  7. <view class="top">
  8. <image class="img1" src="https://teacherapi.cocorobo.cn/teaching-file/static/yym/Rectangle25.png"
  9. mode="widthFix">
  10. </image>
  11. <image class="img2" src="../../static/Dropdown.png" mode="widthFix"></image>
  12. </view>
  13. <view class="decontent">
  14. <view class="actit">
  15. {{actItemList.acName}}
  16. </view>
  17. <view class="footer">
  18. <view class="">
  19. {{actItemList.create_at}}
  20. </view>
  21. <view class="">
  22. 阅读量:{{actItemList.views}}
  23. </view>
  24. </view>
  25. <view class="avaList">
  26. <view class="ava" @click="gotoMorePer">
  27. <u-avatar-group :urls="applyUserlist" maxCount='6' showMore size="35" :extraValue='stuNum'
  28. gap="0.4"></u-avatar-group>
  29. <view style="font-size: 24rpx;
  30. font-weight: 400;
  31. width: 200rpx;
  32. color:rgba(0, 0, 0, 0.6);
  33. margin-left: 20rpx;">
  34. {{!applyUserlist.length?'暂无报名':'已报名'}}
  35. </view>
  36. </view>
  37. <view class="cost">
  38. <!-- ¥<text style="font-size: 48rpx;">{{actItemList.cost}}</text> -->
  39. </view>
  40. </view>
  41. <view class="acinfo">
  42. <view class="acinfoAddress">
  43. <view class="acinfoTit">
  44. <text>时</text>
  45. <text>间</text>
  46. </view>:
  47. <text class="inf">{{actItemList.begin_at}}</text>
  48. </view>
  49. <!-- <view class="acinfoAddress">
  50. 地点:<text class="inf">{{actItemList.address}}</text>
  51. </view> -->
  52. <!-- <view class="">
  53. 主办单位:<text class="inf">暂无字段</text>
  54. </view> -->
  55. <view class="acinfoAddress">
  56. <view class="acinfoTit">
  57. <text>活</text>
  58. <text>动</text>
  59. <text>形</text>
  60. <text>式</text>
  61. </view>: <text style="color:rgba(0, 86, 168, 1) ;">{{actItemList.acshape}}</text>
  62. </view>
  63. </view>
  64. <!-- 活动介绍 -->
  65. <view class="acbrief">
  66. <view class="britit">
  67. 活动介绍
  68. </view>
  69. <!-- <web-view :src="actItemList.link" webview-styles="{'height': '700rpx';}"></web-view> -->
  70. <!-- <br /> -->
  71. <!-- <view class="bricon" @longpress="scanCode"> -->
  72. <view class="bricon">
  73. <!-- <rich-text style="white-space:pre-wrap;" :nodes="actItemList.brief"></rich-text> -->
  74. <u-parse :content="actItemList.brief" :selectable="true" :lazyLoad="true"
  75. :loadingImg="imgLoading"></u-parse>
  76. </view>
  77. </view>
  78. </view>
  79. <!-- 按钮 -->
  80. <view class="btnBlock">
  81. <view class="icos">
  82. <view class="ico">
  83. <view class="imgBlock" @click="coll">
  84. <image class="icoimg"
  85. :src="collArr.includes(actItemList.acId) ? pic_coll2 : '../../static/Starhhh.png'"
  86. mode="aspectFill"></image>
  87. </view>
  88. <text class="icotxt">收藏</text>
  89. </view>
  90. <view class="ico" style="position: relative;">
  91. <view class="imgBlock">
  92. <image class="icoimg" style="height: 70%;width: 65%;" src="../../static/union.png"
  93. mode="aspectFill"></image>
  94. </view>
  95. <button open-type="share"
  96. style="background-color: aquamarine;opacity: 0; position: absolute;left: 0;width: 100%;height: 100%;"></button>
  97. <text class="icotxt">分享</text>
  98. </view>
  99. </view>
  100. <view class="rightBtn">
  101. <view class="btnt1" v-if="actItemList.openid==oid">本人创建,暂不支持加入</view>
  102. <view class="btnt" v-else-if="!isSign" @click="applyAdd">立即报名</view>
  103. <view class="btnt1" style="width:200rpx;" v-if="isSign && !isExpired" @click="cancelAdd">取消报名
  104. </view>
  105. <view class="btnt" style="width:200rpx;margin-left:15px" v-if="isSign && !isExpired"
  106. @click="Attend">参与活动</view>
  107. <view class="btnt" v-else-if="isSign && isExpired" @click="lookPlayback">查看回放</view>
  108. <!-- <view class="btnt" style="background-color: #ccc;" v-else-if="!isSign && isExpired">报名时间结束</view> -->
  109. <!-- <view class="btnt1" v-else-if="actItemList.bnum>=actItemList.pers">人数已满</view> -->
  110. <!-- <view class="btnt1" v-else-if="isSign && actItemList.openid!=oid">已报名</view> -->
  111. </view>
  112. </view>
  113. <!-- 查看回放弹框 -->
  114. <u-modal :showConfirmButton="false" :show="PlaybackDig" closeOnClickOverlay @close="PlaybackDig=false">
  115. <u--image :src="actItemList.playback"></u--image>
  116. </u-modal>
  117. <!-- 报名成功展示跳转二维码 -->
  118. <view class="ellone">
  119. <u-modal style="height: 600px !important;flex-direction: column !important;" :showConfirmButton="false"
  120. :show="DigenrollImg" closeOnClickOverlay @close="DigenrollImg=false">
  121. <view style="font-size: 15px;font-weight: 600;margin-top: 20px;">
  122. 报名成功!
  123. </view>
  124. <!-- <view style="font-size: 15px;font-weight: 600;margin-top: 5px;">
  125. {{ popupMessage }}
  126. </view> -->
  127. <u--image style="height: 400px !important;" :src="actItemList.qrlink"></u--image>
  128. </u-modal>
  129. </view>
  130. <view class="ellone">
  131. <u-modal style="height: 600px !important;flex-direction: column !important;" :showConfirmButton="false"
  132. :show="GetInvolved" closeOnClickOverlay @close="GetInvolved=false">
  133. <view style="font-size: 15px;font-weight: 600;margin-top: 20px;">
  134. 已报名!
  135. </view>
  136. <view style="font-size: 15px;font-weight: 600;margin-top: 5px;">
  137. 请扫码进入腾讯会议
  138. </view>
  139. <view style="font-size: 15px;font-weight: 600;margin-top: 5px;">
  140. 参与此次教研活动
  141. </view>
  142. <u--image style="height: 400px !important;" :src="actItemList.qrlink"></u--image>
  143. </u-modal>
  144. </view>
  145. <!-- @click="showBigImage" -->
  146. <!-- 弹窗 -->
  147. <view>
  148. <view class="mask" v-show="showPopup" @click="showPopup = false"></view>
  149. <view class="popup-container" v-show="showPopup">
  150. <view class="popup">
  151. <view class="header">
  152. <text v-if="!isAdd">确认报名</text>
  153. <text v-else>是否取消报名</text>
  154. </view>
  155. <view class="footer">
  156. <view class="cancel-btn" @click="showPopup=false">取消</view>
  157. <view class="confirm-btn" v-if="!isAdd" @click="conf">确认</view>
  158. <view class="confirm-btn" v-else @click="canc">确认</view>
  159. </view>
  160. </view>
  161. </view>
  162. </view>
  163. <view>
  164. <view class="popup-container2" style="height: 175px;" v-show="showPopupConfirm">
  165. <view class="popup">
  166. <view class="header" style="margin-top: 15px;">
  167. <view class="imgShade">
  168. <image src="../../static/mine/gou3.png" mode="aspectFill">
  169. </view>
  170. </image>
  171. <text style="margin-bottom: 24px;">报名成功</text>
  172. </view>
  173. </view>
  174. </view>
  175. </view>
  176. <view class="" style="height: 170rpx;width: 750rpx;">
  177. <!-- 占位的 -->
  178. </view>
  179. <u-loading-page :loading="uLoading"></u-loading-page>
  180. </view>
  181. </template>
  182. <script>
  183. export default {
  184. data() {
  185. return {
  186. navbar: {
  187. title: '活动详情',
  188. btn: 1
  189. },
  190. // 用户openid
  191. oid: '',
  192. // 活动id
  193. acId: '',
  194. stuNum: 0,
  195. // 报名跳转链接
  196. // enrollImg: 'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/file-1719281192664.png',
  197. DigenrollImg: false,
  198. // 参与活动跳转链接
  199. GetInvolved: false,
  200. // 页面数据
  201. actItemList: {},
  202. // 用户收藏列表
  203. collArr: [],
  204. //报名成功弹窗
  205. showPopupConfirm: false,
  206. //过期日期
  207. dTime: '',
  208. // 查看回放弹框控制
  209. PlaybackDig: false,
  210. // 用户订阅列表
  211. // subArr: [],
  212. uLoading: false,
  213. //弹窗是否过期显示的内容
  214. popupMessage:'',
  215. // 收藏按钮节流
  216. stopTimer: 0,
  217. //控制弹窗
  218. showPopup: false,
  219. // 是否已加入
  220. isSign: 0,
  221. // 判断显示报名弹窗还是取消报名弹窗
  222. isAdd: 0,
  223. // 报名列表
  224. applyUserlist: [],
  225. pic_coll2: 'https://teacherapi.cocorobo.cn/teaching-file/static/mine/Collect_yellow.png',
  226. imgLoading: 'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/file-1712113517547.png'
  227. // nodes: [{
  228. // name: 'div',
  229. // attrs: {
  230. // class: 'div-class',
  231. // style: 'line-height: 60px; color: red; text-align:center;'
  232. // },
  233. // children: [{
  234. // type: 'text',
  235. // text: 'Hello&nbsp;uni-app!'
  236. // }]
  237. // }],
  238. // strings: '<div style="text-align:center;"><img src="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png"/></div>'
  239. // pic_sub: 'https://teacherapi.cocorobo.cn/teaching-file/static/yym/Vector (Stroke) (1).png',
  240. // pic_sub2: 'https://teacherapi.cocorobo.cn/teaching-file/static/dingyue_blue.png',
  241. };
  242. },
  243. // 分享
  244. onShareAppMessage() {
  245. uni.share({
  246. provider: "weixin",
  247. scene: "WXSceneSession",
  248. type: 1,
  249. summary: "我正在使用丽湖双创小程序,赶紧跟我一起来体验!",
  250. success: function(res) {
  251. console.log("success:" + JSON.stringify(res));
  252. },
  253. fail: function(err) {
  254. console.log("fail:" + JSON.stringify(err));
  255. }
  256. });
  257. },
  258. onShareTimeline() {
  259. uni.share({
  260. provider: "weixin",
  261. scene: "WXSceneTimeline",
  262. type: 0,
  263. href: "http://uniapp.dcloud.io/",
  264. title: "uni-app分享",
  265. summary: "我正在使用丽湖双创小程序,赶紧跟我一起来体验!",
  266. imageUrl: "https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png",
  267. success: function(res) {
  268. console.log("success:" + JSON.stringify(res));
  269. },
  270. fail: function(err) {
  271. console.log("fail:" + JSON.stringify(err));
  272. }
  273. });
  274. },
  275. // onUnload() {
  276. // this.$store.dispatch('asyncDelAll')
  277. // },
  278. computed: {
  279. isExpired() {
  280. let dTime = this.dTime.split(',')
  281. let bint = new Date(dTime[0]).getTime()
  282. let now = new Date().getTime()
  283. // console.log("过期时间",bint);
  284. // console.log("当前日期",now);
  285. return bint < now
  286. }
  287. },
  288. methods: {
  289. // showBigImage() {
  290. // uni.previewImage({
  291. // current: this.actItemList.playback, // 当前显示的图片链接
  292. // urls: [this.actItemList.playback] // 需要预览的图片链接列表
  293. // });
  294. // },
  295. //跳转到第三方链接
  296. gotoLink(e) {
  297. let link = e.currentTarget.dataset.link;
  298. uni.navigateTo({
  299. url: "/pages/skipone/skipone?url=" + encodeURIComponent(link),
  300. });
  301. },
  302. // 查看回放
  303. lookPlayback() {
  304. if (!(!!this.actItemList.playback)) {
  305. uni.showToast({
  306. title: "暂无回放",
  307. icon: 'none'
  308. });
  309. return
  310. }
  311. this.PlaybackDig = true
  312. // uni.navigateTo({
  313. // // url: "/pages/skipone/skipone?item=" + encodeURIComponent(JSON.stringify('https://www.yuketang.cn/v2/web/forbidden'))
  314. // url: "/pages/skipone/skipone?item=" + encodeURIComponent(JSON.stringify(this.actItemList
  315. // .playback))
  316. // });
  317. },
  318. // 获取页面数据
  319. getdata() {
  320. this.uLoading = true
  321. let data = {
  322. oid: this.$store.state.user.openid,
  323. acId: this.acId,
  324. }
  325. this.$request('/selectActivityID', "POST", data).then(res => {
  326. console.log('页面数据', res[0][0]);
  327. this.dTime = res[0][0].begin_at;
  328. // console.log('this.dTime',this.dTime);
  329. let srrt = this.datejudge(res[0][0].begin_at)
  330. console.log('srrt', srrt);
  331. res[0][0].begin_at = srrt
  332. this.uLoading = false
  333. this.actItemList = res[0][0]
  334. this.actItemList.brief = this.actItemList.brief.replace(/<img/gi,
  335. '<img style="max-width:100%;height:auto;margin:0 auto;display:block"'
  336. )
  337. })
  338. },
  339. // 处理时间
  340. datejudge(e) {
  341. const dates = e.split(",");
  342. const date1 = new Date(dates[0]);
  343. const date2 = new Date(dates[1]);
  344. const year1 = date1.getFullYear();
  345. const month1 = date1.getMonth();
  346. const day1 = date1.getDate();
  347. const year2 = date2.getFullYear();
  348. const month2 = date2.getMonth();
  349. const day2 = date2.getDate();
  350. if (year1 === year2 && month1 === month2 && day1 === day2) {
  351. const modifiedDate = dates[1].substring(11); // 保留时间部分(小时和分钟)
  352. dates[1] = modifiedDate;
  353. }
  354. const result = dates.join("-");
  355. return result
  356. },
  357. // 申请加入弹窗
  358. applyAdd() {
  359. const value = this.$store.state.user.openid;
  360. if (!value) {
  361. uni.showToast({
  362. title: '未登录,请登录',
  363. icon: 'none'
  364. })
  365. setTimeout(() => {
  366. this.goLog()
  367. }, 1000)
  368. return
  369. }
  370. // console.log('报名');
  371. this.isAdd = 0
  372. this.showPopup = true
  373. },
  374. //显示取消报名弹窗
  375. cancelAdd() {
  376. this.isAdd = 1
  377. this.showPopup = true
  378. },
  379. // 确认取消报名操作
  380. canc() {
  381. let data = {
  382. oid: this.$store.state.user.openid, //用户id
  383. acid: this.acId,
  384. }
  385. this.$request('/deleteApply', "POST", data).then(res => {
  386. console.log('取消报名返回', res);
  387. this.btnEnroll()
  388. this.getUsers()
  389. // 弹窗关闭
  390. this.showPopup = false
  391. uni.showToast({
  392. title: '已取消报名',
  393. icon: 'none',
  394. })
  395. })
  396. },
  397. // 确认报名操作
  398. conf() {
  399. this.showPopup = false
  400. let data = {
  401. oid: this.$store.state.user.openid, //用户id
  402. acid: this.acId,
  403. ty: 2,
  404. }
  405. this.$request('/insertSignup', "POST", data).then(res => {
  406. console.log('报名返回', res);
  407. // 添加消息页面系统通知提示报名成功
  408. this.addMessage()
  409. this.showPopupConfirm = true
  410. this.btnEnroll()
  411. this.getUsers()
  412. this.showPopupConfirm = false
  413. if (this.actItemList.qrlink) {
  414. this.DigenrollImg = true
  415. }
  416. if(this.isExpired){
  417. this.lookPlayback()
  418. }
  419. // // 根据活动是否过期来设置不同的弹窗内容
  420. // if (this.isExpired) {
  421. // // 活动过期时的弹窗内容
  422. // this.popupMessage = "扫描后完成用户绑定,可查看活动回放";
  423. // } else {
  424. // // 活动未过期时的弹窗内容
  425. // this.popupMessage = "参与此次教研活动";
  426. // }
  427. // this.getData()
  428. })
  429. },
  430. // 参与活动操作
  431. Attend() {
  432. this.showPopup = false
  433. // 添加消息页面系统通知提示报名成功
  434. this.addMessage()
  435. this.btnEnroll()
  436. this.getUsers()
  437. this.showPopupConfirm = false
  438. if (this.actItemList.qrlink) {
  439. this.GetInvolved = true
  440. }
  441. // this.getData()
  442. },
  443. // 添加消息页面系统通知提示报名成功
  444. addMessage() {
  445. let data = {
  446. oid: this.$store.state.user.openid,
  447. acid: this.acId,
  448. type: 0,
  449. }
  450. this.$request('/insertMessage', "POST", data).then(res => {
  451. console.log('添加消息页面系统通知提示报名成功', res);
  452. })
  453. },
  454. // 查看更多报名同学
  455. gotoMorePer() {
  456. uni.navigateTo({
  457. url: `/pages/dy/dy?acId=${this.acId}`
  458. })
  459. },
  460. goLog() {
  461. uni.navigateTo({
  462. url: "/pages/login_Wechat/login_Wechat",
  463. });
  464. },
  465. //获取是否报名
  466. btnEnroll() {
  467. let data = {
  468. oid: this.$store.state.user.openid, //用户id
  469. aid: this.acId,
  470. type: 2
  471. }
  472. this.$request('/selectSignup', 'POST', data).then(res => {
  473. // console.log('获取报名', res[0][0]);
  474. this.isSign = res[0][0].num
  475. })
  476. },
  477. // 收藏事件
  478. coll() {
  479. const value = this.$store.state.user.openid;
  480. if (!value) {
  481. uni.showToast({
  482. title: '未登录,请登录',
  483. icon: 'none'
  484. })
  485. setTimeout(() => {
  486. this.goLog()
  487. }, 1000)
  488. return
  489. }
  490. // this.stopTimer=0
  491. if (this.stopTimer) return uni.showToast({
  492. icon: 'none',
  493. title: '点击过快'
  494. })
  495. this.stopTimer = 1
  496. setTimeout(() => {
  497. this.stopTimer = 0
  498. }, 500)
  499. //判断是否收藏
  500. let iscoll = null
  501. // 查询是否收藏过
  502. let data = {
  503. acid: this.acId,
  504. oid: this.$store.state.user.openid, //用户id
  505. ty: 0
  506. }
  507. this.$request('/selectOneOperator', 'POST', data).then(res => {
  508. // console.log('查询是否收藏过',res);
  509. res[0].length ? iscoll = true : iscoll = false;
  510. // iscoll为true表示已经收藏过,执行删除 为true则收藏
  511. if (iscoll) {
  512. this.$store.dispatch('asyncUpdatemsg', {
  513. collAoff: 0
  514. })
  515. console.log('执行删除');
  516. this.$request('/deleteOperator', 'POST', data).then(res => {
  517. // console.log(res);
  518. this.getColl()
  519. setTimeout(() => {
  520. this.$store.dispatch('asyncDelMsg')
  521. }, 1500)
  522. })
  523. } else {
  524. this.$store.dispatch('asyncUpdatemsg', {
  525. collAoff: 1
  526. })
  527. console.log('执行添加');
  528. this.$request('/insertOperator', 'POST', data).then(res => {
  529. // console.log(res);
  530. this.getColl()
  531. setTimeout(() => {
  532. this.$store.dispatch('asyncDelMsg')
  533. }, 1500)
  534. })
  535. }
  536. })
  537. },
  538. //获取是否收藏
  539. getColl() {
  540. let data = {
  541. oid: this.$store.state.user.openid, //用户id
  542. type: 0
  543. }
  544. this.$request('/selectOperator', 'POST', data).then(res => {
  545. // console.log('获取收藏', res);
  546. // 每次调用前清零,防止push叠加错误
  547. this.collArr = []
  548. // 将acid遍历到collArr中
  549. res[0].forEach(i => {
  550. this.collArr.push(i.acId)
  551. })
  552. })
  553. },
  554. // 获取报名用户
  555. getUsers() {
  556. let data = {
  557. oid: this.$store.state.user.openid, //用户id
  558. aid: this.acId,
  559. type: 2,
  560. page: 1, //下拉获取更多的备用字段
  561. lim: 6 //一次获取多少数据
  562. }
  563. this.$request('/selectApplyUser', 'POST', data).then(res => {
  564. console.log('获取报名用户列表', res[0]);
  565. if (res[0].length > 0) {
  566. this.stuNum = res[0][0].unum
  567. }
  568. // this.stuNum = res[0].length
  569. this.applyUserlist = []
  570. let arr = res[0]
  571. arr = arr.slice(0, 6)
  572. arr.forEach(e => {
  573. this.applyUserlist.push(e.avatar)
  574. })
  575. // this.applyUserlist = res[0]
  576. })
  577. }
  578. },
  579. onLoad(e) {
  580. // this.stopTimer=0
  581. // console.log('接收参数',e);
  582. this.acId = e.acId
  583. this.oid = this.$store.state.user.openid
  584. // 获取是否报名
  585. this.btnEnroll()
  586. // this.getActivity()
  587. // 获取页面数据
  588. this.getdata()
  589. // 获取是否收藏
  590. this.getColl()
  591. // 获取是否订阅
  592. // this.getSub()
  593. // 获取报名人名单
  594. this.getUsers()
  595. let curRoute = this.$mp.page.route //获取当前页面的路由信息
  596. let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
  597. console.log('routes', routes);
  598. if (routes.length == 1) {
  599. this.navbar.btn = 2
  600. } else {
  601. this.navbar.btn = 1
  602. }
  603. }
  604. }
  605. </script>
  606. <style lang="scss">
  607. .activityDetailNew {
  608. background-color: #fff;
  609. /deep/ .u-image {
  610. height: 300px !important;
  611. // align-items: center !important;
  612. }
  613. /deep/ .u-image__image {
  614. height: 300px !important;
  615. }
  616. .ellone {
  617. /deep/ .u-image {
  618. height: 400px !important;
  619. }
  620. /deep/ .u-image__image {
  621. height: 600px !important;
  622. }
  623. /deep/ .u-modal__content {
  624. flex-direction: column !important;
  625. align-items: center;
  626. height: 450px;
  627. }
  628. }
  629. .popup-container2 {
  630. position: fixed;
  631. top: 50%;
  632. left: 50%;
  633. transform: translate(-50%, -50%);
  634. width: 520rpx;
  635. height: 260rpx;
  636. z-index: 1000;
  637. border-radius: 16rpx;
  638. // display: none;
  639. box-shadow: 0rpx 3rpx 10rpx 5rpx rgba(0, 0, 0, .1);
  640. overflow: hidden;
  641. .popup {
  642. width: 100%;
  643. height: 100%;
  644. display: flex;
  645. flex-direction: column;
  646. background-color: #fff;
  647. border-radius: 16rpx;
  648. overflow: hidden;
  649. .header {
  650. flex: 1;
  651. display: flex;
  652. justify-content: center;
  653. align-items: center;
  654. flex-direction: column;
  655. margin-top: 24px;
  656. font-size: 34rpx;
  657. font-weight: 600;
  658. .imgShade {
  659. width: 170rpx;
  660. height: 170rpx;
  661. display: flex;
  662. justify-content: center;
  663. align-items: center;
  664. border: 10rpx #0056A8 solid;
  665. border-radius: 50%;
  666. box-shadow: 0 0 10rpx #0056A8;
  667. margin-bottom: 10rpx;
  668. }
  669. image {
  670. width: 150rpx;
  671. height: 150rpx;
  672. margin-top: 15px;
  673. margin-bottom: 15px;
  674. }
  675. }
  676. .footer {
  677. width: 100%;
  678. display: flex;
  679. overflow: hidden;
  680. .cancel-btn {
  681. width: 50%;
  682. height: 100rpx;
  683. background-color: #F7F7F7;
  684. color: #000;
  685. font-size: 34rpx;
  686. text-align: center;
  687. border-bottom-left-radius: 16rpx;
  688. line-height: 50px;
  689. }
  690. .confirm-btn {
  691. width: 50%;
  692. height: 100rpx;
  693. background-color: #0081FE;
  694. color: #fff;
  695. font-size: 34rpx;
  696. text-align: center;
  697. line-height: 50px;
  698. }
  699. }
  700. }
  701. }
  702. .top {
  703. width: 750rpx;
  704. position: relative;
  705. .img1 {
  706. display: block;
  707. margin: auto;
  708. width: 750rpx;
  709. }
  710. .img2 {
  711. position: absolute;
  712. width: 100%;
  713. left: 0;
  714. bottom: 0;
  715. }
  716. }
  717. .decontent {
  718. width: 750rpx;
  719. border-top-right-radius: 30rpx;
  720. border-top-left-radius: 30rpx;
  721. background-color: #fff;
  722. padding: 32rpx;
  723. display: flex;
  724. flex-direction: column;
  725. justify-content: flex-start;
  726. border-bottom: 1rpx rgba(231, 231, 231, 1) solid;
  727. .actit {
  728. font-weight: 600;
  729. font-size: 40rpx;
  730. color: rgba(0, 0, 0, 0.8);
  731. line-height: 56rpx;
  732. display: -webkit-box;
  733. word-break: break-all;
  734. text-overflow: ellipsis;
  735. overflow: hidden;
  736. -webkit-box-orient: vertical;
  737. -webkit-line-clamp: 2;
  738. }
  739. .footer {
  740. display: flex;
  741. justify-content: space-between;
  742. color: rgba(0, 0, 0, 0.4);
  743. font-size: 24rpx;
  744. // height: 32rpx;
  745. // line-height: 32rpx;
  746. font-weight: 400;
  747. padding: 20rpx 0;
  748. padding-bottom: 0;
  749. }
  750. .avaList {
  751. display: flex;
  752. justify-content: space-between;
  753. width: 100%;
  754. align-items: center;
  755. padding: 30rpx 0;
  756. border-bottom: 1rpx rgba(231, 231, 231, 1) solid;
  757. margin-bottom: 20rpx;
  758. .ava {
  759. // width: 353rpx;
  760. display: flex;
  761. align-items: center;
  762. }
  763. .cost {
  764. flex: 1;
  765. text-align: right;
  766. font-weight: 700;
  767. font-size: 40rpx;
  768. color: rgba(246, 135, 23, 1);
  769. }
  770. }
  771. .acinfo {
  772. width: 100%;
  773. display: flex;
  774. flex-direction: column;
  775. justify-content: space-between;
  776. font-size: 28rpx;
  777. font-weight: 400;
  778. color: rgba(0, 0, 0, 0.6);
  779. border-bottom: 1rpx rgba(231, 231, 231, 1) solid;
  780. // padding-bottom: 30rpx;
  781. .acinfoAddress {
  782. // padding: 20rpx 0;
  783. display: flex;
  784. padding-bottom: 20rpx;
  785. .acinfoTit {
  786. width: 150rpx;
  787. display: flex;
  788. justify-content: space-between;
  789. // text-align: justify;
  790. .justified-text {
  791. text-align: justify;
  792. text-justify: inter-word;
  793. /* 兼容性写法,用于处理中英文混排时的对齐效果 */
  794. }
  795. }
  796. }
  797. .inf {
  798. color: rgba(0, 0, 0, 0.8);
  799. }
  800. }
  801. .acbrief {
  802. width: 100%;
  803. .britit {
  804. width: 100%;
  805. height: 48rpx;
  806. font-weight: 600;
  807. line-height: 48rpx;
  808. font-size: 32rpx;
  809. color: rgba(0, 0, 0, 0.8);
  810. margin: 30rpx 0;
  811. }
  812. .bricon {
  813. font-weight: 400;
  814. font-size: 28rpx;
  815. line-height: 44rpx;
  816. color: (0, 0, 0, 0.8);
  817. margin-bottom: 30rpx;
  818. }
  819. .briImg {
  820. width: 100%;
  821. }
  822. }
  823. }
  824. .btnBlock {
  825. position: fixed;
  826. bottom: 0;
  827. left: 0;
  828. width: 750rpx;
  829. height: 175rpx;
  830. background-color: #fff;
  831. display: flex;
  832. justify-content: flex-start;
  833. align-items: center;
  834. padding: 30rpx 30rpx;
  835. padding-bottom: 40rpx;
  836. border-top: 1rpx rgba(231, 231, 231, 1) solid;
  837. // padding-bottom: 78rpx;
  838. .icos {
  839. width: 200rpx;
  840. height: 96rpx;
  841. flex-shrink: 0;
  842. margin-right: 30rpx;
  843. display: flex;
  844. justify-content: space-between;
  845. .ico {
  846. width: 100rpx;
  847. display: flex;
  848. flex-direction: column;
  849. justify-content: space-between;
  850. align-items: center;
  851. .imgBlock {
  852. width: 48rpx;
  853. height: 48rpx;
  854. display: flex;
  855. align-items: center;
  856. justify-content: center;
  857. .icoimg {
  858. width: 42rpx;
  859. height: 40rpx;
  860. }
  861. }
  862. .icotxt {
  863. font-size: 24rpx;
  864. height: 40rpx;
  865. line-height: 40rpx;
  866. color: rgba(4, 0, 0, 1);
  867. }
  868. }
  869. }
  870. .rightBtn {
  871. flex: 1;
  872. display: flex;
  873. justify-content: center;
  874. align-items: center;
  875. .btnt {
  876. width: 454rpx;
  877. color: #fff;
  878. font-weight: 400;
  879. font-size: 17px;
  880. height: 96rpx;
  881. background-color: rgba(0, 86, 168, 1);
  882. display: flex;
  883. justify-content: center;
  884. align-items: center;
  885. border-radius: 10rpx;
  886. }
  887. .btnt1 {
  888. width: 454rpx;
  889. font-weight: 400;
  890. font-size: 17px;
  891. height: 96rpx;
  892. background-color: rgb(217, 217, 217);
  893. display: flex;
  894. justify-content: center;
  895. align-items: center;
  896. border-radius: 10rpx;
  897. }
  898. }
  899. }
  900. }
  901. </style>