bargainingAssistance.vue 40 KB

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