index.vue 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. <template>
  2. <div class="page">
  3. <div class="page-top"></div>
  4. <div class="page-content">
  5. <div class="content">
  6. <div class="title">赛事活动介绍</div>
  7. <dl>
  8. <dt><div>活动介绍</div></dt>
  9. <dd>
  10. 采美平台和云进通在跨境物流领域达成战略合作,为广大采美客户提供轻松无忧的跨境体验!
  11. </dd>
  12. <dt><div>活动时间</div></dt>
  13. <dd>2022.10月10日——2022.12月31日</dd>
  14. <dt><div>活动奖励</div></dt>
  15. <dd>a、一等奖1000元;b、二等奖500元;c、三等奖300元</dd>
  16. <dt><div>参与方式</div></dt>
  17. <dd>
  18. 第一步:申请认证和上传相关资料可以登录ROSS官方网站或品牌授权的正品认证通入口申请;第二步:通过手机号码、机构
  19. 名称,注册账号;第三步:通过上传机构门头照片、营业地址等相关信息,进行机构认证;第四步:通过填写设备
  20. 相关名称、图片、相关购买凭证,进行设备认证。完成后登录上传视频且抖音分享成功即可!
  21. </dd>
  22. <dt><div>评奖规则</div></dt>
  23. <dd>
  24. 用户登录商城注册成功后,按在规定的时间内完成点赞数最高的评定等级
  25. </dd>
  26. <dt><div>奖项公布</div></dt>
  27. <dd>用户在规定时间内完成后10个工作日将公布排名以及颁发奖品</dd>
  28. <dt><div>注意事项</div></dt>
  29. <dd>一个抖音账号只能参与一次</dd>
  30. </dl>
  31. </div>
  32. <div class="entry">
  33. <div class="title">活动入口</div>
  34. <div class="list">
  35. <div class="cover" @click="toDetail">
  36. <span class="status" :class="activity.type">
  37. {{ activity.text }}
  38. </span>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </template>
  45. <script>
  46. import { mapGetters } from 'vuex'
  47. export default {
  48. layout: 'app-ross',
  49. data() {
  50. return {
  51. activityState: 0,
  52. }
  53. },
  54. computed: {
  55. ...mapGetters(['routePrefix', 'authUserId']),
  56. // 活动状态
  57. activity() {
  58. const result = {
  59. 2: { type: 'end', text: '已结束' },
  60. 1: { type: 'start', text: '进行中' },
  61. 0: { type: 'wait', text: '未开始' },
  62. }
  63. return result[this.activityState]
  64. },
  65. },
  66. created() {
  67. this.fetchActivityStatus()
  68. },
  69. mounted() {
  70. this.$wxReady((wx) => {
  71. //需在用户可能点击分享按钮前就先调用
  72. wx.updateAppMessageShareData({
  73. title: '认证通', // 分享标题
  74. desc: '您的好友邀请您一起来参与认证通挑战赛,赢大奖,快来参与吧!', // 分享描述
  75. link: window.location.href, // 分享链接,该链接域名或路径必须与当前页面对应的公众号 JS 安全域名一致
  76. imgUrl: window.location.origin + '/activity.png', // 分享图标
  77. success: function () {
  78. // 设置成功
  79. },
  80. })
  81. })
  82. },
  83. methods: {
  84. // 活动详情
  85. toDetail() {
  86. const url = `${this.routePrefix}/activity/challenge/list`
  87. this.$router.push(url)
  88. },
  89. // 获取活动状态
  90. async fetchActivityStatus() {
  91. try {
  92. const res = await this.$http.api.fetchActivityStatus({
  93. authUserId: this.authUserId,
  94. })
  95. if (!res.data) return
  96. this.activityState = res.data.activityState
  97. } catch (error) {
  98. console.log(error)
  99. }
  100. },
  101. },
  102. }
  103. </script>
  104. <style lang="scss" scoped>
  105. @media screen and (min-width: 768px) {
  106. .page {
  107. padding-bottom: 120px;
  108. background: #fff;
  109. .page-top {
  110. width: 100%;
  111. height: 530px;
  112. background: url(~assets/theme-images/ross/pc-banner-activity.png)
  113. no-repeat center;
  114. background-size: auto 530px;
  115. }
  116. .page-content {
  117. width: 872px;
  118. margin: 0 auto;
  119. margin-top: 16px;
  120. .content {
  121. min-height: 1170px;
  122. .title {
  123. font-size: 40px;
  124. color: #333;
  125. height: 80px;
  126. box-sizing: border-box;
  127. text-align: center;
  128. margin-bottom: 70px;
  129. padding-top: 20px;
  130. font-weight: bold;
  131. background: url(~assets/theme-images/ross/pc_activity_title_01.png)
  132. no-repeat center;
  133. background-size: auto 80px;
  134. }
  135. dl {
  136. dt {
  137. font-size: 30px;
  138. text-align: center;
  139. margin-bottom: 24px;
  140. div {
  141. line-height: 24px;
  142. display: inline-block;
  143. border-bottom: 5px;
  144. border-bottom-color: #ffd7c5;
  145. border-bottom-style: solid;
  146. }
  147. }
  148. dd {
  149. font-size: 16px;
  150. color: #666666;
  151. text-align: center;
  152. line-height: 32px;
  153. margin-bottom: 64px;
  154. }
  155. }
  156. }
  157. .entry {
  158. margin-top: 120px;
  159. .title {
  160. font-size: 40px;
  161. color: #333;
  162. height: 80px;
  163. box-sizing: border-box;
  164. text-align: center;
  165. margin-bottom: 70px;
  166. padding-top: 20px;
  167. font-weight: bold;
  168. background: url(~assets/theme-images/ross/pc_activity_title_02.png)
  169. no-repeat center;
  170. background-size: auto 80px;
  171. }
  172. .cover {
  173. position: relative;
  174. width: 856px;
  175. height: 340px;
  176. margin: 0 auto;
  177. cursor: pointer;
  178. background: url(~assets/theme-images/ross/activity-entry-bg.png)
  179. no-repeat center;
  180. background-size: 856px 340px;
  181. .status {
  182. position: absolute;
  183. left: 0;
  184. top: 0;
  185. width: 72px;
  186. height: 32px;
  187. line-height: 32px;
  188. border-radius: 8px 0 8px 0;
  189. color: #fff;
  190. text-align: center;
  191. &.wait {
  192. background: #f94b4b;
  193. }
  194. &.start {
  195. background: #f3920d;
  196. }
  197. &.end {
  198. background: rgba(0, 0, 0, 0.3);
  199. }
  200. }
  201. }
  202. }
  203. }
  204. }
  205. }
  206. @media screen and (max-width: 768px) {
  207. .page {
  208. padding-bottom: 10vw;
  209. .page-top {
  210. width: 100%;
  211. height: 100vw;
  212. background: url(~assets/theme-images/ross/h5-banner-activity.png)
  213. no-repeat center;
  214. background-size: auto 100vw;
  215. }
  216. .page-content {
  217. width: 85.6vw;
  218. margin: 0 auto;
  219. margin-top: 3.2vw;
  220. .content {
  221. min-height: 116.3vw;
  222. margin-top: 8vw;
  223. .title {
  224. font-size: 5vw;
  225. color: #333;
  226. height: 9vw;
  227. box-sizing: border-box;
  228. text-align: center;
  229. margin-bottom: 8vw;
  230. padding-top: 2.4vw;
  231. font-weight: bold;
  232. background: url(~assets/theme-images/ross/h5_activity_title_01.png)
  233. no-repeat center;
  234. background-size: auto 9vw;
  235. }
  236. dl {
  237. dt {
  238. font-size: 4.8vw;
  239. text-align: center;
  240. margin-bottom: 4.8vw;
  241. div {
  242. line-height: 3.2vw;
  243. display: inline-block;
  244. border-bottom: 0.8vw;
  245. border-bottom-color: #ffd7c5;
  246. border-bottom-style: solid;
  247. }
  248. }
  249. dd {
  250. font-size: 3.4vw;
  251. color: #666666;
  252. text-align: center;
  253. line-height: 5.6vw;
  254. margin-bottom: 8.8vw;
  255. }
  256. }
  257. }
  258. .entry {
  259. margin-top: 15vw;
  260. .title {
  261. font-size: 5vw;
  262. color: #333;
  263. height: 9vw;
  264. box-sizing: border-box;
  265. text-align: center;
  266. margin-bottom: 8vw;
  267. padding-top: 2.4vw;
  268. font-weight: bold;
  269. background: url(~assets/theme-images/ross/h5_activity_title_02.png)
  270. no-repeat center;
  271. background-size: auto 9vw;
  272. }
  273. .cover {
  274. position: relative;
  275. width: 85.6vw;
  276. height: 34vw;
  277. margin: 0 auto;
  278. // background: pink;
  279. cursor: pointer;
  280. background: url(~assets/theme-images/ross/activity-entry-bg.png)
  281. no-repeat center;
  282. background-size: 85.6vw 34vw;
  283. .status {
  284. position: absolute;
  285. left: 0;
  286. top: 0;
  287. width: 12.8vw;
  288. height: 5.6vw;
  289. line-height: 5.6vw;
  290. border-radius: 0.8vw 0 0.8vw 0;
  291. color: #fff;
  292. text-align: center;
  293. font-size: 3vw;
  294. &.wait {
  295. background: #f94b4b;
  296. }
  297. &.start {
  298. background: #f3920d;
  299. }
  300. &.end {
  301. background: rgba(0, 0, 0, 0.3);
  302. }
  303. }
  304. }
  305. }
  306. }
  307. }
  308. }
  309. </style>