improveImmediately.vue 62 KB

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