demo2.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view style="min-height: 100vh;">
  3. <view class="" >
  4. <view class="flex justify-center" style="position: relative;bottom: -80rpx;">
  5. <view class="cu-btn cuIcon bg-gradual-blue" style="width: 160rpx;height: 160rpx;">
  6. <view class="flex " style="flex-direction: column;">
  7. <view class="cuIcon-unlock text-white" style="font-size: 60rpx;"></view>
  8. <view class="text-sm margin-top-20">
  9. 点我开门
  10. </view>
  11. </view>
  12. </view>
  13. </view>
  14. <view style="padding: 40rpx 10rpx 0rpx;" class="cu-list grid col-5 no-border" >
  15. <view class="cu-item" v-for="(item,index) in gridList" :key="index">
  16. <block >
  17. <view class="grid-icon" >
  18. <image style="width: 45rpx;height: 45rpx;" :src="item.icon"/>
  19. </view>
  20. <view class="cu-tag bg-orange badge" v-if="item.badge>0">{{item.badge}}</view>
  21. <text style="color: #333333;font-size: 26rpx;">{{item.title}}</text>
  22. </block>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. name: '',
  31. data() {
  32. return {
  33. gridList:[
  34. {
  35. icon:'../../static/grid1/kaisuo.png',
  36. title:"A区",
  37. badge:0,
  38. index:1
  39. },
  40. {
  41. icon:'../../static/grid1/kaisuo.png',
  42. title:"D区",
  43. badge:0,
  44. index:1
  45. },
  46. ],
  47. };
  48. },
  49. onLoad() {
  50. },
  51. methods:{
  52. }
  53. };
  54. </script>
  55. <style lang="scss" scoped>
  56. .bg-gradual-blue {
  57. background-image: linear-gradient(45deg, rgba(31, 117, 203, 0.8), rgba(34, 126, 217, 0.5));
  58. color: #ffffff;
  59. }
  60. </style>