bargainingAssistance.vue 42 KB

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