deposit-select.vue 103 KB

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