deposit.vue 124 KB

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