时空网前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

238 lines
5.4 KiB

5 years ago
  1. <template>
  2. <view class="content">
  3. <view class="ctab">
  4. <u-tabs :list="list" :is-scroll="true" :show-bar="false" :current="current" @change="change"></u-tabs>
  5. </view>
  6. <view class="com">
  7. <view class="list">
  8. <view class="left">
  9. <image src="../../static/tu.png" mode=""></image>
  10. </view>
  11. <view class="right">
  12. <view class="title">网红辣椒棒 魔鬼辣椒挑战全 网第一辣 网红优惠季网红辣椒棒 魔鬼辣椒挑战全 网第一辣 网红优惠季</view>
  13. <view class="tips">
  14. <view class="u-line-progress">
  15. <u-line-progress :percent="25" height="20" :striped="true" active-color="#FE9903" :show-percent="false" inactive-color="#F5F5F5"></u-line-progress>
  16. </view>
  17. <text class="progress">已抢25%</text>
  18. <text class="bought">2.4万人已购买</text>
  19. </view>
  20. <view class="price">
  21. <text></text><text>19</text>.<text>90</text>
  22. <text>39.00</text>
  23. <button>立即抢购</button>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="list">
  28. <view class="left">
  29. <image src="../../static/tu.png" mode=""></image>
  30. </view>
  31. <view class="right">
  32. <view class="title">网红辣椒棒 魔鬼辣椒挑战全 网第一辣 网红优惠季网红辣椒棒 魔鬼辣椒挑战全 网第一辣 网红优惠季</view>
  33. <view class="tips">
  34. <view class="u-line-progress">
  35. <u-line-progress :percent="25" height="20" :striped="true" active-color="#FE9903" :show-percent="false" inactive-color="#F5F5F5"></u-line-progress>
  36. </view>
  37. <text class="progress">已抢25%</text>
  38. <text class="bought">2.4万人已购买</text>
  39. </view>
  40. <view class="price">
  41. <text></text><text>19</text>.<text>90</text>
  42. <text>39.00</text>
  43. <button>立即抢购</button>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="list">
  48. <view class="left">
  49. <image src="../../static/tu.png" mode=""></image>
  50. </view>
  51. <view class="right">
  52. <view class="title">网红辣椒棒 魔鬼辣椒挑战全 网第一辣 网红优惠季网红辣椒棒 魔鬼辣椒挑战全 网第一辣 网红优惠季</view>
  53. <view class="tips">
  54. <view class="u-line-progress">
  55. <u-line-progress :percent="25" height="20" :striped="true" active-color="#FE9903" :show-percent="false" inactive-color="#F5F5F5"></u-line-progress>
  56. </view>
  57. <text class="progress">已抢25%</text>
  58. <text class="bought">2.4万人已购买</text>
  59. </view>
  60. <view class="price">
  61. <text></text><text>19</text>.<text>90</text>
  62. <text>39.00</text>
  63. <button>立即抢购</button>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. </template>
  70. <script>
  71. export default {
  72. data() {
  73. return {
  74. list: [{
  75. name: '推荐'
  76. }, {
  77. name: '每日必抢'
  78. }, {
  79. name: '生活用品'
  80. },{
  81. name: '家政服务'
  82. },{
  83. name: '美食部落'
  84. },{
  85. name: '奶茶夏日'
  86. },{
  87. name: '奶茶夏日'
  88. }],
  89. current: 0
  90. }
  91. },
  92. onLoad() {
  93. },
  94. methods: {
  95. change(index) {
  96. this.current = index;
  97. },
  98. }
  99. }
  100. </script>
  101. <style lang="scss" scoped>
  102. .content {
  103. display: flex;
  104. flex-direction: column;
  105. align-items: center;
  106. justify-content: center;
  107. }
  108. .logo {
  109. height: 200rpx;
  110. width: 200rpx;
  111. margin-top: 100rpx;
  112. margin-left: auto;
  113. margin-right: auto;
  114. margin-bottom: 50rpx;
  115. }
  116. .text-area {
  117. display: flex;
  118. justify-content: center;
  119. }
  120. .title {
  121. font-size: 28rpx;
  122. color: $u-content-color;
  123. }
  124. .button-demo {
  125. margin-top: 80rpx;
  126. }
  127. .link-demo {
  128. margin-top: 80rpx;
  129. }
  130. .ctab{
  131. width: 100%;
  132. margin: 20rpx 0 0rpx 0rpx;
  133. padding: 0 22rpx;
  134. }
  135. .com{
  136. width: 100%;
  137. overflow: hidden;
  138. .list{
  139. border-radius: 10rpx;
  140. overflow: hidden;
  141. margin: 20rpx 32rpx;
  142. background-color: #FFFFFF;
  143. box-shadow:0 0 10px 5px #e5e5e5;
  144. .left{
  145. overflow: hidden;
  146. float: left;
  147. image{
  148. width: 204rpx;
  149. height: 204rpx;
  150. margin: 20rpx;
  151. border-radius: 10rpx;
  152. }
  153. }
  154. .right{
  155. overflow: hidden;
  156. .title{
  157. margin: 18rpx 20rpx 0 0;
  158. overflow: hidden;
  159. color: #222222;
  160. font-size: 32rpx;
  161. height: 80rpx;
  162. overflow: hidden;
  163. -webkit-line-clamp: 2;
  164. text-overflow: ellipsis;
  165. display: -webkit-box;
  166. -webkit-box-orient: vertical;
  167. }
  168. .tips{
  169. margin: 16rpx 0;
  170. overflow: hidden;
  171. .u-line-progress{
  172. width: 112rpx;
  173. overflow: hidden;float: left;
  174. margin-right:20rpx ;
  175. }
  176. .progress{
  177. color: #777777;
  178. font-size: 24rpx;
  179. }
  180. .bought{
  181. color: #777777;
  182. font-size: 24rpx;
  183. float: right;
  184. margin-right: 20rpx;
  185. }
  186. }
  187. .price{
  188. overflow: hidden;
  189. color:#FF0000;
  190. text{
  191. font-size: 48rpx;
  192. color:#FF0000;
  193. font-weight: 500;
  194. }
  195. text:nth-child(1){
  196. color: #FF0000;
  197. font-size: 28rpx;
  198. }
  199. text:nth-child(2){
  200. color: #FF0000;
  201. font-size: 48rpx;
  202. }
  203. text:nth-child(3){
  204. color: #FF0000;
  205. font-size: 28rpx;
  206. }
  207. text:nth-child(4){
  208. color: #777777;
  209. font-size: 28rpx;
  210. text-decoration:line-through;
  211. font-weight: 400;
  212. }
  213. button{
  214. width: 176rpx;
  215. height: 60rpx;
  216. background: #FE9903;
  217. border-radius: 15px;
  218. font-size: 24rpx;
  219. color: #FFFFFF;
  220. float: right;
  221. margin: 10rpx 20rpx 20rpx 20rpx;
  222. border: none;
  223. }
  224. }
  225. }
  226. }
  227. }
  228. </style>