withdraw-select.vue 70 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787
  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-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 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="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. disable: item.authStatus == 0
  846. }))
  847. })
  848. const groupTitleMap = {
  849. 'Ucard_Wallet': 'card.title',
  850. 'Digital_Currency': 'Custom.Deposit.Channel3',
  851. 'China_UnionPay': 'Custom.Deposit.Channel2',
  852. 'Electronic_Wallet': 'Custom.Deposit.Channel4',
  853. 'International_Transfer': 'Custom.Deposit.Channel1',
  854. 'CHANNEL_TYPE_CARD': 'PersonalManagement.Label.CreditCard',
  855. 'CHANNEL_TYPE_ALI_WALLET': 'Label.Ali'
  856. }
  857. const getWalletLabel = computed(() => {
  858. if (channelData.value.type === 'CHANNEL_TYPE_WALLET') return t('Custom.Withdraw.Title7')
  859. if (channelData.value.type === 'CHANNEL_TYPE_ALI_WALLET') return t('Label.AliAccout')
  860. return ''
  861. })
  862. const bankCardOptions = computed(() => {
  863. return bankList.value.map((item, index) => ({
  864. text: getBankLabel(item),
  865. value: item.id
  866. }))
  867. })
  868. const getBankLabel = (item) => {
  869. if (channelData.value.type === 'BANK' || channelData.value.type === 'BANK_TELEGRAPHIC') {
  870. return `${item.bankName}-${item.bankCardNum}`
  871. } else if (channelData.value.type === 'CHANNEL_TYPE_CARD') {
  872. return item.bankCardNum
  873. }
  874. return ''
  875. }
  876. const bankList = computed(() => {
  877. if (channelData.value.type === 'BANK') return ruleForm.bankInfo
  878. if (channelData.value.type === 'BANK_TELEGRAPHIC') return ruleForm.bankWrit
  879. if (channelData.value.type === 'CHANNEL_TYPE_CARD') return ruleForm.xykInfo
  880. return []
  881. })
  882. const bankOptions = computed(() => {
  883. return bankDate.value.map((item, index) => ({
  884. text: (locale.value === 'cn' || locale.value === 'zhHant') ? item.name : item.enName,
  885. value: item.code
  886. }))
  887. })
  888. // 最后确认
  889. const dialogSuccess = computed(() => dialogCheck.value && dialogVisible.value)
  890. // 最后失败
  891. const dialogError = computed(() => dialogCheck.value && !dialogVisible.value)
  892. const userStore = useUserStore()
  893. const ibInfo = computed(() => {
  894. return userStore?.userInfo?.ibInfo || {}
  895. })
  896. const getInfoStatus5 = computed(() => {
  897. if (ibInfo.value.closeFunctions && ibInfo.value.closeFunctions.length > 0) {
  898. return ibInfo.value.closeFunctions.indexOf("8") !== -1
  899. }
  900. return false
  901. })
  902. const isFree = computed(() => {
  903. let flagVal = false
  904. const startTime1 = "2024/11/01 00:00:00"
  905. const timezone = 2 // 目标时区偏移小时数
  906. const now = new Date()
  907. const utc = now.getTime() + now.getTimezoneOffset() * 60000
  908. const targetTime = new Date(utc + timezone * 3600000).getTime()
  909. const start = new Date(startTime1).getTime()
  910. if (targetTime > start) flagVal = true
  911. return flagVal
  912. })
  913. // ---------- 方法 ----------
  914. const getFreeNumber = async () => {
  915. if (!isFree.value) return
  916. if (getInfoStatus5.value === false) {
  917. dialogFreeNumber.value = true
  918. }
  919. const res = await financialApi.remainingReductionNumber({})
  920. if (res.code === Code.StatusOK) {
  921. FreeNumber.value = res.data || 0
  922. } else {
  923. uni.showToast({ title: res.msg, icon: 'none' })
  924. }
  925. }
  926. const toHome = () => {
  927. uni.reLaunch({ url: "/pages/ib/index" })
  928. InfoStatus5.value = false
  929. }
  930. const isShowDialog = () => {
  931. const startTime1 = "2025/2/15 00:00:00"
  932. const timezone = 8
  933. const now = new Date()
  934. const utc = now.getTime() + now.getTimezoneOffset() * 60000
  935. const targetTime = new Date(utc + timezone * 3600000).getTime()
  936. const start = new Date(startTime1).getTime()
  937. if (targetTime > start) {
  938. dialogCheckInto.value = false
  939. // dialogCheckInto1.value = true
  940. } else {
  941. dialogCheckInto.value = true
  942. dialogCheckInto1.value = false
  943. }
  944. }
  945. const onAgree3Change = (e) => {
  946. form.agree3 = e.detail.value.length > 0
  947. }
  948. const onAgree2Change = (e) => {
  949. form.agree2 = e.detail.value.length > 0
  950. }
  951. const selectChange = () => {
  952. // 强制更新视图
  953. }
  954. // const openAddBankCard = (type) => {
  955. // if (type === "add_bankCard") {
  956. // if (ruleForm.bankInfo.length === 2) {
  957. // $pigeon.MessageConfirm(
  958. // t("Msg.UnionPayCARDS"),
  959. // t("Msg.SystemPrompt"),
  960. // t("Btn.Confirm"),
  961. // t("Btn.Cancel"),
  962. // async () => { },
  963. // () => { }
  964. // )
  965. // } else {
  966. // openType.value = "add_bankCard"
  967. // dialogInfoTradingAdd.value = true
  968. // }
  969. // } else if (type === "add_wireTransfer") {
  970. // if (ruleForm.bankWrit.length === 2) {
  971. // $pigeon.MessageConfirm(
  972. // t("Msg.WireTransfers"),
  973. // t("Msg.SystemPrompt"),
  974. // t("Btn.Confirm"),
  975. // t("Btn.Cancel"),
  976. // async () => { },
  977. // () => { }
  978. // )
  979. // } else {
  980. // openType.value = "add_wireTransfer"
  981. // dialogInfoTradingAdd.value = true
  982. // }
  983. // } else if (type === "add_CreditCard") {
  984. // openType.value = "add_CreditCard"
  985. // dialogInfoTradingAdd.value = true
  986. // } else if (type === "add_bankBlockchain") {
  987. // if (ruleForm.bankBlockchain.length === 2) {
  988. // $pigeon.MessageConfirm(
  989. // t("blockchain.item9"),
  990. // t("Msg.SystemPrompt"),
  991. // t("Btn.Confirm"),
  992. // t("Btn.Cancel"),
  993. // async () => { },
  994. // () => { }
  995. // )
  996. // } else {
  997. // openType.value = "add_bankBlockchain"
  998. // dialogInfoTradingAdd.value = true
  999. // }
  1000. // }
  1001. // }
  1002. // 新增银行信息
  1003. const addBankDialogRef = ref(null);
  1004. function openAddBankCard(type) {
  1005. console.log(type, 121212)
  1006. switch (type) {
  1007. case 'add_bankBlockchain':
  1008. openAddCrypto()
  1009. break;
  1010. case 'add_bankCard':
  1011. openAddUnionpay()
  1012. break;
  1013. case 'add_wireTransfer':
  1014. openAddBank()
  1015. break;
  1016. case 'add_CreditCard':
  1017. openAddCredit()
  1018. break;
  1019. }
  1020. }
  1021. function openAddCrypto() {
  1022. const wallets = bankCardOptions.value || []
  1023. console.log(wallets, 12121212);
  1024. // 1️⃣ 没有钱包
  1025. if (wallets.length === 0) {
  1026. addBankDialogRef.value?.open(4);
  1027. return;
  1028. }
  1029. // 2️⃣ 是否存在未认证钱包
  1030. const hasUnAuth = wallets.some(
  1031. item => item.authStatus === 0 || item.approveStatus === 1
  1032. );
  1033. if (hasUnAuth) {
  1034. uni.showToast({
  1035. title: "加密钱包未认证",
  1036. icon: "none"
  1037. });
  1038. return;
  1039. }
  1040. // 3️⃣ 是否达到上限
  1041. if (wallets.length >= 2) {
  1042. uni.showToast({
  1043. title: t('blockchain.item9'),
  1044. icon: "none"
  1045. });
  1046. return;
  1047. }
  1048. // 4️⃣ 正常打开
  1049. addBankDialogRef.value?.open(4);
  1050. }
  1051. function openAddUnionpay() {
  1052. const wallets = bankCardOptions.value || []
  1053. console.log(wallets, 12121212);
  1054. if (wallets.length === 0) {
  1055. addBankDialogRef.value?.open(1);
  1056. return;
  1057. }
  1058. if (wallets.length >= 2) {
  1059. uni.showToast({
  1060. title: t('Msg.UnionPayCARDS'),
  1061. icon: "none"
  1062. });
  1063. return;
  1064. }
  1065. addBankDialogRef.value?.open(1);
  1066. }
  1067. function openAddBank() {
  1068. const wallets = bankCardOptions.value || []
  1069. console.log(wallets, 121212)
  1070. if (wallets.length === 0) {
  1071. addBankDialogRef.value?.open(2);
  1072. return;
  1073. }
  1074. if (wallets.length >= 2) {
  1075. uni.showToast({
  1076. title: t('Msg.WireTransfers'),
  1077. icon: "none"
  1078. });
  1079. return;
  1080. }
  1081. addBankDialogRef.value?.open(2);
  1082. }
  1083. function openAddCredit() {
  1084. const wallets = bankCardOptions.value || []
  1085. console.log(wallets, 12121212);
  1086. if (wallets.length === 0) {
  1087. addBankDialogRef.value?.open(3);
  1088. return;
  1089. }
  1090. addBankDialogRef.value?.open(3);
  1091. }
  1092. // 新增银行信息成功回调
  1093. const addSuccess = (e) => {
  1094. getBankInfo();
  1095. }
  1096. const closeDiaAdd = () => {
  1097. dialogInfoTradingAdd.value = false
  1098. }
  1099. const closeAdd = (val) => {
  1100. dialogInfoTradingAdd.value = val
  1101. }
  1102. const confirmToReload = () => {
  1103. dialogInfoTradingAdd.value = false
  1104. getBankInfo()
  1105. }
  1106. const getBankInfo = async () => {
  1107. const res = await financialApi.customBankList({})
  1108. if (res.code === Code.StatusOK) {
  1109. ruleForm.bankInfo = []
  1110. ruleForm.bankWrit = []
  1111. ruleForm.xykInfo = []
  1112. ruleForm.bankBlockchain = []
  1113. res.data.forEach(item => {
  1114. if (item.type === 1) {
  1115. item.customBankCode = item.bankCode
  1116. item.bankCode = null
  1117. ruleForm.bankInfo.push(item)
  1118. } else if (item.type === 2) {
  1119. item.customBankCode = item.bankCode
  1120. item.bankCode = null
  1121. ruleForm.bankWrit.push(item)
  1122. } else if (item.type === 3) {
  1123. item.customBankCode = item.bankCode
  1124. item.bankCode = null
  1125. item.expiryYearMonth = (item.expiryYear || "") + "/" + (item.expiryMonth || "")
  1126. ruleForm.xykInfo.push(item)
  1127. } else if (item.type === 4) {
  1128. item.customBankCode = item.bankCode
  1129. item.bankCode = null
  1130. ruleForm.bankBlockchain.push(item)
  1131. }
  1132. if (channelData.value.type === "BANK" && item.defaultBank && item.type === 1) {
  1133. Object.assign(form, item)
  1134. myId.value = form.id
  1135. }
  1136. if (channelData.value.type === "BANK_TELEGRAPHIC" && item.defaultBank && item.type === 2) {
  1137. Object.assign(form, item)
  1138. myId.value = form.id
  1139. }
  1140. if (channelData.value.type === "CHANNEL_TYPE_CARD" && item.defaultBank && item.type === 3) {
  1141. myId.value = item.id
  1142. Object.assign(form, item)
  1143. }
  1144. if (channelData.value.type === "DIGITAL_CURRENCY" && item.defaultBank && item.type === 4) {
  1145. myId.value = item.id
  1146. Object.assign(form, item)
  1147. }
  1148. })
  1149. } else {
  1150. uni.showToast({ title: res.msg, icon: 'none' })
  1151. }
  1152. }
  1153. const onDigitalCurrencyChange = (val) => {
  1154. const item = ruleForm.bankBlockchain.find(b => b.id === val)
  1155. chooseBank(item.id)
  1156. }
  1157. const chooseBank = (id) => {
  1158. const item = bankList.value.find(b => b.id === id)
  1159. // if (!item) {
  1160. // showToast(t("Msg.item11"));
  1161. // return;
  1162. // }
  1163. let codeCache = ""
  1164. if (form.bankCode) codeCache = form.bankCode
  1165. Object.assign(form, item)
  1166. form.agree2 = false
  1167. form.agree3 = false
  1168. if (channelData.value.type === "BANK_TELEGRAPHIC") {
  1169. form.currency = "USD"
  1170. if (codeCache) form.bankCode = codeCache
  1171. }
  1172. }
  1173. const openTips = async () => {
  1174. if (channelData.value.type === "BANK_TELEGRAPHIC" && !myId.value) {
  1175. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1176. return
  1177. }
  1178. if (channelData.value.type === "BANK" && !myId.value) {
  1179. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1180. return
  1181. }
  1182. if (channelData.value.type === "CHANNEL_TYPE_CARD" && !myId.value) {
  1183. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1184. return
  1185. }
  1186. if (channelData.value.type === "DIGITAL_CURRENCY" && !myId.value) {
  1187. $pigeon.MessageWarning(t("blockchain.item11"))
  1188. return
  1189. }
  1190. // 此处模拟表单验证,实际应调用 uni-forms 的 validate
  1191. try {
  1192. if (formRef.value) {
  1193. const valid = await formRef.value.validate()
  1194. if (dialogTipsIsShow.value) {
  1195. dialogTips.value = true
  1196. } else {
  1197. submit("form")
  1198. }
  1199. }
  1200. } catch (error) {
  1201. if (error instanceof Array) {
  1202. showToast(error[0].errorMessage);
  1203. return
  1204. } else {
  1205. RES.value = error.msg;
  1206. }
  1207. }
  1208. }
  1209. const openTipsConfirm = () => {
  1210. dialogCheckConfirm.value = false
  1211. submit("form")
  1212. }
  1213. const closeTipsConfirm = () => {
  1214. dialogTips.value = false
  1215. dialogCheckConfirm.value = true
  1216. }
  1217. const closeDia = () => {
  1218. resetForm()
  1219. isStep3.value = false
  1220. step2.value = false
  1221. dialogCheck.value = false
  1222. dialogVisible.value = false
  1223. showTable()
  1224. }
  1225. const qrCode = async (serial) => {
  1226. metaInfo.value = getMetaInfo()
  1227. const res = await customApi.getWebsdkLink1({
  1228. serial,
  1229. metaInfo: metaInfo.value
  1230. })
  1231. if (res.code === Code.StatusOK) {
  1232. text1.value = JSON.parse(res.data).url
  1233. dialogKyc.value = true
  1234. flag.value = false
  1235. } else {
  1236. flag.value = false
  1237. }
  1238. }
  1239. const submit = async (formName) => {
  1240. if (channelData.value.type === "BANK_TELEGRAPHIC" && !myId.value) {
  1241. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1242. return
  1243. }
  1244. if (channelData.value.type === "BANK" && !myId.value) {
  1245. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1246. return
  1247. }
  1248. if (channelData.value.type === "CHANNEL_TYPE_CARD" && !myId.value) {
  1249. $pigeon.MessageWarning(t("vaildate.withdrawBank.empty"))
  1250. return
  1251. }
  1252. if (channelData.value.type === "DIGITAL_CURRENCY" && !myId.value) {
  1253. $pigeon.MessageWarning(t("blockchain.item11"))
  1254. return
  1255. }
  1256. // 模拟表单验证
  1257. try {
  1258. if (formRef.value) {
  1259. await formRef.value.validate()
  1260. if (flag.value) return
  1261. flag.value = true
  1262. dialogCheckWait.value = true
  1263. form.amount = Number(form.amount)
  1264. let res
  1265. if (channelData.value.type === "DIGITAL_CURRENCY") {
  1266. res = await financialApi.ibWithdrawAapplyDigitalCurrency(channelData.value.requestUrl, {
  1267. // login: loginValue.value,
  1268. payType: channelData.value.code,
  1269. ...form
  1270. })
  1271. } else if (["CHANNEL_TYPE_WALLET", "UCARD_WALLET", "CHANNEL_TYPE_ALI_WALLET"].includes(channelData.value.type)) {
  1272. res = await financialApi.ibWithdrawAapplyDigitalCurrency(channelData.value.requestUrl, {
  1273. // login: loginValue.value,
  1274. payType: channelData.value.code,
  1275. ...form
  1276. })
  1277. } else if (channelData.value.type === "BANK" || channelData.value.type === "BANK_TELEGRAPHIC") {
  1278. res = await financialApi.ibWithdrawApplyBank(channelData.value.requestUrl, {
  1279. // login: loginValue.value,
  1280. payType: channelData.value.code,
  1281. ...form
  1282. })
  1283. } else if (channelData.value.type === "CHANNEL_TYPE_CARD") {
  1284. res = await financialApi.WithdrawApplyBank(channelData.value.requestUrl, {
  1285. // login: loginValue.value,
  1286. payType: channelData.value.code,
  1287. ...form
  1288. })
  1289. }
  1290. if (res && res.code === Code.StatusOK) {
  1291. dialogCheck.value = true
  1292. dialogVisible.value = true
  1293. // qrCode(res.data)
  1294. flag.value = false
  1295. } else {
  1296. RES.value = res?.msg || "error"
  1297. dialogCheck.value = true
  1298. dialogVisible.value = false
  1299. flag.value = false
  1300. }
  1301. dialogCheckWait.value = false
  1302. }
  1303. } catch (error) {
  1304. if (error instanceof Array) {
  1305. showToast(error[0].errorMessage);
  1306. return
  1307. } else {
  1308. RES.value = error.msg;
  1309. dialogCheck.value = true;
  1310. dialogCheckWait.value = false;
  1311. dialogVisible.value = false;
  1312. flag.value = false;
  1313. }
  1314. }
  1315. }
  1316. const Initialize = () => {
  1317. loginValue.value = ""
  1318. isStep3.value = false
  1319. step2.value = false
  1320. step3.value = false
  1321. showTable()
  1322. }
  1323. const isShowStep3 = (row) => {
  1324. userStore.savePaymentChannel(row.code)
  1325. userStore.saveChannelList(tableData)
  1326. router.push(`/pages/ib/withdraw`)
  1327. return
  1328. if (row.bankValid && isChannel.value) {
  1329. getBankList(row)
  1330. isChannel.value = false
  1331. step3.value = true
  1332. channelData.value = row
  1333. mAmount.minAmount = row.minAmount
  1334. mAmount.maxAmount = row.maxAmount
  1335. } else {
  1336. step3.value = true
  1337. bankDate.value = []
  1338. channelData.value = row
  1339. mAmount.minAmount = row.minAmount
  1340. mAmount.maxAmount = row.maxAmount
  1341. }
  1342. if (row.code === "UNION_PAY_TELEGRAPHIC") {
  1343. WireTransferAccount.value = JSON.parse(row.property)
  1344. }
  1345. if (["BANK", "BANK_TELEGRAPHIC", "CHANNEL_TYPE_CARD", "DIGITAL_CURRENCY"].includes(row.type)) {
  1346. getBankInfo()
  1347. step3_bank_cur.value = "bank"
  1348. form.login = loginValue.value
  1349. form.payType = row.code
  1350. bankPayType.value = row.code
  1351. }
  1352. // 重置 tableData
  1353. tableData.International_Transfer = []
  1354. tableData.China_UnionPay = []
  1355. tableData.Digital_Currency = []
  1356. tableData.CHANNEL_TYPE_CARD = []
  1357. tableData.Electronic_Wallet = []
  1358. tableData.CHANNEL_TYPE_ALI_WALLET = []
  1359. tableData.UCARD_WALLET = []
  1360. if (row.type === "BANK_TELEGRAPHIC") tableData.International_Transfer[0] = row
  1361. if (row.type === "BANK") tableData.China_UnionPay[0] = row
  1362. if (row.type === "DIGITAL_CURRENCY") tableData.Digital_Currency[0] = row
  1363. if (row.type === "CHANNEL_TYPE_WALLET") tableData.Electronic_Wallet[0] = row
  1364. if (row.type === "UCARD_WALLET") tableData.UCARD_WALLET[0] = row
  1365. if (row.type === "CHANNEL_TYPE_CARD") tableData.CHANNEL_TYPE_CARD[0] = row
  1366. if (row.type === "CHANNEL_TYPE_ALI_WALLET") tableData.CHANNEL_TYPE_ALI_WALLET[0] = row
  1367. introduce.introduce = row.introduce
  1368. introduce.enIntroduce = row.enIntroduce
  1369. }
  1370. const showTable = () => {
  1371. resetForm()
  1372. myId.value = null
  1373. step3.value = false
  1374. isStep3.value = false
  1375. isChannel.value = true
  1376. getDepositList()
  1377. // 重置表单
  1378. form.currency = "USD"
  1379. // 其他重置...
  1380. }
  1381. const getDateList = async () => {
  1382. const res = await customApi.CustomDropdown({ platform: "" })
  1383. if (res.code === Code.StatusOK) {
  1384. loginOptions.value = res.data
  1385. } else {
  1386. uni.showToast({ title: res.msg, icon: 'none' })
  1387. }
  1388. }
  1389. const getDepositList = async () => {
  1390. pictLoading.value = true
  1391. tableData.International_Transfer = []
  1392. tableData.China_UnionPay = []
  1393. tableData.Digital_Currency = []
  1394. tableData.CHANNEL_TYPE_CARD = []
  1395. tableData.Electronic_Wallet = []
  1396. tableData.CHANNEL_TYPE_ALI_WALLET = []
  1397. tableData.UCARD_WALLET = []
  1398. const res = await financialApi.RemitChannelList({})
  1399. if (res.code === Code.StatusOK) {
  1400. res.data.forEach(item => {
  1401. if (item.type === "BANK_TELEGRAPHIC") tableData.International_Transfer.push(item)
  1402. if (item.type === "BANK") tableData.China_UnionPay.push(item)
  1403. if (item.type === "DIGITAL_CURRENCY") tableData.Digital_Currency.push(item)
  1404. if (item.type === "CHANNEL_TYPE_WALLET") tableData.Electronic_Wallet.push(item)
  1405. if (item.type === "UCARD_WALLET") tableData.UCARD_WALLET.push(item)
  1406. if (item.type === "CHANNEL_TYPE_CARD") tableData.CHANNEL_TYPE_CARD.push(item)
  1407. if (item.type === "CHANNEL_TYPE_ALI_WALLET") tableData.CHANNEL_TYPE_ALI_WALLET.push(item)
  1408. })
  1409. pictLoading.value = false
  1410. } else {
  1411. uni.showToast({ title: res.msg, icon: 'none' })
  1412. pictLoading.value = false
  1413. }
  1414. }
  1415. const getBankList = async (row) => {
  1416. const res = await financialApi.BankList({ channelCode: row.code })
  1417. if (res.code === Code.StatusOK) {
  1418. const bank = res.data
  1419. const data = []
  1420. bank.forEach(j => {
  1421. if (!j.minAmount && j.minAmount !== 0) j.minAmount = row.minAmount
  1422. if (!j.maxAmount && j.maxAmount !== 0) j.maxAmount = row.maxAmount
  1423. j.payType = row.code
  1424. data.push(j)
  1425. })
  1426. bankDate.value = data
  1427. } else {
  1428. uni.showToast({ title: res.msg, icon: 'none' })
  1429. }
  1430. }
  1431. const cancelBank = () => {
  1432. dialogNewBank.value = false
  1433. // 重置 params 表单
  1434. Object.assign(params, {
  1435. bankCardNum: "",
  1436. bankUname: "",
  1437. bankName: "",
  1438. bankBranchName: "",
  1439. bankAddr: "",
  1440. swiftCode: "",
  1441. bankFront: "",
  1442. bankBack: "",
  1443. defaultBank: false
  1444. })
  1445. }
  1446. // ---------- 生命周期 ----------
  1447. onMounted(() => {
  1448. if (getInfoStatus5.value) {
  1449. InfoStatus5.value = true
  1450. return
  1451. }
  1452. getFreeNumber()
  1453. isShowDialog()
  1454. // getDateList()
  1455. getDepositList()
  1456. })
  1457. // 监听 value 变化
  1458. watch(loginValue, (newVal) => {
  1459. if (newVal) {
  1460. step2.value = true
  1461. showTable()
  1462. }
  1463. })
  1464. // 监听 form.amount 变化
  1465. watch(() => form.amount, (newVal) => {
  1466. if (newVal && channelData.value.rate) {
  1467. form.amount1 = (newVal * channelData.value.rate).toFixed(2)
  1468. }
  1469. })
  1470. </script>
  1471. <style lang="scss" scoped>
  1472. @import "@/uni.scss";
  1473. .card-header{
  1474. border: none;
  1475. padding-bottom: px2rpx(0);
  1476. }
  1477. .custom-withdraw {
  1478. .box {
  1479. margin-bottom: px2rpx(20);
  1480. .b-card {
  1481. border: 1px solid var(--bs-border-color);
  1482. border-radius: px2rpx(12);
  1483. padding: px2rpx(20);
  1484. box-shadow: 0 px2rpx(4) px2rpx(12) rgba(0, 0, 0, 0.03);
  1485. .card-top {
  1486. .tit {
  1487. font-size: px2rpx(16);
  1488. font-weight: 600;
  1489. margin-bottom: px2rpx(16);
  1490. display: flex;
  1491. align-items: center;
  1492. color: var(--bs-heading-color);
  1493. position: relative;
  1494. padding-left: 20px;
  1495. &:after {
  1496. content: '';
  1497. position: absolute;
  1498. left: 0;
  1499. top: 50%;
  1500. transform: translateY(-50%);
  1501. width: 0;
  1502. height: 0;
  1503. border-top: 6px solid transparent;
  1504. border-bottom: 6px solid transparent;
  1505. border-left: 8px solid currentColor;
  1506. }
  1507. .iconfont {
  1508. margin-right: px2rpx(8);
  1509. color: var(--color-primary);
  1510. font-size: px2rpx(18);
  1511. }
  1512. }
  1513. }
  1514. .channelType {
  1515. font-size: px2rpx(15);
  1516. font-weight: 600;
  1517. margin: px2rpx(24) 0 px2rpx(12);
  1518. color: var(--color-navy-700);
  1519. padding-left: px2rpx(8);
  1520. border-left: px2rpx(4) solid var(--color-primary);
  1521. }
  1522. }
  1523. }
  1524. .reselect-btn {
  1525. margin-top: px2rpx(20);
  1526. display: flex;
  1527. justify-content: flex-end;
  1528. }
  1529. .s-btn {
  1530. &.reselect {
  1531. background-color: var(--color-zinc-100);
  1532. color: var(--color-navy-700);
  1533. border: none;
  1534. font-size: px2rpx(14);
  1535. padding: px2rpx(8) px2rpx(20);
  1536. border-radius: px2rpx(8);
  1537. &:active {
  1538. background-color: var(--color-zinc-200);
  1539. }
  1540. }
  1541. &[type="primary"] {
  1542. width: 100%;
  1543. height: px2rpx(48);
  1544. background-color: #cf1322;
  1545. color: var(--bs-emphasis-color);
  1546. border-radius: px2rpx(12);
  1547. font-size: px2rpx(16);
  1548. font-weight: 600;
  1549. display: flex;
  1550. align-items: center;
  1551. justify-content: center;
  1552. border: none;
  1553. margin-top: px2rpx(30);
  1554. transition: all 0.2s;
  1555. &:active {
  1556. transform: scale(0.98);
  1557. background-color: #cf1322;
  1558. }
  1559. }
  1560. }
  1561. .add-back {
  1562. display: flex;
  1563. justify-content: space-between;
  1564. align-items: center;
  1565. margin-bottom: px2rpx(12);
  1566. padding: px2rpx(12) px2rpx(16);
  1567. background: var(--color-zinc-100);
  1568. border-radius: px2rpx(8);
  1569. text {
  1570. font-size: px2rpx(14);
  1571. color: var(--color-navy-700);
  1572. font-weight: 500;
  1573. }
  1574. .add-btn {
  1575. color: var(--color-primary);
  1576. font-weight: 600;
  1577. text-decoration: underline;
  1578. &:active {
  1579. opacity: 0.7;
  1580. }
  1581. }
  1582. }
  1583. .proof {
  1584. margin-top: px2rpx(8);
  1585. border: px2rpx(1) dashed var(--color-zinc-300);
  1586. border-radius: px2rpx(8);
  1587. padding: px2rpx(8);
  1588. display: flex;
  1589. justify-content: center;
  1590. align-items: center;
  1591. background: var(--color-zinc-50);
  1592. .state {
  1593. padding: px2rpx(4) px2rpx(12);
  1594. border-radius: px2rpx(4);
  1595. font-size: px2rpx(12);
  1596. font-weight: bold;
  1597. }
  1598. }
  1599. .agree {
  1600. margin: px2rpx(24) 0;
  1601. display: flex;
  1602. align-items: flex-start;
  1603. .checkbox {
  1604. display: flex;
  1605. align-items: flex-start;
  1606. gap: px2rpx(8);
  1607. :deep(uni-checkbox .uni-checkbox-input) {
  1608. border-radius: px2rpx(4);
  1609. width: px2rpx(18);
  1610. height: px2rpx(18);
  1611. }
  1612. text {
  1613. font-size: px2rpx(13);
  1614. color: var(--color-zinc-500);
  1615. line-height: 1.5;
  1616. }
  1617. }
  1618. }
  1619. .step3-attention {
  1620. // background: var(--color-error-50, #fff1f0);
  1621. border-radius: px2rpx(12);
  1622. margin-bottom: px2rpx(20);
  1623. .tips {
  1624. line-height: 1.8;
  1625. font-size: px2rpx(12);
  1626. color: #909399;
  1627. background-color: rgba(var(--bs-body-bg-rgb), 1) !important;
  1628. padding: px2rpx(12);
  1629. border-radius: px2rpx(4);
  1630. border-left: px2rpx(2) solid #cf1322;
  1631. .title {
  1632. font-weight: 600;
  1633. margin-bottom: px2rpx(6);
  1634. color: #606266;
  1635. }
  1636. }
  1637. .attention {
  1638. font-size: px2rpx(14);
  1639. // color: var(--color-error-600, #cf1322);
  1640. line-height: 1.6;
  1641. }
  1642. .btn-bottom {
  1643. margin-top: px2rpx(20);
  1644. display: flex;
  1645. justify-content: center;
  1646. .btn {
  1647. background: var(--color-error-600, #cf1322);
  1648. color: var(--bs-emphasis-color);
  1649. padding: px2rpx(10) px2rpx(48);
  1650. border-radius: px2rpx(24);
  1651. font-size: px2rpx(15);
  1652. font-weight: 700;
  1653. box-shadow: 0 px2rpx(4) px2rpx(10) rgba(207, 19, 34, 0.2);
  1654. transition: all 0.2s;
  1655. &:active {
  1656. transform: scale(0.96);
  1657. opacity: 0.8;
  1658. }
  1659. }
  1660. }
  1661. }
  1662. :deep(.base-info-form) {
  1663. .uni-row1 {
  1664. .uni-col {
  1665. padding: 0 px2rpx(10) !important;
  1666. }
  1667. .uni-forms-item {
  1668. min-height: px2rpx(36);
  1669. margin-bottom: px2rpx(28);
  1670. }
  1671. .uni-select,
  1672. .uni-combox,
  1673. .uni-easyinput__content,
  1674. .uni-date-editor--x {
  1675. border: none !important;
  1676. background-color: var(--color-zinc-100) !important;
  1677. border-radius: px2rpx(8) !important;
  1678. }
  1679. .uni-date-x {
  1680. border: none !important;
  1681. background-color: rgba(195, 195, 195, 0) !important;
  1682. }
  1683. .uni-easyinput__content-input {
  1684. height: px2rpx(35) !important;
  1685. }
  1686. }
  1687. }
  1688. @keyframes rotate {
  1689. from {
  1690. transform: rotate(0deg);
  1691. }
  1692. to {
  1693. transform: rotate(360deg);
  1694. }
  1695. }
  1696. }
  1697. </style>