share.vue 8.2 KB

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