deposit.vue 98 KB

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