bargainingAssistance.vue 43 KB

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