index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. <route lang="json5">
  2. {
  3. style: {
  4. navigationStyle: 'custom',
  5. navigationBarTitleText: '',
  6. },
  7. }
  8. </route>
  9. <template>
  10. <view class="w-full min-h-screen bg-bgc flex flex-col items-center">
  11. <view class="w-full bg-cardlight rounded-20rpx flex flex-col items-center">
  12. <view
  13. class="text-[#fff] w-690rpx flex flex-col justify-center text-center text-[48rpx] font-700 mt-30rpx"
  14. >
  15. <text>{{ $t('team.InviteFriends') }}</text>
  16. <text>
  17. {{ $t('team.GetMore') }}
  18. <text class="text-primary">
  19. {{ $t('team.BH Coin') }}
  20. </text>
  21. </text>
  22. </view>
  23. <view class="w-690rpx flex items-center mt-35rpx relative">
  24. <text class="text-center text-white flex-1">
  25. {{ $t('team.MyTeam') }}
  26. </text>
  27. <image
  28. @click="errorModel = true"
  29. src="@/static/images/team/error.png"
  30. class="w-40rpx h-40rpx absolute right-60rpx"
  31. mode="scaleToFill"
  32. />
  33. </view>
  34. <view class="w-690rpx flex items-center justify-center mt-15rpx">
  35. <image src="@/static/images/team/huoban.png" class="w-224rpx h-180rpx" mode="scaleToFill" />
  36. </view>
  37. <view
  38. class="w-690rpx flex items-center justify-center mt-15rpx h-172rpx bg-cards rounded-20rpx"
  39. >
  40. <view class="w-320rpx h-120rpx text-primary flex flex-col items-center">
  41. <text class="w-160rpx h-60rpx text-32rpx font-700 flex items-center justify-center">
  42. {{ $t('team.Total') }}
  43. </text>
  44. <view class="flex items-center mt-17rpx">
  45. <image
  46. src="@/static/images/team/teamcat.png"
  47. class="w-40rpx h-30rpx mr-10rpx"
  48. mode="scaleToFill"
  49. />
  50. <text class="">2</text>
  51. </view>
  52. </view>
  53. <view class="w-320rpx h-120rpx text-primary flex flex-col items-center">
  54. <view
  55. @click="receiveshow = true"
  56. class="w-160rpx h-60rpx bg-primary text-26rpx font-700 text-textc rounded-20rpx flex items-center justify-center"
  57. >
  58. {{ $t('team.Reward') }}
  59. </view>
  60. <view class="flex items-center mt-17rpx">
  61. <image
  62. src="@/static/images/team/cat.png"
  63. class="w-23rpx h-30rpx mr-18.5rpx"
  64. mode="scaleToFill"
  65. />
  66. <text class="">2</text>
  67. </view>
  68. </view>
  69. </view>
  70. <view
  71. class="w-650rpx h-130rpx bg-cards rounded-20rpx mt-15rpx flex items-center justify-around"
  72. >
  73. <image
  74. src="@/static/images/team/a.png"
  75. class="w-100rpx h-100rpx mx-20rpx"
  76. mode="scaleToFill"
  77. />
  78. <view class="flex-1">
  79. <text class="text-[#fff] text-28rpx font-700">{{ $t('team.TotalA') }}</text>
  80. <view class="flex text-[#fff] items-center mt-10rpx">
  81. <view class="flex items-center">
  82. <image
  83. src="@/static/images/trophy/jinbi.png"
  84. mode="scaleToFill"
  85. class="w-30rpx h-30rpx"
  86. />
  87. <text class="ml-10rpx text-[24rpx]">11</text>
  88. </view>
  89. <view class="ml-20rpx flex items-center">
  90. <image
  91. src="@/static/images/team/teamcat.png"
  92. mode="scaleToFill"
  93. class="w-30rpx h-22rpx"
  94. />
  95. <text class="ml-10rpx text-[24rpx] font-700">11</text>
  96. </view>
  97. </view>
  98. </view>
  99. <view class="w-160rpx h-60rpx flex flex-col justify-center items-center mr-20rpx">
  100. <view
  101. @click="abShow = true"
  102. class="w-full h-full text-textc bg-primary rounded-10rpx flex items-center justify-center"
  103. >
  104. <text class="text-[26rpx] fw-700">{{ $t('team.GetIt') }}</text>
  105. </view>
  106. </view>
  107. </view>
  108. <view
  109. class="w-650rpx h-130rpx bg-cards rounded-20rpx mt-15rpx flex items-center justify-around mb-30rpx"
  110. >
  111. <image
  112. src="@/static/images/team/b.png"
  113. class="w-100rpx h-100rpx mx-20rpx"
  114. mode="scaleToFill"
  115. />
  116. <view class="flex-1">
  117. <text class="text-[#fff] text-28rpx font-700">{{ $t('team.TotalB') }}</text>
  118. <view class="flex text-[#fff] items-center mt-10rpx">
  119. <view class="flex items-center">
  120. <image
  121. src="@/static/images/trophy/jinbi.png"
  122. mode="scaleToFill"
  123. class="w-30rpx h-30rpx"
  124. />
  125. <text class="ml-10rpx text-[24rpx]">11</text>
  126. </view>
  127. <view class="ml-20rpx flex items-center">
  128. <image
  129. src="@/static/images/team/teamcat.png"
  130. mode="scaleToFill"
  131. class="w-30rpx h-22rpx"
  132. />
  133. <text class="ml-10rpx text-[24rpx] font-700">11</text>
  134. </view>
  135. </view>
  136. </view>
  137. <view class="w-160rpx h-60rpx flex flex-col justify-center items-center mr-20rpx">
  138. <view
  139. class="w-full h-full text-textc bg-primary rounded-10rpx flex items-center justify-center"
  140. >
  141. <text class="text-[26rpx] fw-700">{{ $t('team.GetIt') }}</text>
  142. </view>
  143. </view>
  144. </view>
  145. </view>
  146. <view class="w-690rpx h-154rpx flex flex-col justify-center px-20rpx box-border">
  147. <view class="flex justify-between items-center">
  148. <view class="text-[#fff] flex flex-col justify-center">
  149. <text class="text-[32rpx] fw-700 mb-10rpx">{{ $t('team.Invite') }}</text>
  150. <text class="text-[24rpx] font-400">{{ $t('team.will') }}</text>
  151. </view>
  152. <view class="flex flex-col justify-center" @click="lianjieShow = true">
  153. <view
  154. class="w-160rpx h-60rpx text-textc bg-primary rounded-10rpx flex items-center justify-center mr-20rpx"
  155. >
  156. <text class="text-[26rpx] fw-700">{{ $t('play.Go') }}!</text>
  157. </view>
  158. </view>
  159. </view>
  160. </view>
  161. <scroll-view
  162. scroll-x
  163. :scroll-anchoring="true"
  164. :enhanced="true"
  165. :show-scrollbar="false"
  166. class="custom-scroll-view w-690rpx overflow-x-auto whitespace-nowrap mb-140rpx"
  167. >
  168. <view class="inline-flex">
  169. <view
  170. @click="lingquShow = true"
  171. class="w-690rpx h-200rpx bg-cardlight flex items-center rounded-20rpx mr-20rpx"
  172. v-for="(item, index) in 1"
  173. :key="index"
  174. >
  175. <view class="flex w-100% items-center">
  176. <view class="flex-1 ml-20rpx text-[#fff] flex flex-col justify-center">
  177. <view class="flex flex-col">
  178. <view class="flex items-center">
  179. <image
  180. src="@/static/images/trophy/jinbi.png"
  181. mode="scaleToFill"
  182. class="w-70rpx h-70rpx"
  183. />
  184. <text class="ml-10rpx text-[50rpx] fw-700">+1000</text>
  185. </view>
  186. <text class="text-[28rpx] fw-700">Inviting 2 friends can earn</text>
  187. </view>
  188. <view class="flex">
  189. <view class="w-75% c-bg">
  190. <wd-progress :percentage="10" color="primary" hide-text :duration="0.1" />
  191. </view>
  192. <view class="text-[28rpx] flex flex-col justify-center ml-10rpx">
  193. <text>1/2</text>
  194. </view>
  195. </view>
  196. </view>
  197. <view
  198. class="mr-40rpx flex flex-col justify-center w-160rpx h-100rpx items-center rounded-10rpx bg-primary"
  199. >
  200. <text class="text-32rpx font-700">{{ $t('team.GetIt') }}</text>
  201. </view>
  202. </view>
  203. </view>
  204. </view>
  205. </scroll-view>
  206. <!-- <view class="w-690rpx h-200rpx mb-100rpx relative text-primary">-->
  207. <!-- <view-->
  208. <!-- class="absolute flex flex-col items-center z-1 left-50% top-50% transform -translate-x-50% -translate-y-50%"-->
  209. <!-- >-->
  210. <!-- <view class="flex items-center mb-10rpx">-->
  211. <!-- <image src="@/static/images/team/a.png" class="w-70rpx h-66rpx"></image>-->
  212. <!-- <text class="ml-10rpx text-48rpx font-700">{{ $t('turntable.congratulations') }}</text>-->
  213. <!-- </view>-->
  214. <!-- <text class="font-400 text-28rpx">您已晋级团队TOP排行榜</text>-->
  215. <!-- </view>-->
  216. <!-- <image src="@/static/images/team/a.png" class="w-full h-full"></image>-->
  217. <!-- </view>-->
  218. </view>
  219. <Dialog v-model:show-value="receiveshow" width="690rpx" height="686rpx">
  220. <view class="w-full flex flex-col items-center">
  221. <view class="w-630rpx flex items-center justify-between mt-90rpx">
  222. <text class="text-36rpx font-700 text-white">NewComer List</text>
  223. <view class="flex items-center">
  224. <image
  225. src="@/static/images/team/cat.png"
  226. class="w-23rpx h-30rpx mr-10rpx"
  227. mode="scaleToFill"
  228. />
  229. <text class="text-primary text-28rpx font-700">2</text>
  230. </view>
  231. </view>
  232. <view class="w-630rpx bg-cards rounded-20rpx flex items-center h-194rpx mt-30rpx">
  233. <scroll-view :scroll-y="true" :show-scrollbar="false">
  234. <view
  235. v-for="(item, index) in 10"
  236. :key="index"
  237. class="text-[#fff] flex flex-col justify-center w-full items-center"
  238. >
  239. <view
  240. class="w-570rpx h-62rpx flex justify-between py-20rpx text-28rpx font-400 items-center"
  241. >
  242. <text>Boom!</text>
  243. <view class="flex items-center">
  244. <image
  245. src="@/static/images/trophy/jinbi.png"
  246. mode="scaleToFill"
  247. class="w-40rpx h-40rpx"
  248. />
  249. <text class="ml-10rpx">+1000</text>
  250. </view>
  251. </view>
  252. </view>
  253. </scroll-view>
  254. <!-- <view class="flex flex-col justify-center text-center w-100% h-100% text-[#fff]">-->
  255. <!-- <text>{{ $t('team.noData') }}</text>-->
  256. <!-- </view>-->
  257. </view>
  258. <view
  259. class="w-630rpx bg-primary h-100rpx flex items-center justify-center rounded-20rpx mt-30rpx"
  260. >
  261. <text class="text-28rpx font-700 text-textc">Receive all</text>
  262. </view>
  263. <view class="w-630rpx bg-cards rounded-20rpx flex items-center h-100rpx mt-30rpx">
  264. <text class="text-24rpx font-400 text-white flex-1 ml-30rpx">
  265. You will get rewards for every invitation!
  266. </text>
  267. <view
  268. class="w-70rpx h-70rpx rounded-20rpx bg-primary flex items-center justify-center mr-20rpx"
  269. >
  270. <text class="text-26rpx font-700 text-textc">Go</text>
  271. </view>
  272. </view>
  273. </view>
  274. </Dialog>
  275. <Dialog v-model:showValue="lianjieShow" height="752rpx" width="690rpx">
  276. <view class="flex text-white flex-col items-center">
  277. <text class="mt-90rpx text-36rpx font-700">{{ $t('production.rewards.ShareLink') }}</text>
  278. <view
  279. @click="shareUrl"
  280. class="w-630rpx font-700 h-100rpx rounded-20rpx bg-primary flex items-center justify-center text-textc items-center mt-50rpx"
  281. >
  282. {{ $t('production.rewards.Share') }}
  283. </view>
  284. <view class="w-95% mx-a h-1px bg-[#636363] mt-60rpx"></view>
  285. <view class="text-#fff text-26rpx mt-46rpx">{{ $t('production.rewards.secret') }}</view>
  286. <view
  287. class="w-238rpx flex items-center fw-550 justify-between h-50rpx text-primary text-50rpx mt-38rpx"
  288. >
  289. <text v-for="item in 'abcde'" :key="item">{{ item }}</text>
  290. </view>
  291. <view
  292. class="w-214rpx h-60rpx rounded-30rpx bg-primary flex items-center justify-center mt-54rpx"
  293. >
  294. <image src="@/static/images/team/copy.png" class="w-26rpx h-26rpx mr-10rpx"></image>
  295. <view class="text-26rpx text-#0E0E0E font-400">{{ $t('production.rewards.Copy') }}</view>
  296. </view>
  297. <text class="break-all text-24rpx font-400 text-white mt-53rpx">
  298. {{ $t('production.rewards.Recommend') }}
  299. </text>
  300. </view>
  301. </Dialog>
  302. <Dialog v-model:showValue="abShow" width="690rpx" height="690rpx" position="bottom">
  303. <view class="flex text-white flex-col items-center w-full">
  304. <view
  305. class="w-630rpx h-140rpx flex items-center justify-around bg-cards rounded-20rpx mt-90rpx"
  306. >
  307. <view class="w-215rpx h-100rpx flex flex-col items-center justify-between">
  308. <view class="flex items-center">
  309. <image
  310. src="@/static/images/team/teamcathui.png"
  311. class="w-40rpx h-40rpx mr-10rpx"
  312. ></image>
  313. <text class="text-28rpx font-400">Total</text>
  314. </view>
  315. <text class="text-white font-24rpx font-400">1</text>
  316. </view>
  317. <image src="@/static/images/team/a.png" class="w-100rpx h-100rpx"></image>
  318. <view class="w-215rpx h-100rpx flex flex-col items-center justify-between">
  319. <text class="text-28rpx font-400">Commission</text>
  320. <text class="text-white font-24rpx font-400">2%</text>
  321. </view>
  322. </view>
  323. <view
  324. class="w-630rpx h-100rpx bg-cards rounded-20rpx flex items-center justify-center mt-30rpx"
  325. >
  326. <image src="@/static/images/team/jinbi.png" class="w-40rpx h-40rpx mr-10rpx"></image>
  327. <text class="text-28rpx font-700 text-primary">2</text>
  328. </view>
  329. <view
  330. class="w-630rpx h-60rpx flex items-center mt-30rpx justify-between text-26rpx font-400 text-white"
  331. >
  332. <text>Total Team Production</text>
  333. <text>0 BH Coin</text>
  334. </view>
  335. <view class="w-630rpx h-1rpx bg-cards"></view>
  336. <view class="w-630rpx">
  337. <scroll-view class="h-200rpx" :scroll-y="true" :show-scrollbar="false">
  338. <view v-for="(item, index) in 5" :key="index" class="flex justify-between mt-40rpx">
  339. <view class="flex">
  340. <image
  341. src="@/static/images/trophy/avatar.png"
  342. class="w-90rpx h-90rpx rounded-100rpx mr-10rpx flex flex-col justify-center text-center"
  343. ></image>
  344. <view class="text-[#fff] ml-15rpx">
  345. <view>
  346. <text class="mr-10rpx text-26rpx font-700">123123</text>
  347. <image
  348. src="@/static/images/team/fj.png"
  349. mode="scaleToFill"
  350. class="w-30rpx h-30rpx"
  351. />
  352. </view>
  353. <view>
  354. <image
  355. src="@/static/images/team/mcat.png"
  356. mode="scaleToFill"
  357. class="w-30rpx h-30rpx"
  358. />
  359. <text class="ml-10rpx text-[25rpx]">{{ $t('team.WorkingNow') }}</text>
  360. </view>
  361. </view>
  362. </view>
  363. <view class="text-[#fff] flex flex-col justify-center">
  364. <view class="flex text-[24rpx] font-400">
  365. <text>111</text>
  366. <image
  367. src="@/static/images/trophy/jinbi.png"
  368. mode="scaleToFill"
  369. class="w-30rpx h-30rpx ml-10rpx"
  370. />
  371. </view>
  372. </view>
  373. </view>
  374. </scroll-view>
  375. <!-- <view-->
  376. <!-- v-else-->
  377. <!-- class="flex flex-col justify-center text-center w-100% h-100% text-[#fff] mt-50rpx"-->
  378. <!-- >-->
  379. <!-- <text>{{ $t('team.noData') }}</text>-->
  380. <!-- </view>-->
  381. </view>
  382. </view>
  383. </Dialog>
  384. <Dialog v-model:showValue="lingquShow" height="500rpx" width="690rpx">
  385. <view class="flex text-white flex-col items-center">
  386. <view class="w-630rpx flex items-center justify-center mt-90rpx">
  387. <image src="@/static/images/team/teamcat.png" mode="scaleToFill" class="w-82rpx h-62rpx" />
  388. </view>
  389. <view class="w-630rpx flex items-center justify-center mt-30rpx">
  390. <text class="text-36rpx font-700 text-white">Invite 1 friends</text>
  391. </view>
  392. <view class="w-630rpx flex items-center justify-center mt-30rpx">
  393. <text class="text-26rpx font-400 text-white">
  394. Unlock
  395. <text class="text-primary">10,000</text>
  396. BH Coin when you reach this level.
  397. </text>
  398. </view>
  399. <view
  400. class="w-630rpx bg-primary h-100rpx flex items-center justify-center rounded-20rpx mt-30rpx"
  401. >
  402. <text class="text-28rpx font-700 text-textc">Claim</text>
  403. </view>
  404. </view>
  405. </Dialog>
  406. <Dialog
  407. v-model:showValue="errorModel"
  408. width="690rpx"
  409. position="bottom"
  410. height="900rpx"
  411. :ov="true"
  412. >
  413. <view class="flex flex-col mt-90rpx items-center w-full bg-cardlight">
  414. <text class="w-355rpx h-54rpx text-36rpx font-700 text-white text-center">
  415. {{ $t('team.shuoming') }}
  416. </text>
  417. <text class="w-630rpx text-32rpx font-700 text-white mt-30rpx">
  418. 1. {{ $t('team.haoyou') }}
  419. </text>
  420. <text class="w-630rpx text-26rpx font-400 text-white mt-30rpx">
  421. {{ $t('team.jiangli') }}
  422. </text>
  423. <image
  424. src="@/static/images/team/1.png"
  425. mode="scaleToFill"
  426. class="w-470rpx h-283rpx mt-30rpx"
  427. />
  428. <text class="w-630rpx text-32rpx font-700 text-white mt-30rpx">
  429. 2.{{ $t('team.jianshe') }}
  430. </text>
  431. <text class="w-630rpx text-26rpx font-400 text-white mt-30rpx">
  432. {{ $t('team.shouyi') }}
  433. </text>
  434. <image
  435. src="@/static/images/team/2.png"
  436. mode="scaleToFill"
  437. class="w-470rpx h-118rpx mt-30rpx"
  438. />
  439. <text class="w-630rpx text-26rpx font-400 text-white mt-30rpx">
  440. {{ $t('team.shouqu') }}
  441. </text>
  442. <image
  443. src="@/static/images/team/3.png"
  444. mode="scaleToFill"
  445. class="w-470rpx h-254rpx mt-30rpx"
  446. />
  447. <text class="w-630rpx text-26rpx font-400 text-white mt-30rpx">
  448. {{ $t('team.xianshi') }}
  449. </text>
  450. <image
  451. src="@/static/images/team/4.png"
  452. mode="scaleToFill"
  453. class="w-470rpx h-114rpx mt-30rpx"
  454. />
  455. <text class="w-630rpx text-26rpx font-400 text-white mt-30rpx">
  456. {{ $t('team.lingqu') }}
  457. </text>
  458. <image
  459. src="@/static/images/team/5.png"
  460. mode="scaleToFill"
  461. class="w-470rpx h-269rpx mt-30rpx"
  462. />
  463. <text class="w-630rpx text-32rpx font-700 text-white mt-30rpx">
  464. 3.{{ $t('team.eaijiangli') }}
  465. </text>
  466. <text class="w-630rpx text-26rpx font-400 text-white mt-30rpx">
  467. {{ $t('team.lingquo') }}
  468. </text>
  469. <image
  470. src="@/static/images/team/6.png"
  471. mode="scaleToFill"
  472. class="w-470rpx h-260rpx mt-30rpx mb-20rpx"
  473. />
  474. </view>
  475. </Dialog>
  476. <tabbar currentTab="pages/team/index"></tabbar>
  477. </template>
  478. <script setup lang="ts">
  479. import tabbar from '@/components/TabBar/index.vue'
  480. import Dialog from '@/components/common/Dialog/index.vue'
  481. import { shareToTelegram, TelegramLinkBuilder } from '@/utils/temlgram'
  482. const receiveshow = ref(false)
  483. const lianjieShow = ref(false)
  484. const abShow = ref(false)
  485. const lingquShow = ref(false)
  486. const errorModel = ref(false)
  487. const bot = new TelegramLinkBuilder(import.meta.env.VITE_TELEGRAM_BOOTNAME)
  488. const getSimpleLink = () => {
  489. return bot.generateShareLink(`rp_${12345}`)
  490. }
  491. const shareUrl = () => {
  492. shareToTelegram(getSimpleLink(), '')
  493. }
  494. </script>
  495. <style lang="scss" scoped>
  496. .custom-scroll-view {
  497. touch-action: pan-x;
  498. -webkit-overflow-scrolling: touch;
  499. overscroll-behavior-x: contain;
  500. overscroll-behavior-y: none;
  501. position: relative;
  502. }
  503. /* 可以尝试添加这些属性来优化滑动体验 */
  504. :deep(.uni-scroll-view) {
  505. scroll-behavior: smooth;
  506. -webkit-overflow-scrolling: touch;
  507. }
  508. /* 样式穿透进度条 */
  509. .c-bg {
  510. :deep(.wd-progress__inner) {
  511. border-radius: 20px;
  512. }
  513. :deep(.wd-progress__outer) {
  514. height: 8rpx;
  515. border-radius: 35rpx;
  516. }
  517. }
  518. .b-hr {
  519. margin-top: 10px;
  520. border: 1px solid #636363;
  521. border-radius: 20rpx;
  522. }
  523. </style>