share.vue 9.4 KB

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