deposit.vue 98 KB

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