index.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <template>
  2. <view class="main">
  3. <view class="main_wrapper">
  4. <view class="top">
  5. <image class="banner" src="@/static/img_top@3x.png" mode="widthFix"></image>
  6. <view class="title">
  7. <view>欢迎来到<br/>渔易通<text>{娱乐中心}</text></view>
  8. </view>
  9. </view>
  10. <view class="content">
  11. <view class="item yyt">
  12. <view class="left">
  13. <image class="logo_img" src="@/static/ic_yyt@2x.png"></image>
  14. <view class="texts">
  15. <view>联网中心</view>
  16. <view>点击进入可立即联网</view>
  17. </view>
  18. </view>
  19. <image class="more" src="@/static/ic_jiantou.png"></image>
  20. </view>
  21. <view class="item yule" @click="toYule">
  22. <view class="left">
  23. <image class="logo_img" src="@/static/ic_yule@2x.png"></image>
  24. <view class="texts">
  25. <view>娱乐中心</view>
  26. <view>畅享短视频小说游戏等</view>
  27. </view>
  28. </view>
  29. <image class="more" src="@/static/ic_jiantou.png"></image>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="nametip">渔易通娱乐中心 V2.0</view>
  34. <!-- <web-view :src="src"></web-view> -->
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. data() {
  40. return {
  41. // src: 'http://teststar.mstardance.com/app/starmini/index.html'
  42. }
  43. },
  44. onLoad() {
  45. },
  46. onShow(){
  47. // uni.navigateTo({
  48. // url: "/pages/amuse/index"
  49. // })
  50. // if(window.plus) {
  51. // this.plusReady();
  52. // } else {
  53. // document.addEventListener('plusready', plusReady, false);
  54. // }
  55. // let accessToken = this.$getSS('accessToken')
  56. // let phone = this.$getSS('phone')
  57. // this.src = 'http://debugstar.mstardance.com/starmini/index.html'
  58. },
  59. methods: {
  60. toYule(){
  61. uni.navigateTo({
  62. url: '/pages/amuse/index'
  63. })
  64. }
  65. }
  66. }
  67. </script>
  68. <style scoped lang="less">
  69. .main {
  70. display: flex;
  71. flex-direction: column;
  72. width: 100%;
  73. height: 100vh;
  74. }
  75. .main_wrapper{
  76. flex: 1;
  77. }
  78. .top{
  79. position: relative;
  80. .banner{
  81. width: 100%;
  82. height: auto;
  83. }
  84. .title{
  85. top: 216rpx;
  86. left: 60rpx;
  87. position: absolute;
  88. font-size: 64rpx;
  89. color: #092397;
  90. font-weight: bold;
  91. text{
  92. color: #BC2AF4;
  93. }
  94. }
  95. }
  96. .content{
  97. flex: 1;
  98. padding: 40rpx 32rpx;
  99. .item{
  100. border-radius: 32rpx;
  101. display: flex;
  102. justify-content: space-between;
  103. align-items: center;
  104. padding: 40rpx 32rpx 40rpx 40rpx;
  105. .left{
  106. display: flex;
  107. .logo_img{
  108. width: 144rpx;
  109. height: 144rpx;
  110. }
  111. .texts{
  112. letter-spacing: 4rpx;
  113. margin-left: 32rpx;
  114. color: #FFF;
  115. display: flex;
  116. flex-direction: column;
  117. justify-content: center;
  118. font-size: 32rpx;
  119. view:nth-child(1){
  120. font-weight: bold;
  121. font-size: 44rpx;
  122. margin-bottom: 16rpx;
  123. }
  124. }
  125. }
  126. .more{
  127. width: 40rpx;
  128. height: 40rpx;
  129. }
  130. }
  131. }
  132. .nametip{
  133. flex-shrink: 0;
  134. font-weight: 400;
  135. font-size: 24rpx;
  136. color: #959CAB;
  137. text-align: center;
  138. /* 兼容 iOS < 11.2 */
  139. padding-bottom: calc(constant(safe-area-inset-bottom)+40rpx);
  140. /* 兼容 iOS >= 11.2 */
  141. padding-bottom: calc(40rpx + env(safe-area-inset-bottom));
  142. }
  143. .yyt{
  144. background: linear-gradient( 312deg, #2B63DE 0%, #3E92F6 100%);
  145. margin-bottom: 32rpx;
  146. }
  147. .yule{
  148. background: linear-gradient( 229deg, #56D8FF 0%, #CD66FF 100%);
  149. }
  150. </style>