bargainingAssistance.vue 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240
  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">用户01</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="true">
  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">免费领取</div>
  56. </div>
  57. </template>
  58. </div>
  59. <!-- 邀请人显示 -->
  60. <template v-if="+type">
  61. <!-- 砍价记录 -->
  62. <div class="bargaining-record">
  63. <div class="title">砍价记录</div>
  64. <div class="container">
  65. <loadList
  66. ref="assistRecodeList"
  67. url="activity/v5/assist/operation/assistRecodeList"
  68. description="暂无砍价记录"
  69. >
  70. <template #default="{ list }">
  71. <div
  72. v-for="item in list"
  73. :key="item.id"
  74. class="bargaining-record-item"
  75. >
  76. <div class="bargaining-record-item_info">
  77. <div>{{ item.surfaceName }}</div>
  78. <div>
  79. 道具砍掉<span>{{ item.assistPrice }}元</span>
  80. </div>
  81. </div>
  82. </div>
  83. </template>
  84. </loadList>
  85. </div>
  86. </div>
  87. <!-- 云机发放记录 -->
  88. <div class="distribution-records">
  89. <div class="title">云机发放记录</div>
  90. <div class="container">
  91. <div>
  92. <div>序号</div>
  93. <div>云机名称</div>
  94. <div>套餐类型</div>
  95. <div>云机时长</div>
  96. </div>
  97. <div>
  98. <loadList
  99. ref="assistGetPhoneRecode"
  100. url="activity/v5/assist/operation/assistGetPhoneRecode"
  101. description="当前您还没有白嫖到云手机"
  102. >
  103. <template #default="{ list }">
  104. <div
  105. v-for="(item, index) in list"
  106. :key="item.id"
  107. class="distribution-records-item"
  108. >
  109. <div>{{ index + 1 }}</div>
  110. <div>{{ item.diskName }}</div>
  111. <div>{{ item.phoneTypeStr }}</div>
  112. <div>{{ item.validTime }}天</div>
  113. </div>
  114. </template>
  115. </loadList>
  116. </div>
  117. </div>
  118. </div>
  119. </template>
  120. <!-- 参加活动的所有信息 -->
  121. <template v-if="barrageList.length">
  122. <div class="barrage">
  123. </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. 您的云手机【获取云手机名称】发放成功/续费成功
  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 placeholder="手机号" />
  202. <van-field placeholder="验证码">
  203. <template #button>
  204. <div class="login-code">获取验证码</div>
  205. </template>
  206. </van-field>
  207. <van-button color="#3666F2">登录</van-button>
  208. <div class="login-agreement">
  209. <van-checkbox icon-size="16px" v-model="agreementBool">
  210. 通过登录即可完成注册,成为我们的新用户登录后表示同意
  211. <span>用户协议</span>
  212. </van-checkbox>
  213. </div>
  214. </div>
  215. </van-dialog>
  216. </div>
  217. </template>
  218. <script>
  219. import customProgress from './customProgress.vue';
  220. import loadList from '@/components/loadlist';
  221. import { fileKeyToUrl } from '@/plugins/file-center.js';
  222. export default {
  223. props: {
  224. operateActivityId: {
  225. type: [String, Number],
  226. default: '',
  227. },
  228. type: {
  229. type: [Number, String],
  230. default: '',
  231. },
  232. getSystemTime: {
  233. type: Function,
  234. default: () => {
  235. return () => {};
  236. },
  237. },
  238. leaveFun: {
  239. type: Function,
  240. default: () => {
  241. return () => {};
  242. },
  243. },
  244. wxIntercept: {
  245. type: Function,
  246. default: () => {
  247. return () => {};
  248. },
  249. },
  250. },
  251. data() {
  252. return {
  253. total: 50, // 砍价百分比
  254. barrageList: [], // 滚动轮播数据
  255. ruleVisible: false, // 规则弹窗
  256. bargainingVisible: false, // 首次砍价弹窗
  257. bargainingTipsBool: false, // 是否切换成砍价金额的页面
  258. exitVisible: false, // 退出弹窗
  259. successfulBargainingVisible: false, // 砍价成功弹窗
  260. expireVisible: false, // 免单时间过期弹窗
  261. loginVisible: false, // 被邀请人登录框
  262. agreementBool: false, // 是否勾选协议
  263. ruleHtml: '', // 规则内容
  264. info: {}, // 砍价相关信息
  265. bargainingAmount: '', // 砍价金额
  266. systemTime: '', // 系统时间
  267. };
  268. },
  269. components: {
  270. customProgress,
  271. loadList,
  272. },
  273. mounted() {
  274. console.log(process.env.API_URL);
  275. if (+this.type === 1 || +this.type === 2) {
  276. this.getRule();
  277. this.getAssistAwardRecode();
  278. }
  279. this.bargainingStatus(true);
  280. switch (+this.type) {
  281. case 3: // 成功,领取下一台云机界面
  282. this.successfulBargainingVisible = true;
  283. break;
  284. case 4: // 失败,领取下一台云机界面
  285. this.expireVisible = true;
  286. break;
  287. }
  288. },
  289. computed: {
  290. time() {
  291. const { validityPeriodTimeStamp = 0 } = this.info;
  292. return validityPeriodTimeStamp
  293. ? validityPeriodTimeStamp - this.systemTime * 1000
  294. : 0;
  295. },
  296. },
  297. methods: {
  298. // 轮播活动参加的人的信息
  299. startBarrage() {
  300. const barrage = document.querySelector('.barrage');
  301. if (!barrage.childNodes.length) {
  302. const data = this.barrageList[0];
  303. this.barrageList.shift();
  304. this.barrageList.push(data);
  305. barrage.appendChild(writeIn(data));
  306. }
  307. const first = barrage.childNodes[0];
  308. setTimeout(() => {
  309. first.className = 'start';
  310. first.addEventListener('animationstart', () => {
  311. const data = this.barrageList[0];
  312. this.barrageList.shift();
  313. this.barrageList.push(data);
  314. const div = writeIn(data);
  315. barrage.appendChild(div);
  316. setTimeout(() => {
  317. div.style = 'opacity: 1';
  318. }, 100);
  319. });
  320. first.addEventListener('animationend', () => {
  321. barrage.removeChild(first);
  322. this.startBarrage();
  323. });
  324. }, 1000);
  325. function writeIn({ price, phoneNumber, phoneType, duration }) {
  326. const div = document.createElement('div');
  327. div.style = 'opacity: 0';
  328. div.innerHTML = `<div>
  329. <div>${phoneNumber}</div>
  330. <span> 领取了6次 </span>
  331. </div>
  332. <div>${phoneType}${duration}天,价值<span>${price}元</span></div>`;
  333. return div;
  334. }
  335. },
  336. bargainingFun(bool = false) {
  337. // 首次砍价的时候进此判断
  338. if (bool) {
  339. this.$toast.loading({
  340. message: '加载中...',
  341. forbidClick: true,
  342. duration: 0,
  343. });
  344. const { menuRuleId, userCardId } = this.$route.query;
  345. const obj = {
  346. operateActivityId: this.operateActivityId,
  347. menuRuleId,
  348. };
  349. // 如果是续费,选择了对应云机,需要传云机id
  350. if (userCardId) obj.userCardId = userCardId;
  351. this.$axios
  352. .$post('activity/v5/assist/bargaining/userSelectedPackage', obj)
  353. .then((res) => {
  354. if (res.success) {
  355. // 砍价金额
  356. this.bargainingAmount = res.data.fristKnifeAmount;
  357. setTimeout(() => {
  358. this.bargainingTipsBool = true;
  359. });
  360. // 重新获取用户最新的数据
  361. setTimeout(this.bargainingStatus, 1000);
  362. }
  363. })
  364. .catch((error) => {
  365. setTimeout(() => {
  366. this.$toast(error.message);
  367. });
  368. })
  369. .finally(() => {
  370. this.$toast.clear();
  371. });
  372. return;
  373. }
  374. this.chopAKnife();
  375. },
  376. // 获取规则
  377. getRule() {
  378. this.$axios
  379. .$get('public/v4/agreement/content', {
  380. params: { agreementCoding: 'YDQLBHD10000' },
  381. })
  382. .then((res) => {
  383. if (res.success) {
  384. const html = res.data.content;
  385. const rx = /<body[^>]*>([\s\S]+?)<\/body>/i;
  386. let m = rx.exec(html);
  387. if (m) {
  388. m = m[1];
  389. }
  390. this.ruleHtml = m;
  391. }
  392. });
  393. },
  394. // 获取用户数据接口
  395. bargainingStatus(bool = false) {
  396. if (bool) {
  397. this.$toast.loading({
  398. message: '加载中...',
  399. forbidClick: true,
  400. duration: 0,
  401. });
  402. }
  403. this.$axios
  404. .$get('activity/v5/assist/bargaining/current/bargainingStatus')
  405. .then(async (res) => {
  406. if (res.success) {
  407. this.info = res.data;
  408. const data = await this.getSystemTime();
  409. this.systemTime = data.data;
  410. if (this.info.bargainingStatus === 0) {
  411. this.bargainingVisible = true;
  412. }
  413. // 如果是安卓客户端登录的情况且bargainingStatus为 1 2 ,
  414. if (
  415. this.info.bargainingStatus === 1 ||
  416. this.info.bargainingStatus === 2
  417. ) {
  418. // 对安卓返回键做拦截
  419. if (
  420. (this.$userAgent.isSzx || this.$userAgent.isSzxBrowser) &&
  421. this.$userAgent.isAndroid
  422. ) {
  423. window.native.webBackStatus(true);
  424. window.appGoBackCallback = () => {
  425. this.exitVisible = true;
  426. };
  427. return;
  428. }
  429. // 对微信做拦截
  430. if (this.$userAgent.isWx) {
  431. this.wxIntercept(() => {
  432. history.pushState(null, null, document.URL);
  433. this.exitVisible = true;
  434. });
  435. return;
  436. }
  437. }
  438. if (
  439. [1, 2].includes(this.info.bargainingStatus) &&
  440. this.$refs.assistRecodeList &&
  441. this.$refs.assistGetPhoneRecode
  442. ) {
  443. this.$refs.assistRecodeList.data = [];
  444. this.$refs.assistGetPhoneRecode.data = [];
  445. this.$refs.assistRecodeList.list();
  446. this.$refs.assistGetPhoneRecode.list();
  447. }
  448. }
  449. })
  450. .catch((error) => {
  451. this.$toast(error.message);
  452. })
  453. .finally(() => {
  454. if (this.info.bargainingStatus !== 0) this.bargainingVisible = false;
  455. this.$toast.clear();
  456. });
  457. },
  458. // 滚动的相关数据
  459. getAssistAwardRecode() {
  460. this.$axios
  461. .$get('activity/v5/assist/operation/getAssistAwardRecode', {})
  462. .then((res) => {
  463. if (res.success) {
  464. this.barrageList = res.data;
  465. setTimeout(() => {
  466. this.barrageList.length && this.startBarrage();
  467. });
  468. }
  469. });
  470. },
  471. // 领取下一台手机
  472. claimTheNextOne() {
  473. this.$toast.loading({
  474. message: '加载中...',
  475. forbidClick: true,
  476. duration: 0,
  477. });
  478. this.$axios
  479. .$get('activity/v5/assist/operation/reportCutStatus', {
  480. params: {
  481. userLaunchId: this.info.userLaunchId,
  482. },
  483. })
  484. .then((res) => {
  485. if (res.success) {
  486. // 解除安卓返回按键
  487. if (
  488. (this.$userAgent.isSzx || this.$userAgent.isSzxBrowser) &&
  489. this.$userAgent.isAndroid
  490. ) {
  491. window.native.webBackStatus(false);
  492. }
  493. this.$router.replace('/claimCloudPhone/chooseCloudPhone?exit=1');
  494. }
  495. })
  496. .catch((error) => {
  497. setTimeout(() => {
  498. this.$toast(error.message);
  499. });
  500. })
  501. .finally(() => {
  502. this.$toast.clear();
  503. });
  504. },
  505. // 砍一刀
  506. chopAKnife() {
  507. this.$toast.loading({
  508. message: '加载中...',
  509. forbidClick: true,
  510. duration: 0,
  511. });
  512. this.$axios
  513. .$post('activity/v5/assist/operation/chopAKnife')
  514. .then((res) => {
  515. if (res.success) {
  516. this.bargainingTipsBool = true;
  517. this.bargainingAmount = res.data;
  518. setTimeout(() => {
  519. this.bargainingVisible = true;
  520. });
  521. // 重新获取用户最新的数据
  522. setTimeout(this.bargainingStatus, 1000);
  523. }
  524. })
  525. .catch((error) => {
  526. this.$toast(error.message);
  527. setTimeout(() => {
  528. this.$toast.clear();
  529. }, 500);
  530. });
  531. },
  532. btnFun() {
  533. if (+this.type) {
  534. switch (this.info.bargainingStatus) {
  535. case 1:
  536. this.chopAKnife();
  537. break;
  538. case 2:
  539. this.$toast.loading({
  540. message: '加载中...',
  541. forbidClick: true,
  542. duration: 0,
  543. });
  544. this.$axios
  545. .$post('activity/v5/assist/bargaining/getGenerateInvitationLink')
  546. .then(async (res) => {
  547. if (res.success) {
  548. res.data.desc = res.data.content;
  549. res.data.link = res.data.url;
  550. res.data.imgUrl = fileKeyToUrl(res.data.imgUrl);
  551. const shareInfo = { ...res.data };
  552. if (this.$userAgent.isSzx || this.$userAgent.isSzxBrowser) {
  553. this.$native.share(shareInfo);
  554. } else {
  555. // 微信环境不支持复制
  556. if (this.$userAgent.isWx || this.$userAgent.isMiniProgram) {
  557. setTimeout(() => {
  558. this.$toast.fail(
  559. '链接复制失败,请访问客户端或网页复制该链接',
  560. );
  561. });
  562. return;
  563. }
  564. // 浏览器环境
  565. await this.$native.clipboard.writeText(res.data.link);
  566. setTimeout(() => {
  567. this.$toast.success('链接复制成功');
  568. });
  569. }
  570. }
  571. })
  572. .finally(() => {
  573. this.$toast.clear();
  574. });
  575. break;
  576. }
  577. }
  578. },
  579. },
  580. };
  581. </script>
  582. <style lang="less" scoped>
  583. .bargaining-assistance {
  584. height: 100%;
  585. .inviter-tips,
  586. .invitee-tips {
  587. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  588. }
  589. .inviter-tips {
  590. font-weight: 400;
  591. font-size: 12px;
  592. color: #ffffff;
  593. line-height: 17px;
  594. text-align: center;
  595. font-style: normal;
  596. margin-bottom: 14px;
  597. & > div {
  598. font-size: 26px;
  599. line-height: 30px;
  600. }
  601. }
  602. .invitee-tips {
  603. .invitee-tips-user {
  604. font-weight: bold;
  605. font-size: 18px;
  606. color: #ffffff;
  607. line-height: 22px;
  608. text-align: left;
  609. font-style: normal;
  610. margin-bottom: 8px;
  611. }
  612. .invitee-tips-text {
  613. font-weight: 400;
  614. font-size: 14px;
  615. color: #ffffff;
  616. line-height: 22px;
  617. text-align: left;
  618. font-style: normal;
  619. span {
  620. color: #fceba9;
  621. }
  622. margin-bottom: 24px;
  623. }
  624. }
  625. .bargaining-assistance-main {
  626. background: #ffffff;
  627. border-radius: 20px;
  628. margin-bottom: 24px;
  629. overflow: hidden;
  630. .package-name {
  631. display: flex;
  632. justify-content: center;
  633. span {
  634. display: inline-block;
  635. padding: 5px 61px;
  636. background: #ffe8e8;
  637. border-radius: 0 0 15px 15px;
  638. margin: 0 auto;
  639. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  640. font-weight: bold;
  641. font-size: 16px;
  642. color: #c00202;
  643. line-height: 20px;
  644. text-align: center;
  645. font-style: normal;
  646. }
  647. }
  648. .package-price {
  649. font-family: Alibaba-PuHuiTi, Alibaba-PuHuiTi;
  650. height: 120px;
  651. font-weight: normal;
  652. box-sizing: border-box;
  653. padding-top: 30px;
  654. font-size: 30px;
  655. color: #c70b0b;
  656. line-height: 62px;
  657. text-align: center;
  658. font-style: normal;
  659. font-weight: bold;
  660. width: calc(100% - 24px);
  661. margin: 0 auto;
  662. background: #ffffff;
  663. box-shadow: 0px 0px 8px 2px #f4f7f8, 0px 2px 4px 0px #ecedf8;
  664. border-radius: 20px;
  665. margin-top: -20px;
  666. span {
  667. font-size: 20px;
  668. }
  669. }
  670. .package-progress {
  671. margin: 40px 42px 28px;
  672. }
  673. .package-tips {
  674. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  675. text-align: center;
  676. font-size: 16px;
  677. font-weight: bold;
  678. color: #000000;
  679. line-height: 22px;
  680. font-style: normal;
  681. margin-bottom: 24px;
  682. span {
  683. color: #f04646;
  684. }
  685. & > div:first-of-type {
  686. font-size: 21px;
  687. line-height: 29px;
  688. }
  689. }
  690. .package-btn {
  691. height: 54px;
  692. background: linear-gradient(178deg, #fd8c50 0%, #fc3307 100%);
  693. border-radius: 28px;
  694. margin: 0 27px;
  695. font-family: AlimamaShuHeiTi, AlimamaShuHeiTi;
  696. font-weight: bold;
  697. font-size: 20px;
  698. color: #ffffff;
  699. line-height: 54px;
  700. text-align: center;
  701. font-style: normal;
  702. // margin-bottom: 24px;
  703. }
  704. .package-expire {
  705. margin-top: 12px;
  706. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  707. text-align: center;
  708. font-style: normal;
  709. margin-bottom: 24px;
  710. &,
  711. .van-count-down {
  712. font-weight: 400;
  713. font-size: 12px;
  714. color: #7d6156;
  715. line-height: 16px;
  716. }
  717. .van-count-down {
  718. display: inline-block;
  719. }
  720. }
  721. .invitee-to-claim {
  722. height: 339px;
  723. border-radius: 20px;
  724. background: url('~/assets/image/claimCloudPhone/Invitee-to-claim.png')
  725. no-repeat 0 0;
  726. background-size: 100% 100%;
  727. position: relative;
  728. .invitee-to-claim_btn {
  729. height: 54px;
  730. background: linear-gradient(90deg, #ff6d2b 0%, #ff1500 100%);
  731. box-shadow: inset 9px -7px 19px 0px #ffba57,
  732. inset -1px 2px 6px 0px #ffbd63;
  733. border-radius: 27px;
  734. text-align: center;
  735. position: absolute;
  736. bottom: 14px;
  737. width: 200px;
  738. font-family: YouSheBiaoTiYuan;
  739. font-size: 28px;
  740. color: #ffffff;
  741. line-height: 23px;
  742. left: 50%;
  743. transform: translateX(-50%);
  744. font-style: normal;
  745. font-weight: bold;
  746. line-height: 54px;
  747. }
  748. }
  749. }
  750. .bargaining-record {
  751. margin-bottom: 24px;
  752. }
  753. .bargaining-record,
  754. .distribution-records {
  755. background: #ffffff;
  756. border-radius: 12px;
  757. .title {
  758. height: 44px;
  759. background: #ffe8e8;
  760. border-radius: 12px 12px 0px 0px;
  761. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  762. font-weight: bold;
  763. font-size: 16px;
  764. color: #c00202;
  765. line-height: 44px;
  766. text-align: center;
  767. font-style: normal;
  768. }
  769. .container {
  770. height: 250px;
  771. overflow-y: auto;
  772. padding: 0 20px;
  773. scrollbar-width: none !important; /* 对于 Firefox 隐藏滚动条 */
  774. &::-webkit-scrollbar {
  775. display: none !important; /* 对于 Chrome, Safari 和 Opera 隐藏滚动条 */
  776. }
  777. .van-empty {
  778. padding: 0 !important;
  779. }
  780. }
  781. .bargaining-record-item {
  782. height: 53px;
  783. border-bottom: 2px #f1f1f1 solid;
  784. display: flex;
  785. align-items: center;
  786. .bargaining-record-item_info {
  787. font-family: PingFangSC, PingFang SC;
  788. font-weight: 400;
  789. font-size: 14px;
  790. color: #7d6156;
  791. line-height: 18px;
  792. font-style: normal;
  793. & > div:first-of-type,
  794. span {
  795. font-weight: bold;
  796. }
  797. span {
  798. color: #c00202;
  799. }
  800. }
  801. }
  802. }
  803. .distribution-records {
  804. .container {
  805. padding: 0px;
  806. position: relative;
  807. & > div:first-of-type {
  808. position: absolute;
  809. width: 100%;
  810. left: 0;
  811. height: 20px;
  812. background: #ffffff;
  813. box-shadow: 0px 2px 4px 0px #ecedf8;
  814. top: 0;
  815. font-family: PingFangSC, PingFang SC;
  816. font-weight: 400;
  817. font-size: 12px;
  818. color: #7d6156;
  819. line-height: 20px;
  820. text-align: center;
  821. display: flex;
  822. font-style: normal;
  823. & > div {
  824. width: 25%;
  825. }
  826. }
  827. & > div:last-of-type {
  828. height: 100%;
  829. box-sizing: border-box;
  830. padding-top: 20px;
  831. overflow-y: auto;
  832. scrollbar-width: none !important; /* 对于 Firefox 隐藏滚动条 */
  833. &::-webkit-scrollbar {
  834. display: none !important; /* 对于 Chrome, Safari 和 Opera 隐藏滚动条 */
  835. }
  836. ::v-deep .van-empty {
  837. padding: 0px;
  838. .van-empty__image {
  839. img {
  840. display: none;
  841. }
  842. background: url('~/assets/image/claimCloudPhone/distribution-records-empty.png')
  843. no-repeat center bottom;
  844. background-size: 90px 90px;
  845. }
  846. }
  847. .distribution-records-item {
  848. height: 46px;
  849. line-height: 46px;
  850. box-sizing: border-box;
  851. display: flex;
  852. border-bottom: 2px #f1f1f1 solid;
  853. & > div {
  854. width: 25%;
  855. text-align: center;
  856. font-family: PingFangSC, PingFang SC;
  857. font-weight: 400;
  858. font-size: 14px;
  859. color: #6d2b12;
  860. text-align: center;
  861. font-style: normal;
  862. }
  863. }
  864. }
  865. }
  866. }
  867. .barrage {
  868. position: fixed;
  869. bottom: 11%;
  870. transform: translateY(-11%);
  871. right: 11px;
  872. & > ::v-deep div {
  873. transition: all 0.7s;
  874. &.start {
  875. opacity: 1;
  876. animation: barrage 0.5s linear;
  877. @keyframes barrage {
  878. 0% {
  879. opacity: 1;
  880. transform: translateY(0px);
  881. }
  882. 100% {
  883. transform: translateY(-30px);
  884. opacity: 0;
  885. }
  886. }
  887. }
  888. opacity: 1;
  889. width: 143px;
  890. height: 40px;
  891. position: absolute;
  892. bottom: 11%;
  893. right: 11px;
  894. background: linear-gradient(
  895. 90deg,
  896. #992bff 0%,
  897. rgba(255, 21, 0, 0.4) 100%
  898. );
  899. border-radius: 23px;
  900. border-image: linear-gradient(
  901. 94deg,
  902. rgba(255, 255, 255, 1),
  903. rgba(255, 255, 255, 0.35)
  904. )
  905. 1 1;
  906. padding: 0 10px;
  907. font-size: 10px;
  908. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  909. font-weight: 400;
  910. color: #ffffff;
  911. display: flex;
  912. flex-direction: column;
  913. justify-content: center;
  914. & > div {
  915. height: 16px;
  916. line-height: 16px;
  917. &:first-of-type {
  918. display: flex;
  919. & > div {
  920. width: 50px;
  921. overflow: hidden;
  922. text-overflow: ellipsis;
  923. white-space: nowrap;
  924. }
  925. & > span {
  926. display: inline-block;
  927. background: linear-gradient(to bottom, #fec37a 0%, #ff1500 100%);
  928. border-radius: 21px;
  929. padding: 0 10px;
  930. }
  931. }
  932. &:last-of-type span {
  933. color: #fddb2b;
  934. }
  935. }
  936. }
  937. }
  938. .rule {
  939. position: fixed;
  940. top: 12.5%;
  941. right: 0;
  942. width: 40px;
  943. height: 20px;
  944. line-height: 20px;
  945. background: #f04646;
  946. border-radius: 17px 0px 0px 17px;
  947. z-index: 2;
  948. font-family: PingFangSC, PingFang SC;
  949. font-weight: 400;
  950. font-size: 12px;
  951. color: #ffffff;
  952. text-align: center;
  953. font-style: normal;
  954. }
  955. .rule-title {
  956. height: 53px;
  957. border-radius: 16px 16px 0 0;
  958. background: linear-gradient(90deg, #f6cdb9 0%, #fbdbde 100%);
  959. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  960. font-weight: bold;
  961. font-size: 18px;
  962. color: #751d13;
  963. line-height: 53px;
  964. text-align: center;
  965. font-style: normal;
  966. }
  967. .rule-content {
  968. height: 325px;
  969. padding: 16px;
  970. box-sizing: border-box;
  971. background: #fff;
  972. border-radius: 0 0 16px 16px;
  973. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  974. font-weight: 400;
  975. font-size: 14px;
  976. color: #751d13;
  977. line-height: 16px;
  978. text-align: left;
  979. font-style: normal;
  980. overflow-y: auto;
  981. }
  982. .rule-close {
  983. height: 32px;
  984. width: 32px;
  985. background: #c1c1c1;
  986. z-index: 5;
  987. margin: 20px auto 0;
  988. border-radius: 50%;
  989. display: flex;
  990. justify-content: center;
  991. align-items: center;
  992. font-size: 24px;
  993. color: #666666;
  994. }
  995. ::v-deep .van-dialog {
  996. background: transparent !important;
  997. }
  998. .bargaining-img {
  999. height: 512px;
  1000. width: 100%;
  1001. background: url('~/assets/image/claimCloudPhone/bargaining-popUp.png')
  1002. no-repeat 0 20px;
  1003. background-size: 100% 100%;
  1004. }
  1005. .bargaining-amount {
  1006. height: 234px;
  1007. background: url('~/assets/image/claimCloudPhone/bargaining-amount-img.png')
  1008. no-repeat 0 20px;
  1009. padding-top: 30px;
  1010. box-sizing: border-box;
  1011. background-size: 100% 210px;
  1012. .bargaining-amount-text {
  1013. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1014. font-weight: bold;
  1015. font-size: 24px;
  1016. color: #ffffff;
  1017. text-align: center;
  1018. font-style: normal;
  1019. span {
  1020. color: #ff0000;
  1021. }
  1022. }
  1023. }
  1024. .exit {
  1025. height: 520px;
  1026. position: relative;
  1027. & > img {
  1028. height: 100%;
  1029. width: 100%;
  1030. }
  1031. .exit-content {
  1032. position: absolute;
  1033. top: 25%;
  1034. left: 50%;
  1035. width: 200px;
  1036. transform: translateX(-50%);
  1037. font-family: AlimamaShuHeiTi, AlimamaShuHeiTi;
  1038. font-weight: bold;
  1039. font-size: 16px;
  1040. color: #171815;
  1041. line-height: 24px;
  1042. text-align: center;
  1043. font-style: normal;
  1044. & > div span {
  1045. color: #f04646;
  1046. }
  1047. .exit-content-progress {
  1048. margin: 50px 0 80px;
  1049. }
  1050. .exit-content-btn {
  1051. & > img {
  1052. height: 42px;
  1053. width: 100%;
  1054. }
  1055. .exit-content-btn_leave {
  1056. font-weight: 400;
  1057. font-size: 12px;
  1058. color: #faf3d8;
  1059. }
  1060. }
  1061. }
  1062. }
  1063. .bargaining-success {
  1064. height: 378px;
  1065. background: url('~/assets/image/claimCloudPhone/successful-bargaining-img.png')
  1066. no-repeat 0 0;
  1067. background-size: 100% 100%;
  1068. overflow: hidden;
  1069. position: relative;
  1070. .bargaining-success-title {
  1071. margin-top: 24px;
  1072. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1073. font-weight: bold;
  1074. font-size: 28px;
  1075. color: #fdf9c8;
  1076. line-height: 38px;
  1077. text-align: center;
  1078. font-style: normal;
  1079. }
  1080. .bargaining-success-tips {
  1081. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1082. width: 165px;
  1083. font-weight: bold;
  1084. font-size: 12px;
  1085. color: #ffffff;
  1086. line-height: 17px;
  1087. text-align: center;
  1088. margin: 0 auto;
  1089. }
  1090. .bargaining-success-btn {
  1091. position: absolute;
  1092. bottom: 20px;
  1093. left: 50%;
  1094. transform: translateX(-50%);
  1095. display: flex;
  1096. flex-direction: column;
  1097. justify-content: center;
  1098. & > div {
  1099. width: 180px;
  1100. height: 48px;
  1101. line-height: 48px;
  1102. text-align: center;
  1103. border-radius: 24px;
  1104. color: #fff;
  1105. font-weight: bold;
  1106. &:first-of-type {
  1107. margin-bottom: 8px;
  1108. background: linear-gradient(178deg, #fd8c50 0%, #fc3307 100%);
  1109. }
  1110. &:last-of-type {
  1111. color: #e63b47;
  1112. border: 1px solid #e63b47;
  1113. }
  1114. }
  1115. }
  1116. }
  1117. .expire {
  1118. height: 378px;
  1119. background: url('~/assets/image/claimCloudPhone/expire-img.png') no-repeat 0
  1120. 0;
  1121. background-size: 100% 100%;
  1122. position: relative;
  1123. .expire-btn {
  1124. position: absolute;
  1125. bottom: 20px;
  1126. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  1127. font-weight: 500;
  1128. font-size: 16px;
  1129. color: #ffffff;
  1130. line-height: 48px;
  1131. left: 50%;
  1132. transform: translateX(-50%);
  1133. text-align: center;
  1134. font-style: normal;
  1135. width: 180px;
  1136. height: 48px;
  1137. background: linear-gradient(178deg, #fd8c50 0%, #fc3307 100%);
  1138. border-radius: 24px;
  1139. }
  1140. }
  1141. .login {
  1142. height: 312px;
  1143. background: #ffffff;
  1144. border-radius: 24px;
  1145. padding: 16px 28px;
  1146. box-sizing: border-box;
  1147. .login-title {
  1148. font-family: DingTalk, DingTalk;
  1149. font-weight: normal;
  1150. font-weight: bold;
  1151. font-size: 24px;
  1152. color: #0a132b;
  1153. line-height: 28px;
  1154. text-align: left;
  1155. font-style: normal;
  1156. margin-bottom: 14px;
  1157. }
  1158. .van-field {
  1159. margin-bottom: 14px;
  1160. border-radius: 8px;
  1161. border: 1px solid #e6e6e6;
  1162. }
  1163. .van-button {
  1164. width: 100%;
  1165. border-radius: 8px;
  1166. }
  1167. .login-code {
  1168. font-family: PingFangSC, PingFang SC;
  1169. font-weight: 500;
  1170. font-size: 14px;
  1171. color: #3666f2;
  1172. line-height: 16px;
  1173. text-align: left;
  1174. font-style: normal;
  1175. }
  1176. .login-agreement {
  1177. font-family: PingFangSC, PingFang SC;
  1178. font-weight: 400;
  1179. font-size: 12px;
  1180. font-style: normal;
  1181. margin-top: 12px;
  1182. display: flex;
  1183. span {
  1184. color: #3666f2;
  1185. }
  1186. .van-checkbox {
  1187. align-items: start;
  1188. ::v-deep .van-checkbox__label {
  1189. color: #999999;
  1190. }
  1191. ::v-deep .van-checkbox__icon {
  1192. margin-top: 3px;
  1193. }
  1194. }
  1195. }
  1196. }
  1197. ::v-deep .phone-container {
  1198. background: transparent;
  1199. }
  1200. }
  1201. </style>