deposit.vue 95 KB

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