create-account copy.vue 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379
  1. <template>
  2. <cwg-page-wrapper class="create-page" :isHeaderFixed="true">
  3. <uni-card class="create-content" :margin="0" :spacing="0">
  4. <view class="content-title" v-t="'Custom.NewAccount.Title'"></view>
  5. <view class="tit">
  6. <text class="iconfont icon-caret-right"></text>
  7. <text>{{ t('Custom.NewAccount.Title1') }}</text>
  8. </view>
  9. <view class="des">
  10. <text>{{ t('Custom.NewAccount.Des1') }}</text>
  11. </view>
  12. <cwg-tabs :cativeIndex="cativeIndex" :tabs="tabs" class="tabs-class" />
  13. </uni-card>
  14. <view id="custom_newAccount" :class="{ 'u-loading': pictLoading }">
  15. <view class="main-content" v-if="showPage">
  16. <!-- 账户列表 -->
  17. <view class="box" v-if="
  18. showLogin.indexOf('6') === -1 ||
  19. showLogin.indexOf('2') === -1 ||
  20. showLogin.indexOf('7') === -1 ||
  21. (showLogin.indexOf('8') === -1 && isTimeShow)
  22. ">
  23. <!-- 极速账户 -->
  24. <!-- <view class="b-card" v-if="showLogin.indexOf('6') === -1">
  25. <view class="btn-tag-star" v-if="false">
  26. <text class="iconfont icon-star-on"></text>
  27. </view>
  28. <view class="card-top">
  29. <view class="header" style="width: 66.66667%;">
  30. <view class="tit">
  31. <text>{{ t('AccountType.SpeedAccount') }}</text>
  32. </view>
  33. <view class="des">
  34. <text>{{ t('Custom.NewAccount.DesLogin1') }}</text>
  35. </view>
  36. <view class="btn-bottom">
  37. <text class="btn-open" @click="isOpenClose(6, null)">
  38. <text>{{ t('Custom.NewAccount.Btn') }}</text>
  39. <text class="iconfont icon-arrow-right"></text>
  40. </text>
  41. <text class="btn-try" @click="isOpenClose(6, 6)">
  42. <text>{{ t('Custom.NewAccount.BtnDome') }}</text>
  43. <text class="iconfont icon-arrow-right"></text>
  44. </text>
  45. </view>
  46. </view>
  47. <view class="descending" style="width: 33.33333%;">
  48. <view><text>{{ t('Custom.NewAccount.DesLogin11') }}</text></view>
  49. <view><text>{{ t('Custom.NewAccount.DesLogin12') }}</text></view>
  50. <view><text>{{ t('Custom.NewAccount.DesLogin13') }}</text></view>
  51. <view><text>{{ t('Custom.NewAccount.DesLogin14') }}</text></view>
  52. </view>
  53. </view>
  54. <view class="card-bottom" v-if="isOpenAccount == 6">
  55. <uv-form :model="params" :rules="rules" ref="formRef" label-position="top">
  56. <uv-form-item prop="platform" :label="t('Custom.NewAccount.Platform')"
  57. :borderBottom="false">
  58. <uv-picker v-model="params.platform" :columns="platformColumns"
  59. :placeholder="t('placeholder.choose')" @confirm="handlePlatformConfirm">
  60. <view class="picker-value">{{ params.platform || t('placeholder.choose') }}
  61. </view>
  62. </uv-picker>
  63. </uv-form-item>
  64. <uv-form-item prop="currency" :label="t('Custom.NewAccount.Currency')"
  65. :borderBottom="false">
  66. <uv-picker v-model="params.currency" :columns="currencyColumns"
  67. :placeholder="t('placeholder.choose')" @confirm="handleCurrencyConfirm">
  68. <view class="picker-value">{{ params.currency || t('placeholder.choose') }}
  69. </view>
  70. </uv-picker>
  71. </uv-form-item>
  72. <uv-form-item prop="password" :label="t('Custom.NewAccount.Password')"
  73. :borderBottom="false">
  74. <uv-input v-model="params.password" :password="true"
  75. :placeholder="t('Custom.NewAccount.Password')"></uv-input>
  76. </uv-form-item>
  77. <uv-form-item prop="leverage" :label="t('Custom.NewAccount.Lever')"
  78. :borderBottom="false">
  79. <uv-picker v-model="params.leverage" :columns="leverageColumns"
  80. :placeholder="t('placeholder.choose')" :disabled="hidden"
  81. @confirm="handleLeverageConfirm">
  82. <view class="picker-value">{{ params.leverage || t('placeholder.choose') }}
  83. </view>
  84. </uv-picker>
  85. </uv-form-item>
  86. <uv-form-item prop="platform" :borderBottom="false">
  87. <view class="pwd">
  88. <view :class="{ fit: rule1 }">{{ t('signup.form.rules.1st') }}</view>
  89. <view :class="{ fit: rule2 }">{{ t('signup.form.rules.2nd') }}</view>
  90. <view :class="{ fit: rule4 }">{{ t('signup.form.rules.4rd') }}</view>
  91. </view>
  92. </uv-form-item>
  93. <uv-form-item prop="balance" :label="t('Custom.NewAccount.Balance')" v-if="dome"
  94. :borderBottom="false">
  95. <uv-input v-model="params.balance" type="number"
  96. :placeholder="t('Custom.NewAccount.BalancePlaceholder')"
  97. @blur="handleBalanceChange"></uv-input>
  98. </uv-form-item>
  99. <uv-form-item prop="platform" v-if="dome" :borderBottom="false">
  100. <view class="pwd">
  101. <view :class="{ fit: rule1 }">0 - 100000</view>
  102. </view>
  103. </uv-form-item>
  104. <uv-form-item :borderBottom="false">
  105. <uv-button type="primary" class="s-btn" @click="newAccount(6, dome ? 1 : null)">
  106. {{ t('Btn.OpenAccount') }}
  107. </uv-button>
  108. </uv-form-item>
  109. <uv-form-item :borderBottom="false" v-if="!dome">
  110. <view style="margin: 20px 0; font-size: 14px; line-height: 1.7;">
  111. <text>{{ t('news_add_field.OpenAccount.Des4') }}</text>
  112. <text class="pdfLink" @click="openLink('leveragemargin')">
  113. {{ t('news_add_field.OpenAccount.Des5') }}
  114. </text>
  115. </view>
  116. </uv-form-item>
  117. </uv-form>
  118. </view>
  119. </view> -->
  120. <!-- 经典账户 -->
  121. <!-- <view class="b-card" v-if="showLogin.indexOf('1') === -1">
  122. <view class="btn-tag-star" v-if="false">
  123. <text class="iconfont icon-star-on"></text>
  124. </view>
  125. <view class="card-top">
  126. <view class="header" style="width: 66.66667%;">
  127. <view class="tit">
  128. <text>{{ t('AccountType.ClassicAccount') }}</text>
  129. </view>
  130. <view class="des">
  131. <text>{{ t('Custom.NewAccount.DesLogin2') }}</text>
  132. </view>
  133. <view class="btn-bottom">
  134. <text class="btn-open" @click="isOpenClose(1, null)">
  135. <text>{{ t('Custom.NewAccount.Btn') }}</text>
  136. <text class="iconfont icon-arrow-right"></text>
  137. </text>
  138. <text class="btn-try" @click="isOpenClose(1, 1)">
  139. <text>{{ t('Custom.NewAccount.BtnDome') }}</text>
  140. <text class="iconfont icon-arrow-right"></text>
  141. </text>
  142. </view>
  143. </view>
  144. <view class="descending" style="width: 33.33333%;">
  145. <view><text>{{ t('Custom.NewAccount.DesLogin21') }}</text></view>
  146. <view><text>{{ t('Custom.NewAccount.DesLogin22') }}</text></view>
  147. <view v-if="['cn', 'zhHant'].indexOf(language) === -1">
  148. <text>{{ t('Custom.NewAccount.DesLogin23') }}</text>
  149. </view>
  150. <view><text>{{ t('Custom.NewAccount.DesLogin24') }}</text></view>
  151. </view>
  152. </view>
  153. <view class="card-bottom" v-if="isOpenAccount == 1">
  154. <uv-form :model="params" :rules="rules" ref="formRef" label-position="top">
  155. <uv-form-item prop="platform" :label="t('Custom.NewAccount.Platform')"
  156. :borderBottom="false">
  157. <uv-picker v-model="params.platform" :columns="platformColumns"
  158. :placeholder="t('placeholder.choose')" @confirm="handlePlatformConfirm">
  159. <view class="picker-value">{{ params.platform || t('placeholder.choose') }}
  160. </view>
  161. </uv-picker>
  162. </uv-form-item>
  163. <uv-form-item prop="currency" :label="t('Custom.NewAccount.Currency')"
  164. :borderBottom="false">
  165. <uv-picker v-model="params.currency" :columns="currencyColumns"
  166. :placeholder="t('placeholder.choose')" @confirm="handleCurrencyConfirm">
  167. <view class="picker-value">{{ params.currency || t('placeholder.choose') }}
  168. </view>
  169. </uv-picker>
  170. </uv-form-item>
  171. <uv-form-item prop="password" :label="t('Custom.NewAccount.Password')"
  172. :borderBottom="false">
  173. <uv-input v-model="params.password" :password="true"
  174. :placeholder="t('Custom.NewAccount.Password')"></uv-input>
  175. </uv-form-item>
  176. <uv-form-item prop="leverage" :label="t('Custom.NewAccount.Lever')"
  177. :borderBottom="false">
  178. <uv-picker v-model="params.leverage" :columns="leverageColumns"
  179. :placeholder="t('placeholder.choose')" :disabled="true"
  180. @confirm="handleLeverageConfirm">
  181. <view class="picker-value">{{ params.leverage || t('placeholder.choose') }}
  182. </view>
  183. </uv-picker>
  184. </uv-form-item>
  185. <uv-form-item prop="platform" :borderBottom="false">
  186. <view class="pwd">
  187. <view :class="{ fit: rule1 }">{{ t('signup.form.rules.1st') }}</view>
  188. <view :class="{ fit: rule2 }">{{ t('signup.form.rules.2nd') }}</view>
  189. <view :class="{ fit: rule4 }">{{ t('signup.form.rules.4rd') }}</view>
  190. </view>
  191. </uv-form-item>
  192. <uv-form-item :borderBottom="false">
  193. <uv-button type="primary" class="s-btn" @click="newAccount(1, dome ? 1 : null)">
  194. {{ t('Btn.OpenAccount') }}
  195. </uv-button>
  196. </uv-form-item>
  197. </uv-form>
  198. </view>
  199. </view> -->
  200. <!-- 标准账户 -->
  201. <view class="b-card" v-if="showLogin.indexOf('7') === -1">
  202. <view class="btn-tag-star">
  203. <text class="iconfont icon-star-on"></text>
  204. </view>
  205. <view class="card-top">
  206. <view class="header" style="width: 66.66667%;">
  207. <view class="tit">
  208. <text>{{ t('AccountType.StandardAccount') }}</text>
  209. </view>
  210. <view class="des">
  211. <text>{{ t('Custom.NewAccount.DesLogin5') }}</text>
  212. </view>
  213. <view class="btn-bottom">
  214. <text class="btn-open" @click="isOpenClose(7, null)">
  215. <text>{{ t('Custom.NewAccount.Btn') }}</text>
  216. <text class="iconfont icon-arrow-right"></text>
  217. </text>
  218. <text class="btn-try" @click="isOpenClose(7, 7)">
  219. <text>{{ t('Custom.NewAccount.BtnDome') }}</text>
  220. <text class="iconfont icon-arrow-right"></text>
  221. </text>
  222. </view>
  223. </view>
  224. <view class="descending" style="width: 33.33333%;">
  225. <view><text>{{ t('Custom.NewAccount.DesLogin51') }}</text></view>
  226. <view><text>{{ t('Custom.NewAccount.DesLogin52') }}</text></view>
  227. <view v-if="['cn', 'zhHant'].indexOf(language) === -1">
  228. <text>{{ t('Custom.NewAccount.DesLogin53') }}</text>
  229. </view>
  230. <view><text>{{ t('Custom.NewAccount.DesLogin54') }}</text></view>
  231. </view>
  232. </view>
  233. <!-- 标准账户表单 -->
  234. <view class="card-bottom" v-if="isOpenAccount == 7">
  235. <uv-form :model="params" :rules="rules" ref="formRef" label-position="top">
  236. <uv-form-item prop="platform" :label="t('Custom.NewAccount.Platform')"
  237. :borderBottom="false">
  238. <uv-picker v-model="params.platform" :columns="platformColumns"
  239. :placeholder="t('placeholder.choose')" @confirm="handlePlatformConfirm">
  240. <view class="picker-value">{{ params.platform || t('placeholder.choose') }}
  241. </view>
  242. </uv-picker>
  243. </uv-form-item>
  244. <uv-form-item prop="currency" :label="t('Custom.NewAccount.Currency')"
  245. :borderBottom="false">
  246. <uv-picker v-model="params.currency" :columns="currencyColumns"
  247. :placeholder="t('placeholder.choose')" @confirm="handleCurrencyConfirm">
  248. <view class="picker-value">{{ params.currency || t('placeholder.choose') }}
  249. </view>
  250. </uv-picker>
  251. </uv-form-item>
  252. <uv-form-item prop="password" :label="t('Custom.NewAccount.Password')"
  253. :borderBottom="false">
  254. <uv-input v-model="params.password" :password="true"
  255. :placeholder="t('Custom.NewAccount.Password')"></uv-input>
  256. </uv-form-item>
  257. <uv-form-item prop="leverage" :label="t('Custom.NewAccount.Lever')"
  258. :borderBottom="false">
  259. <uv-picker v-model="params.leverage" :columns="leverageColumns"
  260. :placeholder="t('placeholder.choose')" :disabled="hidden"
  261. @confirm="handleLeverageConfirm">
  262. <view class="picker-value">{{ params.leverage || t('placeholder.choose') }}
  263. </view>
  264. </uv-picker>
  265. </uv-form-item>
  266. <uv-form-item prop="platform" :borderBottom="false">
  267. <view class="pwd">
  268. <view :class="{ fit: rule1 }">{{ t('signup.form.rules.1st') }}</view>
  269. <view :class="{ fit: rule2 }">{{ t('signup.form.rules.2nd') }}</view>
  270. <view :class="{ fit: rule4 }">{{ t('signup.form.rules.4rd') }}</view>
  271. </view>
  272. </uv-form-item>
  273. <uv-form-item prop="balance" :label="t('Custom.NewAccount.Balance')" v-if="dome"
  274. :borderBottom="false">
  275. <uv-input v-model="params.balance" type="number"
  276. :placeholder="t('Custom.NewAccount.BalancePlaceholder')"
  277. @blur="handleBalanceChange"></uv-input>
  278. </uv-form-item>
  279. <uv-form-item prop="platform" v-if="dome" :borderBottom="false">
  280. <view class="pwd">
  281. <view :class="{ fit: rule1 }">0 - 100000</view>
  282. </view>
  283. </uv-form-item>
  284. <uv-form-item :borderBottom="false">
  285. <uv-button type="primary" class="s-btn" @click="newAccount(7, dome ? 1 : null)">
  286. {{ t('Btn.OpenAccount') }}
  287. </uv-button>
  288. </uv-form-item>
  289. </uv-form>
  290. </view>
  291. </view>
  292. <!-- 高级账户 -->
  293. <view class="b-card" v-if="showLogin.indexOf('2') === -1">
  294. <view class="btn-tag-star" v-if="false">
  295. <text class="iconfont icon-star-on"></text>
  296. </view>
  297. <view class="card-top">
  298. <view class="header" style="width: 66.66667%;">
  299. <view class="tit">
  300. <text>{{ t('AccountType.SeniorAccount') }}</text>
  301. </view>
  302. <view class="des">
  303. <text>{{ t('Custom.NewAccount.DesLogin3') }}</text>
  304. </view>
  305. <view class="btn-bottom">
  306. <text class="btn-open" @click="isOpenClose(2, null)">
  307. <text>{{ t('Custom.NewAccount.Btn') }}</text>
  308. <text class="iconfont icon-arrow-right"></text>
  309. </text>
  310. <text class="btn-try" @click="isOpenClose(2, 2)">
  311. <text>{{ t('Custom.NewAccount.BtnDome') }}</text>
  312. <text class="iconfont icon-arrow-right"></text>
  313. </text>
  314. </view>
  315. </view>
  316. <view class="descending" style="width: 33.33333%;">
  317. <view><text>{{ t('Custom.NewAccount.DesLogin31') }}</text></view>
  318. <view><text>{{ t('Custom.NewAccount.DesLogin32') }}</text></view>
  319. <view><text>{{ t('Custom.NewAccount.DesLogin33') }}</text></view>
  320. <view><text>{{ t('Custom.NewAccount.DesLogin34') }}</text></view>
  321. </view>
  322. </view>
  323. <!-- 高级账户表单 -->
  324. <view class="card-bottom" v-if="isOpenAccount == 2">
  325. <uv-form :model="params" :rules="rules" ref="formRef" label-position="top">
  326. <uv-form-item prop="platform" :label="t('Custom.NewAccount.Platform')"
  327. :borderBottom="false">
  328. <uv-picker v-model="params.platform" :columns="platformColumns"
  329. :placeholder="t('placeholder.choose')" @confirm="handlePlatformConfirm">
  330. <view class="picker-value">{{ params.platform || t('placeholder.choose') }}
  331. </view>
  332. </uv-picker>
  333. </uv-form-item>
  334. <uv-form-item prop="currency" :label="t('Custom.NewAccount.Currency')"
  335. :borderBottom="false">
  336. <uv-picker v-model="params.currency" :columns="currencyColumns"
  337. :placeholder="t('placeholder.choose')" @confirm="handleCurrencyConfirm">
  338. <view class="picker-value">{{ params.currency || t('placeholder.choose') }}
  339. </view>
  340. </uv-picker>
  341. </uv-form-item>
  342. <uv-form-item prop="password" :label="t('Custom.NewAccount.Password')"
  343. :borderBottom="false">
  344. <uv-input v-model="params.password" :password="true"
  345. :placeholder="t('Custom.NewAccount.Password')"></uv-input>
  346. </uv-form-item>
  347. <uv-form-item prop="leverage" :label="t('Custom.NewAccount.Lever')"
  348. :borderBottom="false">
  349. <uv-picker v-model="params.leverage" :columns="leverageColumns"
  350. :placeholder="t('placeholder.choose')" :disabled="hidden"
  351. @confirm="handleLeverageConfirm">
  352. <view class="picker-value">{{ params.leverage || t('placeholder.choose') }}
  353. </view>
  354. </uv-picker>
  355. </uv-form-item>
  356. <uv-form-item prop="platform" :borderBottom="false">
  357. <view class="pwd">
  358. <view :class="{ fit: rule1 }">{{ t('signup.form.rules.1st') }}</view>
  359. <view :class="{ fit: rule2 }">{{ t('signup.form.rules.2nd') }}</view>
  360. <view :class="{ fit: rule4 }">{{ t('signup.form.rules.4rd') }}</view>
  361. </view>
  362. </uv-form-item>
  363. <uv-form-item prop="balance" :label="t('Custom.NewAccount.Balance')" v-if="dome"
  364. :borderBottom="false">
  365. <uv-input v-model="params.balance" type="number"
  366. :placeholder="t('Custom.NewAccount.BalancePlaceholder')"
  367. @blur="handleBalanceChange"></uv-input>
  368. </uv-form-item>
  369. <uv-form-item prop="platform" v-if="dome" :borderBottom="false">
  370. <view class="pwd">
  371. <view :class="{ fit: rule1 }">0 - 100000</view>
  372. </view>
  373. </uv-form-item>
  374. <uv-form-item :borderBottom="false">
  375. <uv-button type="primary" class="s-btn" @click="newAccount(2, dome ? 1 : null)">
  376. {{ t('Btn.OpenAccount') }}
  377. </uv-button>
  378. </uv-form-item>
  379. </uv-form>
  380. </view>
  381. </view>
  382. <!-- 美分账户 -->
  383. <view class="b-card" v-if="showLogin.indexOf('8') === -1 && isTimeShow">
  384. <view class="btn-tag-star" v-if="false">
  385. <text class="iconfont icon-star-on"></text>
  386. </view>
  387. <view class="card-top">
  388. <view class="header" style="width: 66.66667%;">
  389. <view class="tit">
  390. <text>{{ t('AccountType.CentAccount') }}</text>
  391. </view>
  392. <view class="des">
  393. <text>{{ t('Custom.NewAccount.DesLogin8') }}</text>
  394. </view>
  395. <view class="btn-bottom">
  396. <text class="btn-open" @click="isOpenClose(8, null)">
  397. <text>{{ t('Custom.NewAccount.Btn') }}</text>
  398. <text class="iconfont icon-arrow-right"></text>
  399. </text>
  400. <text class="btn-try" @click="isOpenClose(8, 8)">
  401. <text>{{ t('Custom.NewAccount.BtnDome') }}</text>
  402. <text class="iconfont icon-arrow-right"></text>
  403. </text>
  404. </view>
  405. </view>
  406. <view class="descending" style="width: 33.33333%;">
  407. <view><text>{{ t('Custom.NewAccount.DesLogin81') }}</text></view>
  408. <view><text>{{ t('Custom.NewAccount.DesLogin82') }}</text></view>
  409. <view><text>{{ t('Custom.NewAccount.DesLogin84') }}</text></view>
  410. </view>
  411. </view>
  412. <!-- 美分账户表单 -->
  413. <view class="card-bottom" v-if="isOpenAccount == 8">
  414. <uv-form :model="params" :rules="rules" ref="formRef" label-position="top">
  415. <uv-form-item prop="platform" :label="t('Custom.NewAccount.Platform')"
  416. :borderBottom="false">
  417. <uv-picker v-model="params.platform" :columns="platformColumns"
  418. :placeholder="t('placeholder.choose')" @confirm="handlePlatformConfirm">
  419. <view class="picker-value">{{ params.platform || t('placeholder.choose') }}
  420. </view>
  421. </uv-picker>
  422. </uv-form-item>
  423. <uv-form-item prop="currency" :label="t('Custom.NewAccount.Currency')"
  424. :borderBottom="false">
  425. <uv-picker v-model="params.currency" :columns="currencyColumns"
  426. :placeholder="t('placeholder.choose')" @confirm="handleCurrencyConfirm">
  427. <view class="picker-value">{{ params.currency || t('placeholder.choose') }}
  428. </view>
  429. </uv-picker>
  430. </uv-form-item>
  431. <uv-form-item prop="password" :label="t('Custom.NewAccount.Password')"
  432. :borderBottom="false">
  433. <uv-input v-model="params.password" :password="true"
  434. :placeholder="t('Custom.NewAccount.Password')"></uv-input>
  435. </uv-form-item>
  436. <uv-form-item prop="leverage" :label="t('Custom.NewAccount.Lever')"
  437. :borderBottom="false">
  438. <uv-picker v-model="params.leverage" :columns="leverageColumns"
  439. :placeholder="t('placeholder.choose')" :disabled="hidden"
  440. @confirm="handleLeverageConfirm">
  441. <view class="picker-value">{{ params.leverage || t('placeholder.choose') }}
  442. </view>
  443. </uv-picker>
  444. </uv-form-item>
  445. <uv-form-item prop="platform" :borderBottom="false">
  446. <view class="pwd">
  447. <view :class="{ fit: rule1 }">{{ t('signup.form.rules.1st') }}</view>
  448. <view :class="{ fit: rule2 }">{{ t('signup.form.rules.2nd') }}</view>
  449. <view :class="{ fit: rule4 }">{{ t('signup.form.rules.4rd') }}</view>
  450. </view>
  451. </uv-form-item>
  452. <uv-form-item prop="balance" :label="t('Custom.NewAccount.Balance')" v-if="dome"
  453. :borderBottom="false">
  454. <uv-input v-model="params.balance" type="number"
  455. :placeholder="t('Custom.NewAccount.BalancePlaceholder')"
  456. @blur="handleBalanceChange"></uv-input>
  457. </uv-form-item>
  458. <uv-form-item prop="platform" v-if="dome" :borderBottom="false">
  459. <view class="pwd">
  460. <view :class="{ fit: rule1 }">0 - 100000</view>
  461. </view>
  462. </uv-form-item>
  463. <uv-form-item :borderBottom="false">
  464. <uv-button type="primary" class="s-btn" @click="newAccount(8, dome ? 1 : null)">
  465. {{ t('Btn.OpenAccount') }}
  466. </uv-button>
  467. </uv-form-item>
  468. <uv-form-item :borderBottom="false">
  469. <view style="margin: 20px 0; font-size: 14px; line-height: 1.7;">
  470. <text>{{ t('news_add_field.OpenAccount.Des4') }}</text>
  471. <text class="pdfLink" @click="openLink('leveragemargin')">
  472. {{ t('news_add_field.OpenAccount.Des5') }}
  473. </text>
  474. </view>
  475. </uv-form-item>
  476. </uv-form>
  477. </view>
  478. </view>
  479. </view>
  480. <!-- 代理账户 -->
  481. <!-- <view class="box" v-if="showLogin.indexOf('3') === -1 && !isAfterJuly28()">
  482. <view class="tit">
  483. <text class="iconfont icon-caret-right"></text>
  484. <text>{{ t('Custom.NewAccount.Title2') }}</text>
  485. </view>
  486. <view class="des">
  487. <text>{{ t('Custom.NewAccount.Des2') }}</text>
  488. </view>
  489. <view class="b-card">
  490. <view class="btn-tag-star" v-if="false">
  491. <text class="iconfont icon-star-on"></text>
  492. </view>
  493. <view class="card-top">
  494. <view class="header" style="width: 66.66667%;">
  495. <view class="tit">
  496. <text>{{ t('AccountType.AgencyAccount') }}</text>
  497. </view>
  498. <view class="des">
  499. <text>{{ t('Custom.NewAccount.DesLogin4') }}</text>
  500. </view>
  501. <view class="btn-bottom">
  502. <text class="btn-open" @click="isOpenClose(3, null)">
  503. <text>{{ t('Custom.NewAccount.Btn') }}</text>
  504. <text class="iconfont icon-arrow-right"></text>
  505. </text>
  506. </view>
  507. </view>
  508. <view class="descending" style="width: 33.33333%;">
  509. <view><text>{{ t('Custom.NewAccount.DesLogin41') }}</text></view>
  510. <view><text>{{ t('Custom.NewAccount.DesLogin42') }}</text></view>
  511. <view><text>{{ t('Custom.NewAccount.DesLogin43') }}</text></view>
  512. <view><text>{{ t('Custom.NewAccount.DesLogin44') }}</text></view>
  513. </view>
  514. </view>
  515. <view class="card-bottom" v-if="isOpenAccount == 3">
  516. <uv-form :model="params" :rules="rules" ref="formRef" label-position="top">
  517. <uv-form-item prop="platform" :label="t('Custom.NewAccount.Platform')"
  518. :borderBottom="false">
  519. <uv-picker v-model="params.platform" :columns="platformColumns"
  520. :placeholder="t('placeholder.choose')" @confirm="handlePlatformConfirm">
  521. <view class="picker-value">{{ params.platform || t('placeholder.choose') }}
  522. </view>
  523. </uv-picker>
  524. </uv-form-item>
  525. <uv-form-item prop="currency" :label="t('Custom.NewAccount.Currency')"
  526. :borderBottom="false">
  527. <uv-picker v-model="params.currency" :columns="currencyColumns"
  528. :placeholder="t('placeholder.choose')" @confirm="handleCurrencyConfirm">
  529. <view class="picker-value">{{ params.currency || t('placeholder.choose') }}
  530. </view>
  531. </uv-picker>
  532. </uv-form-item>
  533. <uv-form-item prop="password" :label="t('Custom.NewAccount.Password')"
  534. :borderBottom="false">
  535. <uv-input v-model="params.password" :password="true"
  536. :placeholder="t('Custom.NewAccount.Password')"></uv-input>
  537. </uv-form-item>
  538. <uv-form-item prop="leverage" :label="t('Custom.NewAccount.Lever')"
  539. :borderBottom="false">
  540. <uv-picker v-model="params.leverage" :columns="leverageColumns"
  541. :placeholder="t('placeholder.choose')" :disabled="hidden"
  542. @confirm="handleLeverageConfirm">
  543. <view class="picker-value">{{ params.leverage || t('placeholder.choose') }}
  544. </view>
  545. </uv-picker>
  546. </uv-form-item>
  547. <uv-form-item prop="platform" :borderBottom="false">
  548. <view class="pwd">
  549. <view :class="{ fit: rule1 }">{{ t('signup.form.rules.1st') }}</view>
  550. <view :class="{ fit: rule2 }">{{ t('signup.form.rules.2nd') }}</view>
  551. <view :class="{ fit: rule4 }">{{ t('signup.form.rules.4rd') }}</view>
  552. </view>
  553. </uv-form-item>
  554. <uv-form-item :borderBottom="false">
  555. <uv-button type="primary" class="s-btn" @click="newAccount(3, null)">
  556. {{ t('Btn.OpenAccount') }}
  557. </uv-button>
  558. </uv-form-item>
  559. </uv-form>
  560. </view>
  561. </view>
  562. </view> -->
  563. <!-- 无可用账户提示 -->
  564. <view class="box" v-if="
  565. showLogin.indexOf('6') !== -1 &&
  566. showLogin.indexOf('1') !== -1 &&
  567. showLogin.indexOf('2') !== -1 &&
  568. showLogin.indexOf('3') !== -1 &&
  569. showLogin.indexOf('7') !== -1 &&
  570. !(showLogin.indexOf('8') === -1 && isTimeShow)
  571. ">
  572. <view style="margin: 20px 0; font-size: 14px; line-height: 1.7;">
  573. <text>{{ t('news_add_field.OpenAccount.Des3') }}</text>
  574. </view>
  575. </view>
  576. <!-- 底部说明 -->
  577. <view class="box">
  578. <view style="margin: 20px 0; font-size: 14px; line-height: 1.7;">
  579. <text>{{ t('news_add_field.OpenAccount.Des1') }}</text>
  580. <text class="pdfLink" @click="openPdf('PrivacyPolicy2019_01.pdf')">
  581. {{ t('news_add_field.OpenAccount.Des2') }}
  582. </text>
  583. </view>
  584. </view>
  585. </view>
  586. <!-- 提交后的弹出框 -->
  587. <uv-popup :show="dialogCheck" mode="center" round="16" @close="closeDia">
  588. <view class="dia-content" v-if="dialogVisible">
  589. <view class="icon">
  590. <text class="iconfont icon-success"></text>
  591. </view>
  592. <view class="des1">{{ t('ApplicationDialog.Des1') }}</view>
  593. <view class="des2">{{ t('ApplicationDialog.Des12') }}</view>
  594. <view class="dialog-footer">
  595. <uv-button type="primary" @click="closeDia">
  596. {{ t('Btn.Confirm') }}
  597. </uv-button>
  598. <uv-button @click="closeDia">
  599. {{ t('Btn.Cancel') }}
  600. </uv-button>
  601. </view>
  602. </view>
  603. <view class="dia-content" v-if="!dialogVisible">
  604. <view class="icon">
  605. <text class="iconfont icon-warning"></text>
  606. </view>
  607. <view class="des1">{{ RES }}</view>
  608. <view class="dialog-footer">
  609. <uv-button type="primary" @click="closeDia">
  610. {{ t('Btn.Confirm') }}
  611. </uv-button>
  612. <uv-button @click="closeDia">
  613. {{ t('Btn.Cancel') }}
  614. </uv-button>
  615. </view>
  616. </view>
  617. </uv-popup>
  618. <!-- 账户开立上限提示弹框 -->
  619. <uv-popup :show="dialogAccountLimit" mode="center" round="16" @close="closeAccountLimitDialog">
  620. <view class="account-limit-content">
  621. <view class="icon">
  622. <text class="iconfont icon-warning"></text>
  623. </view>
  624. <view class="title">{{ t('accountLimit.title') }}</view>
  625. <view class="content">
  626. <view class="limit-text">
  627. <view>{{ t('accountLimit.mt4Message') }}</view>
  628. <view>
  629. <view>{{ t('accountLimit.mt4Condition1') }}</view>
  630. </view>
  631. <view>{{ t('accountLimit.mt4Action') }}</view>
  632. </view>
  633. </view>
  634. <view class="dialog-footer">
  635. <uv-button type="primary" class="confirm-btn" @click="closeAccountLimitDialog">
  636. {{ t('accountLimit.button') }}
  637. </uv-button>
  638. </view>
  639. </view>
  640. </uv-popup>
  641. </view>
  642. </cwg-page-wrapper>
  643. </template>
  644. <script setup>
  645. import { ref, reactive, computed, onMounted, watch, nextTick } from 'vue';
  646. import { onLoad } from '@dcloudio/uni-app';
  647. import QrCode from "@/components/QrCode.vue";
  648. import { post } from "@/utils/request";
  649. import { userToken } from "@/composables/config";
  650. import { customApi } from "@/service/custom";
  651. import { ucardApi } from "@/api/ucard";
  652. import useUserStore from "@/stores/use-user-store";
  653. import useRouter from "@/hooks/useRouter";
  654. import { useI18n } from "vue-i18n";
  655. const router = useRouter();
  656. const { t } = useI18n();
  657. const userStore = useUserStore();
  658. // 响应式表单数据
  659. const cativeIndex = ref(0);
  660. const tabs = computed(() => ([
  661. { id: 1, name: 'Step 1: Select Account' },
  662. { id: 2, name: 'Step 2: Add Information' },
  663. { id: 3, name: 'Step 3: Success' },
  664. ]))
  665. // 数据定义
  666. const pictLoading = ref(false);
  667. const flag = ref(false);
  668. const RES = ref('');
  669. const dialogCheck = ref(false);
  670. const dialogVisible = ref(false);
  671. const showData = ref(null);
  672. const isOpenAccount = ref(0);
  673. const checked = ref('');
  674. const optionsLev = ref([]);
  675. const optionsCur = ref([]);
  676. const dome = ref(null);
  677. const showLogin = ref([]);
  678. const showPage = ref(false);
  679. const isTimeShow = ref(false);
  680. const dialogAccountLimit = ref(false);
  681. const limitPlatform = ref('');
  682. const hidden = ref(true);
  683. const ho = ref('');
  684. const language = ref('');
  685. // 表单引用
  686. const formRef = ref(null);
  687. // 表单数据
  688. const params = reactive({
  689. password: '',
  690. currency: '',
  691. leverage: '',
  692. platform: '',
  693. balance: null
  694. });
  695. // 计算属性
  696. const rule1 = computed(() => {
  697. if (!params.password) return false;
  698. return /^.{8,15}$/.test(params.password);
  699. });
  700. const rule2 = computed(() => {
  701. return /^(?=.*?[a-z])(?=.*?[A-Z]).*$/.test(params.password);
  702. });
  703. const rule4 = computed(() => {
  704. return /^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[~!@&%$^*./\\(\\)\\+\\=#_-])[A-Za-z0-9~!@&%$^*./\\(\\)\\+\\=#_-]{8,16}$/.test(
  705. params.password
  706. );
  707. });
  708. // 验证规则
  709. const rules = {
  710. password: [
  711. {
  712. validator: (rule, value, callback) => {
  713. if (/^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[~!@&%$^*./\\(\\)\\+\\=#_-])[A-Za-z0-9~!@&%$^*./\\(\\)\\+\\=#_-]{8,16}$/.test(value)) {
  714. callback();
  715. } else {
  716. callback(new Error(t('vaildate.password.format')));
  717. }
  718. },
  719. trigger: 'blur',
  720. required: true
  721. }
  722. ],
  723. platform: [
  724. {
  725. required: true,
  726. message: t('vaildate.select.empty'),
  727. trigger: 'change'
  728. }
  729. ],
  730. currency: [
  731. {
  732. required: true,
  733. message: t('vaildate.select.empty'),
  734. trigger: 'change'
  735. }
  736. ],
  737. leverage: [
  738. {
  739. required: true,
  740. message: t('vaildate.select.empty'),
  741. trigger: 'change'
  742. }
  743. ],
  744. balance: [
  745. {
  746. validator: (rule, value, callback) => {
  747. if (value === null || value === undefined || value === '') {
  748. callback();
  749. return;
  750. }
  751. const numValue = Number(value);
  752. if (isNaN(numValue)) {
  753. callback(new Error(t('vaildate.amount.format')));
  754. return;
  755. }
  756. if (numValue < 0 || numValue > 100000) {
  757. callback(new Error(t('vaildate.amount.amount') + '0-100000'));
  758. return;
  759. }
  760. callback();
  761. },
  762. trigger: ['blur', 'change']
  763. }
  764. ]
  765. };
  766. // 平台选项
  767. const platformColumns = computed(() => {
  768. const columns = [];
  769. if (showData.value && showData.value['mt4s'] && showData.value['mt4s'].length) {
  770. columns.push({ label: 'MT4', value: 'MT4' });
  771. }
  772. if (showData.value && showData.value['mt5s'] && showData.value['mt5s'].length) {
  773. columns.push({ label: 'MT5', value: 'MT5' });
  774. }
  775. return [columns];
  776. });
  777. // 货币选项
  778. const currencyColumns = computed(() => {
  779. if (optionsCur.value.length) {
  780. return [optionsCur.value.map(item => ({ label: item, value: item }))];
  781. }
  782. return [[]];
  783. });
  784. // 杠杆选项
  785. const leverageColumns = computed(() => {
  786. if (optionsLev.value.length) {
  787. return [optionsLev.value.map(item => ({ label: String(item), value: item }))];
  788. }
  789. return [[]];
  790. });
  791. // 方法
  792. const closeDia = () => {
  793. if (formRef.value) {
  794. formRef.value.resetFields();
  795. }
  796. dialogCheck.value = false;
  797. dialogVisible.value = false;
  798. };
  799. const closeAccountLimitDialog = () => {
  800. dialogAccountLimit.value = false;
  801. limitPlatform.value = '';
  802. };
  803. const showAccountLimitDialog = (platform) => {
  804. limitPlatform.value = platform;
  805. dialogAccountLimit.value = true;
  806. };
  807. // 获取必要数据
  808. const getMustData = async (type, isDome) => {
  809. const api = isDome ? customApi.AccountApplyDataDome : customApi.AccountApplyData;
  810. const res = await api({
  811. type: type
  812. });
  813. if (res.code === 200) {
  814. showData.value = res.data;
  815. } else {
  816. uni.showToast({
  817. title: res.msg,
  818. icon: 'none'
  819. });
  820. }
  821. };
  822. // 获取显示权限
  823. const getExcludeShowLogin = async () => {
  824. pictLoading.value = true;
  825. const res = await customApi.excludeShowLogin({});
  826. if (res.code === 200) {
  827. showLogin.value = res.data?.excludeShowLoginTypes || [];
  828. showPage.value = true;
  829. pictLoading.value = false;
  830. } else {
  831. uni.showToast({
  832. title: res.msg,
  833. icon: 'none'
  834. });
  835. pictLoading.value = false;
  836. }
  837. };
  838. // 提交开户
  839. const newAccount = async (type, isDome) => {
  840. if (!formRef.value) return;
  841. try {
  842. await formRef.value.validate();
  843. } catch (error) {
  844. return;
  845. }
  846. if (flag.value) return;
  847. flag.value = true;
  848. const api = isDome ? customApi.AccountApplyAddDome : customApi.AccountApplyAdd;
  849. const res = await api({
  850. type: type,
  851. ...params
  852. });
  853. if (res.code === 200) {
  854. if (isDome) {
  855. uni.showToast({
  856. title: t('Msg.Success'),
  857. icon: 'success'
  858. });
  859. }
  860. isOpenAccount.value = 0;
  861. dialogCheck.value = true;
  862. dialogVisible.value = true;
  863. if (formRef.value) {
  864. formRef.value.resetFields();
  865. }
  866. flag.value = false;
  867. } else if (res.code === 407) {
  868. showAccountLimitDialog(params.platform);
  869. flag.value = false;
  870. } else {
  871. RES.value = res.msg;
  872. dialogCheck.value = true;
  873. dialogVisible.value = false;
  874. flag.value = false;
  875. }
  876. };
  877. // 展开/关闭账户表单
  878. const isOpenClose = (index, isDome) => {
  879. hidden.value = true;
  880. if (isOpenAccount.value === index) {
  881. isOpenAccount.value = 0;
  882. if (formRef.value) {
  883. formRef.value.resetFields();
  884. }
  885. return;
  886. } else {
  887. isOpenAccount.value = index;
  888. }
  889. if (formRef.value) {
  890. formRef.value.resetFields();
  891. }
  892. dome.value = isDome;
  893. optionsLev.value = [];
  894. optionsCur.value = [];
  895. getMustData(index, isDome);
  896. };
  897. // 选择平台
  898. const checkPlatform = (pla) => {
  899. if (pla === 'mt5s') {
  900. hidden.value = false;
  901. } else {
  902. hidden.value = true;
  903. }
  904. params.currency = '';
  905. params.leverage = '';
  906. optionsLev.value = [];
  907. optionsCur.value = [];
  908. const Cur = [];
  909. showData.value[pla].forEach((item) => {
  910. Cur.push(item.currency);
  911. });
  912. Cur.forEach((item) => {
  913. if (!optionsCur.value.includes(item)) {
  914. optionsCur.value.push(item);
  915. }
  916. });
  917. };
  918. // 平台确认
  919. const handlePlatformConfirm = (value) => {
  920. params.platform = value.value[0];
  921. const pla = params.platform === 'MT4' ? 'mt4s' : 'mt5s';
  922. checkPlatform(pla);
  923. };
  924. // 货币确认
  925. const handleCurrencyConfirm = (value) => {
  926. params.currency = value.value[0];
  927. const pla = params.platform === 'MT4' ? 'mt4s' : 'mt5s';
  928. checkCurrency(pla, params.currency);
  929. };
  930. // 杠杆确认
  931. const handleLeverageConfirm = (value) => {
  932. params.leverage = value.value[0];
  933. };
  934. // 选择货币
  935. const checkCurrency = (pla, cur) => {
  936. params.leverage = '';
  937. optionsLev.value = [];
  938. const platform = pla === 'MT4' ? 'mt4s' : 'mt5s';
  939. const list = [];
  940. showData.value[platform].forEach((item) => {
  941. if (item.currency === cur) {
  942. list.push(item.leverage);
  943. }
  944. });
  945. params.leverage = list.reduce((a, b) => Math.max(a, b));
  946. optionsLev.value = list;
  947. };
  948. // 时间判断
  949. const isAfterJuly28 = () => {
  950. // 实现日期判断逻辑
  951. return false;
  952. };
  953. const isTimeShowType8 = () => {
  954. const endTime1 = '2024/9/25 00:00:00';
  955. const timezone = 2;
  956. const offset_GMT = new Date().getTimezoneOffset();
  957. const nowDate = new Date().getTime();
  958. const now = new Date(nowDate + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000).getTime();
  959. const end = new Date(endTime1).getTime();
  960. if (now > end) {
  961. isTimeShow.value = true;
  962. }
  963. };
  964. // 余额变化验证
  965. const handleBalanceChange = () => {
  966. if (formRef.value) {
  967. formRef.value.validateField('balance');
  968. }
  969. };
  970. // 打开链接
  971. const openLink = (path) => {
  972. uni.navigateTo({
  973. url: `/pages/webview/index?url=https://www.${ho.value}.com/${path}`
  974. });
  975. };
  976. // 打开PDF
  977. const openPdf = (path) => {
  978. uni.navigateTo({
  979. url: `/pages/webview/index?url=/pdf/${path}`
  980. });
  981. };
  982. // 监听balance变化
  983. watch(() => params.balance, (newVal, oldVal) => {
  984. if (newVal !== oldVal && newVal !== null && newVal !== undefined) {
  985. nextTick(() => {
  986. if (formRef.value) {
  987. formRef.value.validateField('balance');
  988. }
  989. });
  990. }
  991. });
  992. // 生命周期
  993. onLoad(() => {
  994. const host = window?.location?.host || '';
  995. ho.value = host.split('.')[1] || '';
  996. // 获取语言
  997. const locale = uni.getLocale();
  998. language.value = locale;
  999. getExcludeShowLogin();
  1000. isTimeShowType8();
  1001. });
  1002. onMounted(() => {
  1003. // 挂载后的操作
  1004. });
  1005. </script>
  1006. <style lang="scss" scoped>
  1007. .tit {
  1008. font-size: 16px;
  1009. font-weight: bold;
  1010. margin: 10px 0;
  1011. .iconfont {
  1012. margin-right: 6px;
  1013. }
  1014. }
  1015. .des {
  1016. font-size: 14px;
  1017. font-weight: bold;
  1018. line-height: 1.5;
  1019. margin-bottom: 20px;
  1020. }
  1021. #custom_newAccount {
  1022. width: 100%;
  1023. height: 100%;
  1024. overflow: hidden;
  1025. overflow-y: auto;
  1026. &.u-loading {
  1027. position: relative;
  1028. &::after {
  1029. content: '';
  1030. position: absolute;
  1031. top: 0;
  1032. left: 0;
  1033. right: 0;
  1034. bottom: 0;
  1035. background: rgba(255, 255, 255, 0.5);
  1036. z-index: 99;
  1037. }
  1038. }
  1039. .main-content {
  1040. text-align: left;
  1041. padding: 0 20px;
  1042. .box {
  1043. padding: 10px 0;
  1044. text-align: left;
  1045. background-color: #ffffff;
  1046. border-radius: 2px;
  1047. margin: 20px 0;
  1048. .pdfLink {
  1049. color: #42b983;
  1050. font-weight: bold;
  1051. text-decoration: underline;
  1052. margin-left: 4px;
  1053. }
  1054. .b-card {
  1055. border: 2px solid #e5e5e5;
  1056. margin-bottom: 20px;
  1057. border-radius: 2px;
  1058. position: relative;
  1059. overflow: hidden;
  1060. .btn-tag-star {
  1061. position: absolute;
  1062. top: 4px;
  1063. left: -15px;
  1064. background-color: #f56c6c;
  1065. color: #ffffff;
  1066. transform: rotate(-45deg);
  1067. width: 60px;
  1068. text-align: center;
  1069. z-index: 9;
  1070. padding: 1px 0;
  1071. }
  1072. .card-top {
  1073. display: flex;
  1074. border-bottom: 1px solid #e5e5e5;
  1075. .tit {
  1076. font-weight: bold;
  1077. }
  1078. .btn-bottom {
  1079. font-size: 14px;
  1080. .btn-open,
  1081. .btn-try {
  1082. display: inline-block;
  1083. width: 150px;
  1084. text-align: center;
  1085. border: 1px solid #e5e5e5;
  1086. padding: 8px 0;
  1087. margin: 5px;
  1088. color: #ffffff;
  1089. .iconfont {
  1090. margin-right: 3px;
  1091. font-size: 12px;
  1092. }
  1093. }
  1094. .btn-open {
  1095. margin-right: 5px;
  1096. background-color: #f56c6c;
  1097. color: #ffffff;
  1098. }
  1099. .btn-try {
  1100. background-color: #909399;
  1101. }
  1102. }
  1103. .header {
  1104. padding: 15px 25px;
  1105. }
  1106. .descending {
  1107. padding: 10px;
  1108. box-sizing: border-box;
  1109. height: 100%;
  1110. width: 100%;
  1111. font-size: 14px;
  1112. line-height: 1.2;
  1113. background-color: #f5f5f5;
  1114. display: flex;
  1115. flex-wrap: wrap;
  1116. align-items: center;
  1117. view {
  1118. width: 100%;
  1119. box-sizing: border-box;
  1120. text-align: center;
  1121. }
  1122. }
  1123. }
  1124. .card-bottom {
  1125. padding: 20px;
  1126. border-bottom: 1px solid #d5d5d5;
  1127. .check {
  1128. padding: 6px 8px;
  1129. margin: 15px 15px 15px 0;
  1130. border: 1px solid #d5d5d5;
  1131. }
  1132. .pwd {
  1133. text-align: left;
  1134. padding-left: 20px;
  1135. margin-top: 15px;
  1136. view {
  1137. list-style-type: disc;
  1138. line-height: 1.2;
  1139. margin: 4px 0;
  1140. color: #c0c4cc;
  1141. &.fit {
  1142. color: #67c23a;
  1143. }
  1144. }
  1145. }
  1146. .picker-value {
  1147. padding: 10px 0;
  1148. border-bottom: 1px solid #e5e5e5;
  1149. }
  1150. .s-btn {
  1151. width: 100%;
  1152. margin-top: 20px;
  1153. }
  1154. }
  1155. &:hover {
  1156. border-color: #f56c6c;
  1157. }
  1158. }
  1159. }
  1160. }
  1161. .dia-content {
  1162. text-align: center;
  1163. padding: 30px 20px;
  1164. .icon {
  1165. .iconfont {
  1166. font-size: 80px;
  1167. &.icon-warning {
  1168. color: #f56c6c;
  1169. }
  1170. &.icon-success {
  1171. color: #67c23a;
  1172. }
  1173. }
  1174. }
  1175. .des1 {
  1176. font-weight: bold;
  1177. font-size: 16px;
  1178. margin: 30px 0 15px;
  1179. }
  1180. .des2 {
  1181. font-size: 14px;
  1182. margin-bottom: 30px;
  1183. }
  1184. .dialog-footer {
  1185. display: flex;
  1186. justify-content: center;
  1187. gap: 20px;
  1188. margin-top: 20px;
  1189. .uv-button {
  1190. min-width: 100px;
  1191. }
  1192. }
  1193. }
  1194. .account-limit-content {
  1195. text-align: center;
  1196. padding: 30px 20px;
  1197. .icon {
  1198. margin-bottom: 20px;
  1199. .iconfont {
  1200. font-size: 60px;
  1201. color: #f56c6c;
  1202. }
  1203. }
  1204. .title {
  1205. font-size: 18px;
  1206. font-weight: bold;
  1207. color: #333;
  1208. margin-bottom: 20px;
  1209. }
  1210. .content {
  1211. text-align: center;
  1212. margin: 20px 0 30px;
  1213. .limit-text {
  1214. view {
  1215. font-size: 14px;
  1216. line-height: 1.6;
  1217. color: #666;
  1218. margin-bottom: 15px;
  1219. text-align: center;
  1220. }
  1221. }
  1222. }
  1223. .dialog-footer {
  1224. text-align: center;
  1225. margin-top: 20px;
  1226. .confirm-btn {
  1227. min-width: 120px;
  1228. background-color: #f56c6c;
  1229. border: none;
  1230. color: #fff;
  1231. }
  1232. }
  1233. }
  1234. }
  1235. </style>