refund.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view class="pages">
  3. <view class="" :style="{height: navHeight+'px' }"></view>
  4. <view class="navbar-box">
  5. <u-navbar title="开具发票" :safeAreaInsetTop="true" @leftClick="leftClick" :titleStyle="{color:'#fff'}" leftIconColor="#fff" bgColor="#EF1818"></u-navbar>
  6. </view>
  7. <view class="page-wrap">
  8. <view class="box base-info">
  9. <view class="title u-flex u-row-between">
  10. <text>申请退款金额</text>
  11. <text>¥ 68.6</text>
  12. </view>
  13. <view class="con">
  14. (预计3个工作日内退回)
  15. </view>
  16. </view>
  17. <view class="box reason">
  18. <view class="title">退款原因(必填)</view>
  19. <view class="select-reason u-flex u-row-between" @click="reasonshow=true">
  20. <text>{{reason||'请选择原因'}}</text>
  21. <u-icon name="arrow-down" color="#E5E5E5" size="36rpx"></u-icon>
  22. </view>
  23. <u-picker :show="reasonshow" :columns="reasonList" @confirm="confirmReason" @cancel="reasonshow=false"></u-picker>
  24. </view>
  25. </view>
  26. <view class="btn-wrap">
  27. <view class="inner">
  28. <view class="btn">确认退款</view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. import { systemInfo } from "@/mixin.js";
  35. export default {
  36. mixins: [systemInfo], // 使用mixin
  37. data() {
  38. return {
  39. staticUrl:this.$commonConfig.staticUrl,
  40. reason:'',
  41. reasonshow:false,
  42. reasonList:[
  43. [
  44. '选错场次',
  45. '不想看了',
  46. ]
  47. ],
  48. params:{
  49. }
  50. }
  51. },
  52. onShow() {
  53. },
  54. onLoad(page) {
  55. console.log('page',page);
  56. this.getSystemInfo();
  57. },
  58. methods: {
  59. leftClick(e){
  60. let pages = getCurrentPages();
  61. if(pages.length==1){
  62. uni.$u.route('/pages/index/index')
  63. }else{
  64. uni.navigateBack()
  65. };
  66. },
  67. confirmReason(e){
  68. console.log('confirmReason',e.value[0]);
  69. this.reason = e.value[0];
  70. this.reasonshow = false;
  71. }
  72. }
  73. }
  74. </script>
  75. <style>
  76. page{background-color: #F7F7F9;}
  77. </style>
  78. <style lang="scss" scoped>
  79. .page-wrap{
  80. padding: 32rpx 16rpx;
  81. }
  82. .box{
  83. margin-bottom: 24rpx;
  84. background: #FFFFFF;
  85. box-shadow: 0rpx 0rpx 20rpx 2rpx rgba(221,221,221,0.5);
  86. border-radius: 20rpx;
  87. padding: 36rpx 24rpx;
  88. .title{
  89. font-size: 28rpx;
  90. font-weight: 500;
  91. color: #2D2D2D;
  92. margin-bottom: 38rpx;
  93. }
  94. }
  95. .base-info{
  96. .con{
  97. font-size: 24rpx;
  98. font-weight: 400;
  99. color: #7F7F7F;
  100. text-align: right;
  101. }
  102. }
  103. .reason{
  104. .select-reason{
  105. height: 64rpx;
  106. line-height: 64rpx;
  107. border-radius: 8rpx;
  108. border: 2rpx solid #E5E5E5;
  109. padding: 0 24rpx;
  110. font-size: 24rpx;
  111. font-weight: 400;
  112. color: #363636;
  113. }
  114. }
  115. .btn-wrap{
  116. height: 92rpx;
  117. .inner{
  118. position: fixed;
  119. left: 0;
  120. right: 0;
  121. bottom: 66rpx;
  122. }
  123. .btn{
  124. height: 92rpx;
  125. line-height: 92rpx;
  126. width:80%;
  127. margin: 0 auto;
  128. background: linear-gradient(90deg, #FF7878 0%, #ED0000 100%);
  129. border-radius: 46rpx;
  130. font-size: 28rpx;
  131. font-weight: 400;
  132. color: #FFFFFF;
  133. text-align: center;
  134. }
  135. }
  136. </style>