bargainingAssistance.vue 45 KB

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