share.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. <template>
  2. <view class="content">
  3. <view class="box-top">
  4. <view class="bg3">
  5. <image src="../../static/index/img14.png" mode=""></image>
  6. </view>
  7. <view class="bg3 two">
  8. <image src="../../static/index/img08.png" mode=""></image>
  9. </view>
  10. </view>
  11. <view class="top-tit">
  12. 邀请好友
  13. 变成壕友
  14. </view>
  15. <view class="center-wrap">
  16. <image src="../../static/img/tj-bg.png" mode="" class="tj-bg"></image>
  17. <view class="center-tit">
  18. 邀请地址
  19. </view>
  20. <view class="tj-jl flex" @click="opneYj">
  21. <text>业</text>
  22. <text>绩</text>
  23. </view>
  24. <view class="tj-qr">
  25. <tki-qrcode
  26. :cid="cid"
  27. ref="qrcode"
  28. :val="val"
  29. :size="size"
  30. :unit="unit"
  31. :background="background"
  32. :foreground="foreground"
  33. :pdground="pdground"
  34. :iconSize="iconSize"
  35. :lv="lv"
  36. :onval="onval"
  37. :loadMake="loadMake"
  38. :usingComponents="usingComponents"
  39. @result="qrR"
  40. />
  41. </view>
  42. <view class="tj-lj-tit">
  43. 【链接地址】
  44. </view>
  45. <view class="tj-lj flex">
  46. <view class="lj-tit">
  47. 邀请链接:
  48. </view>
  49. <view class="lj-info clamp">
  50. 山上有座庙,庙里有个老和尚和小和尚
  51. </view>
  52. <view class="lj-copy">
  53. 复制链接
  54. </view>
  55. </view>
  56. </view>
  57. <view class="tj-look">
  58. 查看推荐
  59. </view>
  60. <uni-popup ref="yeji" type="center">
  61. <view class="yj-wrap">
  62. <view class="yj-tit">
  63. 收益明细
  64. </view>
  65. <image src="../../static/img/yj-bg.png" mode="" class="yj-logo"></image>
  66. <view class="yj-hj flex">
  67. <view class="yj-hj-item">
  68. <view class="hj-item-val">
  69. 0
  70. </view>
  71. <view class="hj-item-name">
  72. KGC总业绩
  73. </view>
  74. </view>
  75. <view class="yj-hj-item">
  76. <view class="hj-item-val">
  77. 0
  78. </view>
  79. <view class="hj-item-name">
  80. FL总业绩
  81. </view>
  82. </view>
  83. </view>
  84. <view class="yj-nav flex">
  85. <view class="nav-item" v-for="(navitem,index) in navList" :class="{'active': index == tabIndex}" @click="navClick(index)">
  86. {{navitem.name}}
  87. </view>
  88. </view>
  89. <view class="yj-info-wrap">
  90. <view class="yj-info-tit flex">
  91. <view class="">
  92. 时间
  93. </view>
  94. <view class="">
  95. 金额(KGC)
  96. </view>
  97. </view>
  98. <swiper class="yj-info-scroll" :current="tabIndex" duration="300">
  99. <swiper-item v-for="item in navList">
  100. <scroll-view scroll-y="true" class="yj-info-scroll" @scrolltolower="loadMore">
  101. <view v-for="itemt in item.list" class="">
  102. <view class="flex yj-info">
  103. <view class="">
  104. {{itemt.time}}
  105. </view>
  106. <view class="">
  107. {{itemt.val}}
  108. </view>
  109. </view>
  110. </view>
  111. <uni-load-more :status="item.loadingType"></uni-load-more>
  112. </scroll-view>
  113. </swiper-item>
  114. </swiper>
  115. </view>
  116. </view>
  117. </uni-popup>
  118. </view>
  119. </template>
  120. <script>
  121. import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue';
  122. export default {
  123. data() {
  124. return {
  125. cid: 'tki-qrcode-canvas', //canvasId,页面存在多个二维码组件时需设置不同的ID
  126. size: 378, //生成的二维码大小
  127. unit: 'upx', //大小单位尺寸
  128. show: true,//默认使用组件中的image标签显示二维码
  129. val: '强儿、岚儿都是我儿', //要生成的内容
  130. background: '#ffffff', //二维码背景色
  131. foreground: '#333333', //二维码前景色
  132. pdground: '#333333', //二维码角标色
  133. icon: '', //二维码图标URL(必须是本地图片,网络图需要先下载至本地)
  134. iconSize: 40, //二维码图标大小
  135. lv: 3, //容错级别
  136. onval: true, //监听val值变化自动重新生成二维码
  137. loadMake: true, //组件初始化完成后自动生成二维码,val需要有值
  138. usingComponents: false, //是否使用了自定义组件模式(主要是为了修复非自定义组件模式时 v-if 无法生成二维码的问题)
  139. showLoading: false, //是否显示loading
  140. loadingText: '二维码生成中', //loading文字
  141. src: '', // 二维码生成后的图片地址或base64
  142. ratio: 1, //页面比例用于计算
  143. ctxSrc: '', //要显示的图片
  144. loading: true,//是否载入图片中
  145. canHeight: '',//画布高度
  146. canWeidth: '',//画布宽度
  147. navList: [
  148. {
  149. name: '直推业绩',
  150. page: 1,
  151. limit: 8,
  152. list: [
  153. {
  154. time: 2020-1-10,
  155. val: 100
  156. },
  157. {
  158. time: 2020-1-10,
  159. val: 100
  160. },
  161. {
  162. time: 2020-1-10,
  163. val: 100
  164. },
  165. {
  166. time: 2020-1-10,
  167. val: 100
  168. },
  169. {
  170. time: 2020-1-10,
  171. val: 100
  172. },
  173. {
  174. time: 2020-1-10,
  175. val: 100
  176. },
  177. {
  178. time: 2020-1-10,
  179. val: 100
  180. },
  181. {
  182. time: 2020-1-10,
  183. val: 100
  184. },
  185. {
  186. time: 2020-1-10,
  187. val: 100
  188. },
  189. {
  190. time: 2020-1-10,
  191. val: 100
  192. },
  193. {
  194. time: 2020-1-10,
  195. val: 100
  196. }
  197. ],
  198. loaded: false,
  199. loadingType: 'more'
  200. },
  201. {
  202. name: '间推业绩',
  203. page: 1,
  204. limit: 8,
  205. list: [
  206. {
  207. time: 2020-1-10,
  208. val: 200
  209. },
  210. {
  211. time: 2020-1-10,
  212. val: 200
  213. },
  214. {
  215. time: 2020-1-10,
  216. val: 200
  217. }
  218. ],
  219. loaded: false,
  220. loadingType: 'more'
  221. }
  222. ],
  223. tabIndex: 0,
  224. }
  225. },
  226. methods: {
  227. qrR() {
  228. },
  229. opneYj() {
  230. this.$refs.yeji.open()
  231. },
  232. // 点击切换
  233. navClick(index) {
  234. this.tabIndex = index
  235. },
  236. // 下滑到底加载更多
  237. loadMore() {
  238. let obj = this
  239. let index = obj.tabIndex
  240. let navItem = obj.navList[index]
  241. if(navItem.loadingType == 'noMore' || navItem.loadingType == 'loading') {
  242. return
  243. }
  244. navItem.loadingType = 'loading'
  245. console.log('jiaz')
  246. }
  247. }
  248. }
  249. </script>
  250. <style lang="scss" scoped>
  251. page {
  252. background-color: #00050f;
  253. }
  254. .top-tit {
  255. text-align: center;
  256. font-size: 160rpx;
  257. font-family: zihun164hao-fangyuehei;
  258. font-weight: 400;
  259. font-style: italic;
  260. color: #08EDE7;
  261. line-height: 168rpx;
  262. margin-bottom: 62rpx;
  263. }
  264. .box-top{
  265. display: flex;
  266. padding: 36rpx 41rpx 72rpx 41rpx;
  267. .bg3{
  268. width: 56rpx;
  269. height: 62rpx;
  270. image {
  271. width: 100%;
  272. height: 100%;
  273. }
  274. }
  275. .two{
  276. margin-left: 36rpx;
  277. image {
  278. width: 100%;
  279. height: 100%;
  280. }
  281. }
  282. }
  283. .center-wrap {
  284. width: 680rpx;
  285. height: 891rpx;
  286. margin: auto;
  287. position: relative;
  288. .tj-bg {
  289. position: absolute;
  290. width: 680rpx;
  291. height: 891rpx;
  292. }
  293. .center-tit {
  294. width: 680rpx;
  295. height: 102rpx;
  296. line-height: 102rpx;
  297. text-align: center;
  298. font-size: 44rpx;
  299. font-family: zihun100hao-fangfangxianfengti;
  300. font-weight: 900;
  301. color: #08EDE7;
  302. position: absolute;
  303. top: 0;
  304. }
  305. .tj-jl {
  306. text-align: center;
  307. width: 61rpx;
  308. height: 110rpx;
  309. background: #08EDE7;
  310. border-radius: 10rpx 0px 0px 10rpx;
  311. position: absolute;
  312. right: 0;
  313. top: 170rpx;
  314. font-size: 32rpx;
  315. font-family: PingFang SC;
  316. font-weight: bold;
  317. color: #001337;
  318. // line-height: 40rpx;
  319. flex-direction: column;
  320. justify-content: center;
  321. }
  322. .tj-qr {
  323. width: 383rpx;
  324. height: 383rpx;
  325. background: #FFFFFF;
  326. border: 5rpx solid #08EDE7;
  327. position: absolute;
  328. right: 0;
  329. left: 0;
  330. top: 204rpx;
  331. margin: auto;
  332. }
  333. .tj-lj-tit {
  334. width: 680rpx;
  335. text-align: center;
  336. font-size: 31rpx;
  337. font-family: PingFang SC;
  338. font-weight: bold;
  339. color: #FFFFFF;
  340. line-height: 103px;
  341. position: absolute;
  342. top: 550rpx;
  343. }
  344. .tj-lj {
  345. width: 636rpx;
  346. height: 67rpx;
  347. background: #233B75;
  348. border: 2rpx solid #08EDE7;
  349. border-radius: 10rpx;
  350. position: absolute;
  351. bottom: 124rpx;
  352. right: 0;
  353. left: 0;
  354. margin: auto;
  355. .lj-tit {
  356. width: 148rpx;
  357. flex-shrink: 0;
  358. text-align: right;
  359. font-size: 28rpx;
  360. font-family: PingFang SC;
  361. font-weight: bold;
  362. color: #FFFFFF;
  363. line-height: 67rpx;
  364. }
  365. .lj-info {
  366. width: 148rpx;
  367. flex-grow: 1;
  368. text-align: right;
  369. font-size: 28rpx;
  370. font-family: PingFang SC;
  371. font-weight: bold;
  372. color: #FFFFFF;
  373. line-height: 67rpx;
  374. }
  375. .lj-copy {
  376. flex-shrink: 0;
  377. width: 148rpx;
  378. font-size: 28rpx;
  379. font-family: PingFang SC;
  380. font-weight: bold;
  381. color: #08EDE7;
  382. line-height: 67rpx;
  383. // opacity: 0.75;
  384. }
  385. }
  386. }
  387. .tj-look {
  388. width: 450rpx;
  389. height: 75rpx;
  390. background: linear-gradient(0deg, #FF7206, #FFDD7E);
  391. box-shadow: 0px 2rpx 8rpx 0px rgba(207, 126, 57, 0.7);
  392. border-radius: 38rpx;
  393. margin: 55rpx auto 0;
  394. font-size: 36rpx;
  395. font-family: zihun164hao-fangyuehei;
  396. font-weight: bold;
  397. color: #FFFFFF;
  398. line-height: 75rpx;
  399. text-align: center;
  400. }
  401. .yj-wrap {
  402. width: 680rpx;
  403. height: 854rpx;
  404. background: linear-gradient(180deg, #254FAB 0%, #230A8E 100%);
  405. border-radius: 20rpx;
  406. .yj-logo {
  407. display: block;
  408. width: 326rpx;
  409. height: 16rpx;
  410. margin: auto;
  411. border-radius: 20px;
  412. }
  413. .yj-tit {
  414. width: 100%;
  415. padding-top: 60rpx;
  416. padding-bottom: 15rpx;
  417. text-align: center;
  418. font-size: 46rpx;
  419. font-family: zihun100hao-fangfangxianfengti;
  420. font-weight: bold;
  421. color: #FFFFFF;
  422. // line-height: 38px;
  423. }
  424. .yj-hj {
  425. width: 653rpx;
  426. height: 147rpx;
  427. background: #233B75;
  428. border: 2rpx solid #08EDE7;
  429. border-radius: 10rpx;
  430. margin: 40rpx auto;
  431. .yj-hj-item {
  432. width: 50%;
  433. text-align: center;
  434. font-size: 28rpx;
  435. font-family: PingFang SC;
  436. font-weight: bold;
  437. color: #FFFFFF;
  438. line-height: 38rpx;
  439. // opacity: 0.7;
  440. .hj-item-val {
  441. font-size: 41rpx;
  442. padding-bottom: 10rpx;
  443. font-family: PingFang SC;
  444. font-weight: bold;
  445. color: #08EDE7;
  446. line-height: 38rpx;
  447. }
  448. }
  449. }
  450. .yj-nav {
  451. width: 582rpx;
  452. border-bottom: 2rpx solid #fff;
  453. margin: auto;
  454. font-size: 28rpx;
  455. font-family: PingFang SC;
  456. font-weight: bold;
  457. color: #97a1d2;
  458. line-height: 38rpx;
  459. .nav-item {
  460. padding: 20rpx 40rpx;
  461. }
  462. .active {
  463. color: #fff;
  464. }
  465. }
  466. }
  467. .yj-info-wrap {
  468. height: 362rpx;
  469. width: 582rpx;
  470. margin: auto;
  471. // background-color: #fff;
  472. .yj-info-tit {
  473. font-size: 28rpx;
  474. font-family: PingFang SC;
  475. font-weight: bold;
  476. color: #FFFFFF;
  477. line-height: 38rpx;
  478. justify-content: space-between;
  479. padding: 10rpx 0;
  480. }
  481. .yj-info-scroll {
  482. // touch-action: none;
  483. width: 582rpx;
  484. height: 320rpx;
  485. // background-color: red;
  486. .yj-info {
  487. font-size: 28rpx;
  488. font-family: PingFang SC;
  489. font-weight: bold;
  490. color: #FFFFFF;
  491. line-height: 38rpx;
  492. }
  493. }
  494. }
  495. </style>