index.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. <template>
  2. <view class="content">
  3. <view class="bg">
  4. <image src="../../static/index/bg01.png" mode=""></image>
  5. </view>
  6. <view class="bg1">
  7. <image src="../../static/index/bg03.png" mode=""></image>
  8. </view>
  9. <view class="box-top">
  10. <view class="bg3 " @click="addShow()">
  11. <image src="../../static/index/img14.png" mode=""></image>
  12. </view>
  13. <view class="bg3 two">
  14. <image src="../../static/index/img08.png" mode=""></image>
  15. </view>
  16. </view>
  17. <view class="bg5">
  18. <image src="../../static/index/img09.png" mode=""></image>
  19. </view>
  20. <view class="bg4">
  21. <image src="../../static/index/img04.png" mode=""></image>
  22. </view>
  23. <view class="bg6">
  24. <image src="../../static/index/img10.png" mode=""></image>
  25. </view>
  26. <view class="bg7">
  27. <image src="../../static/index/img13.png" mode=""></image>
  28. </view>
  29. <view class="bg8">
  30. <image src="../../static/index/img06.png" mode=""></image>
  31. </view>
  32. <view class="bg9">
  33. <image src="../../static/index/bg05.png" mode=""></image>
  34. <view class="bg10">
  35. <image src="../../static/index/img01.png" mode=""></image>
  36. </view>
  37. </view>
  38. <view class="bg9">
  39. <image src="../../static/index/bg05.png" mode=""></image>
  40. <view class="bg10">
  41. <image src="../../static/index/img03.png" mode=""></image>
  42. </view>
  43. </view>
  44. <view class="bg9">
  45. <image src="../../static/index/bg05.png" mode=""></image>
  46. <view class="bg10">
  47. <image src="../../static/index/img02.png" mode=""></image>
  48. </view>
  49. </view>
  50. <view class="bg11">
  51. <image src="../../static/img/bottom.png" mode=""></image>
  52. </view>
  53. <!-- <u-popup :show="show" @close="close" @open="open" mode="left" ref="dd" zIndex="999999">
  54. <view class="" style="background-color: #fff;width: 500rpx;height: 400rpx;">
  55. <text>我是黄伟强的爹</text>
  56. </view>
  57. </u-popup> -->
  58. <uni-popup ref="popup" type="left">
  59. <view class="popup">
  60. <view class="title">
  61. <view class="title-img">
  62. <image src="../../static/img/logo.png" mode=""></image>
  63. </view>
  64. <view class="text">
  65. 恒星币
  66. </view>
  67. </view>
  68. <view class="hx">
  69. </view>
  70. <view class="box-left" v-for=" (item,index) in cdList" @click="navTo(item.url)">
  71. <view class="box-box">
  72. <view class="box-img">
  73. <image :src="item.image" mode=""></image>
  74. </view>
  75. <view class="box-title">
  76. {{item.title}}
  77. </view>
  78. <view class="box-right">
  79. <image :src="item.right" mode=""></image>
  80. </view>
  81. </view>
  82. <view class="hx1">
  83. </view>
  84. </view>
  85. </view>
  86. </uni-popup>
  87. <!-- <u-alert title="将就将就军军" type = "warning" :description = "description"></u-alert> -->
  88. </view>
  89. </template>
  90. <script>
  91. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  92. export default {
  93. comments: {
  94. top,
  95. uniPopup
  96. },
  97. data() {
  98. return {
  99. show: false,
  100. cdList: [{
  101. image: '../../static/img/cd1.png',
  102. title: '首页 ',
  103. right: '../../static/img/right.png',
  104. url: './Expect'
  105. },
  106. {
  107. image: '../../static/img/cd2.png',
  108. title: '恒星私募',
  109. right: '../../static/img/right.png',
  110. url: './Expect'
  111. },
  112. {
  113. image: '../../static/img/cd5.png',
  114. title: 'DIFI挖矿',
  115. right: '../../static/img/right.png'
  116. },
  117. {
  118. image: '../../static/img/cd4.png',
  119. title: '我的推荐',
  120. right: '../../static/img/right.png'
  121. },
  122. {
  123. image: '../../static/img/cd3.png',
  124. title: '超级节点',
  125. right: '../../static/img/right.png'
  126. },
  127. {
  128. image: '../../static/img/cd6.png',
  129. title: '游戏版块',
  130. right: '../../static/img/right.png'
  131. },
  132. {
  133. image: '../../static/img/cd7.png',
  134. title: '好友加速明细',
  135. right: '../../static/img/right.png'
  136. },
  137. {
  138. image: '../../static/img/cd8.png',
  139. title: '算力奖励明细',
  140. right: '../../static/img/right.png'
  141. },
  142. {
  143. image: '../../static/img/cd9.png',
  144. title: '社群奖励明细',
  145. right: '../../static/img/right.png'
  146. },
  147. {
  148. image: '../../static/img/cd10.png',
  149. title: '公会奖励明细',
  150. right: '../../static/img/right.png'
  151. }
  152. ]
  153. };
  154. },
  155. methods: {
  156. addShow() {
  157. this.show = true
  158. this.$refs.popup.open()
  159. console.log(this.$refs.dd)
  160. console.log("陈宫", this.show);
  161. if (this.show == false) {
  162. this.$refs.popup.close()
  163. console.log("陈宫", this.show);
  164. }
  165. },
  166. navTo(url) {
  167. uni.navigateTo({
  168. url
  169. })
  170. }
  171. // open() {
  172. // console.log('open');
  173. // },
  174. // close() {
  175. // this.show = false
  176. // // console.log('close');
  177. // }
  178. }
  179. }
  180. </script>
  181. <style lang="scss">
  182. page,
  183. .content {
  184. height: 100%;
  185. margin: 0;
  186. padding: 0;
  187. }
  188. image {
  189. height: 100%;
  190. width: 100%;
  191. }
  192. .bg {
  193. position: absolute;
  194. width: 750rpx;
  195. height: 3117rpx;
  196. }
  197. .box-top {
  198. display: flex;
  199. padding: 36rpx 41rpx 72rpx 41rpx;
  200. }
  201. .bg1 {
  202. position: absolute;
  203. width: 750rpx;
  204. height: 629rpx;
  205. }
  206. .bg3 {
  207. width: 56rpx;
  208. height: 62rpx;
  209. }
  210. .two {
  211. margin-left: 36rpx;
  212. }
  213. .bg4 {
  214. display: flex;
  215. margin: 0 auto;
  216. width: 680rpx;
  217. height: 581rpx;
  218. }
  219. .bg5 {
  220. position: absolute;
  221. right: 0;
  222. top: 105rpx;
  223. width: 68rpx;
  224. height: 108rpx;
  225. }
  226. .bg6 {
  227. width: 78rpx;
  228. height: 98rpx;
  229. margin: 33rpx 22rpx;
  230. }
  231. .bg7 {
  232. position: absolute;
  233. right: 0;
  234. top: 660rpx;
  235. width: 219rpx;
  236. height: 308rpx;
  237. }
  238. .bg8 {
  239. width: 546rpx;
  240. height: 168rpx;
  241. margin: -66rpx auto;
  242. }
  243. .bg9 {
  244. position: relative;
  245. display: flex;
  246. align-items: center;
  247. justify-content: center;
  248. width: 680rpx;
  249. height: 524rpx;
  250. margin: 40rpx auto;
  251. }
  252. .bg10 {
  253. position: absolute;
  254. width: 590rpx;
  255. height: 400rpx;
  256. }
  257. .bg11 {
  258. background: black;
  259. float: left;
  260. bottom: 0;
  261. width: 750rpx;
  262. height: 650rpx;
  263. }
  264. .popup {
  265. display: flex;
  266. flex-direction: column;
  267. background: linear-gradient(180deg, #00143B 0%, #000309 100%);
  268. width: 565rpx;
  269. height: 1448rpx;
  270. .box-left {
  271. width: 530rpx;
  272. display: flex;
  273. flex-direction: column;
  274. .box-box {
  275. position: relative;
  276. display: flex;
  277. align-items: center;
  278. justify-content: flex-start;
  279. margin-left: 30rpx;
  280. }
  281. .box-img {
  282. z-index: 999;
  283. width: 35rpx;
  284. height: 35rpx;
  285. }
  286. .box-title {
  287. margin-left: 20rpx;
  288. font-size: 30rpx;
  289. font-family: PingFang SC;
  290. // font-weight: bold;
  291. color: #FFFFFF;
  292. line-height: 78rpx;
  293. }
  294. .box-right {
  295. position: absolute;
  296. right: 0;
  297. z-index: 999;
  298. width: 17rpx;
  299. height: 32rpx;
  300. }
  301. }
  302. .title {
  303. margin: 40rpx 190rpx;
  304. display: flex;
  305. flex-direction: column;
  306. align-items: center;
  307. .title-img {
  308. width: 186rpx;
  309. height: 193rpx;
  310. }
  311. .text {
  312. display: flex;
  313. font-size: 41rpx;
  314. font-family: zihun100hao-fangfangxianfengti;
  315. font-weight: 400;
  316. color: #FFFFFF;
  317. line-height: 38rpx;
  318. }
  319. }
  320. .hx {
  321. width: 565rpx;
  322. height: 12rpx;
  323. background: #FFFFFF;
  324. opacity: 0.23;
  325. }
  326. .hx1 {
  327. width: 565rpx;
  328. height: 2rpx;
  329. background: #FFFFFF;
  330. opacity: 0.1;
  331. }
  332. }
  333. </style>