Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

refundPage.vue 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <view class="oderPage">
  3. <view class="content">
  4. <text class="title">卡上余额(元)</text>
  5. <view class="">
  6. <text style="font-size: 30rpx;">¥</text>123.98
  7. </view>
  8. </view>
  9. <view class="from">
  10. <view class="from_item">
  11. <text>退费类型:</text>
  12. <u-radio-group v-model="radiovalue1">
  13. <u-radio :customStyle="{marginBottom: '8px'}" activeColor="#2CE242"
  14. v-for="(item, index) in radiolist1" :key="index" :label="item.disabled" :name="item.name"
  15. @change="radioChange">
  16. {{item.name}}
  17. </u-radio>
  18. </u-radio-group>
  19. </view>
  20. <view class="from_item" v-if="flag">
  21. <text>联系人姓名:</text>
  22. <input type="text" name="" id="" placeholder="请输入">
  23. </view>
  24. <view class="from_item" v-if="flag">
  25. <text>手机号:</text>
  26. <input type="text" name="" id="" value="13821934313">
  27. </view>
  28. <view class="from_item" v-if="flag">
  29. <text>开户行:</text>
  30. <input type="text" name="" id="" placeholder="请输入开户行">
  31. </view>
  32. <view class="from_item" v-if="flag">
  33. <text>退费银行卡号:</text>
  34. <input type="text" name="" id="" placeholder="请输入银行卡号">
  35. </view>
  36. </view>
  37. </view>
  38. <button class="submit">确认退费</button>
  39. </template>
  40. <script setup lang="ts">
  41. import {
  42. ref,
  43. reactive
  44. } from "vue";
  45. // 单选数据列表
  46. const radiolist1 = reactive([{
  47. name: '卡退费',
  48. disabled: false
  49. },
  50. {
  51. name: '余额补领',
  52. disabled: false
  53. },
  54. ], )
  55. // 单选默认数据
  56. const radiovalue1 = ref('卡退费')
  57. let flag = ref(true)
  58. // 单选
  59. const radioChange = (n) => {
  60. console.log('radioChange', n);
  61. if (n == '卡退费') {
  62. flag.value = true
  63. console.log(flag.value);
  64. } else {
  65. flag.value = false
  66. console.log(flag.value);
  67. }
  68. }
  69. </script>
  70. <style>
  71. page {
  72. width: 100%;
  73. height: 100%;
  74. display: flex;
  75. flex-direction: column;
  76. background-color: #F3F3F3;
  77. }
  78. </style>
  79. <style lang="scss" scoped>
  80. .oderPage {
  81. flex: 1;
  82. width: 100%;
  83. .content {
  84. display: flex;
  85. flex-direction: column;
  86. /* justify-content: center; */
  87. align-items: center;
  88. width: 750rpx;
  89. height: 266rpx;
  90. background-color: #fff;
  91. margin-bottom: 30rpx;
  92. padding: 75rpx 0;
  93. .title {
  94. font-size: 28rpx;
  95. font-family: Microsoft YaHei UI;
  96. font-weight: 400;
  97. color: #717171;
  98. margin-bottom: 40rpx;
  99. }
  100. view {
  101. font-size: 40rpx;
  102. font-family: Microsoft YaHei UI;
  103. font-weight: 400;
  104. color: #2A2A2A;
  105. font-weight: bold;
  106. }
  107. }
  108. .from {
  109. background-color: #fff;
  110. padding: 0 30rpx;
  111. .from_item {
  112. display: flex;
  113. flex-wrap: nowrap;
  114. justify-content: space-between;
  115. padding: 20rpx 0;
  116. border-bottom: #DCDCDC 1px solid;
  117. align-items: center;
  118. font-size: 28rpx;
  119. font-family: Microsoft YaHei;
  120. font-weight: 400;
  121. color: #666666;
  122. input {
  123. text-align: right;
  124. }
  125. }
  126. }
  127. }
  128. .submit {
  129. background: linear-gradient(to left, #43A1E0 0%, #13E7C1 100%);
  130. width: 670rpx;
  131. height: 80rpx;
  132. line-height: 80rpx;
  133. font-size: 32rpx;
  134. color: #fff;
  135. border-radius: 100rpx;
  136. position: fixed;
  137. bottom: 60rpx;
  138. left: 50%;
  139. transform: translate(-50%);
  140. }
  141. </style>