index.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <template>
  2. <view class="app-container">
  3. <view class="list" style="height: 1116rpx; margin-bottom: 32rpx">
  4. <view class="main_pic" style="height: 302rpx;">
  5. <img src="../../static/operation/headset.png" style="width: 240rpx; height:240rpx" />
  6. </view>
  7. <uni-row class="click">
  8. <uni-col :span="8" class="left">单击</uni-col>
  9. <uni-col :span="16" class="right">
  10. <view style="align-items: flex-end; margin-bottom: 20rpx">
  11. <img src="../../static/operation/left.png" />
  12. </view>
  13. <view style="align-items: flex-end; margin-bottom: 20rpx">
  14. <img src="../../static/operation/right.png" />
  15. </view>
  16. <view>
  17. <img src="../../static/operation/last.png" />
  18. <text>上一首</text>
  19. </view>
  20. <view>
  21. <img src="../../static/operation/next.png" />
  22. <text>下一首</text>
  23. </view>
  24. </uni-col>
  25. </uni-row>
  26. <uni-row class="double_click">
  27. <uni-col :span="8" class="left">双击</uni-col>
  28. <uni-col :span="16" class="right">
  29. <view>
  30. <img src="../../static/operation/play.png" />
  31. <text>播放</text>
  32. </view>
  33. <view>
  34. <img src="../../static/operation/stop.png" />
  35. <text>暂停</text>
  36. </view>
  37. <view>
  38. <img src="../../static/operation/answer.png" />
  39. <text>接听</text>
  40. </view>
  41. <view>
  42. <img src="../../static/operation/handup.png" />
  43. <text>挂断</text>
  44. </view>
  45. </uni-col>
  46. </uni-row>
  47. <uni-row class="long_press_2s">
  48. <uni-col :span="8" class="left">长按2s</uni-col>
  49. <uni-col :span="16" class="right">
  50. <img src="../../static/operation/reject.png" />
  51. <text>拒接来电</text>
  52. </uni-col>
  53. </uni-row>
  54. <uni-row class="long_press_3s">
  55. <uni-col :span="8" class="left">长按3s</uni-col>
  56. <uni-col :span="16" class="right">
  57. <img src="../../static/operation/scene.png" />
  58. <text>切换场景模式</text>
  59. </uni-col>
  60. </uni-row>
  61. </view>
  62. <view class="list" style="height: 528rpx">
  63. <view class="main_pic" style="height: 324rpx;">
  64. <img src="../../static/operation/box.png" style="width: 212rpx; height:260rpx" />
  65. </view>
  66. <uni-row class="long_press_5s">
  67. <uni-col :span="8" class="left">长按5s</uni-col>
  68. <uni-col :span="16" class="right">
  69. <img src="../../static/operation/bluetooth.png" />
  70. <text>重置蓝牙</text>
  71. <text style="color: rgba(255, 255, 255, 0.4);">(耳机处于仓内)</text>
  72. </uni-col>
  73. </uni-row>
  74. </view>
  75. </view>
  76. </template>
  77. <style lang="scss" scope>
  78. .list {
  79. border: 2rpx solid #2f2f2f;
  80. border-radius: 16rpx;
  81. .main_pic {
  82. display: flex;
  83. justify-content: center;
  84. align-items: center;
  85. border-bottom: 2rpx solid #2f2f2f;
  86. }
  87. .click {
  88. height: 224rpx;
  89. .left {
  90. line-height: 224rpx;
  91. }
  92. .right {
  93. display: flex;
  94. flex-wrap: wrap;
  95. justify-content: space-around;
  96. view {
  97. width: 50%;
  98. display: flex;
  99. justify-content: center;
  100. align-content: center;
  101. img {
  102. width: 48rpx;
  103. height: 48rpx;
  104. }
  105. }
  106. }
  107. }
  108. .double_click {
  109. height: 196rpx;
  110. border-bottom: 2rpx solid #2f2f2f;
  111. border-top: 2rpx solid #2f2f2f;
  112. .left {
  113. line-height: 196rpx;
  114. }
  115. .right {
  116. display: flex;
  117. justify-content: space-around;
  118. align-items: center;
  119. view {
  120. display: flex;
  121. flex-direction: column;
  122. img {
  123. width: 48rpx;
  124. height: 48rpx;
  125. }
  126. }
  127. }
  128. }
  129. .long_press_2s {
  130. border-bottom: 2rpx solid #2f2f2f;
  131. }
  132. .long_press_2s,
  133. .long_press_3s {
  134. height: 196rpx;
  135. .left {
  136. line-height: 196rpx;
  137. }
  138. }
  139. .long_press_2s,
  140. .long_press_3s,
  141. .long_press_5s {
  142. .right {
  143. display: flex;
  144. flex-direction: column;
  145. justify-content: center;
  146. align-items: center;
  147. img {
  148. width: 48rpx;
  149. height: 48rpx;
  150. }
  151. }
  152. }
  153. .long_press_5s {
  154. height: 204rpx;
  155. .left {
  156. line-height: 204rpx;
  157. }
  158. }
  159. .left {
  160. font-size: 28rpx;
  161. height: 100%;
  162. text-align: center;
  163. background: rgba(255, 255, 255, 0.02);
  164. border-right: 2rpx solid #2f2f2f;
  165. }
  166. .right {
  167. height: 100%;
  168. text-align: center;
  169. font-size: 24rpx;
  170. text {
  171. line-height: 48rpx;
  172. }
  173. }
  174. }
  175. </style>