deposit.vue 98 KB

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