share.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  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. loaded: false,
  154. loadingType: 'more'
  155. },
  156. {
  157. name: '间推业绩',
  158. page: 1,
  159. limit: 8,
  160. list: [],
  161. loaded: false,
  162. loadingType: 'more'
  163. }
  164. ],
  165. tabIndex: 0,
  166. }
  167. },
  168. methods: {
  169. qrR() {
  170. },
  171. opneYj() {
  172. this.$refs.yeji.open()
  173. },
  174. // 点击切换
  175. navClick(index) {
  176. this.tabIndex = index
  177. },
  178. // 下滑到底加载更多
  179. loadMore() {
  180. let obj = this
  181. let index = obj.tabIndex
  182. let navItem = obj.navList[index]
  183. if(navItem.loadingType == 'noMore' || navItem.loadingType == 'loading') {
  184. return
  185. }
  186. navItem.loadingType = 'loading'
  187. console.log('jiaz')
  188. }
  189. }
  190. }
  191. </script>
  192. <style lang="scss" scoped>
  193. page {
  194. background-color: #00050f;
  195. }
  196. .top-tit {
  197. text-align: center;
  198. font-size: 160rpx;
  199. font-family: zihun164hao-fangyuehei;
  200. font-weight: 400;
  201. font-style: italic;
  202. color: #08EDE7;
  203. line-height: 168rpx;
  204. margin-bottom: 62rpx;
  205. }
  206. .box-top{
  207. display: flex;
  208. padding: 36rpx 41rpx 72rpx 41rpx;
  209. .bg3{
  210. width: 56rpx;
  211. height: 62rpx;
  212. image {
  213. width: 100%;
  214. height: 100%;
  215. }
  216. }
  217. .two{
  218. margin-left: 36rpx;
  219. image {
  220. width: 100%;
  221. height: 100%;
  222. }
  223. }
  224. }
  225. .center-wrap {
  226. width: 680rpx;
  227. height: 891rpx;
  228. margin: auto;
  229. position: relative;
  230. .tj-bg {
  231. position: absolute;
  232. width: 680rpx;
  233. height: 891rpx;
  234. }
  235. .center-tit {
  236. width: 680rpx;
  237. height: 102rpx;
  238. line-height: 102rpx;
  239. text-align: center;
  240. font-size: 44rpx;
  241. font-family: zihun100hao-fangfangxianfengti;
  242. font-weight: 900;
  243. color: #08EDE7;
  244. position: absolute;
  245. top: 0;
  246. }
  247. .tj-jl {
  248. text-align: center;
  249. width: 61rpx;
  250. height: 110rpx;
  251. background: #08EDE7;
  252. border-radius: 10rpx 0px 0px 10rpx;
  253. position: absolute;
  254. right: 0;
  255. top: 170rpx;
  256. font-size: 32rpx;
  257. font-family: PingFang SC;
  258. font-weight: bold;
  259. color: #001337;
  260. // line-height: 40rpx;
  261. flex-direction: column;
  262. justify-content: center;
  263. }
  264. .tj-qr {
  265. width: 383rpx;
  266. height: 383rpx;
  267. background: #FFFFFF;
  268. border: 5rpx solid #08EDE7;
  269. position: absolute;
  270. right: 0;
  271. left: 0;
  272. top: 204rpx;
  273. margin: auto;
  274. }
  275. .tj-lj-tit {
  276. width: 680rpx;
  277. text-align: center;
  278. font-size: 31rpx;
  279. font-family: PingFang SC;
  280. font-weight: bold;
  281. color: #FFFFFF;
  282. line-height: 103px;
  283. position: absolute;
  284. top: 560rpx;
  285. }
  286. .tj-lj {
  287. width: 636rpx;
  288. height: 67rpx;
  289. background: #233B75;
  290. border: 2rpx solid #08EDE7;
  291. border-radius: 10rpx;
  292. position: absolute;
  293. bottom: 124rpx;
  294. right: 0;
  295. left: 0;
  296. margin: auto;
  297. .lj-tit {
  298. width: 148rpx;
  299. flex-shrink: 0;
  300. text-align: right;
  301. font-size: 28rpx;
  302. font-family: PingFang SC;
  303. font-weight: bold;
  304. color: #FFFFFF;
  305. line-height: 67rpx;
  306. }
  307. .lj-info {
  308. width: 148rpx;
  309. flex-grow: 1;
  310. text-align: right;
  311. font-size: 28rpx;
  312. font-family: PingFang SC;
  313. font-weight: bold;
  314. color: #FFFFFF;
  315. line-height: 67rpx;
  316. }
  317. .lj-copy {
  318. flex-shrink: 0;
  319. width: 148rpx;
  320. font-size: 28rpx;
  321. font-family: PingFang SC;
  322. font-weight: bold;
  323. color: #08EDE7;
  324. line-height: 67rpx;
  325. // opacity: 0.75;
  326. }
  327. }
  328. }
  329. .tj-look {
  330. width: 450rpx;
  331. height: 75rpx;
  332. background: linear-gradient(0deg, #FF7206, #FFDD7E);
  333. box-shadow: 0px 2rpx 8rpx 0px rgba(207, 126, 57, 0.7);
  334. border-radius: 38rpx;
  335. margin: 55rpx auto 0;
  336. font-size: 36rpx;
  337. font-family: zihun164hao-fangyuehei;
  338. font-weight: bold;
  339. color: #FFFFFF;
  340. line-height: 75rpx;
  341. text-align: center;
  342. }
  343. .yj-wrap {
  344. width: 680rpx;
  345. height: 854rpx;
  346. background: linear-gradient(180deg, #254FAB 0%, #230A8E 100%);
  347. border-radius: 20rpx;
  348. .yj-logo {
  349. display: block;
  350. width: 326rpx;
  351. height: 16rpx;
  352. margin: auto;
  353. border-radius: 20px;
  354. }
  355. .yj-tit {
  356. width: 100%;
  357. padding-top: 60rpx;
  358. padding-bottom: 15rpx;
  359. text-align: center;
  360. font-size: 46rpx;
  361. font-family: zihun100hao-fangfangxianfengti;
  362. font-weight: bold;
  363. color: #FFFFFF;
  364. // line-height: 38px;
  365. }
  366. .yj-hj {
  367. width: 653rpx;
  368. height: 147rpx;
  369. background: #233B75;
  370. border: 2rpx solid #08EDE7;
  371. border-radius: 10rpx;
  372. margin: 40rpx auto;
  373. .yj-hj-item {
  374. width: 50%;
  375. text-align: center;
  376. font-size: 28rpx;
  377. font-family: PingFang SC;
  378. font-weight: bold;
  379. color: #FFFFFF;
  380. line-height: 38rpx;
  381. // opacity: 0.7;
  382. .hj-item-val {
  383. font-size: 41rpx;
  384. padding-bottom: 10rpx;
  385. font-family: PingFang SC;
  386. font-weight: bold;
  387. color: #08EDE7;
  388. line-height: 38rpx;
  389. }
  390. }
  391. }
  392. .yj-nav {
  393. width: 582rpx;
  394. border-bottom: 2rpx solid #fff;
  395. margin: auto;
  396. font-size: 28rpx;
  397. font-family: PingFang SC;
  398. font-weight: bold;
  399. color: #97a1d2;
  400. line-height: 38rpx;
  401. .nav-item {
  402. padding: 20rpx 40rpx;
  403. }
  404. .active {
  405. color: #fff;
  406. }
  407. }
  408. }
  409. .yj-info-wrap {
  410. height: 362rpx;
  411. width: 582rpx;
  412. margin: auto;
  413. // background-color: #fff;
  414. .yj-info-tit {
  415. font-size: 28rpx;
  416. font-family: PingFang SC;
  417. font-weight: bold;
  418. color: #FFFFFF;
  419. line-height: 38rpx;
  420. justify-content: space-between;
  421. padding: 10rpx 0;
  422. }
  423. .yj-info-scroll {
  424. // touch-action: none;
  425. width: 582rpx;
  426. height: 320rpx;
  427. // background-color: red;
  428. .yj-info {
  429. font-size: 28rpx;
  430. font-family: PingFang SC;
  431. font-weight: bold;
  432. color: #FFFFFF;
  433. line-height: 38rpx;
  434. }
  435. }
  436. }
  437. </style>