bargainingAssistance.vue 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452
  1. <template>
  2. <div class="bargaining-assistance">
  3. <!-- 邀请人提示 -->
  4. <div class="inviter-tips" v-if="+type">
  5. <div>恭喜您选到喜欢的云手机</div>
  6. <div>您一定要免费带走</div>
  7. 好友注册获得助力 好友下单加速助力
  8. </div>
  9. <!-- 被邀请人提示 -->
  10. <div v-else class="invitee-tips">
  11. <div class="invitee-tips-user">用户</div>
  12. <div class="invitee-tips-text">
  13. 亲,我在用双子星云手机,可以<span>24小时运行游戏/聊天/看视频</span>,双子星云手机已经帮我节省<span>10086小时</span>,我得任务全做完了,游戏升级哇哇快,现在官方活动领云机,麻烦帮我助力!
  14. </div>
  15. </div>
  16. <!-- 砍价进度 -->
  17. <div class="bargaining-assistance-main">
  18. <!-- 被邀请人助力、邀请人砍价 -->
  19. <template v-if="!assistanceBool">
  20. <div class="package-name">
  21. <span> {{ info.phoneType }}{{ info.validityPeriod }}天</span>
  22. </div>
  23. <div class="package-price"><span>¥</span>{{ info.totalAmount }}</div>
  24. <div class="package-progress">
  25. <customProgress v-model="info.schedule" />
  26. </div>
  27. <div class="package-tips">
  28. <div>
  29. 仅差<span>{{ info.remainingPrice }}元</span>
  30. </div>
  31. <div>
  32. 必得价值<span>{{ info.totalAmount }}元</span>的免费云机
  33. </div>
  34. </div>
  35. <div
  36. class="package-btn"
  37. :style="!+type ? 'margin-bottom: 24px;' : ''"
  38. @click="btnFun"
  39. >
  40. {{
  41. +type
  42. ? info.bargainingStatus === 1
  43. ? `继续砍价${info.remainingQuantity || 0}次`
  44. : '邀请好友助力免单'
  45. : '帮他助力'
  46. }}
  47. </div>
  48. <div class="package-expire" v-if="+type && time">
  49. 免单失效时间:<van-count-down :time="time" />
  50. </div>
  51. </template>
  52. <!-- 被邀请人点击助力之后领取手机的页面 -->
  53. <template v-else>
  54. <div class="invitee-to-claim">
  55. <div class="invitee-to-claim_btn" @click="loginVisible = true">
  56. 免费领取
  57. </div>
  58. </div>
  59. </template>
  60. </div>
  61. <!-- 邀请人显示 -->
  62. <template v-if="+type">
  63. <!-- 砍价记录 -->
  64. <div class="bargaining-record">
  65. <div class="title">砍价记录</div>
  66. <div class="container">
  67. <loadList
  68. ref="assistRecodeList"
  69. url="activity/v5/assist/operation/assistRecodeList"
  70. description="暂无砍价记录"
  71. >
  72. <template #default="{ list }">
  73. <div
  74. v-for="item in list"
  75. :key="item.id"
  76. class="bargaining-record-item"
  77. >
  78. <div class="bargaining-record-item_info">
  79. <div>{{ item.surfaceName }}</div>
  80. <div>
  81. 道具砍掉<span>{{ item.assistPrice }}元</span>
  82. </div>
  83. </div>
  84. </div>
  85. </template>
  86. </loadList>
  87. </div>
  88. </div>
  89. <!-- 云机发放记录 -->
  90. <div class="distribution-records">
  91. <div class="title">云机发放记录</div>
  92. <div class="container">
  93. <div>
  94. <div>序号</div>
  95. <div>云机名称</div>
  96. <div>套餐类型</div>
  97. <div>云机时长</div>
  98. </div>
  99. <div>
  100. <loadList
  101. ref="assistGetPhoneRecode"
  102. url="activity/v5/assist/operation/assistGetPhoneRecode"
  103. description="当前您还没有白嫖到云手机"
  104. >
  105. <template #default="{ list }">
  106. <div
  107. v-for="(item, index) in list"
  108. :key="item.id"
  109. class="distribution-records-item"
  110. >
  111. <div>{{ index + 1 }}</div>
  112. <div>{{ item.diskName }}</div>
  113. <div>{{ item.phoneTypeStr }}</div>
  114. <div>{{ item.validTime }}天</div>
  115. </div>
  116. </template>
  117. </loadList>
  118. </div>
  119. </div>
  120. </div>
  121. </template>
  122. <!-- 参加活动的所有信息 -->
  123. <template v-if="barrageList.length">
  124. <div class="barrage"></div>
  125. </template>
  126. <div class="rule" @click="ruleVisible = true" v-if="+type">规则</div>
  127. <!-- 规则弹窗 -->
  128. <van-dialog v-model="ruleVisible" :showConfirmButton="false">
  129. <div class="rule-title">活动规则</div>
  130. <div class="rule-content">
  131. <div v-html="ruleHtml"></div>
  132. </div>
  133. <div class="rule-close">
  134. <van-icon name="cross" @click="ruleVisible = false" />
  135. </div>
  136. </van-dialog>
  137. <!-- 邀请人首次到砍价的页面的弹窗 -->
  138. <van-dialog v-model="bargainingVisible" :showConfirmButton="false">
  139. <div
  140. class="bargaining-img"
  141. @click="bargainingFun(true)"
  142. v-if="!bargainingTipsBool"
  143. ></div>
  144. <template v-else>
  145. <div class="bargaining-amount">
  146. <div class="bargaining-amount-text">
  147. 恭喜您,砍价成功<span>{{ bargainingAmount }}元</span>
  148. </div>
  149. <div class="bargaining-amount-img"></div>
  150. </div>
  151. </template>
  152. </van-dialog>
  153. <!-- 退出活动页的弹窗 -->
  154. <van-dialog v-model="exitVisible" :showConfirmButton="false">
  155. <div class="exit">
  156. <div class="exit-content">
  157. <div>确定要退出吗?</div>
  158. <div>
  159. 仅差<span>{{ info.remainingPrice }}元</span>免费带走云机
  160. </div>
  161. <div class="exit-content-progress">
  162. <customProgress v-model="info.schedule" />
  163. </div>
  164. <div class="exit-content-btn">
  165. <img
  166. @click="exitVisible = false"
  167. src="@/assets/image/claimCloudPhone/Inviting-others-img.png"
  168. alt=""
  169. />
  170. <div class="exit-content-btn_leave" @click="leaveFun">狠心离开</div>
  171. </div>
  172. </div>
  173. <img src="@/assets/image/claimCloudPhone/inviter-exit.png" alt="" />
  174. </div>
  175. </van-dialog>
  176. <!-- 砍价成功的弹窗-->
  177. <van-dialog
  178. v-model="successfulBargainingVisible"
  179. :showConfirmButton="false"
  180. >
  181. <div class="bargaining-success">
  182. <div class="bargaining-success-title">恭喜您,砍价成功</div>
  183. <div class="bargaining-success-tips">
  184. 您的云手机【获取云手机名称】发放成功/续费成功
  185. </div>
  186. <div class="bargaining-success-btn">
  187. <div @click="claimTheNextOne">免费领下一台云机</div>
  188. <div @click="leaveFun">返回云手机首页</div>
  189. </div>
  190. </div>
  191. </van-dialog>
  192. <!-- 免单时间过期弹窗 -->
  193. <van-dialog v-model="expireVisible" :showConfirmButton="false">
  194. <div class="expire">
  195. <div class="expire-btn" @click="claimTheNextOne">免费领下一台云机</div>
  196. </div>
  197. </van-dialog>
  198. <!-- 被邀请人登录 -->
  199. <van-dialog v-model="loginVisible" :showConfirmButton="false">
  200. <div class="login">
  201. <div class="login-title">双子星快捷登录</div>
  202. <van-field
  203. placeholder="手机号"
  204. v-model="laoginData.phone"
  205. maxLength="11"
  206. @input="laoginData.phone = laoginData.phone.replace(/\D/g, '')"
  207. />
  208. <van-field
  209. placeholder="验证码"
  210. v-model="laoginData.code"
  211. @input="
  212. laoginData.code = laoginData.code.replace(/[\u4e00-\u9fa5]/g, '')
  213. "
  214. >
  215. <template #button>
  216. <div
  217. :class="[
  218. 'login-code',
  219. {
  220. disabled:
  221. !agreementBool ||
  222. codeNumber !== '获取验证码' ||
  223. laoginData.phone.length < 11,
  224. },
  225. ]"
  226. @click="getCode"
  227. >
  228. {{ codeNumber }}
  229. </div>
  230. </template>
  231. </van-field>
  232. <van-button
  233. color="#3666F2"
  234. :disabled="
  235. !agreementBool ||
  236. !laoginData.code ||
  237. laoginData.phone.length < 11 ||
  238. loginLoading
  239. "
  240. @click="login"
  241. >
  242. <template v-if="loginLoading"> 正在登录中... </template>
  243. <template v-else> 登录 </template>
  244. </van-button>
  245. <div class="login-agreement">
  246. <van-checkbox icon-size="16px" v-model="agreementBool">
  247. 通过登录即可完成注册,成为我们的新用户登录后表示同意
  248. <span @click.stop="toAgreement">用户协议</span>
  249. </van-checkbox>
  250. </div>
  251. </div>
  252. </van-dialog>
  253. </div>
  254. </template>
  255. <script>
  256. import { sha256 } from 'js-sha256';
  257. import customProgress from './customProgress.vue';
  258. import loadList from '@/components/loadList';
  259. import { fileKeyToUrl } from '@/plugins/file-center.js';
  260. export default {
  261. props: {
  262. operateActivityId: {
  263. type: [String, Number],
  264. default: '',
  265. },
  266. type: {
  267. type: [Number, String],
  268. default: '',
  269. },
  270. getSystemTime: {
  271. type: Function,
  272. default: () => {
  273. return () => {};
  274. },
  275. },
  276. leaveFun: {
  277. type: Function,
  278. default: () => {
  279. return () => {};
  280. },
  281. },
  282. wxIntercept: {
  283. type: Function,
  284. default: () => {
  285. return () => {};
  286. },
  287. },
  288. inviteeData: {
  289. type: Object,
  290. default: () => {
  291. return {};
  292. },
  293. },
  294. },
  295. data() {
  296. return {
  297. total: 50, // 砍价百分比
  298. barrageList: [], // 滚动轮播数据
  299. ruleVisible: false, // 规则弹窗
  300. bargainingVisible: false, // 首次砍价弹窗
  301. bargainingTipsBool: false, // 是否切换成砍价金额的页面
  302. exitVisible: false, // 退出弹窗
  303. successfulBargainingVisible: false, // 砍价成功弹窗
  304. expireVisible: false, // 免单时间过期弹窗
  305. loginVisible: false, // 被邀请人登录框
  306. agreementBool: false, // 是否勾选协议
  307. ruleHtml: '', // 规则内容
  308. info: {}, // 砍价相关信息
  309. bargainingAmount: '', // 砍价金额
  310. systemTime: '', // 系统时间
  311. assistanceBool: false, // 是否触发助力
  312. laoginData: {
  313. // 被邀请人登录信息
  314. phone: '',
  315. code: '',
  316. },
  317. codeNumber: '获取验证码',
  318. loginLoading: false,
  319. };
  320. },
  321. components: {
  322. customProgress,
  323. loadList,
  324. },
  325. mounted() {
  326. if (sessionStorage.getItem('isAgreementBool')) {
  327. this.assistanceBool = true;
  328. this.loginVisible = true;
  329. this.laoginData.phone = sessionStorage.getItem('invitedPhone');
  330. this.laoginData.code = sessionStorage.getItem('invitedCode');
  331. sessionStorage.removeItem('isAgreementBool');
  332. sessionStorage.removeItem('invitedPhone');
  333. sessionStorage.removeItem('invitedCode');
  334. }
  335. if (+this.type === 1 || +this.type === 2) {
  336. this.getRule();
  337. this.getAssistAwardRecode();
  338. }
  339. setTimeout(() => {
  340. this.bargainingStatus(true);
  341. switch (+this.type) {
  342. case 3: // 成功,领取下一台云机界面
  343. this.successfulBargainingVisible = true;
  344. break;
  345. case 4: // 失败,领取下一台云机界面
  346. this.expireVisible = true;
  347. break;
  348. }
  349. });
  350. },
  351. computed: {
  352. time() {
  353. const { validityPeriodTimeStamp = 0 } = this.info;
  354. return validityPeriodTimeStamp
  355. ? validityPeriodTimeStamp - this.systemTime * 1000
  356. : 0;
  357. },
  358. },
  359. methods: {
  360. // 轮播活动参加的人的信息
  361. startBarrage() {
  362. const barrage = document.querySelector('.barrage');
  363. if (!barrage.childNodes.length) {
  364. const data = this.barrageList[0];
  365. this.barrageList.shift();
  366. this.barrageList.push(data);
  367. barrage.appendChild(writeIn(data));
  368. }
  369. const first = barrage.childNodes[0];
  370. setTimeout(() => {
  371. first.className = 'start';
  372. first.addEventListener('animationstart', () => {
  373. const data = this.barrageList[0];
  374. this.barrageList.shift();
  375. this.barrageList.push(data);
  376. const div = writeIn(data);
  377. barrage.appendChild(div);
  378. setTimeout(() => {
  379. div.style = 'opacity: 1';
  380. }, 100);
  381. });
  382. first.addEventListener('animationend', () => {
  383. barrage.removeChild(first);
  384. this.startBarrage();
  385. });
  386. }, 1000);
  387. function writeIn({ price, phoneNumber, phoneType, duration }) {
  388. const div = document.createElement('div');
  389. div.style = 'opacity: 0';
  390. div.innerHTML = `<div>
  391. <div>${phoneNumber}</div>
  392. </div>
  393. <div>${phoneType}${duration}天,价值<span>${price}元</span></div>`;
  394. return div;
  395. }
  396. },
  397. bargainingFun(bool = false) {
  398. // 首次砍价的时候进此判断
  399. if (bool) {
  400. this.$toast.loading({
  401. message: '加载中...',
  402. forbidClick: true,
  403. duration: 0,
  404. });
  405. const { menuRuleId, userCardId } = this.$route.query;
  406. const obj = {
  407. operateActivityId: this.operateActivityId,
  408. menuRuleId,
  409. };
  410. // 如果是续费,选择了对应云机,需要传云机id
  411. if (userCardId) obj.userCardId = userCardId;
  412. this.$axios
  413. .$post('activity/v5/assist/bargaining/userSelectedPackage', obj)
  414. .then((res) => {
  415. if (res.success) {
  416. // 砍价金额
  417. this.bargainingAmount = res.data.fristKnifeAmount;
  418. setTimeout(() => {
  419. this.bargainingTipsBool = true;
  420. });
  421. // 重新获取用户最新的数据
  422. setTimeout(this.bargainingStatus, 1000);
  423. }
  424. })
  425. .catch((error) => {
  426. setTimeout(() => {
  427. this.$toast(error.message);
  428. });
  429. })
  430. .finally(() => {
  431. this.$toast.clear();
  432. });
  433. return;
  434. }
  435. this.chopAKnife();
  436. },
  437. // 获取规则
  438. getRule() {
  439. this.$axios
  440. .$get('public/v4/agreement/content', {
  441. params: { agreementCoding: 'YDQLBHD10000' },
  442. })
  443. .then((res) => {
  444. if (res.success) {
  445. const html = res.data.content;
  446. const rx = /<body[^>]*>([\s\S]+?)<\/body>/i;
  447. let m = rx.exec(html);
  448. if (m) {
  449. m = m[1];
  450. }
  451. this.ruleHtml = m;
  452. }
  453. });
  454. },
  455. // 获取用户数据接口
  456. bargainingStatus(bool = false) {
  457. if (bool) {
  458. this.$toast.loading({
  459. message: '加载中...',
  460. forbidClick: true,
  461. duration: 0,
  462. });
  463. }
  464. const params = {};
  465. console.log(this.inviteeData);
  466. if (Object.keys(this.inviteeData).length) {
  467. params.userLaunchId = this.inviteeData.userLaunchId;
  468. }
  469. this.$axios
  470. .$get('activity/v5/assist/bargaining/current/bargainingStatus', {
  471. params,
  472. })
  473. .then(async (res) => {
  474. if (res.success) {
  475. this.info = res.data;
  476. localStorage.setItem(
  477. 'bargainingStatusInfo',
  478. JSON.stringify(this.info),
  479. );
  480. if (Object.keys(this.inviteeData).length) {
  481. return;
  482. }
  483. const data = await this.getSystemTime();
  484. this.systemTime = data.data;
  485. if (this.info.bargainingStatus === 0) {
  486. this.bargainingVisible = true;
  487. return
  488. }
  489. // 如果是安卓客户端登录的情况且bargainingStatus为 1 2 ,
  490. if (
  491. this.info.bargainingStatus === 1 ||
  492. this.info.bargainingStatus === 2
  493. ) {
  494. // 对安卓返回键做拦截
  495. if (
  496. (this.$userAgent.isSzx || this.$userAgent.isSzxBrowser) &&
  497. this.$userAgent.isAndroid
  498. ) {
  499. window.native.webBackStatus(true);
  500. window.appGoBackCallback = () => {
  501. this.exitVisible = true;
  502. };
  503. return;
  504. }
  505. // 对微信做拦截
  506. if (this.$userAgent.isWx) {
  507. this.wxIntercept(() => {
  508. history.pushState(null, null, document.URL);
  509. this.exitVisible = true;
  510. });
  511. return;
  512. }
  513. }
  514. if (
  515. [1, 2].includes(this.info.bargainingStatus) &&
  516. this.$refs.assistRecodeList &&
  517. this.$refs.assistGetPhoneRecode
  518. ) {
  519. this.$refs.assistRecodeList.data = [];
  520. this.$refs.assistGetPhoneRecode.data = [];
  521. this.$refs.assistRecodeList.list();
  522. this.$refs.assistGetPhoneRecode.list();
  523. }
  524. }
  525. })
  526. .catch((error) => {
  527. this.$toast(error.message);
  528. })
  529. .finally(() => {
  530. if (this.info.bargainingStatus !== 0) this.bargainingVisible = false;
  531. this.$toast.clear();
  532. });
  533. },
  534. // 滚动的相关数据
  535. getAssistAwardRecode() {
  536. this.$axios
  537. .$get('activity/v5/assist/operation/getAssistAwardRecode', {})
  538. .then((res) => {
  539. if (res.success) {
  540. this.barrageList = res.data;
  541. setTimeout(() => {
  542. this.barrageList.length && this.startBarrage();
  543. });
  544. }
  545. });
  546. },
  547. // 领取下一台手机
  548. claimTheNextOne() {
  549. this.$toast.loading({
  550. message: '加载中...',
  551. forbidClick: true,
  552. duration: 0,
  553. });
  554. this.$axios
  555. .$get('activity/v5/assist/operation/reportCutStatus', {
  556. params: {
  557. userLaunchId: this.info.userLaunchId,
  558. },
  559. })
  560. .then((res) => {
  561. if (res.success) {
  562. // 解除安卓返回按键
  563. if (
  564. (this.$userAgent.isSzx || this.$userAgent.isSzxBrowser) &&
  565. this.$userAgent.isAndroid
  566. ) {
  567. window.native.webBackStatus(false);
  568. }
  569. this.$router.replace('/claimCloudPhone/chooseCloudPhone?exit=1');
  570. }
  571. })
  572. .catch((error) => {
  573. setTimeout(() => {
  574. this.$toast(error.message);
  575. });
  576. })
  577. .finally(() => {
  578. this.$toast.clear();
  579. });
  580. },
  581. // 砍一刀
  582. chopAKnife() {
  583. this.$toast.loading({
  584. message: '加载中...',
  585. forbidClick: true,
  586. duration: 0,
  587. });
  588. this.$axios
  589. .$post('activity/v5/assist/operation/chopAKnife')
  590. .then((res) => {
  591. if (res.success) {
  592. this.bargainingTipsBool = true;
  593. this.bargainingAmount = res.data;
  594. setTimeout(() => {
  595. this.bargainingVisible = true;
  596. });
  597. // 重新获取用户最新的数据
  598. setTimeout(this.bargainingStatus, 1000);
  599. }
  600. })
  601. .catch((error) => {
  602. this.$toast(error.message);
  603. setTimeout(() => {
  604. this.$toast.clear();
  605. }, 500);
  606. });
  607. },
  608. btnFun() {
  609. if (!+this.type) this.assistanceBool = true;
  610. if (+this.type) {
  611. switch (this.info.bargainingStatus) {
  612. case 1:
  613. this.chopAKnife();
  614. break;
  615. case 2:
  616. this.$toast.loading({
  617. message: '加载中...',
  618. forbidClick: true,
  619. duration: 0,
  620. });
  621. this.$axios
  622. .$post('activity/v5/assist/bargaining/getGenerateInvitationLink')
  623. .then(async (res) => {
  624. if (res.success) {
  625. res.data.desc = res.data.content;
  626. res.data.link = res.data.url;
  627. res.data.imgUrl = fileKeyToUrl(res.data.imgUrl);
  628. const shareInfo = { ...res.data };
  629. if (this.$userAgent.isSzx || this.$userAgent.isSzxBrowser) {
  630. this.$native.share(shareInfo);
  631. } else {
  632. // 微信环境不支持复制
  633. if (this.$userAgent.isWx || this.$userAgent.isMiniProgram) {
  634. setTimeout(() => {
  635. this.$toast.fail(
  636. '链接复制失败,请访问客户端或网页复制该链接',
  637. );
  638. });
  639. return;
  640. }
  641. // 浏览器环境
  642. await this.$native.clipboard.writeText(res.data.link);
  643. setTimeout(() => {
  644. this.$toast.success('链接复制成功');
  645. });
  646. }
  647. }
  648. })
  649. .finally(() => {
  650. this.$toast.clear();
  651. });
  652. break;
  653. }
  654. }
  655. },
  656. // 获取验证码
  657. getCode() {
  658. if (
  659. this.laoginData.phone.length < 11 ||
  660. this.codeNumber !== '获取验证码' ||
  661. !this.agreementBool
  662. ) {
  663. return;
  664. }
  665. if (!/^1[3456789]\d{9}$/.test(this.laoginData.phone)) {
  666. this.$toast('手机号码有误,请重填');
  667. return;
  668. }
  669. this.$toast.loading({
  670. message: '加载中...',
  671. forbidClick: true,
  672. duration: 0,
  673. });
  674. const params = {
  675. type: 'common',
  676. authorizationType: 4,
  677. phone: this.laoginData.phone,
  678. };
  679. this.$axios
  680. .$post('message/v5/phone/send', params)
  681. .then((res) => {
  682. if (res.success) {
  683. this.codeNumber = 60;
  684. const timer = setInterval(() => {
  685. this.codeNumber--;
  686. if (this.codeNumber === 0) {
  687. this.codeNumber = '获取验证码';
  688. clearInterval(timer);
  689. }
  690. }, 1000);
  691. setTimeout(() => {
  692. this.$toast('获取成功');
  693. });
  694. }
  695. })
  696. .catch((error) => {
  697. setTimeout(() => {
  698. this.$toast(error.message);
  699. });
  700. })
  701. .finally(() => {
  702. this.$toast.clear();
  703. });
  704. },
  705. // 登录
  706. async login() {
  707. this.loginLoading = true;
  708. let uuid = localStorage.getItem('uuid');
  709. if (!uuid) {
  710. const url = URL.createObjectURL(new Blob());
  711. uuid = url.toString();
  712. URL.revokeObjectURL(url);
  713. uuid = uuid.substring(uuid.lastIndexOf('/') + 1);
  714. // 去除 UUID 字符串中的连字符
  715. const uuidHex = uuid.replace(/-/g, '');
  716. // 将十六进制字符串解析为大整数
  717. const uuidNumber = BigInt('0x' + uuidHex);
  718. uuid = uuidNumber.toString().substring(0, 20); // 将大整数转换为字符串格式
  719. localStorage.setItem('uuid', uuid);
  720. }
  721. const data = await this.getSystemTime();
  722. const registerTime = this.timestampToTime(data.data);
  723. const params = {
  724. invitationType: 6,
  725. registerSource: 102,
  726. uuid,
  727. registerTime,
  728. };
  729. const headers = {
  730. devicesId: uuid,
  731. registerSign: this.jm(registerTime),
  732. };
  733. Object.assign(params, this.laoginData);
  734. Object.assign(params, this.inviteeData);
  735. params.activityId = params.operateActivityId;
  736. delete params.operateActivityId;
  737. this.$axios
  738. .$post('user/v5/client/register/forH5', params, { headers })
  739. .then((res) => {
  740. if (res.success) {
  741. localStorage.setItem('phone', params.phone);
  742. localStorage.setItem('auth._token.password', res.data.token)
  743. localStorage.setItem('token', res.data.token)
  744. localStorage.setItem('dataInfo', `{type: Object, data: ${JSON.stringify(res.data)}}`)
  745. this.$toast('登录成功');
  746. const url = !res.data.jumpToPage
  747. ? '/claimCloudPhone?bool=1'
  748. : '/claimCloudPhone/firstReward';
  749. this.$router[res.data.jumpToPage ? 'replace' : 'push'](url);
  750. }
  751. })
  752. .catch((error) => {
  753. setTimeout(() => {
  754. this.$toast(error.message);
  755. });
  756. })
  757. .finally(() => {
  758. this.loginLoading = false;
  759. });
  760. },
  761. timestampToTime(timestamp) {
  762. var date = new Date(timestamp * 1000);
  763. var Y = date.getFullYear() + '-';
  764. var M =
  765. (date.getMonth() + 1 < 10
  766. ? '0' + (date.getMonth() + 1)
  767. : date.getMonth() + 1) + '-';
  768. var D =
  769. (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' ';
  770. var h =
  771. (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
  772. var m =
  773. (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) +
  774. ':';
  775. var s =
  776. date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
  777. return Y + M + D + h + m + s;
  778. },
  779. jm(systemTime) {
  780. const registerSign = sha256('Register_SZX_2023:' + systemTime);
  781. return registerSign;
  782. },
  783. // 跳转对应协议
  784. toAgreement() {
  785. sessionStorage.setItem('invitedPhone', this.laoginData.phone);
  786. sessionStorage.setItem('invitedCode', this.laoginData.code);
  787. this.$router.push(
  788. '/claimCloudPhone/agreement?agreementCoding=XYPZYHXY2002',
  789. );
  790. },
  791. },
  792. };
  793. </script>
  794. <style lang="less" scoped>
  795. .bargaining-assistance {
  796. height: 100%;
  797. .inviter-tips,
  798. .invitee-tips {
  799. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  800. }
  801. .inviter-tips {
  802. font-weight: 400;
  803. font-size: 12px;
  804. color: #ffffff;
  805. line-height: 17px;
  806. text-align: center;
  807. font-style: normal;
  808. margin-bottom: 14px;
  809. & > div {
  810. font-size: 26px;
  811. line-height: 30px;
  812. }
  813. }
  814. .invitee-tips {
  815. .invitee-tips-user {
  816. font-weight: bold;
  817. font-size: 18px;
  818. color: #ffffff;
  819. line-height: 22px;
  820. text-align: left;
  821. font-style: normal;
  822. margin-bottom: 8px;
  823. }
  824. .invitee-tips-text {
  825. font-weight: 400;
  826. font-size: 14px;
  827. color: #ffffff;
  828. line-height: 22px;
  829. text-align: left;
  830. font-style: normal;
  831. span {
  832. color: #fceba9;
  833. }
  834. margin-bottom: 24px;
  835. }
  836. }
  837. .bargaining-assistance-main {
  838. background: #ffffff;
  839. border-radius: 20px;
  840. margin-bottom: 24px;
  841. overflow: hidden;
  842. .package-name {
  843. display: flex;
  844. justify-content: center;
  845. span {
  846. display: inline-block;
  847. padding: 5px 61px;
  848. background: #ffe8e8;
  849. border-radius: 0 0 15px 15px;
  850. margin: 0 auto;
  851. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  852. font-weight: bold;
  853. font-size: 16px;
  854. color: #c00202;
  855. line-height: 20px;
  856. text-align: center;
  857. font-style: normal;
  858. }
  859. }
  860. .package-price {
  861. font-family: Alibaba-PuHuiTi, Alibaba-PuHuiTi;
  862. height: 120px;
  863. font-weight: normal;
  864. box-sizing: border-box;
  865. padding-top: 30px;
  866. font-size: 30px;
  867. color: #c70b0b;
  868. line-height: 62px;
  869. text-align: center;
  870. font-style: normal;
  871. font-weight: bold;
  872. width: calc(100% - 24px);
  873. margin: 0 auto;
  874. background: #ffffff;
  875. box-shadow: 0px 0px 8px 2px #f4f7f8, 0px 2px 4px 0px #ecedf8;
  876. border-radius: 20px;
  877. margin-top: -20px;
  878. span {
  879. font-size: 20px;
  880. }
  881. }
  882. .package-progress {
  883. margin: 40px 42px 28px;
  884. }
  885. .package-tips {
  886. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  887. text-align: center;
  888. font-size: 16px;
  889. font-weight: bold;
  890. color: #000000;
  891. line-height: 22px;
  892. font-style: normal;
  893. margin-bottom: 24px;
  894. span {
  895. color: #f04646;
  896. }
  897. & > div:first-of-type {
  898. font-size: 21px;
  899. line-height: 29px;
  900. }
  901. }
  902. .package-btn {
  903. height: 54px;
  904. background: linear-gradient(178deg, #fd8c50 0%, #fc3307 100%);
  905. border-radius: 28px;
  906. margin: 0 27px;
  907. font-family: AlimamaShuHeiTi, AlimamaShuHeiTi;
  908. font-weight: bold;
  909. font-size: 20px;
  910. color: #ffffff;
  911. line-height: 54px;
  912. text-align: center;
  913. font-style: normal;
  914. // margin-bottom: 24px;
  915. }
  916. .package-expire {
  917. margin-top: 12px;
  918. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  919. text-align: center;
  920. font-style: normal;
  921. margin-bottom: 24px;
  922. &,
  923. .van-count-down {
  924. font-weight: 400;
  925. font-size: 12px;
  926. color: #7d6156;
  927. line-height: 16px;
  928. }
  929. .van-count-down {
  930. display: inline-block;
  931. }
  932. }
  933. .invitee-to-claim {
  934. height: 339px;
  935. border-radius: 20px;
  936. background: url('~/assets/image/claimCloudPhone/Invitee-to-claim.png')
  937. no-repeat 0 0;
  938. background-size: 100% 100%;
  939. position: relative;
  940. .invitee-to-claim_btn {
  941. height: 54px;
  942. background: linear-gradient(90deg, #ff6d2b 0%, #ff1500 100%);
  943. box-shadow: inset 9px -7px 19px 0px #ffba57,
  944. inset -1px 2px 6px 0px #ffbd63;
  945. border-radius: 27px;
  946. text-align: center;
  947. position: absolute;
  948. bottom: 14px;
  949. width: 200px;
  950. font-family: YouSheBiaoTiYuan;
  951. font-size: 28px;
  952. color: #ffffff;
  953. line-height: 23px;
  954. left: 50%;
  955. transform: translateX(-50%);
  956. font-style: normal;
  957. font-weight: bold;
  958. line-height: 54px;
  959. }
  960. }
  961. }
  962. .bargaining-record {
  963. margin-bottom: 24px;
  964. }
  965. .bargaining-record,
  966. .distribution-records {
  967. background: #ffffff;
  968. border-radius: 12px;
  969. .title {
  970. height: 44px;
  971. background: #ffe8e8;
  972. border-radius: 12px 12px 0px 0px;
  973. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  974. font-weight: bold;
  975. font-size: 16px;
  976. color: #c00202;
  977. line-height: 44px;
  978. text-align: center;
  979. font-style: normal;
  980. }
  981. .container {
  982. height: 250px;
  983. overflow-y: auto;
  984. padding: 0 20px;
  985. scrollbar-width: none !important; /* 对于 Firefox 隐藏滚动条 */
  986. &::-webkit-scrollbar {
  987. display: none !important; /* 对于 Chrome, Safari 和 Opera 隐藏滚动条 */
  988. }
  989. .van-empty {
  990. padding: 0 !important;
  991. }
  992. }
  993. .bargaining-record-item {
  994. height: 53px;
  995. border-bottom: 2px #f1f1f1 solid;
  996. display: flex;
  997. align-items: center;
  998. .bargaining-record-item_info {
  999. font-family: PingFangSC, PingFang SC;
  1000. font-weight: 400;
  1001. font-size: 14px;
  1002. color: #7d6156;
  1003. line-height: 18px;
  1004. font-style: normal;
  1005. & > div:first-of-type,
  1006. span {
  1007. font-weight: bold;
  1008. }
  1009. span {
  1010. color: #c00202;
  1011. }
  1012. }
  1013. }
  1014. }
  1015. .distribution-records {
  1016. .container {
  1017. padding: 0px;
  1018. position: relative;
  1019. & > div:first-of-type {
  1020. position: absolute;
  1021. width: 100%;
  1022. left: 0;
  1023. height: 20px;
  1024. background: #ffffff;
  1025. box-shadow: 0px 2px 4px 0px #ecedf8;
  1026. top: 0;
  1027. font-family: PingFangSC, PingFang SC;
  1028. font-weight: 400;
  1029. font-size: 12px;
  1030. color: #7d6156;
  1031. line-height: 20px;
  1032. text-align: center;
  1033. display: flex;
  1034. font-style: normal;
  1035. & > div {
  1036. width: 25%;
  1037. }
  1038. }
  1039. & > div:last-of-type {
  1040. height: 100%;
  1041. box-sizing: border-box;
  1042. padding-top: 20px;
  1043. overflow-y: auto;
  1044. scrollbar-width: none !important; /* 对于 Firefox 隐藏滚动条 */
  1045. &::-webkit-scrollbar {
  1046. display: none !important; /* 对于 Chrome, Safari 和 Opera 隐藏滚动条 */
  1047. }
  1048. ::v-deep .van-empty {
  1049. padding: 0px;
  1050. .van-empty__image {
  1051. img {
  1052. display: none;
  1053. }
  1054. background: url('~/assets/image/claimCloudPhone/distribution-records-empty.png')
  1055. no-repeat center bottom;
  1056. background-size: 90px 90px;
  1057. }
  1058. }
  1059. .distribution-records-item {
  1060. height: 46px;
  1061. line-height: 46px;
  1062. box-sizing: border-box;
  1063. display: flex;
  1064. border-bottom: 2px #f1f1f1 solid;
  1065. & > div {
  1066. width: 25%;
  1067. text-align: center;
  1068. font-family: PingFangSC, PingFang SC;
  1069. font-weight: 400;
  1070. font-size: 14px;
  1071. color: #6d2b12;
  1072. text-align: center;
  1073. font-style: normal;
  1074. }
  1075. }
  1076. }
  1077. }
  1078. }
  1079. .barrage {
  1080. position: fixed;
  1081. bottom: 11%;
  1082. transform: translateY(-11%);
  1083. right: 11px;
  1084. & > ::v-deep div {
  1085. transition: all 0.7s;
  1086. &.start {
  1087. opacity: 1;
  1088. animation: barrage 0.5s linear;
  1089. @keyframes barrage {
  1090. 0% {
  1091. opacity: 1;
  1092. transform: translateY(0px);
  1093. }
  1094. 100% {
  1095. transform: translateY(-30px);
  1096. opacity: 0;
  1097. }
  1098. }
  1099. }
  1100. opacity: 1;
  1101. width: 143px;
  1102. height: 40px;
  1103. position: absolute;
  1104. bottom: 11%;
  1105. right: 11px;
  1106. background: linear-gradient(
  1107. 90deg,
  1108. #992bff 0%,
  1109. rgba(255, 21, 0, 0.4) 100%
  1110. );
  1111. border-radius: 23px;
  1112. border-image: linear-gradient(
  1113. 94deg,
  1114. rgba(255, 255, 255, 1),
  1115. rgba(255, 255, 255, 0.35)
  1116. )
  1117. 1 1;
  1118. padding-left: 20px;
  1119. font-size: 10px;
  1120. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1121. font-weight: 400;
  1122. color: #ffffff;
  1123. display: flex;
  1124. flex-direction: column;
  1125. justify-content: center;
  1126. & > div {
  1127. height: 16px;
  1128. line-height: 16px;
  1129. &:first-of-type {
  1130. display: flex;
  1131. & > div {
  1132. overflow: hidden;
  1133. text-overflow: ellipsis;
  1134. white-space: nowrap;
  1135. }
  1136. }
  1137. &:last-of-type span {
  1138. color: #fddb2b;
  1139. }
  1140. }
  1141. }
  1142. }
  1143. .rule {
  1144. position: fixed;
  1145. top: 12.5%;
  1146. right: 0;
  1147. width: 40px;
  1148. height: 20px;
  1149. line-height: 20px;
  1150. background: #f04646;
  1151. border-radius: 17px 0px 0px 17px;
  1152. z-index: 2;
  1153. font-family: PingFangSC, PingFang SC;
  1154. font-weight: 400;
  1155. font-size: 12px;
  1156. color: #ffffff;
  1157. text-align: center;
  1158. font-style: normal;
  1159. }
  1160. .rule-title {
  1161. height: 53px;
  1162. border-radius: 16px 16px 0 0;
  1163. background: linear-gradient(90deg, #f6cdb9 0%, #fbdbde 100%);
  1164. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1165. font-weight: bold;
  1166. font-size: 18px;
  1167. color: #751d13;
  1168. line-height: 53px;
  1169. text-align: center;
  1170. font-style: normal;
  1171. }
  1172. .rule-content {
  1173. height: 325px;
  1174. padding: 16px;
  1175. box-sizing: border-box;
  1176. background: #fff;
  1177. border-radius: 0 0 16px 16px;
  1178. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1179. font-weight: 400;
  1180. font-size: 14px;
  1181. color: #751d13;
  1182. line-height: 16px;
  1183. text-align: left;
  1184. font-style: normal;
  1185. overflow-y: auto;
  1186. }
  1187. .rule-close {
  1188. height: 32px;
  1189. width: 32px;
  1190. background: #c1c1c1;
  1191. z-index: 5;
  1192. margin: 20px auto 0;
  1193. border-radius: 50%;
  1194. display: flex;
  1195. justify-content: center;
  1196. align-items: center;
  1197. font-size: 24px;
  1198. color: #666666;
  1199. }
  1200. ::v-deep .van-dialog {
  1201. background: transparent !important;
  1202. }
  1203. .bargaining-img {
  1204. height: 512px;
  1205. width: 100%;
  1206. background: url('~/assets/image/claimCloudPhone/bargaining-popUp.png')
  1207. no-repeat 0 20px;
  1208. background-size: 100% 100%;
  1209. }
  1210. .bargaining-amount {
  1211. height: 234px;
  1212. background: url('~/assets/image/claimCloudPhone/bargaining-amount-img.png')
  1213. no-repeat 0 20px;
  1214. padding-top: 30px;
  1215. box-sizing: border-box;
  1216. background-size: 100% 210px;
  1217. .bargaining-amount-text {
  1218. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1219. font-weight: bold;
  1220. font-size: 24px;
  1221. color: #ffffff;
  1222. text-align: center;
  1223. font-style: normal;
  1224. span {
  1225. color: #ff0000;
  1226. }
  1227. }
  1228. }
  1229. .exit {
  1230. height: 520px;
  1231. position: relative;
  1232. & > img {
  1233. height: 100%;
  1234. width: 100%;
  1235. }
  1236. .exit-content {
  1237. position: absolute;
  1238. top: 25%;
  1239. left: 50%;
  1240. width: 200px;
  1241. transform: translateX(-50%);
  1242. font-family: AlimamaShuHeiTi, AlimamaShuHeiTi;
  1243. font-weight: bold;
  1244. font-size: 16px;
  1245. color: #171815;
  1246. line-height: 24px;
  1247. text-align: center;
  1248. font-style: normal;
  1249. & > div span {
  1250. color: #f04646;
  1251. }
  1252. .exit-content-progress {
  1253. margin: 50px 0 80px;
  1254. }
  1255. .exit-content-btn {
  1256. & > img {
  1257. height: 42px;
  1258. width: 100%;
  1259. }
  1260. .exit-content-btn_leave {
  1261. font-weight: 400;
  1262. font-size: 12px;
  1263. color: #faf3d8;
  1264. }
  1265. }
  1266. }
  1267. }
  1268. .bargaining-success {
  1269. height: 378px;
  1270. background: url('~/assets/image/claimCloudPhone/successful-bargaining-img.png')
  1271. no-repeat 0 0;
  1272. background-size: 100% 100%;
  1273. overflow: hidden;
  1274. position: relative;
  1275. .bargaining-success-title {
  1276. margin-top: 24px;
  1277. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1278. font-weight: bold;
  1279. font-size: 28px;
  1280. color: #fdf9c8;
  1281. line-height: 38px;
  1282. text-align: center;
  1283. font-style: normal;
  1284. }
  1285. .bargaining-success-tips {
  1286. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1287. width: 165px;
  1288. font-weight: bold;
  1289. font-size: 12px;
  1290. color: #ffffff;
  1291. line-height: 17px;
  1292. text-align: center;
  1293. margin: 0 auto;
  1294. }
  1295. .bargaining-success-btn {
  1296. position: absolute;
  1297. bottom: 20px;
  1298. left: 50%;
  1299. transform: translateX(-50%);
  1300. display: flex;
  1301. flex-direction: column;
  1302. justify-content: center;
  1303. & > div {
  1304. width: 180px;
  1305. height: 48px;
  1306. line-height: 48px;
  1307. text-align: center;
  1308. border-radius: 24px;
  1309. color: #fff;
  1310. font-weight: bold;
  1311. &:first-of-type {
  1312. margin-bottom: 8px;
  1313. background: linear-gradient(178deg, #fd8c50 0%, #fc3307 100%);
  1314. }
  1315. &:last-of-type {
  1316. color: #e63b47;
  1317. border: 1px solid #e63b47;
  1318. }
  1319. }
  1320. }
  1321. }
  1322. .expire {
  1323. height: 378px;
  1324. background: url('~/assets/image/claimCloudPhone/expire-img.png') no-repeat 0
  1325. 0;
  1326. background-size: 100% 100%;
  1327. position: relative;
  1328. .expire-btn {
  1329. position: absolute;
  1330. bottom: 20px;
  1331. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1332. font-weight: 500;
  1333. font-size: 16px;
  1334. color: #ffffff;
  1335. line-height: 48px;
  1336. left: 50%;
  1337. transform: translateX(-50%);
  1338. text-align: center;
  1339. font-style: normal;
  1340. width: 180px;
  1341. height: 48px;
  1342. background: linear-gradient(178deg, #fd8c50 0%, #fc3307 100%);
  1343. border-radius: 24px;
  1344. }
  1345. }
  1346. .login {
  1347. height: 312px;
  1348. background: #ffffff;
  1349. border-radius: 24px;
  1350. padding: 16px 28px;
  1351. box-sizing: border-box;
  1352. .login-title {
  1353. font-family: DingTalk, DingTalk;
  1354. font-weight: normal;
  1355. font-weight: bold;
  1356. font-size: 24px;
  1357. color: #0a132b;
  1358. line-height: 28px;
  1359. text-align: left;
  1360. font-style: normal;
  1361. margin-bottom: 14px;
  1362. }
  1363. .van-field {
  1364. margin-bottom: 14px;
  1365. border-radius: 8px;
  1366. border: 1px solid #e6e6e6;
  1367. }
  1368. .van-button {
  1369. width: 100%;
  1370. border-radius: 8px;
  1371. }
  1372. .login-code {
  1373. font-family: PingFangSC, PingFang SC;
  1374. font-weight: 500;
  1375. font-size: 14px;
  1376. color: #3666f2;
  1377. line-height: 16px;
  1378. text-align: left;
  1379. font-style: normal;
  1380. &.disabled {
  1381. color: #999;
  1382. }
  1383. }
  1384. .login-agreement {
  1385. font-family: PingFangSC, PingFang SC;
  1386. font-weight: 400;
  1387. font-size: 12px;
  1388. font-style: normal;
  1389. margin-top: 12px;
  1390. display: flex;
  1391. span {
  1392. color: #3666f2;
  1393. }
  1394. .van-checkbox {
  1395. align-items: start;
  1396. ::v-deep .van-checkbox__label {
  1397. color: #999999;
  1398. }
  1399. ::v-deep .van-checkbox__icon {
  1400. margin-top: 3px;
  1401. }
  1402. }
  1403. }
  1404. }
  1405. ::v-deep .phone-container {
  1406. background: transparent;
  1407. }
  1408. }
  1409. </style>