index.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. <template>
  2. <!-- 首页 -->
  3. <view class="page">
  4. <image class="topBanner" src="../../static/index/index/topBanner.png" mode="scaleToFill"></image>
  5. <view class="content-list">
  6. <view class="item">
  7. <view class="flex item-user">
  8. <view class="item-left-user flex">
  9. <view class="user-pic">
  10. <image class="user-img" src="../../static/user/myfans/banner.png" mode="scaleToFill">
  11. </image>
  12. </view>
  13. <view class="user-name-box">
  14. <view class="user-name">
  15. 哈哈哈
  16. </view>
  17. <view class="user-money flex">
  18. <view class="tipImg">
  19. <image class="vipTip" src="../../static/index/index/icon01.png" mode="scaleToFill">
  20. </image>
  21. </view>
  22. <view class="money">
  23. 3123123123
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="item-rigt-user" @click="openTc('popupvip')">
  29. <image class="item-right-vip" src="../../static/index/index/vip.png" mode="scaleToFill"></image>
  30. </view>
  31. </view>
  32. <view class="item-user-model flex">
  33. <view class="model" @click="openGg">
  34. <image class="model-image model1" src="../../static/index/index/model1.png" mode="scaleToFill">
  35. </image>
  36. <view class="model-name">
  37. 能量
  38. </view>
  39. </view>
  40. <navigator url="/pages/user/ship">
  41. <view class="model">
  42. <image class="model-image model2" src="../../static/index/index/model2.png"
  43. mode="scaleToFill"></image>
  44. <view class="model-name">
  45. 飞船
  46. </view>
  47. </view>
  48. </navigator>
  49. <navigator url="/pages/user/myfans">
  50. <view class="model">
  51. <image class="model-image model3" src="../../static/index/index/model3.png"
  52. mode="scaleToFill">
  53. </image>
  54. <view class="model-name">
  55. 好友
  56. </view>
  57. </view>
  58. </navigator>
  59. </view>
  60. <view class="flex function-type">
  61. <navigator url="/pages/user/shareQrCode">
  62. <view class="function-block">
  63. <image class="type1" src="../../static/index/index/type2.png" mode=""></image>
  64. </view>
  65. </navigator>
  66. <view class="function-block">
  67. <image class="type2" src="../../static/index/index/type1.png" mode=""></image>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <vipPop ref="vipPop"></vipPop>
  73. <alertPop class="alertTime" ref="alertGg" :buttomShow="false" title="原料剩余">
  74. <view class="timeTitle">
  75. 原料供应剩余
  76. </view>
  77. <view class="timeBox flex-center">
  78. <image class="timeIcon" src="@/static/index/time.png" mode="scaleToFill"></image>
  79. <uni-countdown class="timedown" :show-day="false" :hour="12" :minute="12" :second="12" :font-size="50"
  80. backgroundColor='transparent' color='#FFF'></uni-countdown>
  81. </view>
  82. <view class="alerttip">
  83. 矿石原料每天可补充12次,每次增加 2小时,若供应不足产线将停止生产
  84. </view>
  85. <view class="flex-center alertbuttom">
  86. <image class="alertVideo" src="../../static/index/video.png" mode="scaleToFill"></image>
  87. <view class="buttext">
  88. 看广告补充(12/12)
  89. </view>
  90. </view>
  91. </alertPop>
  92. </view>
  93. </template>
  94. <script>
  95. import vipPop from "@/components/alertPop/vipPop.vue"
  96. import alertPop from "@/components/alertPop/alertPop.vue"
  97. export default {
  98. data() {
  99. return {};
  100. },
  101. components: {
  102. vipPop,
  103. alertPop
  104. },
  105. onLoad(options) {
  106. },
  107. onShow() {},
  108. methods: {
  109. openTc(name) {
  110. this.$refs.vipPop.open();
  111. },
  112. closeTc(name) {
  113. this.$refs.vipPop.close();
  114. },
  115. openGg() {
  116. this.$refs.alertGg.open();
  117. }
  118. }
  119. };
  120. </script>
  121. <style lang="scss">
  122. .page {
  123. background-image: linear-gradient(#5d34ff, #e0d8ff);
  124. min-height: calc(100vh - var(--window-bottom));
  125. padding-bottom: 30rpx;
  126. }
  127. .topBanner {
  128. width: 750rpx;
  129. height: 900rpx;
  130. }
  131. .content-list {
  132. padding: 20rpx 30rpx;
  133. background-color: #FFF;
  134. border-radius: 30rpx;
  135. margin: 0 30rpx;
  136. margin-top: 50rpx;
  137. line-height: 1;
  138. padding-bottom: 50rpx;
  139. .item {
  140. .item-left-user {
  141. align-items: flex-start;
  142. .user-name-box {
  143. padding-left: 10rpx;
  144. .user-money {
  145. .money {
  146. padding-left: 10rpx;
  147. font-weight: bold;
  148. font-size: 26rpx;
  149. color: #222222;
  150. }
  151. }
  152. .vipTip {
  153. width: 36rpx;
  154. height: 29rpx;
  155. }
  156. .user-name {
  157. font-weight: 800;
  158. font-size: 27rpx;
  159. color: #222222;
  160. padding-bottom: 20rpx;
  161. }
  162. }
  163. .user-pic {
  164. overflow: hidden;
  165. border-radius: 100rpx;
  166. width: 60rpx;
  167. height: 60rpx;
  168. .user-img {
  169. width: 100%;
  170. height: 100%;
  171. }
  172. }
  173. }
  174. .item-rigt-user {
  175. .item-right-vip {
  176. width: 210rpx;
  177. height: 95rpx;
  178. }
  179. }
  180. .item-user-model {
  181. padding-top: 30rpx;
  182. .model {
  183. .model-name {
  184. padding-top: 30rpx;
  185. text-align: center;
  186. font-weight: 500;
  187. font-size: 23rpx;
  188. color: #222222;
  189. }
  190. .model1 {
  191. width: 121rpx;
  192. height: 131rpx;
  193. }
  194. .model2 {
  195. width: 121rpx;
  196. height: 116rpx;
  197. }
  198. .model3 {
  199. width: 145rpx;
  200. height: 122rpx;
  201. }
  202. }
  203. }
  204. .function-type {
  205. align-items: flex-end;
  206. margin-top: 30rpx;
  207. .function-block {
  208. .type1 {
  209. width: 325rpx;
  210. height: 130rpx;
  211. margin-left: -10rpx;
  212. }
  213. .type2 {
  214. width: 321rpx;
  215. height: 112rpx;
  216. }
  217. }
  218. }
  219. }
  220. }
  221. .alertTime {
  222. .alerttip{
  223. padding: 50rpx 100rpx;
  224. font-weight: bold;
  225. color: #222222;
  226. }
  227. .alertbuttom {
  228. background: linear-gradient(268deg, rgba(113, 87, 185, 0.99), #8667C3, #7258B9);
  229. border-radius: 10rpx;
  230. text-align: center;
  231. font-weight: bold;
  232. font-size: 30rpx;
  233. line-height: 85rpx;
  234. color: #FFF;
  235. .alertVideo {
  236. width: 36rpx;
  237. height: 26rpx;
  238. }
  239. .buttext{
  240. margin-left: 10rpx;
  241. }
  242. margin: 50rpx 100rpx 0 100rpx;
  243. }
  244. .timeTitle {
  245. padding-top: 100rpx;
  246. text-align: center;
  247. font-weight: 800;
  248. font-size: 39rpx;
  249. color: #222222;
  250. }
  251. .timeBox {
  252. background-color: rgb(181, 175, 196);
  253. width: 378rpx;
  254. height: 94rpx;
  255. margin: 0 auto;
  256. border-radius: 10rpx;
  257. margin-top: 50rpx;
  258. .timeIcon {
  259. width: 58rpx;
  260. height: 58rpx;
  261. }
  262. .timedown {
  263. /deep/ .uni-countdown__splitor {
  264. // font-size: 42rpx;
  265. color: #FFF !important;
  266. margin: 0 6rpx;
  267. font-weight: bold;
  268. }
  269. /deep/ .uni-countdown__number {
  270. font-size: 42rpx;
  271. letter-spacing: 6rpx;
  272. width: auto;
  273. }
  274. }
  275. }
  276. }
  277. </style>