flashSale.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="page">
  3. <view class="headers">
  4. <view class="dis a-c j-start">
  5. <u-icon name="arrow-left" size="40" color="#fff" @tap="back"></u-icon>
  6. <text style="margin:auto;">限时秒杀</text>
  7. </view>
  8. </view>
  9. <view class="" style="padding-top:96px ;">
  10. </view>
  11. <image class="headerImg" src="../../static/image/index/flashSale-img/flashSale.png" mode=""></image>
  12. <view class="content dis a-c j-c">
  13. <image class="icon" src="../../static/image/index/flashSale-img/flashSaleicon.png" mode=""></image>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. }
  22. },
  23. onShow() {
  24. },
  25. onLoad() {
  26. },
  27. methods: {
  28. //页面返回按钮
  29. back() {
  30. uni.navigateBack({
  31. delta: 1, // 返回的页面数,如果是1表示返回上一页
  32. success: function() {}
  33. });
  34. },
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .page {
  40. height: calc(100vh - 96px);
  41. }
  42. .headers {
  43. position: fixed;
  44. top: 0;
  45. left: 0;
  46. height: auto;
  47. width: 100%;
  48. z-index: 999999;
  49. padding: 50px 16px 14px;
  50. height: auto;
  51. background: linear-gradient(90deg, #FF5A30 0%, #FF6E39 57%, #FF5A30 100%);
  52. text {
  53. font-size: 18px;
  54. font-weight: bold;
  55. color: #fff;
  56. }
  57. }
  58. .headerImg {
  59. height: 574rpx;
  60. }
  61. .content {
  62. width: 100%;
  63. height: calc(100vh - 353px);
  64. background: #FFFFFF;
  65. border-radius: 10px 10px 0px 0px;
  66. background: #fff;
  67. margin-top: -30px;
  68. position: relative;
  69. bottom: 0;
  70. .icon {
  71. width: 200px;
  72. height: 200px;
  73. }
  74. }
  75. </style>