improveImmediately.vue 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860
  1. <template>
  2. <cwg-page-wrapper>
  3. <view class="page page-shadow">
  4. <uni-forms ref="formRef" :model="formData" :rules="rules" labelWidth="200" label-position="top"
  5. class="payment-form">
  6. <!-- 第一步:个人信息 -->
  7. <view v-show="currentStep === 1" class="form-section">
  8. <h3 class="section-title">{{ t('ImproveImmediately.Title.BasicInformation') }}</h3>
  9. <uni-row class="demo-uni-row uni-row1">
  10. <!-- 客户类型 -->
  11. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  12. <uni-forms-item :label="t('ImproveImmediately.Label.CustomerType')">
  13. <cwg-combox :clearable="false" v-model:value="formData.customType" :options="customerTypeOptions"
  14. :placeholder="t('placeholder.choose')" />
  15. </uni-forms-item>
  16. </uni-col>
  17. <!-- 公司名称 -->
  18. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-if="formData.customType == 2">
  19. <uni-forms-item :label="t('ImproveImmediately.Label.CompanyName')">
  20. <uni-easyinput :clearable="false" v-model="formData.companyName"
  21. :placeholder="t('placeholder.input')" />
  22. </uni-forms-item>
  23. </uni-col>
  24. <!-- 姓 -->
  25. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  26. <uni-forms-item :label="formData.customType == 2
  27. ? t('ImproveImmediately.Label.CorporationLastName')
  28. : t('ImproveImmediately.Label.LastName')">
  29. <uni-easyinput :clearable="false" v-model="formData.lastName" :placeholder="t('placeholder.input')" />
  30. </uni-forms-item>
  31. </uni-col>
  32. <!-- 名 -->
  33. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  34. <uni-forms-item :label="formData.customType == 2
  35. ? t('ImproveImmediately.Label.CorporationName')
  36. : t('ImproveImmediately.Label.Name')">
  37. <uni-easyinput :clearable="false" v-model="formData.firstName" :placeholder="t('placeholder.input')" />
  38. </uni-forms-item>
  39. </uni-col>
  40. <!-- 法人中间名 -->
  41. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-if="locale == 'en'">
  42. <uni-forms-item name="middle" :label="t('placeholder.middle')">
  43. <uni-easyinput :clearable="false" v-model="formData.middle" :placeholder="t('placeholder.input')" />
  44. </uni-forms-item>
  45. </uni-col>
  46. <!-- 国家 -->
  47. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-if="countryOptions.length > 0">
  48. <uni-forms-item name="nationality" :label="t('ImproveImmediately.Label.Nationality')">
  49. <cwg-combox :clearable="false" :filterable="true" v-model:value="formData.nationality"
  50. :options="countryOptions" :placeholder="t('placeholder.choose')" />
  51. </uni-forms-item>
  52. </uni-col>
  53. <!-- 证件类型 -->
  54. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  55. <uni-forms-item name="IdentityType" :label="identityLabel">
  56. <cwg-combox :clearable="false" v-model:value="formData.IdentityType" :options="identityTypes"
  57. :placeholder="t('placeholder.choose')" />
  58. </uni-forms-item>
  59. </uni-col>
  60. <!-- 证件号 -->
  61. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  62. <uni-forms-item name="identity" :label="t('ImproveImmediately.Label.IdentityID')">
  63. <uni-easyinput :clearable="false" v-model="formData.identity" :placeholder="t('placeholder.input')" />
  64. </uni-forms-item>
  65. </uni-col>
  66. <!-- 拼音 -->
  67. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-if="['cn', 'zhHant'].includes(locale)">
  68. <uni-forms-item name="nameEn" :label="t('ImproveImmediately.Label.NamePinYin')">
  69. <uni-easyinput :clearable="false" v-model="formData.nameEn" :placeholder="t('placeholder.input')" />
  70. </uni-forms-item>
  71. </uni-col>
  72. <!-- 性别 -->
  73. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  74. <uni-forms-item name="gender" :label="t('ImproveImmediately.Label.Gender')">
  75. <cwg-combox :clearable="false" v-model:value="formData.gender" :options="genderOptions"
  76. :placeholder="t('placeholder.choose')" />
  77. </uni-forms-item>
  78. </uni-col>
  79. <!-- 生日 -->
  80. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  81. <uni-forms-item name="birth" :label="t('ImproveImmediately.Label.Birthday')">
  82. <uni-datetime-picker :clear-icon="false" type="date" return-type="timestamp" v-model="formData.birth"
  83. :placeholder="t('placeholder.choose')" />
  84. </uni-forms-item>
  85. </uni-col>
  86. <uni-col :span="24">
  87. <view class="crm-title-box">
  88. <text class="tit">{{ t('ImproveImmediately.Title.AddressInformation') }}</text>
  89. <uni-tooltip placement="top">
  90. <text class="icon-tip">ⓘ</text>
  91. <template v-slot:content>
  92. <view class="address-tip">
  93. {{ t('ImproveImmediately.Title.AddressTip') }}
  94. </view>
  95. </template>
  96. </uni-tooltip>
  97. </view>
  98. </uni-col>
  99. <!-- 国家/地区 -->
  100. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-if="countryOptions.length > 0">
  101. <uni-forms-item name="country" :label="t('ImproveImmediately.Label.CountryRegionOfResidence')">
  102. <cwg-combox :clearable="false" :filterable="true" v-model:value="formData.country"
  103. :options="countryOptions" :placeholder="t('placeholder.choose')" @change="changeCountry" />
  104. </uni-forms-item>
  105. </uni-col>
  106. <!-- 省份/州 -->
  107. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8"
  108. v-if="formData.country == 'CN' || formData.country == 'CNX' || formData.country == 'CNA' || formData.country == 'CNT'">
  109. <uni-forms-item name="state" :label="t('ImproveImmediately.Label.ProvinceRegion')">
  110. <cwg-combox :clearable="false" :filterable="true" v-model:value="formData.state" :options="stateOptions"
  111. :placeholder="t('placeholder.choose')" @change="changeState" />
  112. </uni-forms-item>
  113. </uni-col>
  114. <!-- 国外省份/州 -->
  115. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-else>
  116. <uni-forms-item name="state" :label="t('ImproveImmediately.Label.ProvinceRegion')">
  117. <uni-easyinput :clearable="false" v-model="formData.state" :placeholder="t('placeholder.input')" />
  118. </uni-forms-item>
  119. </uni-col>
  120. <!-- 城市 -->
  121. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8"
  122. v-if="formData.country == 'CN' || formData.country == 'CNX' || formData.country == 'CNA' || formData.country == 'CNT'">
  123. <uni-forms-item name="city" :label="t('ImproveImmediately.Label.City')">
  124. <cwg-combox :clearable="false" :filterable="true" v-model:value="formData.city" :options="cityOptions"
  125. :placeholder="t('placeholder.choose')" />
  126. </uni-forms-item>
  127. </uni-col>
  128. <!-- 国外城市 -->
  129. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" v-else>
  130. <uni-forms-item name="city" :label="t('ImproveImmediately.Label.City')">
  131. <uni-easyinput :clearable="false" v-model="formData.city" :placeholder="t('placeholder.input')" />
  132. </uni-forms-item>
  133. </uni-col>
  134. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  135. <uni-forms-item name="addressLines1" :label="t('ImproveImmediately.Label.DetailedAddress')">
  136. <uni-easyinput :clearable="false" v-model="formData.addressLines1"
  137. :placeholder="t('placeholder.input')" />
  138. </uni-forms-item>
  139. </uni-col>
  140. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  141. <uni-forms-item name="zipCode" :label="t('ImproveImmediately.Label.ZipCode')">
  142. <uni-easyinput :clearable="false" v-model="formData.zipCode" :placeholder="t('placeholder.input')" />
  143. </uni-forms-item>
  144. </uni-col>
  145. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  146. <uni-forms-item name="addressLines2" :label="t('ImproveImmediately.Label.DetailedAddressStandby')">
  147. <uni-easyinput :clearable="false" v-model="formData.addressLines2"
  148. :placeholder="t('placeholder.input')" />
  149. </uni-forms-item>
  150. </uni-col>
  151. </uni-row>
  152. </view>
  153. <!-- 第二步:财务背景 -->
  154. <view v-show="currentStep === 2" class="form-section">
  155. <h3 class="section-title">{{ t('ImproveImmediately.Title.FinancialBackground') }}</h3>
  156. <uni-row class="demo-uni-row uni-row1">
  157. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  158. <uni-forms-item name="level" :label="t('ImproveImmediately.Label.Education')">
  159. <cwg-combox :clearable="false" v-model:value="formData.level" :options="educationOptions"
  160. :placeholder="t('placeholder.choose')" />
  161. </uni-forms-item>
  162. </uni-col>
  163. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  164. <uni-forms-item name="employmentStatus" :label="t('ImproveImmediately.Label.OnJob')">
  165. <cwg-combox :clearable="false" v-model:value="formData.employmentStatus" :options="employmentOptions"
  166. :placeholder="t('placeholder.choose')" />
  167. </uni-forms-item>
  168. </uni-col>
  169. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  170. <uni-forms-item name="tradingObjectives" :label="t('ImproveImmediately.Label.purposeTransaction')">
  171. <cwg-combox :clearable="false" v-model:value="formData.tradingObjectives"
  172. :options="transactionPurposeOptions" :placeholder="t('placeholder.choose')" />
  173. </uni-forms-item>
  174. </uni-col>
  175. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  176. <uni-forms-item name="sourceFunding" :label="t('ImproveImmediately.Label.SourceFunds')">
  177. <cwg-combox :clearable="false" v-model:value="formData.sourceFunding" :options="fundSourceOptions"
  178. :placeholder="t('placeholder.choose')" />
  179. </uni-forms-item>
  180. </uni-col>
  181. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  182. <uni-forms-item name="grossAnnualIncome" :label="t('ImproveImmediately.Label.TotalAnnualRevenue')">
  183. <cwg-combox :clearable="false" v-model:value="formData.grossAnnualIncome" :options="annualIncomeOptions"
  184. :placeholder="t('placeholder.choose')" />
  185. </uni-forms-item>
  186. </uni-col>
  187. <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
  188. <uni-forms-item name="totalNewWorth" :label="t('ImproveImmediately.Label.TotalNetAssets')">
  189. <cwg-combox :clearable="false" v-model:value="formData.totalNewWorth" :options="netWorthOptions"
  190. :placeholder="t('placeholder.choose')" />
  191. </uni-forms-item>
  192. </uni-col>
  193. </uni-row>
  194. <h3 class="section-title">{{ t('ImproveImmediately.Title.TradingExperience') }}</h3>
  195. <view class="experience">
  196. <text class="Trad-experience">{{ t('ImproveImmediately.Content.TradingExperience1') }}</text>
  197. <view class="Trad-choose">
  198. <uni-data-checkbox v-model="formData.experienceTradingDerivative"
  199. :localdata="radioList"></uni-data-checkbox>
  200. </view>
  201. </view>
  202. <view class="experience">
  203. <text class="Trad-experience">{{ t('ImproveImmediately.Content.TradingExperience2') }}</text>
  204. <view class="Trad-choose">
  205. <uni-data-checkbox v-model="formData.experienceTradingForex" :localdata="radioList"></uni-data-checkbox>
  206. </view>
  207. </view>
  208. <view class="experience">
  209. <text class="Trad-experience">{{ t('ImproveImmediately.Content.TradingExperience3') }}</text>
  210. <view class="Trad-choose">
  211. <uni-data-checkbox v-model="formData.derivativeProducts" :localdata="radioList"></uni-data-checkbox>
  212. </view>
  213. </view>
  214. <view class="experience">
  215. <text class="Trad-experience">{{ t('ImproveImmediately.Content.TradingExperience4') }}</text>
  216. <view class="Trad-choose">
  217. <uni-data-checkbox v-model="formData.experienceQualification" :localdata="radioList"></uni-data-checkbox>
  218. </view>
  219. </view>
  220. </view>
  221. <!-- 第三步:身份证明 -->
  222. <view v-show="currentStep === 3" class="form-section">
  223. <uni-row class="demo-uni-row uni-row1">
  224. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  225. <view class="crm-title-box">
  226. <text class="tit">{{ t('ImproveImmediately.Title.ProofIdentityUpdate') }}</text>
  227. <uni-tooltip placement="bottom">
  228. <text class="icon-tip">ⓘ</text>
  229. <template v-slot:content>
  230. <view class="address-tip">
  231. {{ t('ImproveImmediately.Content.popover1') }}
  232. </view>
  233. </template>
  234. </uni-tooltip>
  235. </view>
  236. <uni-forms-item name="cardType" :label="t('ImproveImmediately.Label.CardType')">
  237. <cwg-combox :clearable="false" v-model:value="formData.cardType" :options="cardTypeOptions"
  238. :placeholder="t('placeholder.choose')" />
  239. </uni-forms-item>
  240. <uni-row class="demo-uni-row uni-row1">
  241. <uni-col :xs="24" :sm="24" :md="10" :lg="10" :xl="10">
  242. <cwg-file-picker-wrapper v-model="fileListID1.path" :editable="fileListID1.status != 2" :limit="1"
  243. :fileMediatype="'all'" uploadUrl="/custom/file/upload/1" :baseUrl="updateUrl" :imageWidth="150"
  244. :imageHeight="150" :showPreviewDelete="false" :canDelete="false" :uploadError="false"
  245. :showProgress="false" :canChoose="true" :showError="false" :show-progress="false" disablePreview
  246. :image-styles="imageStyle" @update:modelValue="(val) => handleFileUpdate(val, '1')"
  247. customClass="avatar-uploader">
  248. <view class="file-item">
  249. <image v-if="!isPdf(fileListID1.path)" class="avatar" :src="updateUrl + (fileListID1.path)">
  250. </image>
  251. <view v-else>
  252. <image class="icon" :src="icon_doc" />
  253. </view>
  254. </view>
  255. </cwg-file-picker-wrapper>
  256. <!-- <view v-else>-->
  257. <!-- <view class="file-item">-->
  258. <!-- <image-->
  259. <!-- v-if="!isPdf(fileListID1.path)"-->
  260. <!-- class="avatar"-->
  261. <!-- :src="updateUrl + fileListID1.path"-->
  262. <!-- ></image>-->
  263. <!-- <view v-else>-->
  264. <!-- <image class="icon" :src="icon_doc" />-->
  265. <!-- </view>-->
  266. <!-- </view>-->
  267. <!-- </view>-->
  268. </uni-col>
  269. <uni-col :xs="24" :sm="24" :md="10" :lg="10" :xl="10">
  270. <cwg-file-picker-wrapper v-model="fileListID2.path" :editable="fileListID2.status != 2" :limit="1"
  271. :fileMediatype="'all'" uploadUrl="/custom/file/upload/2" :baseUrl="updateUrl" :imageWidth="150"
  272. :imageHeight="150" :showPreviewDelete="false" :canDelete="false" :uploadError="false"
  273. :showProgress="false" :canChoose="true" :showError="false" :show-progress="false" disablePreview
  274. :image-styles="imageStyle" @update:modelValue="(val) => handleFileUpdate(val, '2')"
  275. customClass="avatar-uploader">
  276. <view class="file-item">
  277. <image v-if="!isPdf(fileListID2.path)" class="avatar" :src="updateUrl + (fileListID2.path)">
  278. </image>
  279. <view v-else>
  280. <image class="icon" :src="icon_doc" />
  281. </view>
  282. </view>
  283. </cwg-file-picker-wrapper>
  284. </uni-col>
  285. <uni-col :xs="24" :sm="24" :md="4" :lg="4" :xl="4">
  286. <view class="refresh">
  287. <image :src="icon_refresh" @click="getCustomFileList" />
  288. </view>
  289. </uni-col>
  290. </uni-row>
  291. </uni-col>
  292. <cwg-match-media :min-width="991">
  293. <uni-col v-if="isPC" :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  294. <view class="crm-title-box">
  295. <text class="tit">{{ t('ImproveImmediately.Title.MobileDeviceUpload') }}</text>
  296. <uni-tooltip placement="bottom">
  297. <text class="icon-tip">ⓘ</text>
  298. <template v-slot:content>
  299. <view class="address-tip">
  300. {{ t('ImproveImmediately.Content.popover2') }}
  301. </view>
  302. </template>
  303. </uni-tooltip>
  304. </view>
  305. <view class="con-box">
  306. <view class="box">
  307. <image class="mobile" :src="icon_mobile" />
  308. <image class="arrow" :src="icon_arrowR" />
  309. <image class="img_mobile" style="
  310. display: inline-block;
  311. width: 120px;
  312. height: 120px;
  313. border: 8px solid var(--color-gray);
  314. " :src="mobile">
  315. <div slot="error" class="image-slot">
  316. <i class="el-icon-picture-outline"></i>
  317. </div>
  318. </image>
  319. <image class="icon_refresh" :src="icon_refresh" @click="getMobileInfo" />
  320. </view>
  321. </view>
  322. </uni-col>
  323. </cwg-match-media>
  324. </uni-row>
  325. <view class="descending">
  326. <p class="title">
  327. <span class="dian1">·</span>
  328. <span>{{ t('ImproveImmediately.Title.IdentificationStatement') }}</span>
  329. </p>
  330. <p class="des">
  331. <span class="dian">-</span>
  332. <span>{{ t('ImproveImmediately.Content.ProofIdentity4') }}</span>
  333. </p>
  334. <p class="des">
  335. <span class="dian">-</span>
  336. <span>{{ t('ImproveImmediately.Content.ProofIdentity5') }}</span>
  337. </p>
  338. <p class="des" v-if="['cn', 'zhHant'].indexOf(locale) == -1">
  339. <span class="dian">-</span>
  340. <span>{{ t('ImproveImmediately.Content.ProofIdentity6') }}</span>
  341. </p>
  342. <p class="des">
  343. <span class="dian">·</span>
  344. <span>{{ t('ImproveImmediately.Content.ProofIdentity1') }}</span>
  345. </p>
  346. <p class="des">
  347. <span class="dian">·</span>
  348. <span>{{ t('ImproveImmediately.Content.ProofIdentity2') }}</span>
  349. </p>
  350. <p class="des">
  351. <span class="dian">·</span>
  352. <span>{{ t('ImproveImmediately.Content.ProofIdentity3') }}</span>
  353. </p>
  354. <p class="des" v-if="['cn', 'zhHant'].indexOf(locale) == -1">
  355. <span class="dian">·</span>
  356. <span>{{ t('ImproveImmediately.Content.ProofIdentity7') }}</span>
  357. </p>
  358. <p class="des" v-if="['cn', 'zhHant'].indexOf(locale) == -1">
  359. <span class="dian">·</span>
  360. <span>{{ t('ImproveImmediately.Content.ProofIdentity8') }}</span>
  361. </p>
  362. </view>
  363. </view>
  364. <!-- 第四步:地址证明 -->
  365. <view v-show="currentStep === 4" class="form-section">
  366. <!--去掉地址证明-->
  367. <!-- <uni-row class="demo-uni-row uni-row1">
  368. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  369. <view class="crm-title-box">
  370. <text class="tit">{{ t('ImproveImmediately.Title.ProofAddress') }}</text>
  371. <uni-tooltip placement="bottom">
  372. <text class="icon-tip">ⓘ</text>
  373. <template v-slot:content>
  374. <view class="address-tip">
  375. {{ t('ImproveImmediately.Content.ProofAddress5') }}
  376. </view>
  377. </template>
  378. </uni-tooltip>
  379. </view>
  380. <uni-row class="demo-uni-row uni-row1">
  381. <uni-col :xs="24" :sm="24" :md="16" :lg="16" :xl="16">
  382. <cwg-file-picker-wrapper
  383. v-model="fileListAdd1.path"
  384. :editable="fileListAdd1.status != 2"
  385. :limit="1"
  386. :fileMediatype="'all'"
  387. uploadUrl="/custom/file/upload/3"
  388. :baseUrl="updateUrl"
  389. :imageWidth="150"
  390. :imageHeight="150"
  391. :showPreviewDelete="false"
  392. :canDelete="false"
  393. :uploadError="false"
  394. :showProgress="false"
  395. :canChoose="true"
  396. :showError="false"
  397. :show-progress="false"
  398. disablePreview
  399. :image-styles="imageStyle"
  400. @update:modelValue="(val) => handleFileUpdate(val, '1')"
  401. customClass="avatar-uploader"
  402. >
  403. <view class="file-item">
  404. <image
  405. v-if="!isPdf(fileListAdd1.path)"
  406. class="avatar"
  407. :src="updateUrl + fileListAdd1.path"
  408. ></image>
  409. <view v-else>
  410. <image class="icon" :src="icon_doc" />
  411. </view>
  412. </view>
  413. </cwg-file-picker-wrapper>
  414. </uni-col>
  415. <uni-col :xs="24" :sm="24" :md="4" :lg="4" :xl="4">
  416. <view class="refresh">
  417. <image :src="icon_refresh" @click="getCustomFileList" />
  418. </view>
  419. </uni-col>
  420. </uni-row>
  421. </uni-col>
  422. <uni-col v-if="isPC" :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  423. <view class="crm-title-box">
  424. <text class="tit">{{ t('ImproveImmediately.Title.MobileDeviceUpload') }}</text>
  425. <uni-tooltip placement="bottom">
  426. <text class="icon-tip">ⓘ</text>
  427. <template v-slot:content>
  428. <view class="address-tip">
  429. {{ t('ImproveImmediately.Content.popover2') }}
  430. </view>
  431. </template>
  432. </uni-tooltip>
  433. </view>
  434. <view class="con-box">
  435. <view class="box">
  436. <cwg-icon name="icon_mobile" :size="50"/>
  437. &lt;!&ndash; <image class="mobile" :src="icon_mobile" />&ndash;&gt;
  438. <image class="arrow" :src="icon_arrowR" />
  439. <image
  440. class="img_mobile"
  441. style="
  442. display: inline-block;
  443. width: 120px;
  444. height: 120px;
  445. border: 8px solid var(&#45;&#45;color-gray);
  446. "
  447. :src="mobile"
  448. >
  449. <div slot="error" class="image-slot">
  450. <i class="el-icon-picture-outline"></i>
  451. </div>
  452. </image>
  453. <image class="icon_refresh" :src="icon_refresh" @click="getMobileInfo" />
  454. </view>
  455. </view>
  456. </uni-col>
  457. </uni-row>-->
  458. <uni-row class="demo-uni-row uni-row1">
  459. <uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
  460. <view class="crm-title-box">
  461. <text class="tit">{{ t('PersonalManagement.Title.AttachedFile') }}</text>
  462. </view>
  463. <uni-row class="demo-uni-row uni-row1">
  464. <uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
  465. <cwg-file-picker :limit="9" :multiple="true" :editable="true" :fileMediatype="'all'"
  466. uploadUrl="/custom/file/upload/10" :baseUrl="updateUrl" :imageWidth="100" :imageHeight="60"
  467. :showPreviewDelete="false" :canDelete="false" :uploadError="false" :showProgress="false"
  468. :image-styles="imageStyle" @update:modelValue="(val) => handleFileUpdate(val, '10')"
  469. custom-class="fileOther" :showError="false">
  470. <button type="primary">{{ t('Btn.Upload') }}</button>
  471. </cwg-file-picker>
  472. <view class="fileList">
  473. <view id="files" v-for="(item, index) in fileListOthers" :key="index">
  474. <cwg-file-picker-wrapper customClass="list_upload" v-model="item.path"
  475. :editable="item.status != 2" :limit="1" :fileMediatype="'all'"
  476. :uploadUrl="'/custom/file/upload/10/' + item.id" :baseUrl="updateUrl" :uploadError="false"
  477. :showProgress="false" :imageWidth="100" :imageHeight="60" :showPreviewDelete="true"
  478. :disablePreview="true" :image-styles="imageStyle" :canChoose="true"
  479. @update:modelValue="(val) => handleFileUpdate(val, '1')">
  480. <view class="file-item">
  481. <image v-if="!isPdf(item.path) || !isPdf(item.againPath)" class="avatar"
  482. :src="updateUrl + (item.againPath || item.path)"></image>
  483. <view v-else>
  484. <image class="icon" :src="icon_doc" />
  485. </view>
  486. </view>
  487. </cwg-file-picker-wrapper>
  488. <view class="options">
  489. <u-button style="margin-right: 20px;" :disabled="item.status == 2" @click.stop="showFile(item)">
  490. <a :href="updateUrl + (item.againPath || item.path)" target="_blank">
  491. {{ t('Btn.item12') }}
  492. </a>
  493. </u-button>
  494. <u-button :disabled="item.status == 2" @click="fileOtherDelete(item.id)">
  495. {{ t('Btn.Delete') }}
  496. </u-button>
  497. </view>
  498. </view>
  499. </view>
  500. </uni-col>
  501. <uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
  502. <view class="refresh">
  503. <image :src="icon_refresh" @click="getCustomFileList" />
  504. </view>
  505. </uni-col>
  506. </uni-row>
  507. </uni-col>
  508. </uni-row>
  509. <view class="descending">
  510. <p class="title">
  511. <span>{{ t('ImproveImmediately.Title.AddressDescription') }}</span>
  512. </p>
  513. <p class="des">
  514. <span class="dian">-</span>
  515. <span>{{ t('ImproveImmediately.Content.ProofAddress1') }}</span>
  516. </p>
  517. <p class="des">
  518. <span class="dian">-</span>
  519. <span>{{ t('ImproveImmediately.Content.ProofAddress2') }}</span>
  520. </p>
  521. <p class="des">
  522. <span class="dian">-</span>
  523. <span>{{ t('ImproveImmediately.Content.ProofAddress3') }}</span>
  524. </p>
  525. <p class="des">
  526. <span class="dian" v-if="['cn', 'zhHant'].indexOf(locale) != -1">·</span>
  527. <span class="dian" v-if="locale == 'en'">-</span>
  528. <span>{{ t('ImproveImmediately.Content.ProofAddress4') }}</span>
  529. </p>
  530. <p class="des">
  531. <span class="dian">·</span>
  532. <span>{{ t('ImproveImmediately.Content.ProofAddress6') }}</span>
  533. </p>
  534. <p class="des" v-if="locale == 'en'">
  535. <span class="dian">·</span>
  536. <span>{{ t('ImproveImmediately.Content.ProofAddress7') }}</span>
  537. </p>
  538. <p class="des" v-if="locale == 'en'">
  539. <span class="dian">·</span>
  540. <span>{{ t('ImproveImmediately.Content.ProofAddress8') }}</span>
  541. </p>
  542. </view>
  543. </view>
  544. <!-- 步骤控制按钮 -->
  545. <view>
  546. <template v-if="currentStep === 4">
  547. <view class="btns">
  548. <view class="cwg-button two-btn">
  549. <u-button class="btn-primary" type="primary" block @click="cancle">
  550. {{ t('Btn.Cancel') }}
  551. </u-button>
  552. <u-button plain block class="prev-btn btn-primary" @click="goStep(3)">
  553. {{ t('Btn.Last') }}
  554. </u-button>
  555. <u-button type="primary" class="btn-primary" block :loading="loadingStates.submit" @click="Submit">
  556. {{ t('Btn.Submit') }}
  557. </u-button>
  558. </view>
  559. </view>
  560. </template>
  561. <template v-else-if="currentStep === 3">
  562. <view class="btns">
  563. <view class="cwg-button two-btn">
  564. <u-button class="btn-primary" type="primary" block @click="cancle">
  565. {{ t('Btn.Cancel') }}
  566. </u-button>
  567. <u-button plain block class="prev-btn btn-primary" @click="goStep(2)">
  568. {{ t('Btn.Last') }}
  569. </u-button>
  570. <u-button class="btn-primary" type="primary" block :loading="loadingStates.next" @click="goStep(4)">
  571. {{ t('Btn.Next') }}
  572. </u-button>
  573. </view>
  574. </view>
  575. </template>
  576. <template v-else-if="currentStep === 2">
  577. <view class="btns">
  578. <view class="cwg-button two-btn">
  579. <u-button class="btn-primary" type="primary" block @click="cancle">
  580. {{ t('Btn.Cancel') }}
  581. </u-button>
  582. <u-button plain block class="prev-btn btn-primary" @click="goStep(1)">
  583. {{ t('Btn.Last') }}
  584. </u-button>
  585. <u-button class="btn-primary" type="primary" block :loading="loadingStates.next" @click="goStep(3)">
  586. {{ t('Btn.Next') }}
  587. </u-button>
  588. </view>
  589. </view>
  590. </template>
  591. <template v-else-if="currentStep === 1">
  592. <view class="btns">
  593. <view class="cwg-button two-btn">
  594. <u-button class="btn-primary" type="primary" block @click="cancle">
  595. {{ t('Btn.Cancel') }}
  596. </u-button>
  597. <u-button class="btn-primary" type="primary" block :loading="loadingStates.next" @click="goStep(2)">
  598. {{ t('Btn.Next') }}
  599. </u-button>
  600. </view>
  601. </view>
  602. </template>
  603. </view>
  604. </uni-forms>
  605. </view>
  606. <view class="form-tab"></view>
  607. </cwg-page-wrapper>
  608. <!--离开弹出框-->
  609. <uni-popup ref="dialogCheck" type="center" background-color="#fff">
  610. <view class="dia-content" v-if="dialogCheck1">
  611. <view class="icon">
  612. <i class="iconfont iconjingshi"></i>
  613. </view>
  614. <view class="des1">{{ t('ImproveImmediately.Content.Leave1') }}</view>
  615. <view class="des2">{{ t('ImproveImmediately.Content.Leave2') }}</view>
  616. <view class="dialog-footer">
  617. <u-button @click="closeDia">{{ t('Btn.TemporarilyNot') }}</u-button>
  618. <u-button type="primary" @click="save">{{ t('Btn.Save') }}</u-button>
  619. </view>
  620. </view>
  621. <view class="dia-content" v-if="!dialogCheck1">
  622. <view class="icon">
  623. <cwg-icon :size="60" name="verified" :color="'#4a6cf7'" />
  624. </view>
  625. <view class="des1">{{ t('ApplicationDialog.Des1') }}</view>
  626. <QrCode v-if="text1" :text="text1"></QrCode>
  627. <view class="dialog-footer">
  628. <button @click="closeDia">{{ t('Btn.Cancel') }}</button>
  629. <button type="primary" @click="toHome">{{ t('Btn.Home') }}</button>
  630. </view>
  631. </view>
  632. </uni-popup>
  633. </template>
  634. <script setup lang="ts">
  635. import { ref, onMounted, onUnmounted, watch, computed } from 'vue'
  636. import { useI18n } from 'vue-i18n'
  637. import { onLoad } from '@dcloudio/uni-app'
  638. import { personalApi } from '@/service/personal'
  639. import Config from '@/config/index'
  640. import QrCode from '@/components/QRCode.vue'
  641. import { userToken } from '@/composables/config'
  642. import useRouter from '@/hooks/useRouter'
  643. import { Patterns, Validators } from '@/utils/validators'
  644. import { pinyin } from 'pinyin-pro'
  645. import config from '@/config/index'
  646. import icon_doc from '@/static/icons/crm-document.svg'
  647. import icon_refresh from '@/static/icons/crm-refresh.svg'
  648. import icon_mobile from '@/static/icons/icon_mobile.svg'
  649. import icon_arrowR from '@/static/icons/icon_arrowR.svg'
  650. const router = useRouter()
  651. const { t, locale } = useI18n()
  652. const currentStep = ref<number>(3)
  653. const formRef = ref()
  654. const dialogCheck = ref(null)
  655. const dialogCheck1 = ref(false)
  656. const text1 = ref('')
  657. const qrCodeStatus = ref(false)
  658. const addressTipPopup = ref()
  659. // 新增的响应式数据
  660. const divActiveHelf = ref(false)
  661. const divActiveAll = ref(false)
  662. const websock = ref(null)
  663. const isPC = ref(true)
  664. const fileListID1 = ref({ againPath: '', id: null, path: '', status: null, type: null })
  665. const fileListID2 = ref({ againPath: '', id: null, path: '', status: null, type: null })
  666. const fileListAdd1 = ref({ againPath: '', id: null, path: '', status: null, type: null })
  667. const fileListAdd2 = ref({ againPath: '', id: null, path: '', status: null, type: null })
  668. const fileListOthers = ref([])
  669. const actionID1 = ref('')
  670. const actionID2 = ref('')
  671. const actionAdd1 = ref('')
  672. const actionAdd2 = ref('')
  673. const actionOtherAdd = ref('')
  674. const flag = ref(false)
  675. const pictLoading = ref(false)
  676. const pictLoadingImg = ref(false)
  677. const isApprove = ref(false)
  678. const metaInfo = ref({})
  679. const HostWs = ref(Config.HostWs)
  680. const cities = ref([])
  681. const states = ref([])
  682. const countries = ref([])
  683. const uploadImage = ref(0)
  684. const updateUrl = config.Host80
  685. const mobile = ref('')
  686. const notCountry = [
  687. 'AF',
  688. 'AI',
  689. 'AG',
  690. 'BS',
  691. 'BY',
  692. 'BZ',
  693. 'BA',
  694. 'BI',
  695. 'CF',
  696. 'CD',
  697. 'CU',
  698. 'ET',
  699. 'FJ',
  700. 'PS',
  701. 'GN',
  702. 'GW',
  703. 'HT',
  704. 'IR',
  705. 'IQ',
  706. 'LB',
  707. 'LY',
  708. 'ML',
  709. 'MM',
  710. 'NI',
  711. 'KP',
  712. 'PW',
  713. 'RU',
  714. 'SO',
  715. 'SS',
  716. 'SD',
  717. 'SY',
  718. 'UA',
  719. 'US',
  720. 'VE',
  721. 'YE',
  722. 'ZW',
  723. ]
  724. const imageStyle = ref({
  725. width: 200,
  726. height: 150,
  727. border: {
  728. radius: '5px',
  729. },
  730. })
  731. // 验证函数
  732. function validateName(a: any, b?: any, c?: any) {
  733. const reg = /^[A-Z\s]+$/i
  734. if (typeof c === 'function') {
  735. const value = b
  736. const callback = c
  737. const val = String(value ?? '').trim()
  738. if (!val) return callback(new Error(t('card.vaildate.v4')))
  739. if (!reg.test(val)) return callback(new Error(t('card.vaildate.v38')))
  740. if (val.length < 2 || val.length > 23) return callback(new Error(t('card.vaildate.v39')))
  741. const firstName = String(formData.value?.firstName ?? '').trim()
  742. const lastName = String(formData.value?.lastName ?? '').trim()
  743. if (`${firstName} ${lastName}`.length > 23) return callback(new Error(t('card.vaildate.v40')))
  744. return callback()
  745. }
  746. const val = String(a ?? '').trim()
  747. if (!val) return t('card.vaildate.v4')
  748. if (!reg.test(val)) return t('card.vaildate.v38')
  749. if (val.length < 2 || val.length > 23) return t('card.vaildate.v39')
  750. const firstName = String(formData.value?.firstName ?? '').trim()
  751. const lastName = String(formData.value?.lastName ?? '').trim()
  752. if (`${firstName} ${lastName}`.length > 23) return t('card.vaildate.v40')
  753. return true
  754. }
  755. function validateBirthday(a: any, b?: any, c?: any) {
  756. if (typeof c === 'function') {
  757. const value = b
  758. const callback = c
  759. const val = value
  760. if (!val) return callback(new Error(t('card.vaildate.v5')))
  761. const today = new Date()
  762. const birthDate = new Date(val)
  763. let age = today.getFullYear() - birthDate.getFullYear()
  764. const month = today.getMonth() - birthDate.getMonth()
  765. if (month < 0 || (month === 0 && today.getDate() < birthDate.getDate())) age--
  766. if (age < 18) return callback(new Error(t('card.New.n3')))
  767. return callback()
  768. }
  769. const val = a
  770. if (!val) return t('card.vaildate.v5')
  771. const today = new Date()
  772. const birthDate = new Date(val)
  773. let age = today.getFullYear() - birthDate.getFullYear()
  774. const month = today.getMonth() - birthDate.getMonth()
  775. if (month < 0 || (month === 0 && today.getDate() < birthDate.getDate())) age--
  776. return age < 18 ? t('card.New.n3') : true
  777. }
  778. function validateAddress(a: any, b?: any, c?: any) {
  779. if (typeof c === 'function') {
  780. const value = b
  781. const callback = c
  782. const val = String(value ?? '').trim()
  783. if (!val) return callback(new Error(t('card.vaildate.v27')))
  784. if (val.length < 2 || val.length > 40) return callback(new Error(t('card.New.n1')))
  785. if (!Patterns.address.test(val)) return callback(new Error(t('card.New.n1')))
  786. return callback()
  787. }
  788. const val = String(a ?? '').trim()
  789. if (!val) return t('card.vaildate.v27')
  790. if (val.length < 2 || val.length > 40) return t('card.New.n1')
  791. return Patterns.address.test(val) ? true : t('card.New.n1')
  792. }
  793. const rules = {
  794. customType: [Validators.required(t('card.vaildate.v1'))],
  795. firstName: [Validators.required(t('card.vaildate.v3')), Validators.custom(validateName)],
  796. lastName: [Validators.required(t('card.vaildate.v4')), Validators.custom(validateName)],
  797. nationality: [Validators.required(t('card.vaildate.v6'), 'change')],
  798. IdentityType: [Validators.required(t('card.vaildate.v1'))],
  799. identity: [Validators.required(t('card.vaildate.v4'))],
  800. gender: [Validators.required(t('card.vaildate.v9'), 'change')],
  801. birth: [
  802. Validators.required(t('card.vaildate.v5'), 'change'),
  803. Validators.custom(validateBirthday, 'change'),
  804. ],
  805. country: [Validators.required(t('card.vaildate.v1'))],
  806. state: [Validators.required(t('card.vaildate.v1'))],
  807. city: [Validators.required(t('card.vaildate.v1'))],
  808. addressLines1: [Validators.required(t('card.vaildate.v27')), Validators.custom(validateAddress)],
  809. zipCode: [
  810. Validators.required(t('card.vaildate.v8')),
  811. Validators.pattern(Patterns.postcode, t('card.New.n2')),
  812. ],
  813. level: [Validators.required(t('card.vaildate.v1'))],
  814. employmentStatus: [Validators.required(t('card.vaildate.v1'))],
  815. tradingObjectives: [Validators.required(t('card.vaildate.v1'))],
  816. sourceFunding: [Validators.required(t('card.vaildate.v1'))],
  817. grossAnnualIncome: [Validators.required(t('card.vaildate.v1'))],
  818. totalNewWorth: [Validators.required(t('card.vaildate.v1'))],
  819. cardType: [Validators.required(t('card.vaildate.v1'))],
  820. idFrontUrl: [Validators.required(t('card.vaildate.v1'))],
  821. idBackUrl: [Validators.required(t('card.vaildate.v1'))],
  822. addressProofUrl: [Validators.required(t('card.vaildate.v1'))],
  823. }
  824. onLoad((options) => {
  825. currentStep.value = parseInt(options?.currentStep || '1', 10)
  826. })
  827. function goStep(step: number) {
  828. console.log(step, 'step')
  829. if (step == 4) {
  830. if (currentUploadCard.value == 1) {
  831. if (!formData.value.cardType) {
  832. uni.showToast({
  833. title: t('vaildate.CardType.empty'), icon: 'error'
  834. })
  835. return
  836. }
  837. if (!fileListID1.value.path || !fileListID2.value.path) {
  838. uni.showToast({
  839. title: t('vaildate.IDPhoto.empty'), icon: 'error'
  840. })
  841. return
  842. }
  843. }
  844. }
  845. currentStep.value = step
  846. }
  847. // 选项数据
  848. const customerTypeOptions = [
  849. { value: 1, text: t('ImproveImmediately.Label.CustomerType1') },
  850. { value: 2, text: t('ImproveImmediately.Label.CustomerType2') },
  851. ]
  852. const identityTypes = ref([
  853. { text: t('ImproveImmediately.Label.IDCard'), value: 2 },
  854. { text: t('ImproveImmediately.Label.Passport'), value: 3 },
  855. ])
  856. const genderOptions = [
  857. { value: 1, text: t('PersonalManagement.Label.Men') },
  858. { value: 2, text: t('PersonalManagement.Label.Women') },
  859. ]
  860. const radioList = [
  861. { value: 1, text: t('ImproveImmediately.Label.Yes') },
  862. { value: 0, text: t('ImproveImmediately.Label.No') },
  863. ]
  864. const educationOptions = [
  865. { value: 1, text: t('ImproveImmediately.Label.Education1') },
  866. { value: 2, text: t('ImproveImmediately.Label.Education2') },
  867. { value: 3, text: t('ImproveImmediately.Label.Education3') },
  868. { value: 4, text: t('ImproveImmediately.Label.Education4') },
  869. { value: 5, text: t('ImproveImmediately.Label.Education5') },
  870. ]
  871. const employmentOptions = [
  872. { value: 1, text: t('ImproveImmediately.Label.OnJob1') },
  873. { value: 2, text: t('ImproveImmediately.Label.OnJob2') },
  874. { value: 3, text: t('ImproveImmediately.Label.OnJob3') },
  875. { value: 4, text: t('ImproveImmediately.Label.OnJob4') },
  876. { value: 5, text: t('ImproveImmediately.Label.OnJob5') },
  877. ]
  878. const transactionPurposeOptions = [
  879. { value: 1, text: t('ImproveImmediately.Label.purposeTransaction1') },
  880. { value: 2, text: t('ImproveImmediately.Label.purposeTransaction2') },
  881. { value: 3, text: t('ImproveImmediately.Label.purposeTransaction3') },
  882. { value: 4, text: t('ImproveImmediately.Label.purposeTransaction4') },
  883. ]
  884. const fundSourceOptions = [
  885. { value: 1, text: t('ImproveImmediately.Label.SourceFunds1') },
  886. { value: 2, text: t('ImproveImmediately.Label.SourceFunds2') },
  887. { value: 3, text: t('ImproveImmediately.Label.SourceFunds3') },
  888. { value: 4, text: t('ImproveImmediately.Label.SourceFunds4') },
  889. { value: 5, text: t('ImproveImmediately.Label.SourceFunds5') },
  890. { value: 6, text: t('ImproveImmediately.Label.SourceFunds6') },
  891. ]
  892. const annualIncomeOptions = [
  893. { value: 1, text: t('ImproveImmediately.Label.TotalAnnualRevenue1') },
  894. { value: 2, text: t('ImproveImmediately.Label.TotalAnnualRevenue2') },
  895. { value: 3, text: t('ImproveImmediately.Label.TotalAnnualRevenue3') },
  896. { value: 4, text: t('ImproveImmediately.Label.TotalAnnualRevenue4') },
  897. { value: 5, text: t('ImproveImmediately.Label.TotalAnnualRevenue5') },
  898. ]
  899. const netWorthOptions = [
  900. { value: 1, text: t('ImproveImmediately.Label.TotalNetAssets1') },
  901. { value: 2, text: t('ImproveImmediately.Label.TotalNetAssets2') },
  902. { value: 3, text: t('ImproveImmediately.Label.TotalNetAssets3') },
  903. { value: 4, text: t('ImproveImmediately.Label.TotalNetAssets4') },
  904. { value: 5, text: t('ImproveImmediately.Label.TotalNetAssets5') },
  905. ]
  906. const cardTypeOptions = [
  907. { value: 'ID_CARD', text: 'ID Card' },
  908. { value: 'PASSPORT', text: 'Passport' },
  909. { value: 'DRIVERS', text: 'Driver\'s License' },
  910. { value: 'RESIDENCE_PERMIT', text: 'Residence Permit' },
  911. ]
  912. // 表单数据
  913. const formData = ref({
  914. customType: 1,
  915. companyName: undefined,
  916. lastName: undefined,
  917. firstName: undefined,
  918. middle: undefined,
  919. nationality: undefined,
  920. IdentityType: 2,
  921. identity: undefined,
  922. nameEn: undefined,
  923. gender: undefined,
  924. birth: undefined,
  925. country: undefined,
  926. state: undefined,
  927. city: undefined,
  928. addressLines1: undefined,
  929. addressLines2: undefined,
  930. zipCode: undefined,
  931. level: undefined,
  932. employmentStatus: undefined,
  933. tradingObjectives: undefined,
  934. sourceFunding: undefined,
  935. grossAnnualIncome: undefined,
  936. totalNewWorth: undefined,
  937. experienceTradingDerivative: 0,
  938. experienceTradingForex: 0,
  939. derivativeProducts: 0,
  940. experienceQualification: 0,
  941. cardType: undefined,
  942. idFrontUrl: undefined,
  943. idBackUrl: undefined,
  944. addressProofUrl: undefined,
  945. otherFiles: undefined,
  946. addressLines: [],
  947. })
  948. // 选项数据
  949. const countryOptions = ref<Array<{ text: string; value: string }>>([])
  950. const stateOptions = ref<Array<{ text: string; value: string }>>([])
  951. const cityOptions = ref<Array<{ text: string; value: string }>>([])
  952. // 加载状态
  953. const loadingStates = ref({
  954. next: false,
  955. submit: false,
  956. })
  957. // 计算属性
  958. const identityLabel = computed(() => {
  959. if (formData.value.IdentityType === 2) return t('ImproveImmediately.Label.IDCard')
  960. if (formData.value.IdentityType === 3) return t('ImproveImmediately.Label.Passport')
  961. return t('ImproveImmediately.Label.IdentityID')
  962. })
  963. // 计算属性:当前选中国籍的 uploadCard 值
  964. const currentUploadCard = computed(() => {
  965. if (!formData.value.nationality || !countries.value.length) {
  966. return 0
  967. }
  968. const selectedCountry = countries.value.find(
  969. (item: any) => item.code === formData.value.nationality,
  970. )
  971. return selectedCountry ? (selectedCountry.uploadCard || 0) : 0
  972. })
  973. // 计算属性:当前选中国籍的 uploadAddress 值
  974. const currentUploadAddress = computed(() => {
  975. if (!formData.value.nationality || !countries.value.length) {
  976. return 0
  977. }
  978. const selectedCountry = countries.value.find(
  979. (item: any) => item.code === formData.value.nationality,
  980. )
  981. return selectedCountry ? (selectedCountry.uploadAddress || 0) : 0
  982. })
  983. // 方法
  984. function changeCountry(value: any) {
  985. // 处理国家选择变化
  986. // 清空省份/城市选择//
  987. formData.value.state = ''
  988. formData.value.city = ''
  989. stateOptions.value = []
  990. cityOptions.value = []
  991. states.value = []
  992. cities.value = []
  993. let item = {}
  994. countries.value.forEach(element => {
  995. if (element.code == value) {
  996. item = element
  997. return
  998. }
  999. })
  1000. getStateList(item.id)
  1001. }
  1002. function handleFileUpdate(value, type) {
  1003. console.log(value, type, 'uplaod')
  1004. if (type == 10) {
  1005. uni.showToast({ title: t('card.New1.d5'), icon: 'none' })
  1006. getCustomFileList();
  1007. }
  1008. }
  1009. const showFile = (file) => {
  1010. // console.log(file)
  1011. window.open(updateUrl + (file.againPath || file.path), '_blank')
  1012. }
  1013. async function fileOtherDelete(id) {
  1014. uni.showModal({
  1015. title: t('Msg.SystemPrompt'),
  1016. content: t('Msg.Delete'),
  1017. cancelText: t('Btn.Cancel'),
  1018. confirmText: t('Btn.Confirm'),
  1019. success: async (res) => {
  1020. if (res.confirm) {
  1021. // 确认删除
  1022. let data = await personalApi.customFileDelete({ ids: [id] })
  1023. if (data.code == 200) {
  1024. uni.showToast(t('Msg.DeleteSuccess'))
  1025. getCustomFileList()
  1026. } else {
  1027. uni.showToast(res.msg)
  1028. }
  1029. }
  1030. },
  1031. fail: () => {
  1032. },
  1033. })
  1034. }
  1035. function changeState(val) {
  1036. formData.value.city = ''
  1037. cityOptions.value = []
  1038. let item = {}
  1039. states.value.forEach((element) => {
  1040. if (element.name == val || element.enName == val) {
  1041. item = element
  1042. return
  1043. }
  1044. })
  1045. getCityList(item.id)
  1046. }
  1047. function handleChange(value: any) {
  1048. formData.value = { ...formData.value, [value.key]: value.value }
  1049. console.log(value)
  1050. if (value.key === 'country') {
  1051. formData.value.state = ''
  1052. formData.value.city = ''
  1053. stateOptions.value = []
  1054. cityOptions.value = []
  1055. if (value.value) {
  1056. getStateList(value.value)
  1057. }
  1058. } else if (value.key === 'state') {
  1059. formData.value.city = ''
  1060. cityOptions.value = []
  1061. if (value.value) {
  1062. getCityList(value.value)
  1063. }
  1064. }
  1065. }
  1066. function openAddressTip() {
  1067. // 打开地址提示弹窗
  1068. addressTipPopup.value.open()
  1069. }
  1070. function isPdf(url, image) {
  1071. let res = !!url
  1072. if (image) {
  1073. return res && url.substr(-3, 3) == 'pdf' &&
  1074. url.substr(-3, 3) == 'PDF'
  1075. }
  1076. return res && (url.substr(-3, 3) == 'pdf' ||
  1077. url.substr(-3, 3) == 'PDF')
  1078. }
  1079. function cancle() {
  1080. if (!isApprove.value) {
  1081. dialogCheck.value.open()
  1082. dialogCheck1.value = true
  1083. } else {
  1084. router.push({ path: '/pages/customer/index' })
  1085. }
  1086. }
  1087. function closeDia() {
  1088. dialogCheck.value.close()
  1089. }
  1090. function toHome() {
  1091. dialogCheck.value.close()
  1092. router.push({ path: '/pages/customer/index' })
  1093. }
  1094. async function save() {
  1095. await updateInfo(1)
  1096. }
  1097. async function Submit() {
  1098. loadingStates.value.submit = true
  1099. try {
  1100. formData.value.addressLines = []
  1101. if (formData.value.addressLines1) {
  1102. formData.value.addressLines.push(formData.value.addressLines1)
  1103. }
  1104. if (formData.value.addressLines2) {
  1105. formData.value.addressLines.push(formData.value.addressLines2)
  1106. }
  1107. if (!formData.value.addressLines1 && !formData.value.addressLines2) {
  1108. formData.value.addressLines = []
  1109. }
  1110. if (formData.value.customType != 2) {
  1111. formData.value.companyName = ''
  1112. }
  1113. let res = await personalApi.CustomUpdateInfo({
  1114. ...formData.value,
  1115. })
  1116. if (res.code == Config.Code.StatusOK) {
  1117. await getCustomFileList()
  1118. await customApply()
  1119. } else {
  1120. uni.showToast({ title: res.msg, icon: 'none' })
  1121. }
  1122. } catch (error: any) {
  1123. uni.showToast({ title: error.message || t('Msg.SystemError'), icon: 'none' })
  1124. } finally {
  1125. loadingStates.value.submit = false
  1126. }
  1127. }
  1128. async function updateInfo(save: number) {
  1129. try {
  1130. formData.value.addressLines = []
  1131. if (formData.value.addressLines1) {
  1132. formData.value.addressLines.push(formData.value.addressLines1)
  1133. }
  1134. if (formData.value.addressLines2) {
  1135. formData.value.addressLines.push(formData.value.addressLines2)
  1136. }
  1137. if (!formData.value.addressLines1 && !formData.value.addressLines2) {
  1138. formData.value.addressLines = []
  1139. }
  1140. let res = await personalApi.CustomUpdateInfo({
  1141. ...formData.value,
  1142. })
  1143. if (res.code == Config.Code.StatusOK) {
  1144. if (save) {
  1145. dialogCheck.value.close()
  1146. router.push({ path: '/pages/customer/index' })
  1147. }
  1148. } else {
  1149. uni.showToast({ title: res.msg, icon: 'none' })
  1150. }
  1151. } catch (error: any) {
  1152. uni.showToast({ title: error.message || t('Msg.SystemError'), icon: 'none' })
  1153. }
  1154. }
  1155. async function customApply() {
  1156. try {
  1157. let res = await personalApi.customApplyReal({})
  1158. if (res.code == Config.Code.StatusOK) {
  1159. isApprove.value = true
  1160. await getLoginInfo()
  1161. dialogCheck.value.open()
  1162. dialogCheck1.value = false
  1163. } else {
  1164. uni.showToast({ title: res.msg, icon: 'none' })
  1165. }
  1166. } catch (error: any) {
  1167. uni.showToast({ title: error.message, icon: 'none' })
  1168. }
  1169. }
  1170. async function getCountryList() {
  1171. try {
  1172. let res = await personalApi.Country({})
  1173. if (res.code == Config.Code.StatusOK) {
  1174. countryOptions.value = res.data.map((item: any) => ({
  1175. text: item.enName,
  1176. value: item.code,
  1177. disabled: notCountry.indexOf(item.code) !== -1,
  1178. }))
  1179. countries.value = res.data
  1180. const country = formData.value.country
  1181. if (country) {
  1182. countries.value.forEach((item) => {
  1183. if (item.code == country) {
  1184. getStateList(item.id)
  1185. }
  1186. })
  1187. }
  1188. }
  1189. } catch (error: any) {
  1190. uni.showToast({ title: error.message, icon: 'none' })
  1191. }
  1192. }
  1193. async function getStateList(pid: string) {
  1194. try {
  1195. let res = await personalApi.Country({ pid })
  1196. if (res.code == Config.Code.StatusOK) {
  1197. console.log(locale)
  1198. stateOptions.value = res.data.map((item: any) => ({
  1199. text: locale.value === 'en' ? item.enName : item.name,
  1200. value: locale.value === 'en' ? item.enName : item.name,
  1201. }))
  1202. states.value = res.data
  1203. const state = formData.value.state
  1204. console.log(state)
  1205. if (state) {
  1206. states.value.forEach((item) => {
  1207. if (
  1208. item.name == state ||
  1209. item.enName == state
  1210. ) {
  1211. getCityList(item.id)
  1212. }
  1213. })
  1214. }
  1215. }
  1216. } catch (error: any) {
  1217. console.log(error)
  1218. }
  1219. }
  1220. async function getCityList(pid: string) {
  1221. try {
  1222. let res = await personalApi.Country({ pid })
  1223. if (res.code == Config.Code.StatusOK) {
  1224. cityOptions.value = res.data.map((item: any) => ({
  1225. text: locale.value === 'en' ? item.enName : item.name,
  1226. value: locale.value === 'en' ? item.enName : item.name,
  1227. }))
  1228. cities.value = res.data
  1229. }
  1230. } catch (error: any) {
  1231. }
  1232. }
  1233. async function getLoginInfo() {
  1234. try {
  1235. let res = await personalApi.CustomLoginInfo()
  1236. if (res.code == Config.Code.StatusOK) {
  1237. formData.value = res.data.customInfo
  1238. if (formData.value.addressLines != null && formData.value.addressLines.length) {
  1239. formData.value.addressLines1 = formData.value.addressLines[0]
  1240. formData.value.addressLines2 = formData.value.addressLines[1]
  1241. }
  1242. formData.value.customType = formData.value.customType ? formData.value.customType : 1
  1243. formData.value.IdentityType = 2
  1244. await getCountryList()
  1245. } else {
  1246. uni.showToast({ title: t('Msg.SystemError'), icon: 'none' })
  1247. }
  1248. } catch (error: any) {
  1249. }
  1250. }
  1251. // 获取二维码
  1252. async function getMobileInfo() {
  1253. try {
  1254. let res = await personalApi.CustomFileMobileFiles({}, { responseType: 'arraybuffer' })
  1255. // console.log(res);
  1256. mobile.value = 'data:image/png;base64,' + uni.arrayBufferToBase64(res)
  1257. } catch (error: any) {
  1258. // uni.showToast({ title: error.message , icon: 'none' })
  1259. }
  1260. }
  1261. // 获取上传文件信息
  1262. async function getCustomFileList() {
  1263. try {
  1264. let res = await personalApi.CustomFileList()
  1265. if (res.code == Config.Code.StatusOK) {
  1266. let myData = res.data
  1267. fileListOthers.value = []
  1268. myData.forEach((item: any) => {
  1269. if (item.type == 1) {
  1270. fileListID1.value = item
  1271. } else if (item.type == 2) {
  1272. fileListID2.value = item
  1273. } else if (item.type == 3) {
  1274. fileListAdd1.value = item
  1275. } else if (item.type == 4) {
  1276. fileListAdd2.value = item
  1277. } else if (item.type == 10) {
  1278. fileListOthers.value.push(item)
  1279. }
  1280. })
  1281. actionType()
  1282. } else {
  1283. uni.showToast({ title: res.msg, icon: 'none' })
  1284. flag.value = false
  1285. }
  1286. } catch (error: any) {
  1287. uni.showToast({ title: error.message || t('Msg.SystemError'), icon: 'none' })
  1288. }
  1289. }
  1290. // 请求头
  1291. function actionType() {
  1292. if (fileListID1.value.id) {
  1293. actionID1.value = Config.Host80 + '/custom/file/upload/1/' + fileListID1.value.id
  1294. } else {
  1295. actionID1.value = Config.Host80 + '/custom/file/upload/1'
  1296. }
  1297. if (fileListID2.value.id) {
  1298. actionID2.value = Config.Host80 + '/custom/file/upload/2/' + fileListID2.value.id
  1299. } else {
  1300. actionID2.value = Config.Host80 + '/custom/file/upload/2'
  1301. }
  1302. if (fileListAdd1.value.id) {
  1303. actionAdd1.value = Config.Host80 + '/custom/file/upload/3/' + fileListAdd1.value.id
  1304. } else {
  1305. actionAdd1.value = Config.Host80 + '/custom/file/upload/3'
  1306. }
  1307. if (fileListAdd2.value.id) {
  1308. actionAdd2.value = Config.Host80 + '/custom/file/upload/4/' + fileListAdd2.value.id
  1309. } else {
  1310. actionAdd2.value = Config.Host80 + '/custom/file/upload/4'
  1311. }
  1312. actionOtherAdd.value = Config.Host80 + '/custom/file/upload/10'
  1313. }
  1314. function updateFile(myData) {
  1315. if (myData.type == 1) {
  1316. fileListID1.value = myData
  1317. } else if (myData.type == 2) {
  1318. fileListID2.value = myData
  1319. } else if (myData.type == 3) {
  1320. fileListAdd1.value = myData
  1321. } else if (myData.type == 4) {
  1322. fileListAdd2.value = myData
  1323. } else if (myData.type == 10) {
  1324. if (!fileListOthers.value.length) {
  1325. fileListOthers.value.push(myData)
  1326. } else {
  1327. let flag = true
  1328. fileListOthers.value.forEach((item: any) => {
  1329. if (item.id == myData.id) {
  1330. item = myData
  1331. flag = false
  1332. }
  1333. })
  1334. if (flag) {
  1335. fileListOthers.value.push(myData)
  1336. }
  1337. }
  1338. }
  1339. actionType()
  1340. }
  1341. // 判断是否为PC端
  1342. function IsPC() {
  1343. let userAgentInfo = navigator.userAgent
  1344. let Agents = ['Android', 'iPhone', 'SymbianOS', 'Windows Phone', 'iPad', 'iPod']
  1345. let flag = true
  1346. for (let v = 0; v < Agents.length; v++) {
  1347. if (userAgentInfo.indexOf(Agents[v]) > 0) {
  1348. flag = false
  1349. break
  1350. }
  1351. }
  1352. return flag
  1353. }
  1354. // div大小改变重载
  1355. function divInit() {
  1356. // 由于elementResizeDetectorMaker在UniApp中可能不可用,这里简化处理
  1357. const width = window.innerWidth
  1358. if (width <= 1100 && width > 800) {
  1359. divActiveHelf.value = true
  1360. divActiveAll.value = false
  1361. } else if (width <= 800) {
  1362. divActiveAll.value = true
  1363. divActiveHelf.value = false
  1364. } else if (1100 < width) {
  1365. divActiveAll.value = false
  1366. divActiveHelf.value = false
  1367. }
  1368. }
  1369. // 监听表单字段变化
  1370. watch(
  1371. () => formData.value.firstName,
  1372. () => {
  1373. if (localStorage.getItem('lang') == 'cn' && formData.value.firstName && formData.value.lastName) {
  1374. formData.value.nameEn = pinyin(`${formData.value.firstName} ${formData.value.lastName}`)
  1375. pinyin
  1376. }
  1377. },
  1378. )
  1379. watch(
  1380. () => formData.value.lastName,
  1381. () => {
  1382. if (localStorage.getItem('lang') == 'cn' && formData.value.firstName && formData.value.lastName) {
  1383. formData.value.nameEn = pinyin(`${formData.value.firstName} ${formData.value.lastName}`
  1384. )
  1385. }
  1386. },
  1387. )
  1388. // 生命周期
  1389. onMounted(async () => {
  1390. // dialogCheck.value.open()
  1391. divInit()
  1392. await getLoginInfo()
  1393. await getMobileInfo()
  1394. await getCustomFileList()
  1395. isPC.value = IsPC()
  1396. uni.$on('updateImproveFile', (data) => {
  1397. updateFile(data)
  1398. })
  1399. })
  1400. // 组件销毁时
  1401. onUnmounted(() => {
  1402. uni.$off('updateImproveFile')
  1403. })
  1404. </script>
  1405. <style scoped lang="scss">
  1406. @import "@/uni.scss";
  1407. .form-tab {
  1408. height: px2rpx(100);
  1409. }
  1410. .form-section {
  1411. margin: px2rpx(8) 0;
  1412. }
  1413. .section-title {
  1414. color: var(--bs-emphasis-color);
  1415. font-family: Roboto;
  1416. font-size: px2rpx(22);
  1417. font-weight: 500;
  1418. margin: px2rpx(10) 0;
  1419. }
  1420. :deep(.file-picker__box) {
  1421. width: px2rpx(200) !important;
  1422. height: px2rpx(150) !important;
  1423. }
  1424. :deep(.uni-file-picker) {
  1425. width: 100%;
  1426. height: 100%;
  1427. }
  1428. .avatar-uploader {
  1429. border: 1px dashed;
  1430. width: px2rpx(200);
  1431. height: px2rpx(150);
  1432. display: flex;
  1433. flex-direction: column;
  1434. align-items: center;
  1435. justify-content: center;
  1436. /*float: left;*/
  1437. //overflow: hidden;
  1438. }
  1439. .file-item {
  1440. border: 1px dashed;
  1441. border-radius: px2rpx(5);
  1442. width: px2rpx(200);
  1443. height: px2rpx(150);
  1444. display: flex;
  1445. justify-content: center;
  1446. align-items: center;
  1447. .icon {
  1448. width: px2rpx(24);
  1449. height: px2rpx(24);
  1450. }
  1451. }
  1452. .avatar {
  1453. width: 100%;
  1454. height: 100%;
  1455. }
  1456. .custom-upload-btn {
  1457. width: px2rpx(200);
  1458. height: px2rpx(150);
  1459. display: flex;
  1460. flex-direction: column;
  1461. align-items: center;
  1462. justify-content: center;
  1463. .plus {
  1464. font-size: px2rpx(24);
  1465. color: #9ca3af;
  1466. }
  1467. }
  1468. .refresh {
  1469. width: 100%;
  1470. height: px2rpx(150);
  1471. display: flex;
  1472. justify-content: center;
  1473. align-items: center;
  1474. image {
  1475. width: px2rpx(28);
  1476. height: px2rpx(28);
  1477. }
  1478. }
  1479. .fileOther {
  1480. :deep(.upload-wrapper .uni-file-picker) {
  1481. display: flex;
  1482. align-items: center;
  1483. justify-content: center;
  1484. }
  1485. :deep(.uni-file-picker__lists) {
  1486. display: none !important;
  1487. }
  1488. }
  1489. .fileList {
  1490. width: 100%;
  1491. box-sizing: border-box;
  1492. display: flex;
  1493. flex-direction: column;
  1494. justify-content: center;
  1495. align-items: center;
  1496. }
  1497. #files {
  1498. :deep(.uni-file-picker__lists) {
  1499. display: none !important;
  1500. }
  1501. :deep(.upload-wrapper .uni-file-picker) {
  1502. display: flex;
  1503. align-items: center;
  1504. justify-content: center;
  1505. }
  1506. .list_upload {
  1507. width: px2rpx(150);
  1508. height: px2rpx(60);
  1509. }
  1510. .file-item {
  1511. //border: none;
  1512. box-sizing: border-box;
  1513. width: px2rpx(150);
  1514. height: px2rpx(60);
  1515. border-radius: 0;
  1516. }
  1517. margin-top: px2rpx(20);
  1518. max-width: px2rpx(600);
  1519. border: 1px dashed;
  1520. display: flex;
  1521. .options {
  1522. flex: 1;
  1523. padding: 8px;
  1524. box-sizing: border-box;
  1525. display: flex;
  1526. justify-content: center;
  1527. align-content: center;
  1528. align-items: center;
  1529. uni-button {
  1530. min-width: px2rpx(100);
  1531. max-height: px2rpx(30);
  1532. padding: 0;
  1533. line-height: px2rpx(30);
  1534. span,
  1535. a {
  1536. display: inline-block;
  1537. height: 100%;
  1538. width: 100%;
  1539. color: var(--color-black);
  1540. }
  1541. }
  1542. }
  1543. }
  1544. .con-box {
  1545. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  1546. border-radius: 2px;
  1547. padding: 20px;
  1548. .box {
  1549. width: 100%;
  1550. // height: 190px;
  1551. box-sizing: border-box;
  1552. display: flex;
  1553. justify-content: center;
  1554. align-items: center;
  1555. .mobile {
  1556. width: px2rpx(50);
  1557. height: px2rpx(50);
  1558. margin-right: px2rpx(10);
  1559. }
  1560. .arrow {
  1561. width: px2rpx(30);
  1562. height: px2rpx(30);
  1563. margin-right: px2rpx(10);
  1564. }
  1565. .img_mobile {
  1566. width: 120px;
  1567. height: 120px;
  1568. margin: 10px;
  1569. border: 5px solid;
  1570. background-color: var(--color-gray);
  1571. }
  1572. .icon_refresh {
  1573. width: px2rpx(30);
  1574. height: px2rpx(30);
  1575. margin-right: px2rpx(10);
  1576. }
  1577. }
  1578. }
  1579. .experience {
  1580. display: flex;
  1581. margin: px2rpx(10) 0;
  1582. align-items: center;
  1583. }
  1584. .Trad-experience {
  1585. flex: 1;
  1586. color: var(--bs-emphasis-color);
  1587. font-size: px2rpx(16);
  1588. }
  1589. .Trad-choose {
  1590. display: flex;
  1591. }
  1592. .descending {
  1593. margin: px2rpx(20) 0;
  1594. padding: px2rpx(20);
  1595. background-color: #f5f5f5;
  1596. border-radius: px2rpx(8);
  1597. }
  1598. .title {
  1599. font-weight: 500;
  1600. margin-bottom: px2rpx(10);
  1601. }
  1602. .des {
  1603. margin: px2rpx(5) 0;
  1604. font-size: px2rpx(14);
  1605. color: var(--bs-heading-color);
  1606. }
  1607. .dian1 {
  1608. font-size: px2rpx(20);
  1609. margin-right: px2rpx(5);
  1610. }
  1611. .dian {
  1612. margin-right: px2rpx(10);
  1613. }
  1614. .btns {
  1615. margin-top: px2rpx(30);
  1616. }
  1617. .cwg-button {
  1618. display: flex;
  1619. flex-direction: column;
  1620. gap: px2rpx(15);
  1621. &.two-btn {
  1622. flex-direction: row;
  1623. justify-content: space-between;
  1624. u-button {
  1625. flex: 1;
  1626. margin: 0 px2rpx(10);
  1627. &:first-child {
  1628. margin-left: 0;
  1629. }
  1630. &:last-child {
  1631. margin-right: 0;
  1632. }
  1633. }
  1634. }
  1635. }
  1636. .btn-primary {
  1637. height: px2rpx(80);
  1638. font-size: px2rpx(18);
  1639. }
  1640. .prev-btn {
  1641. border-color: #4a6cf7;
  1642. color: #4a6cf7;
  1643. }
  1644. .address-tip {
  1645. width: px2rpx(120);
  1646. font-size: px2rpx(14);
  1647. }
  1648. .crm-title-box {
  1649. display: flex;
  1650. align-items: center;
  1651. margin: px2rpx(20) 0;
  1652. .tit {
  1653. font-size: px2rpx(18);
  1654. font-weight: 500;
  1655. color: var(--color-white);
  1656. }
  1657. .icon-tip {
  1658. margin-left: px2rpx(10);
  1659. font-size: px2rpx(16);
  1660. color: var(--color-white);
  1661. cursor: pointer;
  1662. }
  1663. }
  1664. .popup-content {
  1665. padding: px2rpx(20);
  1666. text-align: center;
  1667. }
  1668. .dia-content {
  1669. padding: px2rpx(30);
  1670. text-align: center;
  1671. .icon {
  1672. margin-bottom: px2rpx(20);
  1673. i {
  1674. font-size: px2rpx(60);
  1675. color: #4a6cf7;
  1676. }
  1677. }
  1678. .des1 {
  1679. font-size: px2rpx(18);
  1680. font-weight: 500;
  1681. margin-bottom: px2rpx(10);
  1682. }
  1683. .des2 {
  1684. font-size: px2rpx(14);
  1685. color: var(--bs-heading-color);
  1686. margin-bottom: px2rpx(30);
  1687. }
  1688. .dialog-footer {
  1689. display: flex;
  1690. justify-content: space-between;
  1691. margin-top: px2rpx(30);
  1692. uni-button {
  1693. flex: 1;
  1694. margin: 0 px2rpx(10);
  1695. &:first-child {
  1696. margin-left: 0;
  1697. }
  1698. &:last-child {
  1699. margin-right: 0;
  1700. }
  1701. }
  1702. }
  1703. }
  1704. .cwg-upload {
  1705. display: flex;
  1706. flex-direction: column;
  1707. align-items: center;
  1708. justify-content: center;
  1709. padding: px2rpx(40);
  1710. border: 1px dashed #ddd;
  1711. border-radius: px2rpx(8);
  1712. cursor: pointer;
  1713. cwg-icon {
  1714. font-size: px2rpx(40);
  1715. margin-bottom: px2rpx(10);
  1716. color: var(--bs-heading-color);
  1717. }
  1718. .name {
  1719. font-size: px2rpx(16);
  1720. margin-bottom: px2rpx(5);
  1721. }
  1722. .back {
  1723. font-size: px2rpx(12);
  1724. color: var(--bs-heading-color);
  1725. }
  1726. }
  1727. </style>