deposit-select.vue 97 KB

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