deviceDetail.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view class="wrapper">
  3. <image src="../../../static/device-bg.png"></image>
  4. <!-- <image src="../../static/device-bg.png" alt=""></image> -->
  5. <view class="left-items">
  6. <view class="device-item">12</view>
  7. <view class="device-item">12</view>
  8. <view class="device-item">1212</view>
  9. <view class="device-item">2121</view>
  10. </view>
  11. <view class="right-items">
  12. <view class="device-item">2121</view>
  13. <view class="device-item">2121</view>
  14. <view class="device-item">2121</view>
  15. <view class="device-item">3333</view>
  16. <view class="device-item">2121</view>
  17. <view class="device-item">433</view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. }
  26. },
  27. onLoad() {
  28. uni.setNavigationBarColor({
  29. frontColor: "#ffffff", //文字颜色
  30. backgroundColor: "#000033", //底部背景色
  31. })
  32. },
  33. methods: {
  34. }
  35. }
  36. </script>
  37. <style lang="scss">
  38. image{
  39. height:1206rpx;
  40. width:750rpx;
  41. // height: calc(100vh - 88rpx);
  42. }
  43. .wrapper{
  44. width:100%;
  45. height: calc(100vh - 80rpx);
  46. background-color:#000033;
  47. // background-image:url(../../../static/device-bg.png);
  48. // background-size:cover;
  49. position:relative;
  50. .left-items{
  51. position:absolute;
  52. top:100rpx;
  53. left:134rpx;
  54. }
  55. .right-items{
  56. position:absolute;
  57. top:100rpx;
  58. left:530rpx;
  59. }
  60. .device-item{
  61. width:100rpx;
  62. margin-bottom:32rpx;
  63. height:42rpx;
  64. // background:pink;
  65. font-size:28rpx;
  66. text-align:left;
  67. padding-left:10rpx;
  68. line-height:42rpx;
  69. }
  70. .device-item:nth-child(3){
  71. margin-bottom:94rpx;
  72. };
  73. }
  74. </style>