coupon.vue 817 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template name="navbars">
  2. <view>
  3. <view class="coupon-content clearfix" @click="navigator('/pages/user/coupon/coupon-collection')">
  4. <image src="https://static.caimei365.com/app/img/icon/icon-coupon-banner@2x.png" mode=""></image>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. import { mapState,mapMutations } from 'vuex'
  10. export default{
  11. name:"navbars",
  12. data() {
  13. return{
  14. }
  15. },
  16. created(){
  17. },
  18. computed: {
  19. ...mapState(['hasLogin','userInfo','isWxAuthorize'])
  20. },
  21. methods:{
  22. navigator(url){
  23. this.$api.navigateTo(url)
  24. },
  25. }
  26. }
  27. </script>
  28. <style lang="scss">
  29. .coupon-content{
  30. width: 100%;
  31. height: 254rpx;
  32. box-sizing: border-box;
  33. padding: 32rpx 24rpx 12rpx 24rpx;
  34. background-color: #f7f7f7;
  35. image{
  36. width: 100%;
  37. height: 210rpx;
  38. display: block;
  39. }
  40. }
  41. </style>