improveImmediately.vue 67 KB

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