bargainingAssistance.vue 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455
  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(
  745. 'dataInfo',
  746. JSON.stringify({ type: Object, data: res.data }),
  747. );
  748. this.$toast('登录成功');
  749. const url = !res.data.jumpToPage
  750. ? '/claimCloudPhone?bool=1'
  751. : '/claimCloudPhone/firstReward';
  752. this.$router[res.data.jumpToPage ? 'replace' : 'push'](url);
  753. }
  754. })
  755. .catch((error) => {
  756. setTimeout(() => {
  757. this.$toast(error.message);
  758. });
  759. })
  760. .finally(() => {
  761. this.loginLoading = false;
  762. });
  763. },
  764. timestampToTime(timestamp) {
  765. var date = new Date(timestamp * 1000);
  766. var Y = date.getFullYear() + '-';
  767. var M =
  768. (date.getMonth() + 1 < 10
  769. ? '0' + (date.getMonth() + 1)
  770. : date.getMonth() + 1) + '-';
  771. var D =
  772. (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' ';
  773. var h =
  774. (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
  775. var m =
  776. (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) +
  777. ':';
  778. var s =
  779. date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
  780. return Y + M + D + h + m + s;
  781. },
  782. jm(systemTime) {
  783. const registerSign = sha256('Register_SZX_2023:' + systemTime);
  784. return registerSign;
  785. },
  786. // 跳转对应协议
  787. toAgreement() {
  788. sessionStorage.setItem('invitedPhone', this.laoginData.phone);
  789. sessionStorage.setItem('invitedCode', this.laoginData.code);
  790. this.$router.push(
  791. '/claimCloudPhone/agreement?agreementCoding=XYPZYHXY2002',
  792. );
  793. },
  794. },
  795. };
  796. </script>
  797. <style lang="less" scoped>
  798. .bargaining-assistance {
  799. height: 100%;
  800. .inviter-tips,
  801. .invitee-tips {
  802. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  803. }
  804. .inviter-tips {
  805. font-weight: 400;
  806. font-size: 12px;
  807. color: #ffffff;
  808. line-height: 17px;
  809. text-align: center;
  810. font-style: normal;
  811. margin-bottom: 14px;
  812. & > div {
  813. font-size: 26px;
  814. line-height: 30px;
  815. }
  816. }
  817. .invitee-tips {
  818. .invitee-tips-user {
  819. font-weight: bold;
  820. font-size: 18px;
  821. color: #ffffff;
  822. line-height: 22px;
  823. text-align: left;
  824. font-style: normal;
  825. margin-bottom: 8px;
  826. }
  827. .invitee-tips-text {
  828. font-weight: 400;
  829. font-size: 14px;
  830. color: #ffffff;
  831. line-height: 22px;
  832. text-align: left;
  833. font-style: normal;
  834. span {
  835. color: #fceba9;
  836. }
  837. margin-bottom: 24px;
  838. }
  839. }
  840. .bargaining-assistance-main {
  841. background: #ffffff;
  842. border-radius: 20px;
  843. margin-bottom: 24px;
  844. overflow: hidden;
  845. .package-name {
  846. display: flex;
  847. justify-content: center;
  848. span {
  849. display: inline-block;
  850. padding: 5px 61px;
  851. background: #ffe8e8;
  852. border-radius: 0 0 15px 15px;
  853. margin: 0 auto;
  854. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  855. font-weight: bold;
  856. font-size: 16px;
  857. color: #c00202;
  858. line-height: 20px;
  859. text-align: center;
  860. font-style: normal;
  861. }
  862. }
  863. .package-price {
  864. font-family: Alibaba-PuHuiTi, Alibaba-PuHuiTi;
  865. height: 120px;
  866. font-weight: normal;
  867. box-sizing: border-box;
  868. padding-top: 30px;
  869. font-size: 30px;
  870. color: #c70b0b;
  871. line-height: 62px;
  872. text-align: center;
  873. font-style: normal;
  874. font-weight: bold;
  875. width: calc(100% - 24px);
  876. margin: 0 auto;
  877. background: #ffffff;
  878. box-shadow: 0px 0px 8px 2px #f4f7f8, 0px 2px 4px 0px #ecedf8;
  879. border-radius: 20px;
  880. margin-top: -20px;
  881. span {
  882. font-size: 20px;
  883. }
  884. }
  885. .package-progress {
  886. margin: 40px 42px 28px;
  887. }
  888. .package-tips {
  889. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  890. text-align: center;
  891. font-size: 16px;
  892. font-weight: bold;
  893. color: #000000;
  894. line-height: 22px;
  895. font-style: normal;
  896. margin-bottom: 24px;
  897. span {
  898. color: #f04646;
  899. }
  900. & > div:first-of-type {
  901. font-size: 21px;
  902. line-height: 29px;
  903. }
  904. }
  905. .package-btn {
  906. height: 54px;
  907. background: linear-gradient(178deg, #fd8c50 0%, #fc3307 100%);
  908. border-radius: 28px;
  909. margin: 0 27px;
  910. font-family: AlimamaShuHeiTi, AlimamaShuHeiTi;
  911. font-weight: bold;
  912. font-size: 20px;
  913. color: #ffffff;
  914. line-height: 54px;
  915. text-align: center;
  916. font-style: normal;
  917. // margin-bottom: 24px;
  918. }
  919. .package-expire {
  920. margin-top: 12px;
  921. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  922. text-align: center;
  923. font-style: normal;
  924. margin-bottom: 24px;
  925. &,
  926. .van-count-down {
  927. font-weight: 400;
  928. font-size: 12px;
  929. color: #7d6156;
  930. line-height: 16px;
  931. }
  932. .van-count-down {
  933. display: inline-block;
  934. }
  935. }
  936. .invitee-to-claim {
  937. height: 339px;
  938. border-radius: 20px;
  939. background: url('~/assets/image/claimCloudPhone/Invitee-to-claim.png')
  940. no-repeat 0 0;
  941. background-size: 100% 100%;
  942. position: relative;
  943. .invitee-to-claim_btn {
  944. height: 54px;
  945. background: linear-gradient(90deg, #ff6d2b 0%, #ff1500 100%);
  946. box-shadow: inset 9px -7px 19px 0px #ffba57,
  947. inset -1px 2px 6px 0px #ffbd63;
  948. border-radius: 27px;
  949. text-align: center;
  950. position: absolute;
  951. bottom: 14px;
  952. width: 200px;
  953. font-family: YouSheBiaoTiYuan;
  954. font-size: 28px;
  955. color: #ffffff;
  956. line-height: 23px;
  957. left: 50%;
  958. transform: translateX(-50%);
  959. font-style: normal;
  960. font-weight: bold;
  961. line-height: 54px;
  962. }
  963. }
  964. }
  965. .bargaining-record {
  966. margin-bottom: 24px;
  967. }
  968. .bargaining-record,
  969. .distribution-records {
  970. background: #ffffff;
  971. border-radius: 12px;
  972. .title {
  973. height: 44px;
  974. background: #ffe8e8;
  975. border-radius: 12px 12px 0px 0px;
  976. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  977. font-weight: bold;
  978. font-size: 16px;
  979. color: #c00202;
  980. line-height: 44px;
  981. text-align: center;
  982. font-style: normal;
  983. }
  984. .container {
  985. height: 250px;
  986. overflow-y: auto;
  987. padding: 0 20px;
  988. scrollbar-width: none !important; /* 对于 Firefox 隐藏滚动条 */
  989. &::-webkit-scrollbar {
  990. display: none !important; /* 对于 Chrome, Safari 和 Opera 隐藏滚动条 */
  991. }
  992. .van-empty {
  993. padding: 0 !important;
  994. }
  995. }
  996. .bargaining-record-item {
  997. height: 53px;
  998. border-bottom: 2px #f1f1f1 solid;
  999. display: flex;
  1000. align-items: center;
  1001. .bargaining-record-item_info {
  1002. font-family: PingFangSC, PingFang SC;
  1003. font-weight: 400;
  1004. font-size: 14px;
  1005. color: #7d6156;
  1006. line-height: 18px;
  1007. font-style: normal;
  1008. & > div:first-of-type,
  1009. span {
  1010. font-weight: bold;
  1011. }
  1012. span {
  1013. color: #c00202;
  1014. }
  1015. }
  1016. }
  1017. }
  1018. .distribution-records {
  1019. .container {
  1020. padding: 0px;
  1021. position: relative;
  1022. & > div:first-of-type {
  1023. position: absolute;
  1024. width: 100%;
  1025. left: 0;
  1026. height: 20px;
  1027. background: #ffffff;
  1028. box-shadow: 0px 2px 4px 0px #ecedf8;
  1029. top: 0;
  1030. font-family: PingFangSC, PingFang SC;
  1031. font-weight: 400;
  1032. font-size: 12px;
  1033. color: #7d6156;
  1034. line-height: 20px;
  1035. text-align: center;
  1036. display: flex;
  1037. font-style: normal;
  1038. & > div {
  1039. width: 25%;
  1040. }
  1041. }
  1042. & > div:last-of-type {
  1043. height: 100%;
  1044. box-sizing: border-box;
  1045. padding-top: 20px;
  1046. overflow-y: auto;
  1047. scrollbar-width: none !important; /* 对于 Firefox 隐藏滚动条 */
  1048. &::-webkit-scrollbar {
  1049. display: none !important; /* 对于 Chrome, Safari 和 Opera 隐藏滚动条 */
  1050. }
  1051. ::v-deep .van-empty {
  1052. padding: 0px;
  1053. .van-empty__image {
  1054. img {
  1055. display: none;
  1056. }
  1057. background: url('~/assets/image/claimCloudPhone/distribution-records-empty.png')
  1058. no-repeat center bottom;
  1059. background-size: 90px 90px;
  1060. }
  1061. }
  1062. .distribution-records-item {
  1063. height: 46px;
  1064. line-height: 46px;
  1065. box-sizing: border-box;
  1066. display: flex;
  1067. border-bottom: 2px #f1f1f1 solid;
  1068. & > div {
  1069. width: 25%;
  1070. text-align: center;
  1071. font-family: PingFangSC, PingFang SC;
  1072. font-weight: 400;
  1073. font-size: 14px;
  1074. color: #6d2b12;
  1075. text-align: center;
  1076. font-style: normal;
  1077. }
  1078. }
  1079. }
  1080. }
  1081. }
  1082. .barrage {
  1083. position: fixed;
  1084. bottom: 11%;
  1085. transform: translateY(-11%);
  1086. right: 11px;
  1087. & > ::v-deep div {
  1088. transition: all 0.7s;
  1089. &.start {
  1090. opacity: 1;
  1091. animation: barrage 0.5s linear;
  1092. @keyframes barrage {
  1093. 0% {
  1094. opacity: 1;
  1095. transform: translateY(0px);
  1096. }
  1097. 100% {
  1098. transform: translateY(-30px);
  1099. opacity: 0;
  1100. }
  1101. }
  1102. }
  1103. opacity: 1;
  1104. width: 143px;
  1105. height: 40px;
  1106. position: absolute;
  1107. bottom: 11%;
  1108. right: 11px;
  1109. background: linear-gradient(
  1110. 90deg,
  1111. #992bff 0%,
  1112. rgba(255, 21, 0, 0.4) 100%
  1113. );
  1114. border-radius: 23px;
  1115. border-image: linear-gradient(
  1116. 94deg,
  1117. rgba(255, 255, 255, 1),
  1118. rgba(255, 255, 255, 0.35)
  1119. )
  1120. 1 1;
  1121. padding-left: 20px;
  1122. font-size: 10px;
  1123. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1124. font-weight: 400;
  1125. color: #ffffff;
  1126. display: flex;
  1127. flex-direction: column;
  1128. justify-content: center;
  1129. & > div {
  1130. height: 16px;
  1131. line-height: 16px;
  1132. &:first-of-type {
  1133. display: flex;
  1134. & > div {
  1135. overflow: hidden;
  1136. text-overflow: ellipsis;
  1137. white-space: nowrap;
  1138. }
  1139. }
  1140. &:last-of-type span {
  1141. color: #fddb2b;
  1142. }
  1143. }
  1144. }
  1145. }
  1146. .rule {
  1147. position: fixed;
  1148. top: 12.5%;
  1149. right: 0;
  1150. width: 40px;
  1151. height: 20px;
  1152. line-height: 20px;
  1153. background: #f04646;
  1154. border-radius: 17px 0px 0px 17px;
  1155. z-index: 2;
  1156. font-family: PingFangSC, PingFang SC;
  1157. font-weight: 400;
  1158. font-size: 12px;
  1159. color: #ffffff;
  1160. text-align: center;
  1161. font-style: normal;
  1162. }
  1163. .rule-title {
  1164. height: 53px;
  1165. border-radius: 16px 16px 0 0;
  1166. background: linear-gradient(90deg, #f6cdb9 0%, #fbdbde 100%);
  1167. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1168. font-weight: bold;
  1169. font-size: 18px;
  1170. color: #751d13;
  1171. line-height: 53px;
  1172. text-align: center;
  1173. font-style: normal;
  1174. }
  1175. .rule-content {
  1176. height: 325px;
  1177. padding: 16px;
  1178. box-sizing: border-box;
  1179. background: #fff;
  1180. border-radius: 0 0 16px 16px;
  1181. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1182. font-weight: 400;
  1183. font-size: 14px;
  1184. color: #751d13;
  1185. line-height: 16px;
  1186. text-align: left;
  1187. font-style: normal;
  1188. overflow-y: auto;
  1189. }
  1190. .rule-close {
  1191. height: 32px;
  1192. width: 32px;
  1193. background: #c1c1c1;
  1194. z-index: 5;
  1195. margin: 20px auto 0;
  1196. border-radius: 50%;
  1197. display: flex;
  1198. justify-content: center;
  1199. align-items: center;
  1200. font-size: 24px;
  1201. color: #666666;
  1202. }
  1203. ::v-deep .van-dialog {
  1204. background: transparent !important;
  1205. }
  1206. .bargaining-img {
  1207. height: 512px;
  1208. width: 100%;
  1209. background: url('~/assets/image/claimCloudPhone/bargaining-popUp.png')
  1210. no-repeat 0 20px;
  1211. background-size: 100% 100%;
  1212. }
  1213. .bargaining-amount {
  1214. height: 234px;
  1215. background: url('~/assets/image/claimCloudPhone/bargaining-amount-img.png')
  1216. no-repeat 0 20px;
  1217. padding-top: 30px;
  1218. box-sizing: border-box;
  1219. background-size: 100% 210px;
  1220. .bargaining-amount-text {
  1221. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1222. font-weight: bold;
  1223. font-size: 24px;
  1224. color: #ffffff;
  1225. text-align: center;
  1226. font-style: normal;
  1227. span {
  1228. color: #ff0000;
  1229. }
  1230. }
  1231. }
  1232. .exit {
  1233. height: 520px;
  1234. position: relative;
  1235. & > img {
  1236. height: 100%;
  1237. width: 100%;
  1238. }
  1239. .exit-content {
  1240. position: absolute;
  1241. top: 25%;
  1242. left: 50%;
  1243. width: 200px;
  1244. transform: translateX(-50%);
  1245. font-family: AlimamaShuHeiTi, AlimamaShuHeiTi;
  1246. font-weight: bold;
  1247. font-size: 16px;
  1248. color: #171815;
  1249. line-height: 24px;
  1250. text-align: center;
  1251. font-style: normal;
  1252. & > div span {
  1253. color: #f04646;
  1254. }
  1255. .exit-content-progress {
  1256. margin: 50px 0 80px;
  1257. }
  1258. .exit-content-btn {
  1259. & > img {
  1260. height: 42px;
  1261. width: 100%;
  1262. }
  1263. .exit-content-btn_leave {
  1264. font-weight: 400;
  1265. font-size: 12px;
  1266. color: #faf3d8;
  1267. }
  1268. }
  1269. }
  1270. }
  1271. .bargaining-success {
  1272. height: 378px;
  1273. background: url('~/assets/image/claimCloudPhone/successful-bargaining-img.png')
  1274. no-repeat 0 0;
  1275. background-size: 100% 100%;
  1276. overflow: hidden;
  1277. position: relative;
  1278. .bargaining-success-title {
  1279. margin-top: 24px;
  1280. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1281. font-weight: bold;
  1282. font-size: 28px;
  1283. color: #fdf9c8;
  1284. line-height: 38px;
  1285. text-align: center;
  1286. font-style: normal;
  1287. }
  1288. .bargaining-success-tips {
  1289. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1290. width: 165px;
  1291. font-weight: bold;
  1292. font-size: 12px;
  1293. color: #ffffff;
  1294. line-height: 17px;
  1295. text-align: center;
  1296. margin: 0 auto;
  1297. }
  1298. .bargaining-success-btn {
  1299. position: absolute;
  1300. bottom: 20px;
  1301. left: 50%;
  1302. transform: translateX(-50%);
  1303. display: flex;
  1304. flex-direction: column;
  1305. justify-content: center;
  1306. & > div {
  1307. width: 180px;
  1308. height: 48px;
  1309. line-height: 48px;
  1310. text-align: center;
  1311. border-radius: 24px;
  1312. color: #fff;
  1313. font-weight: bold;
  1314. &:first-of-type {
  1315. margin-bottom: 8px;
  1316. background: linear-gradient(178deg, #fd8c50 0%, #fc3307 100%);
  1317. }
  1318. &:last-of-type {
  1319. color: #e63b47;
  1320. border: 1px solid #e63b47;
  1321. }
  1322. }
  1323. }
  1324. }
  1325. .expire {
  1326. height: 378px;
  1327. background: url('~/assets/image/claimCloudPhone/expire-img.png') no-repeat 0
  1328. 0;
  1329. background-size: 100% 100%;
  1330. position: relative;
  1331. .expire-btn {
  1332. position: absolute;
  1333. bottom: 20px;
  1334. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1335. font-weight: 500;
  1336. font-size: 16px;
  1337. color: #ffffff;
  1338. line-height: 48px;
  1339. left: 50%;
  1340. transform: translateX(-50%);
  1341. text-align: center;
  1342. font-style: normal;
  1343. width: 180px;
  1344. height: 48px;
  1345. background: linear-gradient(178deg, #fd8c50 0%, #fc3307 100%);
  1346. border-radius: 24px;
  1347. }
  1348. }
  1349. .login {
  1350. height: 312px;
  1351. background: #ffffff;
  1352. border-radius: 24px;
  1353. padding: 16px 28px;
  1354. box-sizing: border-box;
  1355. .login-title {
  1356. font-family: DingTalk, DingTalk;
  1357. font-weight: normal;
  1358. font-weight: bold;
  1359. font-size: 24px;
  1360. color: #0a132b;
  1361. line-height: 28px;
  1362. text-align: left;
  1363. font-style: normal;
  1364. margin-bottom: 14px;
  1365. }
  1366. .van-field {
  1367. margin-bottom: 14px;
  1368. border-radius: 8px;
  1369. border: 1px solid #e6e6e6;
  1370. }
  1371. .van-button {
  1372. width: 100%;
  1373. border-radius: 8px;
  1374. }
  1375. .login-code {
  1376. font-family: PingFangSC, PingFang SC;
  1377. font-weight: 500;
  1378. font-size: 14px;
  1379. color: #3666f2;
  1380. line-height: 16px;
  1381. text-align: left;
  1382. font-style: normal;
  1383. &.disabled {
  1384. color: #999;
  1385. }
  1386. }
  1387. .login-agreement {
  1388. font-family: PingFangSC, PingFang SC;
  1389. font-weight: 400;
  1390. font-size: 12px;
  1391. font-style: normal;
  1392. margin-top: 12px;
  1393. display: flex;
  1394. span {
  1395. color: #3666f2;
  1396. }
  1397. .van-checkbox {
  1398. align-items: start;
  1399. ::v-deep .van-checkbox__label {
  1400. color: #999999;
  1401. }
  1402. ::v-deep .van-checkbox__icon {
  1403. margin-top: 3px;
  1404. }
  1405. }
  1406. }
  1407. }
  1408. ::v-deep .phone-container {
  1409. background: transparent;
  1410. }
  1411. }
  1412. </style>