improveImmediately.vue 66 KB

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