deposit.vue 97 KB

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