withdraw-select.vue 70 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782
  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_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-5">
  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" 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">
  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="false" @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. const { t, locale } = useI18n()
  435. const { Code, Host80 } = Config
  436. import useRouter from '@/hooks/useRouter'
  437. const router = useRouter()
  438. const isZh = computed(() => ['cn', 'zhHant'].includes(locale.value))
  439. // ---------- 辅助函数:替代原 this.Session ----------
  440. // 弹窗辅助(替代原 this.$pigeon)
  441. const $pigeon = {
  442. MessageError(msg) {
  443. uni.showToast({ title: msg, icon: 'none' })
  444. },
  445. MessageWarning(msg) {
  446. uni.showToast({ title: msg, icon: 'none' })
  447. },
  448. MessageConfirm(content, title, confirmText, cancelText, confirmCallback, cancelCallback) {
  449. uni.showModal({
  450. title,
  451. content,
  452. confirmText,
  453. cancelText,
  454. success(res) {
  455. if (res.confirm) confirmCallback && confirmCallback()
  456. else cancelCallback && cancelCallback()
  457. }
  458. })
  459. }
  460. }
  461. // 获取 metaInfo(用于二维码)
  462. const getMetaInfo = () => {
  463. const systemInfo = uni.getSystemInfoSync()
  464. return {
  465. userAgent: systemInfo.platform,
  466. screenWidth: systemInfo.screenWidth,
  467. screenHeight: systemInfo.screenHeight,
  468. deviceType: 'h5'
  469. }
  470. }
  471. // ---------- 响应式数据(完全保留原 data 结构) ----------
  472. const dialogFreeNumber = ref(false)
  473. const FreeNumber = ref(0)
  474. const InfoStatus5 = ref(false)
  475. const metaInfo = ref(null)
  476. const text1 = ref("")
  477. const flag = ref(false)
  478. const RES = ref("")
  479. const openType = ref("")
  480. const dialogInfoTradingAdd = ref(false)
  481. const ruleForm = reactive({
  482. bankInfo: [],
  483. bankWrit: [],
  484. xykInfo: [],
  485. bankBlockchain: []
  486. })
  487. const imgUrl = Host80
  488. const loginOptions = ref([])
  489. const loginValue = ref("")
  490. const code = ref("")
  491. const bankValid = ref("")
  492. const requestUrl = ref("")
  493. const isStep3 = ref(false)
  494. const step2 = ref(false)
  495. const step3 = ref(false)
  496. const dialogCheckTip = ref(false)
  497. const isChannel = ref(true)
  498. const pictLoading = ref(false)
  499. const tableData = reactive({
  500. International_Transfer: [],
  501. China_UnionPay: [],
  502. Digital_Currency: [],
  503. CHANNEL_TYPE_CARD: [],
  504. Electronic_Wallet: [],
  505. CHANNEL_TYPE_ALI_WALLET: [],
  506. UCARD_WALLET: []
  507. })
  508. //通道table-选择前后
  509. const activeTab = ref(4)
  510. // 🔥 自动过滤掉空数据的 tab
  511. const tabsConfig = computed(() => {
  512. const allTabs = [
  513. { text: t('Custom.Deposit.Channel1'), value: 4, type: 'International_Transfer' },
  514. { text: t('Custom.Deposit.Channel2'), value: 2, type: 'China_UnionPay' },
  515. { text: t('Custom.Deposit.Channel3'), value: 1, type: 'Digital_Currency' },
  516. { text: t('Custom.Deposit.Channel4'), value: 3, type: 'Electronic_Wallet' },
  517. { text: t('PersonalManagement.Label.CreditCard'), value: 5, type: 'CHANNEL_TYPE_CARD' },
  518. { text: t('Label.Ali'), value: 7, type: 'CHANNEL_TYPE_ALI_WALLET' },
  519. { text: t('card.title'), value: 6, type: 'UCARD_WALLET' },
  520. ]
  521. // ✅ 只保留有数据的 tab
  522. return allTabs.filter(tab => {
  523. console.log(tableData[tab.type], tab.type);
  524. return tableData[tab.type]?.length > 0
  525. })
  526. })
  527. // 当前选中的 tab 项
  528. const currentTab = computed(() => tabsConfig.value.find(t => t.value === activeTab.value))
  529. // 当前要渲染的表格数据
  530. const currentTableData = computed(() => {
  531. const type = currentTab.value?.type
  532. return type ? tableData[type] || [] : []
  533. })
  534. // ✅ 监听 tab 变化,自动选中第一个有数据的 tab
  535. watch(
  536. tabsConfig,
  537. (newTabs) => {
  538. if (newTabs.length > 0) {
  539. activeTab.value = newTabs[0].value // 选中第一个
  540. }
  541. },
  542. { immediate: true }
  543. )
  544. const bankDate = ref([])
  545. const channelData = ref({})
  546. const WireTransferAccount = ref({})
  547. const formRef = ref(null)
  548. const form = reactive({
  549. currency: "USD",
  550. amount: "",
  551. bankCode: '', // 银行代码(普通银行通道选择)
  552. address: '', // 电子钱包地址 / 数字货币地址(输入/展示)
  553. addressName: '', // 数字货币地址名称(展示)
  554. addressProve: '', // 数字货币地址证明文件路径(仅展示))
  555. bankUname: '', // 持卡人姓名
  556. bankCardNum: '', // 银行卡号
  557. bankName: '', // 银行名称
  558. bankBranchName: '', // 支行名称
  559. swiftCode: '', // SWIFT代码
  560. customBankCode: '', // 自定义银行代码
  561. bankAddr: '', // 银行地址
  562. agencyNo: '', // 代理机构编号(电汇专用,可编辑)
  563. cpf: '', // CPF号码(电汇专用,可编辑)
  564. cvv: '', // CVV码(电汇专用,可编辑)
  565. expiryYearMonth: '', // 过期年(电汇专用,可编辑)
  566. agree2: false,
  567. agree3: false,
  568. })
  569. const mAmount = reactive({
  570. minAmount: "",
  571. maxAmount: ""
  572. })
  573. const introduce = reactive({
  574. introduce: "",
  575. enIntroduce: ""
  576. })
  577. const bankInfoList = ref([])
  578. const bank = ref("")
  579. const myId = ref("")
  580. const bankPayType = ref("")
  581. const step3_bank_cur = ref("")
  582. const agree2 = ref(false)
  583. const form1 = ref({})
  584. const dialogCheck = ref(false)
  585. const dialogKyc = ref(false)
  586. const dialogVisible = ref(false)
  587. const dialogCheckWait = ref(false)
  588. const dialogCheckInto = ref(false)
  589. const dialogCheckInto1 = ref(false)
  590. const dialogNewBank = ref(false)
  591. const params = reactive({
  592. bankCardNum: "",
  593. bankUname: "",
  594. bankName: "",
  595. bankBranchName: "",
  596. bankAddr: "",
  597. swiftCode: "",
  598. bankFront: "",
  599. bankBack: "",
  600. defaultBank: false
  601. })
  602. const resetForm = async () => {
  603. await nextTick();
  604. formRef.value?.clearValidate(); // 再次清除可能因数据重置产生的新错误
  605. params.bankCardNum = ""
  606. params.bankUname = ""
  607. params.bankName = ""
  608. params.bankBranchName = ""
  609. params.bankAddr = ""
  610. params.swiftCode = ""
  611. params.bankFront = ""
  612. params.bankBack = ""
  613. params.defaultBank = false
  614. form.amount = ""
  615. form.amount1 = ""
  616. form.bankCode = ""
  617. form.address = ""
  618. form.addressName = ""
  619. form.addressProve = ""
  620. form.bankUname = ""
  621. form.bankCardNum = ""
  622. form.swiftCode = ""
  623. form.customBankCode = ""
  624. form.bankAddr = ""
  625. form.agencyNo = ""
  626. form.bankName = ""
  627. form.cpf = ""
  628. form.bankBranchName = ""
  629. form.cpf = ""
  630. form.cvv = ""
  631. form.expiryYearMonth = ""
  632. form.agree2 = false
  633. form.agree3 = false
  634. amountErrorMessage.value = ""
  635. flag.value = false
  636. loginValue.value = ""
  637. dialogCheck.value = false
  638. dialogVisible.value = false
  639. }
  640. const dialogTips = ref(false)
  641. const dialogTipsIsShow = ref(true)
  642. const dialogCheckConfirm = ref(false)
  643. const dialogCheckConfirm_form = reactive({
  644. amount: "",
  645. feeAmount: ""
  646. })
  647. // 验证规则(保留原结构,实际验证需配合表单组件)
  648. const rules = computed(() => ({
  649. bankCardNum: {
  650. rules: [
  651. {
  652. required: true,
  653. errorMessage: t('vaildate.input.empty'),
  654. trigger: 'blur',
  655. },
  656. ],
  657. },
  658. bankUname: {
  659. rules: [
  660. {
  661. required: true,
  662. errorMessage: t('vaildate.input.empty'),
  663. trigger: 'blur',
  664. },
  665. ],
  666. },
  667. bankName: {
  668. rules: [
  669. {
  670. required: true,
  671. errorMessage: t('vaildate.input.empty'),
  672. trigger: 'blur',
  673. },
  674. ],
  675. },
  676. bankBranchName: {
  677. rules: [
  678. {
  679. required: true,
  680. errorMessage: t('vaildate.input.empty'),
  681. trigger: 'blur',
  682. },
  683. ],
  684. },
  685. bankAddr: {
  686. rules: [
  687. {
  688. required: true,
  689. errorMessage: t('vaildate.input.empty'),
  690. trigger: 'blur',
  691. },
  692. ],
  693. },
  694. swiftCode: {
  695. rules: [
  696. {
  697. required: true,
  698. errorMessage: t('vaildate.input.empty'),
  699. trigger: 'blur',
  700. },
  701. ],
  702. },
  703. defaultBank: {
  704. rules: [
  705. {
  706. required: true,
  707. errorMessage: t('vaildate.select.empty'),
  708. trigger: 'change',
  709. },
  710. ],
  711. },
  712. bankCode: {
  713. rules: [
  714. {
  715. required: true,
  716. errorMessage: t('vaildate.select.empty'),
  717. trigger: 'change',
  718. },
  719. ],
  720. },
  721. message: {
  722. rules: [
  723. {
  724. required: true,
  725. errorMessage: t('vaildate.input.empty'),
  726. trigger: 'blur',
  727. },
  728. ],
  729. },
  730. address: {
  731. rules: [
  732. {
  733. required: true,
  734. errorMessage: t('vaildate.input.empty'),
  735. trigger: 'blur',
  736. },
  737. ],
  738. },
  739. amount: {
  740. rules: [
  741. {
  742. required: true,
  743. errorMessage: t('vaildate.amount.format'),
  744. },
  745. {
  746. validateFunction: (rule, value, data, callback) => {
  747. if (value && (Number(mAmount.minAmount) > Number(value) || Number(mAmount.maxAmount) < Number(value))) {
  748. callback(t('vaildate.amount.amount') + mAmount.minAmount + ' - ' + mAmount.maxAmount);
  749. return false;
  750. }
  751. if (/^[0-9]+([.]{1}[0-9]{1,2})?$/.test(value)) {
  752. return true;
  753. } else {
  754. callback(t('vaildate.amount.format'));
  755. return false;
  756. }
  757. },
  758. trigger: 'blur',
  759. },
  760. ],
  761. },
  762. agree2: {
  763. rules: [
  764. {
  765. validateFunction: (rule, value, data, callback) => {
  766. if (form.agree2) {
  767. return true;
  768. } else {
  769. callback(t('vaildate.agree.empty'));
  770. return false;
  771. }
  772. },
  773. trigger: 'change',
  774. },
  775. ],
  776. },
  777. agree3: {
  778. rules: [
  779. {
  780. validateFunction: (rule, value, data, callback) => {
  781. if (form.agree3) {
  782. return true;
  783. } else {
  784. callback(t('vaildate.agree.empty'));
  785. return false;
  786. }
  787. },
  788. trigger: 'change',
  789. },
  790. ],
  791. },
  792. agencyNo: {
  793. rules: [
  794. {
  795. required: true,
  796. errorMessage: t('vaildate.input.empty'),
  797. trigger: 'blur',
  798. },
  799. ],
  800. },
  801. cpf: {
  802. rules: [
  803. {
  804. required: true,
  805. errorMessage: t('vaildate.input.empty'),
  806. trigger: 'blur',
  807. },
  808. ],
  809. },
  810. }));
  811. const amountErrorMessage = ref('')
  812. const validateAmount = () => {
  813. const amount = form.amount
  814. if (!amount && amount !== 0) {
  815. amountErrorMessage.value = t('vaildate.amount.format')
  816. return false
  817. }
  818. if (mAmount.minAmount && mAmount.maxAmount) {
  819. const min = Number(mAmount.minAmount);
  820. const max = Number(mAmount.maxAmount);
  821. const numValue = Number(amount);
  822. if (numValue < min || numValue > max) {
  823. amountErrorMessage.value = t('vaildate.amount.amount') + min + '-' + max
  824. return false
  825. }
  826. }
  827. if (!/^[0-9]+([.]{1}[0-9]{1,2})?$/.test(amount)) {
  828. amountErrorMessage.value = t('vaildate.amount.format')
  829. return false
  830. }
  831. amountErrorMessage.value = ''
  832. return true
  833. }
  834. // ---------- 计算属性 ----------
  835. const loginComboxOptions = computed(() => {
  836. return loginOptions.value.map((item, index) => ({
  837. text: item.label,
  838. value: item.login
  839. }))
  840. })
  841. const digitalOptions = computed(() => {
  842. return ruleForm.bankBlockchain.map((item, index) => ({
  843. text: `${item.addressName}-${item.address}`,
  844. value: item.id
  845. }))
  846. })
  847. const groupTitleMap = {
  848. 'Ucard_Wallet': 'card.title',
  849. 'Digital_Currency': 'Custom.Deposit.Channel3',
  850. 'China_UnionPay': 'Custom.Deposit.Channel2',
  851. 'Electronic_Wallet': 'Custom.Deposit.Channel4',
  852. 'International_Transfer': 'Custom.Deposit.Channel1',
  853. 'CHANNEL_TYPE_CARD': 'PersonalManagement.Label.CreditCard',
  854. 'CHANNEL_TYPE_ALI_WALLET': 'Label.Ali'
  855. }
  856. const getWalletLabel = computed(() => {
  857. if (channelData.value.type === 'CHANNEL_TYPE_WALLET') return t('Custom.Withdraw.Title7')
  858. if (channelData.value.type === 'CHANNEL_TYPE_ALI_WALLET') return t('Label.AliAccout')
  859. return ''
  860. })
  861. const bankCardOptions = computed(() => {
  862. return bankList.value.map((item, index) => ({
  863. text: getBankLabel(item),
  864. value: item.id
  865. }))
  866. })
  867. const getBankLabel = (item) => {
  868. if (channelData.value.type === 'BANK' || channelData.value.type === 'BANK_TELEGRAPHIC') {
  869. return `${item.bankName}-${item.bankCardNum}`
  870. } else if (channelData.value.type === 'CHANNEL_TYPE_CARD') {
  871. return item.bankCardNum
  872. }
  873. return ''
  874. }
  875. const bankList = computed(() => {
  876. if (channelData.value.type === 'BANK') return ruleForm.bankInfo
  877. if (channelData.value.type === 'BANK_TELEGRAPHIC') return ruleForm.bankWrit
  878. if (channelData.value.type === 'CHANNEL_TYPE_CARD') return ruleForm.xykInfo
  879. return []
  880. })
  881. const bankOptions = computed(() => {
  882. return bankDate.value.map((item, index) => ({
  883. text: (locale.value === 'cn' || locale.value === 'zhHant') ? item.name : item.enName,
  884. value: item.code
  885. }))
  886. })
  887. // 最后确认
  888. const dialogSuccess = computed(() => dialogCheck.value && dialogVisible.value)
  889. // 最后失败
  890. const dialogError = computed(() => dialogCheck.value && !dialogVisible.value)
  891. const userStore = useUserStore()
  892. const ibInfo = computed(() => {
  893. return userStore?.userInfo?.ibInfo || {}
  894. })
  895. const getInfoStatus5 = computed(() => {
  896. if (ibInfo.value.closeFunctions && ibInfo.value.closeFunctions.length > 0) {
  897. return ibInfo.value.closeFunctions.indexOf("8") !== -1
  898. }
  899. return false
  900. })
  901. const isFree = computed(() => {
  902. let flagVal = false
  903. const startTime1 = "2024/11/01 00:00:00"
  904. const timezone = 2 // 目标时区偏移小时数
  905. const now = new Date()
  906. const utc = now.getTime() + now.getTimezoneOffset() * 60000
  907. const targetTime = new Date(utc + timezone * 3600000).getTime()
  908. const start = new Date(startTime1).getTime()
  909. if (targetTime > start) flagVal = true
  910. return flagVal
  911. })
  912. // ---------- 方法 ----------
  913. const getFreeNumber = async () => {
  914. if (!isFree.value) return
  915. if (getInfoStatus5.value === false) {
  916. dialogFreeNumber.value = true
  917. }
  918. const res = await financialApi.remainingReductionNumber({})
  919. if (res.code === Code.StatusOK) {
  920. FreeNumber.value = res.data || 0
  921. } else {
  922. uni.showToast({ title: res.msg, icon: 'none' })
  923. }
  924. }
  925. const toHome = () => {
  926. uni.reLaunch({ url: "/pages/ib/index" })
  927. InfoStatus5.value = false
  928. }
  929. const isShowDialog = () => {
  930. const startTime1 = "2025/2/15 00:00:00"
  931. const timezone = 8
  932. const now = new Date()
  933. const utc = now.getTime() + now.getTimezoneOffset() * 60000
  934. const targetTime = new Date(utc + timezone * 3600000).getTime()
  935. const start = new Date(startTime1).getTime()
  936. if (targetTime > start) {
  937. dialogCheckInto.value = false
  938. // dialogCheckInto1.value = true
  939. } else {
  940. dialogCheckInto.value = true
  941. dialogCheckInto1.value = false
  942. }
  943. }
  944. const onAgree3Change = (e) => {
  945. form.agree3 = e.detail.value.length > 0
  946. }
  947. const onAgree2Change = (e) => {
  948. form.agree2 = e.detail.value.length > 0
  949. }
  950. const selectChange = () => {
  951. // 强制更新视图
  952. }
  953. // const openAddBankCard = (type) => {
  954. // if (type === "add_bankCard") {
  955. // if (ruleForm.bankInfo.length === 2) {
  956. // $pigeon.MessageConfirm(
  957. // t("Msg.UnionPayCARDS"),
  958. // t("Msg.SystemPrompt"),
  959. // t("Btn.Confirm"),
  960. // t("Btn.Cancel"),
  961. // async () => { },
  962. // () => { }
  963. // )
  964. // } else {
  965. // openType.value = "add_bankCard"
  966. // dialogInfoTradingAdd.value = true
  967. // }
  968. // } else if (type === "add_wireTransfer") {
  969. // if (ruleForm.bankWrit.length === 2) {
  970. // $pigeon.MessageConfirm(
  971. // t("Msg.WireTransfers"),
  972. // t("Msg.SystemPrompt"),
  973. // t("Btn.Confirm"),
  974. // t("Btn.Cancel"),
  975. // async () => { },
  976. // () => { }
  977. // )
  978. // } else {
  979. // openType.value = "add_wireTransfer"
  980. // dialogInfoTradingAdd.value = true
  981. // }
  982. // } else if (type === "add_CreditCard") {
  983. // openType.value = "add_CreditCard"
  984. // dialogInfoTradingAdd.value = true
  985. // } else if (type === "add_bankBlockchain") {
  986. // if (ruleForm.bankBlockchain.length === 2) {
  987. // $pigeon.MessageConfirm(
  988. // t("blockchain.item9"),
  989. // t("Msg.SystemPrompt"),
  990. // t("Btn.Confirm"),
  991. // t("Btn.Cancel"),
  992. // async () => { },
  993. // () => { }
  994. // )
  995. // } else {
  996. // openType.value = "add_bankBlockchain"
  997. // dialogInfoTradingAdd.value = true
  998. // }
  999. // }
  1000. // }
  1001. // 新增银行信息
  1002. const addBankDialogRef = ref(null);
  1003. function openAddBankCard(type) {
  1004. console.log(type, 121212)
  1005. switch (type) {
  1006. case 'add_bankBlockchain':
  1007. openAddCrypto()
  1008. break;
  1009. case 'add_bankCard':
  1010. openAddUnionpay()
  1011. break;
  1012. case 'add_wireTransfer':
  1013. openAddBank()
  1014. break;
  1015. case 'add_CreditCard':
  1016. openAddCredit()
  1017. break;
  1018. }
  1019. }
  1020. function openAddCrypto() {
  1021. const wallets = bankCardOptions.value || []
  1022. console.log(wallets, 12121212);
  1023. // 1️⃣ 没有钱包
  1024. if (wallets.length === 0) {
  1025. addBankDialogRef.value?.open(4);
  1026. return;
  1027. }
  1028. // 2️⃣ 是否存在未认证钱包
  1029. const hasUnAuth = wallets.some(
  1030. item => item.authStatus === 0 || item.approveStatus === 1
  1031. );
  1032. if (hasUnAuth) {
  1033. uni.showToast({
  1034. title: "加密钱包未认证",
  1035. icon: "none"
  1036. });
  1037. return;
  1038. }
  1039. // 3️⃣ 是否达到上限
  1040. if (wallets.length >= 2) {
  1041. uni.showToast({
  1042. title: t('blockchain.item9'),
  1043. icon: "none"
  1044. });
  1045. return;
  1046. }
  1047. // 4️⃣ 正常打开
  1048. addBankDialogRef.value?.open(4);
  1049. }
  1050. function openAddUnionpay() {
  1051. const wallets = bankCardOptions.value || []
  1052. console.log(wallets, 12121212);
  1053. if (wallets.length === 0) {
  1054. addBankDialogRef.value?.open(1);
  1055. return;
  1056. }
  1057. if (wallets.length >= 2) {
  1058. uni.showToast({
  1059. title: t('Msg.UnionPayCARDS'),
  1060. icon: "none"
  1061. });
  1062. return;
  1063. }
  1064. addBankDialogRef.value?.open(1);
  1065. }
  1066. function openAddBank() {
  1067. const wallets = bankCardOptions.value || []
  1068. console.log(wallets, 121212)
  1069. if (wallets.length === 0) {
  1070. addBankDialogRef.value?.open(2);
  1071. return;
  1072. }
  1073. if (wallets.length >= 2) {
  1074. uni.showToast({
  1075. title: t('Msg.WireTransfers'),
  1076. icon: "none"
  1077. });
  1078. return;
  1079. }
  1080. addBankDialogRef.value?.open(2);
  1081. }
  1082. function openAddCredit() {
  1083. const wallets = bankCardOptions.value || []
  1084. console.log(wallets, 12121212);
  1085. if (wallets.length === 0) {
  1086. addBankDialogRef.value?.open(3);
  1087. return;
  1088. }
  1089. addBankDialogRef.value?.open(3);
  1090. }
  1091. // 新增银行信息成功回调
  1092. const addSuccess = (e) => {
  1093. getBankInfo();
  1094. }
  1095. const closeDiaAdd = () => {
  1096. dialogInfoTradingAdd.value = false
  1097. }
  1098. const closeAdd = (val) => {
  1099. dialogInfoTradingAdd.value = val
  1100. }
  1101. const confirmToReload = () => {
  1102. dialogInfoTradingAdd.value = false
  1103. getBankInfo()
  1104. }
  1105. const getBankInfo = async () => {
  1106. const res = await financialApi.customBankList({})
  1107. if (res.code === Code.StatusOK) {
  1108. ruleForm.bankInfo = []
  1109. ruleForm.bankWrit = []
  1110. ruleForm.xykInfo = []
  1111. ruleForm.bankBlockchain = []
  1112. res.data.forEach(item => {
  1113. if (item.type === 1) {
  1114. item.customBankCode = item.bankCode
  1115. item.bankCode = null
  1116. ruleForm.bankInfo.push(item)
  1117. } else if (item.type === 2) {
  1118. item.customBankCode = item.bankCode
  1119. item.bankCode = null
  1120. ruleForm.bankWrit.push(item)
  1121. } else if (item.type === 3) {
  1122. item.customBankCode = item.bankCode
  1123. item.bankCode = null
  1124. item.expiryYearMonth = (item.expiryYear || "") + "/" + (item.expiryMonth || "")
  1125. ruleForm.xykInfo.push(item)
  1126. } else if (item.type === 4) {
  1127. item.customBankCode = item.bankCode
  1128. item.bankCode = null
  1129. ruleForm.bankBlockchain.push(item)
  1130. }
  1131. if (channelData.value.type === "BANK" && item.defaultBank && item.type === 1) {
  1132. Object.assign(form, item)
  1133. myId.value = form.id
  1134. }
  1135. if (channelData.value.type === "BANK_TELEGRAPHIC" && item.defaultBank && item.type === 2) {
  1136. Object.assign(form, item)
  1137. myId.value = form.id
  1138. }
  1139. if (channelData.value.type === "CHANNEL_TYPE_CARD" && item.defaultBank && item.type === 3) {
  1140. myId.value = item.id
  1141. Object.assign(form, item)
  1142. }
  1143. if (channelData.value.type === "DIGITAL_CURRENCY" && item.defaultBank && item.type === 4) {
  1144. myId.value = item.id
  1145. Object.assign(form, item)
  1146. }
  1147. })
  1148. } else {
  1149. uni.showToast({ title: res.msg, icon: 'none' })
  1150. }
  1151. }
  1152. const onDigitalCurrencyChange = (val) => {
  1153. const item = ruleForm.bankBlockchain.find(b => b.id === val)
  1154. chooseBank(item.id)
  1155. }
  1156. const chooseBank = (id) => {
  1157. const item = bankList.value.find(b => b.id === id)
  1158. // if (!item) {
  1159. // showToast(t("Msg.item11"));
  1160. // return;
  1161. // }
  1162. let codeCache = ""
  1163. if (form.bankCode) codeCache = form.bankCode
  1164. Object.assign(form, item)
  1165. form.agree2 = false
  1166. form.agree3 = false
  1167. if (channelData.value.type === "BANK_TELEGRAPHIC") {
  1168. form.currency = "USD"
  1169. if (codeCache) form.bankCode = codeCache
  1170. }
  1171. }
  1172. const openTips = async () => {
  1173. if (channelData.value.type === "BANK_TELEGRAPHIC" && !myId.value) {
  1174. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1175. return
  1176. }
  1177. if (channelData.value.type === "BANK" && !myId.value) {
  1178. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1179. return
  1180. }
  1181. if (channelData.value.type === "CHANNEL_TYPE_CARD" && !myId.value) {
  1182. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1183. return
  1184. }
  1185. if (channelData.value.type === "DIGITAL_CURRENCY" && !myId.value) {
  1186. $pigeon.MessageWarning(t("blockchain.item11"))
  1187. return
  1188. }
  1189. // 此处模拟表单验证,实际应调用 uni-forms 的 validate
  1190. try {
  1191. if (formRef.value) {
  1192. const valid = await formRef.value.validate()
  1193. if (dialogTipsIsShow.value) {
  1194. dialogTips.value = true
  1195. } else {
  1196. submit("form")
  1197. }
  1198. }
  1199. } catch (error) {
  1200. if (error instanceof Array) {
  1201. showToast(error[0].errorMessage);
  1202. return
  1203. } else {
  1204. RES.value = error.msg;
  1205. }
  1206. }
  1207. }
  1208. const openTipsConfirm = () => {
  1209. dialogCheckConfirm.value = false
  1210. submit("form")
  1211. }
  1212. const closeTipsConfirm = () => {
  1213. dialogTips.value = false
  1214. dialogCheckConfirm.value = true
  1215. }
  1216. const closeDia = () => {
  1217. resetForm()
  1218. isStep3.value = false
  1219. step2.value = false
  1220. dialogCheck.value = false
  1221. dialogVisible.value = false
  1222. showTable()
  1223. }
  1224. const qrCode = async (serial) => {
  1225. metaInfo.value = getMetaInfo()
  1226. const res = await customApi.getWebsdkLink1({
  1227. serial,
  1228. metaInfo: metaInfo.value
  1229. })
  1230. if (res.code === Code.StatusOK) {
  1231. text1.value = JSON.parse(res.data).url
  1232. dialogKyc.value = true
  1233. flag.value = false
  1234. } else {
  1235. flag.value = false
  1236. }
  1237. }
  1238. const submit = async (formName) => {
  1239. if (channelData.value.type === "BANK_TELEGRAPHIC" && !myId.value) {
  1240. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1241. return
  1242. }
  1243. if (channelData.value.type === "BANK" && !myId.value) {
  1244. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1245. return
  1246. }
  1247. if (channelData.value.type === "CHANNEL_TYPE_CARD" && !myId.value) {
  1248. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1249. return
  1250. }
  1251. if (channelData.value.type === "DIGITAL_CURRENCY" && !myId.value) {
  1252. $pigeon.MessageWarning(t("blockchain.item11"))
  1253. return
  1254. }
  1255. // 模拟表单验证
  1256. try {
  1257. if (formRef.value) {
  1258. await formRef.value.validate()
  1259. if (flag.value) return
  1260. flag.value = true
  1261. dialogCheckWait.value = true
  1262. form.amount = Number(form.amount)
  1263. let res
  1264. if (channelData.value.type === "DIGITAL_CURRENCY") {
  1265. res = await financialApi.ibWithdrawAapplyDigitalCurrency(channelData.value.requestUrl, {
  1266. // login: loginValue.value,
  1267. payType: channelData.value.code,
  1268. ...form
  1269. })
  1270. } else if (["CHANNEL_TYPE_WALLET", "UCARD_WALLET", "CHANNEL_TYPE_ALI_WALLET"].includes(channelData.value.type)) {
  1271. res = await financialApi.ibWithdrawAapplyDigitalCurrency(channelData.value.requestUrl, {
  1272. // login: loginValue.value,
  1273. payType: channelData.value.code,
  1274. ...form
  1275. })
  1276. } else if (channelData.value.type === "BANK" || channelData.value.type === "BANK_TELEGRAPHIC") {
  1277. res = await financialApi.ibWithdrawApplyBank(channelData.value.requestUrl, {
  1278. // login: loginValue.value,
  1279. payType: channelData.value.code,
  1280. ...form
  1281. })
  1282. } else if (channelData.value.type === "CHANNEL_TYPE_CARD") {
  1283. res = await financialApi.WithdrawApplyBank(channelData.value.requestUrl, {
  1284. // login: loginValue.value,
  1285. payType: channelData.value.code,
  1286. ...form
  1287. })
  1288. }
  1289. if (res && res.code === Code.StatusOK) {
  1290. dialogCheck.value = true
  1291. dialogVisible.value = true
  1292. // qrCode(res.data)
  1293. flag.value = false
  1294. } else {
  1295. RES.value = res?.msg || "error"
  1296. dialogCheck.value = true
  1297. dialogVisible.value = false
  1298. flag.value = false
  1299. }
  1300. dialogCheckWait.value = false
  1301. }
  1302. } catch (error) {
  1303. if (error instanceof Array) {
  1304. showToast(error[0].errorMessage);
  1305. return
  1306. } else {
  1307. RES.value = error.msg;
  1308. dialogCheck.value = true;
  1309. dialogCheckWait.value = false;
  1310. dialogVisible.value = false;
  1311. flag.value = false;
  1312. }
  1313. }
  1314. }
  1315. const Initialize = () => {
  1316. loginValue.value = ""
  1317. isStep3.value = false
  1318. step2.value = false
  1319. step3.value = false
  1320. showTable()
  1321. }
  1322. const isShowStep3 = (row) => {
  1323. userStore.savePaymentChannel(row.code)
  1324. userStore.saveChannelList(tableData)
  1325. router.push(`/pages/ib/withdraw`)
  1326. return
  1327. if (row.bankValid && isChannel.value) {
  1328. getBankList(row)
  1329. isChannel.value = false
  1330. step3.value = true
  1331. channelData.value = row
  1332. mAmount.minAmount = row.minAmount
  1333. mAmount.maxAmount = row.maxAmount
  1334. } else {
  1335. step3.value = true
  1336. bankDate.value = []
  1337. channelData.value = row
  1338. mAmount.minAmount = row.minAmount
  1339. mAmount.maxAmount = row.maxAmount
  1340. }
  1341. if (row.code === "UNION_PAY_TELEGRAPHIC") {
  1342. WireTransferAccount.value = JSON.parse(row.property)
  1343. }
  1344. if (["BANK", "BANK_TELEGRAPHIC", "CHANNEL_TYPE_CARD", "DIGITAL_CURRENCY"].includes(row.type)) {
  1345. getBankInfo()
  1346. step3_bank_cur.value = "bank"
  1347. form.login = loginValue.value
  1348. form.payType = row.code
  1349. bankPayType.value = row.code
  1350. }
  1351. // 重置 tableData
  1352. tableData.International_Transfer = []
  1353. tableData.China_UnionPay = []
  1354. tableData.Digital_Currency = []
  1355. tableData.CHANNEL_TYPE_CARD = []
  1356. tableData.Electronic_Wallet = []
  1357. tableData.CHANNEL_TYPE_ALI_WALLET = []
  1358. tableData.UCARD_WALLET = []
  1359. if (row.type === "BANK_TELEGRAPHIC") tableData.International_Transfer[0] = row
  1360. if (row.type === "BANK") tableData.China_UnionPay[0] = row
  1361. if (row.type === "DIGITAL_CURRENCY") tableData.Digital_Currency[0] = row
  1362. if (row.type === "CHANNEL_TYPE_WALLET") tableData.Electronic_Wallet[0] = row
  1363. if (row.type === "UCARD_WALLET") tableData.UCARD_WALLET[0] = row
  1364. if (row.type === "CHANNEL_TYPE_CARD") tableData.CHANNEL_TYPE_CARD[0] = row
  1365. if (row.type === "CHANNEL_TYPE_ALI_WALLET") tableData.CHANNEL_TYPE_ALI_WALLET[0] = row
  1366. introduce.introduce = row.introduce
  1367. introduce.enIntroduce = row.enIntroduce
  1368. }
  1369. const showTable = () => {
  1370. resetForm()
  1371. myId.value = null
  1372. step3.value = false
  1373. isStep3.value = false
  1374. isChannel.value = true
  1375. getDepositList()
  1376. // 重置表单
  1377. form.currency = "USD"
  1378. // 其他重置...
  1379. }
  1380. const getDateList = async () => {
  1381. const res = await customApi.CustomDropdown({ platform: "" })
  1382. if (res.code === Code.StatusOK) {
  1383. loginOptions.value = res.data
  1384. } else {
  1385. uni.showToast({ title: res.msg, icon: 'none' })
  1386. }
  1387. }
  1388. const getDepositList = async () => {
  1389. pictLoading.value = true
  1390. tableData.International_Transfer = []
  1391. tableData.China_UnionPay = []
  1392. tableData.Digital_Currency = []
  1393. tableData.CHANNEL_TYPE_CARD = []
  1394. tableData.Electronic_Wallet = []
  1395. tableData.CHANNEL_TYPE_ALI_WALLET = []
  1396. tableData.UCARD_WALLET = []
  1397. const res = await financialApi.RemitChannelList({})
  1398. if (res.code === Code.StatusOK) {
  1399. res.data.forEach(item => {
  1400. if (item.type === "BANK_TELEGRAPHIC") tableData.International_Transfer.push(item)
  1401. if (item.type === "BANK") tableData.China_UnionPay.push(item)
  1402. if (item.type === "DIGITAL_CURRENCY") tableData.Digital_Currency.push(item)
  1403. if (item.type === "CHANNEL_TYPE_WALLET") tableData.Electronic_Wallet.push(item)
  1404. if (item.type === "UCARD_WALLET") tableData.UCARD_WALLET.push(item)
  1405. if (item.type === "CHANNEL_TYPE_CARD") tableData.CHANNEL_TYPE_CARD.push(item)
  1406. if (item.type === "CHANNEL_TYPE_ALI_WALLET") tableData.CHANNEL_TYPE_ALI_WALLET.push(item)
  1407. })
  1408. pictLoading.value = false
  1409. } else {
  1410. uni.showToast({ title: res.msg, icon: 'none' })
  1411. pictLoading.value = false
  1412. }
  1413. }
  1414. const getBankList = async (row) => {
  1415. const res = await financialApi.BankList({ channelCode: row.code })
  1416. if (res.code === Code.StatusOK) {
  1417. const bank = res.data
  1418. const data = []
  1419. bank.forEach(j => {
  1420. if (!j.minAmount && j.minAmount !== 0) j.minAmount = row.minAmount
  1421. if (!j.maxAmount && j.maxAmount !== 0) j.maxAmount = row.maxAmount
  1422. j.payType = row.code
  1423. data.push(j)
  1424. })
  1425. bankDate.value = data
  1426. } else {
  1427. uni.showToast({ title: res.msg, icon: 'none' })
  1428. }
  1429. }
  1430. const cancelBank = () => {
  1431. dialogNewBank.value = false
  1432. // 重置 params 表单
  1433. Object.assign(params, {
  1434. bankCardNum: "",
  1435. bankUname: "",
  1436. bankName: "",
  1437. bankBranchName: "",
  1438. bankAddr: "",
  1439. swiftCode: "",
  1440. bankFront: "",
  1441. bankBack: "",
  1442. defaultBank: false
  1443. })
  1444. }
  1445. // ---------- 生命周期 ----------
  1446. onMounted(() => {
  1447. if (getInfoStatus5.value) {
  1448. InfoStatus5.value = true
  1449. return
  1450. }
  1451. getFreeNumber()
  1452. isShowDialog()
  1453. // getDateList()
  1454. getDepositList()
  1455. })
  1456. // 监听 value 变化
  1457. watch(loginValue, (newVal) => {
  1458. if (newVal) {
  1459. step2.value = true
  1460. showTable()
  1461. }
  1462. })
  1463. // 监听 form.amount 变化
  1464. watch(() => form.amount, (newVal) => {
  1465. if (newVal && channelData.value.rate) {
  1466. form.amount1 = (newVal * channelData.value.rate).toFixed(2)
  1467. }
  1468. })
  1469. </script>
  1470. <style lang="scss" scoped>
  1471. @import "@/uni.scss";
  1472. .custom-withdraw {
  1473. .box {
  1474. margin-bottom: px2rpx(20);
  1475. .b-card {
  1476. border: 1px solid var(--bs-border-color);
  1477. border-radius: px2rpx(12);
  1478. padding: px2rpx(20);
  1479. box-shadow: 0 px2rpx(4) px2rpx(12) rgba(0, 0, 0, 0.03);
  1480. .card-top {
  1481. .tit {
  1482. font-size: px2rpx(16);
  1483. font-weight: 600;
  1484. margin-bottom: px2rpx(16);
  1485. display: flex;
  1486. align-items: center;
  1487. color: var(--bs-heading-color);
  1488. position: relative;
  1489. padding-left: 20px;
  1490. &:after {
  1491. content: '';
  1492. position: absolute;
  1493. left: 0;
  1494. top: 50%;
  1495. transform: translateY(-50%);
  1496. width: 0;
  1497. height: 0;
  1498. border-top: 6px solid transparent;
  1499. border-bottom: 6px solid transparent;
  1500. border-left: 8px solid currentColor;
  1501. }
  1502. .iconfont {
  1503. margin-right: px2rpx(8);
  1504. color: var(--color-primary);
  1505. font-size: px2rpx(18);
  1506. }
  1507. }
  1508. }
  1509. .channelType {
  1510. font-size: px2rpx(15);
  1511. font-weight: 600;
  1512. margin: px2rpx(24) 0 px2rpx(12);
  1513. color: var(--color-navy-700);
  1514. padding-left: px2rpx(8);
  1515. border-left: px2rpx(4) solid var(--color-primary);
  1516. }
  1517. }
  1518. }
  1519. .reselect-btn {
  1520. margin-top: px2rpx(20);
  1521. display: flex;
  1522. justify-content: flex-end;
  1523. }
  1524. .s-btn {
  1525. &.reselect {
  1526. background-color: var(--color-zinc-100);
  1527. color: var(--color-navy-700);
  1528. border: none;
  1529. font-size: px2rpx(14);
  1530. padding: px2rpx(8) px2rpx(20);
  1531. border-radius: px2rpx(8);
  1532. &:active {
  1533. background-color: var(--color-zinc-200);
  1534. }
  1535. }
  1536. &[type="primary"] {
  1537. width: 100%;
  1538. height: px2rpx(48);
  1539. background-color: #cf1322;
  1540. color: var(--bs-emphasis-color);
  1541. border-radius: px2rpx(12);
  1542. font-size: px2rpx(16);
  1543. font-weight: 600;
  1544. display: flex;
  1545. align-items: center;
  1546. justify-content: center;
  1547. border: none;
  1548. margin-top: px2rpx(30);
  1549. transition: all 0.2s;
  1550. &:active {
  1551. transform: scale(0.98);
  1552. background-color: #cf1322;
  1553. }
  1554. }
  1555. }
  1556. .add-back {
  1557. display: flex;
  1558. justify-content: space-between;
  1559. align-items: center;
  1560. margin-bottom: px2rpx(12);
  1561. padding: px2rpx(12) px2rpx(16);
  1562. background: var(--color-zinc-100);
  1563. border-radius: px2rpx(8);
  1564. text {
  1565. font-size: px2rpx(14);
  1566. color: var(--color-navy-700);
  1567. font-weight: 500;
  1568. }
  1569. .add-btn {
  1570. color: var(--color-primary);
  1571. font-weight: 600;
  1572. text-decoration: underline;
  1573. &:active {
  1574. opacity: 0.7;
  1575. }
  1576. }
  1577. }
  1578. .proof {
  1579. margin-top: px2rpx(8);
  1580. border: px2rpx(1) dashed var(--color-zinc-300);
  1581. border-radius: px2rpx(8);
  1582. padding: px2rpx(8);
  1583. display: flex;
  1584. justify-content: center;
  1585. align-items: center;
  1586. background: var(--color-zinc-50);
  1587. .state {
  1588. padding: px2rpx(4) px2rpx(12);
  1589. border-radius: px2rpx(4);
  1590. font-size: px2rpx(12);
  1591. font-weight: bold;
  1592. }
  1593. }
  1594. .agree {
  1595. margin: px2rpx(24) 0;
  1596. display: flex;
  1597. align-items: flex-start;
  1598. .checkbox {
  1599. display: flex;
  1600. align-items: flex-start;
  1601. gap: px2rpx(8);
  1602. :deep(uni-checkbox .uni-checkbox-input) {
  1603. border-radius: px2rpx(4);
  1604. width: px2rpx(18);
  1605. height: px2rpx(18);
  1606. }
  1607. text {
  1608. font-size: px2rpx(13);
  1609. color: var(--color-zinc-500);
  1610. line-height: 1.5;
  1611. }
  1612. }
  1613. }
  1614. .step3-attention {
  1615. // background: var(--color-error-50, #fff1f0);
  1616. border-radius: px2rpx(12);
  1617. margin-bottom: px2rpx(20);
  1618. .tips {
  1619. line-height: 1.8;
  1620. font-size: px2rpx(12);
  1621. color: #909399;
  1622. background-color: rgba(var(--bs-body-bg-rgb), 1) !important;
  1623. padding: px2rpx(12);
  1624. border-radius: px2rpx(4);
  1625. border-left: px2rpx(2) solid #cf1322;
  1626. .title {
  1627. font-weight: 600;
  1628. margin-bottom: px2rpx(6);
  1629. color: #606266;
  1630. }
  1631. }
  1632. .attention {
  1633. font-size: px2rpx(14);
  1634. // color: var(--color-error-600, #cf1322);
  1635. line-height: 1.6;
  1636. }
  1637. .btn-bottom {
  1638. margin-top: px2rpx(20);
  1639. display: flex;
  1640. justify-content: center;
  1641. .btn {
  1642. background: var(--color-error-600, #cf1322);
  1643. color: var(--bs-emphasis-color);
  1644. padding: px2rpx(10) px2rpx(48);
  1645. border-radius: px2rpx(24);
  1646. font-size: px2rpx(15);
  1647. font-weight: 700;
  1648. box-shadow: 0 px2rpx(4) px2rpx(10) rgba(207, 19, 34, 0.2);
  1649. transition: all 0.2s;
  1650. &:active {
  1651. transform: scale(0.96);
  1652. opacity: 0.8;
  1653. }
  1654. }
  1655. }
  1656. }
  1657. :deep(.base-info-form) {
  1658. .uni-row1 {
  1659. .uni-col {
  1660. padding: 0 px2rpx(10) !important;
  1661. }
  1662. .uni-forms-item {
  1663. min-height: px2rpx(36);
  1664. margin-bottom: px2rpx(28);
  1665. }
  1666. .uni-select,
  1667. .uni-combox,
  1668. .uni-easyinput__content,
  1669. .uni-date-editor--x {
  1670. border: none !important;
  1671. background-color: var(--color-zinc-100) !important;
  1672. border-radius: px2rpx(8) !important;
  1673. }
  1674. .uni-date-x {
  1675. border: none !important;
  1676. background-color: rgba(195, 195, 195, 0) !important;
  1677. }
  1678. .uni-easyinput__content-input {
  1679. height: px2rpx(35) !important;
  1680. }
  1681. }
  1682. }
  1683. @keyframes rotate {
  1684. from {
  1685. transform: rotate(0deg);
  1686. }
  1687. to {
  1688. transform: rotate(360deg);
  1689. }
  1690. }
  1691. }
  1692. </style>