fission.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904
  1. <template>
  2. <v-container class="invite-user" fluid :class="`bg-${type}`">
  3. <div class="rule" @click="show = true">规则</div>
  4. <activity-invite-user-box class="box1">
  5. <template #title>参与步骤</template>
  6. <v-img class="cybz-content" :src="returnContent ? returnContent.img : null" />
  7. <div class="cybz-content-text">
  8. <div class="cybz-content-text-item">分享好友</div>
  9. <div class="cybz-content-text-item">邀请好友下单</div>
  10. <div class="cybz-content-text-item">
  11. {{ returnContent ? returnContent.content : '' }}
  12. </div>
  13. </div>
  14. <v-btn class="share-button" rounded @click="share()">
  15. <template v-if="!($userAgent.isSzx || $userAgent.isSzxBrowser)">赶紧分享你的好友,送云机时长</template>
  16. <template v-else>分享好友赚云机时长</template>
  17. </v-btn>
  18. <div class="dqdj-content">
  19. <div class="dqdj-item">
  20. <div class="dqdj-title">{{ level.currentLevelName }}</div>
  21. <div class="dqdj-text">当前等级</div>
  22. </div>
  23. <div class="dqdj-content-line"></div>
  24. <div class="dqdj-item">
  25. <div class="dqdj-title">{{ level.shareFriendCount }}</div>
  26. <div class="dqdj-text">分享好友数</div>
  27. </div>
  28. <div class="dqdj-content-line"></div>
  29. <div class="dqdj-item">
  30. <div class="dqdj-title">{{ level.boostValue }}</div>
  31. <div class="dqdj-text">累计助力值</div>
  32. </div>
  33. </div>
  34. <div class="progress">
  35. <div class="progress-box" :style="`width: ${width}px`"></div>
  36. <div class="progress-list">
  37. <div v-for="item in level.levelAwardDetails" :key="item.goodsId" class="fnc">
  38. <img v-if="item.status === 0" class="wh38" src="~/assets/image/activity/invite-user/box-gray.png" alt="">
  39. <img v-else-if="item.status === 1" class="wh38" src="~/assets/image/activity/invite-user/box-close.png" alt="" @click="receiveLevelAward(item.goodsId)">
  40. <img v-else-if="item.status === 2" class="wh38" src="~/assets/image/activity/invite-user/box-open.png" alt="">
  41. <span class="progress-text">{{ item.levelName }}</span>
  42. </div>
  43. </div>
  44. </div>
  45. </activity-invite-user-box>
  46. <div v-if="type === 2" :class="current ? 'box3 tab2' : 'box3'">
  47. <div class="tab">
  48. <div class="tab-item" @click="current = 0">{{ current === 1 ? '我的奖励' : '' }}</div>
  49. <div class="tab-item" @click="current = 1">{{ current === 1 ? '排行榜' : '' }}</div>
  50. </div>
  51. <div v-show="current === 0">
  52. <div v-if="myActivationCode.length" class="code-table">
  53. <div class="table-header">
  54. <table class="w-full">
  55. <colgroup>
  56. <col class="time-col" />
  57. <col class="code-col" />
  58. <col class="award-col" />
  59. <col class="status-col" />
  60. </colgroup>
  61. <thead class="text-left text-sm whitespace-nowrap break-normal">
  62. <tr>
  63. <th class="text-center">获取的时间</th>
  64. <th class="text-center">激活码编号</th>
  65. <th class="text-center">奖励内容</th>
  66. <th class="text-center">使用状态</th>
  67. </tr>
  68. </thead>
  69. </table>
  70. </div>
  71. <div class="table-body">
  72. <table class="w-full">
  73. <colgroup>
  74. <col class="time-col" />
  75. <col class="code-col" />
  76. <col class="award-col" />
  77. <col class="status-col" />
  78. </colgroup>
  79. <tbody class="text-xs">
  80. <tr v-for="(item, index) in myActivationCode" :key="index">
  81. <td class="whitespace-nowrap break-normal text-center">
  82. {{ item.createTime | formatDate('MM月DD日 HH:mm') }}
  83. </td>
  84. <td class="whitespace-nowrap break-normal text-center">
  85. <div class="flex">
  86. <span class="font-mono">{{ item.activationCode | activationCodeMask }} </span><span class="mx-1">|</span>
  87. <v-btn text small color="#FF9616" class="copy-btn" @click="copyCode(item)">复制</v-btn>
  88. </div>
  89. </td>
  90. <td class="whitespace-nowrap break-normal text-center">
  91. {{ item.awardStr }}
  92. </td>
  93. <td class="whitespace-nowrap break-normal text-center">
  94. <span :style="item.activationUse ? 'color: #FF1D02' : '#333333'">{{ ['未使用', '已使用', '已过期'][item.activationUse] }}</span>
  95. </td>
  96. </tr>
  97. </tbody>
  98. </table>
  99. <div v-if="myActivationCode.length" v-intersect.quiet="codeLoadMoreIntersect" class="flex item-center justify-center">
  100. <v-btn :loading="codeIsLoading" text small>
  101. <template v-if="codeIsLoading">加载中</template>
  102. <template v-else-if="codeHasMore">加载更多</template>
  103. <template v-else>没有更多</template>
  104. </v-btn>
  105. </div>
  106. </div>
  107. </div>
  108. <div v-else class="fwc">
  109. <img src="~/assets/image/activity/invite-user/noReward@2x.png" alt="">
  110. </div>
  111. </div>
  112. <div v-show="current === 1">
  113. <div v-if="levelAwardRankings.length" class="code-table">
  114. <div class="mylevel">
  115. <div class="fcw">
  116. <span class="c8F8F8F">当前排名</span>
  117. <span>{{ currentRanking > 0 ? currentRanking : '暂未上榜' }}</span>
  118. </div>
  119. <div class="fcw">
  120. <span class="c8F8F8F">本轮助力值</span>
  121. <span>{{ boostValue }}</span>
  122. </div>
  123. <div class="fcw">
  124. <span class="c8F8F8F">距上一名</span>
  125. <span>{{ preRanking > 0 ? preRanking : '/' }}</span>
  126. </div>
  127. <div class="fcw">
  128. <span class="c8F8F8F">距本轮排行结束时间</span>
  129. <span>
  130. <van-count-down :time="currentEndTime * 1000" format="DD 天 HH 时 mm 分 ss 秒" />
  131. </span>
  132. </div>
  133. </div>
  134. <div class="table-header">
  135. <table class="w-full">
  136. <colgroup>
  137. <col class="num-col" />
  138. <col class="user-col" />
  139. <col class="friend-col" />
  140. <col class="award-col" />
  141. </colgroup>
  142. <thead class="text-sm whitespace-nowrap break-normal">
  143. <tr>
  144. <th class="text-center">排名</th>
  145. <th class="text-center">用户</th>
  146. <th class="text-center">好友助力值</th>
  147. <th class="text-center">排名奖励</th>
  148. </tr>
  149. </thead>
  150. </table>
  151. </div>
  152. <div class="table-body">
  153. <table class="w-full">
  154. <colgroup>
  155. <col class="num-col" />
  156. <col class="user-col" />
  157. <col class="friend-col" />
  158. <col class="award-col" />
  159. </colgroup>
  160. <tbody class="text-xs">
  161. <tr v-for="(item, index) in levelAwardRankings" :key="index">
  162. <td class="whitespace-nowrap break-normal text-center">
  163. <img v-if="item.ranking === 1" class="w24h28" src="~/assets/image/activity/invite-user/no1.png" alt="">
  164. <img v-else-if="item.ranking === 2" class="w24h28" src="~/assets/image/activity/invite-user/no2.png" alt="">
  165. <img v-else-if="item.ranking === 3" class="w24h28" src="~/assets/image/activity/invite-user/no3.png" alt="">
  166. <span v-else>{{ item.ranking }}</span>
  167. </td>
  168. <td class="whitespace-nowrap break-normal text-center">
  169. {{ item.userName }}
  170. </td>
  171. <td class="whitespace-nowrap break-normal text-center">
  172. {{ item.boostValue }}
  173. </td>
  174. <td class="whitespace-nowrap break-normal text-center">
  175. {{ item.awardStr }}
  176. </td>
  177. </tr>
  178. </tbody>
  179. </table>
  180. </div>
  181. </div>
  182. <div v-else class="fwc">
  183. <img src="~/assets/image/activity/invite-user/nodata.png" alt="">
  184. </div>
  185. </div>
  186. </div>
  187. <img class="w373h192" src="~/assets/image/activity/invite-user/rule2.png" alt="">
  188. <van-popup v-model="show" style="background: transparent;padding-bottom: 60px;width: 100%;">
  189. <activity-invite-user-box class="box4">
  190. <template #title>活动规则</template>
  191. <div class="text-sm" v-html="activityRules"></div>
  192. </activity-invite-user-box>
  193. <van-icon name="close" class="close1" color="#939393" @click="show = false;" />
  194. </van-popup>
  195. </v-container>
  196. </template>
  197. <script>
  198. import { Toast } from 'vant';
  199. export default {
  200. auth: false,
  201. name: 'Fission',
  202. filters: {
  203. activationCodeMask(value) {
  204. return value.replace(/(.{2})(.*)(.{2}$)/, '$1**$3');
  205. },
  206. timeStamp(StatusMinute) {
  207. const day = parseInt(StatusMinute / 60 / 60 / 24);
  208. const hour = parseInt((StatusMinute / 60 / 60) % 24);
  209. const min = parseInt(StatusMinute / 60 % 60);
  210. StatusMinute = '';
  211. if (day > 0) {
  212. StatusMinute = day + '天';
  213. }
  214. if (hour > 0) {
  215. StatusMinute += hour + '小时';
  216. }
  217. if (min > 0) {
  218. StatusMinute += parseFloat(min) + '分钟';
  219. }
  220. return StatusMinute;
  221. }
  222. },
  223. data() {
  224. return {
  225. show: false,
  226. current: 0,
  227. data: {
  228. todayIncomeStarCoin: 0,
  229. totalIncomeStarCoin: 0,
  230. todayBuyOrderCount: 0,
  231. totalBuyOrderCount: 0,
  232. todayBuyOrderSuccessCount: 0,
  233. totalBuyOrderSuccessCount: 0,
  234. withdrawStarCoinNum: 0,
  235. inviteUserName: null,
  236. activityId: null,
  237. status: 0,
  238. type: 2
  239. },
  240. level: {
  241. currentLevelName: '',
  242. activityId: '',
  243. levelAwardDetails: [],
  244. shareFriendCount: 0,
  245. boostValue: 0
  246. },
  247. activityRules: '',
  248. myActivationCode: [],
  249. levelAwardRankings: [],
  250. myCodeFrom: {
  251. activityId: null,
  252. pageNum: 1,
  253. pageSize: 8,
  254. },
  255. codeTotal: -1,
  256. codeIsLoading: false,
  257. client: 1,
  258. token: '',
  259. width: 0,
  260. boostValue: 0,
  261. currentEndTime: 0,
  262. currentRanking: 0,
  263. preRanking: 0
  264. };
  265. },
  266. async fetch() {
  267. // 页面初始化后触发
  268. try {
  269. this.token = this.$route.query.token;
  270. await this.getActiveInfo();
  271. this.$native.setShareInfo(this.shareInfo);
  272. await Promise.all([
  273. this.getActivityRules(),
  274. this.type === 2 && this.getMyActivationCode(this.myCodeFrom),
  275. this.myCodeFrom.activityId && this.getRanking({ activityId: this.myCodeFrom.activityId })
  276. ]);
  277. } catch (error) {
  278. Toast({
  279. message: error.message,
  280. duration: 4000
  281. });
  282. }
  283. if (this.$userAgent.isSzx && this.$userAgent.isAndroid) {
  284. this.client = 1;
  285. } else if (this.$userAgent.isSzx && this.$userAgent.isIos) {
  286. this.client = 2;
  287. } else if (this.$userAgent.isMiniProgram) {
  288. this.client = 5;
  289. } else {
  290. this.client = 7;
  291. }
  292. },
  293. head: {
  294. title: '邀请好友'
  295. },
  296. computed: {
  297. returnContent() {
  298. return {
  299. 1: {
  300. img: require('@/assets/image/activity/invite-user/cybz-content@2x.png'),
  301. content: '返星币换现金',
  302. },
  303. 2: {
  304. img: require('@/assets/image/activity/invite-user/cybz-content-2@2x.png'),
  305. content: '云机时长奖励',
  306. },
  307. 3: {
  308. img: require('@/assets/image/activity/invite-user/cybz-content-3@2x.png'),
  309. content: '返积分',
  310. },
  311. }[this.type];
  312. },
  313. codeHasMore() {
  314. return (
  315. this.codeTotal < 0 ||
  316. this.myCodeFrom.pageNum * this.myCodeFrom.pageSize < this.codeTotal
  317. );
  318. },
  319. dataList() {
  320. switch (this.type) {
  321. case 1: {
  322. return [
  323. { label: '邀请用户总数', value: this.data.totalPromoter },
  324. { label: '购买总订单数', value: this.data.totalBuyOrderCount }
  325. ];
  326. }
  327. case 2: {
  328. return [
  329. { label: '邀请用户总数', value: this.data.totalPromoter },
  330. { label: '购买总订单数', value: this.data.totalBuyOrderCount }
  331. ];
  332. }
  333. case 3: {
  334. return [
  335. { label: '邀请用户总数', value: this.data.totalPromoter },
  336. { label: '购买总订单数', value: this.data.totalBuyOrderCount }
  337. ];
  338. }
  339. default: {
  340. return [];
  341. }
  342. }
  343. },
  344. type() {
  345. return 2;
  346. },
  347. shareUrl() {
  348. return (
  349. location.origin +
  350. this.$router.resolve({
  351. path: '/activity/invite-user/register-fission/',
  352. query: {
  353. invitationUserName: this.data.inviteUserName,
  354. activityId: this.data.activityId,
  355. type: this.type,
  356. },
  357. }).href
  358. );
  359. },
  360. shareInfo() {
  361. if (this.$userAgent.isMiniProgram) {
  362. return {
  363. title: '双子星APP',
  364. path: '/pages/home/home',
  365. imgUrl: location.origin + require('~/assets/image/logo.png'),
  366. };
  367. }
  368. return {
  369. title: '双子星云手机',
  370. desc: `畅玩“原神”“幻塔”,24小时在线,不限下载流量的手机`,
  371. link: this.shareUrl,
  372. imgUrl: location.origin + require('~/assets/image/logo.png'),
  373. };
  374. }
  375. },
  376. mounted() {
  377. this.makePoint('activity_Share_PV')
  378. this.makePoint('activity_Share_UV')
  379. },
  380. methods: {
  381. async receiveLevelAward(goodsId) {
  382. try {
  383. const res = await this.$axios.$post('/activity/v1/level/award/receiveLevelAward', { activityId: this.myCodeFrom.activityId, goodsId }, { headers: { Authorization: this.token } });
  384. Toast({
  385. message: res.msg,
  386. position: 'top'
  387. });
  388. if (this.myCodeFrom.activityId) {
  389. await this.myLevelAward();
  390. }
  391. this.myCodeFrom.pageNum = 1;
  392. this.myActivationCode = [];
  393. this.getMyActivationCode(this.myCodeFrom);
  394. if (this.myCodeFrom.activityId) {
  395. this.getRanking({ activityId: this.myCodeFrom.activityId });
  396. }
  397. } catch (err) {
  398. Toast({
  399. message: err.message,
  400. position: 'top'
  401. });
  402. }
  403. },
  404. async myLevelAward() {
  405. const res = await this.$axios.$get(`/activity/v1/level/award/myLevelAward?activityId=${this.myCodeFrom.activityId}`, { headers: { Authorization: this.token } });
  406. this.level = res.data;
  407. if (this.level.levelAwardDetails) {
  408. this.width = 0;
  409. const levelLength = 280 / (this.level.levelAwardDetails.length - 1)
  410. this.level.levelAwardDetails.forEach((item, index) => {
  411. if (item.status > 0) {
  412. if (index > 0) {
  413. this.width += levelLength
  414. }
  415. if (index === 0 || index === this.level.levelAwardDetails.length - 1) {
  416. this.width += 14
  417. }
  418. }
  419. })
  420. }
  421. },
  422. async getActiveInfo() {
  423. const res = await this.$axios.$get('/activity/v1/inviteUser/orderRelation/starCoinOverview', { headers: { Authorization: this.token } });
  424. this.data = res.data;
  425. this.myCodeFrom.activityId = res.data.activityId;
  426. if (this.myCodeFrom.activityId) {
  427. await this.myLevelAward();
  428. }
  429. },
  430. async getMyActivationCode(params) {
  431. try {
  432. this.codeIsLoading = true;
  433. const res = await this.$axios.$get('/activity/v1/inviteUser/orderRelation/myActivationCode', { params, headers: { Authorization: this.token } });
  434. this.codeTotal = res.data.total;
  435. this.myActivationCode.push(
  436. ...(res.data.list ?? [])
  437. );
  438. this.myCodeFrom = params;
  439. } finally {
  440. this.codeIsLoading = false;
  441. }
  442. },
  443. async getRanking(params) {
  444. try {
  445. this.codeIsLoading = true;
  446. const res = await this.$axios.$get('/activity/v1/level/award/ranking', { params, headers: { Authorization: this.token } });
  447. this.boostValue = res.data.boostValue
  448. this.currentEndTime = res.data.currentEndTime
  449. this.currentRanking = res.data.currentRanking
  450. this.preRanking = res.data.preRanking
  451. this.levelAwardRankings = res.data.levelAwardRankings;
  452. } finally {
  453. this.codeIsLoading = false;
  454. }
  455. },
  456. async share() {
  457. if (this.data.status !== 1) {
  458. if (this.data.status === 0) {
  459. Toast({
  460. message: '当前活动已过期',
  461. position: 'top'
  462. });
  463. return
  464. }
  465. if (this.data.status === 2) {
  466. Toast({
  467. message: '当前活动未开启',
  468. position: 'top'
  469. });
  470. return
  471. }
  472. if (this.data.status === 3) {
  473. Toast({
  474. message: '当前活动已结束',
  475. position: 'top'
  476. });
  477. return
  478. }
  479. Toast({
  480. message: '未知活动状态',
  481. position: 'top'
  482. });
  483. return
  484. }
  485. this.$tongji.trackEvent('活动', '分享', '', 0);
  486. if (this.$userAgent.isSzx || this.$userAgent.isSzxBrowser) {
  487. // app环境
  488. this.$native.share(this.shareInfo);
  489. this.makePoint('activity_Share_分享好友按钮');
  490. } else {
  491. // 浏览器环境
  492. await this.$native.clipboard.writeText(`${this.shareUrl} 双子星云手机`);
  493. // throw new Error('1231');
  494. this.$toast.success('链接复制成功');
  495. this.makePoint('activity_Share_复制链接');
  496. }
  497. },
  498. makePoint(positionButton) {
  499. this.$axios.$post('/public/v5/buriedPointRecord/reportRecords', [
  500. {
  501. client: this.client,
  502. eventCode: '28_分享活动',
  503. userName: this.$auth.user.username,
  504. positionButton,
  505. operationTime: this.getCurrentTime(),
  506. phoneNumber: this.$auth.user.phone,
  507. deviceId: ''
  508. },
  509. ]);
  510. },
  511. getCurrentTime() {
  512. const date = new Date(); // 当前时间
  513. const year = date.getFullYear() // 年
  514. const month = this.repair(date.getMonth() + 1); // 月
  515. const day = this.repair(date.getDate()); // 日
  516. const hour = this.repair(date.getHours()); // 时
  517. const minute = this.repair(date.getMinutes()); // 分
  518. const second = this.repair(date.getSeconds()); // 秒
  519. // 当前时间
  520. const curTime = year + "-" + month + "-" + day +
  521. " " + hour + ":" + minute + ":" + second;
  522. return curTime;
  523. },
  524. repair(i) {
  525. if (i >= 0 && i <= 9) {
  526. return "0" + i;
  527. } else {
  528. return i;
  529. }
  530. },
  531. async getActivityRules() {
  532. const agreementCoding = {
  533. 1: 'iuserrules01',
  534. 2: 'iuserrules02',
  535. 3: 'iuserrules03',
  536. }[this.type];
  537. if (agreementCoding) {
  538. const res = await this.$axios.$get(
  539. '/public/v4/agreement/content/getContentByType',
  540. {
  541. params: {
  542. agreementCoding,
  543. type: 1,
  544. },
  545. },
  546. );
  547. this.activityRules = res.data.content
  548. .replace(/[\d\D]*<body>([\d\D]+)<\/body>[\d\D]*/i, '$1')
  549. .replace(/<div class="phone-container">([\d\D]+)<\/div>/g, '$1');
  550. }
  551. },
  552. async copyCode(item) {
  553. await this.$native.clipboard.writeText(item.activationCode);
  554. Toast({
  555. message: '复制激活码,请在【我的-兑换中心】兑换'
  556. });
  557. this.makePoint('activity_Share_激活码复制')
  558. },
  559. codeLoadMoreIntersect(event) {
  560. if (event[0].isIntersecting && this.codeHasMore && !this.codeIsLoading) {
  561. this.getMyActivationCode({
  562. ...this.myCodeFrom,
  563. pageNum: this.myCodeFrom.pageNum + 1,
  564. });
  565. }
  566. },
  567. },
  568. };
  569. </script>
  570. <style lang="scss" scoped>
  571. .w373h192 {
  572. width: 373px;
  573. height: 192px;
  574. display: block;
  575. margin: 17px auto 0;
  576. }
  577. .fcw {
  578. display: flex;
  579. flex-direction: column;
  580. justify-content: center;
  581. align-items: center;
  582. font-size: 12px;
  583. color: #333333;
  584. }
  585. .c8F8F8F {
  586. color: #8F8F8F;
  587. margin-bottom: 8px;
  588. }
  589. .mylevel {
  590. width: 358px;
  591. height: 68px;
  592. background: #FFFFFF;
  593. box-shadow: 0px 2px 16px 0px rgba(243, 93, 67, 0.22);
  594. border-radius: 6px;
  595. margin-left: -12px;
  596. margin-top: 20px;
  597. margin-bottom: 20px;
  598. display: flex;
  599. justify-content: space-around;
  600. align-items: center;
  601. }
  602. .rule {
  603. width: 24px;
  604. height: 56px;
  605. line-height: 28px;
  606. background: rgba(0, 0, 0, 0.19);
  607. border-radius: 6px 0px 0px 6px;
  608. font-size: 15px;
  609. font-weight: 400;
  610. color: #FFFFFF;
  611. position: absolute;
  612. right: 0;
  613. top: 28px;
  614. text-align: center;
  615. }
  616. .close1 {
  617. font-size: 30px;
  618. text-align: center;
  619. display: block;
  620. }
  621. .fwc {
  622. text-align: center;
  623. img {
  624. width: 75px;
  625. height: 83px;
  626. margin-top: 120px;
  627. }
  628. }
  629. .invite-user {
  630. color: #333;
  631. background-size: 100% auto;
  632. overflow: hidden;
  633. padding: 0;
  634. padding-bottom: env(safe-area-inset-bottom, 30px);
  635. background-color: #F67350;
  636. &.bg-1 {
  637. background-image: url('~/assets/image/activity/invite-user/bg@2x.png');
  638. }
  639. &.bg-2 {
  640. background-image: url('~/assets/image/activity/invite-user/bg-6@2x.png');
  641. }
  642. &.bg-3 {
  643. background-image: url('~/assets/image/activity/invite-user/bg-3@2x.png');
  644. }
  645. }
  646. .box1 {
  647. margin-top: 460px;
  648. .cybz-content {
  649. width: 305px;
  650. height: 75px;
  651. margin: auto;
  652. display: block;
  653. }
  654. .cybz-content-text {
  655. display: grid;
  656. grid-template-columns: 1fr 1fr 1fr;
  657. font-size: 12px;
  658. color: #333;
  659. .cybz-content-text-item {
  660. text-align: center;
  661. }
  662. }
  663. .share-button {
  664. display: block;
  665. margin: auto;
  666. width: 302px !important;
  667. height: 62px !important;
  668. background-image: url('~/assets/image/activity/invite-user/share-button@2x.png');
  669. background-size: 100% 100%;
  670. margin-top: 24px;
  671. color: #dd1b0d;
  672. font-size: 18px;
  673. font-weight: bold;
  674. }
  675. .dqdj-content {
  676. width: 308px;
  677. height: 71px;
  678. background: #f9f1f5;
  679. border-radius: 6px;
  680. margin: 15px auto 0;
  681. display: flex;
  682. align-items: center;
  683. justify-content: center;
  684. .dqdj-content-line {
  685. width: 1px;
  686. height: 32px;
  687. background: #ff1d02;
  688. opacity: 0.1;
  689. }
  690. .dqdj-item {
  691. width: 96px;
  692. text-align: center;
  693. }
  694. .dqdj-title {
  695. font-size: 14px;
  696. font-weight: 600;
  697. color: #ff1d02;
  698. line-height: 20px;
  699. margin-bottom: 3px;
  700. }
  701. .dqdj-text {
  702. font-size: 12px;
  703. font-weight: 400;
  704. color: #333333;
  705. line-height: 17px;
  706. }
  707. }
  708. .progress {
  709. width: 308px;
  710. height: 8px;
  711. background: #e8e8e8;
  712. border-radius: 4px;
  713. margin: 34px auto 33px;
  714. position: relative;
  715. .progress-box {
  716. height: 8px;
  717. background: linear-gradient(270deg, #ff8a00 0%, #ff4200 100%);
  718. border-radius: 4px;
  719. position: absolute;
  720. top: 0;
  721. left: 0;
  722. }
  723. .wh38 {
  724. width: 38px;
  725. height: 38px;
  726. }
  727. .fnc {
  728. display: flex;
  729. flex-direction: column;
  730. justify-content: center;
  731. align-items: center;
  732. }
  733. .progress-text {
  734. font-size: 12px;
  735. color: #8f8f8f;
  736. line-height: 17px;
  737. margin-top: 5px;
  738. }
  739. .progress-list {
  740. width: 298px;
  741. position: absolute;
  742. left: 5px;
  743. top: -19px;
  744. display: flex;
  745. justify-content: space-between;
  746. }
  747. }
  748. }
  749. .box2 {
  750. .value {
  751. color: #ff6600;
  752. }
  753. ::v-deep .box-main {
  754. padding-left: 20px;
  755. padding-right: 20px;
  756. }
  757. }
  758. .box3 {
  759. width: 345px;
  760. height: 523px;
  761. margin: 25px auto 0;
  762. background: url('~/assets/image/activity/invite-user/box2@2x.png');
  763. background-size: 100% 100%;
  764. padding: 0 4px;
  765. box-sizing: border-box;
  766. &.tab2 {
  767. background: url('~/assets/image/activity/invite-user/box@2x.png') !important;
  768. background-size: 100% 100% !important;
  769. height: 627px !important;
  770. }
  771. .tab {
  772. display: flex;
  773. width: 307px;
  774. justify-content: space-between;
  775. margin: 0 auto;
  776. .tab-item {
  777. width: 146px;
  778. height: 44px;
  779. text-align: center;
  780. line-height: 44px;
  781. font-size: 16px;
  782. font-weight: 500;
  783. color: #ffffff;
  784. }
  785. }
  786. ::v-deep .box-main {
  787. padding-left: 10px;
  788. padding-right: 10px;
  789. }
  790. }
  791. .code-table {
  792. .table-body {
  793. max-height: 430px;
  794. overflow-y: auto;
  795. }
  796. .time-col {
  797. width: 105px;
  798. }
  799. .code-col {
  800. width: 94px;
  801. }
  802. .award-col {
  803. width: 85px;
  804. }
  805. .status-col {
  806. width: 60px;
  807. }
  808. .num-col {
  809. width: 53px;
  810. text-align: center;
  811. }
  812. .user-col {
  813. width: 92px;
  814. text-align: center;
  815. }
  816. .friend-col {
  817. width: 85px;
  818. text-align: center;
  819. }
  820. .award-col {
  821. width: 96px;
  822. text-align: center;
  823. }
  824. tr {
  825. height: 40px;
  826. color: #8F8F8F;
  827. }
  828. td {
  829. height: 40px;
  830. color: #333;
  831. }
  832. .copy-btn {
  833. min-width: 0 !important;
  834. height: auto !important;
  835. padding: 0 !important;
  836. }
  837. }
  838. .box4::v-deep .box-main {
  839. padding-left: 10px;
  840. padding-right: 10px;
  841. }
  842. .table-header {
  843. margin: 0 2px;
  844. background: #F9F1F5;
  845. }
  846. .w24h28 {
  847. width: 24px;
  848. height: 28px;
  849. }
  850. </style>