my-popup.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  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" @click="previewImage(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" @click="previewImage(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. <!-- 【赛事活动导航 - 单点】标题 + 赛事图片 + 导航图片(点击打开地图APP进行地点定位) + 文字介绍 -->
  217. <view v-if="item.type == 11" class="swiper-item-view uni-column">
  218. <text class="swiper-item-title" v-html="item.data.title"></text>
  219. <view class="swiper-item-main uni-column">
  220. <image mode="aspectFit" style="height: 100px; margin-top: 15px; margin-bottom: 25px;"
  221. :src="item.data.img">
  222. </image>
  223. <view v-if="item.data.point" class="uni-column" style="margin-bottom: 20px;" @click="dealNavClick(item.data.point)">
  224. <image mode="aspectFit" style="width: 19px; height: 26px;" src="/static/common/nav3.png"></image>
  225. <text class="" style="color: #E60012; font-size: 14px;" >导航前往起点</text>
  226. </view>
  227. <view class="swiper-item-content5">
  228. <view v-if="item.data.content" v-html="item.data.content"></view>
  229. </view>
  230. </view>
  231. <button v-if="index < dataList.length - 1" class="swiper-item-button" @click="swiperNext">继
  232. 续</button>
  233. <button v-else class="swiper-item-button" @click="popupStart">开始挑战</button>
  234. <view class="swiper-item-txtClose" @click="popupClose">关 闭</view>
  235. </view>
  236. </swiper-item>
  237. </swiper>
  238. </uni-popup>
  239. </template>
  240. <script>
  241. import tools from '/common/tools';
  242. // import {
  243. // teamName
  244. // } from '/common/define';
  245. export default {
  246. name: "my-popup",
  247. props: {
  248. dataList: [{}],
  249. acttime: "", // 活动时间
  250. teamType: {
  251. type: Number,
  252. default: -1
  253. },
  254. config: {
  255. type: Object,
  256. default: () => ({
  257. height: ""
  258. })
  259. }
  260. },
  261. emits: ['popup-close', 'noMoreRemindersClick', 'popup-start'],
  262. data() {
  263. return {
  264. swiperCurrent: 0, // swiper当前所在滑块的 index
  265. isOpen: false,
  266. // item: {}
  267. };
  268. },
  269. methods: {
  270. getSwiperStyle() {
  271. let styleStr = "";
  272. if (this.config.height != undefined && this.config.height != "") {
  273. styleStr += `height: ${this.config.height};`;
  274. // console.log("[getSwiperStyle] style:", styleStr);
  275. }
  276. return styleStr;
  277. },
  278. //当前轮播索引
  279. swiperChange(e) {
  280. const curIndex = e.detail.current;
  281. // console.log("swiperChange", curIndex, this.swiperCurrent);
  282. this.swiperCurrent = curIndex;
  283. },
  284. swiperNext() {
  285. this.swiperCurrent++;
  286. },
  287. popupOpen() {
  288. // console.log("[popupOpen] dataList", this.dataList);
  289. if (this.dataList == undefined || this.dataList.length == 0) {
  290. console.log("[popupOpen] dataList为空,禁止弹窗");
  291. return;
  292. }
  293. this.swiperCurrent = 0;
  294. this.$refs.popup.open();
  295. this.isOpen = true;
  296. },
  297. popupClose() {
  298. this.$refs.popup.close();
  299. this.isOpen = false;
  300. this.$emit('popup-close');
  301. },
  302. popupStart() {
  303. this.$refs.popup.close();
  304. this.isOpen = false;
  305. this.$emit('popup-start');
  306. },
  307. fmtTime(timestamp, type = 2) {
  308. return tools.timestampToTime(timestamp * 1000, type);
  309. },
  310. dealNavClick(navPoint) {
  311. const url =
  312. `action://to_map_app?title=${navPoint.name}&latitude=${navPoint.latitude}&longitude=${navPoint.longitude}`;
  313. // window.location.href = url;
  314. tools.appAction(url);
  315. },
  316. dealUrlClick(url) {
  317. if (url != undefined && url.length > 0) {
  318. tools.appAction(url);
  319. }
  320. },
  321. getImageStyle(item) {
  322. let styleStr = "";
  323. let width = "90px";
  324. let height = "90px";
  325. if (item != undefined && item.width != undefined) {
  326. width = item.width;
  327. }
  328. if (item != undefined && item.height != undefined) {
  329. height = item.height;
  330. }
  331. // const width = item.width ?? "90px";
  332. // const height = item.height ?? "90px";
  333. styleStr = `width: ${width}; height: ${height};`;
  334. return styleStr;
  335. },
  336. getImageStyle2(item) {
  337. let styleStr = "";
  338. let height = "237px";
  339. if (item != undefined && item.height != undefined) {
  340. height = item.height;
  341. }
  342. styleStr = `height: ${height}; margin-top: 15px; margin-bottom: 25px;`;
  343. return styleStr;
  344. },
  345. getVideoStyle(item) {
  346. let styleStr = "";
  347. let width = "100%";
  348. let height = "270px";
  349. if (item != undefined && item.width != undefined) {
  350. width = item.width;
  351. }
  352. if (item != undefined && item.height != undefined) {
  353. height = item.height;
  354. }
  355. // const width = item.width ?? "90px";
  356. // const height = item.height ?? "90px";
  357. styleStr = `width: ${width}; height: ${height};`;
  358. return styleStr;
  359. },
  360. getSponsorsLogoStyle(bgurl) {
  361. return `background-image: url("${bgurl}")`;
  362. },
  363. onNoMoreRemindersClick() {
  364. this.$emit('noMoreRemindersClick');
  365. },
  366. videoErrorCallback: function(e) {
  367. console.log('视频错误信息:', e);
  368. // console.log(e.target.errMsg);
  369. uni.showToast({
  370. title: '视频加载出错了',
  371. icon: 'none',
  372. duration: 3000
  373. });
  374. },
  375. previewImage(imgurl) {
  376. uni.previewImage({
  377. showmenu: true,
  378. urls: [imgurl] // 需要预览的图片 HTTP 链接列表
  379. });
  380. },
  381. // getTeamName(teamType, teamIndex) {
  382. // return teamName[teamType][teamIndex];
  383. // },
  384. // onItemClick(item) {
  385. // this.data.item = item
  386. // this.$emit('my-combo-list-click', this.data);
  387. // }
  388. }
  389. }
  390. </script>
  391. <style scoped>
  392. .swiper {
  393. width: 90vw;
  394. height: 439px;
  395. background-color: #FEFBF6;
  396. border-radius: 25px;
  397. }
  398. ::v-deep uni-swiper-item {
  399. overflow: auto;
  400. }
  401. .swiper-item-view {
  402. min-height: 94.3%;
  403. padding-top: 25px;
  404. overflow: auto;
  405. flex-grow: 1;
  406. }
  407. .swiper-item-view-bg {
  408. background-image: url("/static/backgroud/top_colorbar.png"), url("/static/backgroud/oval.png");
  409. background-repeat: no-repeat;
  410. background-position-x: center;
  411. background-position-y: 75px, 190px;
  412. background-size: 80%, 70%;
  413. }
  414. .swiper-item-view-bg2 {
  415. /* background-image: url("/static/backgroud/oval.png");
  416. background-repeat: no-repeat;
  417. background-position-x: center;
  418. background-position-y: 198px;
  419. background-size: 66%; */
  420. }
  421. .swiper-item-topLogo {
  422. width: 100px;
  423. height: 100px;
  424. margin-bottom: 18px;
  425. }
  426. .swiper-item-logo {
  427. width: 100px;
  428. height: 100px;
  429. margin-bottom: 5px;
  430. }
  431. .swiper-item-logoMemo {
  432. font-size: 14px;
  433. color: #FF870E;
  434. margin-bottom: 10px;
  435. }
  436. .swiper-item-bottomLogo {
  437. width: 100px;
  438. height: 100px;
  439. margin-bottom: 30px;
  440. }
  441. .swiper-item-title {
  442. margin-bottom: 10px;
  443. color: #333333;
  444. font-size: 20px;
  445. font-weight: 550;
  446. }
  447. .swiper-item-main {
  448. width: 100%;
  449. flex-grow: 1;
  450. }
  451. .swiper-item-image {
  452. height: 150px;
  453. }
  454. .swiper-item-image2 {
  455. height: 110px;
  456. }
  457. .swiper-item-time {
  458. height: 33px;
  459. margin-top: 10px;
  460. padding: 0 25px;
  461. justify-content: space-evenly;
  462. background-color: white;
  463. border: 0.5px solid;
  464. border-color: #e7e7e7;
  465. border-radius: 20px;
  466. box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.13);
  467. }
  468. .swiper-item-content {
  469. width: 80%;
  470. margin-top: 15px;
  471. justify-content: start;
  472. flex-grow: 1;
  473. color: #333333;
  474. font-weight: 400;
  475. }
  476. .swiper-item-content2 {
  477. width: 80%;
  478. margin-top: 60px;
  479. margin-bottom: 10px;
  480. text-align: center;
  481. color: #333333;
  482. font-size: 13px;
  483. line-height: 40px;
  484. flex-grow: 1;
  485. }
  486. .swiper-item-content3 {
  487. color: #333333;
  488. font-weight: 400;
  489. text-align: center;
  490. }
  491. .swiper-item-content4 {
  492. text-align: center;
  493. color: #333333;
  494. font-size: 12px;
  495. font-weight: 400;
  496. }
  497. .swiper-item-content5 {
  498. width: 80%;
  499. flex-grow: 1;
  500. color: #333333;
  501. font-size: 13px;
  502. font-weight: 400;
  503. line-height: 20px;
  504. overflow-y: scroll;
  505. }
  506. .swiper-item-video {
  507. margin-top: 10px;
  508. margin-bottom: 10px;
  509. }
  510. .swiper-item-pointName {
  511. font-size: 13px;
  512. font-weight: 500;
  513. color: #333333;
  514. }
  515. .swiper-item-couponNum {
  516. font-size: 16px;
  517. font-weight: 500;
  518. color: #383838;
  519. }
  520. .swiper-item-desc {
  521. width: 80%;
  522. font-size: 12px;
  523. font-weight: 400;
  524. color: #818181;
  525. }
  526. ::v-deep li {
  527. margin-bottom: 5px;
  528. }
  529. .swiper-item-message {
  530. width: 80%;
  531. margin-top: 10px;
  532. margin-bottom: 10px;
  533. text-align: left;
  534. color: #333333;
  535. font-size: 13px;
  536. font-weight: 400;
  537. line-height: 20px;
  538. flex-grow: 1;
  539. }
  540. .swiper-item-warn {
  541. width: 80%;
  542. margin-top: 10px;
  543. margin-bottom: 10px;
  544. text-align: left;
  545. color: #333333;
  546. font-size: 13px;
  547. font-weight: 400;
  548. line-height: 20px;
  549. }
  550. .swiper-item-button {
  551. width: 80%;
  552. height: 38px;
  553. margin-bottom: 25px;
  554. color: #ffffff;
  555. line-height: 38px;
  556. background-color: #2e85ec;
  557. border-radius: 27px;
  558. }
  559. .swiper-item-button2 {
  560. width: 50%;
  561. height: 38px;
  562. margin-bottom: 25px;
  563. color: #ffffff;
  564. line-height: 38px;
  565. background-color: #2e85ec;
  566. border-radius: 27px;
  567. }
  568. .swiper-item-txtClose {
  569. width: 50%;
  570. margin-top: -10px;
  571. margin-bottom: 25px;
  572. text-align: center;
  573. color: #383838;
  574. font-size: 16px;
  575. }
  576. .swiper-item-noMoreReminders {
  577. position: absolute;
  578. right: 10px;
  579. width: 80px;
  580. font-size: 12px;
  581. margin-bottom: 25px;
  582. text-align: center;
  583. text-decoration: underline;
  584. }
  585. .acttime {
  586. font-weight: 550;
  587. color: #333333;
  588. font-size: 15px;
  589. }
  590. .clock {
  591. width: 15px;
  592. height: 15px;
  593. margin-right: 10px;
  594. }
  595. .introduce-content {
  596. color: #333333;
  597. font-size: 13px;
  598. font-weight: 400;
  599. line-height: 20px;
  600. }
  601. .nowrap {
  602. white-space: nowrap;
  603. overflow: hidden;
  604. text-overflow: ellipsis;
  605. }
  606. .sponsorsLogo {
  607. position: absolute;
  608. width: 120px;
  609. height: 75px;
  610. left: 18px;
  611. top: 8px;
  612. background-position-x: left;
  613. background-position-y: center;
  614. background-repeat: no-repeat;
  615. background-size: contain;
  616. }
  617. ::v-deep .uni-swiper-dots-horizontal {
  618. bottom: 75px;
  619. }
  620. /* ::v-deep .uni-swiper-dot-active {
  621. background: #ff870e !important;
  622. } */
  623. </style>