WithdrawCheckConfirmPopup.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <template>
  2. <cwg-popup v-model:visible="visible" type="center" :mask-click="false" :showFooters="true" :showClose="false"
  3. :title="title">
  4. <view class="popup-content">
  5. <view class="info-section">
  6. <cwg-label-line-value :label="t('Custom.Deposit.Title11')" :value="loginDoc" v-if="loginDoc" />
  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')"
  11. :value="params.amount + ' (' + channelData.currency + ')'" 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. loginDoc: 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. title: String,
  51. // 其他可能需要的 props
  52. });
  53. const emit = defineEmits(['update:visible', 'confirm', 'cancel']);
  54. const { t, locale } = useI18n();
  55. const visible = computed({
  56. get: () => props.visible,
  57. set: (value) => emit('update:visible', value)
  58. });
  59. const cancel = () => {
  60. visible.value = false;
  61. emit('cancel');
  62. };
  63. const submit = async () => {
  64. visible.value = false;
  65. emit('confirm');
  66. };
  67. </script>
  68. <style lang="scss" scoped>
  69. @import "@/uni.scss";
  70. .popup-content {
  71. .info-section {
  72. margin-bottom: px2rpx(24);
  73. padding: px2rpx(20);
  74. background-color: #f8f9fa;
  75. border-radius: px2rpx(8);
  76. border: 1px solid #e9ecef;
  77. :deep(.cwg-label-line-value) {
  78. margin-bottom: px2rpx(12);
  79. &:last-child {
  80. margin-bottom: 0;
  81. }
  82. }
  83. }
  84. .form-section {
  85. margin-bottom: px2rpx(24);
  86. padding: px2rpx(20);
  87. background-color: #ffffff;
  88. border-radius: px2rpx(8);
  89. border: 1px solid #e9ecef;
  90. :deep(.uni-forms) {
  91. width: 100%;
  92. :deep(.uni-forms-item) {
  93. margin-bottom: px2rpx(16);
  94. :deep(.uni-forms-item__label) {
  95. font-size: px2rpx(14);
  96. color: #606266;
  97. margin-bottom: px2rpx(8);
  98. }
  99. :deep(.uni-forms-item__error) {
  100. font-size: px2rpx(12);
  101. color: #f56c6c;
  102. margin-top: px2rpx(4);
  103. }
  104. }
  105. }
  106. .phone-input-group {
  107. display: flex;
  108. align-items: center;
  109. gap: px2rpx(12);
  110. .area-code-input {
  111. flex: 0 0 px2rpx(100);
  112. input {
  113. width: 100%;
  114. height: px2rpx(40);
  115. padding: 0 px2rpx(12);
  116. border: 1px solid #dcdfe6;
  117. border-radius: px2rpx(4);
  118. font-size: px2rpx(14);
  119. transition: border-color 0.3s;
  120. &:focus {
  121. outline: none;
  122. border-color: #409eff;
  123. box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
  124. }
  125. }
  126. }
  127. .phone-separator {
  128. font-size: px2rpx(16);
  129. color: #909399;
  130. user-select: none;
  131. }
  132. .phone-input {
  133. flex: 1;
  134. input {
  135. width: 100%;
  136. height: px2rpx(40);
  137. padding: 0 px2rpx(12);
  138. border: 1px solid #dcdfe6;
  139. border-radius: px2rpx(4);
  140. font-size: px2rpx(14);
  141. transition: border-color 0.3s;
  142. &:focus {
  143. outline: none;
  144. border-color: #409eff;
  145. box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
  146. }
  147. }
  148. }
  149. }
  150. input {
  151. width: 100%;
  152. height: px2rpx(40);
  153. padding: 0 px2rpx(12);
  154. border: 1px solid #dcdfe6;
  155. border-radius: px2rpx(4);
  156. font-size: px2rpx(14);
  157. transition: border-color 0.3s;
  158. &:focus {
  159. outline: none;
  160. border-color: #409eff;
  161. box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
  162. }
  163. }
  164. }
  165. .merchant-info {
  166. padding: px2rpx(16);
  167. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  168. border-radius: px2rpx(8);
  169. font-size: px2rpx(13);
  170. line-height: 1.6;
  171. text-align: left;
  172. color: #606266;
  173. view {
  174. margin-bottom: px2rpx(8);
  175. &:last-child {
  176. margin-bottom: 0;
  177. }
  178. }
  179. }
  180. }
  181. @media (max-width: 768px) {
  182. .popup-content {
  183. .info-section,
  184. .form-section {
  185. padding: px2rpx(16);
  186. }
  187. .form-section {
  188. .phone-input-group {
  189. gap: px2rpx(8);
  190. .area-code-input {
  191. flex: 0 0 px2rpx(80);
  192. }
  193. input {
  194. height: px2rpx(36);
  195. font-size: px2rpx(13);
  196. }
  197. }
  198. }
  199. .merchant-info {
  200. padding: px2rpx(12);
  201. font-size: px2rpx(12);
  202. }
  203. }
  204. }
  205. </style>