activityDetailNew.vue 21 KB

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