index.vue 895 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <view class="banner-ad">
  3. <view
  4. class="device-detail__header"
  5. @click="handleBack"
  6. >
  7. <u-icon
  8. size="36"
  9. class="arrow-left"
  10. name="arrow-left"
  11. ></u-icon>
  12. </view>
  13. <image :src="bannerURL" mode="" class="banner-image"></image>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. bannerURL: 'https://s3.hnyfwlw.com/webstaticimg/bigdata_app/newImg/home/shuifei.jpg',
  21. }
  22. },
  23. methods: {
  24. handleBack(){
  25. uni.navigateBack({
  26. delta: 1,
  27. })
  28. }
  29. }
  30. }
  31. </script>
  32. <style scoped lang="scss">
  33. .banner-ad {
  34. height: 320vh;
  35. width: 100%;
  36. .device-detail__header{
  37. position: absolute;
  38. top: 32rpx;
  39. left: 32rpx;
  40. width:88rpx;
  41. height: 48rpx;
  42. z-index: 999;
  43. color:#fff;
  44. margin-top: 64rpx;
  45. }
  46. .banner-image{
  47. width: 100%;
  48. height: 100%;
  49. }
  50. }
  51. </style>