bargainingAssistance.vue 40 KB

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