node.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  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、每份投资{{list.buy_price*1}}U,有效直推3人<br>
  9. 2、49份组成一个社区节点<br>
  10. 3、总节点合伙人1024名,每期49人,分21期招募
  11. </view>
  12. <view class="quanyi">
  13. 1、赠送1T FiL矿机1080天标准产币收益,技术服务费30% <br>
  14. 2、赠送LALA积分通证10万枚,每天1%释放。LALA上交易所前每天1%上涨,总100天<br>
  15. 3、享受LALA门票50%合伙人加权分红(扣除销毁后的门票,门票销毁按照市场情况动态调整,系数在10~50%之间)。<br>
  16. 4、享受项目总50%的股权加权分红(包括门票、手续费等)。<br>
  17. 5、享受LALA社区会员A2级别权益。<br>
  18. 6、赠送LALA NFT创世勋章一枚。
  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:0,
  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.zuiduo = this.zuiduo.toFixed(2)
  78. this.id = data[0].id
  79. })
  80. },
  81. buy(){
  82. this.show1 = true
  83. },
  84. cancel() {
  85. this.password = '';
  86. this.show1 = false;
  87. },
  88. pswQd() {
  89. const obj = this
  90. buyPoint(
  91. {
  92. trade_psw: this.password,
  93. num: this.mun
  94. },
  95. this.id
  96. )
  97. .then(e => {
  98. this.password = '';
  99. this.show1 = false;
  100. this.$api.msg("购买节点成功");
  101. })
  102. .catch(e => {
  103. this.password = '';
  104. this.show1 = false;
  105. console.log(e);
  106. });
  107. },
  108. }
  109. }
  110. </script>
  111. <style lang="scss">
  112. page {
  113. height: 100%;
  114. }
  115. .center {
  116. height: 0;
  117. min-height: 100%;
  118. }
  119. .box {
  120. position: relative;
  121. width: 100%;
  122. height: 100%;
  123. .bg {
  124. position: absolute;
  125. top: 0;
  126. right: 0;
  127. left: 0;
  128. width: 100%;
  129. height: 3456rpx;
  130. image {
  131. width: 100%;
  132. height: 3456rpx;
  133. }
  134. }
  135. .rengou {
  136. position: relative;
  137. z-index: 10;
  138. padding-top: 1120rpx;
  139. margin: 0 auto;
  140. width: 460rpx;
  141. font-size: 24rpx;
  142. line-height: 36rpx;
  143. font-family: PingFang SC;
  144. font-weight: bold;
  145. color: #FFFFFF;
  146. height: 1260rpx;
  147. }
  148. .quanyi {
  149. position: relative;
  150. z-index: 10;
  151. // padding-top: 254rpx;
  152. // margin: 0 auto;
  153. margin: 240rpx auto 0;
  154. width: 460rpx;
  155. font-size: 24rpx;
  156. line-height: 36rpx;
  157. font-family: PingFang SC;
  158. font-weight: bold;
  159. color: #FFFFFF;
  160. height: 420rpx;
  161. }
  162. .rule {
  163. position: relative;
  164. z-index: 10;
  165. // padding-top: 264rpx;
  166. // margin: 0 auto;
  167. margin: 264rpx auto 0;
  168. width: 460rpx;
  169. font-size: 24rpx;
  170. line-height: 36rpx;
  171. font-family: PingFang SC;
  172. font-weight: bold;
  173. color: #FFFFFF;
  174. height: 252rpx;
  175. }
  176. .jiedian {
  177. text-align: center;
  178. position: relative;
  179. z-index: 10;
  180. // padding-top: 280rpx;
  181. // margin: 0 auto;
  182. margin: 300rpx auto 0;
  183. width: 460rpx;
  184. color: #FFFFFF;
  185. height: 206rpx;
  186. line-height: 1;
  187. .mun {
  188. font-size: 50rpx;
  189. font-family: PingFang SC;
  190. font-weight: bold;
  191. }
  192. .font {
  193. margin-top: 10rpx;
  194. }
  195. .jdt {
  196. // padding: 20rpx;
  197. margin: 20rpx auto 0;
  198. width: 300rpx;
  199. height: auto;
  200. }
  201. .yue-num {
  202. font-size: 20rpx;
  203. color: #29F3FD;
  204. margin-top: 20rpx;
  205. }
  206. }
  207. .btn {
  208. position: relative;
  209. margin: 120rpx auto 0;
  210. z-index: 10;
  211. width: 514rpx;
  212. height: 80rpx;
  213. background: #29F3FD;
  214. border-radius: 40px;
  215. text-align: center;
  216. line-height: 80rpx;
  217. font-size: 32rpx;
  218. font-family: PingFang SC;
  219. font-weight: bold;
  220. color: #051D38;
  221. }
  222. }
  223. .line {
  224. display: inline-block;
  225. padding-left: 20rpx;
  226. }
  227. .psw-wrapper {
  228. width: 548rpx;
  229. height: 344rpx;
  230. background-color: #ffffff;
  231. .psw-title {
  232. width: 100%;
  233. font-size: 35rpx;
  234. padding: 43rpx 0 49rpx;
  235. text-align: center;
  236. font-weight: 800;
  237. }
  238. .psw-ipt {
  239. display: block;
  240. background-color: #dce3ed;
  241. height: 90rpx;
  242. width: 464rpx;
  243. padding-left: 30rpx;
  244. margin: 0 auto;
  245. font-size: 80rpx;
  246. }
  247. .psw-btn text {
  248. display: inline-block;
  249. text-align: center;
  250. width: 50%;
  251. padding-top: 29rpx;
  252. font-size: 35rpx;
  253. }
  254. .psw-qd {
  255. color: #45969b;
  256. }
  257. }
  258. </style>