bargainingAssistance.vue 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482
  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. 您的云手机【{{ info.diskName }}】发放成功/续费成功
  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. });
  351. },
  352. computed: {
  353. time() {
  354. const { validityPeriodTimeStamp = 0 } = this.info;
  355. return validityPeriodTimeStamp
  356. ? validityPeriodTimeStamp - this.systemTime * 1000
  357. : 0;
  358. },
  359. },
  360. methods: {
  361. // 轮播活动参加的人的信息
  362. startBarrage() {
  363. const barrage = document.querySelector('.barrage');
  364. if (!barrage.childNodes.length) {
  365. const data = this.barrageList[0];
  366. this.barrageList.shift();
  367. this.barrageList.push(data);
  368. barrage.appendChild(writeIn(data));
  369. }
  370. const first = barrage.childNodes[0];
  371. setTimeout(() => {
  372. first.className = 'start';
  373. first.addEventListener('animationstart', () => {
  374. const data = this.barrageList[0];
  375. this.barrageList.shift();
  376. this.barrageList.push(data);
  377. const div = writeIn(data);
  378. barrage.appendChild(div);
  379. setTimeout(() => {
  380. div.style = 'opacity: 1';
  381. }, 100);
  382. });
  383. first.addEventListener('animationend', () => {
  384. barrage.removeChild(first);
  385. this.startBarrage();
  386. });
  387. }, 1000);
  388. function writeIn({ price, phoneNumber, phoneType, duration }) {
  389. const div = document.createElement('div');
  390. div.style = 'opacity: 0';
  391. div.innerHTML = `<div>
  392. <div>${phoneNumber}</div>
  393. </div>
  394. <div>${phoneType}${duration}天,价值<span>${price}元</span></div>`;
  395. return div;
  396. }
  397. },
  398. bargainingFun(bool = false) {
  399. // 首次砍价的时候进此判断
  400. if (bool) {
  401. this.$toast.loading({
  402. message: '加载中...',
  403. forbidClick: true,
  404. duration: 0,
  405. });
  406. const { menuRuleId, userCardId } = this.$route.query;
  407. const obj = {
  408. operateActivityId: this.operateActivityId,
  409. menuRuleId,
  410. };
  411. // 如果是续费,选择了对应云机,需要传云机id
  412. if (userCardId) obj.userCardId = userCardId;
  413. this.$axios
  414. .$post('activity/v5/assist/bargaining/userSelectedPackage', obj)
  415. .then((res) => {
  416. if (res.success) {
  417. // 砍价金额
  418. this.bargainingAmount = res.data.fristKnifeAmount;
  419. setTimeout(() => {
  420. this.bargainingTipsBool = true;
  421. });
  422. // 重新获取用户最新的数据
  423. setTimeout(this.bargainingStatus, 1000);
  424. }
  425. })
  426. .catch((error) => {
  427. setTimeout(() => {
  428. this.$toast(error.message);
  429. });
  430. })
  431. .finally(() => {
  432. this.$toast.clear();
  433. });
  434. return;
  435. }
  436. this.chopAKnife();
  437. },
  438. // 获取规则
  439. getRule() {
  440. this.$axios
  441. .$get('public/v4/agreement/content', {
  442. params: { agreementCoding: 'YDQLBHD10000' },
  443. })
  444. .then((res) => {
  445. if (res.success) {
  446. const html = res.data.content;
  447. const rx = /<body[^>]*>([\s\S]+?)<\/body>/i;
  448. let m = rx.exec(html);
  449. if (m) {
  450. m = m[1];
  451. }
  452. this.ruleHtml = m;
  453. }
  454. });
  455. },
  456. // 获取用户数据接口
  457. bargainingStatus(bool = false) {
  458. if (bool) {
  459. this.$toast.loading({
  460. message: '加载中...',
  461. forbidClick: true,
  462. duration: 0,
  463. });
  464. }
  465. const params = {};
  466. if (Object.keys(this.inviteeData).length) {
  467. params.userLaunchId = this.inviteeData.userLaunchId;
  468. }
  469. this.$axios
  470. .$get('activity/v5/assist/bargaining/current/bargainingStatus', {
  471. params,
  472. })
  473. .then(async (res) => {
  474. if (res.success) {
  475. this.info = res.data;
  476. localStorage.setItem(
  477. 'bargainingStatusInfo',
  478. JSON.stringify(this.info),
  479. );
  480. // 如果是被邀请人就不需要走下面流程
  481. if (Object.keys(this.inviteeData).length) {
  482. return;
  483. }
  484. switch (+this.type) {
  485. case 3: // 成功,领取下一台云机界面
  486. this.successfulBargainingVisible = true;
  487. break;
  488. case 4: // 失败,领取下一台云机界面
  489. this.expireVisible = true;
  490. break;
  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. // 旧版本做兼容,如果有的情况下的话就显示
  509. if (window.native.webBackStatus) {
  510. window.native.webBackStatus(true);
  511. window.appGoBackCallback = () => {
  512. this.exitVisible = true;
  513. };
  514. }
  515. }
  516. // 对微信做拦截
  517. if (this.$userAgent.isWx) {
  518. this.wxIntercept(() => {
  519. history.pushState(null, null, document.URL);
  520. this.exitVisible = true;
  521. });
  522. }
  523. }
  524. if (
  525. [1, 2].includes(this.info.bargainingStatus) &&
  526. this.$refs.assistRecodeList &&
  527. this.$refs.assistGetPhoneRecode
  528. ) {
  529. this.$refs.assistRecodeList.data = [];
  530. this.$refs.assistGetPhoneRecode.data = [];
  531. this.$refs.assistRecodeList.list();
  532. this.$refs.assistGetPhoneRecode.list();
  533. }
  534. }
  535. })
  536. .catch((error) => {
  537. this.$toast(error.message);
  538. })
  539. .finally(() => {
  540. if (this.info.bargainingStatus !== 0) this.bargainingVisible = false;
  541. this.$toast.clear();
  542. });
  543. },
  544. // 滚动的相关数据
  545. getAssistAwardRecode() {
  546. this.$axios
  547. .$get('activity/v5/assist/operation/getAssistAwardRecode', {})
  548. .then((res) => {
  549. if (res.success) {
  550. this.barrageList = res.data;
  551. setTimeout(() => {
  552. this.barrageList.length && this.startBarrage();
  553. });
  554. }
  555. });
  556. },
  557. // 领取下一台手机
  558. claimTheNextOne() {
  559. this.$toast.loading({
  560. message: '加载中...',
  561. forbidClick: true,
  562. duration: 0,
  563. });
  564. this.$axios
  565. .$get('activity/v5/assist/operation/reportCutStatus', {
  566. params: {
  567. userLaunchId: this.info.userLaunchId,
  568. },
  569. })
  570. .then((res) => {
  571. if (res.success) {
  572. // 解除安卓返回按键
  573. if (
  574. (this.$userAgent.isSzx || this.$userAgent.isSzxBrowser) &&
  575. this.$userAgent.isAndroid
  576. ) {
  577. window.native.webBackStatus && window.native.webBackStatus(false);
  578. }
  579. this.$router.replace('/claimCloudPhone/chooseCloudPhone?exit=1');
  580. }
  581. })
  582. .catch((error) => {
  583. setTimeout(() => {
  584. this.$toast(error.message);
  585. });
  586. })
  587. .finally(() => {
  588. this.$toast.clear();
  589. });
  590. },
  591. // 砍一刀
  592. chopAKnife() {
  593. this.$toast.loading({
  594. message: '加载中...',
  595. forbidClick: true,
  596. duration: 0,
  597. });
  598. this.$axios
  599. .$post('activity/v5/assist/operation/chopAKnife')
  600. .then((res) => {
  601. if (res.success) {
  602. this.bargainingTipsBool = true;
  603. this.bargainingAmount = res.data;
  604. setTimeout(() => {
  605. this.bargainingVisible = true;
  606. });
  607. // 重新获取用户最新的数据
  608. setTimeout(this.bargainingStatus, 1000);
  609. }
  610. })
  611. .catch((error) => {
  612. this.$toast(error.message);
  613. setTimeout(() => {
  614. this.$toast.clear();
  615. }, 500);
  616. });
  617. },
  618. btnFun() {
  619. if (!+this.type) this.assistanceBool = true;
  620. if (+this.type) {
  621. switch (this.info.bargainingStatus) {
  622. case 1:
  623. this.chopAKnife();
  624. break;
  625. case 2:
  626. this.$toast.loading({
  627. message: '加载中...',
  628. forbidClick: true,
  629. duration: 0,
  630. });
  631. this.$axios
  632. .$post('activity/v5/assist/bargaining/getGenerateInvitationLink')
  633. .then(async (res) => {
  634. if (res.success) {
  635. res.data.desc = res.data.content;
  636. res.data.link = res.data.url;
  637. res.data.imgUrl = fileKeyToUrl(res.data.imgUrl);
  638. const shareInfo = { ...res.data };
  639. if (this.$userAgent.isSzx || this.$userAgent.isSzxBrowser) {
  640. this.$native.share(shareInfo);
  641. } else {
  642. if (
  643. this.$userAgent.isIos &&
  644. (!this.$userAgent.isWx || !this.$userAgent.isMiniProgram)
  645. ) {
  646. await this.$native.clipboard.writeText(res.data.link);
  647. setTimeout(() => {
  648. this.$toast.success('链接复制成功');
  649. });
  650. return;
  651. }
  652. writeToClipboard(res.data.link)
  653. .then(() => {
  654. setTimeout(() => {
  655. this.$toast('链接复制成功');
  656. });
  657. })
  658. .catch((err) => {
  659. setTimeout(() => {
  660. this.$toast('链接复制失败');
  661. });
  662. });
  663. }
  664. }
  665. })
  666. .finally(() => {
  667. this.$toast.clear();
  668. });
  669. break;
  670. }
  671. }
  672. },
  673. // 获取验证码
  674. getCode() {
  675. if (
  676. this.laoginData.phone.length < 11 ||
  677. this.codeNumber !== '获取验证码'
  678. ) {
  679. return;
  680. }
  681. if (!/^1[3456789]\d{9}$/.test(this.laoginData.phone)) {
  682. this.$toast('手机号码有误,请重填');
  683. return;
  684. }
  685. this.$refs.verify.show();
  686. },
  687. // 登录
  688. async login() {
  689. this.loginLoading = true;
  690. let uuid = localStorage.getItem('uuid');
  691. if (!uuid) {
  692. const url = URL.createObjectURL(new Blob());
  693. uuid = url.toString();
  694. URL.revokeObjectURL(url);
  695. uuid = uuid.substring(uuid.lastIndexOf('/') + 1);
  696. // 去除 UUID 字符串中的连字符
  697. const uuidHex = uuid.replace(/-/g, '');
  698. // 将十六进制字符串解析为大整数
  699. const uuidNumber = BigInt('0x' + uuidHex);
  700. uuid = uuidNumber.toString().substring(0, 20); // 将大整数转换为字符串格式
  701. localStorage.setItem('uuid', uuid);
  702. }
  703. const data = await this.getSystemTime();
  704. const registerTime = this.timestampToTime(data.data);
  705. const params = {
  706. invitationType: 6,
  707. registerSource: 102,
  708. uuid,
  709. registerTime,
  710. };
  711. const headers = {
  712. devicesId: uuid,
  713. registerSign: this.jm(registerTime),
  714. };
  715. Object.assign(params, this.laoginData);
  716. Object.assign(params, this.inviteeData);
  717. params.activityId = params.operateActivityId;
  718. delete params.operateActivityId;
  719. this.$axios
  720. .$post('user/v5/client/register/forH5', params, { headers })
  721. .then((res) => {
  722. if (res.success) {
  723. localStorage.setItem('phone', params.phone);
  724. localStorage.setItem('auth._token.password', res.data.token);
  725. localStorage.setItem('token', res.data.token);
  726. localStorage.setItem(
  727. 'dataInfo',
  728. JSON.stringify({ type: Object, data: res.data }),
  729. );
  730. this.$toast('登录成功');
  731. const url = res.data.jumpToPage
  732. ? '/claimCloudPhone?bool=1'
  733. : '/claimCloudPhone/firstReward';
  734. this.$router[res.data.jumpToPage ? 'replace' : 'push'](url);
  735. }
  736. })
  737. .catch((error) => {
  738. setTimeout(() => {
  739. this.$toast(error.message);
  740. });
  741. })
  742. .finally(() => {
  743. this.loginLoading = false;
  744. });
  745. },
  746. timestampToTime(timestamp) {
  747. var date = new Date(timestamp * 1000);
  748. var Y = date.getFullYear() + '-';
  749. var M =
  750. (date.getMonth() + 1 < 10
  751. ? '0' + (date.getMonth() + 1)
  752. : date.getMonth() + 1) + '-';
  753. var D =
  754. (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' ';
  755. var h =
  756. (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
  757. var m =
  758. (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) +
  759. ':';
  760. var s =
  761. date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
  762. return Y + M + D + h + m + s;
  763. },
  764. jm(systemTime) {
  765. const registerSign = sha256('Register_SZX_2023:' + systemTime);
  766. return registerSign;
  767. },
  768. // 跳转对应协议
  769. toAgreement() {
  770. sessionStorage.setItem('invitedPhone', this.laoginData.phone);
  771. sessionStorage.setItem('invitedCode', this.laoginData.code);
  772. this.$router.push(
  773. '/claimCloudPhone/agreement?agreementCoding=XYPZYHXY2002',
  774. );
  775. },
  776. success(data) {
  777. this.$toast.loading({
  778. message: '加载中...',
  779. forbidClick: true,
  780. duration: 0,
  781. });
  782. const params = {
  783. type: 'common',
  784. authorizationType: 4,
  785. phone: this.laoginData.phone,
  786. captchaVerification: data.captchaVerification,
  787. };
  788. this.$axios
  789. .$post('activity/v5/assist/bargaining/phone/send/activity', params)
  790. .then((res) => {
  791. if (res.success) {
  792. this.codeNumber = 60;
  793. const timer = setInterval(() => {
  794. this.codeNumber--;
  795. if (this.codeNumber === 0) {
  796. this.codeNumber = '获取验证码';
  797. clearInterval(timer);
  798. }
  799. }, 1000);
  800. setTimeout(() => {
  801. this.$toast('获取成功');
  802. });
  803. }
  804. })
  805. .catch((error) => {
  806. setTimeout(() => {
  807. this.$toast(error.message);
  808. });
  809. })
  810. .finally(() => {
  811. this.$toast.clear();
  812. });
  813. },
  814. },
  815. };
  816. </script>
  817. <style lang="less" scoped>
  818. .bargaining-assistance {
  819. height: 100%;
  820. /deep/ .van-overlay {
  821. z-index: 0 !important;
  822. }
  823. /deep/ .van-dialog {
  824. z-index: 0 !important;
  825. }
  826. .inviter-tips,
  827. .invitee-tips {
  828. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  829. }
  830. .inviter-tips {
  831. font-weight: 400;
  832. font-size: 12px;
  833. color: #ffffff;
  834. line-height: 17px;
  835. text-align: center;
  836. font-style: normal;
  837. margin-bottom: 14px;
  838. & > div {
  839. font-size: 26px;
  840. line-height: 30px;
  841. }
  842. }
  843. .invitee-tips {
  844. .invitee-tips-user {
  845. font-weight: bold;
  846. font-size: 18px;
  847. color: #ffffff;
  848. line-height: 22px;
  849. text-align: left;
  850. font-style: normal;
  851. margin-bottom: 8px;
  852. }
  853. .invitee-tips-text {
  854. font-weight: 400;
  855. font-size: 14px;
  856. color: #ffffff;
  857. line-height: 22px;
  858. text-align: left;
  859. font-style: normal;
  860. span {
  861. color: #fceba9;
  862. }
  863. margin-bottom: 24px;
  864. }
  865. }
  866. .bargaining-assistance-main {
  867. background: #ffffff;
  868. border-radius: 20px;
  869. margin-bottom: 24px;
  870. overflow: hidden;
  871. .package-name {
  872. display: flex;
  873. justify-content: center;
  874. span {
  875. display: inline-block;
  876. padding: 5px 61px;
  877. background: #ffe8e8;
  878. border-radius: 0 0 15px 15px;
  879. margin: 0 auto;
  880. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  881. font-weight: bold;
  882. font-size: 16px;
  883. color: #c00202;
  884. line-height: 20px;
  885. text-align: center;
  886. font-style: normal;
  887. }
  888. }
  889. .package-price {
  890. font-family: Alibaba-PuHuiTi, Alibaba-PuHuiTi;
  891. height: 120px;
  892. font-weight: normal;
  893. box-sizing: border-box;
  894. padding-top: 30px;
  895. font-size: 30px;
  896. color: #c70b0b;
  897. line-height: 62px;
  898. text-align: center;
  899. font-style: normal;
  900. font-weight: bold;
  901. width: calc(100% - 24px);
  902. margin: 0 auto;
  903. background: #ffffff;
  904. box-shadow: 0px 0px 8px 2px #f4f7f8, 0px 2px 4px 0px #ecedf8;
  905. border-radius: 20px;
  906. margin-top: -20px;
  907. span {
  908. font-size: 20px;
  909. }
  910. }
  911. .package-progress {
  912. margin: 40px 42px 28px;
  913. }
  914. .package-tips {
  915. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  916. text-align: center;
  917. font-size: 16px;
  918. font-weight: bold;
  919. color: #000000;
  920. line-height: 22px;
  921. font-style: normal;
  922. margin-bottom: 24px;
  923. span {
  924. color: #f04646;
  925. }
  926. & > div:first-of-type {
  927. font-size: 21px;
  928. line-height: 29px;
  929. }
  930. }
  931. .package-btn {
  932. height: 54px;
  933. background: linear-gradient(178deg, #fd8c50 0%, #fc3307 100%);
  934. border-radius: 28px;
  935. margin: 0 27px;
  936. font-family: AlimamaShuHeiTi, AlimamaShuHeiTi;
  937. font-weight: bold;
  938. font-size: 20px;
  939. color: #ffffff;
  940. line-height: 54px;
  941. text-align: center;
  942. font-style: normal;
  943. // margin-bottom: 24px;
  944. }
  945. .package-expire {
  946. margin-top: 12px;
  947. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  948. text-align: center;
  949. font-style: normal;
  950. margin-bottom: 24px;
  951. &,
  952. .van-count-down {
  953. font-weight: 400;
  954. font-size: 12px;
  955. color: #7d6156;
  956. line-height: 16px;
  957. }
  958. .van-count-down {
  959. display: inline-block;
  960. }
  961. }
  962. .invitee-to-claim {
  963. height: 339px;
  964. border-radius: 20px;
  965. background: url('~/assets/image/claimCloudPhone/Invitee-to-claim.png')
  966. no-repeat 0 0;
  967. background-size: 100% 100%;
  968. position: relative;
  969. .invitee-to-claim_btn {
  970. height: 54px;
  971. background: linear-gradient(90deg, #ff6d2b 0%, #ff1500 100%);
  972. box-shadow: inset 9px -7px 19px 0px #ffba57,
  973. inset -1px 2px 6px 0px #ffbd63;
  974. border-radius: 27px;
  975. text-align: center;
  976. position: absolute;
  977. bottom: 14px;
  978. width: 200px;
  979. font-family: YouSheBiaoTiYuan;
  980. font-size: 28px;
  981. color: #ffffff;
  982. line-height: 23px;
  983. left: 50%;
  984. transform: translateX(-50%);
  985. font-style: normal;
  986. font-weight: bold;
  987. line-height: 54px;
  988. }
  989. }
  990. }
  991. .bargaining-record {
  992. margin-bottom: 24px;
  993. }
  994. .bargaining-record,
  995. .distribution-records {
  996. background: #ffffff;
  997. border-radius: 12px;
  998. .title {
  999. height: 44px;
  1000. background: #ffe8e8;
  1001. border-radius: 12px 12px 0px 0px;
  1002. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1003. font-weight: bold;
  1004. font-size: 16px;
  1005. color: #c00202;
  1006. line-height: 44px;
  1007. text-align: center;
  1008. font-style: normal;
  1009. }
  1010. .container {
  1011. height: 250px;
  1012. overflow-y: auto;
  1013. padding: 0 20px;
  1014. scrollbar-width: none !important; /* 对于 Firefox 隐藏滚动条 */
  1015. &::-webkit-scrollbar {
  1016. display: none !important; /* 对于 Chrome, Safari 和 Opera 隐藏滚动条 */
  1017. }
  1018. .van-empty {
  1019. padding: 0 !important;
  1020. }
  1021. }
  1022. .bargaining-record-item {
  1023. height: 53px;
  1024. border-bottom: 2px #f1f1f1 solid;
  1025. display: flex;
  1026. align-items: center;
  1027. .bargaining-record-item_info {
  1028. font-family: PingFangSC, PingFang SC;
  1029. font-weight: 400;
  1030. font-size: 14px;
  1031. color: #7d6156;
  1032. line-height: 18px;
  1033. font-style: normal;
  1034. & > div:first-of-type,
  1035. span {
  1036. font-weight: bold;
  1037. }
  1038. span {
  1039. color: #c00202;
  1040. }
  1041. }
  1042. }
  1043. }
  1044. .distribution-records {
  1045. .container {
  1046. padding: 0px;
  1047. position: relative;
  1048. & > div:first-of-type {
  1049. position: absolute;
  1050. width: 100%;
  1051. left: 0;
  1052. height: 20px;
  1053. background: #ffffff;
  1054. box-shadow: 0px 2px 4px 0px #ecedf8;
  1055. top: 0;
  1056. font-family: PingFangSC, PingFang SC;
  1057. font-weight: 400;
  1058. font-size: 12px;
  1059. color: #7d6156;
  1060. line-height: 20px;
  1061. text-align: center;
  1062. display: flex;
  1063. font-style: normal;
  1064. & > div {
  1065. width: 25%;
  1066. }
  1067. }
  1068. & > div:last-of-type {
  1069. height: 100%;
  1070. box-sizing: border-box;
  1071. padding-top: 20px;
  1072. overflow-y: auto;
  1073. scrollbar-width: none !important; /* 对于 Firefox 隐藏滚动条 */
  1074. &::-webkit-scrollbar {
  1075. display: none !important; /* 对于 Chrome, Safari 和 Opera 隐藏滚动条 */
  1076. }
  1077. ::v-deep .van-empty {
  1078. padding: 0px;
  1079. .van-empty__image {
  1080. img {
  1081. display: none;
  1082. }
  1083. background: url('~/assets/image/claimCloudPhone/distribution-records-empty.png')
  1084. no-repeat center bottom;
  1085. background-size: 90px 90px;
  1086. }
  1087. }
  1088. .distribution-records-item {
  1089. height: 46px;
  1090. line-height: 46px;
  1091. box-sizing: border-box;
  1092. display: flex;
  1093. border-bottom: 2px #f1f1f1 solid;
  1094. & > div {
  1095. width: 25%;
  1096. text-align: center;
  1097. font-family: PingFangSC, PingFang SC;
  1098. font-weight: 400;
  1099. font-size: 14px;
  1100. color: #6d2b12;
  1101. text-align: center;
  1102. font-style: normal;
  1103. }
  1104. }
  1105. }
  1106. }
  1107. }
  1108. .barrage {
  1109. position: fixed;
  1110. bottom: 11%;
  1111. transform: translateY(-11%);
  1112. right: 11px;
  1113. & > ::v-deep div {
  1114. transition: all 0.7s;
  1115. &.start {
  1116. opacity: 1;
  1117. animation: barrage 0.5s linear;
  1118. @keyframes barrage {
  1119. 0% {
  1120. opacity: 1;
  1121. transform: translateY(0px);
  1122. }
  1123. 100% {
  1124. transform: translateY(-30px);
  1125. opacity: 0;
  1126. }
  1127. }
  1128. }
  1129. opacity: 1;
  1130. width: 143px;
  1131. height: 40px;
  1132. position: absolute;
  1133. bottom: 11%;
  1134. right: 11px;
  1135. background: linear-gradient(
  1136. 90deg,
  1137. #992bff 0%,
  1138. rgba(255, 21, 0, 0.4) 100%
  1139. );
  1140. border-radius: 23px;
  1141. border-image: linear-gradient(
  1142. 94deg,
  1143. rgba(255, 255, 255, 1),
  1144. rgba(255, 255, 255, 0.35)
  1145. )
  1146. 1 1;
  1147. padding-left: 20px;
  1148. font-size: 10px;
  1149. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1150. font-weight: 400;
  1151. color: #ffffff;
  1152. display: flex;
  1153. flex-direction: column;
  1154. justify-content: center;
  1155. & > div {
  1156. height: 16px;
  1157. line-height: 16px;
  1158. &:first-of-type {
  1159. display: flex;
  1160. & > div {
  1161. overflow: hidden;
  1162. text-overflow: ellipsis;
  1163. white-space: nowrap;
  1164. }
  1165. }
  1166. &:last-of-type span {
  1167. color: #fddb2b;
  1168. }
  1169. }
  1170. }
  1171. }
  1172. .rule {
  1173. position: fixed;
  1174. top: 12.5%;
  1175. right: 0;
  1176. width: 40px;
  1177. height: 20px;
  1178. line-height: 20px;
  1179. background: #f04646;
  1180. border-radius: 17px 0px 0px 17px;
  1181. z-index: 2;
  1182. font-family: PingFangSC, PingFang SC;
  1183. font-weight: 400;
  1184. font-size: 12px;
  1185. color: #ffffff;
  1186. text-align: center;
  1187. font-style: normal;
  1188. }
  1189. .rule-title {
  1190. height: 53px;
  1191. border-radius: 16px 16px 0 0;
  1192. background: linear-gradient(90deg, #f6cdb9 0%, #fbdbde 100%);
  1193. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1194. font-weight: bold;
  1195. font-size: 18px;
  1196. color: #751d13;
  1197. line-height: 53px;
  1198. text-align: center;
  1199. font-style: normal;
  1200. }
  1201. .rule-content {
  1202. height: 325px;
  1203. padding: 16px;
  1204. box-sizing: border-box;
  1205. background: #fff;
  1206. border-radius: 0 0 16px 16px;
  1207. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1208. font-weight: 400;
  1209. font-size: 14px;
  1210. color: #751d13;
  1211. line-height: 16px;
  1212. text-align: left;
  1213. font-style: normal;
  1214. overflow-y: auto;
  1215. }
  1216. .rule-close {
  1217. height: 32px;
  1218. width: 32px;
  1219. background: #c1c1c1;
  1220. z-index: 5;
  1221. margin: 20px auto 0;
  1222. border-radius: 50%;
  1223. display: flex;
  1224. justify-content: center;
  1225. align-items: center;
  1226. font-size: 24px;
  1227. color: #666666;
  1228. }
  1229. ::v-deep .van-dialog {
  1230. background: transparent !important;
  1231. }
  1232. .bargaining-img {
  1233. height: 512px;
  1234. width: 100%;
  1235. background: url('~/assets/image/claimCloudPhone/bargaining-popUp.png')
  1236. no-repeat 0 20px;
  1237. background-size: 100% 100%;
  1238. }
  1239. .bargaining-amount {
  1240. height: 234px;
  1241. background: url('~/assets/image/claimCloudPhone/bargaining-amount-img.png')
  1242. no-repeat 0 20px;
  1243. padding-top: 30px;
  1244. box-sizing: border-box;
  1245. background-size: 100% 210px;
  1246. .bargaining-amount-text {
  1247. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1248. font-weight: bold;
  1249. font-size: 24px;
  1250. color: #ffffff;
  1251. text-align: center;
  1252. font-style: normal;
  1253. span {
  1254. color: #ff0000;
  1255. }
  1256. }
  1257. }
  1258. .exit {
  1259. height: 520px;
  1260. position: relative;
  1261. & > img {
  1262. height: 100%;
  1263. width: 100%;
  1264. }
  1265. .exit-content {
  1266. position: absolute;
  1267. top: 25%;
  1268. left: 50%;
  1269. width: 200px;
  1270. transform: translateX(-50%);
  1271. font-family: AlimamaShuHeiTi, AlimamaShuHeiTi;
  1272. font-weight: bold;
  1273. font-size: 16px;
  1274. color: #171815;
  1275. line-height: 24px;
  1276. text-align: center;
  1277. font-style: normal;
  1278. & > div span {
  1279. color: #f04646;
  1280. }
  1281. .exit-content-progress {
  1282. margin: 50px 0 80px;
  1283. }
  1284. .exit-content-btn {
  1285. & > img {
  1286. height: 42px;
  1287. width: 100%;
  1288. }
  1289. .exit-content-btn_leave {
  1290. font-weight: 400;
  1291. font-size: 12px;
  1292. color: #faf3d8;
  1293. }
  1294. }
  1295. }
  1296. }
  1297. .bargaining-success {
  1298. height: 378px;
  1299. background: url('~/assets/image/claimCloudPhone/successful-bargaining-img.png')
  1300. no-repeat 0 0;
  1301. background-size: 100% 100%;
  1302. overflow: hidden;
  1303. position: relative;
  1304. .bargaining-success-title {
  1305. margin-top: 24px;
  1306. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1307. font-weight: bold;
  1308. font-size: 28px;
  1309. color: #fdf9c8;
  1310. line-height: 38px;
  1311. text-align: center;
  1312. font-style: normal;
  1313. }
  1314. .bargaining-success-tips {
  1315. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1316. width: 165px;
  1317. font-weight: bold;
  1318. font-size: 12px;
  1319. color: #ffffff;
  1320. line-height: 17px;
  1321. text-align: center;
  1322. margin: 0 auto;
  1323. }
  1324. .bargaining-success-btn {
  1325. position: absolute;
  1326. bottom: 20px;
  1327. left: 50%;
  1328. transform: translateX(-50%);
  1329. display: flex;
  1330. flex-direction: column;
  1331. justify-content: center;
  1332. & > div {
  1333. width: 180px;
  1334. height: 48px;
  1335. line-height: 48px;
  1336. text-align: center;
  1337. border-radius: 24px;
  1338. color: #fff;
  1339. font-weight: bold;
  1340. &:first-of-type {
  1341. margin-bottom: 8px;
  1342. background: linear-gradient(178deg, #fd8c50 0%, #fc3307 100%);
  1343. }
  1344. &:last-of-type {
  1345. color: #e63b47;
  1346. border: 1px solid #e63b47;
  1347. }
  1348. }
  1349. }
  1350. }
  1351. .expire {
  1352. height: 378px;
  1353. background: url('~/assets/image/claimCloudPhone/expire-img.png') no-repeat 0
  1354. 0;
  1355. background-size: 100% 100%;
  1356. position: relative;
  1357. .expire-btn {
  1358. position: absolute;
  1359. bottom: 20px;
  1360. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1361. font-weight: 500;
  1362. font-size: 16px;
  1363. color: #ffffff;
  1364. line-height: 48px;
  1365. left: 50%;
  1366. transform: translateX(-50%);
  1367. text-align: center;
  1368. font-style: normal;
  1369. width: 180px;
  1370. height: 48px;
  1371. background: linear-gradient(178deg, #fd8c50 0%, #fc3307 100%);
  1372. border-radius: 24px;
  1373. }
  1374. }
  1375. .login {
  1376. height: 312px;
  1377. background: #ffffff;
  1378. border-radius: 24px;
  1379. padding: 16px 28px;
  1380. box-sizing: border-box;
  1381. .login-title {
  1382. font-family: DingTalk, DingTalk;
  1383. font-weight: normal;
  1384. font-weight: bold;
  1385. font-size: 24px;
  1386. color: #0a132b;
  1387. line-height: 28px;
  1388. text-align: left;
  1389. font-style: normal;
  1390. margin-bottom: 14px;
  1391. }
  1392. .van-field {
  1393. margin-bottom: 14px;
  1394. border-radius: 8px;
  1395. border: 1px solid #e6e6e6;
  1396. }
  1397. .van-button {
  1398. width: 100%;
  1399. border-radius: 8px;
  1400. }
  1401. .login-code {
  1402. font-family: PingFangSC, PingFang SC;
  1403. font-weight: 500;
  1404. font-size: 14px;
  1405. color: #3666f2;
  1406. line-height: 16px;
  1407. text-align: left;
  1408. font-style: normal;
  1409. &.disabled {
  1410. color: #999;
  1411. }
  1412. }
  1413. .login-agreement {
  1414. font-family: PingFangSC, PingFang SC;
  1415. font-weight: 400;
  1416. font-size: 12px;
  1417. font-style: normal;
  1418. margin-top: 12px;
  1419. display: flex;
  1420. span {
  1421. color: #3666f2;
  1422. }
  1423. .van-checkbox {
  1424. align-items: start;
  1425. ::v-deep .van-checkbox__label {
  1426. color: #999999;
  1427. }
  1428. ::v-deep .van-checkbox__icon {
  1429. margin-top: 3px;
  1430. }
  1431. }
  1432. }
  1433. }
  1434. ::v-deep .phone-container {
  1435. background: transparent;
  1436. }
  1437. }
  1438. </style>