activityDetailNew.vue 23 KB

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