deposit-select.vue 103 KB

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