bargainingAssistance.vue 47 KB

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