deposit-select.vue 102 KB

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