node.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. <template>
  2. <view class="center">
  3. <scroll-view class="box" scroll-y="true" >
  4. <view class="bg">
  5. <image src="../../static/img/rengou.png" mode=""></image>
  6. </view>
  7. <view class="rengou">
  8. 1、LALANFT节点认购资金{{list.buy_price*1}}U。<br>
  9. 2、认同LALA节点合伙人事业,志愿从事和支持LALANFT平台事业的发展。<br>
  10. 3、节点合伙人采取合伙人制度,全球主节点21个,采取分期认购方式。<br>
  11. <span class="line">每期节点限购49份,每份享受节点1%的</span>股权分红。
  12. </view>
  13. <view class="quanyi">
  14. 1、每份获得10万枚LALA NFT平台通证,每天1%释放。<br>
  15. 2、获得1T FIL矿机的云算力挖矿权益,有效期540天,技术服务费30%。<br>
  16. 3、获得LALA社区A2级别权限,享受A2级别社区权利。<br>
  17. 4、享受平台门票50%加权分红。<br>
  18. 5、享受平台手续费50%加权分红。<br>
  19. </view>
  20. <view class="rule">
  21. 1、LALA NFT平台节点合伙人共分21期,即21个主节点。<br>
  22. 2、LALA节点每期认购满额后,自然开启第2期节点认购。直至21个节点认购满结束。<br>
  23. 3、个人可以一次多份参与认购,也可参与多个节点认购,每份节点认购享受的权益相同。<br>
  24. </view>
  25. <view class="jiedian">
  26. <view class="mun">
  27. {{mun}}
  28. </view>
  29. <view class="font">
  30. 认购份数
  31. </view>
  32. <view class="jdt">
  33. <u-line-progress :show-percent="false" inactive-color="#BBBBBB" active-color="#29F3FD" :percent="zuiduo"></u-line-progress>
  34. </view>
  35. <view class="yue-num">
  36. 仅剩{{zuiduo}}%
  37. </view>
  38. </view>
  39. <view class="btn" @click="buy()">
  40. 立即认购
  41. </view>
  42. </scroll-view>
  43. <u-popup v-model="show1" mode="center" width="548rpx" border-radius="14">
  44. <view class="psw-wrapper">
  45. <view class="psw-title">请输入支付密码</view>
  46. <input type="password" v-model="password" class="psw-ipt" />
  47. <view class="psw-btn">
  48. <text @click="cancel">取消</text>
  49. <text class="psw-qd" @click="pswQd">确定</text>
  50. </view>
  51. </view>
  52. </u-popup>
  53. </view>
  54. </template>
  55. <script>
  56. import { getPoint,buyPoint } from '@/api/set.js'
  57. export default {
  58. data() {
  59. return {
  60. mun: 1,
  61. zuiduo:49,
  62. id:'',
  63. list:'',
  64. show1: false, //支付密码
  65. password: '',
  66. }
  67. },
  68. onLoad() {
  69. this.loadData()
  70. },
  71. methods: {
  72. async loadData() {
  73. getPoint().then(({data}) => {
  74. console.log(data)
  75. this.list = data[0]
  76. this.zuiduo = (data[0].stock * 1 / data[0].all_stock) * 100
  77. this.id = data[0].id
  78. })
  79. },
  80. buy(){
  81. this.show1 = true
  82. },
  83. cancel() {
  84. this.password = '';
  85. this.show1 = false;
  86. },
  87. pswQd() {
  88. const obj = this
  89. buyPoint(
  90. {
  91. trade_psw: this.password,
  92. num: this.mun
  93. },
  94. this.id
  95. )
  96. .then(e => {
  97. this.password = '';
  98. this.show1 = false;
  99. this.$api.msg("购买节点成功");
  100. })
  101. .catch(e => {
  102. this.password = '';
  103. this.show1 = false;
  104. console.log(e);
  105. });
  106. },
  107. }
  108. }
  109. </script>
  110. <style lang="scss">
  111. page {
  112. height: 100%;
  113. }
  114. .center {
  115. height: 0;
  116. min-height: 100%;
  117. }
  118. .box {
  119. position: relative;
  120. width: 100%;
  121. height: 100%;
  122. .bg {
  123. position: absolute;
  124. top: 0;
  125. right: 0;
  126. left: 0;
  127. width: 100%;
  128. height: 3456rpx;
  129. image {
  130. width: 100%;
  131. height: 3456rpx;
  132. }
  133. }
  134. .rengou {
  135. position: relative;
  136. z-index: 10;
  137. padding-top: 1140rpx;
  138. margin: 0 auto;
  139. width: 460rpx;
  140. font-size: 24rpx;
  141. line-height: 36rpx;
  142. font-family: PingFang SC;
  143. font-weight: bold;
  144. color: #FFFFFF;
  145. height: 1400rpx;
  146. }
  147. .quanyi {
  148. position: relative;
  149. z-index: 10;
  150. // padding-top: 254rpx;
  151. // margin: 0 auto;
  152. margin: 240rpx auto 0;
  153. width: 460rpx;
  154. font-size: 24rpx;
  155. line-height: 36rpx;
  156. font-family: PingFang SC;
  157. font-weight: bold;
  158. color: #FFFFFF;
  159. height: 288rpx;
  160. }
  161. .rule {
  162. position: relative;
  163. z-index: 10;
  164. // padding-top: 264rpx;
  165. // margin: 0 auto;
  166. margin: 264rpx auto 0;
  167. width: 460rpx;
  168. font-size: 24rpx;
  169. line-height: 36rpx;
  170. font-family: PingFang SC;
  171. font-weight: bold;
  172. color: #FFFFFF;
  173. height: 252rpx;
  174. }
  175. .jiedian {
  176. text-align: center;
  177. position: relative;
  178. z-index: 10;
  179. // padding-top: 280rpx;
  180. // margin: 0 auto;
  181. margin: 300rpx auto 0;
  182. width: 460rpx;
  183. color: #FFFFFF;
  184. height: 206rpx;
  185. line-height: 1;
  186. .mun {
  187. font-size: 50rpx;
  188. font-family: PingFang SC;
  189. font-weight: bold;
  190. }
  191. .font {
  192. margin-top: 10rpx;
  193. }
  194. .jdt {
  195. // padding: 20rpx;
  196. margin: 20rpx auto 0;
  197. width: 300rpx;
  198. height: auto;
  199. }
  200. .yue-num {
  201. font-size: 20rpx;
  202. color: #29F3FD;
  203. margin-top: 20rpx;
  204. }
  205. }
  206. .btn {
  207. position: relative;
  208. margin: 120rpx auto 0;
  209. z-index: 10;
  210. width: 514rpx;
  211. height: 80rpx;
  212. background: #29F3FD;
  213. border-radius: 40px;
  214. text-align: center;
  215. line-height: 80rpx;
  216. font-size: 32rpx;
  217. font-family: PingFang SC;
  218. font-weight: bold;
  219. color: #051D38;
  220. }
  221. }
  222. .line {
  223. display: inline-block;
  224. padding-left: 20rpx;
  225. }
  226. .psw-wrapper {
  227. width: 548rpx;
  228. height: 344rpx;
  229. background-color: #ffffff;
  230. .psw-title {
  231. width: 100%;
  232. font-size: 35rpx;
  233. padding: 43rpx 0 49rpx;
  234. text-align: center;
  235. font-weight: 800;
  236. }
  237. .psw-ipt {
  238. display: block;
  239. background-color: #dce3ed;
  240. height: 90rpx;
  241. width: 464rpx;
  242. padding-left: 30rpx;
  243. margin: 0 auto;
  244. font-size: 80rpx;
  245. }
  246. .psw-btn text {
  247. display: inline-block;
  248. text-align: center;
  249. width: 50%;
  250. padding-top: 29rpx;
  251. font-size: 35rpx;
  252. }
  253. .psw-qd {
  254. color: #45969b;
  255. }
  256. }
  257. </style>