private.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. <template>
  2. <view class="content">
  3. <top></top>
  4. <view class="main">
  5. <view class="record" @click="openRecord()">
  6. <br />
  7. </view>
  8. <image class="main-bg" src="../../static/img/sm-bg.png" mode=""></image>
  9. <view class="title">恒星私募</view>
  10. <view class="font">私募单价</view>
  11. <view class="num">0.5USDT</view>
  12. <view class="tip-title">【私募相关】</view>
  13. <view class="tip">
  14. 恒星是一个集“元宇宙+NFT卡牌+DeFi+养成/经营/竞技”的加密链上游戏,是一款基于Solidity语言开发的去中心化GameFi应用,首发BSC链,基于银河系元宇宙原型,打造了一个集抽取盲盒开卡牌,NFT交易,LP质押获得收益的链上元宇宙游戏,
  15. 结合区块链的游戏内容,铸成有价值的TCG游戏。
  16. </view>
  17. </view>
  18. <view class="bottom">
  19. <image class="bottom-bg" src="../../static/img/bottom.png" mode=""></image>
  20. <view class="btn" @click="nav()">私募认购</view>
  21. </view>
  22. <uni-popup ref="popup" type="center">
  23. <view class="popup-record">
  24. <view class="record-title">私募记录</view>
  25. <view class="xian"><image src="../../static/img/xian.png" mode=""></image></view>
  26. <view class="record-main-title flex">
  27. <view class="item">认购金额</view>
  28. <view class="item">认购数量</view>
  29. <view class="item">认购时间</view>
  30. </view>
  31. <view class="record-main flex" v-for="(item, index) in 10">
  32. <view class="item">0.5USDT</view>
  33. <view class="item">1HXB</view>
  34. <view class="item">2022.02.10</view>
  35. </view>
  36. </view>
  37. <view class="popup-x" @click="closeRecord()"><image src="../../static/img/x.png" mode=""></image></view>
  38. </uni-popup>
  39. <uni-popup ref="popup1" type="center">
  40. <view class="popup-buy">
  41. <view class="record-title ">私募认购</view>
  42. <view class="xian"><image src="../../static/img/xian.png" mode=""></image></view>
  43. <view class="buy-num">
  44. <view class="shu"></view>
  45. <view class="num-font">
  46. 私募单价:
  47. <text>0.5USDT</text>
  48. </view>
  49. </view>
  50. <view class="buy-num ren-num">
  51. <view class="shu"></view>
  52. <view class="num-font">认购金额</view>
  53. </view>
  54. <view class="buy-input">
  55. <input type="text" class="input" placeholder="请输入认购金额" placeholder-class="inputPlace" v-model="num" value="" />
  56. <view class="unit">USDT</view>
  57. </view>
  58. <view class="buy-tip">可用</view>
  59. <view class="buy-num ren-num">
  60. <view class="shu"></view>
  61. <view class="num-font">认购数量</view>
  62. </view>
  63. <view class="buy-input" style="padding-bottom: 18rpx;">
  64. <view class="input" style="color: #08EDE7;">
  65. 0
  66. </view>
  67. <view class="unit">HXB</view>
  68. </view>
  69. <view class="btn-box">
  70. <view class="btn-left" @click="close()">
  71. 取消
  72. </view>
  73. <view class="btn-right ">
  74. 购买
  75. </view>
  76. </view>
  77. </view>
  78. </uni-popup>
  79. </view>
  80. </template>
  81. <script>
  82. import top from '@/components/top/top.vue';
  83. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  84. export default {
  85. comments: {
  86. top,
  87. uniPopup
  88. },
  89. data() {
  90. return {
  91. num: ''
  92. };
  93. },
  94. methods: {
  95. nav() {
  96. this.$refs.popup1.open();
  97. },
  98. close() {
  99. this.$refs.popup1.close();
  100. },
  101. openRecord() {
  102. this.$refs.popup.open();
  103. },
  104. closeRecord() {
  105. this.$refs.popup.close();
  106. }
  107. }
  108. };
  109. </script>
  110. <style lang="less">
  111. page,
  112. .content {
  113. height: 100%;
  114. background: #000;
  115. }
  116. .main {
  117. position: relative;
  118. width: 680rpx;
  119. height: 962rpx;
  120. margin: 0 auto 0;
  121. .main-bg {
  122. position: absolute;
  123. top: 0;
  124. left: 0;
  125. right: 0;
  126. width: 100%;
  127. height: 100%;
  128. }
  129. }
  130. .title {
  131. position: relative;
  132. z-index: 2;
  133. text-align: center;
  134. font-size: 44rpx;
  135. font-family: zihun100hao-fangfangxianfengti;
  136. font-weight: 400;
  137. color: #08ede7;
  138. line-height: 100rpx;
  139. }
  140. .record {
  141. position: absolute;
  142. z-index: 2;
  143. top: 160rpx;
  144. right: 0;
  145. background: #08ede7;
  146. padding: 20rpx 10rpx 20rpx 20rpx;
  147. border-radius: 10rpx 0px 0px 10rpx;
  148. font-size: 32rpx;
  149. font-family: PingFang SC;
  150. font-weight: bold;
  151. color: #001337;
  152. line-height: 40rpx;
  153. }
  154. .font {
  155. position: relative;
  156. z-index: 2;
  157. margin-top: 280rpx;
  158. text-align: center;
  159. font-size: 30rpx;
  160. font-family: PingFang SC;
  161. font-weight: bold;
  162. color: #ffffff;
  163. }
  164. .num {
  165. position: relative;
  166. z-index: 2;
  167. margin: 22rpx auto 0;
  168. width: 394rpx;
  169. height: 80rpx;
  170. background: linear-gradient(90deg, rgba(8, 237, 231, 0), #08ede7, #08ede7, rgba(8, 237, 231, 0));
  171. font-size: 42rpx;
  172. font-family: PingFang SC;
  173. font-weight: bold;
  174. color: #001337;
  175. text-align: center;
  176. line-height: 80rpx;
  177. }
  178. .tip-title {
  179. position: relative;
  180. z-index: 2;
  181. margin-top: 34rpx;
  182. text-align: center;
  183. font-size: 32rpx;
  184. font-family: PingFang SC;
  185. font-weight: bold;
  186. color: #ffffff;
  187. }
  188. .tip {
  189. position: relative;
  190. z-index: 2;
  191. margin: 30rpx auto 0;
  192. width: 570rpx;
  193. font-size: 26rpx;
  194. font-family: PingFang SC;
  195. font-weight: bold;
  196. color: #ffffff;
  197. line-height: 38rpx;
  198. }
  199. .bottom {
  200. padding-top: 182rpx;
  201. position: relative;
  202. width: 750rpx;
  203. height: 434rpx;
  204. margin-top: -118rpx;
  205. .bottom-bg {
  206. position: absolute;
  207. top: 0;
  208. left: 0;
  209. right: 0;
  210. height: 100%;
  211. width: 100%;
  212. }
  213. .btn {
  214. position: relative;
  215. z-index: 3;
  216. margin: 0 auto;
  217. width: 450rpx;
  218. height: 76rpx;
  219. background: linear-gradient(0deg, #ff7206, #ffdd7e);
  220. box-shadow: 0px 2px 8px 0px rgba(207, 126, 57, 0.7);
  221. border-radius: 38rpx;
  222. text-align: center;
  223. line-height: 76rpx;
  224. font-size: 36rpx;
  225. font-family: zihun164hao-fangyuehei;
  226. font-weight: 400;
  227. color: #ffffff;
  228. }
  229. }
  230. .record-title {
  231. text-align: center;
  232. font-size: 46rpx;
  233. font-family: zihun100hao-fangfangxianfengti;
  234. font-weight: 400;
  235. color: #ffffff;
  236. }
  237. .xian {
  238. margin: 14rpx auto 0;
  239. width: 326rpx;
  240. height: 16rpx;
  241. image {
  242. width: 100%;
  243. height: 100%;
  244. }
  245. }
  246. .popup-record {
  247. width: 680rpx;
  248. height: 854rpx;
  249. background: linear-gradient(180deg, #254fab 0%, #230a8e 100%);
  250. border-radius: 20rpx;
  251. padding: 62rpx 34rpx 0;
  252. .record-main-title {
  253. margin-top: 60rpx;
  254. }
  255. .record-main {
  256. margin-top: 10rpx;
  257. }
  258. .item {
  259. font-size: 28rpx;
  260. font-family: PingFang SC;
  261. font-weight: bold;
  262. color: #ffffff;
  263. opacity: 0.8;
  264. }
  265. }
  266. .popup-x {
  267. margin: 62rpx auto 0;
  268. width: 66rpx;
  269. height: 66rpx;
  270. image {
  271. width: 100%;
  272. height: 100%;
  273. }
  274. }
  275. .popup-buy {
  276. width: 630rpx;
  277. background: linear-gradient(180deg, #254fab 0%, #230a8e 100%);
  278. border-radius: 20rpx;
  279. padding: 68rpx 74rpx 74rpx;
  280. .buy-num {
  281. display: flex;
  282. justify-content: flex-start;
  283. align-items: center;
  284. margin-top: 62rpx;
  285. .shu {
  286. width: 10rpx;
  287. height: 30rpx;
  288. background: #08ede7;
  289. border-radius: 5rpx;
  290. }
  291. .num-font {
  292. margin-left: 10rpx;
  293. font-size: 32rpx;
  294. font-family: PingFang SC;
  295. font-weight: bold;
  296. color: #ffffff;
  297. text {
  298. color: #08ede7;
  299. }
  300. }
  301. }
  302. .ren-num {
  303. margin-top: 40rpx;
  304. }
  305. .buy-input {
  306. display: flex;
  307. margin-top: 32rpx;
  308. justify-content: space-between;
  309. align-items: flex-end;
  310. width: 100%;
  311. border-bottom: 1px solid #ffffff;
  312. padding-bottom: 12rpx;
  313. .input {
  314. width: 90%;
  315. height: 40rpx;
  316. color: #ffffff;
  317. font-size: 40rpx;
  318. }
  319. .inputPlace {
  320. font-size: 40rpx;
  321. font-family: PingFang SC;
  322. font-weight: bold;
  323. color: #ffffff;
  324. line-height: 38px;
  325. opacity: 0.35;
  326. }
  327. .unit {
  328. font-size: 27rpx;
  329. font-family: PingFang SC;
  330. font-weight: bold;
  331. color: #ffffff;
  332. }
  333. }
  334. .buy-tip {
  335. margin-top: 10rpx;
  336. font-size: 26rpx;
  337. font-family: PingFang SC;
  338. font-weight: bold;
  339. color: #ffffff;
  340. }
  341. .btn-box {
  342. display: flex;
  343. justify-content: space-between;
  344. margin-top: 62rpx;
  345. .btn-left {
  346. width: 230rpx;
  347. height: 66rpx;
  348. background: #E8E8E8;
  349. border-radius: 10rpx;
  350. text-align: center;
  351. line-height: 66rpx;
  352. font-size: 28rpx;
  353. font-family: PingFang SC;
  354. font-weight: bold;
  355. color: #001337;
  356. }
  357. .btn-right {
  358. width: 230rpx;
  359. height: 66rpx;
  360. background: #08EDE7;
  361. border-radius: 10rpx;
  362. text-align: center;
  363. line-height: 66rpx;
  364. font-size: 28rpx;
  365. font-family: PingFang SC;
  366. font-weight: bold;
  367. color: #001337;
  368. }
  369. }
  370. }
  371. </style>