activityDetailNew.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965
  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 (this.actItemList.qrlink) {
  384. this.DigenrollImg = true
  385. }
  386. if (this.isExpired) {
  387. this.lookPlayback()
  388. }
  389. }, 1500)
  390. })
  391. },
  392. // 参与活动操作
  393. Attend() {
  394. if (this.actItemList.qrlink) {
  395. this.GetInvolved = true
  396. } else {
  397. uni.showToast({
  398. title: '此活动无链接',
  399. icon: 'none'
  400. })
  401. }
  402. },
  403. // 添加消息页面系统通知提示报名成功
  404. addMessage() {
  405. let data = {
  406. oid: this.$store.state.user.openid,
  407. acid: this.acId,
  408. type: 0,
  409. }
  410. this.$request('/insertMessage', "POST", data).then(res => {
  411. console.log('添加消息页面系统通知提示报名成功', res);
  412. })
  413. },
  414. // 查看更多报名同学
  415. gotoMorePer() {
  416. uni.navigateTo({
  417. url: `/pages/dy/dy?acId=${this.acId}`
  418. })
  419. },
  420. goLog() {
  421. uni.navigateTo({
  422. url: "/pages/login_Wechat/login_Wechat",
  423. });
  424. },
  425. //获取是否报名
  426. btnEnroll() {
  427. let data = {
  428. oid: this.$store.state.user.openid, //用户id
  429. aid: this.acId,
  430. type: 2
  431. }
  432. this.$request('/selectSignup', 'POST', data).then(res => {
  433. // console.log('获取报名', res[0][0]);
  434. this.isSign = res[0][0].num
  435. })
  436. },
  437. // 收藏事件
  438. coll() {
  439. const value = this.$store.state.user.openid;
  440. if (!value) {
  441. uni.showToast({
  442. title: '未登录,请登录',
  443. icon: 'none'
  444. })
  445. setTimeout(() => {
  446. this.goLog()
  447. }, 1000)
  448. return
  449. }
  450. // this.stopTimer=0
  451. if (this.stopTimer) return uni.showToast({
  452. icon: 'none',
  453. title: '点击过快'
  454. })
  455. this.stopTimer = 1
  456. setTimeout(() => {
  457. this.stopTimer = 0
  458. }, 500)
  459. //判断是否收藏
  460. let iscoll = null
  461. // 查询是否收藏过
  462. let data = {
  463. acid: this.acId,
  464. oid: this.$store.state.user.openid, //用户id
  465. ty: 0
  466. }
  467. this.$request('/selectOneOperator', 'POST', data).then(res => {
  468. // console.log('查询是否收藏过',res);
  469. res[0].length ? iscoll = true : iscoll = false;
  470. // iscoll为true表示已经收藏过,执行删除 为true则收藏
  471. if (iscoll) {
  472. this.$store.dispatch('asyncUpdatemsg', {
  473. collAoff: 0
  474. })
  475. console.log('执行删除');
  476. this.$request('/deleteOperator', 'POST', data).then(res => {
  477. // console.log(res);
  478. this.getColl()
  479. setTimeout(() => {
  480. this.$store.dispatch('asyncDelMsg')
  481. }, 1500)
  482. })
  483. } else {
  484. this.$store.dispatch('asyncUpdatemsg', {
  485. collAoff: 1
  486. })
  487. console.log('执行添加');
  488. this.$request('/insertOperator', 'POST', data).then(res => {
  489. // console.log(res);
  490. this.getColl()
  491. setTimeout(() => {
  492. this.$store.dispatch('asyncDelMsg')
  493. }, 1500)
  494. })
  495. }
  496. })
  497. },
  498. //获取是否收藏
  499. getColl() {
  500. let data = {
  501. oid: this.$store.state.user.openid, //用户id
  502. type: 0
  503. }
  504. this.$request('/selectOperator', 'POST', data).then(res => {
  505. // console.log('获取收藏', res);
  506. // 每次调用前清零,防止push叠加错误
  507. this.collArr = []
  508. // 将acid遍历到collArr中
  509. res[0].forEach(i => {
  510. this.collArr.push(i.acId)
  511. })
  512. })
  513. },
  514. // 获取报名用户
  515. getUsers() {
  516. let data = {
  517. oid: this.$store.state.user.openid, //用户id
  518. aid: this.acId,
  519. type: 2,
  520. page: 1, //下拉获取更多的备用字段
  521. lim: 6 //一次获取多少数据
  522. }
  523. this.$request('/selectApplyUser', 'POST', data).then(res => {
  524. console.log('获取报名用户列表', res[0]);
  525. if (res[0].length > 0) {
  526. this.stuNum = res[0][0].unum
  527. }
  528. // this.stuNum = res[0].length
  529. this.applyUserlist = []
  530. let arr = res[0]
  531. arr = arr.slice(0, 6)
  532. arr.forEach(e => {
  533. this.applyUserlist.push(e.avatar)
  534. })
  535. // this.applyUserlist = res[0]
  536. })
  537. }
  538. },
  539. onLoad(e) {
  540. // this.stopTimer=0
  541. // console.log('接收参数',e);
  542. this.acId = e.acId
  543. this.oid = this.$store.state.user.openid
  544. // 获取是否报名
  545. this.btnEnroll()
  546. // this.getActivity()
  547. // 获取页面数据
  548. this.getdata()
  549. // 获取是否收藏
  550. this.getColl()
  551. // 获取是否订阅
  552. // this.getSub()
  553. // 获取报名人名单
  554. this.getUsers()
  555. let curRoute = this.$mp.page.route //获取当前页面的路由信息
  556. let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
  557. console.log('routes', routes);
  558. if (routes.length == 1) {
  559. this.navbar.btn = 2
  560. } else {
  561. this.navbar.btn = 1
  562. }
  563. }
  564. }
  565. </script>
  566. <style lang="scss">
  567. .activityDetailNew {
  568. background-color: #fff;
  569. /deep/ .u-image {
  570. height: 300px !important;
  571. // align-items: center !important;
  572. }
  573. /deep/ .u-image__image {
  574. height: 300px !important;
  575. }
  576. .ellone {
  577. // /deep/ .u-image {
  578. // max-height: 400px !important;
  579. // }
  580. // /deep/ .u-image__image {
  581. // max-height: 600px !important;
  582. // }
  583. /deep/ .u-modal__content {
  584. flex-direction: column !important;
  585. align-items: center;
  586. // height: 450px;
  587. }
  588. }
  589. .ellTit {
  590. margin-bottom: 10px;
  591. font-weight: bold;
  592. color: 000;
  593. }
  594. .popup-container2 {
  595. position: fixed;
  596. top: 50%;
  597. left: 50%;
  598. transform: translate(-50%, -50%);
  599. width: 520rpx;
  600. height: 260rpx;
  601. z-index: 1000;
  602. border-radius: 16rpx;
  603. // display: none;
  604. box-shadow: 0rpx 3rpx 10rpx 5rpx rgba(0, 0, 0, .1);
  605. overflow: hidden;
  606. .popup {
  607. width: 100%;
  608. height: 100%;
  609. display: flex;
  610. flex-direction: column;
  611. background-color: #fff;
  612. border-radius: 16rpx;
  613. overflow: hidden;
  614. .header {
  615. flex: 1;
  616. display: flex;
  617. justify-content: center;
  618. align-items: center;
  619. flex-direction: column;
  620. margin-top: 24px;
  621. font-size: 34rpx;
  622. font-weight: 600;
  623. .imgShade {
  624. width: 170rpx;
  625. height: 170rpx;
  626. display: flex;
  627. justify-content: center;
  628. align-items: center;
  629. border: 10rpx #0056A8 solid;
  630. border-radius: 50%;
  631. box-shadow: 0 0 10rpx #0056A8;
  632. margin-bottom: 10rpx;
  633. }
  634. image {
  635. width: 150rpx;
  636. height: 150rpx;
  637. margin-top: 15px;
  638. margin-bottom: 15px;
  639. }
  640. }
  641. .footer {
  642. width: 100%;
  643. display: flex;
  644. overflow: hidden;
  645. .cancel-btn {
  646. width: 50%;
  647. height: 100rpx;
  648. background-color: #F7F7F7;
  649. color: #000;
  650. font-size: 34rpx;
  651. text-align: center;
  652. border-bottom-left-radius: 16rpx;
  653. line-height: 50px;
  654. }
  655. .confirm-btn {
  656. width: 50%;
  657. height: 100rpx;
  658. background-color: #0081FE;
  659. color: #fff;
  660. font-size: 34rpx;
  661. text-align: center;
  662. line-height: 50px;
  663. }
  664. }
  665. }
  666. }
  667. .top {
  668. width: 750rpx;
  669. position: relative;
  670. .img1 {
  671. display: block;
  672. margin: auto;
  673. width: 750rpx;
  674. }
  675. .img2 {
  676. position: absolute;
  677. width: 100%;
  678. left: 0;
  679. bottom: 0;
  680. }
  681. }
  682. .decontent {
  683. width: 750rpx;
  684. border-top-right-radius: 30rpx;
  685. border-top-left-radius: 30rpx;
  686. background-color: #fff;
  687. padding: 32rpx;
  688. display: flex;
  689. flex-direction: column;
  690. justify-content: flex-start;
  691. border-bottom: 1rpx rgba(231, 231, 231, 1) solid;
  692. .actit {
  693. font-weight: 600;
  694. font-size: 40rpx;
  695. color: rgba(0, 0, 0, 0.8);
  696. line-height: 56rpx;
  697. display: -webkit-box;
  698. word-break: break-all;
  699. text-overflow: ellipsis;
  700. overflow: hidden;
  701. -webkit-box-orient: vertical;
  702. -webkit-line-clamp: 2;
  703. }
  704. .footer {
  705. display: flex;
  706. justify-content: space-between;
  707. color: rgba(0, 0, 0, 0.4);
  708. font-size: 24rpx;
  709. // height: 32rpx;
  710. // line-height: 32rpx;
  711. font-weight: 400;
  712. padding: 20rpx 0;
  713. padding-bottom: 0;
  714. }
  715. .avaList {
  716. display: flex;
  717. justify-content: space-between;
  718. width: 100%;
  719. align-items: center;
  720. padding: 30rpx 0;
  721. border-bottom: 1rpx rgba(231, 231, 231, 1) solid;
  722. margin-bottom: 20rpx;
  723. .ava {
  724. // width: 353rpx;
  725. display: flex;
  726. align-items: center;
  727. }
  728. .cost {
  729. flex: 1;
  730. text-align: right;
  731. font-weight: 700;
  732. font-size: 40rpx;
  733. color: rgba(246, 135, 23, 1);
  734. }
  735. }
  736. .acinfo {
  737. width: 100%;
  738. display: flex;
  739. flex-direction: column;
  740. justify-content: space-between;
  741. font-size: 28rpx;
  742. font-weight: 400;
  743. color: rgba(0, 0, 0, 0.6);
  744. border-bottom: 1rpx rgba(231, 231, 231, 1) solid;
  745. // padding-bottom: 30rpx;
  746. .acinfoAddress {
  747. // padding: 20rpx 0;
  748. display: flex;
  749. padding-bottom: 20rpx;
  750. .acinfoTit {
  751. width: 150rpx;
  752. display: flex;
  753. justify-content: space-between;
  754. // text-align: justify;
  755. .justified-text {
  756. text-align: justify;
  757. text-justify: inter-word;
  758. /* 兼容性写法,用于处理中英文混排时的对齐效果 */
  759. }
  760. }
  761. }
  762. .inf {
  763. color: rgba(0, 0, 0, 0.8);
  764. }
  765. }
  766. .acbrief {
  767. width: 100%;
  768. .britit {
  769. width: 100%;
  770. height: 48rpx;
  771. font-weight: 600;
  772. line-height: 48rpx;
  773. font-size: 32rpx;
  774. color: rgba(0, 0, 0, 0.8);
  775. margin: 30rpx 0;
  776. }
  777. .bricon {
  778. font-weight: 400;
  779. font-size: 28rpx;
  780. line-height: 44rpx;
  781. color: (0, 0, 0, 0.8);
  782. margin-bottom: 30rpx;
  783. }
  784. .briImg {
  785. width: 100%;
  786. }
  787. }
  788. }
  789. .btnBlock {
  790. position: fixed;
  791. bottom: 0;
  792. left: 0;
  793. width: 750rpx;
  794. height: 175rpx;
  795. background-color: #fff;
  796. display: flex;
  797. justify-content: flex-start;
  798. align-items: center;
  799. padding: 30rpx 30rpx;
  800. padding-bottom: 40rpx;
  801. border-top: 1rpx rgba(231, 231, 231, 1) solid;
  802. // padding-bottom: 78rpx;
  803. .icos {
  804. width: 200rpx;
  805. height: 96rpx;
  806. flex-shrink: 0;
  807. margin-right: 30rpx;
  808. display: flex;
  809. justify-content: space-between;
  810. .ico {
  811. width: 100rpx;
  812. display: flex;
  813. flex-direction: column;
  814. justify-content: space-between;
  815. align-items: center;
  816. .imgBlock {
  817. width: 48rpx;
  818. height: 48rpx;
  819. display: flex;
  820. align-items: center;
  821. justify-content: center;
  822. .icoimg {
  823. width: 42rpx;
  824. height: 40rpx;
  825. }
  826. }
  827. .icotxt {
  828. font-size: 24rpx;
  829. height: 40rpx;
  830. line-height: 40rpx;
  831. color: rgba(4, 0, 0, 1);
  832. }
  833. }
  834. }
  835. .rightBtn {
  836. flex: 1;
  837. display: flex;
  838. justify-content: center;
  839. align-items: center;
  840. .btnt {
  841. width: 454rpx;
  842. color: #fff;
  843. font-weight: 400;
  844. font-size: 17px;
  845. height: 96rpx;
  846. background-color: rgba(0, 86, 168, 1);
  847. display: flex;
  848. justify-content: center;
  849. align-items: center;
  850. border-radius: 10rpx;
  851. }
  852. .btnt1 {
  853. width: 454rpx;
  854. font-weight: 400;
  855. font-size: 17px;
  856. height: 96rpx;
  857. background-color: rgb(217, 217, 217);
  858. display: flex;
  859. justify-content: center;
  860. align-items: center;
  861. border-radius: 10rpx;
  862. }
  863. }
  864. }
  865. }
  866. </style>