deposit.vue 95 KB

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