bargainingAssistance.vue 41 KB

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