activityDetailNew.vue 21 KB

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