bargainingAssistance.vue 46 KB

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