supplierRecorgButton.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template name="button">
  2. <view class="button-template">
  3. <!-- 底部按钮 -->
  4. <view class="button-content">
  5. <view class="btn btn-cancel" v-if="hanldData.mailer == '1'" @click.stop="btnConfirm('cancel',hanldData)">撤销发货</view>
  6. <view class="btn btn-cancel" @click.stop="btnConfirm('add',hanldData)">添加物流</view>
  7. <view class="btn btn-cancel" @click.stop="btnConfirm('qualifications',hanldData)">商品资质</view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default{
  13. name:"button",
  14. props:{
  15. hanldData: {
  16. type:Object
  17. }
  18. },
  19. data() {
  20. return{
  21. }
  22. },
  23. created(){
  24. },
  25. computed: {
  26. },
  27. methods:{
  28. btnConfirm(type,hanldData){
  29. let data = { hanldType:type,hanldData:hanldData }
  30. this.$emit('buttonConfirm',data)
  31. }
  32. }
  33. }
  34. </script>
  35. <style lang="scss">
  36. .button-template{
  37. width: 100%;
  38. height: auto;
  39. float: left;
  40. background: #FFFFFF;
  41. .button-content{
  42. width: 702rpx;
  43. padding: 0 24rpx;
  44. height: auto;
  45. float: left;
  46. position: relative;
  47. .share-code{
  48. width: 200rpx;
  49. height: 64rpx;
  50. line-height: 64rpx;
  51. color: #2A45FF;
  52. text-align: left;
  53. position: absolute;
  54. font-size: $font-size-28;
  55. font-weight: bold;
  56. left: 24rpx;
  57. top: 24rpx;
  58. }
  59. .btn{
  60. width: 160rpx;
  61. height: 64rpx;
  62. margin:22rpx;
  63. line-height: 64rpx;
  64. font-size:$font-size-26;
  65. color: #FFFFFF;
  66. text-align: center;
  67. border-radius: 34rpx;
  68. float: right;
  69. margin-right: 0;
  70. }
  71. .btn-color{
  72. background: $btn-confirm;
  73. margin: 22rpx 0 22rpx 22rpx;
  74. }
  75. .btn-cancel{
  76. background:#FFFFFF;
  77. color: #666666;
  78. border: 1px solid #666666;
  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>