WithdrawCheckConfirmPopup.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <template>
  2. <cwg-popup v-model:visible="visible" type="center" :mask-click="false" :showFooters="true" :showClose="false"
  3. :title="t('Home.page_customer.item3')">
  4. <view class="popup-content">
  5. <view class="info-section">
  6. <cwg-label-line-value :label="t('Custom.Deposit.Title11')" :value="login" v-if="login" />
  7. <cwg-label-line-value :label="t('Custom.Deposit.Title22')"
  8. :value="locale == 'cn' ? channelData.name : channelData.enName" v-if="channelData.code" />
  9. <cwg-label-line-value :label="t('news_add_field.Label.Title4')" :value="selectCodes" v-if="code" />
  10. <cwg-label-line-value :label="t('Custom.Withdraw.Title3')" :value="params.amount + ' ' + channelData.currency"
  11. v-if="params.amount" />
  12. <cwg-label-line-value :label="t('Custom.Withdraw.item7')" :value="''" v-if="type !== 'IB'">
  13. <template #operation1>
  14. <view v-if="FreeNumber > 0 && dialogCheckConfirm_form.feeAmount > 0">
  15. <text style="text-decoration:line-through">
  16. ${{
  17. dialogCheckConfirm_form.feeAmount
  18. }}
  19. </text>
  20. &nbsp;&nbsp;
  21. <text>
  22. $0.00
  23. </text>
  24. </view>
  25. <view v-else>${{ dialogCheckConfirm_form.feeAmount }}</view>
  26. </template>
  27. </cwg-label-line-value>
  28. </view>
  29. </view>
  30. <template #footer>
  31. <button @click="cancel">{{ t('Btn.Cancel') }}</button>
  32. <button type="primary" @click="submit">{{ t('Btn.Confirm') }}</button>
  33. </template>
  34. </cwg-popup>
  35. </template>
  36. <script setup>
  37. import { ref, computed } from 'vue';
  38. import { useI18n } from 'vue-i18n';
  39. const props = defineProps({
  40. visible: { type: Boolean, default: false },
  41. login: String,
  42. channelData: Object,
  43. code: String,
  44. selectCodes: String,
  45. params: Object,
  46. userName: String,
  47. FreeNumber: Number,
  48. dialogCheckConfirm_form: Object,
  49. type: String,
  50. // 其他可能需要的 props
  51. });
  52. const emit = defineEmits(['update:visible', 'confirm', 'cancel']);
  53. const { t, locale } = useI18n();
  54. const visible = computed({
  55. get: () => props.visible,
  56. set: (value) => emit('update:visible', value)
  57. });
  58. const cancel = () => {
  59. visible.value = false;
  60. emit('cancel');
  61. };
  62. const submit = async () => {
  63. visible.value = false;
  64. emit('confirm');
  65. };
  66. </script>
  67. <style lang="scss" scoped>
  68. @import "@/uni.scss";
  69. .popup-content {
  70. .info-section {
  71. margin-bottom: px2rpx(24);
  72. padding: px2rpx(20);
  73. background-color: #f8f9fa;
  74. border-radius: px2rpx(8);
  75. border: 1px solid #e9ecef;
  76. :deep(.cwg-label-line-value) {
  77. margin-bottom: px2rpx(12);
  78. &:last-child {
  79. margin-bottom: 0;
  80. }
  81. }
  82. }
  83. .form-section {
  84. margin-bottom: px2rpx(24);
  85. padding: px2rpx(20);
  86. background-color: #ffffff;
  87. border-radius: px2rpx(8);
  88. border: 1px solid #e9ecef;
  89. :deep(.uni-forms) {
  90. width: 100%;
  91. :deep(.uni-forms-item) {
  92. margin-bottom: px2rpx(16);
  93. :deep(.uni-forms-item__label) {
  94. font-size: px2rpx(14);
  95. color: #606266;
  96. margin-bottom: px2rpx(8);
  97. }
  98. :deep(.uni-forms-item__error) {
  99. font-size: px2rpx(12);
  100. color: #f56c6c;
  101. margin-top: px2rpx(4);
  102. }
  103. }
  104. }
  105. .phone-input-group {
  106. display: flex;
  107. align-items: center;
  108. gap: px2rpx(12);
  109. .area-code-input {
  110. flex: 0 0 px2rpx(100);
  111. input {
  112. width: 100%;
  113. height: px2rpx(40);
  114. padding: 0 px2rpx(12);
  115. border: 1px solid #dcdfe6;
  116. border-radius: px2rpx(4);
  117. font-size: px2rpx(14);
  118. transition: border-color 0.3s;
  119. &:focus {
  120. outline: none;
  121. border-color: #409eff;
  122. box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
  123. }
  124. }
  125. }
  126. .phone-separator {
  127. font-size: px2rpx(16);
  128. color: #909399;
  129. user-select: none;
  130. }
  131. .phone-input {
  132. flex: 1;
  133. input {
  134. width: 100%;
  135. height: px2rpx(40);
  136. padding: 0 px2rpx(12);
  137. border: 1px solid #dcdfe6;
  138. border-radius: px2rpx(4);
  139. font-size: px2rpx(14);
  140. transition: border-color 0.3s;
  141. &:focus {
  142. outline: none;
  143. border-color: #409eff;
  144. box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
  145. }
  146. }
  147. }
  148. }
  149. input {
  150. width: 100%;
  151. height: px2rpx(40);
  152. padding: 0 px2rpx(12);
  153. border: 1px solid #dcdfe6;
  154. border-radius: px2rpx(4);
  155. font-size: px2rpx(14);
  156. transition: border-color 0.3s;
  157. &:focus {
  158. outline: none;
  159. border-color: #409eff;
  160. box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
  161. }
  162. }
  163. }
  164. .merchant-info {
  165. padding: px2rpx(16);
  166. background-color: #f5f7fa;
  167. border-radius: px2rpx(8);
  168. font-size: px2rpx(13);
  169. line-height: 1.6;
  170. text-align: left;
  171. color: #606266;
  172. view {
  173. margin-bottom: px2rpx(8);
  174. &:last-child {
  175. margin-bottom: 0;
  176. }
  177. }
  178. }
  179. }
  180. @media (max-width: 768px) {
  181. .popup-content {
  182. .info-section,
  183. .form-section {
  184. padding: px2rpx(16);
  185. }
  186. .form-section {
  187. .phone-input-group {
  188. gap: px2rpx(8);
  189. .area-code-input {
  190. flex: 0 0 px2rpx(80);
  191. }
  192. input {
  193. height: px2rpx(36);
  194. font-size: px2rpx(13);
  195. }
  196. }
  197. }
  198. .merchant-info {
  199. padding: px2rpx(12);
  200. font-size: px2rpx(12);
  201. }
  202. }
  203. }
  204. </style>