Vipgift.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <template>
  2. <view class="content padding-t-20">
  3. <view class="flex item padding-v-20 padding-c-20">
  4. <view class="imgbox">
  5. <image class="img" src="" mode="scaleToFill"></image>
  6. </view>
  7. <view class="contentbox padding-l-20 flex">
  8. <view class="clamp2 title">
  9. 法国空运高端82年拉菲陈酿 红葡萄酒...
  10. </view>
  11. <view class="oldMoneyBox ">
  12. <view class="flex-start padding-b-10">
  13. <text class="oldMoney">¥200</text>
  14. <image class="icon padding-l-10" src="../../static/img/domIcon.png" mode="scaleToFill"></image>
  15. <text class="domMoney font-size-sm">
  16. 直降40元
  17. </text>
  18. </view>
  19. <view class="flex">
  20. <view class="money">¥200</view>
  21. <view class="buttomPay">立即购买</view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. data() {
  31. return {
  32. };
  33. },
  34. onLoad() {},
  35. onShow() {},
  36. onReachBottom() {},
  37. onReady() {},
  38. methods: {
  39. navto(url) {
  40. // #ifdef H5
  41. console.log(url.indexOf('http'), 'banner');
  42. if (url.indexOf('http') >= 0) {
  43. window.location.href = url;
  44. }
  45. // #endif
  46. //测试数据没有写id,用title代替
  47. uni.navigateTo({
  48. url: url
  49. });
  50. }
  51. }
  52. };
  53. </script>
  54. <style lang="scss">
  55. page,
  56. .content {
  57. min-height: 100%;
  58. height: auto;
  59. }
  60. .item {
  61. border-radius: 10rpx;
  62. background-color: #FFFFFF;
  63. width: 690rpx;
  64. margin: 0 30rpx 20rpx 30rpx;
  65. align-items: stretch;
  66. line-height: 1;
  67. .imgbox {
  68. background-color: #EE2F72;
  69. border-radius: 10rpx;
  70. .img {
  71. height: 246rpx;
  72. width: 246rpx;
  73. }
  74. }
  75. .contentbox {
  76. flex-wrap: wrap;
  77. .title {
  78. width: 100%;
  79. align-self: flex-start;
  80. font-size: $font-lg;
  81. color: $font-color-dark;
  82. line-height: 1.5;
  83. }
  84. .money {
  85. font-size: $font-lg + 4rpx;
  86. font-weight: bold;
  87. color: #EE2F72;
  88. }
  89. .oldMoneyBox {
  90. align-self: flex-end;
  91. width: 100%;
  92. .oldMoney {
  93. font-size: $font-sm;
  94. text-decoration: line-through;
  95. color: $font-color-light;
  96. }
  97. .domMoney {
  98. color: #B59467;
  99. }
  100. .icon {
  101. width: 14rpx;
  102. height: 16rpx;
  103. }
  104. .buttomPay {
  105. padding: 14rpx 26rpx;
  106. font-size: $font-base;
  107. color: #fff;
  108. background: linear-gradient(90deg, #FF4A8A, #FF77A7);
  109. border-radius: 26px;
  110. }
  111. }
  112. }
  113. }
  114. </style>