deposit.vue 101 KB

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