WithdrawCheckConfirmPopup.vue 5.4 KB

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