bargainingAssistance.vue 45 KB

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