improveImmediately.vue 62 KB

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