index.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <template>
  2. <view class="content">
  3. <view class="head_bg">
  4. <image src="../../static/wanshan.png"></image>
  5. </view>
  6. <view class="personal_box">
  7. <u-grid :col="4">
  8. <u-grid-item>
  9. <u-icon name="photo" :size="46"></u-icon>
  10. <view class="grid-text">图片</view>
  11. </u-grid-item>
  12. <u-grid-item>
  13. <u-icon name="lock" :size="46"></u-icon>
  14. <view class="grid-text">锁头</view>
  15. </u-grid-item>
  16. <u-grid-item>
  17. <u-icon name="hourglass" :size="46"></u-icon>
  18. <view class="grid-text">沙漏</view>
  19. </u-grid-item>
  20. <u-grid-item>
  21. <u-icon name="hourglass" :size="46"></u-icon>
  22. <view class="grid-text">沙漏</view>
  23. </u-grid-item>
  24. </u-grid>
  25. <view class="bigbox">
  26. <view class="flex-box">
  27. <view class="">
  28. 骑车去旅行
  29. </view>
  30. <view class="login-button" @click="goLogin">
  31. 去登陆
  32. </view>
  33. </view>
  34. <view class="smallbox">
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. // import uActionSheet from "../../uview-ui/components/u-action-sheet/u-action-sheet.vue";
  42. // import uSelection from '../../uview-ui/components/u-select/u-select.vue';
  43. export default {
  44. data() {
  45. return {
  46. title: 'Hello',
  47. list: [{
  48. text: '点赞',
  49. color: 'blue',
  50. fontSize: 28
  51. }, {
  52. text: '分享'
  53. }, {
  54. text: '评论'
  55. }],
  56. // show: true
  57. lists: [
  58. '寒雨连江夜入吴',
  59. '平明送客楚山孤',
  60. '洛阳亲友如相问',
  61. '一片冰心在玉壶'
  62. ]
  63. }
  64. },
  65. onLoad() {
  66. },
  67. methods: {
  68. goPricate() {
  69. console.log("aa")
  70. uni.navigateTo({
  71. url: '/pages/pricate/pricate'
  72. })
  73. },
  74. goLogin() {
  75. uni.navigateTo({
  76. url:'/pages/login/index'
  77. })
  78. }
  79. }
  80. }
  81. </script>
  82. <style scoped lang="scss">
  83. .content {
  84. .head_bg {
  85. width: 100%;
  86. height: 400rpx;
  87. image {
  88. width: 100%;
  89. height: 400rpx;
  90. }
  91. }
  92. .personal_box {
  93. position: absolute;
  94. top: 70rpx;
  95. width: 90%;
  96. z-index: 99;
  97. box-shadow: 0 4rpx 20rpx 0 rgba(99, 251, 172, 0.35);
  98. border-radius: 10rpx;
  99. margin: 0 5%;
  100. }
  101. }
  102. .bigbox {
  103. height: 300rpx;
  104. width: 100%;
  105. background: red;
  106. position: relative;
  107. border-radius: 10px;
  108. margin-top: 100rpx;
  109. // margin: 0 4%;
  110. overflow: hidden;
  111. .flex-box {
  112. display: flex;
  113. justify-content: space-between;
  114. align-items: center;
  115. margin: 4%;
  116. .login-button {
  117. border: 1rpx solid black;
  118. padding: 10rpx;
  119. box-sizing: border-box;
  120. }
  121. }
  122. .smallbox {
  123. position: absolute;
  124. bottom: 0;
  125. height: 190rpx;
  126. width: 100%;
  127. background: white;
  128. z-index: 99;
  129. border-radius: 10px;
  130. }
  131. }
  132. </style>