withdraw-select.vue 70 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788
  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 ">
  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_ib.item5'" />
  9. </view>
  10. </view>
  11. </view>
  12. <view class="col-lg-12">
  13. <view class="clearfix">
  14. <view class="card">
  15. <view class="card-header">
  16. <uni-loading v-if="currentTableData.length == 0" />
  17. <template v-if="currentTableData.length > 0">
  18. <view class="col-12 mb-3">
  19. <view
  20. class="d-flex flex-wrap gap-3 align-items-center justify-content-between mb-3">
  21. <h5 class="mb-0" v-t="'Custom.Deposit.Title22'" />
  22. </view>
  23. </view>
  24. <cwg-asset-tabs v-if="tabsConfig.length > 0" v-model="activeTab"
  25. :tabs="tabsConfig" />
  26. </template>
  27. </view>
  28. <view class="card-body pt-0" v-if="currentTableData.length > 0">
  29. <view class="tab-content">
  30. <view>
  31. <PaymentMethodsList :list="currentTableData" @select="isShowStep3" />
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <template v-if="step5">
  41. <cwg-header :title="t('Home.page_ib.item5')" />
  42. <view class="custom-withdraw">
  43. <!-- 步骤2:支付通道列表 -->
  44. <view class="box box-step2">
  45. <view class="b-card">
  46. <view class="card-top">
  47. <text class="tit">{{ t('Custom.Deposit.Title22')
  48. }}</text>
  49. <cwg-asset-tabs v-if="tabsConfig.length > 0" v-model="activeTab" :tabs="tabsConfig" />
  50. <uni-loading v-if="currentTableData.length == 0" />
  51. <view v-if="currentTableData.length">
  52. <PaymentMethodsList :list="currentTableData" @select="isShowStep3" />
  53. </view>
  54. <view v-if="step3" class="reselect-btn">
  55. <button class="s-btn reselect" type="primary" @click="showTable">{{
  56. t('Custom.Deposit.Reselect')
  57. }}</button>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. <!-- 步骤3:填写出金信息 -->
  63. <view class="box box-step3" v-if="step3">
  64. <view class="b-card">
  65. <view class="card-top">
  66. <!-- 注意事项 -->
  67. <view v-if="!isStep3" class="step3-attention">
  68. <view class="tips" v-if="(introduce.introduce || introduce.enIntroduce)">
  69. <view>
  70. <cwg-rich-text class="attention"
  71. :nodes="isZh ? introduce.introduce : introduce.enIntroduce" />
  72. </view>
  73. </view>
  74. <view class="btn-bottom">
  75. <text class="btn crm-cursor" @click="isStep3 = true">{{ t('Btn.Confirm') }}</text>
  76. </view>
  77. </view>
  78. <!-- 表单 -->
  79. <uni-forms ref="formRef" :model="form" :rules="rules" label-width="200" label-position="top"
  80. v-if="isStep3" class="form base-info-form" validate-trigger="submit">
  81. <uni-row class="demo-uni-row uni-row1">
  82. <!-- 银行选择区域(当有银行列表时) -->
  83. <uni-col :span="24" v-if="bankDate.length && isStep3">
  84. <view class="tit">
  85. <text>{{ t('Custom.Withdraw.Title5') }}</text>
  86. </view>
  87. </uni-col>
  88. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  89. v-if="bankDate.length && isStep3">
  90. <uni-forms-item name="bankCode">
  91. <cwg-combox filterable v-model:value="form.bankCode" :options="bankOptions"
  92. :placeholder="t('placeholder.choose')" />
  93. </uni-forms-item>
  94. </uni-col>
  95. <!-- 电子钱包标题 -->
  96. <uni-col :span="24"
  97. v-if="['CHANNEL_TYPE_WALLET', 'CHANNEL_TYPE_ALI_WALLET'].includes(channelData.type)">
  98. <view class="tit">
  99. <text>{{ getWalletLabel }}</text>
  100. </view>
  101. </uni-col>
  102. <!-- 电子钱包地址输入 -->
  103. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  104. v-if="(channelData.type == 'CHANNEL_TYPE_WALLET' || channelData.type == 'CHANNEL_TYPE_ALI_WALLET') && isStep3">
  105. <uni-forms-item name="address">
  106. <uni-easyinput v-model="form.address" :placeholder="t('placeholder.input')"
  107. autocomplete="off" />
  108. </uni-forms-item>
  109. </uni-col>
  110. <!-- 数字货币区域 -->
  111. <uni-col :span="24" class="card-tit"
  112. v-if="channelData.type == 'DIGITAL_CURRENCY' && isStep3">
  113. <div
  114. style="display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;">
  115. <view class="tit">
  116. <text>{{ t('Custom.Withdraw.Title6') }}</text>
  117. </view>
  118. <div class="add-back">
  119. <text>{{ t('blockchain.item10') }}</text>
  120. <text class="add-btn crm-cursor"
  121. @click="openAddBankCard('add_bankBlockchain')">
  122. {{ t('Custom.Withdraw.addBank1') }}
  123. </text>
  124. </div>
  125. </div>
  126. </uni-col>
  127. <uni-col :span="24" v-if="channelData.type == 'DIGITAL_CURRENCY' && isStep3">
  128. <uni-forms-item>
  129. <cwg-combox filterable v-model:value="myId" :options="digitalOptions"
  130. :placeholder="t('placeholder.choose')" @change="onDigitalCurrencyChange"
  131. :disabled="!ruleForm.bankBlockchain.length" />
  132. </uni-forms-item>
  133. </uni-col>
  134. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  135. v-if="channelData.type == 'DIGITAL_CURRENCY' && isStep3">
  136. <uni-forms-item :label="t('blockchain.item3')">
  137. <uni-easyinput disabled v-model="form.addressName" />
  138. </uni-forms-item>
  139. </uni-col>
  140. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  141. v-if="channelData.type == 'DIGITAL_CURRENCY' && isStep3">
  142. <uni-forms-item :label="t('blockchain.item4')">
  143. <uni-easyinput disabled v-model="form.address" />
  144. </uni-forms-item>
  145. </uni-col>
  146. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  147. v-if="channelData.type == 'DIGITAL_CURRENCY' && isStep3 && form.addressProve">
  148. <uni-forms-item :label="t('blockchain.item5')">
  149. <div style="height: 100%; width: 100%" v-if="form.addressProve">
  150. <cwg-link type="pdf1"
  151. v-if="form.addressProve && (form.addressProve.slice(-3).toLowerCase() === 'pdf')"
  152. :url="imgUrl + form.addressProve" target="_blank"
  153. style="text-decoration: none; min-width: auto; width: auto; color: #ffffff; padding: 5px 10px;"
  154. class="state crm_state_blue">
  155. PDF
  156. </cwg-link>
  157. <image v-else style="width: 50px; height: 50px"
  158. :src="imgUrl + form.addressProve" mode="aspectFill"
  159. @click="previewImage(imgUrl + form.addressProve)" />
  160. </div>
  161. </uni-forms-item>
  162. </uni-col>
  163. <uni-col :span="24" v-if="channelData.type == 'DIGITAL_CURRENCY' && isStep3">
  164. <view class="tit" style="margin: 0 0 20px">
  165. <i class="iconfont iconi"></i>
  166. <text>{{ t('Custom.Deposit.Des') }}</text>
  167. </view>
  168. </uni-col>
  169. <!-- 银行卡/电汇/信用卡区域 -->
  170. <uni-col :span="24" class="card-tit"
  171. v-if="isStep3 && (channelData.type == 'BANK_TELEGRAPHIC' || channelData.type == 'BANK' || channelData.type == 'CHANNEL_TYPE_CARD')">
  172. <div
  173. style="display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;">
  174. <view class="tit">
  175. <text>{{ t('Custom.Withdraw.Title4') }}</text>
  176. </view>
  177. <div class="add-back mb-3">
  178. <text v-if="channelData.type == 'BANK_TELEGRAPHIC'">{{
  179. t('Custom.Withdraw.addWire') }}</text>
  180. <text v-if="channelData.type == 'BANK_TELEGRAPHIC'"
  181. class="add-btn crm-cursor"
  182. @click="openAddBankCard('add_wireTransfer')">
  183. {{ t('Custom.Withdraw.addBank1') }}
  184. </text>
  185. <text v-if="channelData.type == 'BANK'">{{
  186. t('Custom.Withdraw.addBank')
  187. }}</text>
  188. <text v-if="channelData.type == 'BANK'" class="add-btn crm-cursor"
  189. @click="openAddBankCard('add_bankCard')">
  190. {{ t('Custom.Withdraw.addBank1') }}
  191. </text>
  192. <text v-if="channelData.type == 'CHANNEL_TYPE_CARD'">{{
  193. t('PersonalManagement.Label.addCreditCard') }}</text>
  194. <text v-if="channelData.type == 'CHANNEL_TYPE_CARD'"
  195. class="add-btn crm-cursor"
  196. @click="openAddBankCard('add_CreditCard')">
  197. {{ t('Custom.Withdraw.addBank1') }}
  198. </text>
  199. </div>
  200. </div>
  201. </uni-col>
  202. <!-- 网银支付信息(BANK) -->
  203. <uni-col :span="24" v-if="channelData.type == 'BANK' && isStep3">
  204. <uni-forms-item>
  205. <cwg-combox v-model:value="myId" :options="bankCardOptions"
  206. :placeholder="t('placeholder.choose')" @change="chooseBank" />
  207. </uni-forms-item>
  208. </uni-col>
  209. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  210. v-if="channelData.type == 'BANK' && isStep3">
  211. <uni-forms-item :label="t('Custom.Withdraw.UserName')">
  212. <uni-easyinput disabled v-model="form.bankUname" />
  213. </uni-forms-item>
  214. </uni-col>
  215. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  216. v-if="channelData.type == 'BANK' && isStep3">
  217. <uni-forms-item :label="t('Custom.Withdraw.BankCardNum')">
  218. <uni-easyinput disabled v-model="form.bankCardNum" />
  219. </uni-forms-item>
  220. </uni-col>
  221. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  222. v-if="channelData.type == 'BANK' && isStep3">
  223. <uni-forms-item :label="t('Custom.Withdraw.BankName')">
  224. <uni-easyinput disabled v-model="form.bankName" />
  225. </uni-forms-item>
  226. </uni-col>
  227. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  228. v-if="channelData.type == 'BANK' && isStep3">
  229. <uni-forms-item :label="t('Custom.Withdraw.bankBranchName')">
  230. <uni-easyinput disabled v-model="form.bankBranchName" />
  231. </uni-forms-item>
  232. </uni-col>
  233. <!-- 信用卡信息 -->
  234. <uni-col :span="24" v-if="channelData.type == 'CHANNEL_TYPE_CARD' && isStep3">
  235. <uni-forms-item>
  236. <cwg-combox v-model:value="myId" :options="bankCardOptions"
  237. :placeholder="t('placeholder.choose')" @change="chooseBank" />
  238. </uni-forms-item>
  239. </uni-col>
  240. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  241. v-if="channelData.type == 'CHANNEL_TYPE_CARD' && isStep3">
  242. <uni-forms-item :label="t('PersonalManagement.Label.CreditCardAccountName')">
  243. <uni-easyinput disabled v-model="form.bankUname" />
  244. </uni-forms-item>
  245. </uni-col>
  246. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  247. v-if="channelData.type == 'CHANNEL_TYPE_CARD' && isStep3">
  248. <uni-forms-item :label="t('PersonalManagement.Label.CreditCardAccount')">
  249. <uni-easyinput disabled v-model="form.bankCardNum" />
  250. </uni-forms-item>
  251. </uni-col>
  252. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  253. v-if="channelData.type == 'CHANNEL_TYPE_CARD' && isStep3">
  254. <uni-forms-item label="CVV">
  255. <uni-easyinput disabled v-model="form.cvv" />
  256. </uni-forms-item>
  257. </uni-col>
  258. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  259. v-if="channelData.type == 'CHANNEL_TYPE_CARD' && isStep3">
  260. <uni-forms-item :label="t('PersonalManagement.Label.ExpirationYear')">
  261. <uni-easyinput disabled v-model="form.expiryYearMonth" />
  262. </uni-forms-item>
  263. </uni-col>
  264. <!-- 电汇信息 -->
  265. <uni-col :span="24" v-if="channelData.type == 'BANK_TELEGRAPHIC' && isStep3">
  266. <uni-forms-item>
  267. <cwg-combox v-model:value="myId" :options="bankCardOptions"
  268. :placeholder="t('placeholder.choose')" @change="chooseBank" />
  269. </uni-forms-item>
  270. </uni-col>
  271. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  272. v-if="channelData.type == 'BANK_TELEGRAPHIC' && isStep3">
  273. <uni-forms-item :label="t('Custom.Withdraw.UserName')">
  274. <uni-easyinput disabled v-model="form.bankUname" />
  275. </uni-forms-item>
  276. </uni-col>
  277. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  278. v-if="channelData.type == 'BANK_TELEGRAPHIC' && isStep3">
  279. <uni-forms-item :label="t('Custom.Withdraw.BankCardNum')">
  280. <uni-easyinput disabled v-model="form.bankCardNum" />
  281. </uni-forms-item>
  282. </uni-col>
  283. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  284. v-if="channelData.type == 'BANK_TELEGRAPHIC' && isStep3">
  285. <uni-forms-item :label="t('Custom.Withdraw.BankName')">
  286. <uni-easyinput disabled v-model="form.bankName" />
  287. </uni-forms-item>
  288. </uni-col>
  289. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  290. v-if="channelData.type == 'BANK_TELEGRAPHIC' && isStep3">
  291. <uni-forms-item :label="t('Custom.Withdraw.swiftCode')">
  292. <uni-easyinput disabled v-model="form.swiftCode" />
  293. </uni-forms-item>
  294. </uni-col>
  295. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  296. v-if="channelData.type == 'BANK_TELEGRAPHIC' && isStep3">
  297. <uni-forms-item :label="t('Custom.Withdraw.bankCode')">
  298. <uni-easyinput disabled v-model="form.customBankCode" />
  299. </uni-forms-item>
  300. </uni-col>
  301. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  302. v-if="channelData.type == 'BANK_TELEGRAPHIC' && isStep3">
  303. <uni-forms-item :label="t('Custom.Withdraw.bankAddr')">
  304. <uni-easyinput disabled v-model="form.bankAddr" />
  305. </uni-forms-item>
  306. </uni-col>
  307. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  308. v-if="channelData.type == 'BANK_TELEGRAPHIC' && isStep3">
  309. <!-- Account Agency NO -->
  310. <uni-forms-item :label="'Account Agency NO'" name="agencyNo">
  311. <uni-easyinput v-model="form.agencyNo" />
  312. </uni-forms-item>
  313. </uni-col>
  314. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  315. v-if="channelData.type == 'BANK_TELEGRAPHIC' && isStep3 && channelData.code == 'PAY_RETAILER_REMIT_PAY_KEY_BRW'">
  316. <uni-forms-item label="CPF" name="cpf">
  317. <uni-easyinput v-model="form.cpf" />
  318. </uni-forms-item>
  319. </uni-col>
  320. <!-- 电汇金额区域 -->
  321. <uni-col :span="24" v-if="channelData.type == 'BANK_TELEGRAPHIC' && isStep3">
  322. <view class="tit">
  323. <text>{{ t('Custom.Withdraw.Title3') }}</text>
  324. </view>
  325. </uni-col>
  326. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  327. v-if="channelData.type == 'BANK_TELEGRAPHIC' && isStep3">
  328. <uni-forms-item :label="t('Custom.Withdraw.CurrencyType')" name="currency">
  329. <cwg-combox filterable v-model:value="form.currency"
  330. :options="[{ text: 'USD', value: 'USD' }]" />
  331. </uni-forms-item>
  332. </uni-col>
  333. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  334. v-if="channelData.type == 'BANK_TELEGRAPHIC' && isStep3">
  335. <uni-forms-item :label="t('Custom.Withdraw.amount')" name="amount"
  336. :error-message="amountErrorMessage">
  337. <uni-easyinput v-model.trim="form.amount" type="number"
  338. @blur="validateAmount" />
  339. </uni-forms-item>
  340. </uni-col>
  341. <!-- 非电汇的金额区域 -->
  342. <uni-col :span="24" v-if="channelData.type != 'BANK_TELEGRAPHIC' && isStep3">
  343. <view class="tit">
  344. <text>{{ t('Custom.Withdraw.Title3') + '(' + channelData.currency + ')'
  345. }}</text>
  346. </view>
  347. </uni-col>
  348. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"
  349. v-if="channelData.type != 'BANK_TELEGRAPHIC' && isStep3">
  350. <uni-forms-item name="amount" :error-message="amountErrorMessage">
  351. <uni-easyinput v-model.trim="form.amount" autocomplete="off" type="number"
  352. @blur="validateAmount" />
  353. </uni-forms-item>
  354. </uni-col>
  355. </uni-row>
  356. <view class="agree">
  357. <uni-forms-item name="agree2">
  358. <checkbox-group :value="form.agree2 ? ['1'] : []" @change="onAgree2Change">
  359. <label class="checkbox">
  360. <checkbox value="1" :checked="form.agree2" />
  361. <view class="crm-cursor"
  362. style="text-decoration: underline; display: inline-block; margin-left: 10px;"
  363. @click.stop="dialogCheckTip = true">
  364. {{ t('Custom.Withdraw.Des') }}
  365. </view>
  366. </label>
  367. </checkbox-group>
  368. </uni-forms-item>
  369. </view>
  370. <view class="agree" v-if="dialogTipsIsShow">
  371. <uni-forms-item name="agree3">
  372. <checkbox-group :value="form.agree3 ? ['1'] : []" @change="onAgree3Change">
  373. <label class="checkbox">
  374. <checkbox value="1" :checked="form.agree3" />
  375. <view class="crm-cursor"
  376. style="display: inline-block; margin-left: 10px;">
  377. * {{ t('Custom.Withdraw.item1') }}<br />
  378. {{ t('Custom.Withdraw.item1_1') }}<br />
  379. {{ t('Custom.Withdraw.item1_2') }}
  380. </view>
  381. </label>
  382. </checkbox-group>
  383. </uni-forms-item>
  384. </view>
  385. <button class="s-btn" type="primary" @click="openTips">{{ t('Btn.Submit') }}</button>
  386. </uni-forms>
  387. </view>
  388. </view>
  389. </view>
  390. </view>
  391. </template>
  392. <!-- 提示弹窗 -->
  393. <cwg-tips-popup v-model:visible="dialogTips" content="Custom.Withdraw.item2" @confirm="closeTipsConfirm" />
  394. <cwg-tips-popup v-model:visible="dialogCheckInto" content="ApplicationDialog.Des42_1"
  395. title="ApplicationDialog.Des41_1" @confirm="closeTipsConfirm" />
  396. <cwg-tips-popup v-model:visible="dialogCheckInto1" content="ApplicationDialog.Des42"
  397. title="ApplicationDialog.Des41" @confirm="closeTipsConfirm" />
  398. <!-- 弹窗:确认信息 -->
  399. <cwg-check-confirm-popup v-model:visible="dialogCheckConfirm" :title="t('Home.page_customer.item3')"
  400. :channelData="channelData" :code="code" :selectCodes="selectCodes" :params="form" :FreeNumber="FreeNumber"
  401. :userName="userName" :dialogCheckConfirm_form="dialogCheckConfirm_form" :login="loginValue" type="IB"
  402. @confirm="submit" />
  403. <!-- 协议弹窗 -->
  404. <cwg-tips-popup v-model:visible="dialogCheckTip"
  405. :introduce="isZh ? introduce.introduce : introduce.enIntroduce" />
  406. <!-- 等待弹窗 -->
  407. <cwg-wait-popup v-model:visible="dialogCheckWait" type="center" :mask-click="false" :showFooters="false" />
  408. <!-- 最后失败弹窗 -->
  409. <cwg-error-popup v-model:visible="dialogError" @confirm="closeDia" :responseMessage="RES" />
  410. <!-- 最后成功弹窗 -->
  411. <cwg-success-popup v-model:visible="dialogSuccess" @confirm="closeDia" />
  412. <!-- 功能关闭弹出 -->
  413. <cwg-function-disabled-popup v-model:visible="InfoStatus5" :showFooters="true" @confirm="toHome" />
  414. <!-- kyc成功弹窗 -->
  415. <cwg-kyc-popup v-model:visible="dialogKyc" :qrText="text1" />
  416. <!--验证码-->
  417. <!-- 新增银行弹窗 -->
  418. <add-bank-dialog ref="addBankDialogRef" @success="addSuccess" />
  419. </cwg-page-wrapper>
  420. </template>
  421. <script setup>
  422. import { ref, reactive, computed, onMounted, nextTick, watch } from 'vue'
  423. import { onLoad } from '@dcloudio/uni-app'
  424. import { showToast } from "@/utils/toast";
  425. import useUserStore from '@/stores/use-user-store'
  426. import { customApi } from "@/service/custom"
  427. import { financialApi } from "@/service/financial"
  428. import Config from "@/config/index"
  429. import AddBankDialog from '@/components/AddBankDialog.vue';
  430. import CwgCheckConfirmPopup from '../customer/components/WithdrawCheckConfirmPopup.vue'
  431. import CwgKycPopup from '../customer/components/KycPopup.vue'
  432. import PaymentMethodsList from '../customer/components/PaymentMethodsList.vue'
  433. import { useI18n } from 'vue-i18n'
  434. import { useFilters } from '@/composables/useFilters'
  435. const { numberDecimal } = useFilters()
  436. const { t, locale } = useI18n()
  437. const { Code, Host80 } = Config
  438. import useRouter from '@/hooks/useRouter'
  439. const router = useRouter()
  440. const isZh = computed(() => ['cn', 'zhHant'].includes(locale.value))
  441. // ---------- 辅助函数:替代原 this.Session ----------
  442. // 弹窗辅助(替代原 this.$pigeon)
  443. const $pigeon = {
  444. MessageError(msg) {
  445. uni.showToast({ title: msg, icon: 'none' })
  446. },
  447. MessageWarning(msg) {
  448. uni.showToast({ title: msg, icon: 'none' })
  449. },
  450. MessageConfirm(content, title, confirmText, cancelText, confirmCallback, cancelCallback) {
  451. uni.showModal({
  452. title,
  453. content,
  454. confirmText,
  455. cancelText,
  456. success(res) {
  457. if (res.confirm) confirmCallback && confirmCallback()
  458. else cancelCallback && cancelCallback()
  459. }
  460. })
  461. }
  462. }
  463. // 获取 metaInfo(用于二维码)
  464. const getMetaInfo = () => {
  465. const systemInfo = uni.getSystemInfoSync()
  466. return {
  467. userAgent: systemInfo.platform,
  468. screenWidth: systemInfo.screenWidth,
  469. screenHeight: systemInfo.screenHeight,
  470. deviceType: 'h5'
  471. }
  472. }
  473. // ---------- 响应式数据(完全保留原 data 结构) ----------
  474. const dialogFreeNumber = ref(false)
  475. const FreeNumber = ref(0)
  476. const InfoStatus5 = ref(false)
  477. const metaInfo = ref(null)
  478. const text1 = ref("")
  479. const flag = ref(false)
  480. const RES = ref("")
  481. const openType = ref("")
  482. const dialogInfoTradingAdd = ref(false)
  483. const ruleForm = reactive({
  484. bankInfo: [],
  485. bankWrit: [],
  486. xykInfo: [],
  487. bankBlockchain: []
  488. })
  489. const imgUrl = Host80
  490. const loginOptions = ref([])
  491. const loginValue = ref("")
  492. const code = ref("")
  493. const bankValid = ref("")
  494. const requestUrl = ref("")
  495. const isStep3 = ref(false)
  496. const step2 = ref(false)
  497. const step3 = ref(false)
  498. const dialogCheckTip = ref(false)
  499. const isChannel = ref(true)
  500. const pictLoading = ref(false)
  501. const tableData = reactive({
  502. International_Transfer: [],
  503. China_UnionPay: [],
  504. Digital_Currency: [],
  505. CHANNEL_TYPE_CARD: [],
  506. Electronic_Wallet: [],
  507. CHANNEL_TYPE_ALI_WALLET: [],
  508. UCARD_WALLET: []
  509. })
  510. //通道table-选择前后
  511. const activeTab = ref(4)
  512. // 🔥 自动过滤掉空数据的 tab
  513. const tabsConfig = computed(() => {
  514. const allTabs = [
  515. { text: t('Custom.Deposit.Channel1'), value: 4, type: 'International_Transfer' },
  516. { text: t('Custom.Deposit.Channel2'), value: 2, type: 'China_UnionPay' },
  517. { text: t('Custom.Deposit.Channel3'), value: 1, type: 'Digital_Currency' },
  518. { text: t('Custom.Deposit.Channel4'), value: 3, type: 'Electronic_Wallet' },
  519. { text: t('PersonalManagement.Label.CreditCard'), value: 5, type: 'CHANNEL_TYPE_CARD' },
  520. { text: t('Label.Ali'), value: 7, type: 'CHANNEL_TYPE_ALI_WALLET' },
  521. { text: t('card.title'), value: 6, type: 'UCARD_WALLET' },
  522. ]
  523. // ✅ 只保留有数据的 tab
  524. return allTabs.filter(tab => {
  525. console.log(tableData[tab.type], tab.type);
  526. return tableData[tab.type]?.length > 0
  527. })
  528. })
  529. // 当前选中的 tab 项
  530. const currentTab = computed(() => tabsConfig.value.find(t => t.value === activeTab.value))
  531. // 当前要渲染的表格数据
  532. const currentTableData = computed(() => {
  533. const type = currentTab.value?.type
  534. return type ? tableData[type] || [] : []
  535. })
  536. // ✅ 监听 tab 变化,自动选中第一个有数据的 tab
  537. watch(
  538. tabsConfig,
  539. (newTabs) => {
  540. if (newTabs.length > 0) {
  541. activeTab.value = newTabs[0].value // 选中第一个
  542. }
  543. },
  544. { immediate: true }
  545. )
  546. const bankDate = ref([])
  547. const channelData = ref({})
  548. const WireTransferAccount = ref({})
  549. const formRef = ref(null)
  550. const form = reactive({
  551. currency: "USD",
  552. amount: "",
  553. bankCode: '', // 银行代码(普通银行通道选择)
  554. address: '', // 电子钱包地址 / 数字货币地址(输入/展示)
  555. addressName: '', // 数字货币地址名称(展示)
  556. addressProve: '', // 数字货币地址证明文件路径(仅展示))
  557. bankUname: '', // 持卡人姓名
  558. bankCardNum: '', // 银行卡号
  559. bankName: '', // 银行名称
  560. bankBranchName: '', // 支行名称
  561. swiftCode: '', // SWIFT代码
  562. customBankCode: '', // 自定义银行代码
  563. bankAddr: '', // 银行地址
  564. agencyNo: '', // 代理机构编号(电汇专用,可编辑)
  565. cpf: '', // CPF号码(电汇专用,可编辑)
  566. cvv: '', // CVV码(电汇专用,可编辑)
  567. expiryYearMonth: '', // 过期年(电汇专用,可编辑)
  568. agree2: false,
  569. agree3: false,
  570. })
  571. const mAmount = reactive({
  572. minAmount: "",
  573. maxAmount: ""
  574. })
  575. const introduce = reactive({
  576. introduce: "",
  577. enIntroduce: ""
  578. })
  579. const bankInfoList = ref([])
  580. const bank = ref("")
  581. const myId = ref("")
  582. const bankPayType = ref("")
  583. const step3_bank_cur = ref("")
  584. const agree2 = ref(false)
  585. const form1 = ref({})
  586. const dialogCheck = ref(false)
  587. const dialogKyc = ref(false)
  588. const dialogVisible = ref(false)
  589. const dialogCheckWait = ref(false)
  590. const dialogCheckInto = ref(false)
  591. const dialogCheckInto1 = ref(false)
  592. const dialogNewBank = ref(false)
  593. const params = reactive({
  594. bankCardNum: "",
  595. bankUname: "",
  596. bankName: "",
  597. bankBranchName: "",
  598. bankAddr: "",
  599. swiftCode: "",
  600. bankFront: "",
  601. bankBack: "",
  602. defaultBank: false
  603. })
  604. const resetForm = async () => {
  605. await nextTick();
  606. formRef.value?.clearValidate(); // 再次清除可能因数据重置产生的新错误
  607. params.bankCardNum = ""
  608. params.bankUname = ""
  609. params.bankName = ""
  610. params.bankBranchName = ""
  611. params.bankAddr = ""
  612. params.swiftCode = ""
  613. params.bankFront = ""
  614. params.bankBack = ""
  615. params.defaultBank = false
  616. form.amount = ""
  617. form.amount1 = ""
  618. form.bankCode = ""
  619. form.address = ""
  620. form.addressName = ""
  621. form.addressProve = ""
  622. form.bankUname = ""
  623. form.bankCardNum = ""
  624. form.swiftCode = ""
  625. form.customBankCode = ""
  626. form.bankAddr = ""
  627. form.agencyNo = ""
  628. form.bankName = ""
  629. form.cpf = ""
  630. form.bankBranchName = ""
  631. form.cpf = ""
  632. form.cvv = ""
  633. form.expiryYearMonth = ""
  634. form.agree2 = false
  635. form.agree3 = false
  636. amountErrorMessage.value = ""
  637. flag.value = false
  638. loginValue.value = ""
  639. dialogCheck.value = false
  640. dialogVisible.value = false
  641. }
  642. const dialogTips = ref(false)
  643. const dialogTipsIsShow = ref(true)
  644. const dialogCheckConfirm = ref(false)
  645. const dialogCheckConfirm_form = reactive({
  646. amount: "",
  647. feeAmount: ""
  648. })
  649. // 验证规则(保留原结构,实际验证需配合表单组件)
  650. const rules = computed(() => ({
  651. bankCardNum: {
  652. rules: [
  653. {
  654. required: true,
  655. errorMessage: t('vaildate.input.empty'),
  656. trigger: 'blur',
  657. },
  658. ],
  659. },
  660. bankUname: {
  661. rules: [
  662. {
  663. required: true,
  664. errorMessage: t('vaildate.input.empty'),
  665. trigger: 'blur',
  666. },
  667. ],
  668. },
  669. bankName: {
  670. rules: [
  671. {
  672. required: true,
  673. errorMessage: t('vaildate.input.empty'),
  674. trigger: 'blur',
  675. },
  676. ],
  677. },
  678. bankBranchName: {
  679. rules: [
  680. {
  681. required: true,
  682. errorMessage: t('vaildate.input.empty'),
  683. trigger: 'blur',
  684. },
  685. ],
  686. },
  687. bankAddr: {
  688. rules: [
  689. {
  690. required: true,
  691. errorMessage: t('vaildate.input.empty'),
  692. trigger: 'blur',
  693. },
  694. ],
  695. },
  696. swiftCode: {
  697. rules: [
  698. {
  699. required: true,
  700. errorMessage: t('vaildate.input.empty'),
  701. trigger: 'blur',
  702. },
  703. ],
  704. },
  705. defaultBank: {
  706. rules: [
  707. {
  708. required: true,
  709. errorMessage: t('vaildate.select.empty'),
  710. trigger: 'change',
  711. },
  712. ],
  713. },
  714. bankCode: {
  715. rules: [
  716. {
  717. required: true,
  718. errorMessage: t('vaildate.select.empty'),
  719. trigger: 'change',
  720. },
  721. ],
  722. },
  723. message: {
  724. rules: [
  725. {
  726. required: true,
  727. errorMessage: t('vaildate.input.empty'),
  728. trigger: 'blur',
  729. },
  730. ],
  731. },
  732. address: {
  733. rules: [
  734. {
  735. required: true,
  736. errorMessage: t('vaildate.input.empty'),
  737. trigger: 'blur',
  738. },
  739. ],
  740. },
  741. amount: {
  742. rules: [
  743. {
  744. required: true,
  745. errorMessage: t('vaildate.amount.format'),
  746. },
  747. {
  748. validateFunction: (rule, value, data, callback) => {
  749. if (value && (Number(mAmount.minAmount) > Number(value) || Number(mAmount.maxAmount) < Number(value))) {
  750. callback(t('vaildate.amount.amount') + mAmount.minAmount + ' - ' + mAmount.maxAmount);
  751. return false;
  752. }
  753. if (/^[0-9]+([.]{1}[0-9]{1,2})?$/.test(value)) {
  754. return true;
  755. } else {
  756. callback(t('vaildate.amount.format'));
  757. return false;
  758. }
  759. },
  760. trigger: 'blur',
  761. },
  762. ],
  763. },
  764. agree2: {
  765. rules: [
  766. {
  767. validateFunction: (rule, value, data, callback) => {
  768. if (form.agree2) {
  769. return true;
  770. } else {
  771. callback(t('vaildate.agree.empty'));
  772. return false;
  773. }
  774. },
  775. trigger: 'change',
  776. },
  777. ],
  778. },
  779. agree3: {
  780. rules: [
  781. {
  782. validateFunction: (rule, value, data, callback) => {
  783. if (form.agree3) {
  784. return true;
  785. } else {
  786. callback(t('vaildate.agree.empty'));
  787. return false;
  788. }
  789. },
  790. trigger: 'change',
  791. },
  792. ],
  793. },
  794. agencyNo: {
  795. rules: [
  796. {
  797. required: true,
  798. errorMessage: t('vaildate.input.empty'),
  799. trigger: 'blur',
  800. },
  801. ],
  802. },
  803. cpf: {
  804. rules: [
  805. {
  806. required: true,
  807. errorMessage: t('vaildate.input.empty'),
  808. trigger: 'blur',
  809. },
  810. ],
  811. },
  812. }));
  813. const amountErrorMessage = ref('')
  814. const validateAmount = () => {
  815. const amount = form.amount
  816. if (!amount && amount !== 0) {
  817. amountErrorMessage.value = t('vaildate.amount.format')
  818. return false
  819. }
  820. if (mAmount.minAmount && mAmount.maxAmount) {
  821. const min = Number(mAmount.minAmount);
  822. const max = Number(mAmount.maxAmount);
  823. const numValue = Number(amount);
  824. if (numValue < min || numValue > max) {
  825. amountErrorMessage.value = t('vaildate.amount.amount') + min + '-' + max
  826. return false
  827. }
  828. }
  829. if (!/^[0-9]+([.]{1}[0-9]{1,2})?$/.test(amount)) {
  830. amountErrorMessage.value = t('vaildate.amount.format')
  831. return false
  832. }
  833. amountErrorMessage.value = ''
  834. return true
  835. }
  836. // ---------- 计算属性 ----------
  837. const loginComboxOptions = computed(() => {
  838. return loginOptions.value.map((item, index) => ({
  839. text: `${item.login} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${numberDecimal(item.balance)}`,
  840. value: item.login
  841. }))
  842. })
  843. const digitalOptions = computed(() => {
  844. return ruleForm.bankBlockchain.map((item, index) => ({
  845. text: `${item.addressName}-${item.address}`,
  846. value: item.id,
  847. disable: item.authStatus == 0
  848. }))
  849. })
  850. const groupTitleMap = {
  851. 'Ucard_Wallet': 'card.title',
  852. 'Digital_Currency': 'Custom.Deposit.Channel3',
  853. 'China_UnionPay': 'Custom.Deposit.Channel2',
  854. 'Electronic_Wallet': 'Custom.Deposit.Channel4',
  855. 'International_Transfer': 'Custom.Deposit.Channel1',
  856. 'CHANNEL_TYPE_CARD': 'PersonalManagement.Label.CreditCard',
  857. 'CHANNEL_TYPE_ALI_WALLET': 'Label.Ali'
  858. }
  859. const getWalletLabel = computed(() => {
  860. if (channelData.value.type === 'CHANNEL_TYPE_WALLET') return t('Custom.Withdraw.Title7')
  861. if (channelData.value.type === 'CHANNEL_TYPE_ALI_WALLET') return t('Label.AliAccout')
  862. return ''
  863. })
  864. const bankCardOptions = computed(() => {
  865. return bankList.value.map((item, index) => ({
  866. text: getBankLabel(item),
  867. value: item.id
  868. }))
  869. })
  870. const getBankLabel = (item) => {
  871. if (channelData.value.type === 'BANK' || channelData.value.type === 'BANK_TELEGRAPHIC') {
  872. return `${item.bankName}-${item.bankCardNum}`
  873. } else if (channelData.value.type === 'CHANNEL_TYPE_CARD') {
  874. return item.bankCardNum
  875. }
  876. return ''
  877. }
  878. const bankList = computed(() => {
  879. if (channelData.value.type === 'BANK') return ruleForm.bankInfo
  880. if (channelData.value.type === 'BANK_TELEGRAPHIC') return ruleForm.bankWrit
  881. if (channelData.value.type === 'CHANNEL_TYPE_CARD') return ruleForm.xykInfo
  882. return []
  883. })
  884. const bankOptions = computed(() => {
  885. return bankDate.value.map((item, index) => ({
  886. text: (locale.value === 'cn' || locale.value === 'zhHant') ? item.name : item.enName,
  887. value: item.code
  888. }))
  889. })
  890. // 最后确认
  891. const dialogSuccess = computed(() => dialogCheck.value && dialogVisible.value)
  892. // 最后失败
  893. const dialogError = computed(() => dialogCheck.value && !dialogVisible.value)
  894. const userStore = useUserStore()
  895. const ibInfo = computed(() => {
  896. return userStore?.userInfo?.ibInfo || {}
  897. })
  898. const getInfoStatus5 = computed(() => {
  899. if (ibInfo.value.closeFunctions && ibInfo.value.closeFunctions.length > 0) {
  900. return ibInfo.value.closeFunctions.indexOf("8") !== -1
  901. }
  902. return false
  903. })
  904. const isFree = computed(() => {
  905. let flagVal = false
  906. const startTime1 = "2024/11/01 00:00:00"
  907. const timezone = 2 // 目标时区偏移小时数
  908. const now = new Date()
  909. const utc = now.getTime() + now.getTimezoneOffset() * 60000
  910. const targetTime = new Date(utc + timezone * 3600000).getTime()
  911. const start = new Date(startTime1).getTime()
  912. if (targetTime > start) flagVal = true
  913. return flagVal
  914. })
  915. // ---------- 方法 ----------
  916. const getFreeNumber = async () => {
  917. if (!isFree.value) return
  918. if (getInfoStatus5.value === false) {
  919. dialogFreeNumber.value = true
  920. }
  921. const res = await financialApi.remainingReductionNumber({})
  922. if (res.code === Code.StatusOK) {
  923. FreeNumber.value = res.data || 0
  924. } else {
  925. uni.showToast({ title: res.msg, icon: 'none' })
  926. }
  927. }
  928. const toHome = () => {
  929. uni.reLaunch({ url: "/pages/ib/index" })
  930. InfoStatus5.value = false
  931. }
  932. const isShowDialog = () => {
  933. const startTime1 = "2025/2/15 00:00:00"
  934. const timezone = 8
  935. const now = new Date()
  936. const utc = now.getTime() + now.getTimezoneOffset() * 60000
  937. const targetTime = new Date(utc + timezone * 3600000).getTime()
  938. const start = new Date(startTime1).getTime()
  939. if (targetTime > start) {
  940. dialogCheckInto.value = false
  941. // dialogCheckInto1.value = true
  942. } else {
  943. dialogCheckInto.value = true
  944. dialogCheckInto1.value = false
  945. }
  946. }
  947. const onAgree3Change = (e) => {
  948. form.agree3 = e.detail.value.length > 0
  949. }
  950. const onAgree2Change = (e) => {
  951. form.agree2 = e.detail.value.length > 0
  952. }
  953. const selectChange = () => {
  954. // 强制更新视图
  955. }
  956. // const openAddBankCard = (type) => {
  957. // if (type === "add_bankCard") {
  958. // if (ruleForm.bankInfo.length === 2) {
  959. // $pigeon.MessageConfirm(
  960. // t("Msg.UnionPayCARDS"),
  961. // t("Msg.SystemPrompt"),
  962. // t("Btn.Confirm"),
  963. // t("Btn.Cancel"),
  964. // async () => { },
  965. // () => { }
  966. // )
  967. // } else {
  968. // openType.value = "add_bankCard"
  969. // dialogInfoTradingAdd.value = true
  970. // }
  971. // } else if (type === "add_wireTransfer") {
  972. // if (ruleForm.bankWrit.length === 2) {
  973. // $pigeon.MessageConfirm(
  974. // t("Msg.WireTransfers"),
  975. // t("Msg.SystemPrompt"),
  976. // t("Btn.Confirm"),
  977. // t("Btn.Cancel"),
  978. // async () => { },
  979. // () => { }
  980. // )
  981. // } else {
  982. // openType.value = "add_wireTransfer"
  983. // dialogInfoTradingAdd.value = true
  984. // }
  985. // } else if (type === "add_CreditCard") {
  986. // openType.value = "add_CreditCard"
  987. // dialogInfoTradingAdd.value = true
  988. // } else if (type === "add_bankBlockchain") {
  989. // if (ruleForm.bankBlockchain.length === 2) {
  990. // $pigeon.MessageConfirm(
  991. // t("blockchain.item9"),
  992. // t("Msg.SystemPrompt"),
  993. // t("Btn.Confirm"),
  994. // t("Btn.Cancel"),
  995. // async () => { },
  996. // () => { }
  997. // )
  998. // } else {
  999. // openType.value = "add_bankBlockchain"
  1000. // dialogInfoTradingAdd.value = true
  1001. // }
  1002. // }
  1003. // }
  1004. // 新增银行信息
  1005. const addBankDialogRef = ref(null);
  1006. function openAddBankCard(type) {
  1007. console.log(type, 121212)
  1008. switch (type) {
  1009. case 'add_bankBlockchain':
  1010. openAddCrypto()
  1011. break;
  1012. case 'add_bankCard':
  1013. openAddUnionpay()
  1014. break;
  1015. case 'add_wireTransfer':
  1016. openAddBank()
  1017. break;
  1018. case 'add_CreditCard':
  1019. openAddCredit()
  1020. break;
  1021. }
  1022. }
  1023. function openAddCrypto() {
  1024. const wallets = bankCardOptions.value || []
  1025. console.log(wallets, 12121212);
  1026. // 1️⃣ 没有钱包
  1027. if (wallets.length === 0) {
  1028. addBankDialogRef.value?.open(4);
  1029. return;
  1030. }
  1031. // 2️⃣ 是否存在未认证钱包
  1032. const hasUnAuth = wallets.some(
  1033. item => item.authStatus === 0 || item.approveStatus === 1
  1034. );
  1035. if (hasUnAuth) {
  1036. uni.showToast({
  1037. title: "加密钱包未认证",
  1038. icon: "none"
  1039. });
  1040. return;
  1041. }
  1042. // 3️⃣ 是否达到上限
  1043. if (wallets.length >= 2) {
  1044. uni.showToast({
  1045. title: t('blockchain.item9'),
  1046. icon: "none"
  1047. });
  1048. return;
  1049. }
  1050. // 4️⃣ 正常打开
  1051. addBankDialogRef.value?.open(4);
  1052. }
  1053. function openAddUnionpay() {
  1054. const wallets = bankCardOptions.value || []
  1055. console.log(wallets, 12121212);
  1056. if (wallets.length === 0) {
  1057. addBankDialogRef.value?.open(1);
  1058. return;
  1059. }
  1060. if (wallets.length >= 2) {
  1061. uni.showToast({
  1062. title: t('Msg.UnionPayCARDS'),
  1063. icon: "none"
  1064. });
  1065. return;
  1066. }
  1067. addBankDialogRef.value?.open(1);
  1068. }
  1069. function openAddBank() {
  1070. const wallets = bankCardOptions.value || []
  1071. console.log(wallets, 121212)
  1072. if (wallets.length === 0) {
  1073. addBankDialogRef.value?.open(2);
  1074. return;
  1075. }
  1076. if (wallets.length >= 2) {
  1077. uni.showToast({
  1078. title: t('Msg.WireTransfers'),
  1079. icon: "none"
  1080. });
  1081. return;
  1082. }
  1083. addBankDialogRef.value?.open(2);
  1084. }
  1085. function openAddCredit() {
  1086. const wallets = bankCardOptions.value || []
  1087. console.log(wallets, 12121212);
  1088. if (wallets.length === 0) {
  1089. addBankDialogRef.value?.open(3);
  1090. return;
  1091. }
  1092. addBankDialogRef.value?.open(3);
  1093. }
  1094. // 新增银行信息成功回调
  1095. const addSuccess = (e) => {
  1096. getBankInfo();
  1097. }
  1098. const closeDiaAdd = () => {
  1099. dialogInfoTradingAdd.value = false
  1100. }
  1101. const closeAdd = (val) => {
  1102. dialogInfoTradingAdd.value = val
  1103. }
  1104. const confirmToReload = () => {
  1105. dialogInfoTradingAdd.value = false
  1106. getBankInfo()
  1107. }
  1108. const getBankInfo = async () => {
  1109. const res = await financialApi.customBankList({})
  1110. if (res.code === Code.StatusOK) {
  1111. ruleForm.bankInfo = []
  1112. ruleForm.bankWrit = []
  1113. ruleForm.xykInfo = []
  1114. ruleForm.bankBlockchain = []
  1115. res.data.forEach(item => {
  1116. if (item.type === 1) {
  1117. item.customBankCode = item.bankCode
  1118. item.bankCode = null
  1119. ruleForm.bankInfo.push(item)
  1120. } else if (item.type === 2) {
  1121. item.customBankCode = item.bankCode
  1122. item.bankCode = null
  1123. ruleForm.bankWrit.push(item)
  1124. } else if (item.type === 3) {
  1125. item.customBankCode = item.bankCode
  1126. item.bankCode = null
  1127. item.expiryYearMonth = (item.expiryYear || "") + "/" + (item.expiryMonth || "")
  1128. ruleForm.xykInfo.push(item)
  1129. } else if (item.type === 4) {
  1130. item.customBankCode = item.bankCode
  1131. item.bankCode = null
  1132. ruleForm.bankBlockchain.push(item)
  1133. }
  1134. if (channelData.value.type === "BANK" && item.defaultBank && item.type === 1) {
  1135. Object.assign(form, item)
  1136. myId.value = form.id
  1137. }
  1138. if (channelData.value.type === "BANK_TELEGRAPHIC" && item.defaultBank && item.type === 2) {
  1139. Object.assign(form, item)
  1140. myId.value = form.id
  1141. }
  1142. if (channelData.value.type === "CHANNEL_TYPE_CARD" && item.defaultBank && item.type === 3) {
  1143. myId.value = item.id
  1144. Object.assign(form, item)
  1145. }
  1146. if (channelData.value.type === "DIGITAL_CURRENCY" && item.defaultBank && item.type === 4) {
  1147. myId.value = item.id
  1148. Object.assign(form, item)
  1149. }
  1150. })
  1151. } else {
  1152. uni.showToast({ title: res.msg, icon: 'none' })
  1153. }
  1154. }
  1155. const onDigitalCurrencyChange = (val) => {
  1156. const item = ruleForm.bankBlockchain.find(b => b.id === val)
  1157. chooseBank(item.id)
  1158. }
  1159. const chooseBank = (id) => {
  1160. const item = bankList.value.find(b => b.id === id)
  1161. // if (!item) {
  1162. // showToast(t("Msg.item11"));
  1163. // return;
  1164. // }
  1165. let codeCache = ""
  1166. if (form.bankCode) codeCache = form.bankCode
  1167. Object.assign(form, item)
  1168. form.agree2 = false
  1169. form.agree3 = false
  1170. if (channelData.value.type === "BANK_TELEGRAPHIC") {
  1171. form.currency = "USD"
  1172. if (codeCache) form.bankCode = codeCache
  1173. }
  1174. }
  1175. const openTips = async () => {
  1176. if (channelData.value.type === "BANK_TELEGRAPHIC" && !myId.value) {
  1177. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1178. return
  1179. }
  1180. if (channelData.value.type === "BANK" && !myId.value) {
  1181. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1182. return
  1183. }
  1184. if (channelData.value.type === "CHANNEL_TYPE_CARD" && !myId.value) {
  1185. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1186. return
  1187. }
  1188. if (channelData.value.type === "DIGITAL_CURRENCY" && !myId.value) {
  1189. $pigeon.MessageWarning(t("blockchain.item11"))
  1190. return
  1191. }
  1192. // 此处模拟表单验证,实际应调用 uni-forms 的 validate
  1193. try {
  1194. if (formRef.value) {
  1195. const valid = await formRef.value.validate()
  1196. if (dialogTipsIsShow.value) {
  1197. dialogTips.value = true
  1198. } else {
  1199. submit("form")
  1200. }
  1201. }
  1202. } catch (error) {
  1203. if (error instanceof Array) {
  1204. showToast(error[0].errorMessage);
  1205. return
  1206. } else {
  1207. RES.value = error.msg;
  1208. }
  1209. }
  1210. }
  1211. const openTipsConfirm = () => {
  1212. dialogCheckConfirm.value = false
  1213. submit("form")
  1214. }
  1215. const closeTipsConfirm = () => {
  1216. dialogTips.value = false
  1217. dialogCheckConfirm.value = true
  1218. }
  1219. const closeDia = () => {
  1220. resetForm()
  1221. isStep3.value = false
  1222. step2.value = false
  1223. dialogCheck.value = false
  1224. dialogVisible.value = false
  1225. showTable()
  1226. }
  1227. const qrCode = async (serial) => {
  1228. metaInfo.value = getMetaInfo()
  1229. const res = await customApi.getWebsdkLink1({
  1230. serial,
  1231. metaInfo: metaInfo.value
  1232. })
  1233. if (res.code === Code.StatusOK) {
  1234. text1.value = JSON.parse(res.data).url
  1235. dialogKyc.value = true
  1236. flag.value = false
  1237. } else {
  1238. flag.value = false
  1239. }
  1240. }
  1241. const submit = async (formName) => {
  1242. if (channelData.value.type === "BANK_TELEGRAPHIC" && !myId.value) {
  1243. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1244. return
  1245. }
  1246. if (channelData.value.type === "BANK" && !myId.value) {
  1247. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1248. return
  1249. }
  1250. if (channelData.value.type === "CHANNEL_TYPE_CARD" && !myId.value) {
  1251. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1252. return
  1253. }
  1254. if (channelData.value.type === "DIGITAL_CURRENCY" && !myId.value) {
  1255. $pigeon.MessageWarning(t("blockchain.item11"))
  1256. return
  1257. }
  1258. // 模拟表单验证
  1259. try {
  1260. if (formRef.value) {
  1261. await formRef.value.validate()
  1262. if (flag.value) return
  1263. flag.value = true
  1264. dialogCheckWait.value = true
  1265. form.amount = Number(form.amount)
  1266. let res
  1267. if (channelData.value.type === "DIGITAL_CURRENCY") {
  1268. res = await financialApi.ibWithdrawAapplyDigitalCurrency(channelData.value.requestUrl, {
  1269. // login: loginValue.value,
  1270. payType: channelData.value.code,
  1271. ...form
  1272. })
  1273. } else if (["CHANNEL_TYPE_WALLET", "UCARD_WALLET", "CHANNEL_TYPE_ALI_WALLET"].includes(channelData.value.type)) {
  1274. res = await financialApi.ibWithdrawAapplyDigitalCurrency(channelData.value.requestUrl, {
  1275. // login: loginValue.value,
  1276. payType: channelData.value.code,
  1277. ...form
  1278. })
  1279. } else if (channelData.value.type === "BANK" || channelData.value.type === "BANK_TELEGRAPHIC") {
  1280. res = await financialApi.ibWithdrawApplyBank(channelData.value.requestUrl, {
  1281. // login: loginValue.value,
  1282. payType: channelData.value.code,
  1283. ...form
  1284. })
  1285. } else if (channelData.value.type === "CHANNEL_TYPE_CARD") {
  1286. res = await financialApi.WithdrawApplyBank(channelData.value.requestUrl, {
  1287. // login: loginValue.value,
  1288. payType: channelData.value.code,
  1289. ...form
  1290. })
  1291. }
  1292. if (res && res.code === Code.StatusOK) {
  1293. dialogCheck.value = true
  1294. dialogVisible.value = true
  1295. // qrCode(res.data)
  1296. flag.value = false
  1297. } else {
  1298. RES.value = res?.msg || "error"
  1299. dialogCheck.value = true
  1300. dialogVisible.value = false
  1301. flag.value = false
  1302. }
  1303. dialogCheckWait.value = false
  1304. }
  1305. } catch (error) {
  1306. if (error instanceof Array) {
  1307. showToast(error[0].errorMessage);
  1308. return
  1309. } else {
  1310. RES.value = error.msg;
  1311. dialogCheck.value = true;
  1312. dialogCheckWait.value = false;
  1313. dialogVisible.value = false;
  1314. flag.value = false;
  1315. }
  1316. }
  1317. }
  1318. const Initialize = () => {
  1319. loginValue.value = ""
  1320. isStep3.value = false
  1321. step2.value = false
  1322. step3.value = false
  1323. showTable()
  1324. }
  1325. const isShowStep3 = (row) => {
  1326. userStore.savePaymentChannel(row.code)
  1327. userStore.saveChannelList(tableData)
  1328. router.push(`/pages/ib/withdraw`)
  1329. return
  1330. if (row.bankValid && isChannel.value) {
  1331. getBankList(row)
  1332. isChannel.value = false
  1333. step3.value = true
  1334. channelData.value = row
  1335. mAmount.minAmount = row.minAmount
  1336. mAmount.maxAmount = row.maxAmount
  1337. } else {
  1338. step3.value = true
  1339. bankDate.value = []
  1340. channelData.value = row
  1341. mAmount.minAmount = row.minAmount
  1342. mAmount.maxAmount = row.maxAmount
  1343. }
  1344. if (row.code === "UNION_PAY_TELEGRAPHIC") {
  1345. WireTransferAccount.value = JSON.parse(row.property)
  1346. }
  1347. if (["BANK", "BANK_TELEGRAPHIC", "CHANNEL_TYPE_CARD", "DIGITAL_CURRENCY"].includes(row.type)) {
  1348. getBankInfo()
  1349. step3_bank_cur.value = "bank"
  1350. form.login = loginValue.value
  1351. form.payType = row.code
  1352. bankPayType.value = row.code
  1353. }
  1354. // 重置 tableData
  1355. tableData.International_Transfer = []
  1356. tableData.China_UnionPay = []
  1357. tableData.Digital_Currency = []
  1358. tableData.CHANNEL_TYPE_CARD = []
  1359. tableData.Electronic_Wallet = []
  1360. tableData.CHANNEL_TYPE_ALI_WALLET = []
  1361. tableData.UCARD_WALLET = []
  1362. if (row.type === "BANK_TELEGRAPHIC") tableData.International_Transfer[0] = row
  1363. if (row.type === "BANK") tableData.China_UnionPay[0] = row
  1364. if (row.type === "DIGITAL_CURRENCY") tableData.Digital_Currency[0] = row
  1365. if (row.type === "CHANNEL_TYPE_WALLET") tableData.Electronic_Wallet[0] = row
  1366. if (row.type === "UCARD_WALLET") tableData.UCARD_WALLET[0] = row
  1367. if (row.type === "CHANNEL_TYPE_CARD") tableData.CHANNEL_TYPE_CARD[0] = row
  1368. if (row.type === "CHANNEL_TYPE_ALI_WALLET") tableData.CHANNEL_TYPE_ALI_WALLET[0] = row
  1369. introduce.introduce = row.introduce
  1370. introduce.enIntroduce = row.enIntroduce
  1371. }
  1372. const showTable = () => {
  1373. resetForm()
  1374. myId.value = null
  1375. step3.value = false
  1376. isStep3.value = false
  1377. isChannel.value = true
  1378. getDepositList()
  1379. // 重置表单
  1380. form.currency = "USD"
  1381. // 其他重置...
  1382. }
  1383. const getDateList = async () => {
  1384. const res = await customApi.CustomDropdown({ platform: "" })
  1385. if (res.code === Code.StatusOK) {
  1386. loginOptions.value = res.data
  1387. } else {
  1388. uni.showToast({ title: res.msg, icon: 'none' })
  1389. }
  1390. }
  1391. const getDepositList = async () => {
  1392. pictLoading.value = true
  1393. tableData.International_Transfer = []
  1394. tableData.China_UnionPay = []
  1395. tableData.Digital_Currency = []
  1396. tableData.CHANNEL_TYPE_CARD = []
  1397. tableData.Electronic_Wallet = []
  1398. tableData.CHANNEL_TYPE_ALI_WALLET = []
  1399. tableData.UCARD_WALLET = []
  1400. const res = await financialApi.RemitChannelList({})
  1401. if (res.code === Code.StatusOK) {
  1402. res.data.forEach(item => {
  1403. if (item.type === "BANK_TELEGRAPHIC") tableData.International_Transfer.push(item)
  1404. if (item.type === "BANK") tableData.China_UnionPay.push(item)
  1405. if (item.type === "DIGITAL_CURRENCY") tableData.Digital_Currency.push(item)
  1406. if (item.type === "CHANNEL_TYPE_WALLET") tableData.Electronic_Wallet.push(item)
  1407. if (item.type === "UCARD_WALLET") tableData.UCARD_WALLET.push(item)
  1408. if (item.type === "CHANNEL_TYPE_CARD") tableData.CHANNEL_TYPE_CARD.push(item)
  1409. if (item.type === "CHANNEL_TYPE_ALI_WALLET") tableData.CHANNEL_TYPE_ALI_WALLET.push(item)
  1410. })
  1411. pictLoading.value = false
  1412. } else {
  1413. uni.showToast({ title: res.msg, icon: 'none' })
  1414. pictLoading.value = false
  1415. }
  1416. }
  1417. const getBankList = async (row) => {
  1418. const res = await financialApi.BankList({ channelCode: row.code })
  1419. if (res.code === Code.StatusOK) {
  1420. const bank = res.data
  1421. const data = []
  1422. bank.forEach(j => {
  1423. if (!j.minAmount && j.minAmount !== 0) j.minAmount = row.minAmount
  1424. if (!j.maxAmount && j.maxAmount !== 0) j.maxAmount = row.maxAmount
  1425. j.payType = row.code
  1426. data.push(j)
  1427. })
  1428. bankDate.value = data
  1429. } else {
  1430. uni.showToast({ title: res.msg, icon: 'none' })
  1431. }
  1432. }
  1433. const cancelBank = () => {
  1434. dialogNewBank.value = false
  1435. // 重置 params 表单
  1436. Object.assign(params, {
  1437. bankCardNum: "",
  1438. bankUname: "",
  1439. bankName: "",
  1440. bankBranchName: "",
  1441. bankAddr: "",
  1442. swiftCode: "",
  1443. bankFront: "",
  1444. bankBack: "",
  1445. defaultBank: false
  1446. })
  1447. }
  1448. // ---------- 生命周期 ----------
  1449. onMounted(() => {
  1450. if (getInfoStatus5.value) {
  1451. InfoStatus5.value = true
  1452. return
  1453. }
  1454. getFreeNumber()
  1455. isShowDialog()
  1456. // getDateList()
  1457. getDepositList()
  1458. })
  1459. // 监听 value 变化
  1460. watch(loginValue, (newVal) => {
  1461. if (newVal) {
  1462. step2.value = true
  1463. showTable()
  1464. }
  1465. })
  1466. // 监听 form.amount 变化
  1467. watch(() => form.amount, (newVal) => {
  1468. if (newVal && channelData.value.rate) {
  1469. form.amount1 = (newVal * channelData.value.rate).toFixed(2)
  1470. }
  1471. })
  1472. </script>
  1473. <style lang="scss" scoped>
  1474. @import "@/uni.scss";
  1475. .card-header{
  1476. border: none;
  1477. padding-bottom: px2rpx(0);
  1478. }
  1479. .custom-withdraw {
  1480. .box {
  1481. margin-bottom: px2rpx(20);
  1482. .b-card {
  1483. border: 1px solid var(--bs-border-color);
  1484. border-radius: px2rpx(12);
  1485. padding: px2rpx(20);
  1486. box-shadow: 0 px2rpx(4) px2rpx(12) rgba(0, 0, 0, 0.03);
  1487. .card-top {
  1488. .tit {
  1489. font-size: px2rpx(16);
  1490. font-weight: 600;
  1491. margin-bottom: px2rpx(16);
  1492. display: flex;
  1493. align-items: center;
  1494. color: var(--bs-heading-color);
  1495. position: relative;
  1496. padding-left: 20px;
  1497. &:after {
  1498. content: '';
  1499. position: absolute;
  1500. left: 0;
  1501. top: 50%;
  1502. transform: translateY(-50%);
  1503. width: 0;
  1504. height: 0;
  1505. border-top: 6px solid transparent;
  1506. border-bottom: 6px solid transparent;
  1507. border-left: 8px solid currentColor;
  1508. }
  1509. .iconfont {
  1510. margin-right: px2rpx(8);
  1511. color: var(--color-primary);
  1512. font-size: px2rpx(18);
  1513. }
  1514. }
  1515. }
  1516. .channelType {
  1517. font-size: px2rpx(15);
  1518. font-weight: 600;
  1519. margin: px2rpx(24) 0 px2rpx(12);
  1520. color: var(--color-navy-700);
  1521. padding-left: px2rpx(8);
  1522. border-left: px2rpx(4) solid var(--color-primary);
  1523. }
  1524. }
  1525. }
  1526. .reselect-btn {
  1527. margin-top: px2rpx(20);
  1528. display: flex;
  1529. justify-content: flex-end;
  1530. }
  1531. .s-btn {
  1532. &.reselect {
  1533. background-color: var(--color-zinc-100);
  1534. color: var(--color-navy-700);
  1535. border: none;
  1536. font-size: px2rpx(14);
  1537. padding: px2rpx(8) px2rpx(20);
  1538. border-radius: px2rpx(8);
  1539. &:active {
  1540. background-color: var(--color-zinc-200);
  1541. }
  1542. }
  1543. &[type="primary"] {
  1544. width: 100%;
  1545. height: px2rpx(48);
  1546. background-color: #cf1322;
  1547. color: var(--bs-emphasis-color);
  1548. border-radius: px2rpx(12);
  1549. font-size: px2rpx(16);
  1550. font-weight: 600;
  1551. display: flex;
  1552. align-items: center;
  1553. justify-content: center;
  1554. border: none;
  1555. margin-top: px2rpx(30);
  1556. transition: all 0.2s;
  1557. &:active {
  1558. transform: scale(0.98);
  1559. background-color: #cf1322;
  1560. }
  1561. }
  1562. }
  1563. .add-back {
  1564. display: flex;
  1565. justify-content: space-between;
  1566. align-items: center;
  1567. margin-bottom: px2rpx(12);
  1568. padding: px2rpx(12) px2rpx(16);
  1569. background: var(--color-zinc-100);
  1570. border-radius: px2rpx(8);
  1571. text {
  1572. font-size: px2rpx(14);
  1573. color: var(--color-navy-700);
  1574. font-weight: 500;
  1575. }
  1576. .add-btn {
  1577. color: var(--color-primary);
  1578. font-weight: 600;
  1579. text-decoration: underline;
  1580. &:active {
  1581. opacity: 0.7;
  1582. }
  1583. }
  1584. }
  1585. .proof {
  1586. margin-top: px2rpx(8);
  1587. border: px2rpx(1) dashed var(--color-zinc-300);
  1588. border-radius: px2rpx(8);
  1589. padding: px2rpx(8);
  1590. display: flex;
  1591. justify-content: center;
  1592. align-items: center;
  1593. background: var(--color-zinc-50);
  1594. .state {
  1595. padding: px2rpx(4) px2rpx(12);
  1596. border-radius: px2rpx(4);
  1597. font-size: px2rpx(12);
  1598. font-weight: bold;
  1599. }
  1600. }
  1601. .agree {
  1602. margin: px2rpx(24) 0;
  1603. display: flex;
  1604. align-items: flex-start;
  1605. .checkbox {
  1606. display: flex;
  1607. align-items: flex-start;
  1608. gap: px2rpx(8);
  1609. :deep(uni-checkbox .uni-checkbox-input) {
  1610. border-radius: px2rpx(4);
  1611. width: px2rpx(18);
  1612. height: px2rpx(18);
  1613. }
  1614. text {
  1615. font-size: px2rpx(13);
  1616. color: var(--color-zinc-500);
  1617. line-height: 1.5;
  1618. }
  1619. }
  1620. }
  1621. .step3-attention {
  1622. // background: var(--color-error-50, #fff1f0);
  1623. border-radius: px2rpx(12);
  1624. margin-bottom: px2rpx(20);
  1625. .tips {
  1626. line-height: 1.8;
  1627. font-size: px2rpx(12);
  1628. color: #909399;
  1629. background-color: rgba(var(--bs-body-bg-rgb), 1) !important;
  1630. padding: px2rpx(12);
  1631. border-radius: px2rpx(4);
  1632. border-left: px2rpx(2) solid #cf1322;
  1633. .title {
  1634. font-weight: 600;
  1635. margin-bottom: px2rpx(6);
  1636. color: #606266;
  1637. }
  1638. }
  1639. .attention {
  1640. font-size: px2rpx(14);
  1641. // color: var(--color-error-600, #cf1322);
  1642. line-height: 1.6;
  1643. }
  1644. .btn-bottom {
  1645. margin-top: px2rpx(20);
  1646. display: flex;
  1647. justify-content: center;
  1648. .btn {
  1649. background: var(--color-error-600, #cf1322);
  1650. color: var(--bs-emphasis-color);
  1651. padding: px2rpx(10) px2rpx(48);
  1652. border-radius: px2rpx(24);
  1653. font-size: px2rpx(15);
  1654. font-weight: 700;
  1655. box-shadow: 0 px2rpx(4) px2rpx(10) rgba(207, 19, 34, 0.2);
  1656. transition: all 0.2s;
  1657. &:active {
  1658. transform: scale(0.96);
  1659. opacity: 0.8;
  1660. }
  1661. }
  1662. }
  1663. }
  1664. :deep(.base-info-form) {
  1665. .uni-row1 {
  1666. .uni-col {
  1667. padding: 0 px2rpx(10) !important;
  1668. }
  1669. .uni-forms-item {
  1670. min-height: px2rpx(36);
  1671. margin-bottom: px2rpx(28);
  1672. }
  1673. .uni-select,
  1674. .uni-combox,
  1675. .uni-easyinput__content,
  1676. .uni-date-editor--x {
  1677. border: none !important;
  1678. background-color: var(--color-zinc-100) !important;
  1679. border-radius: px2rpx(8) !important;
  1680. }
  1681. .uni-date-x {
  1682. border: none !important;
  1683. background-color: rgba(195, 195, 195, 0) !important;
  1684. }
  1685. .uni-easyinput__content-input {
  1686. height: px2rpx(35) !important;
  1687. }
  1688. }
  1689. }
  1690. @keyframes rotate {
  1691. from {
  1692. transform: rotate(0deg);
  1693. }
  1694. to {
  1695. transform: rotate(360deg);
  1696. }
  1697. }
  1698. }
  1699. </style>