share.vue 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. *-+
  2. <template>
  3. <view class="content">
  4. <view class="box-top">
  5. <view class="bg3">
  6. <image src="../../static/index/img14.png" mode=""></image>
  7. </view>
  8. <view class="bg3 two">
  9. <image src="../../static/index/img08.png" mode=""></image>
  10. </view>
  11. </view>
  12. <view class="top-tit">
  13. 邀请好友
  14. 变成壕友
  15. </view>
  16. <view class="center-wrap">
  17. <image src="../../static/img/tj-bg.png" mode="" class="tj-bg"></image>
  18. <view class="center-tit">
  19. 邀请地址
  20. </view>
  21. <view class="tj-jl flex" @click="opneYj">
  22. <text>业</text>
  23. <text>绩</text>
  24. </view>
  25. <view class="tj-lj-tit">
  26. 【链接地址】
  27. </view>
  28. <view class="tj-lj flex">
  29. <view class="lj-tit">
  30. 邀请链接:
  31. </view>
  32. <view class="lj-info clamp">
  33. 山上有座庙,庙里有个老和尚和小和尚
  34. </view>
  35. <view class="lj-copy">
  36. 复制链接
  37. </view>
  38. </view>
  39. </view>
  40. <view class="tj-look" @click="button()">
  41. 查看推荐
  42. </view>
  43. <uni-popup ref="yeji" type="center">
  44. <view class="yj-wrap">
  45. <view class="yj-tit">
  46. 收益明细
  47. </view>
  48. <image src="../../static/img/yj-bg.png" mode="" class="yj-logo"></image>
  49. <view class="yj-hj flex">
  50. <view class="yj-hj-item">
  51. <view class="hj-item-val">
  52. 0
  53. </view>
  54. <view class="hj-item-name">
  55. KGC总业绩
  56. </view>
  57. </view>
  58. <view class="yj-hj-item">
  59. <view class="hj-item-val">
  60. 0
  61. </view>
  62. <view class="hj-item-name">
  63. FL总业绩
  64. </view>
  65. </view>
  66. </view>
  67. <view class="yj-nav flex">
  68. <view class="nav-item" v-for="(navitem,index) in navList" :class="{'active': index == tabIndex}"
  69. @click="navClick(index)">
  70. {{navitem.name}}
  71. </view>
  72. </view>
  73. <view class="yj-info-wrap">
  74. <view class="yj-info-tit flex">
  75. <view class="">
  76. 时间
  77. </view>
  78. <view class="">
  79. 金额(KGC)
  80. </view>
  81. </view>
  82. <swiper class="yj-info-scroll" :current="tabIndex" duration="300">
  83. <swiper-item v-for="item in navList">
  84. <scroll-view scroll-y="true" class="yj-info-scroll" @scrolltolower="loadMore">
  85. <view v-for="itemt in item.list" class="">
  86. <view class="flex yj-info">
  87. <view class="">
  88. {{itemt.time}}
  89. </view>
  90. <view class="">
  91. {{itemt.val}}
  92. </view>
  93. </view>
  94. </view>
  95. <uni-load-more :status="item.loadingType"></uni-load-more>
  96. </scroll-view>
  97. </swiper-item>
  98. </swiper>
  99. </view>
  100. </view>
  101. </uni-popup>
  102. <uni-popup ref="yeji1" type="center">
  103. <view class="yj-wrap">
  104. <view class="yj-tit">
  105. 我的推荐
  106. </view>
  107. <image src="../../static/img/yj-bg.png" mode="" class="yj-logo"></image>
  108. <view class="yj-info-wrap">
  109. <view class="yj-info-tit flex">
  110. <view class="">
  111. 钱包地址
  112. </view>
  113. <view class="">
  114. 时间
  115. </view>
  116. </view>
  117. <swiper class="yj-info-scroll" :current="tabIndex" duration="300">
  118. <swiper-item v-for="item in navList">
  119. <scroll-view scroll-y="true" class="yj-info-scroll" @scrolltolower="loadMore">
  120. <view v-for="itemt in item.list" class="">
  121. <view class="flex yj-info">
  122. <view class="">
  123. {{itemt.time}}
  124. </view>
  125. <view class="">
  126. {{itemt.val}}
  127. </view>
  128. </view>
  129. </view>
  130. <uni-load-more :status="item.loadingType"></uni-load-more>
  131. </scroll-view>
  132. </swiper-item>
  133. </swiper>
  134. </view>
  135. </view>
  136. </uni-popup>
  137. </view>
  138. </template>
  139. <script>
  140. import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue';
  141. export default {
  142. data() {
  143. return {
  144. navList: [{
  145. name: '直推业绩',
  146. page: 1,
  147. limit: 8,
  148. list: [],
  149. loaded: false,
  150. loadingType: 'more'
  151. },
  152. {
  153. name: '间推业绩',
  154. page: 1,
  155. limit: 8,
  156. list: [],
  157. loaded: false,
  158. loadingType: 'more'
  159. }
  160. ],
  161. tabIndex: 0,
  162. }
  163. },
  164. methods: {
  165. qrR() {
  166. },
  167. opneYj() {
  168. this.$refs.yeji.open()
  169. },
  170. button(){
  171. this.$refs.yeji1.open()
  172. },
  173. // 点击切换
  174. navClick(index) {
  175. this.tabIndex = index
  176. },
  177. // 下滑到底加载更多
  178. loadMore() {
  179. let obj = this
  180. let index = obj.tabIndex
  181. let navItem = obj.navList[index]
  182. if (navItem.loadingType == 'noMore' || navItem.loadingType == 'loading') {
  183. return
  184. }
  185. navItem.loadingType = 'loading'
  186. console.log('jiaz')
  187. }
  188. }
  189. }
  190. </script>
  191. <style lang="scss" scoped>
  192. page {
  193. background-color: #00050f;
  194. }
  195. .top-tit {
  196. text-align: center;
  197. font-size: 160rpx;
  198. font-family: zihun164hao-fangyuehei;
  199. font-weight: 400;
  200. font-style: italic;
  201. color: #08EDE7;
  202. line-height: 168rpx;
  203. margin-bottom: 62rpx;
  204. }
  205. .box-top {
  206. display: flex;
  207. padding: 36rpx 41rpx 72rpx 41rpx;
  208. .bg3 {
  209. width: 56rpx;
  210. height: 62rpx;
  211. image {
  212. width: 100%;
  213. height: 100%;
  214. }
  215. }
  216. .two {
  217. margin-left: 36rpx;
  218. image {
  219. width: 100%;
  220. height: 100%;
  221. }
  222. }
  223. }
  224. .center-wrap {
  225. width: 680rpx;
  226. height: 891rpx;
  227. margin: auto;
  228. position: relative;
  229. .tj-bg {
  230. position: absolute;
  231. width: 680rpx;
  232. height: 891rpx;
  233. }
  234. .center-tit {
  235. width: 680rpx;
  236. height: 102rpx;
  237. line-height: 102rpx;
  238. text-align: center;
  239. font-size: 44rpx;
  240. font-family: zihun100hao-fangfangxianfengti;
  241. font-weight: 900;
  242. color: #08EDE7;
  243. position: absolute;
  244. top: 0;
  245. }
  246. .tj-jl {
  247. text-align: center;
  248. width: 61rpx;
  249. height: 110rpx;
  250. background: #08EDE7;
  251. border-radius: 10rpx 0px 0px 10rpx;
  252. position: absolute;
  253. right: 0;
  254. top: 170rpx;
  255. font-size: 32rpx;
  256. font-family: PingFang SC;
  257. font-weight: bold;
  258. color: #001337;
  259. // line-height: 40rpx;
  260. flex-direction: column;
  261. justify-content: center;
  262. }
  263. .tj-qr {
  264. width: 383rpx;
  265. height: 383rpx;
  266. background: #FFFFFF;
  267. border: 5rpx solid #08EDE7;
  268. position: absolute;
  269. right: 0;
  270. left: 0;
  271. top: 204rpx;
  272. margin: auto;
  273. }
  274. .tj-lj-tit {
  275. width: 680rpx;
  276. text-align: center;
  277. font-size: 31rpx;
  278. font-family: PingFang SC;
  279. font-weight: bold;
  280. color: #FFFFFF;
  281. line-height: 103px;
  282. position: absolute;
  283. top: 560rpx;
  284. }
  285. .tj-lj {
  286. width: 636rpx;
  287. height: 67rpx;
  288. background: #233B75;
  289. border: 2rpx solid #08EDE7;
  290. border-radius: 10rpx;
  291. position: absolute;
  292. bottom: 124rpx;
  293. right: 0;
  294. left: 0;
  295. margin: auto;
  296. .lj-tit {
  297. width: 148rpx;
  298. flex-shrink: 0;
  299. text-align: right;
  300. font-size: 28rpx;
  301. font-family: PingFang SC;
  302. font-weight: bold;
  303. color: #FFFFFF;
  304. line-height: 67rpx;
  305. }
  306. .lj-info {
  307. width: 148rpx;
  308. flex-grow: 1;
  309. text-align: right;
  310. font-size: 28rpx;
  311. font-family: PingFang SC;
  312. font-weight: bold;
  313. color: #FFFFFF;
  314. line-height: 67rpx;
  315. }
  316. .lj-copy {
  317. flex-shrink: 0;
  318. width: 148rpx;
  319. font-size: 28rpx;
  320. font-family: PingFang SC;
  321. font-weight: bold;
  322. color: #08EDE7;
  323. line-height: 67rpx;
  324. // opacity: 0.75;
  325. }
  326. }
  327. }
  328. .tj-look {
  329. width: 450rpx;
  330. height: 75rpx;
  331. background: linear-gradient(0deg, #FF7206, #FFDD7E);
  332. box-shadow: 0px 2rpx 8rpx 0px rgba(207, 126, 57, 0.7);
  333. border-radius: 38rpx;
  334. margin: 55rpx auto 0;
  335. font-size: 36rpx;
  336. font-family: zihun164hao-fangyuehei;
  337. font-weight: bold;
  338. color: #FFFFFF;
  339. line-height: 75rpx;
  340. text-align: center;
  341. }
  342. .yj-wrap {
  343. width: 680rpx;
  344. height: 854rpx;
  345. background: linear-gradient(180deg, #254FAB 0%, #230A8E 100%);
  346. border-radius: 20rpx;
  347. .yj-logo {
  348. display: block;
  349. width: 326rpx;
  350. height: 16rpx;
  351. margin: auto;
  352. border-radius: 20px;
  353. }
  354. .yj-tit {
  355. width: 100%;
  356. padding-top: 60rpx;
  357. padding-bottom: 15rpx;
  358. text-align: center;
  359. font-size: 46rpx;
  360. font-family: zihun100hao-fangfangxianfengti;
  361. font-weight: bold;
  362. color: #FFFFFF;
  363. // line-height: 38px;
  364. }
  365. .yj-hj {
  366. width: 653rpx;
  367. height: 147rpx;
  368. background: #233B75;
  369. border: 2rpx solid #08EDE7;
  370. border-radius: 10rpx;
  371. margin: 40rpx auto;
  372. .yj-hj-item {
  373. width: 50%;
  374. text-align: center;
  375. font-size: 28rpx;
  376. font-family: PingFang SC;
  377. font-weight: bold;
  378. color: #FFFFFF;
  379. line-height: 38rpx;
  380. // opacity: 0.7;
  381. .hj-item-val {
  382. font-size: 41rpx;
  383. padding-bottom: 10rpx;
  384. font-family: PingFang SC;
  385. font-weight: bold;
  386. color: #08EDE7;
  387. line-height: 38rpx;
  388. }
  389. }
  390. }
  391. .yj-nav {
  392. width: 582rpx;
  393. border-bottom: 2rpx solid #fff;
  394. margin: auto;
  395. font-size: 28rpx;
  396. font-family: PingFang SC;
  397. font-weight: bold;
  398. color: #97a1d2;
  399. line-height: 38rpx;
  400. .nav-item {
  401. padding: 20rpx 40rpx;
  402. }
  403. .active {
  404. color: #fff;
  405. }
  406. }
  407. }
  408. .yj-info-wrap {
  409. height: 362rpx;
  410. width: 582rpx;
  411. margin: auto;
  412. // background-color: #fff;
  413. .yj-info-tit {
  414. font-size: 28rpx;
  415. font-family: PingFang SC;
  416. font-weight: bold;
  417. color: #FFFFFF;
  418. line-height: 38rpx;
  419. justify-content: space-between;
  420. padding: 10rpx 0;
  421. }
  422. .yj-info-scroll {
  423. // touch-action: none;
  424. width: 582rpx;
  425. height: 320rpx;
  426. // background-color: red;
  427. .yj-info {
  428. font-size: 28rpx;
  429. font-family: PingFang SC;
  430. font-weight: bold;
  431. color: #FFFFFF;
  432. line-height: 38rpx;
  433. }
  434. }
  435. }
  436. </style>