bargainingAssistance.vue 41 KB

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