index.vue 7.4 KB

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