supplierRecorgButton.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template name="button">
  2. <view class="button-template">
  3. <!-- 底部按钮 -->
  4. <view class="button-content">
  5. <view class="btn btn-color" v-if="hanldData.mailer == '1'" @click.stop="btnConfirm('cancel',hanldData)">撤销发货</view>
  6. <view class="btn btn-color" @click.stop="btnConfirm('add',hanldData)">添加物流</view>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. export default{
  12. name:"button",
  13. props:{
  14. hanldData: {
  15. type:Object
  16. }
  17. },
  18. data() {
  19. return{
  20. }
  21. },
  22. created(){
  23. },
  24. computed: {
  25. },
  26. methods:{
  27. btnConfirm(type,hanldData){
  28. let data = { hanldType:type,hanldData:hanldData }
  29. this.$emit('buttonConfirm',data)
  30. }
  31. }
  32. }
  33. </script>
  34. <style lang="scss">
  35. .button-template{
  36. width: 100%;
  37. height: auto;
  38. float: left;
  39. background: #FFFFFF;
  40. .button-content{
  41. width: 702rpx;
  42. padding: 0 24rpx;
  43. height: auto;
  44. float: left;
  45. position: relative;
  46. .share-code{
  47. width: 200rpx;
  48. height: 64rpx;
  49. line-height: 64rpx;
  50. color: #2A45FF;
  51. text-align: left;
  52. position: absolute;
  53. font-size: $font-size-28;
  54. font-weight: bold;
  55. left: 24rpx;
  56. top: 24rpx;
  57. }
  58. .btn{
  59. width: 160rpx;
  60. height: 64rpx;
  61. margin:22rpx;
  62. line-height: 64rpx;
  63. font-size:$font-size-26;
  64. color: #FFFFFF;
  65. text-align: center;
  66. border-radius: 10rpx;
  67. float: right;
  68. }
  69. .btn-color{
  70. background: $btn-confirm;
  71. margin: 22rpx 0 22rpx 22rpx;
  72. }
  73. .btn-cancel{
  74. background:#FFFFFF;
  75. color: #999999;
  76. float: left;
  77. margin: 22rpx 0;
  78. text-align: left;
  79. }
  80. .btn-delete{
  81. background:linear-gradient(315deg,rgba(255,163,3,1) 0%,rgba(255,53,1,1) 100%);
  82. }
  83. .btn-query{
  84. background:linear-gradient(135deg,rgba(255,212,129,1) 0%,rgba(198,129,0,1) 100%);
  85. }
  86. .btn-confirm{
  87. background:linear-gradient(315deg,rgba(231,0,0,1) 0%,rgba(255,104,1,1) 100%);
  88. }
  89. .btn-share{
  90. background:linear-gradient(315deg,rgba(0,212,150,1) 0%,rgba(126,243,174,1) 100%);
  91. margin-right: 0;
  92. position: relative;
  93. .tips{
  94. width: 160rpx;
  95. height: 34rpx;
  96. padding: 10rpx 10rpx;
  97. background:linear-gradient(45deg,rgba(0,0,0,1) 0%,rgba(87,87,87,1) 100%);
  98. box-shadow:0px 2px 4px 0px rgba(0,0,0,0.2);
  99. border-radius: 8rpx;
  100. position: absolute;
  101. color: #FFFFFF;
  102. line-height: 34rpx;
  103. font-size: $font-size-24;
  104. text-align: left;
  105. right: 0;
  106. top: -65rpx;
  107. &:before{
  108. content: "";
  109. width: 25rpx;
  110. height: 25rpx;
  111. background:linear-gradient(45deg,rgba(0,0,0,1) 0%,rgba(87,87,87,1) 100%);
  112. position: absolute;
  113. bottom: -8rpx;
  114. right: 30rpx;
  115. z-index: -1;
  116. transform:rotate(45deg);
  117. }
  118. }
  119. }
  120. }
  121. }
  122. </style>