activityDetailNew.vue 24 KB

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