index.vue 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  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.initAppMessageShareData()
  71. },
  72. methods: {
  73. initAppMessageShareData() {
  74. // 重试次数
  75. let retryCount = 1
  76. this.$wxReady((wx) => {
  77. //需在用户可能点击分享按钮前就先调用
  78. wx.updateAppMessageShareData({
  79. title: '认证通', // 分享标题
  80. desc: '您的好友邀请您一起来参与认证通挑战赛,赢大奖,快来参与吧!', // 分享描述
  81. link: window.location.href, // 分享链接,该链接域名或路径必须与当前页面对应的公众号 JS 安全域名一致
  82. imgUrl: window.location.origin + '/activity.png', // 分享图标
  83. fail: () => {
  84. if (retryCount === 0) return
  85. this.initAppMessageShareData()
  86. retryCount--
  87. },
  88. })
  89. })
  90. },
  91. // 活动详情
  92. toDetail() {
  93. const url = `${this.routePrefix}/activity/challenge/list`
  94. this.$router.push(url)
  95. },
  96. // 获取活动状态
  97. async fetchActivityStatus() {
  98. try {
  99. const res = await this.$http.api.fetchActivityStatus({
  100. authUserId: this.authUserId,
  101. })
  102. if (!res.data) return
  103. this.activityState = res.data.activityState
  104. } catch (error) {
  105. console.log(error)
  106. }
  107. },
  108. },
  109. }
  110. </script>
  111. <style lang="scss" scoped>
  112. @media screen and (min-width: 768px) {
  113. .page {
  114. padding-bottom: 120px;
  115. background: #fff;
  116. .page-top {
  117. width: 100%;
  118. height: 530px;
  119. background: url(~assets/theme-images/ross/pc-banner-activity.png)
  120. no-repeat center;
  121. background-size: auto 530px;
  122. }
  123. .page-content {
  124. width: 872px;
  125. margin: 0 auto;
  126. margin-top: 16px;
  127. .content {
  128. min-height: 1170px;
  129. .title {
  130. font-size: 40px;
  131. color: #333;
  132. height: 80px;
  133. box-sizing: border-box;
  134. text-align: center;
  135. margin-bottom: 70px;
  136. padding-top: 20px;
  137. font-weight: bold;
  138. background: url(~assets/theme-images/ross/pc_activity_title_01.png)
  139. no-repeat center;
  140. background-size: auto 80px;
  141. }
  142. dl {
  143. dt {
  144. font-size: 30px;
  145. text-align: center;
  146. margin-bottom: 24px;
  147. div {
  148. line-height: 24px;
  149. display: inline-block;
  150. border-bottom: 5px;
  151. border-bottom-color: #ffd7c5;
  152. border-bottom-style: solid;
  153. }
  154. }
  155. dd {
  156. font-size: 16px;
  157. color: #666666;
  158. text-align: center;
  159. line-height: 32px;
  160. margin-bottom: 64px;
  161. }
  162. }
  163. }
  164. .entry {
  165. margin-top: 120px;
  166. .title {
  167. font-size: 40px;
  168. color: #333;
  169. height: 80px;
  170. box-sizing: border-box;
  171. text-align: center;
  172. margin-bottom: 70px;
  173. padding-top: 20px;
  174. font-weight: bold;
  175. background: url(~assets/theme-images/ross/pc_activity_title_02.png)
  176. no-repeat center;
  177. background-size: auto 80px;
  178. }
  179. .cover {
  180. position: relative;
  181. width: 856px;
  182. height: 340px;
  183. margin: 0 auto;
  184. cursor: pointer;
  185. background: url(~assets/theme-images/ross/activity-entry-bg.png)
  186. no-repeat center;
  187. background-size: 856px 340px;
  188. .status {
  189. position: absolute;
  190. left: 0;
  191. top: 0;
  192. width: 72px;
  193. height: 32px;
  194. line-height: 32px;
  195. border-radius: 8px 0 8px 0;
  196. color: #fff;
  197. text-align: center;
  198. &.wait {
  199. background: #f94b4b;
  200. }
  201. &.start {
  202. background: #f3920d;
  203. }
  204. &.end {
  205. background: rgba(0, 0, 0, 0.3);
  206. }
  207. }
  208. }
  209. }
  210. }
  211. }
  212. }
  213. @media screen and (max-width: 768px) {
  214. .page {
  215. padding-bottom: 10vw;
  216. .page-top {
  217. width: 100%;
  218. height: 100vw;
  219. background: url(~assets/theme-images/ross/h5-banner-activity.png)
  220. no-repeat center;
  221. background-size: auto 100vw;
  222. }
  223. .page-content {
  224. width: 85.6vw;
  225. margin: 0 auto;
  226. margin-top: 3.2vw;
  227. .content {
  228. min-height: 116.3vw;
  229. margin-top: 8vw;
  230. .title {
  231. font-size: 5vw;
  232. color: #333;
  233. height: 9vw;
  234. box-sizing: border-box;
  235. text-align: center;
  236. margin-bottom: 8vw;
  237. padding-top: 2.4vw;
  238. font-weight: bold;
  239. background: url(~assets/theme-images/ross/h5_activity_title_01.png)
  240. no-repeat center;
  241. background-size: auto 9vw;
  242. }
  243. dl {
  244. dt {
  245. font-size: 4.8vw;
  246. text-align: center;
  247. margin-bottom: 4.8vw;
  248. div {
  249. line-height: 3.2vw;
  250. display: inline-block;
  251. border-bottom: 0.8vw;
  252. border-bottom-color: #ffd7c5;
  253. border-bottom-style: solid;
  254. }
  255. }
  256. dd {
  257. font-size: 3.4vw;
  258. color: #666666;
  259. text-align: center;
  260. line-height: 5.6vw;
  261. margin-bottom: 8.8vw;
  262. }
  263. }
  264. }
  265. .entry {
  266. margin-top: 15vw;
  267. .title {
  268. font-size: 5vw;
  269. color: #333;
  270. height: 9vw;
  271. box-sizing: border-box;
  272. text-align: center;
  273. margin-bottom: 8vw;
  274. padding-top: 2.4vw;
  275. font-weight: bold;
  276. background: url(~assets/theme-images/ross/h5_activity_title_02.png)
  277. no-repeat center;
  278. background-size: auto 9vw;
  279. }
  280. .cover {
  281. position: relative;
  282. width: 85.6vw;
  283. height: 34vw;
  284. margin: 0 auto;
  285. // background: pink;
  286. cursor: pointer;
  287. background: url(~assets/theme-images/ross/activity-entry-bg.png)
  288. no-repeat center;
  289. background-size: 85.6vw 34vw;
  290. .status {
  291. position: absolute;
  292. left: 0;
  293. top: 0;
  294. width: 12.8vw;
  295. height: 5.6vw;
  296. line-height: 5.6vw;
  297. border-radius: 0.8vw 0 0.8vw 0;
  298. color: #fff;
  299. text-align: center;
  300. font-size: 3vw;
  301. &.wait {
  302. background: #f94b4b;
  303. }
  304. &.start {
  305. background: #f3920d;
  306. }
  307. &.end {
  308. background: rgba(0, 0, 0, 0.3);
  309. }
  310. }
  311. }
  312. }
  313. }
  314. }
  315. }
  316. </style>