bargainingAssistance.vue 40 KB

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