my-popup.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. <template>
  2. <uni-popup ref="popup" :mask-click="false" maskBackgroundColor="rgba(0, 0, 0, 0.6)">
  3. <swiper ref="swiper" class="swiper" :style="getSwiperStyle()" :current="swiperCurrent"
  4. @change="swiperChange" :indicator-dots="dataList.length > 1" indicator-active-color="rgba(46, 133, 236, 1)"
  5. :autoplay="false" :interval="5000">
  6. <swiper-item v-for="(item, index) in dataList" :key="index">
  7. <!-- 标题 + 图片 + 活动时间 + 活动简介 -->
  8. <view v-if="item.type == 1" class="swiper-item-view uni-column">
  9. <text class="swiper-item-title" v-html="item.data.title"></text>
  10. <view class="swiper-item-main uni-column uni-jcc">
  11. <image v-if="item.data.img" mode="aspectFit" class="swiper-item-image" :src="item.data.img"></image>
  12. <image v-if="item.data.logo" mode="aspectFit" class="swiper-item-image" :style="getImageStyle(item.data.logo)" :src="item.data.logo.src"></image>
  13. <view class="swiper-item-time uni-row">
  14. <image mode="aspectFit" class="clock" src="/static/default/clock.png"></image>
  15. <text class="acttime">{{acttime}}</text>
  16. </view>
  17. <view class="swiper-item-content uni-column">
  18. <text class="introduce-content" v-html="item.data.content"></text>
  19. <view v-if="item.data.imageList" class="uni-row uni-jcse" style="margin-top: 0px;">
  20. <image v-for="(item, index) in item.data.imageList" :key="index" mode="aspectFit"
  21. :style="getImageStyle(item)" :src="item.src"></image>
  22. </view>
  23. </view>
  24. </view>
  25. <button v-if="index < dataList.length - 1" class="swiper-item-button" @click="swiperNext">继
  26. 续</button>
  27. <button v-else class="swiper-item-button" @click="popupClose">确 定</button>
  28. </view>
  29. <!-- 标题 + 图片 -->
  30. <view v-if="item.type == 2" class="swiper-item-view uni-column">
  31. <text class="swiper-item-title" v-html="item.data.title"></text>
  32. <view class="swiper-item-main uni-column">
  33. <image mode="aspectFit" :style="getImageStyle2(item.data.imgParam)"
  34. :src="item.data.img">
  35. </image>
  36. </view>
  37. <button v-if="index < dataList.length - 1" class="swiper-item-button" @click="swiperNext">继
  38. 续</button>
  39. <button v-else class="swiper-item-button" @click="popupClose">确 定</button>
  40. </view>
  41. <!-- 【成就-奖牌】 标题 + 图片 + 活动简介 -->
  42. <view v-if="item.type == 3" class="swiper-item-view swiper-item-view-bg uni-column">
  43. <text class="swiper-item-title" v-html="item.data.title"></text>
  44. <view class="swiper-item-main uni-column uni-jcse">
  45. <image mode="aspectFit" style="height: 140px; margin-top: 25px;" :src="item.data.img"></image>
  46. <text class="swiper-item-content2" v-html="item.data.content"></text>
  47. </view>
  48. <button v-if="index < dataList.length - 1" class="swiper-item-button" @click="swiperNext">继
  49. 续</button>
  50. <button v-else class="swiper-item-button" @click="popupClose">确 定</button>
  51. </view>
  52. <!-- 【成就-兑换】 标题 + 图片 + 二维码 -->
  53. <view v-if="item.type == 4" class="swiper-item-view swiper-item-view-bg2 uni-jct uni-column">
  54. <view v-if="item.data.sponsorsLogo" class="sponsorsLogo" :style="getSponsorsLogoStyle(item.data.sponsorsLogo)"></view>
  55. <text class="swiper-item-title" v-html="item.data.title"></text>
  56. <view class="swiper-item-main uni-column uni-jcse">
  57. <view class="uni-column uni-jcse" style="height: 50px;">
  58. <text class="swiper-item-content3" v-html="item.data.content"></text>
  59. <text class="swiper-item-content4">【{{item.data.sourceName}}】</text>
  60. </view>
  61. <image class="swiper-item-image2" mode="aspectFit" :src="item.data.img"></image>
  62. <template v-if="[1,3].includes(item.data.exState)">
  63. <!-- verfType: 兑换券展示类型 1 本系统核销 2 赞助商提供码核销 3 赞助商不提供码核销 -->
  64. <uv-qrcode v-if="item.data.verfType==1" ref="qrcode" size="100px" :value="item.data.qrCode">
  65. <!-- <template v-slot:loading>
  66. <text style="color: green;">loading...</text>
  67. </template> -->
  68. </uv-qrcode>
  69. <view v-if="item.data.verfType==2" class="swiper-item-couponNum">券码:{{item.data.otherSerCode}}</view>
  70. <view v-if="item.data.expireTime > 0" class="swiper-item-content4" style="color: #ED0000;">( 有效期至
  71. {{fmtTime(item.data.expireTime, 1)}}
  72. <span v-if="item.data.exState == 3" style="color: #ffaa00; font-size: bold;">已临期</span>
  73. )
  74. </view>
  75. <view v-if="item.data.cDesc.length > 0" class="swiper-item-desc" v-html="item.data.cDesc"></view>
  76. </template>
  77. <view v-if="item.data.exState == 2" class="uni-column uni-jcse" style="height: 100px;">
  78. <text style="color: red;">已兑换</text>
  79. <text class="swiper-item-content4">( 兑换时间 {{fmtTime(item.data.exTime, 3)}} )</text>
  80. </view>
  81. <view v-if="item.data.exState == 4" class="uni-column uni-jcse" style="height: 100px;">
  82. <text style="color: red;">已过期</text>
  83. <text v-if="item.data.expireTime > 0" class="swiper-item-content4">( 过期时间
  84. {{fmtTime(item.data.expireTime, 1)}} )</text>
  85. </view>
  86. </view>
  87. <button v-if="index < dataList.length - 1" class="swiper-item-button" @click="swiperNext">继
  88. 续</button>
  89. <button v-else class="swiper-item-button" @click="popupClose">关 闭</button>
  90. </view>
  91. <!-- 【兑换地点 - 单点】标题 + 图片(点击图片打开地图APP进行地点定位) -->
  92. <view v-if="item.type == 5" class="swiper-item-view uni-column">
  93. <text class="swiper-item-title" v-html="item.data.title"></text>
  94. <view class="swiper-item-main uni-column">
  95. <image mode="aspectFit" style="height: 237px; margin-top: 15px; margin-bottom: 25px;"
  96. :src="item.data.img" @click="dealNavClick(item.data.point)">
  97. </image>
  98. </view>
  99. <button v-if="index < dataList.length - 1" class="swiper-item-button" @click="swiperNext">继
  100. 续</button>
  101. <button v-else class="swiper-item-button" @click="popupClose">确 定</button>
  102. </view>
  103. <!-- 通知 -->
  104. <view v-if="item.type == 6" class="swiper-item-view uni-column">
  105. <text class="swiper-item-title" v-html="item.data.title"></text>
  106. <view class="swiper-item-main uni-column uni-jcse">
  107. <!-- mqType 消息类型 2:卡片图片 3:卡片文字 -->
  108. <image v-if="item.data.mqType == 2" mode="aspectFit"
  109. style="height: 237px; margin-bottom: 25px;" :src="item.data.message">
  110. </image>
  111. <text v-if="item.data.mqType == 3" class="swiper-item-message"
  112. v-html="item.data.message"></text>
  113. </view>
  114. <button v-if="index < dataList.length - 1" class="swiper-item-button" style="width: 50%;" @click="swiperNext">继
  115. 续</button>
  116. <view v-else class="uni-row" style="width: 100%;">
  117. <button class="swiper-item-button" style="width: 50%;" @click="popupClose">确 定</button>
  118. <text class="swiper-item-noMoreReminders" @click="onNoMoreRemindersClick">不再提醒</text>
  119. </view>
  120. </view>
  121. <!-- 标题 + HTML内容 + 图片(可为空) -->
  122. <view v-if="item.type == 7" class="swiper-item-view uni-column">
  123. <image v-if="item.data.topLogo" class="swiper-item-topLogo"
  124. :style="getImageStyle(item.data.topLogo)" mode="aspectFit" :src="item.data.topLogo.src"></image>
  125. <text class="swiper-item-title" v-html="item.data.title"></text>
  126. <image v-if="item.data.logo" class="swiper-item-logo"
  127. :style="getImageStyle(item.data.logo)" mode="aspectFit" :src="item.data.logo.src"></image>
  128. <text v-if="item.data.logo && item.data.logo.memo" class="swiper-item-logoMemo" v-html="item.data.logo.memo"></text>
  129. <view class="swiper-item-main uni-column uni-jcse">
  130. <view class="swiper-item-content5">
  131. <view v-if="item.data.content" v-html="item.data.content"></view>
  132. <view v-if="item.data.imageList" class="uni-row uni-jcse" style="margin-top: 20px;">
  133. <image v-for="(item, index) in item.data.imageList" :key="index" mode="aspectFit"
  134. :style="getImageStyle(item)" :src="item.src"></image>
  135. </view>
  136. <view v-if="item.data.memo" style="padding-top: 10px;" v-html="item.data.memo"></view>
  137. <view v-if="item.data.pointList" style="margin-top: 15px;">
  138. <view class="uni-row uni-jcsb" style="width: 96%; line-height: 22px;" v-for="(point, index) in item.data.pointList" :key="index">
  139. <view class="uni-row uni-jct" style="width: 80%;">
  140. <!-- <text v-if="point.map" class="nowrap" v-html="point.map + ':'"></text> -->
  141. <!-- <text v-if="point.name" class="swiper-item-pointName nowrap" v-html="(point.map ? (point.map + ':' + point.name) : point.name)"></text> -->
  142. <text v-if="point.tel" class="swiper-item-pointName nowrap" v-html="point.tel"></text>
  143. </view>
  144. <view class="uni-row uni-jcsa" style="width: 20%;" @click="dealNavClick(point)">
  145. <image mode="aspectFit" style="width: 10px; height: 15px;" src="/static/common/nav2.png"></image>
  146. <text class="" style="color: #E60012; font-size: 14px;" >导航</text>
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. </view>
  152. <image v-if="item.data.bottomLogo" class="swiper-item-bottomLogo" mode="aspectFit"
  153. :style="getImageStyle(item.data.bottomLogo)" :src="item.data.bottomLogo.src"></image>
  154. <button v-if="index < dataList.length - 1" class="swiper-item-button" @click="swiperNext">继
  155. 续</button>
  156. <button v-else class="swiper-item-button" @click="popupClose">确 定</button>
  157. </view>
  158. <!-- 【兑换地点 - 多点】标题 + 头部图片 + 头部memo + 多点导航列表 + 底部memo -->
  159. <view v-if="item.type == 8" class="swiper-item-view uni-column">
  160. <text class="swiper-item-title" v-html="item.data.title"></text>
  161. <image v-if="item.data.topImg" class="" :style="getImageStyle(item.data.topImg)" mode="aspectFit" :src="item.data.topImg.src"></image>
  162. <view v-if="item.data.topMemo" v-html="item.data.topMemo"></view>
  163. <view class="swiper-item-main uni-column uni-jcse">
  164. <view class="swiper-item-content5">
  165. <view v-if="item.data.content" v-html="item.data.content"></view>
  166. <view class="uni-column uni-jcse" style="margin-top: 20px;">
  167. <view class="uni-row uni-jcsb" style="width: 96%; line-height: 30px;" v-for="(point, index) in item.data.pointList" :key="index">
  168. <view class="uni-row uni-jct" style="width: 80%;">
  169. <!-- <text v-if="point.map" class="nowrap" v-html="point.map + ':'"></text> -->
  170. <text v-if="point.name" class="nowrap" v-html="point.map ? (point.map + ':' + point.name) : point.name"></text>
  171. </view>
  172. <view class="uni-row uni-jcsa" style="width: 20%;" @click="dealNavClick(point)">
  173. <image mode="aspectFit" style="width: 10px; height: 15px;" src="/static/common/nav2.png"></image>
  174. <text class="" style="color: #E60012; font-size: 14px;" >导航</text>
  175. </view>
  176. </view>
  177. </view>
  178. <view v-if="item.data.bottomMemo" style="padding-top: 10px;" v-html="item.data.bottomMemo" @click="dealUrlClick(item.data.bottomMemoUrl)"></view>
  179. </view>
  180. </view>
  181. <button v-if="index < dataList.length - 1" class="swiper-item-button" @click="swiperNext">继
  182. 续</button>
  183. <button v-else class="swiper-item-button" @click="popupClose">确 定</button>
  184. </view>
  185. <!-- 警告 -->
  186. <view v-if="item.type == 9" class="swiper-item-view uni-column">
  187. <text class="swiper-item-title" v-html="item.data.title"></text>
  188. <view class="swiper-item-main uni-column uni-jct">
  189. <view class="uni-row">
  190. <image mode="aspectFit" style="width: 58px; height: 64px; margin: 5px 15px;" :src="item.data.iconUrl"></image>
  191. <text style="margin-right: 5px; font-size: 12px; margin-top: 40px;">x</text>
  192. <text style="font-size: 18px; margin-top: 40px;">{{item.data.iconNum}}</text>
  193. </view>
  194. <text class="swiper-item-warn" v-html="item.data.message"></text>
  195. <image mode="aspectFit" style="width: 100px; height: 100px;" :src="item.data.qrCodeUrl"></image>
  196. </view>
  197. <button v-if="index < dataList.length - 1" class="swiper-item-button" @click="swiperNext">继
  198. 续</button>
  199. <button v-else class="swiper-item-button" @click="popupClose">确 定</button>
  200. </view>
  201. <!-- 视频 -->
  202. <view v-if="item.type == 10" class="swiper-item-view uni-column">
  203. <text class="swiper-item-title" v-html="item.data.title"></text>
  204. <view class="swiper-item-main uni-column uni-jct">
  205. <video id="myVideo" class="swiper-item-video" :style="getVideoStyle(item.data.video)" :src="item.data.video.src" :poster="item.data.video.poster" :http-cache="true"
  206. @error="videoErrorCallback" :danmu-list="item.data.video.danmuList" enable-danmu danmu-btn>
  207. </video>
  208. <view class="swiper-item-content5">
  209. <view v-if="item.data.content" v-html="item.data.content"></view>
  210. </view>
  211. </view>
  212. <button v-if="index < dataList.length - 1" class="swiper-item-button" @click="swiperNext">继
  213. 续</button>
  214. <button v-else class="swiper-item-button" @click="popupClose">确 定</button>
  215. </view>
  216. </swiper-item>
  217. </swiper>
  218. </uni-popup>
  219. </template>
  220. <script>
  221. import tools from '/common/tools';
  222. // import {
  223. // teamName
  224. // } from '/common/define';
  225. export default {
  226. name: "my-popup",
  227. props: {
  228. dataList: [{}],
  229. acttime: "", // 活动时间
  230. teamType: {
  231. type: Number,
  232. default: -1
  233. },
  234. config: {
  235. type: Object,
  236. default: () => ({
  237. height: ""
  238. })
  239. }
  240. },
  241. emits: ['popup-close', 'noMoreRemindersClick'],
  242. data() {
  243. return {
  244. swiperCurrent: 0, // swiper当前所在滑块的 index
  245. isOpen: false,
  246. // item: {}
  247. };
  248. },
  249. methods: {
  250. getSwiperStyle() {
  251. let styleStr = "";
  252. if (this.config.height != undefined && this.config.height != "") {
  253. styleStr += `height: ${this.config.height};`;
  254. // console.log("[getSwiperStyle] style:", styleStr);
  255. }
  256. return styleStr;
  257. },
  258. //当前轮播索引
  259. swiperChange(e) {
  260. const curIndex = e.detail.current;
  261. // console.log("swiperChange", curIndex, this.swiperCurrent);
  262. this.swiperCurrent = curIndex;
  263. },
  264. swiperNext() {
  265. this.swiperCurrent++;
  266. },
  267. popupOpen() {
  268. if (this.dataList.length == 0) {
  269. console.log("[popupOpen] dataList为空,禁止弹窗");
  270. return;
  271. }
  272. this.swiperCurrent = 0;
  273. this.$refs.popup.open();
  274. this.isOpen = true;
  275. },
  276. popupClose() {
  277. this.$refs.popup.close();
  278. this.isOpen = false;
  279. this.$emit('popup-close');
  280. },
  281. fmtTime(timestamp, type = 2) {
  282. return tools.timestampToTime(timestamp * 1000, type);
  283. },
  284. dealNavClick(navPoint) {
  285. const url =
  286. `action://to_map_app?title=${navPoint.name}&latitude=${navPoint.latitude}&longitude=${navPoint.longitude}`;
  287. // window.location.href = url;
  288. tools.appAction(url);
  289. },
  290. dealUrlClick(url) {
  291. if (url != undefined && url.length > 0) {
  292. tools.appAction(url);
  293. }
  294. },
  295. getImageStyle(item) {
  296. let styleStr = "";
  297. let width = "90px";
  298. let height = "90px";
  299. if (item != undefined && item.width != undefined) {
  300. width = item.width;
  301. }
  302. if (item != undefined && item.height != undefined) {
  303. height = item.height;
  304. }
  305. // const width = item.width ?? "90px";
  306. // const height = item.height ?? "90px";
  307. styleStr = `width: ${width}; height: ${height};`;
  308. return styleStr;
  309. },
  310. getImageStyle2(item) {
  311. let styleStr = "";
  312. let height = "237px";
  313. if (item != undefined && item.height != undefined) {
  314. height = item.height;
  315. }
  316. styleStr = `height: ${height}; margin-top: 15px; margin-bottom: 25px;`;
  317. return styleStr;
  318. },
  319. getVideoStyle(item) {
  320. let styleStr = "";
  321. let width = "100%";
  322. let height = "270px";
  323. if (item != undefined && item.width != undefined) {
  324. width = item.width;
  325. }
  326. if (item != undefined && item.height != undefined) {
  327. height = item.height;
  328. }
  329. // const width = item.width ?? "90px";
  330. // const height = item.height ?? "90px";
  331. styleStr = `width: ${width}; height: ${height};`;
  332. return styleStr;
  333. },
  334. getSponsorsLogoStyle(bgurl) {
  335. return `background-image: url("${bgurl}")`;
  336. },
  337. onNoMoreRemindersClick() {
  338. this.$emit('noMoreRemindersClick');
  339. },
  340. videoErrorCallback: function(e) {
  341. console.log('视频错误信息:', e);
  342. // console.log(e.target.errMsg);
  343. uni.showToast({
  344. title: '视频加载出错了',
  345. icon: 'none',
  346. duration: 3000
  347. });
  348. },
  349. // getTeamName(teamType, teamIndex) {
  350. // return teamName[teamType][teamIndex];
  351. // },
  352. // onItemClick(item) {
  353. // this.data.item = item
  354. // this.$emit('my-combo-list-click', this.data);
  355. // }
  356. }
  357. }
  358. </script>
  359. <style lang="scss" scoped>
  360. .swiper {
  361. width: 90vw;
  362. height: 439px;
  363. background-color: #FEFBF6;
  364. border-radius: 25px;
  365. }
  366. ::v-deep uni-swiper-item {
  367. overflow: auto;
  368. }
  369. .swiper-item-view {
  370. // min-height: 95%;
  371. min-height: 94.3%;
  372. padding-top: 25px;
  373. overflow: auto;
  374. flex-grow: 1;
  375. // justify-content: space-between;
  376. }
  377. .swiper-item-view-bg {
  378. background-image: url("/static/backgroud/top_colorbar.png"), url("/static/backgroud/oval.png");
  379. background-repeat: no-repeat;
  380. background-position-x: center;
  381. background-position-y: 75px, 190px;
  382. background-size: 80%, 70%;
  383. }
  384. .swiper-item-view-bg2 {
  385. // background-image: url("/static/backgroud/oval.png");
  386. // background-repeat: no-repeat;
  387. // background-position-x: center;
  388. // background-position-y: 198px;
  389. // background-size: 66%;
  390. }
  391. .swiper-item-topLogo {
  392. width: 100px;
  393. height: 100px;
  394. margin-bottom: 18px;
  395. }
  396. .swiper-item-logo {
  397. width: 100px;
  398. height: 100px;
  399. margin-bottom: 5px;
  400. }
  401. .swiper-item-logoMemo {
  402. font-size: 14px;
  403. color: #FF870E;
  404. margin-bottom: 10px;
  405. }
  406. .swiper-item-bottomLogo {
  407. width: 100px;
  408. height: 100px;
  409. margin-bottom: 30px;
  410. }
  411. .swiper-item-title {
  412. margin-bottom: 10px;
  413. color: #333333;
  414. font-size: 20px;
  415. font-weight: 550;
  416. }
  417. .swiper-item-main {
  418. width: 100%;
  419. flex-grow: 1;
  420. }
  421. .swiper-item-image {
  422. height: 150px;
  423. }
  424. .swiper-item-image2 {
  425. height: 110px;
  426. // margin-top: 5px;
  427. }
  428. .swiper-item-time {
  429. height: 33px;
  430. margin-top: 10px;
  431. padding: 0 25px;
  432. justify-content: space-evenly;
  433. background-color: white;
  434. border: 0.5px solid;
  435. border-color: #e7e7e7;
  436. border-radius: 20px;
  437. box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.13);
  438. }
  439. .swiper-item-content {
  440. width: 80%;
  441. margin-top: 15px;
  442. // margin-bottom: 30px;
  443. justify-content: start;
  444. flex-grow: 1;
  445. color: #333333;
  446. font-weight: 400;
  447. }
  448. .swiper-item-content2 {
  449. width: 80%;
  450. margin-top: 60px;
  451. margin-bottom: 10px;
  452. // justify-content: center;
  453. text-align: center;
  454. color: #333333;
  455. font-size: 13px;
  456. line-height: 40px;
  457. flex-grow: 1;
  458. }
  459. .swiper-item-content3 {
  460. // width: 80%;
  461. // margin-top: 5px;
  462. color: #333333;
  463. font-weight: 400;
  464. text-align: center;
  465. }
  466. .swiper-item-content4 {
  467. // width: 80%;
  468. text-align: center;
  469. color: #333333;
  470. font-size: 12px;
  471. font-weight: 400;
  472. }
  473. .swiper-item-content5 {
  474. width: 80%;
  475. flex-grow: 1;
  476. color: #333333;
  477. font-size: 13px;
  478. font-weight: 400;
  479. line-height: 20px;
  480. overflow-y: scroll;
  481. }
  482. .swiper-item-video {
  483. margin-top: 10px;
  484. margin-bottom: 10px;
  485. }
  486. .swiper-item-pointName {
  487. font-size: 13px;
  488. font-weight: 500;
  489. color: #333333;
  490. }
  491. .swiper-item-couponNum {
  492. font-size: 16px;
  493. font-weight: 500;
  494. color: #383838;
  495. }
  496. .swiper-item-desc {
  497. width: 80%;
  498. font-size: 12px;
  499. font-weight: 400;
  500. color: #818181;
  501. }
  502. ::v-deep li {
  503. margin-bottom: 5px;
  504. }
  505. .swiper-item-message {
  506. width: 80%;
  507. margin-top: 10px;
  508. margin-bottom: 10px;
  509. // justify-content: center;
  510. text-align: left;
  511. color: #333333;
  512. font-size: 13px;
  513. font-weight: 400;
  514. line-height: 20px;
  515. flex-grow: 1;
  516. }
  517. .swiper-item-warn {
  518. width: 80%;
  519. margin-top: 10px;
  520. margin-bottom: 10px;
  521. // justify-content: center;
  522. text-align: left;
  523. color: #333333;
  524. font-size: 13px;
  525. font-weight: 400;
  526. line-height: 20px;
  527. // flex-grow: 1;
  528. }
  529. .swiper-item-button {
  530. width: 80%;
  531. height: 38px;
  532. margin-bottom: 25px;
  533. color: #ffffff;
  534. /* font-weight: bold; */
  535. line-height: 38px;
  536. background-color: #2e85ec;
  537. border-radius: 27px;
  538. }
  539. .swiper-item-button2 {
  540. width: 50%;
  541. height: 38px;
  542. margin-bottom: 25px;
  543. color: #ffffff;
  544. /* font-weight: bold; */
  545. line-height: 38px;
  546. background-color: #2e85ec;
  547. border-radius: 27px;
  548. }
  549. .swiper-item-noMoreReminders {
  550. position: absolute;
  551. right: 10px;
  552. width: 80px;
  553. font-size: 12px;
  554. margin-bottom: 25px;
  555. text-align: center;
  556. text-decoration: underline;
  557. }
  558. .acttime {
  559. font-weight: 550;
  560. color: #333333;
  561. font-size: 15px;
  562. }
  563. .clock {
  564. width: 15px;
  565. height: 15px;
  566. margin-right: 10px;
  567. }
  568. .introduce-content {
  569. color: #333333;
  570. font-size: 13px;
  571. font-weight: 400;
  572. line-height: 20px;
  573. // flex-grow: 1;
  574. }
  575. .nowrap {
  576. white-space: nowrap;
  577. overflow: hidden;
  578. text-overflow: ellipsis;
  579. }
  580. .sponsorsLogo {
  581. position: absolute;
  582. width: 120px;
  583. // width: 75px;
  584. height: 75px;
  585. left: 18px;
  586. top: 8px;
  587. background-position-x: left;
  588. background-position-y: center;
  589. background-repeat: no-repeat;
  590. background-size: contain;
  591. // background-size: 100% auto;
  592. }
  593. ::v-deep .uni-swiper-dots-horizontal {
  594. bottom: 75px;
  595. }
  596. // ::v-deep .uni-swiper-dot-active {
  597. // background: #ff870e !important;
  598. // }
  599. </style>