integral.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <template>
  2. <view class="dt-page">
  3. <view class="hd-wrap">
  4. <image class="avatar" src="http://139.9.103.171:1888/img/image/avatar.png" mode="aspectFill"></image>
  5. <view class="phone">130****0800</view>
  6. <view class="right-wrap">
  7. <view>积分:</view>
  8. <view class="point">562</view>
  9. <image class="arrow" src="http://139.9.103.171:1888/img/image/arrow.png" mode="widthFix"></image>
  10. </view>
  11. </view>
  12. <view class="scroll-tab-wrap">
  13. <DtScrollTab :dataList="tabList" :current.sync="curTab" @change="onTabChange"/>
  14. </view>
  15. <view class="goods-list">
  16. <view v-for="(item,idx) in goodsList" :key="idx"
  17. class="goods"
  18. @tap="tapToExchange(item)">
  19. <image class="goods-main" src="http://139.9.103.171:1888/img/image/noData.png" mode="aspectFill"></image>
  20. <view class="goods-name">众生丸(薄膜衣 浓缩丸)</view>
  21. <view class="goods-params">
  22. <view class="params">特价抢购</view>
  23. <view class="params">包邮</view>
  24. </view>
  25. <view class="goods-point">200积分</view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import DtScrollTab from '../comps/dt_scroll_tab.vue'
  32. export default {
  33. components:{
  34. DtScrollTab
  35. },
  36. data(){
  37. return {
  38. curTab:0,
  39. tabList:['全部','优惠券','好物券','商品','会员卡'],
  40. goodsList:[
  41. {}, {},
  42. {}, {},
  43. {}
  44. ]
  45. }
  46. },
  47. methods:{
  48. onTabChange(idx){
  49. },
  50. tapToExchange(item){
  51. uni.navigateTo({
  52. url:'/pagesM/pages/integral_exchange'
  53. })
  54. }
  55. }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. .dt-page{
  60. min-height:100vh;
  61. background-color:#f2f2f2;
  62. .hd-wrap{
  63. display:flex;
  64. align-items: center;
  65. width:100%;
  66. height:90upx;
  67. line-height:90upx;
  68. background-color:#fff;
  69. .avatar{
  70. margin-left:30upx;
  71. margin-right:10upx;
  72. width:60upx;
  73. height:60upx;
  74. border-radius:50%;
  75. }
  76. .phone{
  77. flex:1;
  78. font-size:28upx;
  79. color:#333333;
  80. }
  81. .right-wrap{
  82. display:flex;
  83. align-items: center;
  84. font-size:28upx;
  85. .point{
  86. margin-left:10upx;
  87. color:$dt-color-primary;
  88. }
  89. .arrow{
  90. margin-right:30upx;
  91. margin-left:20upx;
  92. width:12upx;
  93. height:22upx;
  94. }
  95. }
  96. }
  97. .scroll-tab-wrap{
  98. margin:20upx 0;
  99. }
  100. .goods-list{
  101. display:flex;
  102. flex-wrap:wrap;
  103. padding-left:16upx;
  104. padding-bottom:20upx;
  105. .goods{
  106. margin-right:10upx;
  107. margin-bottom:10upx;
  108. display: flex;
  109. flex-wrap:wrap;
  110. width:352upx;
  111. height:460upx;
  112. padding:26upx 26upx 0;
  113. box-sizing:border-box;
  114. background-color:#fff;
  115. .goods-main{
  116. width:300upx;
  117. height:250upx;
  118. }
  119. .goods-name{
  120. font-size:28upx;
  121. color:#333333;
  122. }
  123. .goods-params{
  124. display:flex;
  125. flex-wrap:wrap;
  126. line-height: 30upx;
  127. height: 30upx;
  128. .params{
  129. position:relative;
  130. margin-right:20upx;
  131. width:90upx;
  132. height:30upx;
  133. border-radius:4upx;
  134. font-size:18upx;
  135. line-height:30upx;
  136. text-align:center;
  137. font-weight:400;
  138. color:#EE1515;
  139. }
  140. .params:before{
  141. position:absolute;
  142. top:-1upx;left:-1upx;
  143. width:100%;
  144. height:100%;
  145. border:1upx solid currentColor;
  146. border-radius:4upx;
  147. content:'';
  148. }
  149. }
  150. .goods-point{
  151. font-size:30upx;
  152. color:$dt-color-primary;
  153. font-weight:bold;
  154. }
  155. }
  156. }
  157. }
  158. </style>