refundMoney.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <view class="box">
  3. <view class="content">
  4. <view class="viewBg">
  5. <image src="../../static/img/icon_xinghao.png" mode="" style="width: 14rpx; height: 14rpx;"></image>
  6. <view class="leftTitle">退款原因</view>
  7. <picker class="width70" mode="selector" :range="reasonArray" @change="reasonChange" >
  8. <view class="blackColor" :class="{grayColor: reason==''}">{{reason?reason:'请选择'}}</view>
  9. </picker>
  10. <image src="../../static/img/rightArrow.png" mode="" style="width: 13rpx; height: 23rpx;"></image>
  11. </view>
  12. <view class="moneyBg">
  13. <view class="viewBg2">
  14. <image src="../../static/img/icon_xinghao.png" mode="" style="width: 14rpx; height: 14rpx;"></image>
  15. <view class="leftTitle">退款金额</view>
  16. <input class="blackColor" type="number" v-model ="money" placeholder="最大可退 ¥123"
  17. placeholder-style="color:#999999" />
  18. </view>
  19. <view class="grayColor">如全额退款,优惠券会退回到您的账户</view>
  20. </view>
  21. <view class="contentBg">
  22. <view class="leftTitle">补充描述</view>
  23. <textarea placeholder-style="color:#999999" placeholder="选填,请输入补充描述" v-model="exeContent"
  24. class="textareaCont" maxlength="-1" auto-height="true" @confirm="feedDone" />
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. data() {
  32. return {
  33. maxMoney:'',
  34. reasonArray:['不想要了','质量不好'],
  35. reason:'',
  36. money:'',
  37. exeContent:'',
  38. }
  39. },
  40. methods: {
  41. feedDone(e) {
  42. this.exeContent = e.target.value
  43. },
  44. reasonChange(e){
  45. this.reason = this.reasonArray[e.detail.value];
  46. }
  47. }
  48. }
  49. </script>
  50. <style scoped>
  51. .box {
  52. min-height: 100vh;
  53. background: #F4F5F7;
  54. padding-top: 20rpx;
  55. }
  56. .content{
  57. background-color: #FFFFFF;
  58. border-radius: 10rpx;
  59. margin: 20rpx 24rpx;
  60. padding: 0 20rpx;
  61. }
  62. .viewBg{
  63. display: flex;
  64. align-items: center;
  65. padding: 30rpx 0;
  66. border-bottom: 1rpx solid #EEEEEE;
  67. }
  68. .width70{
  69. width: 70%;
  70. }
  71. .moneyBg{
  72. padding: 30rpx 0;
  73. border-bottom: 1rpx solid #EEEEEE;
  74. }
  75. .viewBg2{
  76. display: flex;
  77. align-items: center;
  78. margin-bottom: 20rpx;
  79. }
  80. .leftTitle{
  81. color: #333333;
  82. font-size: 28rpx;
  83. width: 130rpx;
  84. margin-right: 50rpx;
  85. }
  86. .blackColor{
  87. color: #333333;
  88. font-size: 28rpx;
  89. }
  90. .grayColor{
  91. color: #999999;
  92. font-size: 28rpx;
  93. }
  94. .textareaCont {
  95. width: 70%;
  96. font-size: 28rpx;
  97. color: #333333;
  98. }
  99. .contentBg{
  100. display: flex;
  101. align-items: center;
  102. padding: 30rpx 0;
  103. }
  104. </style>