| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206 |
- <template>
- <cwg-page-wrapper class="create-page" :isHeaderFixed="true">
- <cwg-header :title="t('Home.page_ib.item5')" />
- <view class="container">
- <uni-loading v-if="loading" />
- <view class="row" v-else>
- <p v-if="channelData.type === 'DIGITAL_CURRENCY'" class="text-secondary" v-t="'Custom.Deposit.Des'" />
- <view class="col-lg-8">
- <view class="card">
- <view class="border-0 card-header">
- <uni-forms ref="formRef" :model="form" :rules="rules" label-width="200" label-position="top"
- class="form base-info-form" validate-trigger="submit">
- <view class="row">
- <!-- 步骤2:支付通道列表 -->
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'Custom.Deposit.Title22'"></h5>
- <uni-forms-item>
- <cwg-combox needSpace :clearable="false" v-model:value="channelId"
- :options="channelListOptions" :placeholder="t('placeholder.choose')">
- </cwg-combox>
- </uni-forms-item>
- </view>
- <!-- 银行选择区域(当有银行列表时) -->
- <view class="col-lg-6" v-if="bankDate.length">
- <h5 class="mb-3" v-t="'Custom.Withdraw.Title5'"></h5>
- <uni-forms-item name="bankCode">
- <cwg-combox v-model:value="form.bankCode" :options="bankOptions"
- :placeholder="t('placeholder.choose')" />
- </uni-forms-item>
- </view>
- <!-- 电子钱包地址输入 -->
- <view class="col-lg-6"
- v-if="['CHANNEL_TYPE_WALLET', 'CHANNEL_TYPE_ALI_WALLET'].includes(channelData.type)">
- <h5 class="mb-3">{{ getWalletLabel }}</h5>
- <uni-forms-item name="address">
- <uni-easyinput v-model="form.address" :placeholder="t('placeholder.input')"
- autocomplete="off" />
- </uni-forms-item>
- </view>
- <!-- 数字货币区域 -->
- <view class="col-lg-6" v-if="channelData.type == 'DIGITAL_CURRENCY'">
- <h5 class="mb-3" v-t="'blockchain.item11'"></h5>
- <uni-forms-item>
- <cwg-combox v-model:value="myId" :options="digitalOptions"
- :placeholder="t('placeholder.choose')"
- @change="onDigitalCurrencyChange" />
- </uni-forms-item>
- <h6 class="mb-3">
- <text v-t="'blockchain.item10'"></text>
- <text class="add-btn crm-cursor"
- @click="openAddBankCard('add_bankBlockchain')">
- {{ t('Custom.Withdraw.addBank1') }}
- </text>
- </h6>
- </view>
- <view class="col-lg-6" v-if="channelData.type == 'DIGITAL_CURRENCY'">
- <h5 class="mb-3" v-t="'blockchain.item3'"></h5>
- <uni-forms-item>
- <uni-easyinput disabled v-model="form.addressName" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6" v-if="channelData.type == 'DIGITAL_CURRENCY'">
- <h5 class="mb-3" v-t="'blockchain.item4'"></h5>
- <uni-forms-item>
- <uni-easyinput disabled v-model="form.address" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6"
- v-if="channelData.type == 'DIGITAL_CURRENCY' && form.addressProve">
- <h5 class="mb-3" v-t="'blockchain.item5'"></h5>
- <uni-forms-item>
- <div style="height: 100%; width: 100%" v-if="form.addressProve">
- <cwg-link type="pdf1"
- v-if="form.addressProve && (form.addressProve.slice(-3).toLowerCase() === 'pdf')"
- :url="htmlUrl + form.addressProve" target="_blank"
- style="text-decoration: none; min-width: auto; width: auto; color: #ffffff; padding: 5px 10px;"
- class="state crm_state_blue">
- PDF
- </cwg-link>
- <image v-else style="width: 50px; height: 50px"
- :src="imgUrl + form.addressProve" mode="aspectFill"
- @click="previewImage(imgUrl + form.addressProve)" />
- </div>
- </uni-forms-item>
- </view>
- <!-- 网银支付信息(BANK) -->
- <template v-if="channelData.type == 'BANK'">
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'Custom.Withdraw.Title4'"></h5>
- <uni-forms-item>
- <cwg-combox v-model:value="myId" :options="bankCardOptions"
- :placeholder="t('placeholder.choose')" @change="chooseBank" />
- </uni-forms-item>
- <h6 class="mb-3">
- <text>{{
- t('Custom.Withdraw.addBank')
- }}</text>
- <text class="add-btn crm-cursor"
- @click="openAddBankCard('add_bankCard')">
- {{ t('Custom.Withdraw.addBank1') }}
- </text>
- </h6>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'Custom.Withdraw.UserName'"></h5>
- <uni-forms-item>
- <uni-easyinput disabled v-model="form.bankUname" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'Custom.Withdraw.BankCardNum'"></h5>
- <uni-forms-item>
- <uni-easyinput disabled v-model="form.bankCardNum" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'Custom.Withdraw.BankName'"></h5>
- <uni-forms-item>
- <uni-easyinput disabled v-model="form.bankName" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'Custom.Withdraw.bankBranchName'"></h5>
- <uni-forms-item>
- <uni-easyinput disabled v-model="form.bankBranchName" />
- </uni-forms-item>
- </view>
- </template>
- <!-- 信用卡信息 -->
- <template v-if="channelData.type == 'CHANNEL_TYPE_CARD'">
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'Custom.Withdraw.Title4'"></h5>
- <uni-forms-item>
- <cwg-combox v-model:value="myId" :options="bankCardOptions"
- :placeholder="t('placeholder.choose')" @change="chooseBank" />
- </uni-forms-item>
- <h6 class="mb-3">
- <text>{{
- t('PersonalManagement.Label.addCreditCard') }}</text>
- <text class="add-btn crm-cursor"
- @click="openAddBankCard('add_CreditCard')">
- {{ t('Custom.Withdraw.addBank1') }}
- </text>
- </h6>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'PersonalManagement.Label.CreditCardAccountName'">
- </h5>
- <uni-forms-item>
- <uni-easyinput disabled v-model="form.bankUname" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'PersonalManagement.Label.CreditCardAccount'">
- </h5>
- <uni-forms-item>
- <uni-easyinput disabled v-model="form.bankCardNum" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3">
- CVV</h5>
- <uni-forms-item>
- <uni-easyinput disabled v-model="form.cvv" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'PersonalManagement.Label.ExpirationYear'">
- </h5>
- <uni-forms-item>
- <uni-easyinput disabled v-model="form.expiryYearMonth" />
- </uni-forms-item>
- </view>
- </template>
- <!-- 电汇信息 -->
- <template v-if="channelData.type == 'BANK_TELEGRAPHIC'">
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'Custom.Withdraw.Title4'"></h5>
- <uni-forms-item>
- <cwg-combox v-model:value="myId" :options="bankCardOptions"
- :placeholder="t('placeholder.choose')" @change="chooseBank" />
- </uni-forms-item>
- <h6 class="mb-3">
- <text>{{
- t('Custom.Withdraw.addWire') }}</text>
- <text class="add-btn crm-cursor"
- @click="openAddBankCard('add_wireTransfer')">
- {{ t('Custom.Withdraw.addBank1') }}
- </text>
- </h6>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'Custom.Withdraw.UserName'">
- </h5>
- <uni-forms-item>
- <uni-easyinput disabled v-model="form.bankUname" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'Custom.Withdraw.BankCardNum'">
- </h5>
- <uni-forms-item>
- <uni-easyinput disabled v-model="form.bankCardNum" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'Custom.Withdraw.BankName'">
- </h5>
- <uni-forms-item>
- <uni-easyinput disabled v-model="form.bankName" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'Custom.Withdraw.swiftCode'">
- </h5>
- <uni-forms-item>
- <uni-easyinput disabled v-model="form.swiftCode" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'Custom.Withdraw.bankCode'">
- </h5>
- <uni-forms-item>
- <uni-easyinput disabled v-model="form.customBankCode" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'Custom.Withdraw.bankAddr'">
- </h5>
- <uni-forms-item>
- <uni-easyinput disabled v-model="form.bankAddr" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3">
- Account Agency NO
- </h5>
- <uni-forms-item name="agencyNo">
- <uni-easyinput v-model="form.agencyNo" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6"
- v-if="channelData.type == 'BANK_TELEGRAPHIC' && channelData.code == 'PAY_RETAILER_REMIT_PAY_KEY_BRW'">
- <uni-forms-item label="CPF" name="cpf">
- <uni-easyinput v-model="form.cpf" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'Custom.Withdraw.CurrencyType'">
- </h5>
- <uni-forms-item name="currency">
- <cwg-combox v-model:value="form.currency"
- :options="[{ text: 'USD', value: 'USD' }]" />
- </uni-forms-item>
- </view>
- <view class="col-lg-6">
- <h5 class="mb-3" v-t="'Custom.Withdraw.Title3'">
- </h5>
- <view class=" amount-box">
- <uni-forms-item name="amount" :error-message="amountErrorMessage"
- class="amount-input">
- <uni-easyinput v-model.trim="form.amount" type="number"
- @blur="validateAmount" />
- </uni-forms-item>
- <view class="btn btn-gray waves-effect waves-light" v-t="'State.All'"
- @click="setAllAmount"></view>
- </view>
- </view>
- </template>
- <!-- 非电汇的金额区域 -->
- <view class="col-lg-6" v-if="channelData.type != 'BANK_TELEGRAPHIC'">
- <h5 class="mb-3">
- {{ t('Custom.Withdraw.Title3') + '(' + channelData.currency + ')'
- }}
- </h5>
- <view class=" amount-box">
- <uni-forms-item name="amount" :error-message="amountErrorMessage"
- class="amount-input">
- <uni-easyinput v-model.trim="form.amount" autocomplete="off"
- type="number" @blur="validateAmount" />
- </uni-forms-item>
- <view class="btn btn-gray waves-effect waves-light" v-t="'State.All'"
- @click="setAllAmount"></view>
- </view>
- </view>
- <view class="col-lg-12 agree">
- <uni-forms-item name="agree2">
- <checkbox-group :value="form.agree2 ? ['1'] : []" @change="onAgree2Change">
- <label class="checkbox">
- <checkbox value="1" :checked="form.agree2" />
- <view class="crm-cursor"
- style="text-decoration: underline; display: inline-block; margin-left: 10px;color: #333;"
- @click.stop="dialogCheckTip = true">
- {{ t('Custom.Withdraw.Des') }}
- </view>
- </label>
- </checkbox-group>
- </uni-forms-item>
- </view>
- <view class="col-lg-12 agree" v-if="dialogTipsIsShow">
- <uni-forms-item name="agree3">
- <checkbox-group :value="form.agree3 ? ['1'] : []" @change="onAgree3Change">
- <label class="checkbox">
- <checkbox value="1" :checked="form.agree3" />
- <view class="crm-cursor"
- style="display: inline-block; margin-left: 10px;color: #333;">
- * {{ t('Custom.Withdraw.item1') }}<br />
- {{ t('Custom.Withdraw.item1_1') }}<br />
- {{ t('Custom.Withdraw.item1_2') }}
- </view>
- </label>
- </checkbox-group>
- </uni-forms-item>
- </view>
- <button class="btn btn-dark waves-effect waves-light" @click="openTips"
- v-t="'Btn.Submit'"></button>
- </view>
- </uni-forms>
- </view>
- </view>
- </view>
- <view class="col-lg-4">
- <view class="tips card card-body" v-if="(introduce.introduce || introduce.enIntroduce)">
- <view>
- <cwg-rich-text class="attention"
- :nodes="isZh ? introduce.introduce : introduce.enIntroduce" />
- </view>
- </view>
- </view>
- </view>
- </view>
- <template v-if="step4">
- <view class="custom-deposit-container">
- <view class="custom-withdraw">
- <!-- 步骤2:支付通道列表 -->
- <view class="box box-step2">
- <view class="b-card">
- <view class="card-top">
- <text class="tit">{{ t('Custom.Deposit.Title22')
- }}</text>
- <cwg-combox needSpace :clearable="false" v-model:value="channelId" :options="channelListOptions"
- :placeholder="t('placeholder.choose')">
- </cwg-combox>
- </view>
- </view>
- </view>
- <!-- 步骤3:填写出金信息 -->
- <view class="box box-step3">
- <view class="b-card">
- <view class="card-top">
- <!-- 注意事项 -->
- <!-- 表单 -->
- <uni-forms ref="formRef" :model="form" :rules="rules" label-width="200"
- label-position="top" class="form base-info-form" validate-trigger="submit">
- <view class="demo-uni-row uni-row1 uni-row2">
- <!-- 银行选择区域(当有银行列表时) -->
- <view v-if="bankDate.length">
- <view class="tit">
- <text>{{ t('Custom.Withdraw.Title5') }}</text>
- </view>
- </view>
- <view v-if="bankDate.length">
- <uni-forms-item name="bankCode">
- <cwg-combox v-model:value="form.bankCode" :options="bankOptions"
- :placeholder="t('placeholder.choose')" />
- </uni-forms-item>
- </view>
- <!-- 电子钱包标题 -->
- <view
- v-if="['CHANNEL_TYPE_WALLET', 'CHANNEL_TYPE_ALI_WALLET'].includes(channelData.type)">
- <view class="tit">
- <text>{{ getWalletLabel }}</text>
- </view>
- </view>
- <!-- 电子钱包地址输入 -->
- <view
- v-if="['CHANNEL_TYPE_WALLET', 'CHANNEL_TYPE_ALI_WALLET'].includes(channelData.type)">
- <uni-forms-item name="address">
- <uni-easyinput v-model="form.address"
- :placeholder="t('placeholder.input')" autocomplete="off" />
- </uni-forms-item>
- </view>
- <!-- 数字货币区域 -->
- <view class="card-tit" v-if="channelData.type == 'DIGITAL_CURRENCY'">
- <div
- style="display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;">
- <view class="tit">
- <text>{{ t('Custom.Withdraw.Title6') }}</text>
- </view>
- <div class="add-back">
- <text>{{ t('blockchain.item10') }}</text>
- <text class="add-btn crm-cursor"
- @click="openAddBankCard('add_bankBlockchain')">
- {{ t('Custom.Withdraw.addBank1') }}
- </text>
- </div>
- </div>
- </view>
- <view v-if="channelData.type == 'DIGITAL_CURRENCY'">
- <uni-forms-item>
- <cwg-combox v-model:value="myId" :options="digitalOptions"
- :placeholder="t('placeholder.choose')"
- @change="onDigitalCurrencyChange"
- :disabled="!ruleForm.bankBlockchain.length" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'DIGITAL_CURRENCY'">
- <uni-forms-item :label="t('blockchain.item3')">
- <uni-easyinput disabled v-model="form.addressName" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'DIGITAL_CURRENCY'">
- <uni-forms-item :label="t('blockchain.item4')">
- <uni-easyinput disabled v-model="form.address" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'DIGITAL_CURRENCY' && form.addressProve">
- <uni-forms-item :label="t('blockchain.item5')">
- <div style="height: 100%; width: 100%" v-if="form.addressProve">
- <cwg-link type="pdf1"
- v-if="form.addressProve && (form.addressProve.slice(-3).toLowerCase() === 'pdf')"
- :url="htmlUrl + form.addressProve" target="_blank"
- style="text-decoration: none; min-width: auto; width: auto; color: #ffffff; padding: 5px 10px;"
- class="state crm_state_blue">
- PDF
- </cwg-link>
- <image v-else style="width: 50px; height: 50px"
- :src="imgUrl + form.addressProve" mode="aspectFill"
- @click="previewImage(imgUrl + form.addressProve)" />
- </div>
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'DIGITAL_CURRENCY'">
- <view class="tit" style="margin: 0 0 20px">
- <i class="iconfont iconi"></i>
- <text>{{ t('Custom.Deposit.Des') }}</text>
- </view>
- </view>
- <!-- 银行卡/电汇/信用卡区域 -->
- <view class="card-tit"
- v-if="(channelData.type == 'BANK_TELEGRAPHIC' || channelData.type == 'BANK' || channelData.type == 'CHANNEL_TYPE_CARD')">
- <div
- style="display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;">
- <view class="tit">
- <text>{{ t('Custom.Withdraw.Title4') }}</text>
- </view>
- <div class="add-back">
- <text v-if="channelData.type == 'BANK_TELEGRAPHIC'">{{
- t('Custom.Withdraw.addWire') }}</text>
- <text v-if="channelData.type == 'BANK_TELEGRAPHIC'"
- class="add-btn crm-cursor"
- @click="openAddBankCard('add_wireTransfer')">
- {{ t('Custom.Withdraw.addBank1') }}
- </text>
- <text v-if="channelData.type == 'BANK'">{{
- t('Custom.Withdraw.addBank')
- }}</text>
- <text v-if="channelData.type == 'BANK'" class="add-btn crm-cursor"
- @click="openAddBankCard('add_bankCard')">
- {{ t('Custom.Withdraw.addBank1') }}
- </text>
- <text v-if="channelData.type == 'CHANNEL_TYPE_CARD'">{{
- t('PersonalManagement.Label.addCreditCard') }}</text>
- <text v-if="channelData.type == 'CHANNEL_TYPE_CARD'"
- class="add-btn crm-cursor"
- @click="openAddBankCard('add_CreditCard')">
- {{ t('Custom.Withdraw.addBank1') }}
- </text>
- </div>
- </div>
- </view>
- <!-- 网银支付信息(BANK) -->
- <view v-if="channelData.type == 'BANK'">
- <uni-forms-item>
- <cwg-combox v-model:value="myId" :options="bankCardOptions"
- :placeholder="t('placeholder.choose')" @change="chooseBank" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'BANK'">
- <uni-forms-item :label="t('Custom.Withdraw.UserName')">
- <uni-easyinput disabled v-model="form.bankUname" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'BANK'">
- <uni-forms-item :label="t('Custom.Withdraw.BankCardNum')">
- <uni-easyinput disabled v-model="form.bankCardNum" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'BANK'">
- <uni-forms-item :label="t('Custom.Withdraw.BankName')">
- <uni-easyinput disabled v-model="form.bankName" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'BANK'">
- <uni-forms-item :label="t('Custom.Withdraw.bankBranchName')">
- <uni-easyinput disabled v-model="form.bankBranchName" />
- </uni-forms-item>
- </view>
- <!-- 信用卡信息 -->
- <view v-if="channelData.type == 'CHANNEL_TYPE_CARD'">
- <uni-forms-item>
- <cwg-combox v-model:value="myId" :options="bankCardOptions"
- :placeholder="t('placeholder.choose')" @change="chooseBank" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'CHANNEL_TYPE_CARD'">
- <uni-forms-item
- :label="t('PersonalManagement.Label.CreditCardAccountName')">
- <uni-easyinput disabled v-model="form.bankUname" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'CHANNEL_TYPE_CARD'">
- <uni-forms-item :label="t('PersonalManagement.Label.CreditCardAccount')">
- <uni-easyinput disabled v-model="form.bankCardNum" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'CHANNEL_TYPE_CARD'">
- <uni-forms-item label="CVV">
- <uni-easyinput disabled v-model="form.cvv" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'CHANNEL_TYPE_CARD'">
- <uni-forms-item :label="t('PersonalManagement.Label.ExpirationYear')">
- <uni-easyinput disabled v-model="form.expiryYearMonth" />
- </uni-forms-item>
- </view>
- <!-- 电汇信息 -->
- <view v-if="channelData.type == 'BANK_TELEGRAPHIC'">
- <uni-forms-item>
- <cwg-combox v-model:value="myId" :options="bankCardOptions"
- :placeholder="t('placeholder.choose')" @change="chooseBank" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'BANK_TELEGRAPHIC'">
- <uni-forms-item :label="t('Custom.Withdraw.UserName')">
- <uni-easyinput disabled v-model="form.bankUname" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'BANK_TELEGRAPHIC'">
- <uni-forms-item :label="t('Custom.Withdraw.BankCardNum')">
- <uni-easyinput disabled v-model="form.bankCardNum" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'BANK_TELEGRAPHIC'">
- <uni-forms-item :label="t('Custom.Withdraw.BankName')">
- <uni-easyinput disabled v-model="form.bankName" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'BANK_TELEGRAPHIC'">
- <uni-forms-item :label="t('Custom.Withdraw.swiftCode')">
- <uni-easyinput disabled v-model="form.swiftCode" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'BANK_TELEGRAPHIC'">
- <uni-forms-item :label="t('Custom.Withdraw.bankCode')">
- <uni-easyinput disabled v-model="form.customBankCode" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'BANK_TELEGRAPHIC'">
- <uni-forms-item :label="t('Custom.Withdraw.bankAddr')">
- <uni-easyinput disabled v-model="form.bankAddr" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'BANK_TELEGRAPHIC'">
- <!-- Account Agency NO -->
- <uni-forms-item :label="'Account Agency NO'" name="agencyNo">
- <uni-easyinput v-model="form.agencyNo" />
- </uni-forms-item>
- </view>
- <view
- v-if="channelData.type == 'BANK_TELEGRAPHIC' && channelData.code == 'PAY_RETAILER_REMIT_PAY_KEY_BRW'">
- <uni-forms-item label="CPF" name="cpf">
- <uni-easyinput v-model="form.cpf" />
- </uni-forms-item>
- </view>
- <!-- 电汇金额区域 -->
- <view v-if="channelData.type == 'BANK_TELEGRAPHIC'">
- <view class="tit">
- <text>{{ t('Custom.Withdraw.Title3') }}</text>
- </view>
- </view>
- <view v-if="channelData.type == 'BANK_TELEGRAPHIC'">
- <uni-forms-item :label="t('Custom.Withdraw.CurrencyType')" name="currency">
- <cwg-combox v-model:value="form.currency"
- :options="[{ text: 'USD', value: 'USD' }]" />
- </uni-forms-item>
- </view>
- <view v-if="channelData.type == 'BANK_TELEGRAPHIC'" class="amount-box">
- <uni-forms-item :label="t('Custom.Withdraw.amount')" name="amount"
- :error-message="amountErrorMessage" class="amount-input">
- <uni-easyinput v-model.trim="form.amount" type="number"
- @blur="validateAmount" />
- </uni-forms-item>
- <view class="btn btn-gray" v-t="'State.All'" @click="setAllAmount"></view>
- </view>
- <!-- 非电汇的金额区域 -->
- <view v-if="channelData.type != 'BANK_TELEGRAPHIC'">
- <view class="tit">
- <text>{{ t('Custom.Withdraw.Title3') + '(' + channelData.currency + ')'
- }}</text>
- </view>
- </view>
- <view v-if="channelData.type != 'BANK_TELEGRAPHIC'"
- class="amount-box amount-box1">
- <uni-forms-item name="amount" :error-message="amountErrorMessage"
- class="amount-input">
- <uni-easyinput v-model.trim="form.amount" autocomplete="off"
- type="number" @blur="validateAmount" />
- </uni-forms-item>
- <view class="btn btn-gray" v-t="'State.All'" @click="setAllAmount"></view>
- </view>
- </view>
- <view class="agree">
- <uni-forms-item name="agree2">
- <checkbox-group :value="form.agree2 ? ['1'] : []" @change="onAgree2Change">
- <label class="checkbox">
- <checkbox value="1" :checked="form.agree2" />
- <view class="crm-cursor"
- style="text-decoration: underline; display: inline-block; margin-left: 10px;"
- @click.stop="dialogCheckTip = true">
- {{ t('Custom.Withdraw.Des') }}
- </view>
- </label>
- </checkbox-group>
- </uni-forms-item>
- </view>
- <view class="agree" v-if="dialogTipsIsShow">
- <uni-forms-item name="agree3">
- <checkbox-group :value="form.agree3 ? ['1'] : []" @change="onAgree3Change">
- <label class="checkbox">
- <checkbox value="1" :checked="form.agree3" />
- <view class="crm-cursor"
- style="display: inline-block; margin-left: 10px;">
- * {{ t('Custom.Withdraw.item1') }}<br />
- {{ t('Custom.Withdraw.item1_1') }}<br />
- {{ t('Custom.Withdraw.item1_2') }}
- </view>
- </label>
- </checkbox-group>
- </uni-forms-item>
- </view>
- <button class="s-btn" type="primary" @click="openTips">{{ t('Btn.Submit')
- }}</button>
- </uni-forms>
- </view>
- </view>
- </view>
- </view>
- <view class="step3-attention">
- <view class="tips" v-if="(introduce.introduce || introduce.enIntroduce)">
- <view>
- <cwg-rich-text class="attention"
- :nodes="isZh ? introduce.introduce : introduce.enIntroduce" />
- </view>
- </view>
- </view>
- </view>
- </template>
- <!-- 提示弹窗 -->
- <cwg-tips-popup v-model:visible="dialogTips" content="Custom.Withdraw.item2" @confirm="closeTipsConfirm" />
- <cwg-tips-popup v-model:visible="dialogCheckInto" content="ApplicationDialog.Des42_1"
- title="ApplicationDialog.Des41_1" @confirm="closeTipsConfirm" />
- <cwg-tips-popup v-model:visible="dialogCheckInto1" content="ApplicationDialog.Des42"
- title="ApplicationDialog.Des41" @confirm="closeTipsConfirm" />
- <!-- 弹窗:确认信息 -->
- <cwg-check-confirm-popup v-model:visible="dialogCheckConfirm" :title="t('Home.page_customer.item3')"
- :channelData="channelData" :code="code" :selectCodes="selectCodes" :params="form" :FreeNumber="FreeNumber"
- :userName="userName" :dialogCheckConfirm_form="dialogCheckConfirm_form" :login="loginValue" type="IB"
- @confirm="submit" />
- <!-- 协议弹窗 -->
- <cwg-tips-popup v-model:visible="dialogCheckTip"
- :introduce="isZh ? introduce.introduce : introduce.enIntroduce" />
- <!-- 等待弹窗 -->
- <cwg-wait-popup v-model:visible="dialogCheckWait" type="center" :mask-click="false" :showFooters="false" />
- <!-- 最后失败弹窗 -->
- <cwg-error-popup v-model:visible="dialogError" @confirm="closeDia" :responseMessage="RES" />
- <!-- 最后成功弹窗 -->
- <cwg-success-popup v-model:visible="dialogSuccess" @confirm="closeDia" />
- <!-- 功能关闭弹出 -->
- <cwg-function-disabled-popup v-model:visible="InfoStatus5" :showFooters="false" @confirm="toHome" />
- <!-- kyc成功弹窗 -->
- <cwg-kyc-popup v-model:visible="dialogKyc" :qrText="text1" />
- <!--验证码-->
- <!-- 新增银行弹窗 -->
- <add-bank-dialog ref="addBankDialogRef" @success="addSuccess" />
- </cwg-page-wrapper>
- </template>
- <script setup>
- import { ref, reactive, computed, onMounted, nextTick, watch, onUnmounted } from 'vue'
- import { onLoad } from '@dcloudio/uni-app'
- import { showToast } from "@/utils/toast";
- import useUserStore from '@/stores/use-user-store'
- import { customApi } from "@/service/custom"
- import { ibApi } from "@/service/ib"
- import { financialApi } from "@/service/financial"
- import Config from "@/config/index"
- import AddBankDialog from '@/components/AddBankDialog.vue';
- import CwgCheckConfirmPopup from '../customer/components/WithdrawCheckConfirmPopup.vue'
- import CwgKycPopup from '../customer/components/KycPopup.vue'
- import PaymentMethodsList from '../customer/components/PaymentMethodsList.vue'
- import { useI18n } from 'vue-i18n'
- const { t, locale } = useI18n()
- const { Code, Host80, Host05 } = Config
- const isZh = computed(() => ['cn', 'zhHant'].includes(locale.value))
- // ---------- 辅助函数:替代原 this.Session ----------
- // 弹窗辅助(替代原 this.$pigeon)
- const $pigeon = {
- MessageError(msg) {
- uni.showToast({ title: msg, icon: 'none' })
- },
- MessageWarning(msg) {
- uni.showToast({ title: msg, icon: 'none' })
- },
- MessageConfirm(content, title, confirmText, cancelText, confirmCallback, cancelCallback) {
- uni.showModal({
- title,
- content,
- confirmText,
- cancelText,
- success(res) {
- if (res.confirm) confirmCallback && confirmCallback()
- else cancelCallback && cancelCallback()
- }
- })
- }
- }
- // 获取 metaInfo(用于二维码)
- const getMetaInfo = () => {
- const systemInfo = uni.getSystemInfoSync()
- return {
- userAgent: systemInfo.platform,
- screenWidth: systemInfo.screenWidth,
- screenHeight: systemInfo.screenHeight,
- deviceType: 'h5'
- }
- }
- // ---------- 响应式数据(完全保留原 data 结构) ----------
- const dialogFreeNumber = ref(false)
- const FreeNumber = ref(0)
- const InfoStatus5 = ref(false)
- const metaInfo = ref(null)
- const text1 = ref("")
- const flag = ref(false)
- const RES = ref("")
- const openType = ref("")
- const dialogInfoTradingAdd = ref(false)
- const ruleForm = reactive({
- bankInfo: [],
- bankWrit: [],
- xykInfo: [],
- bankBlockchain: []
- })
- const imgUrl = Host05
- const htmlUrl = Host80
- const loginOptions = ref([])
- const loginValue = ref("")
- const code = ref("")
- const bankValid = ref("")
- const requestUrl = ref("")
- const isStep3 = ref(false)
- const step2 = ref(false)
- const step3 = ref(false)
- const dialogCheckTip = ref(false)
- const isChannel = ref(true)
- const pictLoading = ref(false)
- const tableData = reactive({
- International_Transfer: [],
- China_UnionPay: [],
- Digital_Currency: [],
- CHANNEL_TYPE_CARD: [],
- Electronic_Wallet: [],
- CHANNEL_TYPE_ALI_WALLET: [],
- UCARD_WALLET: []
- })
- const balance = ref(0)
- //获取基础信息
- const getDateList = async () => {
- console.log(4242);
- let res = await ibApi.IbData({});
- if (res.code == Code.StatusOK) {
- if (res.data != null) {
- balance.value = res.data.balance
- }
- } else {
- uni.showToast({ title: res.msg, icon: 'none' })
- }
- loading.value = false
- }
- const setAllAmount = () => {
- form.amount = balance.value
- validateAmount()
- }
- //通道table-选择前后
- const activeTab = ref(1)
- // 🔥 自动过滤掉空数据的 tab
- const tabsConfig = computed(() => {
- const allTabs = [
- { text: t('Custom.Deposit.Channel3'), value: 1, type: 'Digital_Currency' },
- { text: t('Custom.Deposit.Channel2'), value: 2, type: 'China_UnionPay' },
- { text: t('Custom.Deposit.Channel4'), value: 3, type: 'Electronic_Wallet' },
- { text: t('Custom.Deposit.Channel1'), value: 4, type: 'International_Transfer' },
- { text: t('PersonalManagement.Label.CreditCard'), value: 5, type: 'CHANNEL_TYPE_CARD' },
- { text: t('card.title'), value: 6, type: 'UCARD_WALLET' },
- { text: t('Label.Ali'), value: 7, type: 'CHANNEL_TYPE_ALI_WALLET' },
- ]
- // ✅ 只保留有数据的 tab
- return allTabs.filter(tab => {
- return tableData[tab.type]?.length > 0
- })
- })
- // 当前选中的 tab 项
- const currentTab = computed(() => tabsConfig.value.find(t => t.value === activeTab.value))
- // 当前要渲染的表格数据
- const currentTableData = computed(() => {
- const type = currentTab.value?.type
- return type ? tableData[type] || [] : []
- })
- // ✅ 监听 tab 变化,自动选中第一个有数据的 tab
- watch(
- tabsConfig,
- (newTabs) => {
- if (newTabs.length > 0) {
- activeTab.value = newTabs[0].value // 选中第一个
- }
- },
- { immediate: true }
- )
- const bankDate = ref([])
- const channelData = ref({})
- const WireTransferAccount = ref({})
- const formRef = ref(null)
- const form = reactive({
- currency: "USD",
- amount: "",
- bankCode: '', // 银行代码(普通银行通道选择)
- address: '', // 电子钱包地址 / 数字货币地址(输入/展示)
- addressName: '', // 数字货币地址名称(展示)
- addressProve: '', // 数字货币地址证明文件路径(仅展示))
- bankUname: '', // 持卡人姓名
- bankCardNum: '', // 银行卡号
- bankName: '', // 银行名称
- bankBranchName: '', // 支行名称
- swiftCode: '', // SWIFT代码
- customBankCode: '', // 自定义银行代码
- bankAddr: '', // 银行地址
- agencyNo: '', // 代理机构编号(电汇专用,可编辑)
- cpf: '', // CPF号码(电汇专用,可编辑)
- cvv: '', // CVV码(电汇专用,可编辑)
- expiryYearMonth: '', // 过期年(电汇专用,可编辑)
- agree2: false,
- agree3: false,
- login: ''
- })
- const mAmount = reactive({
- minAmount: "",
- maxAmount: ""
- })
- const introduce = reactive({
- introduce: "",
- enIntroduce: ""
- })
- const bankInfoList = ref([])
- const bank = ref("")
- const myId = ref("")
- const bankPayType = ref("")
- const step3_bank_cur = ref("")
- const agree2 = ref(false)
- const form1 = ref({})
- const dialogCheck = ref(false)
- const dialogKyc = ref(false)
- const dialogVisible = ref(false)
- const dialogCheckWait = ref(false)
- const dialogCheckInto = ref(false)
- const dialogCheckInto1 = ref(false)
- const dialogNewBank = ref(false)
- const params = reactive({
- bankCardNum: "",
- bankUname: "",
- bankName: "",
- bankBranchName: "",
- bankAddr: "",
- swiftCode: "",
- bankFront: "",
- bankBack: "",
- defaultBank: false
- })
- const resetForm = async () => {
- await nextTick();
- formRef.value?.clearValidate(); // 再次清除可能因数据重置产生的新错误
- params.bankCardNum = ""
- params.bankUname = ""
- params.bankName = ""
- params.bankBranchName = ""
- params.bankAddr = ""
- params.swiftCode = ""
- params.bankFront = ""
- params.bankBack = ""
- params.defaultBank = false
- form.amount = ""
- form.amount1 = ""
- form.bankCode = ""
- form.address = ""
- form.addressName = ""
- form.addressProve = ""
- form.bankUname = ""
- form.bankCardNum = ""
- form.swiftCode = ""
- form.customBankCode = ""
- form.bankAddr = ""
- form.agencyNo = ""
- form.bankName = ""
- form.cpf = ""
- form.bankBranchName = ""
- form.cpf = ""
- form.cvv = ""
- form.expiryYearMonth = ""
- form.agree2 = false
- form.agree3 = false
- amountErrorMessage.value = ""
- flag.value = false
- loginValue.value = ""
- dialogCheck.value = false
- dialogVisible.value = false
- }
- const dialogTips = ref(false)
- const dialogTipsIsShow = ref(true)
- const dialogCheckConfirm = ref(false)
- const dialogCheckConfirm_form = reactive({
- amount: "",
- feeAmount: ""
- })
- // 验证规则(保留原结构,实际验证需配合表单组件)
- const rules = computed(() => ({
- bankCardNum: {
- rules: [
- {
- required: true,
- errorMessage: t('vaildate.input.empty'),
- trigger: 'blur',
- },
- ],
- },
- bankUname: {
- rules: [
- {
- required: true,
- errorMessage: t('vaildate.input.empty'),
- trigger: 'blur',
- },
- ],
- },
- bankName: {
- rules: [
- {
- required: true,
- errorMessage: t('vaildate.input.empty'),
- trigger: 'blur',
- },
- ],
- },
- bankBranchName: {
- rules: [
- {
- required: true,
- errorMessage: t('vaildate.input.empty'),
- trigger: 'blur',
- },
- ],
- },
- bankAddr: {
- rules: [
- {
- required: true,
- errorMessage: t('vaildate.input.empty'),
- trigger: 'blur',
- },
- ],
- },
- swiftCode: {
- rules: [
- {
- required: true,
- errorMessage: t('vaildate.input.empty'),
- trigger: 'blur',
- },
- ],
- },
- defaultBank: {
- rules: [
- {
- required: true,
- errorMessage: t('vaildate.select.empty'),
- trigger: 'change',
- },
- ],
- },
- bankCode: {
- rules: [
- {
- required: true,
- errorMessage: t('vaildate.select.empty'),
- trigger: 'change',
- },
- ],
- },
- message: {
- rules: [
- {
- required: true,
- errorMessage: t('vaildate.input.empty'),
- trigger: 'blur',
- },
- ],
- },
- address: {
- rules: [
- {
- required: true,
- errorMessage: t('vaildate.input.empty'),
- trigger: 'blur',
- },
- ],
- },
- amount: {
- rules: [
- {
- required: true,
- errorMessage: t('vaildate.amount.format'),
- },
- {
- validateFunction: (rule, value, data, callback) => {
- value = Number(value)
- if (value && (Number(mAmount.minAmount) > value || Number(mAmount.maxAmount) < value)) {
- callback(t('vaildate.amount.amount') + mAmount.minAmount + ' - ' + mAmount.maxAmount);
- return false;
- }
- if (value > balance.value) {
- callback(t('Label.LoginBalance') + ':$' + balance.value);
- return false;
- }
- if (/^[0-9]+([.]{1}[0-9]{1,2})?$/.test(value)) {
- return true;
- } else {
- callback(t('vaildate.amount.format'));
- return false;
- }
- },
- trigger: 'blur',
- },
- ],
- },
- agree2: {
- rules: [
- {
- validateFunction: (rule, value, data, callback) => {
- if (form.agree2) {
- return true;
- } else {
- callback(t('vaildate.agree.empty'));
- return false;
- }
- },
- trigger: 'change',
- },
- ],
- },
- agree3: {
- rules: [
- {
- validateFunction: (rule, value, data, callback) => {
- if (form.agree3) {
- return true;
- } else {
- callback(t('vaildate.agree.empty'));
- return false;
- }
- },
- trigger: 'change',
- },
- ],
- },
- agencyNo: {
- rules: [
- {
- required: true,
- errorMessage: t('vaildate.input.empty'),
- trigger: 'blur',
- },
- ],
- },
- cpf: {
- rules: [
- {
- required: true,
- errorMessage: t('vaildate.input.empty'),
- trigger: 'blur',
- },
- ],
- },
- }));
- const amountErrorMessage = ref('')
- const setTipsAmount = () => {
- const min = Number(mAmount.minAmount);
- const max = Number(mAmount.maxAmount);
- nextTick(() => {
- amountErrorMessage.value = t('vaildate.amount.amount') + min + '-' + max
- })
- }
- const validateAmount = () => {
- const amount = Number(form.amount)
- if (mAmount.minAmount && mAmount.maxAmount) {
- const min = Number(mAmount.minAmount);
- const max = Number(mAmount.maxAmount);
- if (!amount && amount !== 0) {
- amountErrorMessage.value = t('vaildate.amount.amount') + min + '-' + max
- return false
- }
- if (amount < min || amount > max) {
- amountErrorMessage.value = t('vaildate.amount.amount') + min + '-' + max
- return false
- }
- }
- if (!/^[0-9]+([.]{1}[0-9]{1,2})?$/.test(amount)) {
- amountErrorMessage.value = t('vaildate.amount.format')
- return false
- }
- if (amount > balance.value) {
- amountErrorMessage.value = t('Label.LoginBalance') + ':$' + balance.value
- return false
- }
- amountErrorMessage.value = ''
- return true
- }
- // ---------- 计算属性 ----------
- const loginComboxOptions = computed(() => {
- return loginOptions.value.map((item, index) => ({
- text: item.label,
- value: item.login
- }))
- })
- const digitalOptions = computed(() => {
- return ruleForm.bankBlockchain.map((item, index) => ({
- text: `${item.addressName}-${item.address}`,
- value: item.id,
- // disable: item.authStatus == 0
- }))
- })
- const groupTitleMap = {
- 'Ucard_Wallet': 'card.title',
- 'Digital_Currency': 'Custom.Deposit.Channel3',
- 'China_UnionPay': 'Custom.Deposit.Channel2',
- 'Electronic_Wallet': 'Custom.Deposit.Channel4',
- 'International_Transfer': 'Custom.Deposit.Channel1',
- 'CHANNEL_TYPE_CARD': 'PersonalManagement.Label.CreditCard',
- 'CHANNEL_TYPE_ALI_WALLET': 'Label.Ali'
- }
- const getWalletLabel = computed(() => {
- if (channelData.value.type === 'CHANNEL_TYPE_WALLET') return t('Custom.Withdraw.Title7')
- if (channelData.value.type === 'CHANNEL_TYPE_ALI_WALLET') return t('Label.AliAccout')
- return ''
- })
- const bankCardOptions = computed(() => {
- return bankList.value.map((item, index) => ({
- text: getBankLabel(item),
- value: item.id
- }))
- })
- const getBankLabel = (item) => {
- if (channelData.value.type === 'BANK' || channelData.value.type === 'BANK_TELEGRAPHIC') {
- return `${item.bankName}-${item.bankCardNum}`
- } else if (channelData.value.type === 'CHANNEL_TYPE_CARD') {
- return item.bankCardNum
- }
- return ''
- }
- const bankList = computed(() => {
- if (channelData.value.type === 'BANK') return ruleForm.bankInfo
- if (channelData.value.type === 'BANK_TELEGRAPHIC') return ruleForm.bankWrit
- if (channelData.value.type === 'CHANNEL_TYPE_CARD') return ruleForm.xykInfo
- if (channelData.value.type === 'DIGITAL_CURRENCY') return ruleForm.bankBlockchain
- return []
- })
- const bankOptions = computed(() => {
- return bankDate.value.map((item, index) => ({
- text: (locale.value === 'cn' || locale.value === 'zhHant') ? item.name : item.enName,
- value: item.code
- }))
- })
- // 最后确认
- const dialogSuccess = computed(() => dialogCheck.value && dialogVisible.value)
- // 最后失败
- const dialogError = computed(() => dialogCheck.value && !dialogVisible.value)
- const userStore = useUserStore()
- const ibInfo = computed(() => {
- return userStore?.userInfo?.ibInfo || {}
- })
- const getInfoStatus5 = computed(() => {
- if (ibInfo.value.closeFunctions && ibInfo.value.closeFunctions.length > 0) {
- return ibInfo.value.closeFunctions.indexOf("8") !== -1
- }
- return false
- })
- const isFree = computed(() => {
- let flagVal = false
- const startTime1 = "2024/11/01 00:00:00"
- const timezone = 2 // 目标时区偏移小时数
- const now = new Date()
- const utc = now.getTime() + now.getTimezoneOffset() * 60000
- const targetTime = new Date(utc + timezone * 3600000).getTime()
- const start = new Date(startTime1).getTime()
- if (targetTime > start) flagVal = true
- return flagVal
- })
- // ---------- 方法 ----------
- const getFreeNumber = async () => {
- if (!isFree.value) return
- if (getInfoStatus5.value === false) {
- dialogFreeNumber.value = true
- }
- const res = await financialApi.remainingReductionNumber({})
- if (res.code === Code.StatusOK) {
- FreeNumber.value = res.data || 0
- } else {
- uni.showToast({ title: res.msg, icon: 'none' })
- }
- }
- const toHome = () => {
- uni.reLaunch({ url: "/pages/ib/index" })
- InfoStatus5.value = false
- }
- const isShowDialog = () => {
- const startTime1 = "2025/2/15 00:00:00"
- const timezone = 8
- const now = new Date()
- const utc = now.getTime() + now.getTimezoneOffset() * 60000
- const targetTime = new Date(utc + timezone * 3600000).getTime()
- const start = new Date(startTime1).getTime()
- if (targetTime > start) {
- dialogCheckInto.value = false
- // dialogCheckInto1.value = true
- } else {
- dialogCheckInto.value = true
- dialogCheckInto1.value = false
- }
- }
- const onAgree3Change = (e) => {
- form.agree3 = e.detail.value.length > 0
- }
- const onAgree2Change = (e) => {
- form.agree2 = e.detail.value.length > 0
- }
- const selectChange = () => {
- // 强制更新视图
- }
- // const openAddBankCard = (type) => {
- // if (type === "add_bankCard") {
- // if (ruleForm.bankInfo.length === 2) {
- // $pigeon.MessageConfirm(
- // t("Msg.UnionPayCARDS"),
- // t("Msg.SystemPrompt"),
- // t("Btn.Confirm"),
- // t("Btn.Cancel"),
- // async () => { },
- // () => { }
- // )
- // } else {
- // openType.value = "add_bankCard"
- // dialogInfoTradingAdd.value = true
- // }
- // } else if (type === "add_wireTransfer") {
- // if (ruleForm.bankWrit.length === 2) {
- // $pigeon.MessageConfirm(
- // t("Msg.WireTransfers"),
- // t("Msg.SystemPrompt"),
- // t("Btn.Confirm"),
- // t("Btn.Cancel"),
- // async () => { },
- // () => { }
- // )
- // } else {
- // openType.value = "add_wireTransfer"
- // dialogInfoTradingAdd.value = true
- // }
- // } else if (type === "add_CreditCard") {
- // openType.value = "add_CreditCard"
- // dialogInfoTradingAdd.value = true
- // } else if (type === "add_bankBlockchain") {
- // if (ruleForm.bankBlockchain.length === 2) {
- // $pigeon.MessageConfirm(
- // t("blockchain.item9"),
- // t("Msg.SystemPrompt"),
- // t("Btn.Confirm"),
- // t("Btn.Cancel"),
- // async () => { },
- // () => { }
- // )
- // } else {
- // openType.value = "add_bankBlockchain"
- // dialogInfoTradingAdd.value = true
- // }
- // }
- // }
- // 新增银行信息
- const addBankDialogRef = ref(null);
- function openAddBankCard(type) {
- switch (type) {
- case 'add_bankBlockchain':
- openAddCrypto()
- break;
- case 'add_bankCard':
- openAddUnionpay()
- break;
- case 'add_wireTransfer':
- openAddBank()
- break;
- case 'add_CreditCard':
- openAddCredit()
- break;
- }
- }
- function openAddCrypto() {
- const wallets = bankCardOptions.value || []
- // 1️⃣ 没有钱包
- if (wallets.length === 0) {
- addBankDialogRef.value?.open(4);
- return;
- }
- // 2️⃣ 是否存在未认证钱包
- const hasUnAuth = wallets.some(
- item => item.authStatus === 0 || item.approveStatus === 1
- );
- if (hasUnAuth) {
- uni.showToast({
- title: "加密钱包未认证",
- icon: "none"
- });
- return;
- }
- // 3️⃣ 是否达到上限
- if (wallets.length >= 2) {
- uni.showToast({
- title: t('blockchain.item9'),
- icon: "none"
- });
- return;
- }
- // 4️⃣ 正常打开
- addBankDialogRef.value?.open(4);
- }
- function openAddUnionpay() {
- const wallets = bankCardOptions.value || []
- if (wallets.length === 0) {
- addBankDialogRef.value?.open(1);
- return;
- }
- if (wallets.length >= 2) {
- uni.showToast({
- title: t('Msg.UnionPayCARDS'),
- icon: "none"
- });
- return;
- }
- addBankDialogRef.value?.open(1);
- }
- function openAddBank() {
- const wallets = bankCardOptions.value || []
- if (wallets.length === 0) {
- addBankDialogRef.value?.open(2);
- return;
- }
- if (wallets.length >= 2) {
- uni.showToast({
- title: t('Msg.WireTransfers'),
- icon: "none"
- });
- return;
- }
- addBankDialogRef.value?.open(2);
- }
- function openAddCredit() {
- const wallets = bankCardOptions.value || []
- if (wallets.length === 0) {
- addBankDialogRef.value?.open(3);
- return;
- }
- addBankDialogRef.value?.open(3);
- }
- // 新增银行信息成功回调
- const addSuccess = (e) => {
- getBankInfo();
- }
- const closeDiaAdd = () => {
- dialogInfoTradingAdd.value = false
- }
- const closeAdd = (val) => {
- dialogInfoTradingAdd.value = val
- }
- const confirmToReload = () => {
- dialogInfoTradingAdd.value = false
- getBankInfo()
- }
- const getBankInfo = async () => {
- const res = await financialApi.customBankList({})
- if (res.code === Code.StatusOK) {
- ruleForm.bankInfo = []
- ruleForm.bankWrit = []
- ruleForm.xykInfo = []
- ruleForm.bankBlockchain = []
- res.data.forEach(item => {
- if (item.type === 1) {
- item.customBankCode = item.bankCode
- item.bankCode = null
- ruleForm.bankInfo.push(item)
- } else if (item.type === 2) {
- item.customBankCode = item.bankCode
- item.bankCode = null
- ruleForm.bankWrit.push(item)
- } else if (item.type === 3) {
- item.customBankCode = item.bankCode
- item.bankCode = null
- item.expiryYearMonth = (item.expiryYear || "") + "/" + (item.expiryMonth || "")
- ruleForm.xykInfo.push(item)
- } else if (item.type === 4) {
- item.customBankCode = item.bankCode
- item.bankCode = null
- ruleForm.bankBlockchain.push(item)
- }
- if (channelData.value.type === "BANK" && item.defaultBank && item.type === 1) {
- Object.assign(form, item)
- myId.value = form.id
- }
- if (channelData.value.type === "BANK_TELEGRAPHIC" && item.defaultBank && item.type === 2) {
- Object.assign(form, item)
- myId.value = form.id
- }
- if (channelData.value.type === "CHANNEL_TYPE_CARD" && item.defaultBank && item.type === 3) {
- myId.value = item.id
- Object.assign(form, item)
- }
- if (channelData.value.type === "DIGITAL_CURRENCY" && item.defaultBank && item.type === 4 && item.authStatus != 0) {
- myId.value = item.id
- Object.assign(form, item)
- }
- })
- bankList.value = ref.data
- } else {
- uni.showToast({ title: res.msg, icon: 'none' })
- }
- }
- const onDigitalCurrencyChange = (val) => {
- const item = ruleForm.bankBlockchain.find(b => b.id === val)
- chooseBank(item.id)
- }
- const chooseBank = (id) => {
- const item = bankList.value.find(b => b.id === id)
- if (channelData.value.type == "DIGITAL_CURRENCY") {
- if (item.authStatus == 0) {
- showToast(t("Msg.item11"));
- return;
- }
- }
- console.log(234234);
- let codeTmp = "";
- if (form.bankCode) {
- codeTmp = form.bankCode;
- }
- Object.assign(form, item)
- form.agree2 = false
- form.agree3 = false
- if (channelData.value.type == "BANK_TELEGRAPHIC") {
- form.currency = "USD";
- if (codeTmp) {
- form.bankCode = codeTmp;
- }
- }
- }
- const openTips = async () => {
- if (channelData.value.type === "BANK_TELEGRAPHIC" && !myId.value) {
- $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
- return
- }
- if (channelData.value.type === "BANK" && !myId.value) {
- $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
- return
- }
- if (channelData.value.type === "CHANNEL_TYPE_CARD" && !myId.value) {
- $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
- return
- }
- if (channelData.value.type === "DIGITAL_CURRENCY" && !myId.value) {
- $pigeon.MessageWarning(t("blockchain.item11"))
- return
- }
- // 此处模拟表单验证,实际应调用 uni-forms 的 validate
- try {
- if (formRef.value) {
- const valid = await formRef.value.validate()
- if (dialogTipsIsShow.value) {
- dialogTips.value = true
- } else {
- submit("form")
- }
- }
- } catch (error) {
- if (error instanceof Array) {
- showToast(error[0].errorMessage);
- return
- } else {
- RES.value = error.msg;
- }
- }
- }
- const openTipsConfirm = () => {
- dialogCheckConfirm.value = false
- submit("form")
- }
- const closeTipsConfirm = () => {
- dialogTips.value = false
- dialogCheckConfirm.value = true
- }
- const closeDia = () => {
- resetForm()
- dialogCheck.value = false
- dialogVisible.value = false
- showTable()
- }
- const qrCode = async (serial) => {
- metaInfo.value = getMetaInfo()
- const res = await customApi.getWebsdkLink1({
- serial,
- metaInfo: metaInfo.value
- })
- if (res.code === Code.StatusOK) {
- text1.value = JSON.parse(res.data).url
- dialogKyc.value = true
- flag.value = false
- } else {
- flag.value = false
- }
- }
- const submit = async (formName) => {
- if (channelData.value.type === "BANK_TELEGRAPHIC" && !myId.value) {
- $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
- return
- }
- if (channelData.value.type === "BANK" && !myId.value) {
- $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
- return
- }
- if (channelData.value.type === "CHANNEL_TYPE_CARD" && !myId.value) {
- $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
- return
- }
- if (channelData.value.type === "DIGITAL_CURRENCY" && !myId.value) {
- $pigeon.MessageWarning(t("blockchain.item11"))
- return
- }
- // 模拟表单验证
- try {
- if (formRef.value) {
- await formRef.value.validate()
- if (flag.value) return
- flag.value = true
- dialogCheckWait.value = true
- form.amount = Number(form.amount)
- let res
- if (channelData.value.type === "DIGITAL_CURRENCY") {
- res = await financialApi.ibWithdrawAapplyDigitalCurrency(channelData.value.requestUrl, {
- // login: loginValue.value,
- payType: channelData.value.code,
- ...form
- })
- } else if (["CHANNEL_TYPE_WALLET", "UCARD_WALLET", "CHANNEL_TYPE_ALI_WALLET"].includes(channelData.value.type)) {
- res = await financialApi.ibWithdrawAapplyDigitalCurrency(channelData.value.requestUrl, {
- // login: loginValue.value,
- payType: channelData.value.code,
- ...form
- })
- } else if (channelData.value.type === "BANK" || channelData.value.type === "BANK_TELEGRAPHIC") {
- res = await financialApi.ibWithdrawApplyBank(channelData.value.requestUrl, {
- // login: loginValue.value,
- payType: channelData.value.code,
- ...form
- })
- } else if (channelData.value.type === "CHANNEL_TYPE_CARD") {
- res = await financialApi.WithdrawApplyBank(channelData.value.requestUrl, {
- // login: loginValue.value,
- payType: channelData.value.code,
- ...form
- })
- }
- if (res && res.code === Code.StatusOK) {
- dialogCheck.value = true
- dialogVisible.value = true
- // qrCode(res.data)
- flag.value = false
- } else {
- RES.value = res?.msg || "error"
- dialogCheck.value = true
- dialogVisible.value = false
- flag.value = false
- }
- dialogCheckWait.value = false
- }
- } catch (error) {
- if (error instanceof Array) {
- showToast(error[0].errorMessage);
- return
- } else {
- RES.value = error.msg;
- dialogCheck.value = true;
- dialogCheckWait.value = false;
- dialogVisible.value = false;
- flag.value = false;
- }
- }
- }
- const Initialize = () => {
- loginValue.value = ""
- isStep3.value = true
- step2.value = false
- step3.value = false
- showTable()
- }
- const isShowStep3 = (row) => {
- if (row.bankValid && isChannel.value) {
- getBankList(row)
- isChannel.value = false
- channelData.value = row
- mAmount.minAmount = row.minAmount
- mAmount.maxAmount = row.maxAmount
- } else {
- bankDate.value = []
- channelData.value = row
- mAmount.minAmount = row.minAmount
- mAmount.maxAmount = row.maxAmount
- }
- if (row.code === "UNION_PAY_TELEGRAPHIC") {
- WireTransferAccount.value = JSON.parse(row.property)
- }
- if (["BANK", "BANK_TELEGRAPHIC", "CHANNEL_TYPE_CARD", "DIGITAL_CURRENCY"].includes(row.type)) {
- getBankInfo()
- step3_bank_cur.value = "bank"
- form.login = loginValue.value
- form.payType = row.code
- bankPayType.value = row.code
- }
- // 重置 tableData
- tableData.International_Transfer = []
- tableData.China_UnionPay = []
- tableData.Digital_Currency = []
- tableData.CHANNEL_TYPE_CARD = []
- tableData.Electronic_Wallet = []
- tableData.CHANNEL_TYPE_ALI_WALLET = []
- tableData.UCARD_WALLET = []
- if (row.type === "BANK_TELEGRAPHIC") tableData.International_Transfer[0] = row
- if (row.type === "BANK") tableData.China_UnionPay[0] = row
- if (row.type === "DIGITAL_CURRENCY") tableData.Digital_Currency[0] = row
- if (row.type === "CHANNEL_TYPE_WALLET") tableData.Electronic_Wallet[0] = row
- if (row.type === "UCARD_WALLET") tableData.UCARD_WALLET[0] = row
- if (row.type === "CHANNEL_TYPE_CARD") tableData.CHANNEL_TYPE_CARD[0] = row
- if (row.type === "CHANNEL_TYPE_ALI_WALLET") tableData.CHANNEL_TYPE_ALI_WALLET[0] = row
- introduce.introduce = row.introduce
- introduce.enIntroduce = row.enIntroduce
- loading.value = false
- }
- const showTable = () => {
- resetForm()
- myId.value = null
- isChannel.value = true
- getDepositList()
- // 重置表单
- form.currency = "USD"
- // 其他重置...
- }
- const getDepositList = async () => {
- pictLoading.value = true
- tableData.International_Transfer = []
- tableData.China_UnionPay = []
- tableData.Digital_Currency = []
- tableData.CHANNEL_TYPE_CARD = []
- tableData.Electronic_Wallet = []
- tableData.CHANNEL_TYPE_ALI_WALLET = []
- tableData.UCARD_WALLET = []
- const res = await financialApi.RemitChannelList({})
- if (res.code === Code.StatusOK) {
- res.data.forEach(item => {
- if (item.type === "BANK_TELEGRAPHIC") tableData.International_Transfer.push(item)
- if (item.type === "BANK") tableData.China_UnionPay.push(item)
- if (item.type === "DIGITAL_CURRENCY") tableData.Digital_Currency.push(item)
- if (item.type === "CHANNEL_TYPE_WALLET") tableData.Electronic_Wallet.push(item)
- if (item.type === "UCARD_WALLET") tableData.UCARD_WALLET.push(item)
- if (item.type === "CHANNEL_TYPE_CARD") tableData.CHANNEL_TYPE_CARD.push(item)
- if (item.type === "CHANNEL_TYPE_ALI_WALLET") tableData.CHANNEL_TYPE_ALI_WALLET.push(item)
- })
- pictLoading.value = false
- } else {
- uni.showToast({ title: res.msg, icon: 'none' })
- pictLoading.value = false
- }
- }
- const getBankList = async (row) => {
- const res = await financialApi.BankList({ channelCode: row.code })
- if (res.code === Code.StatusOK) {
- const bank = res.data
- const data = []
- bank.forEach(j => {
- if (!j.minAmount && j.minAmount !== 0) j.minAmount = row.minAmount
- if (!j.maxAmount && j.maxAmount !== 0) j.maxAmount = row.maxAmount
- j.payType = row.code
- data.push(j)
- })
- bankDate.value = data
- } else {
- uni.showToast({ title: res.msg, icon: 'none' })
- }
- }
- const cancelBank = () => {
- dialogNewBank.value = false
- // 重置 params 表单
- Object.assign(params, {
- bankCardNum: "",
- bankUname: "",
- bankName: "",
- bankBranchName: "",
- bankAddr: "",
- swiftCode: "",
- bankFront: "",
- bankBack: "",
- defaultBank: false
- })
- }
- // 新改内容
- // userStore.paymentChannel.value
- // userStore.channelList.value
- const channel = computed(() => userStore.paymentChannel)
- const channelList = computed(() => userStore.channelList)
- const channelListOptions = ref([])
- const channelId = ref(null)
- const loading = ref(false)
- const allTabs = computed(() => {
- return {
- "International_Transfer": t('Custom.Deposit.Channel1'),
- "China_UnionPay": t('Custom.Deposit.Channel2'),
- "Digital_Currency": t('Custom.Deposit.Channel3'),
- "Electronic_Wallet": t('Custom.Deposit.Channel4'),
- "CHANNEL_TYPE_CARD": t('PersonalManagement.Label.CreditCard'),
- "CHANNEL_TYPE_ALI_WALLET": t('Label.Ali'),
- "UCARD_WALLET": t('card.title'),
- }
- })
- // 固定顺序(和上面 allTabs 完全一致)
- const tabOrder = [
- "International_Transfer",
- "China_UnionPay",
- "Digital_Currency",
- "Electronic_Wallet",
- "CHANNEL_TYPE_CARD",
- "CHANNEL_TYPE_ALI_WALLET",
- "UCARD_WALLET"
- ]
- function formatChannels(data) {
- const result = []
- // 按照固定顺序遍历,保证顺序不乱
- for (const key of tabOrder) {
- const list = data[key] || []
- if (list.length) {
- // 加入分类标题
- result.push({
- text: allTabs.value[key],
- value: key,
- disable: true
- })
- // 加入子项
- list.forEach(item => {
- result.push({
- ...item,
- text: item.name,
- value: item.code
- })
- })
- }
- }
- return result
- }
- // ---------- 生命周期 ----------
- onMounted(() => {
- loading.value = true
- if (channelList.value) {
- channelListOptions.value = formatChannels(channelList.value)
- }
- channelId.value = channel.value
- getDateList()
- // getDepositList()
- getFreeNumber()
- isShowDialog()
- if (getInfoStatus5.value) {
- InfoStatus5.value = true
- return
- }
- })
- onUnmounted(() => {
- userStore.savePaymentChannel('')
- userStore.saveChannelList('')
- })
- watch(channelId, async (newVal) => {
- if (newVal) {
- showTable()
- let row = channelListOptions.value.find(item => item.code == newVal)
- isShowStep3(row)
- setTipsAmount()
- }
- });
- // 监听 value 变化
- // 监听 form.amount 变化
- watch(() => form.amount, (newVal) => {
- if (newVal && channelData.value.rate) {
- form.amount1 = (newVal * channelData.value.rate).toFixed(2)
- }
- })
- </script>
- <style lang="scss" scoped>
- @import "@/uni.scss";
- .tips{
- color: var(--bs-emphasis-color);
- }
- .custom-withdraw {
- width: px2rpx(566);
- flex-shrink: 0;
- .box {
- margin-bottom: px2rpx(20);
- .b-card {
- border: 1px solid var(--bs-border-color);
- .card-top {
- .tit {
- font-size: px2rpx(16);
- font-weight: 600;
- margin-bottom: px2rpx(16);
- display: flex;
- align-items: center;
- color: var(--bs-heading-color);
- position: relative;
- padding-left: 20px;
- &:after {
- content: '';
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- width: 0;
- height: 0;
- border-top: 6px solid transparent;
- border-bottom: 6px solid transparent;
- border-left: 8px solid currentColor;
- }
- .iconfont {
- margin-right: px2rpx(8);
- color: var(--color-primary);
- font-size: px2rpx(18);
- }
- }
- }
- .channelType {
- font-size: px2rpx(15);
- font-weight: 600;
- margin: px2rpx(24) 0 px2rpx(12);
- color: var(--color-navy-700);
- padding-left: px2rpx(8);
- border-left: px2rpx(4) solid var(--color-primary);
- }
- }
- }
- .reselect-btn {
- margin-top: px2rpx(20);
- display: flex;
- justify-content: flex-end;
- }
- .s-btn {
- &.reselect {
- background-color: var(--color-zinc-100);
- color: var(--color-navy-700);
- border: none;
- font-size: px2rpx(14);
- padding: px2rpx(8) px2rpx(20);
- border-radius: px2rpx(8);
- &:active {
- background-color: var(--color-zinc-200);
- }
- }
- &[type="primary"] {
- width: 100%;
- height: px2rpx(48);
- background-color: #cf1322;
- color: var(--bs-emphasis-color);
- border-radius: px2rpx(12);
- font-size: px2rpx(16);
- font-weight: 600;
- display: flex;
- align-items: center;
- justify-content: center;
- border: none;
- margin-top: px2rpx(30);
- transition: all 0.2s;
- &:active {
- transform: scale(0.98);
- background-color: #cf1322;
- }
- }
- }
- .add-back {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: px2rpx(12);
- padding: px2rpx(12) px2rpx(16);
- text {
- font-size: px2rpx(14);
- color: var(--color-navy-700);
- font-weight: 500;
- }
- .add-btn {
- color: var(--color-primary);
- font-weight: 600;
- text-decoration: underline;
- &:active {
- opacity: 0.7;
- }
- }
- }
- .proof {
- margin-top: px2rpx(8);
- border: px2rpx(1) dashed var(--color-zinc-300);
- border-radius: px2rpx(8);
- padding: px2rpx(8);
- display: flex;
- justify-content: center;
- align-items: center;
- background: var(--color-zinc-50);
- .state {
- padding: px2rpx(4) px2rpx(12);
- border-radius: px2rpx(4);
- font-size: px2rpx(12);
- font-weight: bold;
- }
- }
- .step3-attention {
- // background: var(--color-error-50, #fff1f0);
- border-radius: px2rpx(12);
- margin-bottom: px2rpx(20);
- .tips {
- line-height: 1.8;
- font-size: px2rpx(12);
- color: var(--bs-heading-color);
- background-color: rgba(var(--bs-body-bg-rgb), 1) !important;
- padding: px2rpx(12);
- border-radius: px2rpx(4);
- border-left: px2rpx(2) solid #cf1322;
- .title {
- font-weight: 600;
- margin-bottom: px2rpx(6);
- color: var(--bs-heading-color);
- }
- }
- .attention {
- font-size: px2rpx(14);
- // color: var(--color-error-600, #cf1322);
- line-height: 1.6;
- }
- .btn-bottom {
- margin-top: px2rpx(20);
- display: flex;
- justify-content: center;
- .btn {
- background: var(--color-error-600, #cf1322);
- color: var(--bs-emphasis-color);
- padding: px2rpx(10) px2rpx(48);
- border-radius: px2rpx(24);
- font-size: px2rpx(15);
- font-weight: 700;
- box-shadow: 0 px2rpx(4) px2rpx(10) rgba(207, 19, 34, 0.2);
- transition: all 0.2s;
- &:active {
- transform: scale(0.96);
- opacity: 0.8;
- }
- }
- }
- }
- // :deep(.base-info-form) {
- // .uni-row1 {
- // .uni-col {
- // padding: 0 px2rpx(10) !important;
- // }
- // .uni-forms-item {
- // min-height: px2rpx(36);
- // margin-bottom: px2rpx(28);
- // }
- // .uni-easyinput__content-input {
- // height: px2rpx(35) !important;
- // }
- // }
- // }
- @keyframes rotate {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
- }
- }
- .agree {
- margin-top: px2rpx(24);
- display: flex;
- align-items: flex-start;
- .checkbox {
- display: flex;
- align-items: flex-start;
- gap: px2rpx(8);
- :deep(uni-checkbox .uni-checkbox-input) {
- border-radius: px2rpx(4);
- width: px2rpx(18);
- height: px2rpx(18);
- }
- text {
- font-size: px2rpx(13);
- color: var(--color-zinc-500);
- line-height: 1.5;
- }
- }
- }
- @media (max-width: 992px) {
- .custom-withdraw {
- width: 100%;
- margin-top: px2rpx(20);
- }
- .custom-deposit-container {
- display: flex;
- gap: px2rpx(30);
- flex-wrap: wrap;
- }
- }
- .amount-box {
- display: flex;
- align-items: center;
- gap: px2rpx(12);
- .amount-input {
- flex: 1;
- }
- .btn {
- margin-bottom: px2rpx(22);
- }
- }
- .amount-box1 {
- align-items: flex-start;
- .btn {
- margin-top: px2rpx(0);
- }
- }
- .custom-deposit-container {
- width: 100%;
- display: flex;
- gap: px2rpx(60);
- justify-content: space-between;
- }
- @media (max-width: 992px) {
- .custom-deposit {
- width: 100%;
- margin-top: px2rpx(20);
- }
- .custom-deposit-container {
- display: flex;
- gap: px2rpx(30);
- flex-wrap: wrap;
- }
- }
- </style>
|