deposit.vue 94 KB

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