index.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <view class="content">
  3. <image class="logo" src="/static/post-bg.png"></image>
  4. <view class="share-box">
  5. <view>分销商分享给好友,好友购买产品成功后即可获</view>
  6. <view>得分享奖励</view>
  7. <view>单笔最高可赚¥200.00</view>
  8. <view>快去分享吧</view>
  9. <button type="default">分享</button>
  10. </view>
  11. <view class="share-box" style="height: 200upx;margin-top: 2%;">
  12. <view>长按复制框内整段文字,打开 [手淘] 即可购买</view>
  13. <view>¥kSfsDfrtrEjt¥</view>
  14. <button type="default">一键复制</button>
  15. </view>
  16. <view class="product-title">推荐产品</view>
  17. <view class="recommend-box">
  18. <view class="product-box" @click="goDetail">
  19. <image src="/static/bed-bg.png"></image>
  20. <view class="detail-box">
  21. <view>甜蜜瑞士系列床垫 卧室独立袋弹簧 护脊静音软硬适…</view>
  22. <view style="color: #999;">¥11999</view>
  23. </view>
  24. </view>
  25. <view class="product-box">
  26. <image src="/static/bed2-bg.png"></image>
  27. <view class="detail-box">
  28. <view>甜蜜瑞士系列床垫 卧室独立袋弹簧 护脊静音软硬适…</view>
  29. <view style="color: #999;">¥13999</view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. data() {
  38. return {
  39. title: 'Hello'
  40. }
  41. },
  42. onLoad() {
  43. },
  44. methods: {
  45. goDetail(){
  46. uni.navigateTo({
  47. url: '/pages/index/detailPage/index',
  48. success: res => {},
  49. fail: () => {},
  50. complete: () => {}
  51. });
  52. }
  53. }
  54. }
  55. </script>
  56. <style>
  57. .content {
  58. display: flex;
  59. flex-direction: column;
  60. align-items: center;
  61. justify-content: center;
  62. }
  63. .logo {
  64. height: 400px;
  65. width: 100%;
  66. margin-bottom: 30upx;
  67. }
  68. .share-box {
  69. display: flex;
  70. flex-direction: column;
  71. justify-content: center;
  72. align-items: center;
  73. width: 80%;
  74. height: 300upx;
  75. border: 1px dashed red;
  76. background: #fff;
  77. font-size: 28rpx;
  78. padding: 5px;
  79. }
  80. .share-box button {
  81. width: 300rpx;
  82. height: 70rpx;
  83. line-height: 70rpx;
  84. margin-top: 2%;
  85. background-color: #27BCEF;
  86. color: #fff;
  87. }
  88. .title {
  89. font-size: 36upx;
  90. color: #8f8f94;
  91. }
  92. .product-title {
  93. margin-left: -75%;
  94. margin-top: 5%;
  95. margin-bottom: 1%;
  96. }
  97. .recommend-box {
  98. display: flex;
  99. flex-direction: column;
  100. justify-content: center;
  101. align-items: center;
  102. }
  103. .product-box {
  104. width: 90%;
  105. height: 200rpx;
  106. padding: 20rpx;
  107. display: flex;
  108. align-items: center;
  109. background-color: #fff;
  110. border-radius:10px;
  111. margin-bottom: 2%;
  112. }
  113. .product-box image {
  114. width: 420rpx;
  115. height: 180rpx;
  116. margin-right: 5%;
  117. }
  118. .detail-box {
  119. display: flex;
  120. flex-direction: column;
  121. justify-content: space-between;
  122. font-size: 30rpx;
  123. height: 190rpx;
  124. }
  125. </style>