deposit.vue 97 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569
  1. <template>
  2. <cwg-page-wrapper class="create-page" :isHeaderFixed="true">
  3. <cwg-header :title="t('Home.page_customer.item2')" />
  4. <view class="container">
  5. <uni-loading v-if="loading" />
  6. <view class="row" v-else>
  7. <!-- 电汇提示 -->
  8. <p v-if="isStep3 && ['UNION_PAY_TELEGRAPHIC', 'UNION_PAY_TELEGRAPHIC_SPECIAL', 'UNION_PAY_TELEGRAPHIC_TWO'].includes(channelData.code)"
  9. class="text-secondary" v-t="'Custom.Deposit.Tips'" />
  10. <!-- 特别提示(B2BINPAY) -->
  11. <p v-if="isStep3 && bankOptions.length && channelData.code == 'B2BINPAY'" class="text-secondary"
  12. v-t="'Custom.Deposit.Des'" />
  13. <view class="col-lg-8">
  14. <view class="card">
  15. <view class="border-0 card-header">
  16. <uni-forms v-if="isStep3" ref="formRef" :model="params" :rules="rules" label-position="top"
  17. validate-trigger="submit" :label-width="300" class="base-info-form">
  18. <view class="row">
  19. <!-- 步骤1:选择账户 -->
  20. <view class="col-lg-6" v-if="step2">
  21. <h5 class="mb-3" v-t="'Custom.Deposit.Title1'"></h5>
  22. <uni-forms-item>
  23. <cwg-combox :clearable="false" v-model:value="loginValue"
  24. :options="loginComboxOptions"
  25. :placeholder="t('placeholder.choose')" /></uni-forms-item>
  26. </view>
  27. <!-- 步骤2:支付通道列表(卡片布局) -->
  28. <view class="col-lg-6" v-if="step2">
  29. <h5 class="mb-3" v-t="'Custom.Deposit.Title2'"></h5>
  30. <uni-forms-item>
  31. <cwg-combox :clearable="false" v-model:value="channelId"
  32. :options="channelListOptions" :placeholder="t('placeholder.choose')">
  33. </cwg-combox></uni-forms-item>
  34. </view>
  35. <!-- 信用卡选择区域 -->
  36. <view class="col-lg-6" v-if="isStep3 && channelData.confirmCreditCard == 1">
  37. <h5 class="mb-3" v-t="'PersonalManagement.Label.selectCreditCard'"></h5>
  38. <uni-forms-item>
  39. <cwg-combox :clearable="false" v-model:value="myId"
  40. :options="creditCardOptions" :placeholder="t('placeholder.choose')"
  41. @change="selectCode" />
  42. </uni-forms-item>
  43. <h6 class="add-back mb-3">
  44. <text>{{ t('PersonalManagement.Label.addCreditCard') }}</text>
  45. <text class="add-btn crm-cursor" @click="openAddBankCard">{{
  46. t('Custom.Withdraw.addBank1') }}</text>
  47. </h6>
  48. </view>
  49. <!-- 银行选择(如有) -->
  50. <view class="col-lg-6" v-if="isStep3 && bankOptions.length">
  51. <h5 class="mb-3" v-t="'news_add_field.Label.Title4'"></h5>
  52. <uni-forms-item>
  53. <cwg-combox :clearable="false" v-model:value="code" :options="bankOptions"
  54. :placeholder="t('placeholder.choose')" @change="selectCode" />
  55. </uni-forms-item>
  56. </view>
  57. <!-- 电汇信息展示 -->
  58. <view class="col-lg-6"
  59. v-if="isStep3 && ['UNION_PAY_TELEGRAPHIC', 'UNION_PAY_TELEGRAPHIC_SPECIAL', 'UNION_PAY_TELEGRAPHIC_TWO'].includes(channelData.code)">
  60. <h5 class="mb-3" v-t="'Custom.Deposit.Title5'"></h5>
  61. <view class="wire-transfer-account">
  62. <view class="row"><text class="label SpecialColor">{{
  63. t('Custom.Deposit.bankUname') }}</text><text
  64. class="content SpecialColor">{{
  65. WireTransferAccount.bankUname || '--'
  66. }}</text></view>
  67. <view class="row"><text class="label">{{ t('Custom.Deposit.bankName')
  68. }}</text><text class="content">{{ WireTransferAccount.bankName
  69. ||
  70. '--'
  71. }}</text></view>
  72. <view class="row"><text class="label SpecialColor">{{
  73. t('Custom.Deposit.bankCardNum') }}</text><text
  74. class="content SpecialColor">{{
  75. WireTransferAccount.bankCardNum || '--'
  76. }}</text></view>
  77. <view class="row"><text class="label">{{ t('Custom.Deposit.bankAddr')
  78. }}</text><text class="content">{{ WireTransferAccount.bankAddr
  79. ||
  80. '--'
  81. }}</text></view>
  82. <view class="row"><text class="label SpecialColor">{{
  83. t('Custom.Deposit.swiftCode') }}</text><text
  84. class="content SpecialColor">{{
  85. WireTransferAccount.swiftCode || '--'
  86. }}</text></view>
  87. <view class="row"><text class="label">{{ t('Custom.Deposit.bankCode')
  88. }}</text><text class="content">{{ WireTransferAccount.bankCode
  89. ||
  90. '--'
  91. }}</text></view>
  92. <view class="row"><text class="label SpecialColor">{{
  93. t('Custom.Recording.Note')
  94. }}</text><text class="content SpecialColor">{{
  95. WireTransferAccount.bankMsg || '--' }}</text></view>
  96. </view>
  97. </view>
  98. <!-- 数字货币信息展示 -->
  99. <!-- <view class="col-lg-6"
  100. v-if="isStep3 && channelData.code && channelData.code.indexOf('DIGITAL_PAY_TYPE_KEY') === 0">
  101. <h5 class="mb-3" v-t="'Custom.Deposit.DigitalAcc'"></h5>
  102. <view class="wire-transfer-account">
  103. <view class="row"><text class="label SpecialColor">{{
  104. t('Custom.Deposit.DigitalName') }}</text><text
  105. class="content SpecialColor">{{ WireTransferAccount.name
  106. + '-' +
  107. WireTransferAccount.type }}</text></view>
  108. <view class="row"><text class="label">{{ t('Custom.Withdraw.Title6')
  109. }}</text><text class="content">{{ WireTransferAccount.address ||
  110. '--'
  111. }}</text></view>
  112. <view class="row"><text class="label">QR Code</text>
  113. <image :src="Host05 + WireTransferAccount.url" mode="aspectFit"
  114. style="width: 100rpx; height: 100rpx;" />
  115. </view>
  116. </view>
  117. </view> -->
  118. <!-- 表单区域(含金额、预估金额、上传凭证、优惠码) -->
  119. <view class="col-lg-6">
  120. <h5 class="mb-3">
  121. {{ t('Custom.Deposit.Title3') + '(' + channelData.currency + ')' }}
  122. </h5>
  123. <!-- 金额输入 -->
  124. <view class="amount-box">
  125. <uni-forms-item name="amount" :error-message="amountErrorMessage"
  126. class="amount-input">
  127. <uni-easyinput type="number" v-model="params.amount"
  128. :placeholder="t('placeholder.input')" @blur="validateAmount" />
  129. </uni-forms-item>
  130. <!-- <view class="btn" v-t="'State.All'" @click="setAllAmount"></view> -->
  131. </view>
  132. </view>
  133. <!-- 预估金额(若有汇率) -->
  134. <view class="col-lg-6" v-if="channelData.rate">
  135. <h5 class="mb-3">
  136. <view class="label-with-icon">
  137. <text>{{ t('Custom.Deposit.EstimatedAmount') + '(' +
  138. `${channelData.transformCurrency || channelData.currency}` + ')'
  139. }}</text>
  140. <uni-tooltip placement="right">
  141. <!-- <view class="help-icon">ⓘ</view> -->
  142. <cwg-icon name="icon_about us" :size="16" />
  143. <template #content>
  144. <text>{{ t('Custom.Deposit.des') }}</text>
  145. </template>
  146. </uni-tooltip>
  147. </view>
  148. </h5>
  149. <uni-forms-item>
  150. <uni-easyinput v-model="params.amount1" disabled
  151. :placeholder="t('placeholder.input')" />
  152. </uni-forms-item>
  153. </view>
  154. <!-- 优惠码 -->
  155. <view class="col-lg-6">
  156. <h5 class="mb-3">
  157. <view class="label-with-icon">
  158. <text>{{ t('Custom.Deposit.PromoCode') }}</text>
  159. <uni-tooltip placement="right">
  160. <!-- <view class="help-icon">ⓘ</view> -->
  161. <cwg-icon name="icon_about us" :size="16" />
  162. <template #content>
  163. <text>{{ t('news_add_field.Des.item3') }}</text>
  164. </template>
  165. </uni-tooltip>
  166. </view>
  167. </h5>
  168. <uni-forms-item name="promoCode">
  169. <uni-easyinput v-model="params.promoCode"
  170. :placeholder="t('placeholder.input')" />
  171. </uni-forms-item>
  172. </view>
  173. <!-- 上传汇款凭证(特定渠道) -->
  174. <view class="col-lg-6" v-if="
  175. channelData.code == 'UNION_PAY_TELEGRAPHIC' ||
  176. channelData.code == 'UNION_PAY_TELEGRAPHIC_SPECIAL' ||
  177. channelData.code == 'UNION_PAY_TELEGRAPHIC_TWO'
  178. ">
  179. <h5 class="mb-3" v-t="'Custom.Deposit.UploadRemittanceVoucher'"></h5>
  180. <view>
  181. <uni-forms-item>
  182. <cwg-file-picker-wrapper v-model="imageUrl" :limit="1" :editable="true"
  183. :imageWidth="100" :imageHeight="100" :fileMediatype="'all'"
  184. uploadUrl="/common/upload" :baseUrl="Host80" />
  185. </uni-forms-item>
  186. </view>
  187. </view>
  188. <!-- ========== 赠金活动部分 ========== -->
  189. <!-- 10%赠金(年中赠金) -->
  190. <view v-if="tableData4Flag">
  191. <uni-forms-item class="agree" name="agree4">
  192. <label class="checkbox">
  193. <checkbox :checked="params.agree4"
  194. @click="params.agree4 = !params.agree4" />
  195. <text>{{ t('news_add_field1.activitiesNZ.itemDeposit1')
  196. }}</text>
  197. </label>
  198. <view style="line-height: 1.5; font-size: 14px">
  199. <text>{{ t('news_add_field1.activitiesNZ.itemDeposit2')
  200. }}</text>
  201. <text class="clause crm-cursor" @click="dialogClauseNZ = true">{{
  202. t('news_add_field1.activitiesNZ.itemDeposit3')
  203. }}</text>
  204. <text>{{ t('news_add_field1.activitiesNZ.itemDeposit4')
  205. }}</text>
  206. </view>
  207. </uni-forms-item>
  208. </view>
  209. <!-- 20%赠金(年中赠金) -->
  210. <view v-if="tableData4TwoFlag">
  211. <uni-forms-item class="agree" name="agree5">
  212. <label class="checkbox">
  213. <checkbox :checked="params.agree5"
  214. @click="params.agree5 = !params.agree5" />
  215. <text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit1')
  216. }}</text>
  217. </label>
  218. <view style="line-height: 1.5; font-size: 14px">
  219. <text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit2')
  220. }}</text>
  221. <text class="clause crm-cursor" @click="dialogClauseNZTwo = true">{{
  222. t('news_add_field1.activitiesNZTwo.itemDeposit3') }}</text>
  223. <text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit4')
  224. }}</text>
  225. </view>
  226. </uni-forms-item>
  227. </view>
  228. <!-- 赠送活动(动态) -->
  229. <view v-if="tableDataNewListFlag">
  230. <uni-forms-item class="agree" name="agree6">
  231. <label>
  232. <checkbox :checked="params.agree6"
  233. @click="params.agree6 = !params.agree6" />
  234. <text>{{ tableDataNewList.title }}</text>
  235. </label>
  236. <view style="line-height: 1.5; font-size: 14px">
  237. <text>{{ t('news_add_field1.activitiesNewList.item1') }}</text>
  238. <text class="clause crm-cursor" @click="dialogClauseNewList = true">{{
  239. tableDataNewList.title }}</text>
  240. <text>{{ t('news_add_field1.activitiesNewList.item2') }}</text>
  241. </view>
  242. </uni-forms-item>
  243. </view>
  244. <!-- 20%赠金申请(特定账户类型) -->
  245. <view
  246. v-if="(ACCType == 1 || ACCType == 2 || ACCType == 5 || ACCType == 6 || ACCType == 7) && anshiClose">
  247. <uni-forms-item class="agree" name="agree3">
  248. <label class="checkbox">
  249. <checkbox :checked="params.agree3"
  250. @click="params.agree3 = !params.agree3" />
  251. <text>{{ t('news_add_field1.deposit.item3') }}</text>
  252. </label>
  253. <view style="line-height: 1.5; font-size: 14px">
  254. <text>{{ t('news_add_field1.deposit.item4') }}</text>
  255. <text class="clause crm-cursor" @click="dialogClause1 = true">{{
  256. t('news_add_field1.deposit.item5') }}</text>
  257. <text>{{ t('news_add_field1.deposit.item6') }}</text>
  258. </view>
  259. </uni-forms-item>
  260. </view>
  261. <!-- 普通10%赠金(非年中、非特定账户) -->
  262. <view
  263. v-if="!tableData4Flag && !tableData4TwoFlag && !tableDataNewListFlag && (country != 'CN' || (country == 'CN' && (ACCType == 1 || ACCType == 2 || ACCType == 7 || ACCType == 5 || ACCType == 6 || ACCType == 8))) && ACCType != 3">
  264. <template v-if="isSupportedCountry && (ACCType == 2 || ACCType == 7)">
  265. <uni-forms-item class="agree" name="agree2">
  266. <label>
  267. <checkbox :checked="params.agree2"
  268. @click="params.agree2 = !params.agree2" />
  269. <text>{{ t('news_add_field1.deposit.item2_1') }}</text>
  270. </label>
  271. <view style="line-height: 1.5; font-size: 14px">
  272. <text>{{ t('Custom.Deposit.agree21') }}</text>
  273. <cwg-link type="pdf" title="Custom.Deposit.agree22_2"
  274. :url="`pdf/pdf4/100Bonus-en.pdf`" style="color: black" />
  275. <text>{{ t('Custom.Deposit.agree23_2') }}</text>
  276. </view>
  277. </uni-forms-item>
  278. </template>
  279. <template
  280. v-else-if="!isSupportedCountry && ACCType != 8 && !isAfterSeptember30()">
  281. <uni-forms-item class="agree" name="agree2">
  282. <label>
  283. <checkbox :checked="params.agree2"
  284. @click="params.agree2 = !params.agree2" />
  285. <text>{{ t('news_add_field1.deposit.item1') }}</text>
  286. </label>
  287. <view style="line-height: 1.5; font-size: 14px">
  288. <text>{{ t('Custom.Deposit.agree21') }}</text>
  289. <cwg-link type="pdf" title="Custom.Deposit.agree22"
  290. :url="`pdf/pdf4/${langCN}.pdf`" style="color: black" />
  291. <text>{{ t('Custom.Deposit.agree23_1') }}</text>
  292. </view>
  293. </uni-forms-item>
  294. </template>
  295. </view>
  296. <button class="btn btn-dark waves-effect waves-light" @click="submitConfirm">{{
  297. t('Btn.Submit')
  298. }}</button>
  299. </view>
  300. </uni-forms>
  301. </view>
  302. </view>
  303. </view>
  304. <view class="col-lg-4">
  305. <view class="tips" v-if="(introduce.introduce || introduce.enIntroduce)">
  306. <view>
  307. <cwg-rich-text class="attention"
  308. :nodes="isZh ? introduce.introduce : introduce.enIntroduce" />
  309. </view>
  310. </view>
  311. </view>
  312. </view>
  313. </view>
  314. <!-- 不参加活动弹出框 -->
  315. <cwg-dont-active-popup v-model:visible="dialogDontActive" :showFooters="true" @confirm="tosubmitConfirm" />
  316. <!-- 新年24用户提示弹窗 -->
  317. <NewYear24Popup v-model:visible="tableDataNewYear24Flag" />
  318. <!-- 越南用户提示弹窗 -->
  319. <VietnamNoticePopup v-model:visible="dialogVietnamNotice" />
  320. <!-- 提交后确认弹窗 -->
  321. <cwg-check-confirm-popup v-model:visible="dialogCheckConfirm" :title="t('Home.page_customer.item2')"
  322. :channelData="channelData" :code="code" :selectCodes="selectCodes" :params="params" :userName="userName"
  323. :login="loginValue" :loginDoc="loginValueDoc" @confirm="submit" />
  324. <!--提交后的弹出框-->
  325. <CheckPopup v-model:visible="dialogCheckSuccess" :goPayLink="goPayLink" @close="closeDia" />
  326. <!-- 提交后失败弹窗 -->
  327. <cwg-error-popup v-model:visible="dialogCheckError" :responseMessage="RES" />
  328. <!-- 最后失败弹窗 -->
  329. <cwg-error-popup v-model:visible="dialogError" @confirm="closeDia" :responseMessage="RES" />
  330. <!-- 最后成功弹窗 -->
  331. <cwg-success-popup v-model:visible="dialogSuccess" @confirm="closeDia" />
  332. <!-- 等待弹窗 -->
  333. <cwg-wait-popup v-model:visible="dialogCheckWait" :showFooters="false" />
  334. <!-- 赠金协议 -->
  335. <ClausePopup v-model:visible="dialogClause" country="CN" :isGuoQin="isGuoQin" />
  336. <!-- 赠金协议20 -->
  337. <Clause20Popup v-model:visible="dialogClause1" />
  338. <!-- 赠金协议10年中 -->
  339. <ClauseNZPopup v-model:visible="dialogClauseNZ" :title="t('news_add_field1.activitiesNZ.item6')"
  340. :startDate="tableData4.applicationStartTime" :endDate="tableData4.applicationEndTime" />
  341. <!-- 赠金协议20年中 -->
  342. <ClauseNZTwoPopup v-model:visible="dialogClauseNZTwo" :title="t('news_add_field1.activitiesNZTwo.item6')"
  343. :startDate="tableData4Two.applicationStartTime" :endDate="tableData4Two.applicationEndTime" />
  344. <!-- 赠送活动详情-协议 -->
  345. <ClauseNewListPopup v-model:visible="dialogClauseNewList" :content="tableDataNewList.content"
  346. :title="tableDataNewList.title" />
  347. <!--提交后完成弹出框-->
  348. <ChinaUnionPayPopup v-model:visible="dialogChinaUnionPay" />
  349. <!-- 重新提交弹窗 -->
  350. <DealResultPopup v-model:visible="dialogDealResult" :responseMessage="responseMessage"
  351. :title="dialogDealResultTitle" :initialData="dialogDealResult_form" :type="DealResultType"
  352. @confirm="submitDealResult" />
  353. <!-- KYC成功弹窗 -->
  354. <cwg-kyc-popup v-model:visible="dialogKyc" :qrText="text1" />
  355. <!-- 数字支付确认弹窗 -->
  356. <DigitalPayConfirmPopup v-model:visible="dialogDigitalPayConfirm" :WireTransferAccount="WireTransferAccount"
  357. @close="closeDigitalPayConfirm" @confirm="confirmDigitalPayModal" />
  358. </cwg-page-wrapper>
  359. </template>
  360. <script setup>
  361. import { ref, reactive, computed, watch, onMounted, nextTick, onUnmounted } from 'vue'
  362. import { useI18n } from 'vue-i18n'
  363. const { t, locale } = useI18n()
  364. import useUserStore from '@/stores/use-user-store'
  365. import { customApi } from '@/service/custom'
  366. import { financialApi } from '@/service/financial'
  367. import { activityApi } from '@/service/activity'
  368. import Config from '@/config/index'
  369. const { Code, Host80, Host04 } = Config
  370. import { initLink } from '@/utils/setUrl'
  371. import isImageType from '@/global/isImageType'
  372. import PaymentMethodsList from './components/PaymentMethodsList.vue'
  373. import CwgKycPopup from './components/KycPopup.vue'
  374. import DealResultPopup from './components/DealResultPopup.vue'
  375. import ChinaUnionPayPopup from './components/ChinaUnionPayPopup.vue'
  376. import ClauseNewListPopup from './components/ClauseNewListPopup.vue'
  377. import ClauseNZTwoPopup from './components/ClauseNZTwoPopup.vue'
  378. import ClauseNZPopup from './components/ClauseNZPopup.vue'
  379. import Clause20Popup from './components/Clause20Popup.vue'
  380. import ClausePopup from './components/ClausePopup.vue'
  381. import CheckPopup from './components/CheckPopup.vue'
  382. import CwgCheckConfirmPopup from './components/DepositCheckConfirmPopup.vue'
  383. import VietnamNoticePopup from './components/VietnamNoticePopup.vue'
  384. import NewYear24Popup from './components/NewYear24Popup.vue'
  385. import DigitalPayConfirmPopup from './components/digitalPayConfirmPopup.vue'
  386. // 假设原有导入路径保持不变
  387. import tool from "@/global/tool"
  388. import { userToken } from '@/composables/config'
  389. // import { createUploadRequest } from "@/lib/upload"
  390. // 常量
  391. const countries = [
  392. "DZ", "AO", "BJ", "BW", "BF", "CM", "CG", "CD", "CI", "DJ", "EG", "ET", "GA", "GM", "GH", "GN", "KE", "MG", "MW", "ML", "MR", "MA", "MZ", "NA", "NE", "NG", "RW", "SN", "SL", "SO", "ZA", "SS", "SD", "TZ", "TG", "TN", "UG", "ZM", "ZW", "LS", "BH", "IR", "IQ", "IL", "JO", "KW", "LB", "OM", "PS", "QA", "SA", "SY", "TR", "AE", "YE", "AR", "BO", "BR", "CL", "CO", "EC", "GY", "PY", "PE", "SR", "UY", "VE", "BZ", "CR", "SV", "GT", "HN", "NI", "PA", "AU", "CA", "AL", "AD", "AM", "AT", "AZ", "BY", "BE", "BA", "BG", "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "GE", "DE", "GR", "HU", "IS", "IE", "IT", "XK", "LV", "LI", "LT", "LU", "MT", "MD", "MC", "ME", "NL", "MK", "NO", "PL", "PT", "RO", "RU", "SM", "RS", "SK", "SI", "ES", "SE", "CH", "UA", "VA",
  393. ]
  394. // 用户信息
  395. const userStore = useUserStore()
  396. const userInfo = computed(() => userStore.userInfo)
  397. // 获取全局 Session 等,假设它们挂载在 uni 或 global 上
  398. const Session = {
  399. Get: (key, parse = false) => {
  400. const val = uni.getStorageSync(key)
  401. return parse ? JSON.parse(val) : val
  402. }
  403. }
  404. const handleFileUpdate = (val, type) => {
  405. if (type == '1') {
  406. params.requiteVoucherUrl = val
  407. }
  408. }
  409. const isZh = computed(() => ['cn', 'zhHant'].includes(locale.value))
  410. function isPdf(url, image) {
  411. let res = !!url
  412. if (image) {
  413. return res && url.substr(-3, 3) == 'pdf' &&
  414. url.substr(-3, 3) == 'PDF'
  415. }
  416. return res && (url.substr(-3, 3) == 'pdf' ||
  417. url.substr(-3, 3) == 'PDF')
  418. }
  419. const $pigeon = {
  420. MessageError: (msg) => uni.showToast({ title: msg, icon: 'none' }),
  421. MessageOK: (msg) => uni.showToast({ title: msg, icon: 'success' }),
  422. MessageWarning: (msg) => uni.showToast({ title: msg, icon: 'none' }),
  423. MessageConfirm: (msg, title, confirmText, cancelText, onConfirm, onCancel, options = {}) => {
  424. uni.showModal({
  425. title,
  426. content: msg,
  427. confirmText,
  428. cancelText,
  429. success: (res) => {
  430. if (res.confirm) onConfirm && onConfirm()
  431. else if (res.cancel) onCancel && onCancel()
  432. }
  433. })
  434. }
  435. }
  436. const $route = { query: {} } // 需从外部注入
  437. // 响应式数据
  438. const loginValue = ref("")
  439. const loginValueDoc = ref("")
  440. const metaInfo = ref(null)
  441. const text1 = ref("")
  442. const dialogKyc = ref(false)
  443. const requiteVoucherUrl = ref("")
  444. const limitedStatus = ref(null)
  445. const limitedStatusCheck = ref(false)
  446. const pictLoadingImg = ref(false)
  447. const flag = ref(false)
  448. const RES = ref("")
  449. const imgUrl = ref(Host80)
  450. const Host05 = ref(Config.Host05)
  451. const loginOptions = ref([])
  452. const code = ref("")
  453. const selectCodes = ref("")
  454. const bankValid = ref("")
  455. const requestUrl = ref("")
  456. const isStep3 = ref(false)
  457. const step2 = ref(false)
  458. const step3 = ref(false)
  459. const value = ref("")
  460. const giveLoginJoin = ref("")
  461. const openType = ref("")
  462. const dialogInfoTradingAdd = ref(false)
  463. const ruleForm = reactive({
  464. bankInfo: [],
  465. bankWrit: [],
  466. bankCredit: []
  467. })
  468. const bankInfoList = ref([])
  469. const bank = ref("")
  470. const myId = ref(null)
  471. const bankPayType = ref("")
  472. const form = reactive({})
  473. const dialogDealResult = ref(false)
  474. const dialogDealResult_form = reactive({})
  475. const DealResultType = ref(null)
  476. const DealResultResult = ref("")
  477. const dialogDealResultTitle = ref("")
  478. const anshiClose = ref(true)
  479. const isChannel = ref(true)
  480. const pictLoading = ref(false)
  481. const tableData = reactive({
  482. International_Transfer: [],
  483. China_UnionPay: [],
  484. Digital_Currency: [],
  485. Electronic_Wallet: [],
  486. Ucard_Wallet: []
  487. })
  488. const tableData1 = reactive({
  489. International_Transfer: [],
  490. China_UnionPay: [],
  491. Digital_Currency: [],
  492. Electronic_Wallet: [],
  493. Ucard_Wallet: []
  494. })
  495. //通道table-选择前后
  496. const activeTab = ref(1)
  497. // 🔥 自动过滤掉空数据的 tab
  498. const tabsConfig = computed(() => {
  499. const allTabs = [
  500. { text: t('Custom.Deposit.Channel3'), value: 1, type: 'Digital_Currency' },
  501. { text: t('Custom.Deposit.Channel2'), value: 2, type: 'China_UnionPay' },
  502. { text: t('Custom.Deposit.Channel4'), value: 3, type: 'Electronic_Wallet' },
  503. { text: t('Custom.Deposit.Channel1'), value: 4, type: 'International_Transfer' },
  504. { text: t('card.title'), value: 5, type: 'Ucard_Wallet' },
  505. ]
  506. // ✅ 只保留有数据的 tab
  507. return allTabs.filter(tab => {
  508. console.log(tableData1[tab.type], tab.type);
  509. return tableData1[tab.type]?.length > 0
  510. })
  511. })
  512. // 当前选中的 tab 项
  513. const currentTab = computed(() => tabsConfig.value.find(t => t.value === activeTab.value))
  514. // 当前要渲染的表格数据
  515. const currentTableData = computed(() => {
  516. const type = currentTab.value?.type
  517. return type ? tableData[type] || [] : []
  518. })
  519. // ✅ 监听 tab 变化,自动选中第一个有数据的 tab
  520. watch(
  521. tabsConfig,
  522. (newTabs) => {
  523. if (newTabs.length > 0) {
  524. activeTab.value = newTabs[0].value // 选中第一个
  525. }
  526. },
  527. { immediate: true }
  528. )
  529. watch(
  530. currentTab,
  531. (newTabs) => {
  532. // showTable()
  533. },
  534. { immediate: true }
  535. )
  536. const bankDate = ref([])
  537. const channelData = reactive({})
  538. const WireTransferAccount = reactive({})
  539. const actionAdd1 = ref("")
  540. const actionAdd2 = ref(Host04 + "/activity/requite/voucher/upload")
  541. const imageUrl = ref("")
  542. const imageUrl1 = ref("")
  543. const introduce = reactive({
  544. introduce: "",
  545. enIntroduce: ""
  546. })
  547. const params = reactive({
  548. amount: "",
  549. amount1: "",
  550. promoCode: "",
  551. agree: false,
  552. agree2: false,
  553. agree3: false,
  554. agree4: false,
  555. agree5: false,
  556. agree6: false
  557. })
  558. const resetForm = () => {
  559. //表单重置后,需要手动重置一些状态
  560. params.amount = ""
  561. params.amount1 = ""
  562. params.promoCode = ""
  563. params.agree = false
  564. params.agree2 = false
  565. params.agree3 = false
  566. params.agree4 = false
  567. params.agree5 = false
  568. params.agree6 = false
  569. form.bankUname = undefined
  570. form.bankCardNum = undefined
  571. form.cvv = undefined
  572. form.expiryMonth = undefined
  573. form.expiryYear = undefined
  574. form.pin = undefined
  575. amountErrorMessage.value = ""
  576. requiteVoucherUrl.value = ""
  577. imageUrl.value = ""
  578. imageUrl1.value = ""
  579. }
  580. const formRef = ref(null)
  581. const mAmount = reactive({
  582. minAmount: "",
  583. maxAmount: ""
  584. })
  585. const dialogCheck = ref(false)
  586. const dialogVisible = ref(false)
  587. const dialogCheckWait = ref(false)
  588. const dialogCheckOK = ref(false)
  589. const goPayLink = ref("")
  590. const dialogCheckConfirm = ref(false)
  591. const dialogCheckConfirm_form = reactive({
  592. confirmName: "",
  593. confirmAreaCode: "",
  594. confirmPhone: ""
  595. })
  596. const dialogClause = ref(false)
  597. const dialogClause1 = ref(false)
  598. const dialogClauseNZ = ref(false)
  599. const dialogClauseNZTwo = ref(false)
  600. const dialogClauseNewList = ref(false)
  601. const ACCType = ref(null)
  602. const CheckExistSuccess = ref(false)
  603. const dialogChinaUnionPay = ref(false)
  604. const tableData4Flag = ref(false)
  605. const tableData4 = reactive({})
  606. const tableData4TwoFlag = ref(false)
  607. const tableData4Two = reactive({})
  608. const tableDataNewListFlag = ref(false)
  609. const tableDataNewList = reactive({})
  610. const dialogDontActive = ref(false)
  611. const dialogVietnamNotice = ref(false)
  612. const tableDataNewYear24Flag = ref(false)
  613. const tableDataNewYear24 = ref(false)
  614. const rules = computed(() => ({
  615. amount: {
  616. rules: [
  617. {
  618. required: true,
  619. errorMessage: t('vaildate.amount.format1'),
  620. },
  621. {
  622. validateFunction: (rule, value, data, callback) => {
  623. // 空值处理:直接报格式错误
  624. if (!value) {
  625. callback(t('vaildate.amount.format1'))
  626. return false
  627. }
  628. // 范围校验
  629. if (
  630. mAmount.minAmount &&
  631. mAmount.maxAmount &&
  632. (Number(mAmount.minAmount) > Number(value) ||
  633. Number(mAmount.maxAmount) < Number(value))
  634. ) {
  635. callback(
  636. t('vaildate.amount.amount') +
  637. mAmount.minAmount +
  638. ' - ' +
  639. mAmount.maxAmount
  640. )
  641. return false
  642. }
  643. // 正整数校验(原正则)
  644. if (!/^[1-9]\d*$/.test(value)) {
  645. callback(t('vaildate.amount.format1'))
  646. return false
  647. }
  648. return true
  649. },
  650. trigger: 'change',
  651. },
  652. ],
  653. },
  654. agree: {
  655. rules: [
  656. {
  657. required: true,
  658. errorMessage: t('vaildate.agree.empty'),
  659. trigger: 'change',
  660. },
  661. ],
  662. },
  663. confirmAreaCode: {
  664. rules: [
  665. {
  666. required: true,
  667. errorMessage: t('vaildate.input.empty'),
  668. trigger: 'blur',
  669. },
  670. ],
  671. },
  672. confirmPhone: {
  673. rules: [
  674. {
  675. required: true,
  676. errorMessage: t('vaildate.input.empty'),
  677. trigger: 'blur',
  678. },
  679. ],
  680. },
  681. myId: {
  682. rules: [
  683. {
  684. required: true,
  685. errorMessage: t('vaildate.select.empty'),
  686. trigger: 'change',
  687. },
  688. ],
  689. },
  690. pin: {
  691. rules: [
  692. {
  693. required: true,
  694. errorMessage: t('PersonalManagement.Label.item1'),
  695. trigger: 'blur',
  696. },
  697. ],
  698. },
  699. phone: {
  700. rules: [
  701. {
  702. required: true,
  703. errorMessage: t('vaildate.input.empty'),
  704. trigger: 'blur',
  705. },
  706. ],
  707. },
  708. otp: {
  709. rules: [
  710. {
  711. required: true,
  712. errorMessage: t('vaildate.input.empty'),
  713. trigger: 'blur',
  714. },
  715. ],
  716. },
  717. state: {
  718. rules: [
  719. {
  720. required: true,
  721. errorMessage: t('vaildate.input.empty'),
  722. trigger: 'blur',
  723. },
  724. ],
  725. },
  726. city: {
  727. rules: [
  728. {
  729. required: true,
  730. errorMessage: t('vaildate.input.empty'),
  731. trigger: 'blur',
  732. },
  733. ],
  734. },
  735. country: {
  736. rules: [
  737. {
  738. required: true,
  739. errorMessage: t('vaildate.select.empty'),
  740. trigger: 'change',
  741. },
  742. ],
  743. },
  744. address: {
  745. rules: [
  746. {
  747. required: true,
  748. errorMessage: t('vaildate.input.empty'),
  749. trigger: 'blur',
  750. },
  751. ],
  752. },
  753. zipCode: {
  754. rules: [
  755. {
  756. required: true,
  757. errorMessage: t('vaildate.input.empty'),
  758. trigger: 'blur',
  759. },
  760. ],
  761. },
  762. }))
  763. const amountErrorMessage = ref('')
  764. const setTipsAmount = () => {
  765. const min = Number(mAmount.minAmount);
  766. const max = Number(mAmount.maxAmount);
  767. amountErrorMessage.value = t('vaildate.amount.amount') + min + '-' + max
  768. }
  769. const validateAmount = (value) => {
  770. const amount = params.amount
  771. if (!amount && amount !== 0) {
  772. const min = Number(mAmount.minAmount);
  773. const max = Number(mAmount.maxAmount);
  774. amountErrorMessage.value = t('vaildate.amount.amount') + min + '-' + max
  775. return false
  776. }
  777. if (mAmount.minAmount && mAmount.maxAmount) {
  778. const min = Number(mAmount.minAmount);
  779. const max = Number(mAmount.maxAmount);
  780. const numValue = Number(amount);
  781. if (numValue < min || numValue > max) {
  782. amountErrorMessage.value = t('vaildate.amount.amount') + min + '-' + max
  783. return false
  784. }
  785. }
  786. if (!/^[1-9]\d*$/.test(amount)) {
  787. amountErrorMessage.value = t('vaildate.amount.format1')
  788. return false
  789. }
  790. amountErrorMessage.value = ''
  791. return true
  792. }
  793. const NewYear24Data = reactive({
  794. balance: 0,
  795. income: 0,
  796. rate: 0,
  797. index: 0
  798. })
  799. const AccessToken = computed(() => ({
  800. "Access-Token": Session.Get("access_token")
  801. }))
  802. const lang = computed(() => {
  803. return locale.value == "en" && document.body.clientWidth < 1200
  804. })
  805. const langCN = computed(() => locale.value)
  806. const isSupportedCountry = computed(() => {
  807. try {
  808. const country = userInfo.value.customInfo.country
  809. return countries.includes(country)
  810. } catch {
  811. return false
  812. }
  813. })
  814. const country = computed(() => {
  815. return userInfo.value.customInfo.country
  816. })
  817. const userName = computed(() => {
  818. let first = userInfo.value.customInfo.firstName
  819. let last = userInfo.value.customInfo.lastName
  820. let middle = userInfo.value.customInfo.middle
  821. if (!first && !last && !middle) return false
  822. return (first ? first + " " : "") + (middle ? middle + " " : "") + (last ? last : "")
  823. })
  824. const areaCode = computed(() => userInfo.value.customInfo.areaCode)
  825. const phone = computed(() => userInfo.value.customInfo.phone)
  826. // 是否是国庆节
  827. const isGuoQin = computed(() => {
  828. let flag = false
  829. let startTime1 = "2024/10/01 00:00:00"
  830. let endTime1 = "2024/10/07 23:59:59"
  831. let timezone = 8
  832. let offset_GMT = new Date().getTimezoneOffset()
  833. let nowDate = new Date().getTime()
  834. let now = new Date(nowDate + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000).getTime()
  835. let end = new Date(endTime1).getTime()
  836. let start = new Date(startTime1).getTime()
  837. if (now > start && now < end) flag = true
  838. return flag
  839. })
  840. const groupTitleMap = {
  841. 1: 'Custom.Deposit.Channel1',
  842. 2: 'Custom.Deposit.Channel2',
  843. 3: 'Custom.Deposit.Channel3',
  844. 4: 'Custom.Deposit.Channel4',
  845. 5: 'card.title'
  846. }
  847. // 排序表格数据
  848. const sortedTableData = computed(() => {
  849. const order = [
  850. tableData.Digital_Currency,
  851. tableData.China_UnionPay,
  852. tableData.Electronic_Wallet,
  853. tableData.International_Transfer,
  854. tableData.Ucard_Wallet
  855. ]
  856. return order.filter(item => item && item.length > 0)
  857. })
  858. // 方法
  859. const isAfterJuly21 = () => {
  860. const currentDate = new Date()
  861. const july21 = new Date(currentDate.getFullYear(), 6, 21)
  862. return currentDate >= july21
  863. }
  864. // 货币
  865. const groupCurrency = (type) => {
  866. if (type == "GBP") return ": £"
  867. else if (type == "USD") return ": $"
  868. else if (type == "EUR") return ": €"
  869. else if (type == "USC") return ": ¢"
  870. else return ": $"
  871. }
  872. // 货币符号
  873. const groupCurrency1 = (type) => {
  874. if (type == "GBP") return "£"
  875. else if (type == "USD") return "$"
  876. else if (type == "EUR") return "€"
  877. else if (type == "USC") return "¢"
  878. else return "$"
  879. }
  880. // 选择银行
  881. const selectCode = (codeVal) => {
  882. bankDate.value.forEach(item => {
  883. if (item.code == codeVal) {
  884. selectCodes.value = lang.value == "cn" ? item.name : item.enName
  885. mAmount.minAmount = item.minAmount || mAmount.minAmount
  886. mAmount.maxAmount = item.maxAmount || mAmount.maxAmount
  887. channelData.rate = item.rate || channelData.rate
  888. channelData.transformCurrency = item.currency || channelData.transformCurrency
  889. }
  890. })
  891. }
  892. // 账户类型
  893. const groupTypeName = (type) => {
  894. if (type == "1") return t("AccountType.ClassicAccount")
  895. else if (type == "2") return t("AccountType.SeniorAccount")
  896. else if (type == "5") return t("AccountType.SpeedAccount")
  897. else if (type == "6") return t("AccountType.SpeedAccount")
  898. else if (type == "7") return t("AccountType.StandardAccount")
  899. else if (type == "8") return t("AccountType.CentAccount")
  900. }
  901. const selectChange = () => {
  902. // 强制更新,在 Vue 3 中通常不需要
  903. }
  904. const handleProgress1 = () => {
  905. pictLoadingImg.value = true
  906. }
  907. const handleAvatarError1 = (err) => {
  908. let errorMessage = t("Msg.Fail")
  909. if (err && err.status) {
  910. switch (err.status) {
  911. case 400: errorMessage = t("Msg.UploadInvalidFormat"); break
  912. case 401: errorMessage = t("Msg.UploadUnauthorized"); break
  913. case 403: errorMessage = t("Msg.UploadForbidden"); break
  914. case 413: errorMessage = t("Msg.UploadFileTooLarge"); break
  915. case 500: errorMessage = t("Msg.UploadServerError"); break
  916. case 502:
  917. case 503:
  918. case 504: errorMessage = t("Msg.UploadNetworkError"); break
  919. default:
  920. if (err.message) errorMessage = err.message
  921. else if (err.response && err.response.data && err.response.data.msg) errorMessage = err.response.data.msg
  922. }
  923. } else if (err && err.message) {
  924. if (err.message.includes("Network Error") || err.message.includes("timeout")) errorMessage = t("Msg.UploadNetworkError")
  925. else if (err.message.includes("File too large")) errorMessage = t("Msg.UploadFileTooLarge")
  926. else errorMessage = err.message
  927. }
  928. $pigeon.MessageError(errorMessage)
  929. pictLoadingImg.value = false
  930. }
  931. const handleAvatarSuccess1 = (res) => {
  932. if (res.code == Code.StatusOK) {
  933. $pigeon.MessageOK(res.msg)
  934. imageUrl1.value = res.data
  935. requiteVoucherUrl.value = res.data
  936. } else {
  937. uni.showToast({ title: res.msg, icon: 'none' })
  938. }
  939. pictLoadingImg.value = false
  940. }
  941. // 上传凭证前校验
  942. const beforeAvatarUpload1 = (file) => {
  943. const isJPG = isImageType.checkFile(file.type)
  944. const isLt2M = isImageType.checkSize(file.size)
  945. if (!isJPG) $pigeon.MessageError(t("Msg.JPG"))
  946. if (!isLt2M) $pigeon.MessageError(t("Msg.3IMG"))
  947. return isJPG && isLt2M
  948. }
  949. // 上传凭证进度
  950. const handleProgress = () => {
  951. pictLoadingImg.value = true
  952. }
  953. // 上传凭证失败
  954. const handleAvatarError = (err) => {
  955. let errorMessage = t("Msg.Fail")
  956. if (err && err.status) {
  957. switch (err.status) {
  958. case 400: errorMessage = t("Msg.UploadInvalidFormat"); break
  959. case 401: errorMessage = t("Msg.UploadUnauthorized"); break
  960. case 403: errorMessage = t("Msg.UploadForbidden"); break
  961. case 413: errorMessage = t("Msg.UploadFileTooLarge"); break
  962. case 500: errorMessage = t("Msg.UploadServerError"); break
  963. case 502:
  964. case 503:
  965. case 504: errorMessage = t("Msg.UploadNetworkError"); break
  966. default:
  967. if (err.message) errorMessage = err.message
  968. else if (err.response && err.response.data && err.response.data.msg) errorMessage = err.response.data.msg
  969. }
  970. } else if (err && err.message) {
  971. if (err.message.includes("Network Error") || err.message.includes("timeout")) errorMessage = t("Msg.UploadNetworkError")
  972. else if (err.message.includes("File too large")) errorMessage = t("Msg.UploadFileTooLarge")
  973. else errorMessage = err.message
  974. }
  975. $pigeon.MessageError(errorMessage)
  976. pictLoadingImg.value = false
  977. }
  978. // 上传凭证
  979. const handleUploadDeposit = (options) => {
  980. const originalUrl = actionAdd1.value || Config.Host80 + "/common/upload"
  981. return createUploadRequest(originalUrl, userToken.value, 1)(options)
  982. }
  983. // 上传凭证成功
  984. const handleAvatarSuccess = (res) => {
  985. if (res.code == Code.StatusOK) {
  986. $pigeon.MessageOK(res.msg)
  987. imageUrl.value = res.data
  988. requiteVoucherUrl.value = res.data
  989. } else {
  990. uni.showToast({ title: res.msg, icon: 'none' })
  991. }
  992. pictLoadingImg.value = false
  993. }
  994. // 上传凭证前校验
  995. const beforeAvatarUpload = (file) => {
  996. const isJPG = isImageType.checkFile(file.type)
  997. const isLt2M = isImageType.checkSize(file.size)
  998. if (!isJPG) $pigeon.MessageError(t("Msg.JPG"))
  999. if (!isLt2M) $pigeon.MessageError(t("Msg.3IMG"))
  1000. return isJPG && isLt2M
  1001. }
  1002. // 打开添加银行弹窗
  1003. const openAddBankCard = () => {
  1004. if (ruleForm.bankCredit.length == 2) {
  1005. $pigeon.MessageConfirm(
  1006. t("Msg.WireTransfers"),
  1007. t("Msg.SystemPrompt"),
  1008. t("Btn.Confirm"),
  1009. t("Btn.Cancel"),
  1010. async () => { },
  1011. () => { }
  1012. )
  1013. } else {
  1014. openType.value = "add_CreditCard"
  1015. dialogInfoTradingAdd.value = true
  1016. }
  1017. }
  1018. const closeDiaAdd = () => {
  1019. dialogInfoTradingAdd.value = false
  1020. }
  1021. // 关闭添加银行弹窗
  1022. const closeAdd = (val) => {
  1023. dialogInfoTradingAdd.value = val
  1024. }
  1025. // 确认重新加载银行信息
  1026. const confirmToReload = () => {
  1027. dialogInfoTradingAdd.value = false
  1028. getBankInfo()
  1029. }
  1030. // 获取银行信息
  1031. const getBankInfo = async () => {
  1032. let res = await financialApi.customBankList({})
  1033. if (res.code == Code.StatusOK) {
  1034. ruleForm.bankCredit = []
  1035. res.data.forEach(item => {
  1036. if (item.type == 3) {
  1037. item.customBankCode = item.bankCode
  1038. item.bankCode = null
  1039. ruleForm.bankCredit.push(item)
  1040. }
  1041. if (item.defaultBank && item.type == 3) {
  1042. myId.value = item.id
  1043. form.bankUname = item.bankUname
  1044. form.bankCardNum = item.bankCardNum
  1045. form.cvv = item.cvv
  1046. form.expiryMonth = item.expiryMonth
  1047. form.expiryYear = item.expiryYear
  1048. form.pin = item.pin
  1049. }
  1050. })
  1051. } else {
  1052. uni.showToast({ title: res.msg, icon: 'none' })
  1053. }
  1054. }
  1055. // 选择银行
  1056. const chooseBank = (item) => {
  1057. if (formRef.value) formRef.value.clearValidate()
  1058. form.bankUname = item.bankUname
  1059. form.bankCardNum = item.bankCardNum
  1060. form.cvv = item.cvv
  1061. form.expiryMonth = item.expiryMonth
  1062. form.expiryYear = item.expiryYear
  1063. form.pin = item.pin
  1064. }
  1065. // 返回首页
  1066. const toHome = () => {
  1067. uni.switchTab({ url: "/pages/customer/index" })
  1068. }
  1069. const dialogDigitalPayConfirm = ref(false)
  1070. // 提交确认信息弹窗
  1071. const submitConfirm = async () => {
  1072. if (channelData.confirmCreditCard == 1 && !myId.value) {
  1073. $pigeon.MessageWarning(t("PersonalManagement.Label.selectCreditCard"))
  1074. return
  1075. }
  1076. if (channelData.bankValid == 1 && !code.value) {
  1077. $pigeon.MessageWarning(t("vaildate.depositCurrency.empty"))
  1078. return
  1079. }
  1080. if ((channelData.code == "UNION_PAY_TELEGRAPHIC" || channelData.code == "UNION_PAY_TELEGRAPHIC_SPECIAL" || channelData.code == "UNION_PAY_TELEGRAPHIC_TWO") && !imageUrl.value) {
  1081. $pigeon.MessageWarning(t("vaildate.depositVoucher.empty"))
  1082. return
  1083. }
  1084. if (params.promoCode && params.agree2) {
  1085. $pigeon.MessageWarning(t("news_add_field.Des.item2"))
  1086. return
  1087. }
  1088. if (params.promoCode && params.agree3) {
  1089. $pigeon.MessageWarning(t("news_add_field.Des.item2"))
  1090. return
  1091. }
  1092. if (params.promoCode && params.agree4) {
  1093. $pigeon.MessageWarning(t("news_add_field.Des.item2"))
  1094. return
  1095. }
  1096. if (params.promoCode && params.agree5) {
  1097. $pigeon.MessageWarning(t("news_add_field.Des.item2"))
  1098. return
  1099. }
  1100. if (params.promoCode && params.agree6) {
  1101. $pigeon.MessageWarning(t("news_add_field.Des.item2"))
  1102. return
  1103. }
  1104. // if (channelData.code && channelData.code.indexOf('DIGITAL_PAY_TYPE_KEY') === 0 && !imageUrl.value) {
  1105. // $pigeon.MessageWarning(t("vaildate.depositVoucher.empty"))
  1106. // return
  1107. // }
  1108. try {
  1109. if (formRef.value) {
  1110. await formRef.value.validate()
  1111. console.log(channelData, channelData.code, 12);
  1112. if (
  1113. channelData.code &&
  1114. channelData.code.indexOf("DIGITAL_PAY_TYPE_KEY") === 0
  1115. ) {
  1116. imageUrl.value = "";
  1117. dialogDigitalPayConfirm.value = true;
  1118. } else {
  1119. openDontActive();
  1120. }
  1121. }
  1122. } catch (error) {
  1123. if (error instanceof Array) {
  1124. uni.showToast({ title: error[0].errorMessage, icon: 'none' });
  1125. return
  1126. } else {
  1127. responseMessage.value = error.msg;
  1128. }
  1129. }
  1130. }
  1131. const confirmDigitalPayModal = (e) => {
  1132. dialogDigitalPayConfirm.value = false;
  1133. imageUrl.value = e;
  1134. openDontActive();
  1135. }
  1136. // 关闭数字支付确认弹窗
  1137. const closeDigitalPayConfirm = () => {
  1138. dialogDigitalPayConfirm.value = false;
  1139. }
  1140. // 打开不参加活动弹窗
  1141. const openDontActive = () => {
  1142. if (!tableData4Flag.value && !tableData4TwoFlag.value && !tableDataNewListFlag.value && (country.value != "CN" || (country.value == "CN" && (ACCType.value == 1 || ACCType.value == 2 || ACCType.value == 7))) && ACCType.value != 3 && params.agree2) {
  1143. tosubmitConfirm()
  1144. return
  1145. }
  1146. if (tableData4Flag.value && params.agree4) {
  1147. tosubmitConfirm()
  1148. return
  1149. }
  1150. if (tableData4TwoFlag.value && params.agree5) {
  1151. tosubmitConfirm()
  1152. return
  1153. }
  1154. if (tableDataNewListFlag.value && params.agree6) {
  1155. tosubmitConfirm()
  1156. return
  1157. }
  1158. if (limitedStatus.value && limitedStatusCheck.value) {
  1159. tosubmitConfirm()
  1160. return
  1161. }
  1162. if ((ACCType.value == 1 || ACCType.value == 2 || ACCType.value == 5 || ACCType.value == 6 || ACCType.value == 7) && anshiClose.value && params.agree3) {
  1163. tosubmitConfirm()
  1164. return
  1165. }
  1166. tosubmitConfirm()
  1167. }
  1168. // 打开提交前信息弹窗
  1169. const tosubmitConfirm = () => {
  1170. dialogDontActive.value = false
  1171. dialogCheckConfirm_form.confirmAreaCode = areaCode.value
  1172. dialogCheckConfirm_form.confirmPhone = phone.value
  1173. dialogCheckConfirm.value = true
  1174. }
  1175. // 最后确认
  1176. const dialogSuccess = computed(() => dialogCheckOK.value && dialogVisible.value)
  1177. // 最后失败
  1178. const dialogError = computed(() => dialogCheckOK.value && !dialogVisible.value)
  1179. // 提交后确认
  1180. const dialogCheckSuccess = computed(() => dialogCheck.value && dialogVisible.value)
  1181. // 提交后失败
  1182. const dialogCheckError = computed(() => dialogCheck.value && !dialogVisible.value)
  1183. // 提交申请
  1184. const submit = async () => {
  1185. if (flag.value) return
  1186. flag.value = true
  1187. dialogCheckConfirm.value = false
  1188. dialogCheckWait.value = true
  1189. try {
  1190. if (channelData.code == "UNION_PAY_TELEGRAPHIC" || channelData.code == "UNION_PAY_TELEGRAPHIC_SPECIAL" || channelData.code == "UNION_PAY_TELEGRAPHIC_TWO") {
  1191. let res = await financialApi.telegraphicPay({
  1192. requiteVoucherUrl: imageUrl1.value,
  1193. amount: params.amount,
  1194. login: $route.query.login,
  1195. voucherUrl: imageUrl.value,
  1196. activityDeposit: params.agree2 ? 1 : 0,
  1197. activityPercentageGive: params.agree3 ? 1 : 0,
  1198. activityMidyearTenPercentGive: params.agree4 ? 1 : 0,
  1199. activityTwoPercentGive: params.agree5 ? 1 : 0,
  1200. activityGive: params.agree6 ? 1 : 0,
  1201. promoCode: params.promoCode,
  1202. code: channelData.code,
  1203. bankMsg: WireTransferAccount.bankMsg || "",
  1204. name: channelData.confirmName ? userName.value : null,
  1205. areaCode: channelData.confirmAreaCode ? dialogCheckConfirm_form.confirmAreaCode : null,
  1206. phone: channelData.confirmPhone ? dialogCheckConfirm_form.confirmPhone : null,
  1207. ip: uni.getStorageSync("CLIENT")
  1208. })
  1209. dialogCheckWait.value = false
  1210. if (res.code == Code.StatusOK) {
  1211. imageUrl1.value = ""
  1212. limitedStatusCheck.value = false
  1213. dialogCheckOK.value = true
  1214. dialogVisible.value = true
  1215. flag.value = false
  1216. } else {
  1217. RES.value = res.msg
  1218. dialogCheckOK.value = true
  1219. dialogVisible.value = false
  1220. flag.value = false
  1221. }
  1222. } else if (channelData.code && channelData.code.indexOf('DIGITAL_PAY_TYPE_KEY') === 0) {
  1223. let res = await financialApi.digitalPay({
  1224. requiteVoucherUrl: imageUrl1.value,
  1225. amount: params.amount,
  1226. login: $route.query.login,
  1227. voucherUrl: imageUrl.value,
  1228. activityDeposit: params.agree2 ? 1 : 0,
  1229. activityPercentageGive: params.agree3 ? 1 : 0,
  1230. activityMidyearTenPercentGive: params.agree4 ? 1 : 0,
  1231. activityTwoPercentGive: params.agree5 ? 1 : 0,
  1232. activityGive: params.agree6 ? 1 : 0,
  1233. promoCode: params.promoCode,
  1234. ip: uni.getStorageSync("CLIENT")
  1235. })
  1236. dialogCheckWait.value = false
  1237. if (res.code == Code.StatusOK) {
  1238. dialogCheckOK.value = true
  1239. dialogVisible.value = true
  1240. flag.value = false
  1241. } else {
  1242. RES.value = res.msg
  1243. dialogCheckOK.value = true
  1244. dialogVisible.value = false
  1245. flag.value = false
  1246. }
  1247. } else {
  1248. let par = ""
  1249. if (channelData.bankValid == 1) {
  1250. par = `${channelData.requestUrl}/${loginValue.value}/${params.amount}/${code.value}/${(params.agree2 ? 1 : 0)}`
  1251. } else {
  1252. par = `${channelData.requestUrl}/${loginValue.value}/${params.amount}/${(params.agree2 ? 1 : 0)}`
  1253. }
  1254. let res = await financialApi.PayBankCode(par, {
  1255. requiteVoucherUrl: imageUrl1.value,
  1256. promoCode: params.promoCode,
  1257. name: channelData.confirmName ? userName.value : null,
  1258. areaCode: channelData.confirmAreaCode ? dialogCheckConfirm_form.confirmAreaCode : null,
  1259. phone: channelData.confirmPhone ? dialogCheckConfirm_form.confirmPhone : null,
  1260. activityPercentageGive: params.agree3 ? 1 : 0,
  1261. activityMidyearTenPercentGive: params.agree4 ? 1 : 0,
  1262. activityTwoPercentGive: params.agree5 ? 1 : 0,
  1263. activityGive: params.agree6 ? 1 : 0,
  1264. ip: uni.getStorageSync("CLIENT"),
  1265. ...form
  1266. })
  1267. dialogCheckWait.value = false
  1268. if (res.code == Code.StatusOK) {
  1269. if (res.data && (res.data.type == 3 || res.data.type == 4 || res.data.type == 6 || res.data.type == 7)) {
  1270. dealResult(res.data)
  1271. } else {
  1272. if (res.data.type == 1) {
  1273. goPayLink.value = res.data.result
  1274. window.open(res.data.result)
  1275. } else if (res.data.type == 2) {
  1276. let token = userToken.value
  1277. token = tool.tokenReplace(token)
  1278. goPayLink.value = `${Host04}/finance/deposit/get?serial=${res.data.result}&Access-Token=${token}`
  1279. window.open(goPayLink.value)
  1280. } else if (res.data.type == 5) {
  1281. $pigeon.MessageConfirm(
  1282. t("PersonalManagement.Label.item2"),
  1283. t("Msg.SystemPrompt"),
  1284. t("Btn.Cancel"),
  1285. t("Btn.Confirm"),
  1286. async () => { },
  1287. () => {
  1288. goPayLink.value = res.data.result
  1289. dialogCheck.value = true
  1290. dialogVisible.value = true
  1291. window.open(res.data.result)
  1292. }
  1293. )
  1294. } else if (res.data.type == 8) {
  1295. goPayLink.value = Host04 + res.data.result
  1296. window.open(goPayLink.value)
  1297. } else if (res.data.type == 9) {
  1298. goPayLink.value = setCardUrl(res.data.result)
  1299. window.open(goPayLink.value)
  1300. } else if (res.data.type == 10) {
  1301. goPayLink.value = Host80 + '/pay/onchainpay.html?params=' + res.data.result
  1302. window.open(goPayLink.value)
  1303. }
  1304. if (res.data.type != 5) {
  1305. dialogCheck.value = true
  1306. dialogVisible.value = true
  1307. }
  1308. }
  1309. flag.value = false
  1310. } else {
  1311. RES.value = res.msg
  1312. dialogCheck.value = true
  1313. dialogVisible.value = false
  1314. flag.value = false
  1315. }
  1316. }
  1317. } catch (error) {
  1318. dialogCheckWait.value = false
  1319. flag.value = false
  1320. dialogCheckOK.value = true
  1321. dialogVisible.value = false
  1322. RES.value = error.msg
  1323. }
  1324. }
  1325. const setCardUrl = (serial) => {
  1326. let params = `${userToken.value}/${locale.value}/${serial}/1/pay`
  1327. return initLink({ link: imgUrl.value + '/pay/paycard.html', params })
  1328. }
  1329. //处理申请返回result
  1330. const dealResult = (data) => {
  1331. DealResultType.value = data.type
  1332. DealResultResult.value = data.result
  1333. if (data.type == 3) {
  1334. dialogDealResult_form.pin = ""
  1335. } else if (data.type == 4) {
  1336. dialogDealResult_form.otp = ""
  1337. } else if (data.type == 6) {
  1338. dialogDealResult_form.state = userInfo.value.state
  1339. dialogDealResult_form.city = userInfo.value.city
  1340. dialogDealResult_form.country = (["cn", "zhHant"].indexOf(locale.value) != -1) ? userInfo.value.countryName : userInfo.value.countryEnName
  1341. dialogDealResult_form.address = (userInfo.value.addressLines && userInfo.value.addressLines[0]) || ""
  1342. dialogDealResult_form.zipCode = userInfo.value.zipCode
  1343. dialogDealResultTitle.value = t("PersonalManagement.Label.item3")
  1344. } else if (data.type == 7) {
  1345. dialogDealResult_form.phone = userInfo.value.phone
  1346. dialogDealResultTitle.value = t("PersonalManagement.Label.item4")
  1347. }
  1348. dialogDealResult.value = true
  1349. }
  1350. //重新提交
  1351. const submitDealResult = async () => {
  1352. if (flag.value) return
  1353. flag.value = true
  1354. dialogCheckConfirm.value = false
  1355. dialogCheckWait.value = true
  1356. let par = Host04 + DealResultResult.value
  1357. let dataList = {}
  1358. if (DealResultType.value == 3) dataList = { pin: dialogDealResult_form.pin }
  1359. else if (DealResultType.value == 4) dataList = { otp: dialogDealResult_form.otp }
  1360. else if (DealResultType.value == 6) {
  1361. dataList = {
  1362. state: dialogDealResult_form.state,
  1363. city: dialogDealResult_form.city,
  1364. country: dialogDealResult_form.country,
  1365. address: dialogDealResult_form.address,
  1366. zipCode: dialogDealResult_form.zipCode
  1367. }
  1368. } else if (DealResultType.value == 7) dataList = { phone: dialogDealResult_form.phone }
  1369. let res = await financialApi.PayDealResult(par, dataList)
  1370. dialogCheckWait.value = false
  1371. dialogDealResult.value = false
  1372. if (res.code == Code.StatusOK) {
  1373. if (res.data && (res.data.type == 3 || res.data.type == 4 || res.data.type == 6 || res.data.type == 7)) {
  1374. dealResult(res.data)
  1375. } else {
  1376. if (res.data.type == 1) {
  1377. goPayLink.value = res.data.result
  1378. window.open(res.data.result)
  1379. } else if (res.data.type == 2) {
  1380. let token = userToken.value
  1381. token = tool.tokenReplace(token)
  1382. goPayLink.value = `${Host04}/finance/deposit/get?serial=${res.data.result}&Access-Token=${token}`
  1383. window.open(goPayLink.value)
  1384. } else if (res.data.type == 5) {
  1385. $pigeon.MessageConfirm(
  1386. t("PersonalManagement.Label.item2"),
  1387. t("Msg.SystemPrompt"),
  1388. t("Btn.Cancel"),
  1389. t("Btn.Confirm"),
  1390. async () => { },
  1391. () => {
  1392. goPayLink.value = res.data.result
  1393. dialogCheck.value = true
  1394. dialogVisible.value = true
  1395. window.open(res.data.result)
  1396. }
  1397. )
  1398. } else if (res.data.type == 8) {
  1399. goPayLink.value = Host04 + res.data.result
  1400. window.open(goPayLink.value)
  1401. } else if (res.data.type == 9) {
  1402. dialogCheckOK.value = true
  1403. dialogVisible.value = true
  1404. flag.value = false
  1405. return
  1406. }
  1407. if (res.data.type != 5) {
  1408. dialogCheck.value = true
  1409. dialogVisible.value = true
  1410. }
  1411. }
  1412. flag.value = false
  1413. } else {
  1414. RES.value = res.msg
  1415. dialogCheck.value = true
  1416. dialogVisible.value = false
  1417. flag.value = false
  1418. dialogDealResult.value = false
  1419. }
  1420. }
  1421. const closeDia = () => {
  1422. dialogCheck.value = false
  1423. dialogVisible.value = false
  1424. dialogCheckOK.value = false
  1425. showTable()
  1426. }
  1427. const isStep3Open = () => {
  1428. isStep3.value = true
  1429. //中国网银弹窗
  1430. if (tableData.China_UnionPay.length && tableData.China_UnionPay[0].type == 2) {
  1431. let timezone = 8
  1432. let offset_GMT = new Date().getTimezoneOffset()
  1433. let nowDate = new Date().getTime()
  1434. let now = new Date(nowDate + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000)
  1435. let newTime = now.getHours().toString()
  1436. if ((newTime.length == 1 && newTime >= 0 && newTime < 8) || (newTime.length == 2 && newTime >= 22 && newTime < 24)) {
  1437. dialogChinaUnionPay.value = true
  1438. }
  1439. }
  1440. }
  1441. // 判断是否在9月30日晚上12点之后,用于隐藏特定活动
  1442. const isAfterSeptember30 = () => {
  1443. // const currentDate = new Date();
  1444. // const september30 = new Date(
  1445. // currentDate.getFullYear(),
  1446. // 8,
  1447. // 30,
  1448. // 23,
  1449. // 59,
  1450. // 59
  1451. // ); // 月份从0开始,8表示9月,设置为23:59:59
  1452. // return currentDate > september30;
  1453. return true
  1454. }
  1455. const getMetaInfo = () => {
  1456. metaInfo.value = window.getMetaInfo()
  1457. metaInfo.value = { ...metaInfo.value, deviceType: "h5" }
  1458. }
  1459. //获取kyc二维码
  1460. const qrCode = async (depositChannelCode, row) => {
  1461. getMetaInfo()
  1462. let res = await activityApi.getWebsdkLink({
  1463. depositChannelCode,
  1464. metaInfo: metaInfo.value
  1465. })
  1466. if (res.code == Code.StatusOK) {
  1467. if (res.data) {
  1468. text1.value = JSON.parse(res.data).url
  1469. dialogKyc.value = true
  1470. flag.value = false
  1471. } else {
  1472. doShowStep3(row)
  1473. }
  1474. } else {
  1475. flag.value = false
  1476. uni.showToast({ title: res.msg, icon: 'none' })
  1477. }
  1478. }
  1479. const doShowStep3 = (row) => {
  1480. if (row.confirmCreditCard == 1) getBankInfo()
  1481. getCheckExistSuccess()
  1482. if (row.bankValid && isChannel.value) {
  1483. getBankList(row)
  1484. isChannel.value = false
  1485. step3.value = true
  1486. Object.assign(channelData, row)
  1487. console.log(channel.value, channelListOptions.value, channelData, 1112);
  1488. mAmount.minAmount = row.minAmount
  1489. mAmount.maxAmount = row.maxAmount
  1490. } else {
  1491. step3.value = true
  1492. bankDate.value = []
  1493. Object.assign(channelData, row)
  1494. mAmount.minAmount = row.minAmount
  1495. mAmount.maxAmount = row.maxAmount
  1496. }
  1497. tableData.International_Transfer = []
  1498. tableData.China_UnionPay = []
  1499. tableData.Digital_Currency = []
  1500. tableData.Electronic_Wallet = []
  1501. tableData.Ucard_Wallet = []
  1502. if (row.type == 1) tableData.International_Transfer[0] = row
  1503. if (row.type == 2) tableData.China_UnionPay[0] = row
  1504. if (row.type == 3) tableData.Digital_Currency[0] = row
  1505. if (row.type == 4) tableData.Electronic_Wallet[0] = row
  1506. if (row.type == 5) tableData.Ucard_Wallet[0] = row
  1507. introduce.introduce = row.introduce
  1508. introduce.enIntroduce = row.enIntroduce
  1509. if (row.code == "UNION_PAY_TELEGRAPHIC" || row.code == "UNION_PAY_TELEGRAPHIC_SPECIAL" || row.code == "UNION_PAY_TELEGRAPHIC_TWO" || (row.code && row.code.indexOf('DIGITAL_PAY_TYPE_KEY') === 0)) {
  1510. let pro = []
  1511. if (row.property && row.property.substring(0, 1) == "[") {
  1512. pro = JSON.parse(row.property)
  1513. } else if (row.property && row.property.substring(0, 1) != "[") {
  1514. let proper = "[" + row.property + "]"
  1515. pro = JSON.parse(proper)
  1516. }
  1517. let ind = pro.length
  1518. if (ind) {
  1519. let index = parseInt(Math.random() * ind + 1)
  1520. Object.assign(WireTransferAccount, pro[index - 1])
  1521. actionAdd1.value = Host80 + "/common/upload"
  1522. } else {
  1523. Object.assign(WireTransferAccount, {})
  1524. actionAdd1.value = Host80 + "/common/upload"
  1525. }
  1526. }
  1527. }
  1528. //选择支付方式
  1529. const isShowStep3 = (row) => {
  1530. if (row.kycChannel != 1) {
  1531. doShowStep3(row)
  1532. } else {
  1533. qrCode(row.code, row)
  1534. }
  1535. }
  1536. //更换支付方式
  1537. const showTable = () => {
  1538. resetForm();
  1539. dialogCheckWait.value = false;
  1540. dialogVisible.value = false;
  1541. flag.value = false;
  1542. form.bankUname = undefined
  1543. form.bankCardNum = undefined
  1544. form.cvv = undefined
  1545. form.expiryMonth = undefined
  1546. form.expiryYear = undefined
  1547. form.pin = undefined
  1548. myId.value = null
  1549. params.amount = ""
  1550. params.amount1 = ""
  1551. params.agree = false
  1552. params.agree2 = false
  1553. params.agree3 = false
  1554. params.agree4 = false
  1555. params.agree5 = false
  1556. params.agree6 = false
  1557. params.promoCode = ""
  1558. isChannel.value = true
  1559. imageUrl.value = ""
  1560. requiteVoucherUrl.value = ""
  1561. code.value = ""
  1562. WireTransferAccount.bankMsg = ""
  1563. introduce.introduce = ""
  1564. introduce.enIntroduce = ""
  1565. }
  1566. const loginComboxOptions = computed(() => {
  1567. return loginOptions.value.map((item) => ({
  1568. text: item.label,
  1569. value: item.login
  1570. }))
  1571. })
  1572. const creditCardOptions = computed(() => {
  1573. return ruleForm.bankCredit.map((item, index) => ({
  1574. text: `${item.bankUname}-${item.bankCardNum}`,
  1575. value: item.id
  1576. }))
  1577. })
  1578. const bankOptions = computed(() => {
  1579. return bankDate.value.map((item, index) => ({
  1580. text: (locale.value === 'cn' || locale.value === 'zhHant') ? item.name : item.enName,
  1581. value: item.code
  1582. }))
  1583. })
  1584. // 获取账户信息
  1585. const getDateList = async () => {
  1586. loading.value = true
  1587. let res = await customApi.CustomDropdown({ platform: "" })
  1588. if (res.code == Code.StatusOK) {
  1589. loginOptions.value = res.data.map(item => ({
  1590. ...item,
  1591. label: `${item.login} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${item.balance}`
  1592. }))
  1593. const pages = getCurrentPages()
  1594. const route = pages[pages.length - 1].$page?.options || {}
  1595. if (route.login) {
  1596. const found = loginOptions.value.find(opt => opt.login === Number(route.login))
  1597. loginValue.value = found.login
  1598. loginValueDoc.value = found.label
  1599. step2.value = true
  1600. }
  1601. } else {
  1602. uni.showToast({ title: res.msg, icon: 'none' })
  1603. }
  1604. loading.value = false
  1605. }
  1606. //获取入金通道
  1607. const getDepositList = async () => {
  1608. pictLoading.value = true
  1609. tableData.International_Transfer = []
  1610. tableData.China_UnionPay = []
  1611. tableData.Digital_Currency = []
  1612. tableData.Electronic_Wallet = []
  1613. tableData.Ucard_Wallet = []
  1614. let res = await financialApi.RemittanceChannelList({})
  1615. if (res.code == Code.StatusOK) {
  1616. res.data.forEach(item => {
  1617. if (item.type == 1) tableData.International_Transfer.push(item), tableData1.International_Transfer.push(item)
  1618. if (item.type == 2) tableData.China_UnionPay.push(item), tableData1.China_UnionPay.push(item)
  1619. if (item.type == 3) tableData.Digital_Currency.push(item), tableData1.Digital_Currency.push(item)
  1620. if (item.type == 4) tableData.Electronic_Wallet.push(item), tableData1.Electronic_Wallet.push(item)
  1621. if (item.type == 5) tableData.Ucard_Wallet.push(item), tableData1.Ucard_Wallet.push(item)
  1622. })
  1623. pictLoading.value = false
  1624. } else {
  1625. uni.showToast({ title: res.msg, icon: 'none' })
  1626. pictLoading.value = false
  1627. }
  1628. }
  1629. //获取银行列表
  1630. const getBankList = async (row) => {
  1631. let res = await financialApi.BankList({ channelCode: row.code })
  1632. try {
  1633. if (res.code == Code.StatusOK) {
  1634. let bank = res.data
  1635. let data = []
  1636. bank.forEach(j => {
  1637. if (!j.minAmount && j.minAmount != 0) j.minAmount = row.minAmount
  1638. if (!j.maxAmount && j.maxAmount != 0) j.maxAmount = row.maxAmount
  1639. j.bankValid = row.bankValid
  1640. j.requestUrl = row.requestUrl
  1641. data.push(j)
  1642. })
  1643. bankDate.value = data
  1644. } else {
  1645. uni.showToast({ title: res.msg, icon: 'none' })
  1646. }
  1647. } catch (error) {
  1648. uni.showToast({ title: error.msg, icon: 'none' })
  1649. }
  1650. }
  1651. //获取20赠金活动信息
  1652. const getCheckExistSuccess = async () => {
  1653. let res = await financialApi.depositCheckExistSuccess({})
  1654. if (res.code == Code.StatusOK) {
  1655. CheckExistSuccess.value = res.data
  1656. } else {
  1657. uni.showToast({ title: res.msg, icon: 'none' })
  1658. }
  1659. }
  1660. //20赠金是否到期-4月30号23:59:59的时候关闭申请
  1661. const is20Open = () => {
  1662. let endTime1 = "2023/04/30 23:59:59"
  1663. let timezone = 2
  1664. let offset_GMT = new Date().getTimezoneOffset()
  1665. let nowDate = new Date().getTime()
  1666. let now = new Date(nowDate + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000).getTime()
  1667. let end = new Date(endTime1).getTime()
  1668. if (now > end) anshiClose.value = false
  1669. }
  1670. //限时活动
  1671. const ActivityRequiteInfo = async () => {
  1672. let res = await activityApi.ActivityRequiteInfo({})
  1673. if (res.code == Code.StatusOK) {
  1674. limitedStatus.value = res.data
  1675. } else {
  1676. uni.showToast({ title: res.msg, icon: 'none' })
  1677. }
  1678. }
  1679. //2023年中赠金活动数据-10
  1680. const Activity24nianzhongInfo = async () => {
  1681. let res = await activityApi.Activity23nianzhongInfo({})
  1682. if (res.code == Code.StatusOK) {
  1683. Object.assign(tableData4, res.data)
  1684. // const Data4 = {
  1685. // "activityEndTime": null,
  1686. // "activityStartTime": null,
  1687. // "applicationEndTime": null,
  1688. // "applicationStartTime": null,
  1689. // "loginTypes": [5, 6],
  1690. // "show": 1,
  1691. // "useApply": 1
  1692. // };
  1693. // Object.assign(tableData4, Data4)
  1694. // tableData4Flag.value = tableData4.show == 1 && tableData4.useApply == 1
  1695. } else {
  1696. uni.showToast({ title: res.msg, icon: 'none' })
  1697. }
  1698. }
  1699. //2023年中赠金活动数据-20
  1700. const Activity24nianzhongTwoInfo = async () => {
  1701. let res = await activityApi.Activity23nianzhongTwoInfo({})
  1702. if (res.code == Code.StatusOK) {
  1703. Object.assign(tableData4Two, res.data)
  1704. // const Data4 = {
  1705. // "activityEndTime": null,
  1706. // "activityStartTime": null,
  1707. // "applicationEndTime": null,
  1708. // "applicationStartTime": null,
  1709. // "loginTypes": [5, 6],
  1710. // "show": 1,
  1711. // "useApply": 1
  1712. // };
  1713. // Object.assign(tableData4Two, Data4)
  1714. // tableData4Flag.value = tableData4Two.show == 1 && tableData4Two.useApply == 1
  1715. } else {
  1716. uni.showToast({ title: res.msg, icon: 'none' })
  1717. }
  1718. }
  1719. //2023年中赠金活动权限
  1720. const get23nianzhongTwoLogin = async (newVal) => {
  1721. let res = await activityApi.Activity23nianzhongTwoLogin({ login: newVal })
  1722. if (res.code == Code.StatusOK) {
  1723. Object.assign(tableData4Two, res.data)
  1724. tableData4TwoFlag.value = tableData4Two.show == 1
  1725. } else {
  1726. uni.showToast({ title: res.msg, icon: 'none' })
  1727. }
  1728. }
  1729. const getActivityExtensionGiveLogin = async (newVal) => {
  1730. let res = await activityApi.ActivityExtensionGiveLogin({ login: newVal })
  1731. if (res.code == Code.StatusOK) {
  1732. Object.assign(tableDataNewList, res.data)
  1733. tableDataNewListFlag.value = tableDataNewList.show == 1
  1734. } else {
  1735. uni.showToast({ title: res.msg, icon: 'none' })
  1736. }
  1737. }
  1738. const getActivityExtensionGiveLoginJoin = async (newVal) => {
  1739. let res = await activityApi.ActivityExtensionGiveLoginJoin({ login: newVal })
  1740. if (res.code == Code.StatusOK) {
  1741. giveLoginJoin.value = res.data
  1742. } else {
  1743. uni.showToast({ title: res.msg, icon: 'none' })
  1744. giveLoginJoin.value = ""
  1745. }
  1746. }
  1747. //24新年庆典 开始
  1748. const isNewYear24Open = () => {
  1749. let endTime1 = "2025/3/31 23:59:59"
  1750. let startTime1 = "2025/1/1 00:00:00"
  1751. let timezone = 2
  1752. let offset_GMT = new Date().getTimezoneOffset()
  1753. let nowDate = new Date().getTime()
  1754. let now = new Date(nowDate + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000).getTime()
  1755. let end = new Date(endTime1).getTime()
  1756. let start = new Date(startTime1).getTime()
  1757. if (now < end && start < now) ActivityNewYear24()
  1758. }
  1759. const ActivityNewYear24 = async () => {
  1760. let res = await activityApi.ActivityNewYear24({})
  1761. if (res.code == Code.StatusOK) {
  1762. tableDataNewYear24.value = res.data
  1763. if (typeof tableDataNewYear24.value == "object") toIncome()
  1764. } else {
  1765. uni.showToast({ title: res.msg, icon: 'none' })
  1766. }
  1767. }
  1768. const toIncome = () => {
  1769. let balance = Number(tableDataNewYear24.value.balance) || 0
  1770. tableDataNewYear24.value.details.forEach((item, index) => {
  1771. if (balance > item.min && balance <= item.max) {
  1772. NewYear24Data.rate = item.rate
  1773. NewYear24Data.index = item.index
  1774. NewYear24Data.balance = (Number(tableDataNewYear24.value.details[index + 1].min) - balance).toFixed(2)
  1775. NewYear24Data.income = ((Number(tableDataNewYear24.value.details[index + 1].min) * Number(tableDataNewYear24.value.details[index + 1].rate) / 100 / 365) * 365).toFixed(2)
  1776. tableDataNewYear24Flag.value = true
  1777. } else if (balance > item.min && balance >= item.max && item.max == 0) {
  1778. tableDataNewYear24Flag.value = false
  1779. }
  1780. })
  1781. }
  1782. //24新年庆典 结束
  1783. // 新改内容
  1784. // userStore.paymentChannel.value
  1785. // userStore.channelList.value
  1786. const channel = computed(() => userStore.paymentChannel)
  1787. const channelList = computed(() => userStore.channelList)
  1788. const channelListOptions = ref([])
  1789. const channelId = ref(null)
  1790. const loading = ref(false)
  1791. const setAllAmount = () => {
  1792. const found = loginOptions.value.find(opt => opt.login === Number(loginValue.value))
  1793. params.amount = parseInt(found.balance)
  1794. validateAmount()
  1795. }
  1796. const allTabs = computed(() => {
  1797. return {
  1798. "Digital_Currency": t('Custom.Deposit.Channel3'),
  1799. "China_UnionPay": t('Custom.Deposit.Channel2'),
  1800. "Electronic_Wallet": t('Custom.Deposit.Channel4'),
  1801. "International_Transfer": t('Custom.Deposit.Channel1'),
  1802. "Ucard_Wallet": t('card.title'),
  1803. }
  1804. })
  1805. function formatChannels(data) {
  1806. const result = []
  1807. // 遍历每个分类
  1808. for (const key in data) {
  1809. const list = data[key] || []
  1810. // 插入分类标题(禁用项)
  1811. if (list.length) {
  1812. result.push({
  1813. text: allTabs.value[key],
  1814. value: key,
  1815. disable: true
  1816. })
  1817. }
  1818. list.forEach(item => {
  1819. result.push({
  1820. ...item,
  1821. text: item.name,
  1822. value: item.code
  1823. })
  1824. })
  1825. }
  1826. return result
  1827. }
  1828. // 生命周期
  1829. onMounted(() => {
  1830. if (channelList.value) {
  1831. channelListOptions.value = formatChannels(channelList.value)
  1832. }
  1833. channelId.value = channel.value
  1834. getDateList()
  1835. isStep3Open()
  1836. setTimeout(() => {
  1837. if (country.value === "VN") dialogVietnamNotice.value = true
  1838. is20Open()
  1839. // Activity24nianzhongInfo();
  1840. // Activity24nianzhongTwoInfo();
  1841. // dealResult({ "type": 7, "result": "/krad/pin?serial=123123" })
  1842. isNewYear24Open()
  1843. ActivityRequiteInfo()
  1844. }, 800);
  1845. })
  1846. onUnmounted(() => {
  1847. // userStore.savePaymentChannel('')
  1848. // userStore.saveChannelList('')
  1849. })
  1850. watch(channelId, async (newVal) => {
  1851. if (newVal) {
  1852. showTable()
  1853. let row = channelListOptions.value.find(item => item.code == newVal)
  1854. console.log(newVal, channelListOptions, 12);
  1855. console.log(row, 12);
  1856. isShowStep3(row, 1111)
  1857. setTipsAmount()
  1858. }
  1859. });
  1860. watch(isStep3, async (newVal) => {
  1861. if (newVal) {
  1862. await nextTick();
  1863. formRef.value?.clearValidate();
  1864. resetForm();
  1865. await nextTick();
  1866. formRef.value?.clearValidate();
  1867. }
  1868. });
  1869. // Watch
  1870. watch(loginValue, (login) => {
  1871. if (login) {
  1872. step3.value = true
  1873. get23nianzhongTwoLogin(login);
  1874. getActivityExtensionGiveLogin(login);
  1875. getActivityExtensionGiveLoginJoin(login);
  1876. setTipsAmount()
  1877. }
  1878. })
  1879. watch(() => params.amount, (newVal) => {
  1880. if (newVal && channelData.rate) {
  1881. params.amount1 = (newVal * channelData.rate).toFixed(2)
  1882. }
  1883. })
  1884. watch(() => imageUrl, (newVal) => {
  1885. console.log(newVal, 12);
  1886. }, { deep: true })
  1887. watch(() => params.agree3, (newVal) => {
  1888. if (newVal) {
  1889. params.agree2 = false
  1890. params.agree4 = false
  1891. params.agree5 = false
  1892. params.agree6 = false
  1893. }
  1894. })
  1895. watch(() => params.agree2, (newVal) => {
  1896. if (newVal) {
  1897. params.agree3 = false
  1898. params.agree4 = false
  1899. params.agree5 = false
  1900. params.agree6 = false
  1901. }
  1902. })
  1903. watch(() => params.agree4, (newVal) => {
  1904. if (newVal) {
  1905. params.agree3 = false
  1906. params.agree2 = false
  1907. params.agree5 = false
  1908. params.agree6 = false
  1909. }
  1910. })
  1911. watch(() => params.agree5, (newVal) => {
  1912. if (newVal) {
  1913. params.agree3 = false
  1914. params.agree2 = false
  1915. params.agree4 = false
  1916. params.agree6 = false
  1917. }
  1918. })
  1919. watch(() => params.agree6, (newVal) => {
  1920. if (newVal) {
  1921. params.agree3 = false
  1922. params.agree2 = false
  1923. params.agree4 = false
  1924. params.agree5 = false
  1925. if (giveLoginJoin.value.flag == false) {
  1926. let tips = ""
  1927. if (giveLoginJoin.value.promptType == 1) tips = t("surplusList.item10")
  1928. else tips = t("surplusList.item11")
  1929. if (giveLoginJoin.value.activityCategory == 1) {
  1930. $pigeon.MessageConfirm(
  1931. tips,
  1932. t("Msg.SystemPrompt"),
  1933. t("surplusList.item12"),
  1934. t("Home.msg.item3"),
  1935. () => {
  1936. $pigeon.MessageConfirm(
  1937. t("surplusList.item13"),
  1938. t("Msg.SystemPrompt"),
  1939. t("Btn.Confirm"),
  1940. t("Btn.Cancel"),
  1941. async () => {
  1942. try {
  1943. const res = await activityApi.ActivityGiveCancel({ login: $route.query.login })
  1944. if (res.code == Code.StatusOK) $pigeon.MessageOK(res.msg || t("Msg.Success"))
  1945. else uni.showToast({ title: res.msg, icon: 'none' })
  1946. } catch (error) {
  1947. $pigeon.MessageError(t("Msg.Fail"))
  1948. }
  1949. },
  1950. () => { params.agree6 = false }
  1951. )
  1952. },
  1953. () => { },
  1954. { showCancelButton: true }
  1955. )
  1956. } else if (giveLoginJoin.value.activityCategory == 2) {
  1957. $pigeon.MessageConfirm(
  1958. tips,
  1959. t("Msg.SystemPrompt"),
  1960. "跳转",
  1961. t("Btn.Cancel"),
  1962. () => {
  1963. $pigeon.MessageConfirm(
  1964. "是否跳转到对应活动取消",
  1965. t("Msg.SystemPrompt"),
  1966. t("Btn.Confirm"),
  1967. t("Btn.Cancel"),
  1968. () => {
  1969. uni.navigateTo({ url: "/pages/customer/monthly/list" })
  1970. },
  1971. () => { params.agree6 = false }
  1972. )
  1973. },
  1974. () => { },
  1975. { showCancelButton: false }
  1976. )
  1977. } else {
  1978. $pigeon.MessageConfirm(
  1979. tips,
  1980. t("Msg.SystemPrompt"),
  1981. t("Btn.Confirm"),
  1982. t("Btn.Cancel")
  1983. )
  1984. }
  1985. }
  1986. }
  1987. })
  1988. </script>
  1989. <style lang="scss" scoped>
  1990. @import "@/uni.scss";
  1991. .custom-deposit {
  1992. width: px2rpx(566);
  1993. flex-shrink: 0;
  1994. .crm-title-box {
  1995. margin-bottom: px2rpx(20);
  1996. .tit {
  1997. font-size: px2rpx(20);
  1998. font-weight: 700;
  1999. color: var(--bs-heading-color);
  2000. }
  2001. }
  2002. .box {
  2003. margin-bottom: px2rpx(20);
  2004. .b-card {
  2005. // background: #fff;
  2006. // border-radius: px2rpx(12);
  2007. // padding: px2rpx(20);
  2008. // box-shadow: 0 px2rpx(4) px2rpx(12) rgba(0, 0, 0, 0.03);
  2009. .card-top {
  2010. .tit {
  2011. font-size: px2rpx(16);
  2012. font-weight: 600;
  2013. margin-bottom: px2rpx(16);
  2014. display: flex;
  2015. align-items: center;
  2016. color: var(--bs-heading-color);
  2017. position: relative;
  2018. padding-left: 20px;
  2019. &:after {
  2020. content: '';
  2021. position: absolute;
  2022. left: 0;
  2023. top: 50%;
  2024. transform: translateY(-50%);
  2025. width: 0;
  2026. height: 0;
  2027. border-top: 6px solid transparent;
  2028. border-bottom: 6px solid transparent;
  2029. border-left: 8px solid currentColor;
  2030. }
  2031. }
  2032. }
  2033. .channelType {
  2034. font-size: px2rpx(15);
  2035. font-weight: 600;
  2036. margin: px2rpx(24) 0 px2rpx(12);
  2037. color: var(--color-navy-700);
  2038. padding-left: px2rpx(8);
  2039. border-left: px2rpx(4) solid var(--color-primary);
  2040. }
  2041. }
  2042. }
  2043. .reselect-btn {
  2044. margin-top: px2rpx(20);
  2045. display: flex;
  2046. justify-content: flex-end;
  2047. .reselect {
  2048. background-color: var(--color-zinc-100);
  2049. color: var(--color-navy-700);
  2050. border: none;
  2051. font-size: px2rpx(14);
  2052. padding: px2rpx(8) px2rpx(20);
  2053. border-radius: px2rpx(8);
  2054. &:active {
  2055. background-color: var(--color-zinc-200);
  2056. }
  2057. }
  2058. }
  2059. .s-btn[type="primary"] {
  2060. width: 100%;
  2061. height: px2rpx(48);
  2062. background-color: #cf1322;
  2063. color: var(--bs-emphasis-color);
  2064. border-radius: px2rpx(12);
  2065. font-size: px2rpx(16);
  2066. font-weight: 600;
  2067. display: flex;
  2068. align-items: center;
  2069. justify-content: center;
  2070. border: none;
  2071. margin-top: px2rpx(30);
  2072. transition: all 0.2s;
  2073. &:active {
  2074. transform: scale(0.98);
  2075. background-color: #cf1322;
  2076. }
  2077. }
  2078. .add-back {
  2079. display: flex;
  2080. justify-content: space-between;
  2081. align-items: center;
  2082. margin-bottom: px2rpx(12);
  2083. padding: px2rpx(12) px2rpx(16);
  2084. background: var(--color-zinc-100);
  2085. border-radius: px2rpx(8);
  2086. text {
  2087. font-size: px2rpx(14);
  2088. color: var(--color-navy-700);
  2089. font-weight: 500;
  2090. }
  2091. .add-btn {
  2092. color: var(--color-primary);
  2093. font-weight: 600;
  2094. text-decoration: underline;
  2095. &:active {
  2096. opacity: 0.7;
  2097. }
  2098. }
  2099. }
  2100. .wire-transfer-account {
  2101. background: var(--color-zinc-50);
  2102. padding: px2rpx(16);
  2103. border-radius: px2rpx(12);
  2104. margin: px2rpx(16) 0;
  2105. // .row {
  2106. // display: flex;
  2107. // margin-bottom: px2rpx(12);
  2108. // font-size: px2rpx(14);
  2109. // &:last-child {
  2110. // margin-bottom: 0;
  2111. // }
  2112. // .label {
  2113. // width: px2rpx(120);
  2114. // color: var(--color-zinc-500);
  2115. // }
  2116. // .content {
  2117. // flex: 1;
  2118. // color: var(--bs-heading-color);
  2119. // font-weight: 500;
  2120. // }
  2121. // .SpecialColor {
  2122. // color: var(--color-error);
  2123. // }
  2124. // }
  2125. }
  2126. .activities {
  2127. margin: px2rpx(24) 0;
  2128. .checkbox {
  2129. display: flex;
  2130. align-items: flex-start;
  2131. gap: px2rpx(8);
  2132. margin-bottom: px2rpx(12);
  2133. :deep(uni-checkbox .uni-checkbox-input) {
  2134. border-radius: px2rpx(4);
  2135. width: px2rpx(18);
  2136. height: px2rpx(18);
  2137. }
  2138. text {
  2139. font-size: px2rpx(14);
  2140. color: var(--color-navy-700);
  2141. font-weight: 500;
  2142. line-height: 1.5;
  2143. }
  2144. }
  2145. .clause-text {
  2146. font-size: px2rpx(13);
  2147. color: var(--color-zinc-500);
  2148. line-height: 1.6;
  2149. padding-left: px2rpx(26);
  2150. .clause {
  2151. color: var(--color-primary);
  2152. text-decoration: underline;
  2153. }
  2154. }
  2155. }
  2156. .step3-attention {
  2157. // background: var(--color-error-50, #fff1f0);
  2158. border-radius: px2rpx(12);
  2159. margin-bottom: px2rpx(20);
  2160. .tips {
  2161. line-height: 1.8;
  2162. font-size: px2rpx(12);
  2163. color: var(--bs-heading-color);
  2164. background-color: rgba(var(--bs-body-bg-rgb), 1) !important;
  2165. padding: px2rpx(12);
  2166. border-radius: px2rpx(4);
  2167. border-left: px2rpx(2) solid #cf1322;
  2168. .title {
  2169. font-weight: 600;
  2170. margin-bottom: px2rpx(6);
  2171. color: var(--bs-heading-color);
  2172. }
  2173. }
  2174. .attention {
  2175. font-size: px2rpx(14);
  2176. // color: var(--color-error-600, #cf1322);
  2177. line-height: 1.6;
  2178. }
  2179. .btn-bottom {
  2180. margin-top: px2rpx(20);
  2181. display: flex;
  2182. justify-content: center;
  2183. .btn {
  2184. color: var(--bs-emphasis-color);
  2185. padding: px2rpx(10) px2rpx(48);
  2186. border-radius: px2rpx(24);
  2187. font-size: px2rpx(15);
  2188. font-weight: 700;
  2189. box-shadow: 0 px2rpx(4) px2rpx(10) rgba(207, 19, 34, 0.2);
  2190. transition: all 0.2s;
  2191. &:active {
  2192. transform: scale(0.96);
  2193. opacity: 0.8;
  2194. }
  2195. }
  2196. }
  2197. }
  2198. .upload-box {
  2199. display: flex;
  2200. align-items: center;
  2201. gap: px2rpx(12);
  2202. .btn-upload {
  2203. background: var(--color-zinc-100);
  2204. border: px2rpx(1) dashed var(--color-zinc-300);
  2205. border-radius: px2rpx(8);
  2206. height: px2rpx(44);
  2207. font-size: px2rpx(14);
  2208. color: var(--color-zinc-600);
  2209. display: flex;
  2210. align-items: center;
  2211. justify-content: center;
  2212. padding: 0 px2rpx(20);
  2213. }
  2214. .img-preview {
  2215. width: px2rpx(44);
  2216. height: px2rpx(44);
  2217. border-radius: px2rpx(4);
  2218. object-fit: cover;
  2219. }
  2220. }
  2221. .error {
  2222. color: var(--color-error);
  2223. font-size: px2rpx(12);
  2224. margin-top: px2rpx(4);
  2225. display: block;
  2226. }
  2227. :deep(.base-info-form) {
  2228. .uni-row1 {
  2229. .uni-col {
  2230. padding: 0 px2rpx(10) !important;
  2231. }
  2232. .uni-forms-item {
  2233. min-height: px2rpx(79);
  2234. margin-bottom: px2rpx(10);
  2235. position: relative;
  2236. }
  2237. .uni-easyinput__content-input {
  2238. height: px2rpx(35) !important;
  2239. }
  2240. }
  2241. }
  2242. .popup-content {
  2243. background: #fff;
  2244. border-radius: px2rpx(20);
  2245. padding: px2rpx(24);
  2246. width: px2rpx(320);
  2247. text-align: center;
  2248. .popup-title {
  2249. font-size: px2rpx(18);
  2250. font-weight: 700;
  2251. margin-bottom: px2rpx(20);
  2252. color: var(--bs-heading-color);
  2253. display: block;
  2254. }
  2255. .popup-text {
  2256. font-size: px2rpx(14);
  2257. line-height: 1.6;
  2258. color: var(--color-zinc-600);
  2259. margin-bottom: px2rpx(20);
  2260. display: block;
  2261. }
  2262. .popup-form {
  2263. background: var(--color-zinc-50);
  2264. border-radius: px2rpx(12);
  2265. padding: px2rpx(16);
  2266. margin-bottom: px2rpx(24);
  2267. text-align: left;
  2268. .popup-row {
  2269. display: flex;
  2270. justify-content: space-between;
  2271. margin-bottom: px2rpx(12);
  2272. font-size: px2rpx(14);
  2273. &:last-child {
  2274. margin-bottom: 0;
  2275. }
  2276. .label {
  2277. color: var(--color-zinc-500);
  2278. font-weight: 500;
  2279. }
  2280. text:not(.label) {
  2281. color: var(--bs-heading-color);
  2282. font-weight: 500;
  2283. }
  2284. .small-input {
  2285. width: px2rpx(60);
  2286. background: #fff;
  2287. border: px2rpx(1) solid var(--color-zinc-200);
  2288. border-radius: px2rpx(4);
  2289. padding: 0 px2rpx(4);
  2290. height: px2rpx(24);
  2291. font-size: px2rpx(12);
  2292. }
  2293. }
  2294. }
  2295. .popup-buttons {
  2296. display: flex;
  2297. gap: px2rpx(12);
  2298. button {
  2299. flex: 1;
  2300. height: px2rpx(44);
  2301. border-radius: px2rpx(10);
  2302. font-size: px2rpx(15);
  2303. font-weight: 600;
  2304. display: flex;
  2305. align-items: center;
  2306. justify-content: center;
  2307. border: none;
  2308. &[type="primary"] {
  2309. background-color: #cf1322;
  2310. color: var(--bs-emphasis-color);
  2311. }
  2312. &:not([type="primary"]) {
  2313. background: var(--color-zinc-100);
  2314. color: var(--color-zinc-600);
  2315. }
  2316. }
  2317. }
  2318. .result-icon {
  2319. display: flex;
  2320. justify-content: center;
  2321. margin-bottom: px2rpx(16);
  2322. .iconfont {
  2323. font-size: px2rpx(48);
  2324. &.iconchenggong {
  2325. color: #52c41a;
  2326. }
  2327. &.iconjingshi {
  2328. color: #faad14;
  2329. }
  2330. &.icondengdai {
  2331. color: var(--color-primary);
  2332. animation: rotate 2s linear infinite;
  2333. }
  2334. }
  2335. }
  2336. }
  2337. @keyframes rotate {
  2338. from {
  2339. transform: rotate(0deg);
  2340. }
  2341. to {
  2342. transform: rotate(360deg);
  2343. }
  2344. }
  2345. .avatar-uploader {
  2346. border: 1px dashed;
  2347. width: px2rpx(200);
  2348. height: px2rpx(150);
  2349. display: flex;
  2350. flex-direction: column;
  2351. align-items: center;
  2352. justify-content: center;
  2353. /*float: left;*/
  2354. //overflow: hidden;
  2355. }
  2356. :deep(.files-button) {
  2357. .file-item {
  2358. .icon,
  2359. .avatar {
  2360. width: px2rpx(200);
  2361. height: px2rpx(150);
  2362. }
  2363. }
  2364. }
  2365. }
  2366. .label-with-icon {
  2367. display: flex;
  2368. align-items: center;
  2369. gap: px2rpx(8);
  2370. :deep(.uni-tooltip) {
  2371. display: flex;
  2372. align-items: center;
  2373. justify-content: center;
  2374. }
  2375. }
  2376. .tooltip-content {
  2377. :deep(.uni-tooltip-popup) {
  2378. background-color: #fff !important;
  2379. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1) !important;
  2380. width: px2rpx(300) !important;
  2381. color: var(--color-zinc-500);
  2382. line-height: 1.6;
  2383. }
  2384. }
  2385. .help-icon {
  2386. margin-left: px2rpx(8);
  2387. width: px2rpx(16);
  2388. height: px2rpx(16);
  2389. background: var(--color-zinc-200);
  2390. border-radius: 50%;
  2391. display: flex;
  2392. align-items: center;
  2393. justify-content: center;
  2394. font-size: px2rpx(12);
  2395. color: var(--color-zinc-600);
  2396. cursor: pointer;
  2397. }
  2398. .amount-box {
  2399. display: flex;
  2400. align-items: center;
  2401. gap: px2rpx(12);
  2402. .amount-input {
  2403. flex: 1;
  2404. }
  2405. .btn {
  2406. display: flex;
  2407. align-items: center;
  2408. justify-content: center;
  2409. font-size: px2rpx(14);
  2410. margin-bottom: px2rpx(12);
  2411. height: px2rpx(35);
  2412. color: #fff;
  2413. border-radius: px2rpx(4);
  2414. font-weight: 600;
  2415. display: flex;
  2416. align-items: center;
  2417. justify-content: center;
  2418. border: none;
  2419. padding: 0 px2rpx(20);
  2420. margin-top: px2rpx(21);
  2421. cursor: pointer;
  2422. }
  2423. }
  2424. .custom-deposit-container {
  2425. width: 100%;
  2426. display: flex;
  2427. gap: px2rpx(60);
  2428. justify-content: space-between;
  2429. }
  2430. @media (max-width: 992px) {
  2431. .custom-deposit {
  2432. width: 100%;
  2433. margin-top: px2rpx(20);
  2434. }
  2435. .custom-deposit-container {
  2436. display: flex;
  2437. gap: px2rpx(30);
  2438. flex-wrap: wrap;
  2439. }
  2440. }
  2441. </style>