deposit-select.vue 103 KB

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