tuikanPop.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <view>
  3. <view class="contentColumnC popopayCt">
  4. <text class="titleTextB titleTx">退款</text>
  5. <view class="contentInRowC" style="margin-top: 30rpx;">
  6. <text>退款金额</text>
  7. <input class="noinputV" type="number" :value="refund_fee" placeholder="" @input="feeinput">
  8. </view>
  9. <view class="contentInRowS" style="width: 80%;margin-top: 40rpx;">
  10. <text class="tuukuanBtj" @click="jujuetk">拒绝</text>
  11. <text class="tuukuanBtq" @click="quxiao">取消</text>
  12. <text class="tuukuanBtt" @click="queren">确认</text>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. name:"tuikanPop",
  20. props:{
  21. refund_fee:0,
  22. },
  23. data() {
  24. return {
  25. jiner:-1
  26. };
  27. },
  28. methods:{
  29. queren(){
  30. if(this.jiner>this.refund_fee){
  31. uni.showToast({
  32. title:'退款金额大于订单金额',
  33. icon:"none",
  34. duration: 1200
  35. });
  36. return
  37. }
  38. if(this.jiner==''){
  39. uni.showToast({
  40. title:'请填写退款金额',
  41. icon:"none",
  42. duration: 1200
  43. });
  44. return
  45. }
  46. if(this.jiner==-1){
  47. this.jiner = this.refund_fee;
  48. }
  49. this.$emit('Etuikanresult',this.jiner);
  50. },
  51. quxiao(){
  52. this.$emit('Etuikanresult',-1);
  53. },
  54. jujuetk(){
  55. this.$emit('Etuikanresult',-2);
  56. },
  57. feeinput(event){
  58. this.jiner = event.target.value;
  59. },
  60. },
  61. }
  62. </script>
  63. <style lang="scss">
  64. .popopayCt{
  65. padding-top: 10rpx;
  66. padding-left: 30rpx;
  67. padding-right: 30rpx;
  68. padding-bottom: 30rpx;
  69. width: 580rpx;
  70. background-color:#F6F6F6;
  71. border-radius:20rpx 20rpx 20rpx 20rpx;
  72. box-shadow: 0rpx 0rpx 10rpx 0rpx darkgray;
  73. max-height: 80vh;
  74. background-color: white;
  75. }
  76. .titleTx{
  77. margin-top: 30rpx;
  78. }
  79. .noinputV{
  80. margin-left: 10rpx;
  81. width: 60%;
  82. color: black;
  83. border-radius: 8rpx;
  84. border: 1rpx solid lightgray;
  85. }
  86. .tuukuanBtj{
  87. line-height: 40rpx;
  88. padding-left: 12rpx;
  89. padding-right: 12rpx;
  90. border-radius: 20rpx;
  91. border: 2rpx solid #E03021;
  92. color: #E03021;
  93. background-color: #F6F6F6;
  94. }
  95. .tuukuanBtq{
  96. line-height: 40rpx;
  97. padding-left: 12rpx;
  98. padding-right: 12rpx;
  99. border-radius: 20rpx;
  100. border: 2rpx solid #E03021;
  101. color: darkmagenta;
  102. background-color: #F6F6F6;
  103. }
  104. .tuukuanBtt{
  105. line-height: 40rpx;
  106. padding-left: 12rpx;
  107. padding-right: 12rpx;
  108. border-radius: 20rpx;
  109. border: 2rpx solid #E03021;
  110. background-color: #F6F6F6;
  111. }
  112. </style>