activity_deatil.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <template>
  2. <view class="content">
  3. <view class="header">
  4. <view class="title-read">
  5. <view class="title">
  6. 400场讲座,200多门课程,免费送上门!就等你来申请啦~
  7. </view>
  8. <view class="read">阅读量 123</view>
  9. </view>
  10. <view class="header-image">
  11. <image src="/static/activity/u1104.png" alt="" />
  12. </view>
  13. </view>
  14. <view class="active-deatil">
  15. <ul>
  16. <li>
  17. <p class="name">活动时间</p>
  18. <p class="deatil-content">2021.08.20 14:00 - 2021.08.30 17:00</p>
  19. </li>
  20. <li>
  21. <p class="name">活动类型</p>
  22. <p class="deatil-content">线上</p>
  23. </li>
  24. <li>
  25. <p class="name">主办方</p>
  26. <p class="deatil-content">区人力资源局</p>
  27. </li>
  28. </ul>
  29. </view>
  30. <view class="rich">
  31. <activityRichCard :model="textModel" :isFold="true" />
  32. </view>
  33. <view class="share-box">
  34. <view class="share">
  35. <view class="shareCount">17</view>
  36. <image src="../../static/share_icon.png"></image>
  37. </view>
  38. <view class="button"
  39. ><button @click="signUpActivity">活动进行中</button></view
  40. >
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. import md5 from "@/common/md5.js";
  46. import activity_rich_card from "../policy/policy_rich_card";
  47. export default {
  48. components: {
  49. activityRichCard: activity_rich_card,
  50. },
  51. data() {
  52. return {
  53. id: "",
  54. model: {
  55. title: "",
  56. read: 0,
  57. url: "",
  58. date: "",
  59. type: "",
  60. way: "",
  61. share: 0,
  62. activiteState: "",
  63. },
  64. textModel: {
  65. title: "活动内容",
  66. text:
  67. "<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;</strong>2021QQ名人赛第二季全明星王牌赛从开战至今便火爆出圈、收获超高关注度,明星嘉宾与主播联袂征战,激烈对抗燃爆整个电竞赛场;豪华的阵容加上新奇玩法,缔造全场高能的视觉盛宴!生而为战,精彩不断,如今第五期比赛余热未散,9月25日下午13:00的第六期比赛即将高能来袭!</p><p><br></p><p><strong>&nbsp;&nbsp;&nbsp;&nbsp;此外,在直播期间,还有Airpods pro、西伯利亚耳机、QQ年费黄钻、会员、绿钻以及白鹤梁神女,乞巧织情,战令币等多款礼品在直播间在线放送,一定不要错过咯~</strong></p><p>&nbsp;</p><p><strong>&nbsp;&nbsp;&nbsp;“奶味甜豆”张星特遇上“水系男孩”俞更寅!</strong></p><p>&nbsp;&nbsp;&nbsp;&nbsp;本次全明星王牌赛王者专场第六期到场的明星嘉宾是张星特与俞更寅,两位实力vocal男神将在峡谷相遇,开启实力峡谷对决!</p><p>&nbsp;&nbsp;&nbsp;&nbsp;本期红方阵营出战的是被称为“奶味甜豆”的张星特,舞台上的他用自己迷人的声音和灿烂的微笑收获了不少观众的青睐,这个像星星一样闪闪发光的男孩,在生活中也是一个爱撒娇的“小甜豆”哦,期待他这次可以在展示自己电竞实力的同时也能“萌翻峡谷”~</p><p>&nbsp;&nbsp;&nbsp;&nbsp;本期蓝方阵营出战的是被称为“水系男孩”的俞更寅,他凭着自己对音乐的热爱,坚定地踏上了追梦之旅,用自己天籁般的嗓音治愈着观众,创造着一个又一个奇迹,当这个无畏逐梦的男孩来到峡谷,势必会给我们创造无限惊喜!</p><p>&nbsp;&nbsp;&nbsp;&nbsp;两位实力vocal男神降临峡谷,不仅能欣赏他们精彩的游戏技术还能看到他们“彪歌”“彪高音”,一起期待吧!</p><p><br></p><p><br></p><p><strong>&nbsp;&nbsp;&nbsp;&nbsp;打野天花板清清vs 8国服主播菜咪,实力与人气之争!</strong></p><p>&nbsp;&nbsp;&nbsp;&nbsp;本期我们还邀请到了两位技术流主播清清和菜咪。其中清清搭档张星特作为红方阵营,而菜咪搭档俞更寅作为蓝方阵营。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;作为拥有着国服最高战力曜的清清,一直是打野天花板的存在,这位教学殿堂级主播,素有“虎牙清清曜无敌”的美誉,其操作绝对值得一看;而拥有着双系统8国服的菜咪,一直凭借着自己超高的颜值和高超的辅助技术深受玩家喜爱,是人气爆火的实力派,其粉丝美称“菜咪不菜,峡谷打怪”!</p><p><br></p><p><br></p><p>&nbsp;&nbsp;&nbsp;&nbsp;除此之外,我们还邀请到了仙染、名辞、 汤汤、耀宇、乔妹等6位虎牙人气主播作为线上嘉宾,精兵强将在峡谷一决高下!</p><p>&nbsp;&nbsp;&nbsp;&nbsp;强强对决,到底红蓝双方谁能脱颖而出?记得关注9月25日下午13:00的2021QQ名人赛第二季全明星王牌赛第六期,届时将会为大家揭晓答案。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;2021QQ名人赛-虎牙直播全明星联赛,作为一档王牌明星电竞对抗赛事,由腾讯QQ主办,QQ游戏中心、QQ空间、QQicon联合主办,由虎牙直播独家直播呈现,携手战略合作伙伴先知电竞打造的全明星电竞赛事。赛事以王者荣耀、和平精英等热门游戏为比赛项目,聚合众多人气明星及游戏KOL进行游戏竞技。青春热血,生而为战,王牌聚集,开战无敌!</p><p>&nbsp;&nbsp;&nbsp;&nbsp;明星嘉宾携手知名主播在峡谷相约对战,精彩刺激的红蓝对决,现场互动玩法升级,请持续关注2021QQ名人赛第二季全明星王牌赛!</p><p>&nbsp;</p>",
  68. },
  69. };
  70. },
  71. onLoad(op) {
  72. this.id = op.id;
  73. // this.getActivityDeatil();
  74. },
  75. methods: {
  76. getActivityDeatil() {
  77. let md5Sign = md5(
  78. "method=" +
  79. "common" +
  80. "&timestamp=" +
  81. getApp().globalData.globalTimestamp +
  82. "&secret=" +
  83. getApp().globalData.secret
  84. );
  85. let url =
  86. getApp().globalData.shareUrl +
  87. "api/api.php" +
  88. "?method=common&source=activity&action=info_by_id&timestamp=" +
  89. getApp().globalData.globalTimestamp +
  90. "&sign=" +
  91. md5Sign;
  92. let postData = {
  93. id: this.id,
  94. };
  95. //获取文章
  96. uni.request({
  97. url: url,
  98. method: "POST",
  99. header: {
  100. "content-type": "application/x-www-form-urlencoded",
  101. },
  102. data: postData,
  103. success: (res) => {
  104. console.log(res);
  105. if (res.data.code === 200) {
  106. this.getRich();
  107. }
  108. },
  109. fail: () => {
  110. console.log("连接失败");
  111. },
  112. });
  113. },
  114. getRich() {
  115. uni.request({
  116. url:
  117. getApp().globalData.shareUrl +
  118. `content/business/${Math.floor(this.id / 1000)}/${this.id}.html`,
  119. method: "GET",
  120. header: {
  121. "content-type": "application/x-www-form-urlencoded",
  122. },
  123. success: (res) => {
  124. console.log(res);
  125. if (res.statusCode === 200) {
  126. this.model.artical = res.data;
  127. }
  128. },
  129. fail: () => {
  130. console.log("连接失败");
  131. },
  132. });
  133. },
  134. signUpActivity() {
  135. let md5Sign = md5(
  136. "method=" +
  137. "common" +
  138. "&timestamp=" +
  139. getApp().globalData.globalTimestamp +
  140. "&secret=" +
  141. getApp().globalData.secret
  142. );
  143. let url =
  144. getApp().globalData.shareUrl +
  145. "api/api.php" +
  146. "?method=common&source=activity&action=active&timestamp=" +
  147. getApp().globalData.globalTimestamp +
  148. "&sign=" +
  149. md5Sign;
  150. let postData = {
  151. openId: getApp().globalData.open_id,
  152. id: this.id,
  153. };
  154. uni.request({
  155. url: url,
  156. method: "POST",
  157. header: {
  158. "content-type": "application/x-www-form-urlencoded",
  159. },
  160. data: postData,
  161. success: (res) => {
  162. console.log(res);
  163. },
  164. fail: () => {
  165. console.log("连接失败");
  166. },
  167. });
  168. },
  169. },
  170. };
  171. </script>
  172. <style lang="scss" scoped>
  173. .content {
  174. display: flex;
  175. flex-direction: column;
  176. .header {
  177. display: flex;
  178. height: 150rpx;
  179. padding: 20rpx;
  180. .title-read {
  181. height: 100%;
  182. display: flex;
  183. flex-direction: column;
  184. justify-content: space-evenly;
  185. .title {
  186. font-weight: 600;
  187. letter-spacing: 2rpx;
  188. font-size: 32rpx;
  189. }
  190. .read {
  191. margin-top: 20rpx;
  192. font-size: 22rpx;
  193. color: $uni-text-color-grey;
  194. }
  195. }
  196. .header-image {
  197. height: 100%;
  198. width: 50%;
  199. image {
  200. width: 100%;
  201. height: 100%;
  202. }
  203. }
  204. }
  205. .active-deatil {
  206. padding: 20rpx;
  207. ul {
  208. padding: 30rpx;
  209. box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
  210. border-radius: 32rpx;
  211. li {
  212. margin-bottom: 30rpx;
  213. list-style: none;
  214. .name {
  215. margin-bottom: 10rpx;
  216. font-size: 30rpx;
  217. color: $uni-text-color-grey;
  218. }
  219. .deatil-content {
  220. font-size: 27rpx;
  221. }
  222. }
  223. }
  224. }
  225. .rich {
  226. margin-bottom: 150rpx;
  227. padding: 20rpx;
  228. }
  229. .share-box {
  230. box-sizing: border-box;
  231. height: 150rpx;
  232. width: 100%;
  233. align-items: center;
  234. justify-content: space-evenly;
  235. position: fixed;
  236. bottom: 0;
  237. display: flex;
  238. background: #ffffff;
  239. .share {
  240. display: flex;
  241. justify-content: center;
  242. align-items: center;
  243. width: 50rpx;
  244. height: 50rpx;
  245. position: relative;
  246. image {
  247. width: 100%;
  248. height: 100%;
  249. }
  250. .shareCount {
  251. display: flex;
  252. justify-content: center;
  253. align-items: center;
  254. position: absolute;
  255. top: -30%;
  256. right: -30%;
  257. color: #ffffff;
  258. height: 30rpx;
  259. width: 30rpx;
  260. padding: 3rpx;
  261. font-size: 16rpx;
  262. border-radius: 50%;
  263. background: #fe3637;
  264. }
  265. }
  266. .button {
  267. height: 100rpx;
  268. width: 70%;
  269. display: flex;
  270. justify-content: center;
  271. button {
  272. width: 80%;
  273. height: 90%;
  274. border: 1px solid #00a8ea;
  275. outline: none;
  276. background: none;
  277. color: #00a8ea;
  278. }
  279. }
  280. }
  281. }
  282. </style>