bargainingAssistance.vue 44 KB

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