deposit.vue 97 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585
  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
  151. :placeholder="''" />
  152. </uni-forms-item>
  153. </view>
  154. <!-- 优惠码 -->
  155. <view class="col-lg-6">
  156. <h5 class="mb-3">
  157. <view class="label-with-icon">
  158. <text>{{ t('Custom.Deposit.PromoCode') }}</text>
  159. <uni-tooltip placement="right">
  160. <!-- <view class="help-icon">ⓘ</view> -->
  161. <cwg-icon name="icon_about us" :size="16" />
  162. <template #content>
  163. <text>{{ t('news_add_field.Des.item3') }}</text>
  164. </template>
  165. </uni-tooltip>
  166. </view>
  167. </h5>
  168. <uni-forms-item name="promoCode">
  169. <uni-easyinput v-model="params.promoCode"
  170. :placeholder="t('placeholder.input')" />
  171. </uni-forms-item>
  172. </view>
  173. <!-- 上传汇款凭证(特定渠道) -->
  174. <view class="col-lg-6" v-if="
  175. channelData.code == 'UNION_PAY_TELEGRAPHIC' ||
  176. channelData.code == 'UNION_PAY_TELEGRAPHIC_SPECIAL' ||
  177. channelData.code == 'UNION_PAY_TELEGRAPHIC_TWO'
  178. ">
  179. <h5 class="mb-3" v-t="'Custom.Deposit.UploadRemittanceVoucher'"></h5>
  180. <view>
  181. <uni-forms-item>
  182. <cwg-file-picker-wrapper v-model="imageUrl" :limit="1" :editable="true"
  183. :imageWidth="100" :imageHeight="100" :fileMediatype="'all'"
  184. uploadUrl="/common/upload" :baseUrl="Host80" />
  185. </uni-forms-item>
  186. </view>
  187. </view>
  188. <!-- ========== 赠金活动部分 ========== -->
  189. <!-- 10%赠金(年中赠金) -->
  190. <view v-if="tableData4Flag">
  191. <uni-forms-item class="agree" name="agree4">
  192. <label class="checkbox">
  193. <checkbox :checked="params.agree4"
  194. @click="params.agree4 = !params.agree4" />
  195. <text>{{ t('news_add_field1.activitiesNZ.itemDeposit1')
  196. }}</text>
  197. </label>
  198. <view style="line-height: 1.5; font-size: 14px">
  199. <text>{{ t('news_add_field1.activitiesNZ.itemDeposit2')
  200. }}</text>
  201. <text class="clause crm-cursor" @click="dialogClauseNZ = true">{{
  202. t('news_add_field1.activitiesNZ.itemDeposit3')
  203. }}</text>
  204. <text>{{ t('news_add_field1.activitiesNZ.itemDeposit4')
  205. }}</text>
  206. </view>
  207. </uni-forms-item>
  208. </view>
  209. <!-- 20%赠金(年中赠金) -->
  210. <view v-if="tableData4TwoFlag">
  211. <uni-forms-item class="agree" name="agree5">
  212. <label class="checkbox">
  213. <checkbox :checked="params.agree5"
  214. @click="params.agree5 = !params.agree5" />
  215. <text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit1')
  216. }}</text>
  217. </label>
  218. <view style="line-height: 1.5; font-size: 14px">
  219. <text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit2')
  220. }}</text>
  221. <text class="clause crm-cursor" @click="dialogClauseNZTwo = true">{{
  222. t('news_add_field1.activitiesNZTwo.itemDeposit3') }}</text>
  223. <text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit4')
  224. }}</text>
  225. </view>
  226. </uni-forms-item>
  227. </view>
  228. <!-- 赠送活动(动态) -->
  229. <view v-if="tableDataNewListFlag">
  230. <uni-forms-item class="agree" name="agree6">
  231. <label>
  232. <checkbox :checked="params.agree6"
  233. @click="params.agree6 = !params.agree6" />
  234. <text>{{ tableDataNewList.title }}</text>
  235. </label>
  236. <view style="line-height: 1.5; font-size: 14px">
  237. <text>{{ t('news_add_field1.activitiesNewList.item1') }}</text>
  238. <text class="clause crm-cursor" @click="dialogClauseNewList = true">{{
  239. tableDataNewList.title }}</text>
  240. <text>{{ t('news_add_field1.activitiesNewList.item2') }}</text>
  241. </view>
  242. </uni-forms-item>
  243. </view>
  244. <!-- 20%赠金申请(特定账户类型) -->
  245. <view
  246. v-if="(ACCType == 1 || ACCType == 2 || ACCType == 5 || ACCType == 6 || ACCType == 7) && anshiClose">
  247. <uni-forms-item class="agree" name="agree3">
  248. <label class="checkbox">
  249. <checkbox :checked="params.agree3"
  250. @click="params.agree3 = !params.agree3" />
  251. <text>{{ t('news_add_field1.deposit.item3') }}</text>
  252. </label>
  253. <view style="line-height: 1.5; font-size: 14px">
  254. <text>{{ t('news_add_field1.deposit.item4') }}</text>
  255. <text class="clause crm-cursor" @click="dialogClause1 = true">{{
  256. t('news_add_field1.deposit.item5') }}</text>
  257. <text>{{ t('news_add_field1.deposit.item6') }}</text>
  258. </view>
  259. </uni-forms-item>
  260. </view>
  261. <!-- 普通10%赠金(非年中、非特定账户) -->
  262. <view
  263. v-if="!tableData4Flag && !tableData4TwoFlag && !tableDataNewListFlag && (country != 'CN' || (country == 'CN' && (ACCType == 1 || ACCType == 2 || ACCType == 7 || ACCType == 5 || ACCType == 6 || ACCType == 8))) && ACCType != 3">
  264. <template v-if="isSupportedCountry && (ACCType == 2 || ACCType == 7)">
  265. <uni-forms-item class="agree" name="agree2">
  266. <label>
  267. <checkbox :checked="params.agree2"
  268. @click="params.agree2 = !params.agree2" />
  269. <text>{{ t('news_add_field1.deposit.item2_1') }}</text>
  270. </label>
  271. <view style="line-height: 1.5; font-size: 14px">
  272. <text>{{ t('Custom.Deposit.agree21') }}</text>
  273. <cwg-link type="pdf" title="Custom.Deposit.agree22_2"
  274. :url="`pdf/pdf4/100Bonus-en.pdf`" style="color: black" />
  275. <text>{{ t('Custom.Deposit.agree23_2') }}</text>
  276. </view>
  277. </uni-forms-item>
  278. </template>
  279. <template
  280. v-else-if="!isSupportedCountry && ACCType != 8 && !isAfterSeptember30()">
  281. <uni-forms-item class="agree" name="agree2">
  282. <label>
  283. <checkbox :checked="params.agree2"
  284. @click="params.agree2 = !params.agree2" />
  285. <text>{{ t('news_add_field1.deposit.item1') }}</text>
  286. </label>
  287. <view style="line-height: 1.5; font-size: 14px">
  288. <text>{{ t('Custom.Deposit.agree21') }}</text>
  289. <cwg-link type="pdf" title="Custom.Deposit.agree22"
  290. :url="`pdf/pdf4/${langCN}.pdf`" style="color: black" />
  291. <text>{{ t('Custom.Deposit.agree23_1') }}</text>
  292. </view>
  293. </uni-forms-item>
  294. </template>
  295. </view>
  296. <button class="btn btn-dark waves-effect waves-light" @click="submitConfirm">{{
  297. t('Btn.Submit')
  298. }}</button>
  299. </view>
  300. </uni-forms>
  301. </view>
  302. </view>
  303. </view>
  304. <view class="col-lg-4">
  305. <view class="tips" v-if="(introduce.introduce || introduce.enIntroduce)">
  306. <view class="card card-body">
  307. <cwg-rich-text class="attention"
  308. :nodes="isZh ? introduce.introduce : introduce.enIntroduce" />
  309. </view>
  310. </view>
  311. </view>
  312. </view>
  313. </view>
  314. <!-- 不参加活动弹出框 -->
  315. <cwg-dont-active-popup v-model:visible="dialogDontActive" :showFooters="true" @confirm="tosubmitConfirm" />
  316. <!-- 新年24用户提示弹窗 -->
  317. <NewYear24Popup v-model:visible="tableDataNewYear24Flag" />
  318. <!-- 越南用户提示弹窗 -->
  319. <VietnamNoticePopup v-model:visible="dialogVietnamNotice" />
  320. <!-- 提交后确认弹窗 -->
  321. <cwg-check-confirm-popup v-model:visible="dialogCheckConfirm" :title="t('Home.page_customer.item2')"
  322. :channelData="channelData" :code="code" :selectCodes="selectCodes" :params="params" :userName="userName"
  323. :login="loginValue" :loginDoc="loginValueDoc" @confirm="submit" />
  324. <!--提交后的弹出框-->
  325. <CheckPopup v-model:visible="dialogCheckSuccess" :goPayLink="goPayLink" @close="closeDia" />
  326. <!-- 提交后失败弹窗 -->
  327. <cwg-error-popup v-model:visible="dialogCheckError" :responseMessage="RES" />
  328. <!-- 最后失败弹窗 -->
  329. <cwg-error-popup v-model:visible="dialogError" @confirm="closeDia" :responseMessage="RES" />
  330. <!-- 最后成功弹窗 -->
  331. <cwg-success-popup v-model:visible="dialogSuccess" @confirm="closeDia" />
  332. <!-- 等待弹窗 -->
  333. <cwg-wait-popup v-model:visible="dialogCheckWait" :showFooters="false" />
  334. <!-- 赠金协议 -->
  335. <ClausePopup v-model:visible="dialogClause" country="CN" :isGuoQin="isGuoQin" />
  336. <!-- 赠金协议20 -->
  337. <Clause20Popup v-model:visible="dialogClause1" />
  338. <!-- 赠金协议10年中 -->
  339. <ClauseNZPopup v-model:visible="dialogClauseNZ" :title="t('news_add_field1.activitiesNZ.item6')"
  340. :startDate="tableData4.applicationStartTime" :endDate="tableData4.applicationEndTime" />
  341. <!-- 赠金协议20年中 -->
  342. <ClauseNZTwoPopup v-model:visible="dialogClauseNZTwo" :title="t('news_add_field1.activitiesNZTwo.item6')"
  343. :startDate="tableData4Two.applicationStartTime" :endDate="tableData4Two.applicationEndTime" />
  344. <!-- 赠送活动详情-协议 -->
  345. <ClauseNewListPopup v-model:visible="dialogClauseNewList" :content="tableDataNewList.content"
  346. :title="tableDataNewList.title" />
  347. <!--提交后完成弹出框-->
  348. <ChinaUnionPayPopup v-model:visible="dialogChinaUnionPay" />
  349. <!-- 重新提交弹窗 -->
  350. <DealResultPopup v-model:visible="dialogDealResult" :responseMessage="responseMessage"
  351. :title="dialogDealResultTitle" :initialData="dialogDealResult_form" :type="DealResultType"
  352. @confirm="submitDealResult" />
  353. <!-- KYC成功弹窗 -->
  354. <cwg-kyc-popup v-model:visible="dialogKyc" :qrText="text1" />
  355. <!-- 数字支付确认弹窗 -->
  356. <DigitalPayConfirmPopup v-model:visible="dialogDigitalPayConfirm" :WireTransferAccount="WireTransferAccount"
  357. @close="closeDigitalPayConfirm" @confirm="confirmDigitalPayModal" />
  358. </cwg-page-wrapper>
  359. </template>
  360. <script setup>
  361. import { ref, reactive, computed, watch, onMounted, nextTick, onUnmounted } from 'vue'
  362. import { useI18n } from 'vue-i18n'
  363. const { t, locale } = useI18n()
  364. import useUserStore from '@/stores/use-user-store'
  365. import { customApi } from '@/service/custom'
  366. import { financialApi } from '@/service/financial'
  367. import { activityApi } from '@/service/activity'
  368. import Config from '@/config/index'
  369. const { Code, Host80, Host04 } = Config
  370. import { initLink } from '@/utils/setUrl'
  371. import isImageType from '@/global/isImageType'
  372. import PaymentMethodsList from './components/PaymentMethodsList.vue'
  373. import CwgKycPopup from './components/KycPopup.vue'
  374. import DealResultPopup from './components/DealResultPopup.vue'
  375. import ChinaUnionPayPopup from './components/ChinaUnionPayPopup.vue'
  376. import ClauseNewListPopup from './components/ClauseNewListPopup.vue'
  377. import ClauseNZTwoPopup from './components/ClauseNZTwoPopup.vue'
  378. import ClauseNZPopup from './components/ClauseNZPopup.vue'
  379. import Clause20Popup from './components/Clause20Popup.vue'
  380. import ClausePopup from './components/ClausePopup.vue'
  381. import CheckPopup from './components/CheckPopup.vue'
  382. import CwgCheckConfirmPopup from './components/DepositCheckConfirmPopup.vue'
  383. import VietnamNoticePopup from './components/VietnamNoticePopup.vue'
  384. import NewYear24Popup from './components/NewYear24Popup.vue'
  385. import DigitalPayConfirmPopup from './components/digitalPayConfirmPopup.vue'
  386. // 假设原有导入路径保持不变
  387. import tool from "@/global/tool"
  388. import { userToken } from '@/composables/config'
  389. // import { createUploadRequest } from "@/lib/upload"
  390. // 常量
  391. const countries = [
  392. "DZ", "AO", "BJ", "BW", "BF", "CM", "CG", "CD", "CI", "DJ", "EG", "ET", "GA", "GM", "GH", "GN", "KE", "MG", "MW", "ML", "MR", "MA", "MZ", "NA", "NE", "NG", "RW", "SN", "SL", "SO", "ZA", "SS", "SD", "TZ", "TG", "TN", "UG", "ZM", "ZW", "LS", "BH", "IR", "IQ", "IL", "JO", "KW", "LB", "OM", "PS", "QA", "SA", "SY", "TR", "AE", "YE", "AR", "BO", "BR", "CL", "CO", "EC", "GY", "PY", "PE", "SR", "UY", "VE", "BZ", "CR", "SV", "GT", "HN", "NI", "PA", "AU", "CA", "AL", "AD", "AM", "AT", "AZ", "BY", "BE", "BA", "BG", "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "GE", "DE", "GR", "HU", "IS", "IE", "IT", "XK", "LV", "LI", "LT", "LU", "MT", "MD", "MC", "ME", "NL", "MK", "NO", "PL", "PT", "RO", "RU", "SM", "RS", "SK", "SI", "ES", "SE", "CH", "UA", "VA",
  393. ]
  394. // 用户信息
  395. const userStore = useUserStore()
  396. const userInfo = computed(() => userStore.userInfo)
  397. // 获取全局 Session 等,假设它们挂载在 uni 或 global 上
  398. const Session = {
  399. Get: (key, parse = false) => {
  400. const val = uni.getStorageSync(key)
  401. return parse ? JSON.parse(val) : val
  402. }
  403. }
  404. const handleFileUpdate = (val, type) => {
  405. if (type == '1') {
  406. params.requiteVoucherUrl = val
  407. }
  408. }
  409. const isZh = computed(() => ['cn', 'zhHant'].includes(locale.value))
  410. function isPdf(url, image) {
  411. let res = !!url
  412. if (image) {
  413. return res && url.substr(-3, 3) == 'pdf' &&
  414. url.substr(-3, 3) == 'PDF'
  415. }
  416. return res && (url.substr(-3, 3) == 'pdf' ||
  417. url.substr(-3, 3) == 'PDF')
  418. }
  419. const $pigeon = {
  420. MessageError: (msg) => uni.showToast({ title: msg, icon: 'none' }),
  421. MessageOK: (msg) => uni.showToast({ title: msg, icon: 'success' }),
  422. MessageWarning: (msg) => uni.showToast({ title: msg, icon: 'none' }),
  423. MessageConfirm: (msg, title, confirmText, cancelText, onConfirm, onCancel, options = {}) => {
  424. uni.showModal({
  425. title,
  426. content: msg,
  427. confirmText,
  428. cancelText,
  429. success: (res) => {
  430. if (res.confirm) onConfirm && onConfirm()
  431. else if (res.cancel) onCancel && onCancel()
  432. }
  433. })
  434. }
  435. }
  436. const $route = { query: {} } // 需从外部注入
  437. // 响应式数据
  438. const loginValue = ref("")
  439. const loginValueDoc = ref("")
  440. const metaInfo = ref(null)
  441. const text1 = ref("")
  442. const dialogKyc = ref(false)
  443. const requiteVoucherUrl = ref("")
  444. const limitedStatus = ref(null)
  445. const limitedStatusCheck = ref(false)
  446. const pictLoadingImg = ref(false)
  447. const flag = ref(false)
  448. const RES = ref("")
  449. const imgUrl = ref(Host80)
  450. const Host05 = ref(Config.Host05)
  451. const loginOptions = ref([])
  452. const code = ref("")
  453. const selectCodes = ref("")
  454. const bankValid = ref("")
  455. const requestUrl = ref("")
  456. const isStep3 = ref(false)
  457. const step2 = ref(false)
  458. const step3 = ref(false)
  459. const value = ref("")
  460. const giveLoginJoin = ref("")
  461. const openType = ref("")
  462. const dialogInfoTradingAdd = ref(false)
  463. const ruleForm = reactive({
  464. bankInfo: [],
  465. bankWrit: [],
  466. bankCredit: []
  467. })
  468. const bankInfoList = ref([])
  469. const bank = ref("")
  470. const myId = ref(null)
  471. const bankPayType = ref("")
  472. const form = reactive({})
  473. const dialogDealResult = ref(false)
  474. const dialogDealResult_form = reactive({})
  475. const DealResultType = ref(null)
  476. const DealResultResult = ref("")
  477. const dialogDealResultTitle = ref("")
  478. const anshiClose = ref(true)
  479. const isChannel = ref(true)
  480. const pictLoading = ref(false)
  481. const tableData = reactive({
  482. International_Transfer: [],
  483. China_UnionPay: [],
  484. Digital_Currency: [],
  485. Electronic_Wallet: [],
  486. Ucard_Wallet: []
  487. })
  488. const tableData1 = reactive({
  489. International_Transfer: [],
  490. China_UnionPay: [],
  491. Digital_Currency: [],
  492. Electronic_Wallet: [],
  493. Ucard_Wallet: []
  494. })
  495. //通道table-选择前后
  496. const activeTab = ref(1)
  497. // 🔥 自动过滤掉空数据的 tab
  498. const tabsConfig = computed(() => {
  499. const allTabs = [
  500. { text: t('Custom.Deposit.Channel3'), value: 1, type: 'Digital_Currency' },
  501. { text: t('Custom.Deposit.Channel2'), value: 2, type: 'China_UnionPay' },
  502. { text: t('Custom.Deposit.Channel4'), value: 3, type: 'Electronic_Wallet' },
  503. { text: t('Custom.Deposit.Channel1'), value: 4, type: 'International_Transfer' },
  504. { text: t('card.title'), value: 5, type: 'Ucard_Wallet' },
  505. ]
  506. // ✅ 只保留有数据的 tab
  507. return allTabs.filter(tab => {
  508. console.log(tableData1[tab.type], tab.type);
  509. return tableData1[tab.type]?.length > 0
  510. })
  511. })
  512. // 当前选中的 tab 项
  513. const currentTab = computed(() => tabsConfig.value.find(t => t.value === activeTab.value))
  514. // 当前要渲染的表格数据
  515. const currentTableData = computed(() => {
  516. const type = currentTab.value?.type
  517. return type ? tableData[type] || [] : []
  518. })
  519. // ✅ 监听 tab 变化,自动选中第一个有数据的 tab
  520. watch(
  521. tabsConfig,
  522. (newTabs) => {
  523. if (newTabs.length > 0) {
  524. activeTab.value = newTabs[0].value // 选中第一个
  525. }
  526. },
  527. { immediate: true }
  528. )
  529. watch(
  530. currentTab,
  531. (newTabs) => {
  532. // showTable()
  533. },
  534. { immediate: true }
  535. )
  536. const bankDate = ref([])
  537. const channelData = reactive({
  538. 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.image;
  1137. hashCode.value = e.hashCode;
  1138. openDontActive();
  1139. }
  1140. // 关闭数字支付确认弹窗
  1141. const closeDigitalPayConfirm = () => {
  1142. dialogDigitalPayConfirm.value = false;
  1143. }
  1144. // 打开不参加活动弹窗
  1145. const openDontActive = () => {
  1146. 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) {
  1147. tosubmitConfirm()
  1148. return
  1149. }
  1150. if (tableData4Flag.value && params.agree4) {
  1151. tosubmitConfirm()
  1152. return
  1153. }
  1154. if (tableData4TwoFlag.value && params.agree5) {
  1155. tosubmitConfirm()
  1156. return
  1157. }
  1158. if (tableDataNewListFlag.value && params.agree6) {
  1159. tosubmitConfirm()
  1160. return
  1161. }
  1162. if (limitedStatus.value && limitedStatusCheck.value) {
  1163. tosubmitConfirm()
  1164. return
  1165. }
  1166. if ((ACCType.value == 1 || ACCType.value == 2 || ACCType.value == 5 || ACCType.value == 6 || ACCType.value == 7) && anshiClose.value && params.agree3) {
  1167. tosubmitConfirm()
  1168. return
  1169. }
  1170. tosubmitConfirm()
  1171. }
  1172. // 打开提交前信息弹窗
  1173. const tosubmitConfirm = () => {
  1174. dialogDontActive.value = false
  1175. dialogCheckConfirm_form.confirmAreaCode = areaCode.value
  1176. dialogCheckConfirm_form.confirmPhone = phone.value
  1177. dialogCheckConfirm.value = true
  1178. }
  1179. // 最后确认
  1180. const dialogSuccess = computed(() => dialogCheckOK.value && dialogVisible.value)
  1181. // 最后失败
  1182. const dialogError = computed(() => dialogCheckOK.value && !dialogVisible.value)
  1183. // 提交后确认
  1184. const dialogCheckSuccess = computed(() => dialogCheck.value && dialogVisible.value)
  1185. // 提交后失败
  1186. const dialogCheckError = computed(() => dialogCheck.value && !dialogVisible.value)
  1187. // 提交申请
  1188. const submit = async () => {
  1189. if (flag.value) return
  1190. flag.value = true
  1191. dialogCheckConfirm.value = false
  1192. dialogCheckWait.value = true
  1193. try {
  1194. if (channelData.code == "UNION_PAY_TELEGRAPHIC" || channelData.code == "UNION_PAY_TELEGRAPHIC_SPECIAL" || channelData.code == "UNION_PAY_TELEGRAPHIC_TWO") {
  1195. let res = await financialApi.telegraphicPay({
  1196. requiteVoucherUrl: imageUrl1.value,
  1197. amount: params.amount,
  1198. login: $route.query.login,
  1199. voucherUrl: imageUrl.value,
  1200. activityDeposit: params.agree2 ? 1 : 0,
  1201. activityPercentageGive: params.agree3 ? 1 : 0,
  1202. activityMidyearTenPercentGive: params.agree4 ? 1 : 0,
  1203. activityTwoPercentGive: params.agree5 ? 1 : 0,
  1204. activityGive: params.agree6 ? 1 : 0,
  1205. promoCode: params.promoCode,
  1206. code: channelData.code,
  1207. bankMsg: WireTransferAccount.bankMsg || "",
  1208. name: channelData.confirmName ? userName.value : null,
  1209. areaCode: channelData.confirmAreaCode ? dialogCheckConfirm_form.confirmAreaCode : null,
  1210. phone: channelData.confirmPhone ? dialogCheckConfirm_form.confirmPhone : null,
  1211. ip: uni.getStorageSync("CLIENT")
  1212. })
  1213. dialogCheckWait.value = false
  1214. if (res.code == Code.StatusOK) {
  1215. imageUrl1.value = ""
  1216. limitedStatusCheck.value = false
  1217. dialogCheckOK.value = true
  1218. dialogVisible.value = true
  1219. flag.value = false
  1220. } else {
  1221. RES.value = res.msg
  1222. dialogCheckOK.value = true
  1223. dialogVisible.value = false
  1224. flag.value = false
  1225. }
  1226. } else if (channelData.code && channelData.code.indexOf('DIGITAL_PAY_TYPE_KEY') === 0) {
  1227. let res = await financialApi.digitalPay({
  1228. requiteVoucherUrl: imageUrl1.value,
  1229. amount: params.amount,
  1230. login: $route.query.login,
  1231. voucherUrl: imageUrl.value,
  1232. hashCode:hashCode.value,
  1233. activityDeposit: params.agree2 ? 1 : 0,
  1234. activityPercentageGive: params.agree3 ? 1 : 0,
  1235. activityMidyearTenPercentGive: params.agree4 ? 1 : 0,
  1236. activityTwoPercentGive: params.agree5 ? 1 : 0,
  1237. activityGive: params.agree6 ? 1 : 0,
  1238. promoCode: params.promoCode,
  1239. ip: uni.getStorageSync("CLIENT")
  1240. })
  1241. dialogCheckWait.value = false
  1242. if (res.code == Code.StatusOK) {
  1243. dialogCheckOK.value = true
  1244. dialogVisible.value = true
  1245. flag.value = false
  1246. } else {
  1247. RES.value = res.msg
  1248. dialogCheckOK.value = true
  1249. dialogVisible.value = false
  1250. flag.value = false
  1251. }
  1252. } else {
  1253. let par = ""
  1254. if (channelData.bankValid == 1) {
  1255. par = `${channelData.requestUrl}/${loginValue.value}/${params.amount}/${code.value}/${(params.agree2 ? 1 : 0)}`
  1256. } else {
  1257. par = `${channelData.requestUrl}/${loginValue.value}/${params.amount}/${(params.agree2 ? 1 : 0)}`
  1258. }
  1259. let res = await financialApi.PayBankCode(par, {
  1260. requiteVoucherUrl: imageUrl1.value,
  1261. promoCode: params.promoCode,
  1262. name: channelData.confirmName ? userName.value : null,
  1263. areaCode: channelData.confirmAreaCode ? dialogCheckConfirm_form.confirmAreaCode : null,
  1264. phone: channelData.confirmPhone ? dialogCheckConfirm_form.confirmPhone : null,
  1265. activityPercentageGive: params.agree3 ? 1 : 0,
  1266. activityMidyearTenPercentGive: params.agree4 ? 1 : 0,
  1267. activityTwoPercentGive: params.agree5 ? 1 : 0,
  1268. activityGive: params.agree6 ? 1 : 0,
  1269. ip: uni.getStorageSync("CLIENT"),
  1270. ...form
  1271. })
  1272. dialogCheckWait.value = false
  1273. if (res.code == Code.StatusOK) {
  1274. if (res.data && (res.data.type == 3 || res.data.type == 4 || res.data.type == 6 || res.data.type == 7)) {
  1275. dealResult(res.data)
  1276. } else {
  1277. if (res.data.type == 1) {
  1278. goPayLink.value = res.data.result
  1279. window.open(res.data.result)
  1280. } else if (res.data.type == 2) {
  1281. let token = userToken.value
  1282. token = tool.tokenReplace(token)
  1283. goPayLink.value = `${Host04}/finance/deposit/get?serial=${res.data.result}&Access-Token=${token}`
  1284. window.open(goPayLink.value)
  1285. } else if (res.data.type == 5) {
  1286. $pigeon.MessageConfirm(
  1287. t("PersonalManagement.Label.item2"),
  1288. t("Msg.SystemPrompt"),
  1289. t("Btn.Cancel"),
  1290. t("Btn.Confirm"),
  1291. async () => { },
  1292. () => {
  1293. goPayLink.value = res.data.result
  1294. dialogCheck.value = true
  1295. dialogVisible.value = true
  1296. window.open(res.data.result)
  1297. }
  1298. )
  1299. } else if (res.data.type == 8) {
  1300. goPayLink.value = Host04 + res.data.result
  1301. window.open(goPayLink.value)
  1302. } else if (res.data.type == 9) {
  1303. goPayLink.value = setCardUrl(res.data.result)
  1304. window.open(goPayLink.value)
  1305. } else if (res.data.type == 10) {
  1306. goPayLink.value = Host80 + '/pay/onchainpay.html?params=' + res.data.result
  1307. window.open(goPayLink.value)
  1308. }
  1309. if (res.data.type != 5) {
  1310. dialogCheck.value = true
  1311. dialogVisible.value = true
  1312. }
  1313. }
  1314. flag.value = false
  1315. } else {
  1316. RES.value = res.msg
  1317. dialogCheck.value = true
  1318. dialogVisible.value = false
  1319. flag.value = false
  1320. }
  1321. }
  1322. } catch (error) {
  1323. dialogCheckWait.value = false
  1324. flag.value = false
  1325. dialogCheckOK.value = true
  1326. dialogVisible.value = false
  1327. RES.value = error.msg
  1328. }
  1329. }
  1330. const setCardUrl = (serial) => {
  1331. let params = `${userToken.value}/${locale.value}/${serial}/1/pay`
  1332. return initLink({ link: imgUrl.value + '/pay/paycard.html', params })
  1333. }
  1334. //处理申请返回result
  1335. const dealResult = (data) => {
  1336. DealResultType.value = data.type
  1337. DealResultResult.value = data.result
  1338. if (data.type == 3) {
  1339. dialogDealResult_form.pin = ""
  1340. } else if (data.type == 4) {
  1341. dialogDealResult_form.otp = ""
  1342. } else if (data.type == 6) {
  1343. dialogDealResult_form.state = userInfo.value.state
  1344. dialogDealResult_form.city = userInfo.value.city
  1345. dialogDealResult_form.country = (["cn", "zhHant"].indexOf(locale.value) != -1) ? userInfo.value.countryName : userInfo.value.countryEnName
  1346. dialogDealResult_form.address = (userInfo.value.addressLines && userInfo.value.addressLines[0]) || ""
  1347. dialogDealResult_form.zipCode = userInfo.value.zipCode
  1348. dialogDealResultTitle.value = t("PersonalManagement.Label.item3")
  1349. } else if (data.type == 7) {
  1350. dialogDealResult_form.phone = userInfo.value.phone
  1351. dialogDealResultTitle.value = t("PersonalManagement.Label.item4")
  1352. }
  1353. dialogDealResult.value = true
  1354. }
  1355. //重新提交
  1356. const submitDealResult = async () => {
  1357. if (flag.value) return
  1358. flag.value = true
  1359. dialogCheckConfirm.value = false
  1360. dialogCheckWait.value = true
  1361. let par = Host04 + DealResultResult.value
  1362. let dataList = {}
  1363. if (DealResultType.value == 3) dataList = { pin: dialogDealResult_form.pin }
  1364. else if (DealResultType.value == 4) dataList = { otp: dialogDealResult_form.otp }
  1365. else if (DealResultType.value == 6) {
  1366. dataList = {
  1367. state: dialogDealResult_form.state,
  1368. city: dialogDealResult_form.city,
  1369. country: dialogDealResult_form.country,
  1370. address: dialogDealResult_form.address,
  1371. zipCode: dialogDealResult_form.zipCode
  1372. }
  1373. } else if (DealResultType.value == 7) dataList = { phone: dialogDealResult_form.phone }
  1374. let res = await financialApi.PayDealResult(par, dataList)
  1375. dialogCheckWait.value = false
  1376. dialogDealResult.value = false
  1377. if (res.code == Code.StatusOK) {
  1378. if (res.data && (res.data.type == 3 || res.data.type == 4 || res.data.type == 6 || res.data.type == 7)) {
  1379. dealResult(res.data)
  1380. } else {
  1381. if (res.data.type == 1) {
  1382. goPayLink.value = res.data.result
  1383. window.open(res.data.result)
  1384. } else if (res.data.type == 2) {
  1385. let token = userToken.value
  1386. token = tool.tokenReplace(token)
  1387. goPayLink.value = `${Host04}/finance/deposit/get?serial=${res.data.result}&Access-Token=${token}`
  1388. window.open(goPayLink.value)
  1389. } else if (res.data.type == 5) {
  1390. $pigeon.MessageConfirm(
  1391. t("PersonalManagement.Label.item2"),
  1392. t("Msg.SystemPrompt"),
  1393. t("Btn.Cancel"),
  1394. t("Btn.Confirm"),
  1395. async () => { },
  1396. () => {
  1397. goPayLink.value = res.data.result
  1398. dialogCheck.value = true
  1399. dialogVisible.value = true
  1400. window.open(res.data.result)
  1401. }
  1402. )
  1403. } else if (res.data.type == 8) {
  1404. goPayLink.value = Host04 + res.data.result
  1405. window.open(goPayLink.value)
  1406. } else if (res.data.type == 9) {
  1407. dialogCheckOK.value = true
  1408. dialogVisible.value = true
  1409. flag.value = false
  1410. return
  1411. }
  1412. if (res.data.type != 5) {
  1413. dialogCheck.value = true
  1414. dialogVisible.value = true
  1415. }
  1416. }
  1417. flag.value = false
  1418. } else {
  1419. RES.value = res.msg
  1420. dialogCheck.value = true
  1421. dialogVisible.value = false
  1422. flag.value = false
  1423. dialogDealResult.value = false
  1424. }
  1425. }
  1426. const closeDia = () => {
  1427. dialogCheck.value = false
  1428. dialogVisible.value = false
  1429. dialogCheckOK.value = false
  1430. showTable()
  1431. }
  1432. const isStep3Open = () => {
  1433. isStep3.value = true
  1434. //中国网银弹窗
  1435. if (tableData.China_UnionPay.length && tableData.China_UnionPay[0].type == 2) {
  1436. let timezone = 8
  1437. let offset_GMT = new Date().getTimezoneOffset()
  1438. let nowDate = new Date().getTime()
  1439. let now = new Date(nowDate + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000)
  1440. let newTime = now.getHours().toString()
  1441. if ((newTime.length == 1 && newTime >= 0 && newTime < 8) || (newTime.length == 2 && newTime >= 22 && newTime < 24)) {
  1442. dialogChinaUnionPay.value = true
  1443. }
  1444. }
  1445. }
  1446. // 判断是否在9月30日晚上12点之后,用于隐藏特定活动
  1447. const isAfterSeptember30 = () => {
  1448. // const currentDate = new Date();
  1449. // const september30 = new Date(
  1450. // currentDate.getFullYear(),
  1451. // 8,
  1452. // 30,
  1453. // 23,
  1454. // 59,
  1455. // 59
  1456. // ); // 月份从0开始,8表示9月,设置为23:59:59
  1457. // return currentDate > september30;
  1458. return true
  1459. }
  1460. const getMetaInfo = () => {
  1461. metaInfo.value = window.getMetaInfo()
  1462. metaInfo.value = { ...metaInfo.value, deviceType: "h5" }
  1463. }
  1464. //获取kyc二维码
  1465. const qrCode = async (depositChannelCode, row) => {
  1466. getMetaInfo()
  1467. let res = await activityApi.getWebsdkLink({
  1468. depositChannelCode,
  1469. metaInfo: metaInfo.value
  1470. })
  1471. if (res.code == Code.StatusOK) {
  1472. if (res.data) {
  1473. text1.value = JSON.parse(res.data).url
  1474. dialogKyc.value = true
  1475. flag.value = false
  1476. } else {
  1477. doShowStep3(row)
  1478. }
  1479. } else {
  1480. flag.value = false
  1481. uni.showToast({ title: res.msg, icon: 'none' })
  1482. }
  1483. }
  1484. const doShowStep3 = (row) => {
  1485. if (row.confirmCreditCard == 1) getBankInfo()
  1486. getCheckExistSuccess()
  1487. if (row.bankValid && isChannel.value) {
  1488. getBankList(row)
  1489. isChannel.value = false
  1490. step3.value = true
  1491. Object.assign(channelData, row)
  1492. console.log(channel.value, channelListOptions.value, channelData, 1112);
  1493. mAmount.minAmount = row.minAmount
  1494. mAmount.maxAmount = row.maxAmount
  1495. } else {
  1496. step3.value = true
  1497. bankDate.value = []
  1498. Object.assign(channelData, row)
  1499. mAmount.minAmount = row.minAmount
  1500. mAmount.maxAmount = row.maxAmount
  1501. }
  1502. tableData.International_Transfer = []
  1503. tableData.China_UnionPay = []
  1504. tableData.Digital_Currency = []
  1505. tableData.Electronic_Wallet = []
  1506. tableData.Ucard_Wallet = []
  1507. if (row.type == 1) tableData.International_Transfer[0] = row
  1508. if (row.type == 2) tableData.China_UnionPay[0] = row
  1509. if (row.type == 3) tableData.Digital_Currency[0] = row
  1510. if (row.type == 4) tableData.Electronic_Wallet[0] = row
  1511. if (row.type == 5) tableData.Ucard_Wallet[0] = row
  1512. introduce.introduce = row.introduce
  1513. introduce.enIntroduce = row.enIntroduce
  1514. 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)) {
  1515. let pro = []
  1516. if (row.property && row.property.substring(0, 1) == "[") {
  1517. pro = JSON.parse(row.property)
  1518. } else if (row.property && row.property.substring(0, 1) != "[") {
  1519. let proper = "[" + row.property + "]"
  1520. pro = JSON.parse(proper)
  1521. }
  1522. let ind = pro.length
  1523. if (ind) {
  1524. let index = parseInt(Math.random() * ind + 1)
  1525. Object.assign(WireTransferAccount, pro[index - 1])
  1526. actionAdd1.value = Host80 + "/common/upload"
  1527. } else {
  1528. Object.assign(WireTransferAccount, {})
  1529. actionAdd1.value = Host80 + "/common/upload"
  1530. }
  1531. }
  1532. }
  1533. //选择支付方式
  1534. const isShowStep3 = (row) => {
  1535. if (row.kycChannel != 1) {
  1536. doShowStep3(row)
  1537. } else {
  1538. qrCode(row.code, row)
  1539. }
  1540. }
  1541. //更换支付方式
  1542. const showTable = () => {
  1543. resetForm();
  1544. dialogCheckWait.value = false;
  1545. dialogVisible.value = false;
  1546. flag.value = false;
  1547. form.bankUname = undefined
  1548. form.bankCardNum = undefined
  1549. form.cvv = undefined
  1550. form.expiryMonth = undefined
  1551. form.expiryYear = undefined
  1552. form.pin = undefined
  1553. myId.value = null
  1554. params.amount = ""
  1555. params.amount1 = ""
  1556. params.agree = false
  1557. params.agree2 = false
  1558. params.agree3 = false
  1559. params.agree4 = false
  1560. params.agree5 = false
  1561. params.agree6 = false
  1562. params.promoCode = ""
  1563. isChannel.value = true
  1564. imageUrl.value = ""
  1565. requiteVoucherUrl.value = ""
  1566. code.value = ""
  1567. WireTransferAccount.bankMsg = ""
  1568. introduce.introduce = ""
  1569. introduce.enIntroduce = ""
  1570. }
  1571. const loginComboxOptions = computed(() => {
  1572. return loginOptions.value.map((item) => ({
  1573. text: item.label,
  1574. value: item.login
  1575. }))
  1576. })
  1577. const creditCardOptions = computed(() => {
  1578. return ruleForm.bankCredit.map((item, index) => ({
  1579. text: `${item.bankUname}-${item.bankCardNum}`,
  1580. value: item.id
  1581. }))
  1582. })
  1583. const bankOptions = computed(() => {
  1584. return bankDate.value.map((item, index) => ({
  1585. text: (locale.value === 'cn' || locale.value === 'zhHant') ? item.name : item.enName,
  1586. value: item.code
  1587. }))
  1588. })
  1589. // 获取账户信息
  1590. const getDateList = async () => {
  1591. loading.value = true
  1592. let res = await customApi.CustomDropdown({ platform: "" })
  1593. if (res.code == Code.StatusOK) {
  1594. loginOptions.value = res.data.map(item => ({
  1595. ...item,
  1596. label: `${item.login} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${item.balance}`
  1597. }))
  1598. const pages = getCurrentPages()
  1599. const route = pages[pages.length - 1].$page?.options || {}
  1600. if (route.login) {
  1601. const found = loginOptions.value.find(opt => opt.login === Number(route.login))
  1602. loginValue.value = found.login
  1603. loginValueDoc.value = found.label
  1604. step2.value = true
  1605. }
  1606. } else {
  1607. uni.showToast({ title: res.msg, icon: 'none' })
  1608. }
  1609. loading.value = false
  1610. }
  1611. //获取入金通道
  1612. const getDepositList = async () => {
  1613. pictLoading.value = true
  1614. tableData.International_Transfer = []
  1615. tableData.China_UnionPay = []
  1616. tableData.Digital_Currency = []
  1617. tableData.Electronic_Wallet = []
  1618. tableData.Ucard_Wallet = []
  1619. let res = await financialApi.RemittanceChannelList({})
  1620. if (res.code == Code.StatusOK) {
  1621. res.data.forEach(item => {
  1622. if (item.type == 1) tableData.International_Transfer.push(item), tableData1.International_Transfer.push(item)
  1623. if (item.type == 2) tableData.China_UnionPay.push(item), tableData1.China_UnionPay.push(item)
  1624. if (item.type == 3) tableData.Digital_Currency.push(item), tableData1.Digital_Currency.push(item)
  1625. if (item.type == 4) tableData.Electronic_Wallet.push(item), tableData1.Electronic_Wallet.push(item)
  1626. if (item.type == 5) tableData.Ucard_Wallet.push(item), tableData1.Ucard_Wallet.push(item)
  1627. })
  1628. pictLoading.value = false
  1629. } else {
  1630. uni.showToast({ title: res.msg, icon: 'none' })
  1631. pictLoading.value = false
  1632. }
  1633. }
  1634. //获取银行列表
  1635. const getBankList = async (row) => {
  1636. let res = await financialApi.BankList({ channelCode: row.code })
  1637. try {
  1638. if (res.code == Code.StatusOK) {
  1639. let bank = res.data
  1640. let data = []
  1641. bank.forEach(j => {
  1642. if (!j.minAmount && j.minAmount != 0) j.minAmount = row.minAmount
  1643. if (!j.maxAmount && j.maxAmount != 0) j.maxAmount = row.maxAmount
  1644. j.bankValid = row.bankValid
  1645. j.requestUrl = row.requestUrl
  1646. data.push(j)
  1647. })
  1648. bankDate.value = data
  1649. } else {
  1650. uni.showToast({ title: res.msg, icon: 'none' })
  1651. }
  1652. } catch (error) {
  1653. uni.showToast({ title: error.msg, icon: 'none' })
  1654. }
  1655. }
  1656. //获取20赠金活动信息
  1657. const getCheckExistSuccess = async () => {
  1658. let res = await financialApi.depositCheckExistSuccess({})
  1659. if (res.code == Code.StatusOK) {
  1660. CheckExistSuccess.value = res.data
  1661. } else {
  1662. uni.showToast({ title: res.msg, icon: 'none' })
  1663. }
  1664. }
  1665. //20赠金是否到期-4月30号23:59:59的时候关闭申请
  1666. const is20Open = () => {
  1667. let endTime1 = "2023/04/30 23:59:59"
  1668. let timezone = 2
  1669. let offset_GMT = new Date().getTimezoneOffset()
  1670. let nowDate = new Date().getTime()
  1671. let now = new Date(nowDate + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000).getTime()
  1672. let end = new Date(endTime1).getTime()
  1673. if (now > end) anshiClose.value = false
  1674. }
  1675. //限时活动
  1676. const ActivityRequiteInfo = async () => {
  1677. let res = await activityApi.ActivityRequiteInfo({})
  1678. if (res.code == Code.StatusOK) {
  1679. limitedStatus.value = res.data
  1680. } else {
  1681. uni.showToast({ title: res.msg, icon: 'none' })
  1682. }
  1683. }
  1684. //2023年中赠金活动数据-10
  1685. const Activity24nianzhongInfo = async () => {
  1686. let res = await activityApi.Activity23nianzhongInfo({})
  1687. if (res.code == Code.StatusOK) {
  1688. Object.assign(tableData4, res.data)
  1689. // const Data4 = {
  1690. // "activityEndTime": null,
  1691. // "activityStartTime": null,
  1692. // "applicationEndTime": null,
  1693. // "applicationStartTime": null,
  1694. // "loginTypes": [5, 6],
  1695. // "show": 1,
  1696. // "useApply": 1
  1697. // };
  1698. // Object.assign(tableData4, Data4)
  1699. // tableData4Flag.value = tableData4.show == 1 && tableData4.useApply == 1
  1700. } else {
  1701. uni.showToast({ title: res.msg, icon: 'none' })
  1702. }
  1703. }
  1704. //2023年中赠金活动数据-20
  1705. const Activity24nianzhongTwoInfo = async () => {
  1706. let res = await activityApi.Activity23nianzhongTwoInfo({})
  1707. if (res.code == Code.StatusOK) {
  1708. Object.assign(tableData4Two, res.data)
  1709. // const Data4 = {
  1710. // "activityEndTime": null,
  1711. // "activityStartTime": null,
  1712. // "applicationEndTime": null,
  1713. // "applicationStartTime": null,
  1714. // "loginTypes": [5, 6],
  1715. // "show": 1,
  1716. // "useApply": 1
  1717. // };
  1718. // Object.assign(tableData4Two, Data4)
  1719. // tableData4Flag.value = tableData4Two.show == 1 && tableData4Two.useApply == 1
  1720. } else {
  1721. uni.showToast({ title: res.msg, icon: 'none' })
  1722. }
  1723. }
  1724. //2023年中赠金活动权限
  1725. const get23nianzhongTwoLogin = async (newVal) => {
  1726. let res = await activityApi.Activity23nianzhongTwoLogin({ login: newVal })
  1727. if (res.code == Code.StatusOK) {
  1728. Object.assign(tableData4Two, res.data)
  1729. tableData4TwoFlag.value = tableData4Two.show == 1
  1730. } else {
  1731. uni.showToast({ title: res.msg, icon: 'none' })
  1732. }
  1733. }
  1734. const getActivityExtensionGiveLogin = async (newVal) => {
  1735. let res = await activityApi.ActivityExtensionGiveLogin({ login: newVal })
  1736. if (res.code == Code.StatusOK) {
  1737. Object.assign(tableDataNewList, res.data)
  1738. tableDataNewListFlag.value = tableDataNewList.show == 1
  1739. } else {
  1740. uni.showToast({ title: res.msg, icon: 'none' })
  1741. }
  1742. }
  1743. const getActivityExtensionGiveLoginJoin = async (newVal) => {
  1744. let res = await activityApi.ActivityExtensionGiveLoginJoin({ login: newVal })
  1745. if (res.code == Code.StatusOK) {
  1746. giveLoginJoin.value = res.data
  1747. } else {
  1748. uni.showToast({ title: res.msg, icon: 'none' })
  1749. giveLoginJoin.value = ""
  1750. }
  1751. }
  1752. //24新年庆典 开始
  1753. const isNewYear24Open = () => {
  1754. let endTime1 = "2025/3/31 23:59:59"
  1755. let startTime1 = "2025/1/1 00:00:00"
  1756. let timezone = 2
  1757. let offset_GMT = new Date().getTimezoneOffset()
  1758. let nowDate = new Date().getTime()
  1759. let now = new Date(nowDate + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000).getTime()
  1760. let end = new Date(endTime1).getTime()
  1761. let start = new Date(startTime1).getTime()
  1762. if (now < end && start < now) ActivityNewYear24()
  1763. }
  1764. const ActivityNewYear24 = async () => {
  1765. let res = await activityApi.ActivityNewYear24({})
  1766. if (res.code == Code.StatusOK) {
  1767. tableDataNewYear24.value = res.data
  1768. if (typeof tableDataNewYear24.value == "object") toIncome()
  1769. } else {
  1770. uni.showToast({ title: res.msg, icon: 'none' })
  1771. }
  1772. }
  1773. const toIncome = () => {
  1774. let balance = Number(tableDataNewYear24.value.balance) || 0
  1775. tableDataNewYear24.value.details.forEach((item, index) => {
  1776. if (balance > item.min && balance <= item.max) {
  1777. NewYear24Data.rate = item.rate
  1778. NewYear24Data.index = item.index
  1779. NewYear24Data.balance = (Number(tableDataNewYear24.value.details[index + 1].min) - balance).toFixed(2)
  1780. NewYear24Data.income = ((Number(tableDataNewYear24.value.details[index + 1].min) * Number(tableDataNewYear24.value.details[index + 1].rate) / 100 / 365) * 365).toFixed(2)
  1781. tableDataNewYear24Flag.value = true
  1782. } else if (balance > item.min && balance >= item.max && item.max == 0) {
  1783. tableDataNewYear24Flag.value = false
  1784. }
  1785. })
  1786. }
  1787. //24新年庆典 结束
  1788. // 新改内容
  1789. // userStore.paymentChannel.value
  1790. // userStore.channelList.value
  1791. const channel = computed(() => userStore.paymentChannel)
  1792. const channelList = computed(() => userStore.channelList)
  1793. const channelListOptions = ref([])
  1794. const channelId = ref(null)
  1795. const loading = ref(false)
  1796. const setAllAmount = () => {
  1797. const found = loginOptions.value.find(opt => opt.login === Number(loginValue.value))
  1798. params.amount = parseInt(found.balance)
  1799. validateAmount()
  1800. }
  1801. const allTabs = computed(() => {
  1802. return {
  1803. "Digital_Currency": t('Custom.Deposit.Channel3'),
  1804. "China_UnionPay": t('Custom.Deposit.Channel2'),
  1805. "Electronic_Wallet": t('Custom.Deposit.Channel4'),
  1806. "International_Transfer": t('Custom.Deposit.Channel1'),
  1807. "Ucard_Wallet": t('card.title'),
  1808. }
  1809. })
  1810. function formatChannels(data) {
  1811. const result = []
  1812. // 遍历每个分类
  1813. for (const key in data) {
  1814. const list = data[key] || []
  1815. // 插入分类标题(禁用项)
  1816. if (list.length) {
  1817. result.push({
  1818. text: allTabs.value[key],
  1819. value: key,
  1820. disable: true
  1821. })
  1822. }
  1823. list.forEach(item => {
  1824. result.push({
  1825. ...item,
  1826. text: `${item.name}`,
  1827. value: item.code
  1828. })
  1829. })
  1830. }
  1831. return result
  1832. }
  1833. // 生命周期
  1834. onMounted(() => {
  1835. if (channelList.value) {
  1836. channelListOptions.value = formatChannels(channelList.value)
  1837. }
  1838. channelId.value = channel.value
  1839. getDateList()
  1840. isStep3Open()
  1841. setTimeout(() => {
  1842. if (country.value === "VN") dialogVietnamNotice.value = true
  1843. is20Open()
  1844. // Activity24nianzhongInfo();
  1845. // Activity24nianzhongTwoInfo();
  1846. // dealResult({ "type": 7, "result": "/krad/pin?serial=123123" })
  1847. isNewYear24Open()
  1848. ActivityRequiteInfo()
  1849. }, 800);
  1850. })
  1851. onUnmounted(() => {
  1852. // userStore.savePaymentChannel('')
  1853. // userStore.saveChannelList('')
  1854. })
  1855. watch(channelId, async (newVal) => {
  1856. if (newVal) {
  1857. showTable()
  1858. let row = channelListOptions.value.find(item => item.code == newVal)
  1859. console.log(newVal, channelListOptions, 12);
  1860. console.log(row, 12);
  1861. isShowStep3(row, 1111)
  1862. setTipsAmount()
  1863. }
  1864. });
  1865. watch(isStep3, async (newVal) => {
  1866. if (newVal) {
  1867. await nextTick();
  1868. formRef.value?.clearValidate();
  1869. resetForm();
  1870. await nextTick();
  1871. formRef.value?.clearValidate();
  1872. }
  1873. });
  1874. // Watch
  1875. watch(loginValue, (login) => {
  1876. if (login) {
  1877. step3.value = true
  1878. get23nianzhongTwoLogin(login);
  1879. getActivityExtensionGiveLogin(login);
  1880. getActivityExtensionGiveLoginJoin(login);
  1881. // showCentAccountTransferTip(login);
  1882. setTipsAmount()
  1883. }
  1884. })
  1885. watch(() => params.amount, (newVal) => {
  1886. if (newVal && channelData.rate) {
  1887. params.amount1 = (newVal * channelData.rate).toFixed(2)
  1888. }
  1889. })
  1890. watch(() => channelData.rate, (newVal) => {
  1891. console.log(newVal,'channel')
  1892. if (newVal && params.amount) {
  1893. params.amount1 = (newVal * params.amount).toFixed(2)
  1894. }
  1895. })
  1896. watch(() => imageUrl, (newVal) => {
  1897. console.log(newVal, 12);
  1898. }, { deep: true })
  1899. watch(() => params.agree3, (newVal) => {
  1900. if (newVal) {
  1901. params.agree2 = false
  1902. params.agree4 = false
  1903. params.agree5 = false
  1904. params.agree6 = false
  1905. }
  1906. })
  1907. watch(() => params.agree2, (newVal) => {
  1908. if (newVal) {
  1909. params.agree3 = false
  1910. params.agree4 = false
  1911. params.agree5 = false
  1912. params.agree6 = false
  1913. }
  1914. })
  1915. watch(() => params.agree4, (newVal) => {
  1916. if (newVal) {
  1917. params.agree3 = false
  1918. params.agree2 = false
  1919. params.agree5 = false
  1920. params.agree6 = false
  1921. }
  1922. })
  1923. watch(() => params.agree5, (newVal) => {
  1924. if (newVal) {
  1925. params.agree3 = false
  1926. params.agree2 = false
  1927. params.agree4 = false
  1928. params.agree6 = false
  1929. }
  1930. })
  1931. watch(() => params.agree6, (newVal) => {
  1932. if (newVal) {
  1933. params.agree3 = false
  1934. params.agree2 = false
  1935. params.agree4 = false
  1936. params.agree5 = false
  1937. if (giveLoginJoin.value.flag == false) {
  1938. let tips = ""
  1939. if (giveLoginJoin.value.promptType == 1) tips = t("surplusList.item10")
  1940. else tips = t("surplusList.item11")
  1941. if (giveLoginJoin.value.activityCategory == 1) {
  1942. $pigeon.MessageConfirm(
  1943. tips,
  1944. t("Msg.SystemPrompt"),
  1945. t("surplusList.item12"),
  1946. t("Home.msg.item3"),
  1947. () => {
  1948. $pigeon.MessageConfirm(
  1949. t("surplusList.item13"),
  1950. t("Msg.SystemPrompt"),
  1951. t("Btn.Confirm"),
  1952. t("Btn.Cancel"),
  1953. async () => {
  1954. try {
  1955. const res = await activityApi.ActivityGiveCancel({ login: $route.query.login })
  1956. if (res.code == Code.StatusOK) $pigeon.MessageOK(res.msg || t("Msg.Success"))
  1957. else uni.showToast({ title: res.msg, icon: 'none' })
  1958. } catch (error) {
  1959. $pigeon.MessageError(t("Msg.Fail"))
  1960. }
  1961. },
  1962. () => { params.agree6 = false }
  1963. )
  1964. },
  1965. () => { },
  1966. { showCancelButton: true }
  1967. )
  1968. } else if (giveLoginJoin.value.activityCategory == 2) {
  1969. $pigeon.MessageConfirm(
  1970. tips,
  1971. t("Msg.SystemPrompt"),
  1972. "跳转",
  1973. t("Btn.Cancel"),
  1974. () => {
  1975. $pigeon.MessageConfirm(
  1976. "是否跳转到对应活动取消",
  1977. t("Msg.SystemPrompt"),
  1978. t("Btn.Confirm"),
  1979. t("Btn.Cancel"),
  1980. () => {
  1981. uni.navigateTo({ url: "/pages/customer/monthly/list" })
  1982. },
  1983. () => { params.agree6 = false }
  1984. )
  1985. },
  1986. () => { },
  1987. { showCancelButton: false }
  1988. )
  1989. } else {
  1990. $pigeon.MessageConfirm(
  1991. tips,
  1992. t("Msg.SystemPrompt"),
  1993. t("Btn.Confirm"),
  1994. t("Btn.Cancel")
  1995. )
  1996. }
  1997. }
  1998. }
  1999. })
  2000. </script>
  2001. <style lang="scss" scoped>
  2002. @import "@/uni.scss";
  2003. .custom-deposit {
  2004. width: px2rpx(566);
  2005. flex-shrink: 0;
  2006. .crm-title-box {
  2007. margin-bottom: px2rpx(20);
  2008. .tit {
  2009. font-size: px2rpx(20);
  2010. font-weight: 700;
  2011. color: var(--bs-heading-color);
  2012. }
  2013. }
  2014. .box {
  2015. margin-bottom: px2rpx(20);
  2016. .b-card {
  2017. // background: #fff;
  2018. // border-radius: px2rpx(12);
  2019. // padding: px2rpx(20);
  2020. // box-shadow: 0 px2rpx(4) px2rpx(12) rgba(0, 0, 0, 0.03);
  2021. .card-top {
  2022. .tit {
  2023. font-size: px2rpx(16);
  2024. font-weight: 600;
  2025. margin-bottom: px2rpx(16);
  2026. display: flex;
  2027. align-items: center;
  2028. color: var(--bs-heading-color);
  2029. position: relative;
  2030. padding-left: 20px;
  2031. &:after {
  2032. content: '';
  2033. position: absolute;
  2034. left: 0;
  2035. top: 50%;
  2036. transform: translateY(-50%);
  2037. width: 0;
  2038. height: 0;
  2039. border-top: 6px solid transparent;
  2040. border-bottom: 6px solid transparent;
  2041. border-left: 8px solid currentColor;
  2042. }
  2043. }
  2044. }
  2045. .channelType {
  2046. font-size: px2rpx(15);
  2047. font-weight: 600;
  2048. margin: px2rpx(24) 0 px2rpx(12);
  2049. color: var(--color-navy-700);
  2050. padding-left: px2rpx(8);
  2051. border-left: px2rpx(4) solid var(--color-primary);
  2052. }
  2053. }
  2054. }
  2055. .reselect-btn {
  2056. margin-top: px2rpx(20);
  2057. display: flex;
  2058. justify-content: flex-end;
  2059. .reselect {
  2060. background-color: var(--color-zinc-100);
  2061. color: var(--color-navy-700);
  2062. border: none;
  2063. font-size: px2rpx(14);
  2064. padding: px2rpx(8) px2rpx(20);
  2065. border-radius: px2rpx(8);
  2066. &:active {
  2067. background-color: var(--color-zinc-200);
  2068. }
  2069. }
  2070. }
  2071. .s-btn[type="primary"] {
  2072. width: 100%;
  2073. height: px2rpx(48);
  2074. background-color: #cf1322;
  2075. color: var(--bs-emphasis-color);
  2076. border-radius: px2rpx(12);
  2077. font-size: px2rpx(16);
  2078. font-weight: 600;
  2079. display: flex;
  2080. align-items: center;
  2081. justify-content: center;
  2082. border: none;
  2083. margin-top: px2rpx(30);
  2084. transition: all 0.2s;
  2085. &:active {
  2086. transform: scale(0.98);
  2087. background-color: #cf1322;
  2088. }
  2089. }
  2090. .add-back {
  2091. display: flex;
  2092. justify-content: space-between;
  2093. align-items: center;
  2094. margin-bottom: px2rpx(12);
  2095. padding: px2rpx(12) px2rpx(16);
  2096. background: var(--color-zinc-100);
  2097. border-radius: px2rpx(8);
  2098. text {
  2099. font-size: px2rpx(14);
  2100. color: var(--color-navy-700);
  2101. font-weight: 500;
  2102. }
  2103. .add-btn {
  2104. color: var(--color-primary);
  2105. font-weight: 600;
  2106. text-decoration: underline;
  2107. &:active {
  2108. opacity: 0.7;
  2109. }
  2110. }
  2111. }
  2112. .wire-transfer-account {
  2113. background: var(--color-zinc-50);
  2114. padding: px2rpx(16);
  2115. border-radius: px2rpx(12);
  2116. margin: px2rpx(16) 0;
  2117. // .row {
  2118. // display: flex;
  2119. // margin-bottom: px2rpx(12);
  2120. // font-size: px2rpx(14);
  2121. // &:last-child {
  2122. // margin-bottom: 0;
  2123. // }
  2124. // .label {
  2125. // width: px2rpx(120);
  2126. // color: var(--color-zinc-500);
  2127. // }
  2128. // .content {
  2129. // flex: 1;
  2130. // color: var(--bs-heading-color);
  2131. // font-weight: 500;
  2132. // }
  2133. // .SpecialColor {
  2134. // color: var(--color-error);
  2135. // }
  2136. // }
  2137. }
  2138. .activities {
  2139. margin: px2rpx(24) 0;
  2140. .checkbox {
  2141. display: flex;
  2142. align-items: flex-start;
  2143. gap: px2rpx(8);
  2144. margin-bottom: px2rpx(12);
  2145. :deep(uni-checkbox .uni-checkbox-input) {
  2146. border-radius: px2rpx(4);
  2147. width: px2rpx(18);
  2148. height: px2rpx(18);
  2149. }
  2150. text {
  2151. font-size: px2rpx(14);
  2152. color: var(--color-navy-700);
  2153. font-weight: 500;
  2154. line-height: 1.5;
  2155. }
  2156. }
  2157. .clause-text {
  2158. font-size: px2rpx(13);
  2159. color: var(--color-zinc-500);
  2160. line-height: 1.6;
  2161. padding-left: px2rpx(26);
  2162. .clause {
  2163. color: var(--color-primary);
  2164. text-decoration: underline;
  2165. }
  2166. }
  2167. }
  2168. .step3-attention {
  2169. // background: var(--color-error-50, #fff1f0);
  2170. border-radius: px2rpx(12);
  2171. margin-bottom: px2rpx(20);
  2172. .tips {
  2173. line-height: 1.8;
  2174. font-size: px2rpx(12);
  2175. color: var(--bs-heading-color);
  2176. background-color: rgba(var(--bs-body-bg-rgb), 1) !important;
  2177. padding: px2rpx(12);
  2178. border-radius: px2rpx(4);
  2179. border-left: px2rpx(2) solid #cf1322;
  2180. .title {
  2181. font-weight: 600;
  2182. margin-bottom: px2rpx(6);
  2183. color: var(--bs-heading-color);
  2184. }
  2185. }
  2186. .attention {
  2187. font-size: px2rpx(14);
  2188. // color: var(--color-error-600, #cf1322);
  2189. line-height: 1.6;
  2190. }
  2191. .btn-bottom {
  2192. margin-top: px2rpx(20);
  2193. display: flex;
  2194. justify-content: center;
  2195. .btn {
  2196. color: var(--bs-emphasis-color);
  2197. padding: px2rpx(10) px2rpx(48);
  2198. border-radius: px2rpx(24);
  2199. font-size: px2rpx(15);
  2200. font-weight: 700;
  2201. box-shadow: 0 px2rpx(4) px2rpx(10) rgba(207, 19, 34, 0.2);
  2202. transition: all 0.2s;
  2203. &:active {
  2204. transform: scale(0.96);
  2205. opacity: 0.8;
  2206. }
  2207. }
  2208. }
  2209. }
  2210. .upload-box {
  2211. display: flex;
  2212. align-items: center;
  2213. gap: px2rpx(12);
  2214. .btn-upload {
  2215. background: var(--color-zinc-100);
  2216. border: px2rpx(1) dashed var(--color-zinc-300);
  2217. border-radius: px2rpx(8);
  2218. height: px2rpx(44);
  2219. font-size: px2rpx(14);
  2220. color: var(--color-zinc-600);
  2221. display: flex;
  2222. align-items: center;
  2223. justify-content: center;
  2224. padding: 0 px2rpx(20);
  2225. }
  2226. .img-preview {
  2227. width: px2rpx(44);
  2228. height: px2rpx(44);
  2229. border-radius: px2rpx(4);
  2230. object-fit: cover;
  2231. }
  2232. }
  2233. .error {
  2234. color: var(--color-error);
  2235. font-size: px2rpx(12);
  2236. margin-top: px2rpx(4);
  2237. display: block;
  2238. }
  2239. :deep(.base-info-form) {
  2240. .uni-row1 {
  2241. .uni-col {
  2242. padding: 0 px2rpx(10) !important;
  2243. }
  2244. .uni-forms-item {
  2245. min-height: px2rpx(79);
  2246. margin-bottom: px2rpx(10);
  2247. position: relative;
  2248. }
  2249. .uni-easyinput__content-input {
  2250. height: px2rpx(35) !important;
  2251. }
  2252. }
  2253. }
  2254. .popup-content {
  2255. background: #fff;
  2256. border-radius: px2rpx(20);
  2257. padding: px2rpx(24);
  2258. width: px2rpx(320);
  2259. text-align: center;
  2260. .popup-title {
  2261. font-size: px2rpx(18);
  2262. font-weight: 700;
  2263. margin-bottom: px2rpx(20);
  2264. color: var(--bs-heading-color);
  2265. display: block;
  2266. }
  2267. .popup-text {
  2268. font-size: px2rpx(14);
  2269. line-height: 1.6;
  2270. color: var(--color-zinc-600);
  2271. margin-bottom: px2rpx(20);
  2272. display: block;
  2273. }
  2274. .popup-form {
  2275. background: var(--color-zinc-50);
  2276. border-radius: px2rpx(12);
  2277. padding: px2rpx(16);
  2278. margin-bottom: px2rpx(24);
  2279. text-align: left;
  2280. .popup-row {
  2281. display: flex;
  2282. justify-content: space-between;
  2283. margin-bottom: px2rpx(12);
  2284. font-size: px2rpx(14);
  2285. &:last-child {
  2286. margin-bottom: 0;
  2287. }
  2288. .label {
  2289. color: var(--color-zinc-500);
  2290. font-weight: 500;
  2291. }
  2292. text:not(.label) {
  2293. color: var(--bs-heading-color);
  2294. font-weight: 500;
  2295. }
  2296. .small-input {
  2297. width: px2rpx(60);
  2298. background: #fff;
  2299. border: px2rpx(1) solid var(--color-zinc-200);
  2300. border-radius: px2rpx(4);
  2301. padding: 0 px2rpx(4);
  2302. height: px2rpx(24);
  2303. font-size: px2rpx(12);
  2304. }
  2305. }
  2306. }
  2307. .popup-buttons {
  2308. display: flex;
  2309. gap: px2rpx(12);
  2310. button {
  2311. flex: 1;
  2312. height: px2rpx(44);
  2313. border-radius: px2rpx(10);
  2314. font-size: px2rpx(15);
  2315. font-weight: 600;
  2316. display: flex;
  2317. align-items: center;
  2318. justify-content: center;
  2319. border: none;
  2320. &[type="primary"] {
  2321. background-color: #cf1322;
  2322. color: var(--bs-emphasis-color);
  2323. }
  2324. &:not([type="primary"]) {
  2325. background: var(--color-zinc-100);
  2326. color: var(--color-zinc-600);
  2327. }
  2328. }
  2329. }
  2330. .result-icon {
  2331. display: flex;
  2332. justify-content: center;
  2333. margin-bottom: px2rpx(16);
  2334. .iconfont {
  2335. font-size: px2rpx(48);
  2336. &.iconchenggong {
  2337. color: #52c41a;
  2338. }
  2339. &.iconjingshi {
  2340. color: #faad14;
  2341. }
  2342. &.icondengdai {
  2343. color: var(--color-primary);
  2344. animation: rotate 2s linear infinite;
  2345. }
  2346. }
  2347. }
  2348. }
  2349. @keyframes rotate {
  2350. from {
  2351. transform: rotate(0deg);
  2352. }
  2353. to {
  2354. transform: rotate(360deg);
  2355. }
  2356. }
  2357. .avatar-uploader {
  2358. border: 1px dashed;
  2359. width: px2rpx(200);
  2360. height: px2rpx(150);
  2361. display: flex;
  2362. flex-direction: column;
  2363. align-items: center;
  2364. justify-content: center;
  2365. /*float: left;*/
  2366. //overflow: hidden;
  2367. }
  2368. :deep(.files-button) {
  2369. .file-item {
  2370. .icon,
  2371. .avatar {
  2372. width: px2rpx(200);
  2373. height: px2rpx(150);
  2374. }
  2375. }
  2376. }
  2377. }
  2378. .label-with-icon {
  2379. display: flex;
  2380. align-items: center;
  2381. gap: px2rpx(8);
  2382. uni-text{
  2383. font-weight: 600;
  2384. }
  2385. :deep(.uni-tooltip) {
  2386. display: flex;
  2387. align-items: center;
  2388. justify-content: center;
  2389. }
  2390. }
  2391. .tooltip-content {
  2392. :deep(.uni-tooltip-popup) {
  2393. background-color: #fff !important;
  2394. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1) !important;
  2395. width: px2rpx(300) !important;
  2396. color: var(--color-zinc-500);
  2397. line-height: 1.6;
  2398. }
  2399. }
  2400. .help-icon {
  2401. margin-left: px2rpx(8);
  2402. width: px2rpx(16);
  2403. height: px2rpx(16);
  2404. background: var(--color-zinc-200);
  2405. border-radius: 50%;
  2406. display: flex;
  2407. align-items: center;
  2408. justify-content: center;
  2409. font-size: px2rpx(12);
  2410. color: var(--color-zinc-600);
  2411. cursor: pointer;
  2412. }
  2413. .amount-box {
  2414. display: flex;
  2415. align-items: center;
  2416. gap: px2rpx(12);
  2417. .amount-input {
  2418. flex: 1;
  2419. }
  2420. .btn {
  2421. display: flex;
  2422. align-items: center;
  2423. justify-content: center;
  2424. font-size: px2rpx(14);
  2425. margin-bottom: px2rpx(12);
  2426. height: px2rpx(35);
  2427. color: #fff;
  2428. border-radius: px2rpx(4);
  2429. font-weight: 600;
  2430. display: flex;
  2431. align-items: center;
  2432. justify-content: center;
  2433. border: none;
  2434. padding: 0 px2rpx(20);
  2435. margin-top: px2rpx(21);
  2436. cursor: pointer;
  2437. }
  2438. }
  2439. .custom-deposit-container {
  2440. width: 100%;
  2441. display: flex;
  2442. gap: px2rpx(60);
  2443. justify-content: space-between;
  2444. }
  2445. @media (max-width: 992px) {
  2446. .custom-deposit {
  2447. width: 100%;
  2448. margin-top: px2rpx(20);
  2449. }
  2450. .custom-deposit-container {
  2451. display: flex;
  2452. gap: px2rpx(30);
  2453. flex-wrap: wrap;
  2454. }
  2455. }
  2456. </style>