ruku_type.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <view class="ruku-type-container">
  3. <view class="ruku-type-item" @click="toUrlLink('ruku_new')">
  4. <view class="type-icon"></view>
  5. <view class="type-name">订货入库</view>
  6. </view>
  7. <view class="ruku-type-item" @click="toUrlLink('ruku_new2')">
  8. <view class="type-icon"></view>
  9. <view class="type-name">客户退货入库</view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. methods: {
  16. toUrlLink(url) {
  17. if(!url) return false
  18. uni.navigateTo({
  19. url: `./${url}`
  20. })
  21. }
  22. }
  23. }
  24. </script>
  25. <style lang="scss" scoped>
  26. page {
  27. display: flex;
  28. flex-direction: column;
  29. .ruku-type-container {
  30. flex: 1;
  31. overflow: hidden;
  32. background-color: #F9F9FB;
  33. padding: 30rpx;
  34. box-sizing: border-box;
  35. .ruku-type-item {
  36. width: 100%;
  37. height: 428rpx;
  38. border-radius: 24rpx;
  39. margin-bottom: 30rpx;
  40. display: flex;
  41. align-items: center;
  42. justify-content: center;
  43. flex-direction: column;
  44. position: relative;
  45. &::after {
  46. content: "";
  47. display: block;
  48. width: 50rpx;
  49. height: 50rpx;
  50. background: url(../../static/new_stock/arrow.png) center no-repeat;
  51. background-size: 100%;
  52. position: absolute;
  53. right: 70rpx;
  54. top: 50%;
  55. transform: translateY(-50%);
  56. }
  57. .type-icon{
  58. width: 140rpx;
  59. height: 140rpx;
  60. border-radius: 50%;
  61. margin-bottom: 30rpx;
  62. position: relative;
  63. }
  64. .type-name {
  65. color: #FFFFFF;
  66. font-size: 44rpx;
  67. line-height: 60rpx;
  68. }
  69. &:nth-of-type(1) {
  70. background: url(../../static/new_stock/ruku-type-bg.png) center no-repeat, linear-gradient(88deg, #FF8546 0%, #FC3B3B 100%);
  71. background-size: 100%;
  72. .type-icon {
  73. background: url(../../static/new_stock/ruku-type-1.png) center no-repeat, #ffffff;
  74. background-size: 80rpx 80rpx;
  75. }
  76. }
  77. &:nth-of-type(2) {
  78. background: url(../../static/new_stock/ruku-type-bg.png) center no-repeat, linear-gradient(272deg, #FF5989 0%, #FF8FE1 100%);
  79. background-size: 100%;
  80. .type-icon {
  81. background: url(../../static/new_stock/ruku-type-2.png) center no-repeat, #ffffff;
  82. background-size: 80rpx 80rpx;
  83. }
  84. }
  85. }
  86. }
  87. }
  88. </style>