deposit-select.vue 103 KB

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