repair.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view class="container clearfix" >
  3. <view class="banner" :style="{paddingBottom :isIphoneX ? '120rpx' : '60rpx'}">
  4. <image :src="banner" mode=""></image>
  5. </view>
  6. <view class="container-btn" :style="{paddingBottom :isIphoneX ? '68rpx' : '34rpx'}">
  7. <view class="btn" @click="NavToH5Page">申请维修</view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. import { mapState,mapMutations} from 'vuex';
  13. export default{
  14. data(){
  15. return{
  16. isIphoneX:this.$store.state.isIphoneX,
  17. banner:'https://static.caimei365.com/app/img/bg/icon-weixiu.jpg',
  18. }
  19. },
  20. onLoad(option) {
  21. },
  22. methods:{
  23. NavToH5Page() {//跳转H5超皮秒防伪查询
  24. this.$api.navigateTo(`/pages/h5/article/page?linkType=101`)
  25. }
  26. },
  27. onShow() {
  28. }
  29. }
  30. </script>
  31. <style lang="scss">
  32. page{
  33. background-color: #FFFFFF;
  34. }
  35. .container{
  36. width: 100%;
  37. height: auto;
  38. .container-btn{
  39. width: 100%;
  40. box-sizing: border-box;
  41. padding: 7rpx 24rpx;
  42. background-color: #FFFFFF;
  43. position: fixed;
  44. bottom: 0;
  45. left: 0;
  46. z-index: 999;
  47. .btn{
  48. width: 100%;
  49. height: 100%;
  50. background-image: $btn-confirm;
  51. line-height: 84rpx;
  52. border-radius: 42rpx;
  53. text-align: center;
  54. font-size: 26rpx;
  55. color: #FFFFFF;
  56. }
  57. }
  58. .banner{
  59. width: 702rpx;
  60. height: 1386rpx;
  61. float: left;
  62. padding: 0 24rpx;
  63. image{
  64. width: 100%;
  65. height: 1386rpx;
  66. display: block;
  67. }
  68. }
  69. }
  70. </style>