index.vue 2.2 KB

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