HomeNav.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <view class="navigation">
  3. <view class="nav">
  4. <view class="item">
  5. <image class="icon" src="/static/nav/pay.png" @click.stop="goUrl('pages/pay/index')"></image>
  6. <view class="title">买单支付</view>
  7. </view>
  8. <view class="item">
  9. <image class="icon" src="/static/nav/add.png" @click.stop="goUrl('pages/wallet/recharge/index')"></image>
  10. <view class="title">充值有礼</view>
  11. </view>
  12. <view class="item">
  13. <image class="icon" src="/static/nav/new.png" @click.stop="goUrl('pages/share/index')"></image>
  14. <view class="title">邀请有礼</view>
  15. </view>
  16. <view class="item">
  17. <image class="icon" src="/static/nav/coupon.png" @click.stop="goUrl('pages/coupon/list?type=C')"></image>
  18. <view class="title">领取卡券</view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. methods: {
  26. goUrl(url) {
  27. this.$navTo(url);
  28. }
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. .nav {
  34. position: relative;
  35. margin-top: 30rpx;
  36. margin-bottom: 30rpx;
  37. border-radius: 10rpx;
  38. background-color: #ffffff;
  39. box-shadow: #666;
  40. padding: 40rpx 0;
  41. border: solid 1rpx #ccc;
  42. margin: 0 10rpx 25rpx 10rpx;
  43. display: flex;
  44. align-items: center;
  45. justify-content: center;
  46. .item {
  47. flex: 1;
  48. display: flex;
  49. flex-direction: column;
  50. justify-content: center;
  51. align-items: center;
  52. position: relative;
  53. .icon {
  54. width: 60rpx;
  55. height: 60rpx;
  56. margin: 28rpx;
  57. }
  58. .title {
  59. font-size: 24rpx;
  60. color: #666;
  61. font-weight: 600;
  62. }
  63. .content {
  64. font-size: 20rpx;
  65. color: #666;
  66. font-weight: 400;
  67. }
  68. }
  69. }
  70. </style>