trading-management.vue 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565
  1. <template>
  2. <cwg-page-wrapper class="create-page" :isHeaderFixed="true">
  3. <view class="container">
  4. <view class="row">
  5. <view class="col-12">
  6. <view class="border-0 card-header">
  7. <view class="d-flex flex-wrap gap-3 align-items-center justify-content-between mb-3">
  8. <h3 class="mb-0" style="align-self: flex-start" v-t="'Documentary.TundManagement.item11'">
  9. </h3>
  10. <button hover-class="" class="btn btn-secondary btn-shadow waves-effect"
  11. @click="getCustomLoginDownLogin">
  12. <view class="d-flex align-items-center">
  13. <cwg-icon icon="crm-plus" :size="16" color="#fff" />
  14. <text v-t="'Documentary.TundManagement.item12'" />
  15. </view>
  16. </button>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="content-container list-content-empty" v-if="accountDataLoading || accountData.length > 0">
  23. <uni-loading v-if="accountDataLoading" />
  24. <view class="field-container" v-else>
  25. <view class="account-l-con" v-for="(item, index) in accountData" :key="index">
  26. <view class="tit">
  27. <view>
  28. <i class="el-icon-success green-icon"></i><text class="tit-tit"
  29. v-t="'Documentary.TundManagement.item13'"></text>
  30. - {{ item.dealLogin || "--" }}
  31. </view>
  32. <view class="caozuo">
  33. <cwg-icon class="cwg-cursor cursor-pointer"
  34. :data-tooltip="t('Documentary.TundManagement.item28')" name="crm-trash-can"
  35. @click="dialogFllowDele(item)" />
  36. <cwg-icon class="cwg-cursor cursor-pointer"
  37. :data-tooltip="t('Documentary.TundManagement.item31')" name="cog-outline"
  38. @click="dialogFllowUpdate(item)" />
  39. </view>
  40. </view>
  41. <view class="account-grid">
  42. <view class="account-grid-item">
  43. <view class="sub" v-t="'Label.TradingAccount'"></view>
  44. <view class="num">{{ item.dealLogin || "--" }}</view>
  45. </view>
  46. <view class="account-grid-item">
  47. <view class="sub" v-t="'Label.PlatformType'"></view>
  48. <view class="num">{{ item.dealPlatform || "--" }}</view>
  49. </view>
  50. <view class="account-grid-item">
  51. <view class="sub" v-t="'Label.AccountType'"></view>
  52. <view class="num">
  53. <text>{{ groupTypeName(item.dealLoginType) }}</text>
  54. </view>
  55. </view>
  56. <view class="account-grid-item">
  57. <view class="sub" v-t="'Label.Leverage'"></view>
  58. <view class="num">
  59. <text v-if="item.dealLeverage">1:{{ item.dealLeverage }}</text>
  60. <text v-else>{{ "--" }}</text>
  61. </view>
  62. </view>
  63. <view class="account-grid-item">
  64. <view class="sub" v-t="'Label.Balance'"></view>
  65. <view class="num">
  66. {{ numberFormat(item.dealBalance || 0) }}
  67. </view>
  68. </view>
  69. <view class="account-grid-item">
  70. <view class="sub" v-t="'Label.Equity'"></view>
  71. <view class="num">{{ numberFormat(item.dealEquity || 0) }}</view>
  72. </view>
  73. <view class="account-grid-item">
  74. <view class="sub" v-t="'Documentary.TundManagement.item14'"></view>
  75. <view class="num">{{ optObj[item.settlementCycle] || "--" }}</view>
  76. </view>
  77. <view class="account-grid-item">
  78. <view class="sub" v-t="'Documentary.TundManagement.item15'"></view>
  79. <view class="num">
  80. <text v-if="item.distributionType == 1"
  81. v-t="'Documentary.TundManagement.item59'"></text>
  82. </view>
  83. </view>
  84. <view class="account-grid-item">
  85. <view class="sub" v-t="'Documentary.TundManagement.item16'"></view>
  86. <view class="num">{{ item.distributionRatio || "0" }}%</view>
  87. </view>
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. <view v-else class="content-container list-content-empty">
  93. <view class="list-empty-state">
  94. <cwg-empty-state />
  95. </view>
  96. </view>
  97. <!-- 删除信号源 -->
  98. <cwg-popup v-model:visible="dialogFllowDelete" type="center" :mask-click="false" :show-footers="true"
  99. :title="t('Documentary.TundManagement.item28')">
  100. <view class="dia-content">
  101. <view class="fllow-title delete-title">
  102. <text class="title">{{ t('Documentary.TundManagement.item29') }}</text>
  103. </view>
  104. <view class="delete-grid">
  105. <view class="delete-row">
  106. <view class="delete-item">
  107. <text class="delete-label">{{ t('Documentary.tradingCenter.item29') }}</text>
  108. <text class="delete-value">{{ dialogFllowDataDelete.dealLogin || '--' }}</text>
  109. </view>
  110. <view class="delete-item">
  111. <text class="delete-label">{{ t('Documentary.console.item3') }}</text>
  112. <text class="delete-value">{{ dialogFllowDataDelete.dealPlatform || '--' }}</text>
  113. </view>
  114. </view>
  115. <view class="delete-row">
  116. <view class="delete-item">
  117. <text class="delete-label">{{ t('Documentary.console.item7') }}</text>
  118. <text class="delete-value">{{ numberFormat(dialogFllowDataDelete.dealBalance || 0) }}</text>
  119. </view>
  120. <view class="delete-item">
  121. <text class="delete-label">{{ t('Label.AccountType') }}</text>
  122. <text class="delete-value">
  123. <text> {{ groupTypeName(dialogFllowDataDelete.dealLoginType) }}</text>
  124. </text>
  125. </view>
  126. </view>
  127. <view class="delete-row">
  128. <view class="delete-item">
  129. <text class="delete-label">{{ t('Documentary.console.item6') }}</text>
  130. <text class="delete-value">{{ numberFormat(dialogFllowDataDelete.dealEquity) }}</text>
  131. </view>
  132. <view class="delete-item">
  133. <text class="delete-label">{{ t('Documentary.tradingCenter.item30') }}</text>
  134. <text class="delete-value">
  135. <text v-if="dialogFllowDataDelete.distributionType == 1"
  136. v-t="'Documentary.TundManagement.item59'"></text>
  137. </text>
  138. </view>
  139. </view>
  140. <view class="delete-row">
  141. <view class="delete-item">
  142. <text class="delete-label">{{ t('Label.Credit') }}</text>
  143. <text class="delete-value">{{ numberFormat(dialogFllowDataDelete.dealCredit || 0) }}</text>
  144. </view>
  145. <view class="delete-item">
  146. <text class="delete-label">{{ t('Documentary.tradingCenter.item31') }}</text>
  147. <text class="delete-value">{{ dialogFllowDataDelete.distributionRatio || '0' }}%</text>
  148. </view>
  149. </view>
  150. <view class="delete-row">
  151. <view class="delete-item">
  152. <text class="delete-label">{{ t('Label.Leverage') }}</text>
  153. <text class="delete-value">1:{{ dialogFllowDataDelete.dealLeverage || '0' }}</text>
  154. </view>
  155. <view class="delete-item">
  156. <text class="delete-label">{{ t('Documentary.tradingCenter.item32') }}</text>
  157. <text class="delete-value">{{ optObj[dialogFllowDataDelete.settlementCycle] || '--'
  158. }}</text>
  159. </view>
  160. </view>
  161. </view>
  162. <view class="delete-tip">
  163. <text v-t="'Documentary.TundManagement.item30'"></text>
  164. </view>
  165. </view>
  166. <template #footer>
  167. <button hover-class="" @click="FllowDeleCancel">{{ t('Btn.Cancel') }}</button>
  168. <button hover-class="" type="primary" @click="FllowDele">{{ t('Btn.Confirm') }}</button>
  169. </template>
  170. </cwg-popup>
  171. <!-- 信号源设置 -->
  172. <cwg-popup v-model:visible="dialogFllow" type="center" :mask-click="false" :show-footers="true"
  173. :title="t('Documentary.TundManagement.item31')" width="650px">
  174. <uni-forms ref="formRef" :model="dialogFllowData" :rules="rules" label-position="top">
  175. <!-- 名片信息 -->
  176. <view class="dia-content">
  177. <!-- 名片信息 -->
  178. <view class="fllow-title">
  179. <text class="title">{{ t('Documentary.tradingCenter.item126') }}</text>
  180. </view>
  181. <view class="form-item">
  182. <uni-forms-item name="nickname" :label="t('Documentary.console.item20')">
  183. <uni-easyinput v-model="dialogFllowData.nickname" :placeholder="t('placeholder.input')"
  184. @blur="validateAmount" />
  185. </uni-forms-item>
  186. </view>
  187. <view class="form-row">
  188. <view class="form-col">
  189. <view class="form-item">
  190. <uni-forms-item name="personalSignature" :label="t('Documentary.console.item21')">
  191. <uni-easyinput v-model="dialogFllowData.personalSignature"
  192. :placeholder="t('placeholder.input')" type="textarea"
  193. @input="filterChineseEnglishOnlyForApply('personalSignature', $event, 1)" />
  194. </uni-forms-item>
  195. </view>
  196. </view>
  197. <view class="form-col">
  198. <view class="form-item">
  199. <uni-forms-item name="traderStrategy" :label="t('Documentary.console.item22')">
  200. <uni-easyinput v-model="dialogFllowData.traderStrategy"
  201. :placeholder="t('placeholder.input')" type="textarea"
  202. @input="filterChineseEnglishOnlyForApply('traderStrategy', $event, 1)" />
  203. </uni-forms-item>
  204. </view>
  205. </view>
  206. </view>
  207. <view class="tip-red">
  208. <text v-t="'Documentary.console.item37'"></text>
  209. </view>
  210. <!-- 账户信息 -->
  211. <view class="fllow-title">
  212. <text class="title">{{ t('Documentary.TundManagement.item29') }}</text>
  213. </view>
  214. <view class="delete-grid">
  215. <view class="delete-row">
  216. <view class="delete-item">
  217. <text class="delete-label">{{ t('Documentary.console.item3') }}</text>
  218. <text class="delete-value">{{ dialogFllowData.dealPlatform || '--' }}</text>
  219. </view>
  220. <view class="delete-item">
  221. <text class="delete-label">{{ t('Documentary.tradingCenter.item29') }}</text>
  222. <text class="delete-value">{{ dialogFllowData.dealLogin || '--' }}</text>
  223. </view>
  224. </view>
  225. <view class="delete-row">
  226. <view class="delete-item">
  227. <text class="delete-label">{{ t('Label.AccountType') }}</text>
  228. <text class="delete-value">
  229. <text> {{ groupTypeName(dialogFllowData.dealLoginType) }}</text>
  230. </text>
  231. </view>
  232. <view class="delete-item">
  233. <text class="delete-label">{{ t('Label.Leverage') }}</text>
  234. <text class="delete-value">1:{{ dialogFllowData.dealLeverage || '0' }}</text>
  235. </view>
  236. </view>
  237. </view>
  238. <!-- 展示设置 -->
  239. <view class="fllow-title">
  240. <text class="title">{{ t('Documentary.TundManagement.item32') }}</text>
  241. </view>
  242. <view class="form-row">
  243. <view class="form-col">
  244. <view class="form-item">
  245. <uni-forms-item name="historyShow" :label="t('Documentary.TundManagement.item34')">
  246. <cwg-combox v-model:value="dialogFllowData.historyShow" :clearable="false"
  247. :options="[{ text: t('Btn.item6'), value: 1 }, { text: t('Btn.item7'), value: 0 }]"
  248. :placeholder="t('placeholder.choose')" />
  249. </uni-forms-item>
  250. </view>
  251. </view>
  252. <view class="form-col">
  253. <view class="form-item">
  254. <uni-forms-item name="historyTime" :label="t('Documentary.TundManagement.item35')">
  255. <uni-datetime-picker v-model="dialogFllowData.historyTime" type="date"
  256. :placeholder="t('placeholder.input')" @change="handleDateChange" />
  257. <!-- <uni-date-picker type="date" v-model="dialogFllowData.historyTime" /> -->
  258. </uni-forms-item>
  259. </view>
  260. </view>
  261. </view>
  262. <view class="form-item">
  263. <uni-forms-item name="introduceShow" :label="t('Documentary.TundManagement.item36')">
  264. <cwg-combox v-model:value="dialogFllowData.historyShow" :clearable="false"
  265. :options="[{ text: t('Btn.item6'), value: 1 }, { text: t('Btn.item7'), value: 0 }]"
  266. :placeholder="t('placeholder.choose')" />
  267. </uni-forms-item>
  268. </view>
  269. <!-- 分润设置 -->
  270. <view class="fllow-title">
  271. <text class="title">{{ t('Documentary.TundManagement.item33') }}</text>
  272. </view>
  273. <!-- 已有订阅 → 只读 -->
  274. <view v-if="dialogFllowData.followCount" class="delete-grid">
  275. <view class="delete-row">
  276. <view class="delete-item">
  277. <text class="delete-label">{{ t('Documentary.TundManagement.item38') }}</text>
  278. <text class="delete-value">{{ dialogFllowData.distributionType || '--' }}</text>
  279. </view>
  280. <view class="delete-item">
  281. <text class="delete-label">{{ t('Documentary.tradingCenter.item32') }}</text>
  282. <text class="delete-value">{{ dialogFllowData.settlementCycle || '--' }}</text>
  283. </view>
  284. </view>
  285. <view class="delete-row">
  286. <view class="delete-item">
  287. <text class="delete-label">{{ t('Documentary.TundManagement.item39') }}</text>
  288. <text class="delete-value">{{ dialogFllowData.distributionRatio || '--' }}</text>
  289. </view>
  290. <view class="delete-item">
  291. <text class="delete-label">{{ t('Documentary.tradingCenter.item32') }}</text>
  292. <text class="delete-value">{{ dialogFllowData.settlementCycle || '--' }}</text>
  293. </view>
  294. </view>
  295. </view>
  296. <!-- 无订阅 → 可编辑 -->
  297. <view v-else class="form-row">
  298. <view class="form-col">
  299. <view class="form-item">
  300. <uni-forms-item name="distributionType" :label="t('Documentary.TundManagement.item38')">
  301. <cwg-combox v-model:value="dialogFllowData.distributionType" :clearable="false"
  302. :options="[{ text: t('Documentary.TundManagement.item59'), value: 1 }]"
  303. :placeholder="t('placeholder.choose')" />
  304. </uni-forms-item>
  305. </view>
  306. </view>
  307. <view class="form-col">
  308. <view class="form-item">
  309. <uni-forms-item name="distributionRatio"
  310. :label="t('Documentary.TundManagement.item39') + '(%)'">
  311. <uni-easyinput v-model="dialogFllowData.distributionRatio"
  312. :placeholder="t('placeholder.input')" />
  313. </uni-forms-item>
  314. </view>
  315. </view>
  316. <view class="form-col">
  317. <view class="form-item">
  318. <uni-forms-item name="settlementCycle" :label="t('Documentary.tradingCenter.item32')">
  319. <cwg-combox v-model:value="dialogFllowData.settlementCycle" :clearable="false"
  320. :options="optList1" :placeholder="t('placeholder.choose')" />
  321. </uni-forms-item>
  322. </view>
  323. </view>
  324. </view>
  325. </view>
  326. </uni-forms>
  327. <template #footer>
  328. <button hover-class="" @click="FllowUpdateCancel">{{ t('Btn.Cancel') }}</button>
  329. <button hover-class="" type="primary" @click="FllowUpdate">{{ t('Btn.Confirm') }}</button>
  330. </template>
  331. </cwg-popup>
  332. <!--申请成为信号源-->
  333. <cwg-popup v-model:visible="dialogFllowApply" type="center" :mask-click="false" :show-footers="true"
  334. :title="t('Documentary.TundManagement.item41')" width="650px">
  335. <uni-forms ref="applyRef" :model="dialogFllowDataApply" :rules="rules" label-position="top"
  336. label-width="200px">
  337. <!-- 名片信息 -->
  338. <view class="dia-content">
  339. <!-- 名片信息 -->
  340. <view class="fllow-title">
  341. <text class="title">{{ t('Documentary.tradingCenter.item126') }}</text>
  342. </view>
  343. <view class="form-item">
  344. <uni-forms-item name="nickname" :label="t('Documentary.console.item20')">
  345. <uni-easyinput v-model="dialogFllowDataApply.nickname" :placeholder="t('placeholder.input')"
  346. @blur="validateAmount" />
  347. </uni-forms-item>
  348. </view>
  349. <view class="form-row">
  350. <view class="form-col">
  351. <view class="form-item">
  352. <uni-forms-item name="personalSignature" :label="t('Documentary.console.item21')">
  353. <uni-easyinput v-model="dialogFllowDataApply.personalSignature"
  354. :placeholder="t('placeholder.input')" type="textarea"
  355. @input="filterChineseEnglishOnlyForApply('personalSignature', $event, 2)" />
  356. </uni-forms-item>
  357. </view>
  358. </view>
  359. <view class="form-col">
  360. <view class="form-item">
  361. <uni-forms-item name="traderStrategy" :label="t('Documentary.console.item22')">
  362. <uni-easyinput v-model="dialogFllowDataApply.traderStrategy"
  363. :placeholder="t('placeholder.input')" type="textarea"
  364. @input="filterChineseEnglishOnlyForApply('traderStrategy', $event, 2)" />
  365. </uni-forms-item>
  366. </view>
  367. </view>
  368. </view>
  369. <view class="tip-red">
  370. <text v-t="'Documentary.console.item37'"></text>
  371. </view>
  372. <!-- 账户信息 -->
  373. <view class="fllow-title">
  374. <text class="title">{{ t('Documentary.TundManagement.item29') }}{{ fundRequirementText }}</text>
  375. </view>
  376. <view class="form-row">
  377. <view class="form-col">
  378. <view class="form-item">
  379. <uni-forms-item name="dealLogin" :label="t('Label.TradingAccount')">
  380. <cwg-combox v-model:value="dialogFllowDataApply.dealLogin" :clearable="false"
  381. :options="loginOptions" :placeholder="t('placeholder.choose')"
  382. @change="selectLoginDeal" />
  383. </uni-forms-item>
  384. </view>
  385. </view>
  386. <view class="form-col">
  387. <view class="form-item">
  388. <uni-forms-item name="platform" :label="t('Label.PlatformType')">
  389. <cwg-combox v-model:value="dialogFllowDataApply.platform" :clearable="false"
  390. :options="[{ text: 'MT4', value: 'MT4' }, { text: 'MT5', value: 'MT5' }]"
  391. :placeholder="t('placeholder.choose')" :disabled="true" />
  392. </uni-forms-item>
  393. </view>
  394. </view>
  395. </view>
  396. <view class="form-row">
  397. <view class="form-col">
  398. <view class="form-item">
  399. <uni-forms-item name="loginType" :label="t('Label.AccountType')">
  400. <cwg-combox v-model:value="dialogFllowDataApply.loginType" :clearable="false"
  401. :options="[
  402. { text: t('AccountType.ClassicAccount'), value: 1 },
  403. { text: t('AccountType.SeniorAccount'), value: 2 },
  404. { text: t('AccountType.SpeedAccount'), value: 5 },
  405. { text: t('AccountType.SpeedAccount'), value: 6 },
  406. { text: t('AccountType.StandardAccount'), value: 7 },
  407. { text: t('AccountType.CentAccount'), value: 8 }
  408. ]" :placeholder="t('placeholder.choose')" :disabled="true" />
  409. </uni-forms-item>
  410. </view>
  411. </view>
  412. <view class="form-col">
  413. <view class="form-item">
  414. <uni-forms-item name="leverage" :label="t('Label.Leverage')">
  415. <uni-easyinput v-model="dialogFllowDataApply.leverage"
  416. :placeholder="t('placeholder.input')" :disabled="true" />
  417. </uni-forms-item>
  418. </view>
  419. </view>
  420. </view>
  421. <!-- 展示设置 -->
  422. <view class="fllow-title">
  423. <text class="title">{{ t('Documentary.TundManagement.item32') }}</text>
  424. </view>
  425. <view class="form-row">
  426. <view class="form-col">
  427. <view class="form-item">
  428. <uni-forms-item name="historyShow" :label="t('Documentary.TundManagement.item34')">
  429. <cwg-combox v-model:value="dialogFllowDataApply.historyShow" :clearable="false"
  430. :options="[{ text: t('Btn.item6'), value: 1 }, { text: t('Btn.item7'), value: 0 }]"
  431. :placeholder="t('placeholder.choose')" />
  432. </uni-forms-item>
  433. </view>
  434. </view>
  435. <view class="form-col">
  436. <view class="form-item">
  437. <uni-forms-item name="historyTime" :label="t('Documentary.TundManagement.item35')">
  438. <uni-datetime-picker v-model="dialogFllowDataApply.historyTime" type="date"
  439. :placeholder="t('Documentary.TundManagement.item37')" />
  440. </uni-forms-item>
  441. </view>
  442. </view>
  443. </view>
  444. <view class="form-item">
  445. <uni-forms-item name="introduceShow" :label="t('Documentary.TundManagement.item36')">
  446. <cwg-combox v-model:value="dialogFllowDataApply.introduceShow" :clearable="false"
  447. :options="[{ text: t('Btn.item6'), value: 1 }, { text: t('Btn.item7'), value: 0 }]"
  448. :placeholder="t('placeholder.choose')" />
  449. </uni-forms-item>
  450. </view>
  451. <!-- 分润设置 -->
  452. <view class="fllow-title">
  453. <text class="title">{{ t('Documentary.TundManagement.item33') }}</text>
  454. </view>
  455. <view class="form-row">
  456. <view class="form-col">
  457. <view class="form-item">
  458. <uni-forms-item name="distributionType" :label="t('Documentary.TundManagement.item38')">
  459. <cwg-combox v-model:value="dialogFllowDataApply.distributionType" :clearable="false"
  460. :options="[{ text: t('Documentary.TundManagement.item59'), value: 1 }]"
  461. :placeholder="t('placeholder.choose')" />
  462. </uni-forms-item>
  463. </view>
  464. </view>
  465. <view class="form-col">
  466. <view class="form-item">
  467. <uni-forms-item name="distributionRatio"
  468. :label="t('Documentary.TundManagement.item39') + '(%)'">
  469. <uni-easyinput v-model="dialogFllowDataApply.distributionRatio"
  470. :placeholder="t('placeholder.input')" />
  471. </uni-forms-item>
  472. </view>
  473. </view>
  474. <view class="form-col">
  475. <view class="form-item">
  476. <uni-forms-item name="settlementCycle" :label="t('Documentary.tradingCenter.item32')">
  477. <cwg-combox v-model:value="dialogFllowDataApply.settlementCycle" :clearable="false"
  478. :options="optList1" :placeholder="t('placeholder.choose')" />
  479. </uni-forms-item>
  480. </view>
  481. </view>
  482. </view>
  483. <uni-forms-item class="agree" name="agree">
  484. <checkbox-group :value="dialogFllowDataApply.agree ? ['1'] : []" @change="onAgreeChange">
  485. <label class="checkbox-agree">
  486. <checkbox value="1" :checked="dialogFllowDataApply.agree" />
  487. <text class="agree-text">
  488. {{ t('Documentary.TundManagement.item42') }}
  489. <cwg-link type="pdf" style="text-decoration: underline;" class="a"
  490. :url="isZh ? 'pdf/CopyTradeUserAgreementcn.pdf' : 'pdf/CopyTradeUserAgreement.pdf'"
  491. target="_blank" title="Documentary.TundManagement.item43" />
  492. {{ t('Documentary.TundManagement.item42_2') }}
  493. </text>
  494. </label>
  495. </checkbox-group>
  496. </uni-forms-item>
  497. </view>
  498. </uni-forms>
  499. <template #footer>
  500. <button hover-class="" @click="ApplyFllowCancel">{{ t('Btn.Cancel') }}</button>
  501. <button hover-class="" type="primary" @click="ApplyFllow">{{ t('Btn.Confirm') }}</button>
  502. </template>
  503. </cwg-popup>
  504. </cwg-page-wrapper>
  505. </template>
  506. <script setup lang="ts">
  507. import { computed, ref, nextTick, onMounted, reactive, watch } from 'vue';
  508. import { isAfterJuly28 } from '@/utils/dateUtils'
  509. import { useI18n } from 'vue-i18n';
  510. const { t, locale } = useI18n();
  511. import { documentaryApi } from '@/service/documentary';
  512. import useUserStore from "@/stores/use-user-store";
  513. const userStore = useUserStore();
  514. const userInfo = computed(() => userStore.userInfo);
  515. import { useFilters } from '@/composables/useFilters'
  516. const { numberFormat, numberDecimal } = useFilters()
  517. import { useFollowEnum } from '@/pages/follow/const/enum'
  518. const { optObj, optList1 } = useFollowEnum()
  519. const isZh = computed(() => ['cn', 'zh', 'zhHant'].includes(locale.value));
  520. const formRef = ref(null)
  521. const rules = computed(() => ({
  522. password: {
  523. rules: [
  524. {
  525. required: true,
  526. validateFunction: (rule, value, data, callback) => {
  527. if (Config.Pattern.Password.test(value)) {
  528. callback()
  529. } else {
  530. callback(t('vaildate.password.format'))
  531. }
  532. return true
  533. }
  534. }
  535. ]
  536. },
  537. agree: {
  538. rules: [
  539. {
  540. validateFunction: (rule, value, data, callback) => {
  541. if (value) {
  542. callback()
  543. } else {
  544. callback(t('vaildate.agree.empty'))
  545. }
  546. return true
  547. }
  548. }
  549. ]
  550. },
  551. platform: {
  552. rules: [
  553. {
  554. required: true,
  555. errorMessage: t('vaildate.select.empty')
  556. }
  557. ]
  558. },
  559. currency: {
  560. rules: [
  561. {
  562. required: true,
  563. errorMessage: t('vaildate.select.empty')
  564. }
  565. ]
  566. },
  567. leverage: {
  568. rules: [
  569. {
  570. required: true,
  571. errorMessage: t('vaildate.select.empty')
  572. }
  573. ]
  574. },
  575. loginType: {
  576. rules: [
  577. {
  578. required: true,
  579. errorMessage: t('vaildate.select.empty')
  580. }
  581. ]
  582. },
  583. dealLogin: {
  584. rules: [
  585. {
  586. required: true,
  587. errorMessage: t('vaildate.select.empty')
  588. }
  589. ]
  590. },
  591. distributionType: {
  592. rules: [
  593. {
  594. required: true,
  595. errorMessage: t('vaildate.select.empty')
  596. }
  597. ]
  598. },
  599. distributionRatio: {
  600. rules: [
  601. {
  602. required: true,
  603. errorMessage: t('vaildate.input.empty')
  604. },
  605. {
  606. validateFunction: (rule, value, data, callback) => {
  607. if (value >= 0 && value <= 50) {
  608. callback()
  609. } else {
  610. callback('0-50')
  611. }
  612. return true
  613. }
  614. }
  615. ]
  616. },
  617. settlementCycle: {
  618. rules: [
  619. {
  620. required: true,
  621. errorMessage: t('vaildate.input.empty')
  622. }
  623. ]
  624. },
  625. historyShow: {
  626. rules: [
  627. {
  628. required: true,
  629. errorMessage: t('vaildate.select.empty')
  630. }
  631. ]
  632. },
  633. historyTime: {
  634. rules: [
  635. {
  636. required: true,
  637. errorMessage: t('vaildate.select.empty')
  638. }
  639. ]
  640. },
  641. introduceShow: {
  642. rules: [
  643. {
  644. required: true,
  645. errorMessage: t('vaildate.select.empty')
  646. }
  647. ]
  648. },
  649. protectAmount: {
  650. rules: [
  651. {
  652. required: true,
  653. errorMessage: t('vaildate.input.empty')
  654. }
  655. ]
  656. },
  657. protectRatio: {
  658. rules: [
  659. {
  660. required: true,
  661. errorMessage: t('vaildate.input.empty')
  662. }
  663. ]
  664. },
  665. nickname: {
  666. rules: [
  667. {
  668. required: true,
  669. errorMessage: t('vaildate.input.empty')
  670. },
  671. {
  672. validateFunction: (rule, value, data, callback) => {
  673. if (value && /^[0-9a-zA-Z]{1,24}$/.test(value)) {
  674. callback()
  675. } else {
  676. callback(t('Msg.nickname'))
  677. }
  678. return true
  679. }
  680. }
  681. ]
  682. },
  683. personalSignature: {
  684. rules: [
  685. {
  686. required: true,
  687. errorMessage: t('vaildate.input.empty')
  688. },
  689. {
  690. validateFunction: (rule, value, data, callback) => {
  691. if (!value || /^[\u4e00-\u9fa5a-zA-Z\s]*$/.test(value)) {
  692. callback()
  693. } else {
  694. callback(t('Documentary.console.item38'))
  695. }
  696. return true
  697. }
  698. }
  699. ]
  700. },
  701. traderStrategy: {
  702. rules: [
  703. {
  704. required: true,
  705. errorMessage: t('vaildate.input.empty')
  706. },
  707. {
  708. validateFunction: (rule, value, data, callback) => {
  709. if (!value || /^[\u4e00-\u9fa5a-zA-Z\s]*$/.test(value)) {
  710. callback()
  711. } else {
  712. callback(t('Documentary.console.item38'))
  713. }
  714. return true
  715. }
  716. }
  717. ]
  718. },
  719. followType: {
  720. rules: [
  721. {
  722. required: true,
  723. errorMessage: t('vaildate.select.empty')
  724. }
  725. ]
  726. },
  727. volume: {
  728. rules: [
  729. {
  730. required: true,
  731. errorMessage: t('vaildate.input.empty')
  732. }
  733. ]
  734. },
  735. ratio: {
  736. rules: [
  737. {
  738. required: true,
  739. errorMessage: t('vaildate.input.empty')
  740. }
  741. ]
  742. }
  743. }));
  744. watch(locale, () => {
  745. formRef.value?.clearValidate()
  746. })
  747. const filterChineseEnglishOnlyForApply = (field, value, type) => {
  748. // 只保留中文、英文和空格
  749. const filtered = value.replace(/[^\u4e00-\u9fa5a-zA-Z\s]/g, '');
  750. // 去掉前后空格,如果没有正文内容(全是空格)就设置为空字符串
  751. const trimmed = filtered.trim();
  752. if (type == 1) {
  753. nextTick(() => {
  754. dialogFllowData.value[field] = trimmed;
  755. })
  756. } else {
  757. nextTick(() => {
  758. dialogFllowDataApply[field] = trimmed;
  759. })
  760. }
  761. }
  762. //获取客户跟单账户的下拉列表
  763. const isSubscribeLoading = ref(false)
  764. const SubscribeDownData = ref([])
  765. const getSubscribeLoginDown = async () => {
  766. isSubscribeLoading.value = true
  767. let res = await documentaryApi.followDealSubscribeLoginList({
  768. platform: "",
  769. page: null,
  770. });
  771. if (res.code == 200) {
  772. SubscribeDownData.value = res.data?.map(item => ({
  773. text: t('Documentary.console.item28') + '-' + item.dealLogin || '--',
  774. value: item.dealLogin
  775. })) || []
  776. } else {
  777. uni.showToast({
  778. title: res.msg,
  779. icon: 'none'
  780. })
  781. }
  782. isSubscribeLoading.value = false
  783. }
  784. const onAgreeChange = (e) => {
  785. dialogFllowDataApply.agree = e.detail.value.length > 0
  786. }
  787. // 单位类型
  788. function groupCurrency(type) {
  789. const map = { GBP: ': £', USD: ': $', EUR: ': €', USC: ': ¢' }
  790. return map[type] || ': $'
  791. }
  792. // 账户类型
  793. function groupTypeName(type) {
  794. const typeMap = {
  795. '1': t('AccountType.ClassicAccount'),
  796. '2': t('AccountType.SeniorAccount'),
  797. '3': isAfterJuly28() ? '--' : t('AccountType.AgencyAccount'),
  798. '5': t('AccountType.SpeedAccount'),
  799. '6': t('AccountType.SpeedAccount'),
  800. '7': t('AccountType.StandardAccount'),
  801. '8': t('AccountType.CentAccount')
  802. }
  803. return typeMap[type] || ''
  804. }
  805. const loginOptions = computed(() => loginOptionsLogin.value.map(item => ({
  806. text: `${item.login} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${numberDecimal(item.balance || 0)}`,
  807. value: item.login,
  808. disable: item.balance < 1000
  809. })))
  810. const selectLoginDeal = () => {
  811. loginOptionsLogin.value.forEach((item) => {
  812. if (item.login == dialogFllowDataApply.dealLogin) {
  813. dialogFllowDataApply.leverage = "1:" + item.leverage;
  814. dialogFllowDataApply.loginType = item.type;
  815. dialogFllowDataApply.platform = item.platform;
  816. }
  817. });
  818. }
  819. const applyRef = ref(null)
  820. const dialogFllowDataApply = reactive({
  821. dealLogin: '',
  822. leverage: '',
  823. loginType: '',
  824. platform: '',
  825. currency: '',
  826. leverageStatus: '',
  827. withdrawStatus: '',
  828. depositStatus: '',
  829. accountStatus: '',
  830. status: '',
  831. note: '',
  832. followType: '',
  833. volume: '',
  834. ratio: '',
  835. traderStrategy: '',
  836. personalSignature: '',
  837. nickname: '',
  838. protectAmount: '',
  839. protectRatio: '',
  840. introduceShow: '',
  841. historyShow: '',
  842. historyTime: '',
  843. settlementCycle: '',
  844. distributionType: '',
  845. distributionRatio: '',
  846. withdrawCurrency: '',
  847. withdrawAmount: '',
  848. depositCurrency: '',
  849. depositAmount: '',
  850. withdrawLogin: '',
  851. depositLogin: '',
  852. addTime: '',
  853. title: '',
  854. })
  855. const loginOptionsLogin = ref([])
  856. const dialogFllowApply = ref(false)
  857. //获取申请信号源交易账户下拉
  858. const getCustomLoginDownLogin = async () => {
  859. if (flag.value) {
  860. return;
  861. } else {
  862. flag.value = true;
  863. }
  864. let res = await documentaryApi.CustomDropdownData({
  865. platform: "",
  866. });
  867. if (res.code == 200) {
  868. loginOptionsLogin.value = res.data;
  869. dialogFllowApply.value = true;
  870. } else {
  871. uni.showToast({
  872. title: res.msg,
  873. icon: 'none'
  874. });
  875. }
  876. flag.value = false;
  877. }
  878. watch(() => dialogFllowDataApply.dealLogin, (newVal, oldVal) => {
  879. if (newVal !== oldVal) {
  880. selectLoginDeal();
  881. }
  882. })
  883. //申请信号源
  884. const ApplyFllow = async () => {
  885. try {
  886. await applyRef.value.validate()
  887. if (flag.value) {
  888. return;
  889. } else {
  890. flag.value = true;
  891. }
  892. let res = await documentaryApi.followDealApply({
  893. ...dialogFllowDataApply,
  894. });
  895. if (res.code == 200) {
  896. uni.showToast({
  897. title: t("Msg.Success"),
  898. icon: 'none'
  899. });
  900. ApplyFllowCancel();
  901. getDealLogin();
  902. flag.value = false;
  903. } else {
  904. uni.showToast({
  905. title: res.msg,
  906. icon: 'none'
  907. });
  908. flag.value = false;
  909. }
  910. } catch (error) {
  911. uni.showToast({ title: error.msg, icon: 'none' });
  912. } finally {
  913. flag.value = false;
  914. }
  915. }
  916. const ApplyFllowCancel = () => {
  917. applyRef.value &&
  918. applyRef.value.clearValidate();
  919. dialogFllowApply.value = false;
  920. }
  921. //获取客户信号源账户
  922. const accountDataLoading = ref(false)
  923. const accountData = ref([])
  924. const accountPager = ref({
  925. current: 1,
  926. row: 10,
  927. rowTotal: 0,
  928. pageTotal: 0
  929. })
  930. const getDealLogin = async () => {
  931. accountDataLoading.value = true;
  932. let res = await documentaryApi.followDealList({
  933. platform: null,
  934. status: 2,
  935. page: {
  936. current: accountPager.value.current,
  937. row: accountPager.value.row,
  938. },
  939. });
  940. if (res.code == 200) {
  941. accountData.value = res.data || []
  942. accountPager.value.rowTotal = res.page.rowTotal;
  943. accountPager.value.pageTotal = res.page.pageTotal;
  944. } else {
  945. uni.showToast({
  946. title: res.msg,
  947. icon: 'none'
  948. });
  949. }
  950. accountDataLoading.value = false;
  951. }
  952. //修改信号源
  953. const dialogFllowData = ref({})
  954. const dialogFllow = ref(false)
  955. const dialogFllowDataDelete = ref({})
  956. const dialogFllowDelete = ref(false)
  957. const flag = ref(false)
  958. const dialogFllowUpdate = (item) => {
  959. dialogFllowData.value = item;
  960. dialogFllow.value = true;
  961. }
  962. const FllowUpdate = async () => {
  963. try {
  964. await formRef.value.validate()
  965. if (flag.value) {
  966. return;
  967. } else {
  968. flag.value = true;
  969. }
  970. let res = await documentaryApi.followDealUpdate({
  971. ...dialogFllowData.value,
  972. });
  973. if (res.code == 200) {
  974. uni.showToast({
  975. title: t("Msg.Success"),
  976. icon: 'none'
  977. });
  978. FllowUpdateCancel();
  979. tableRef.value.refreshTable()
  980. getDealLogin();
  981. getSubscribeLoginDown()
  982. flag.value = false;
  983. } else {
  984. uni.showToast({
  985. title: res.msg,
  986. icon: 'none'
  987. });
  988. flag.value = false;
  989. }
  990. } catch (error) {
  991. flag.value = false;
  992. }
  993. }
  994. const FllowUpdateCancel = () => {
  995. formRef.value && formRef.value.clearValidate();
  996. dialogFllow.value = false;
  997. }
  998. //删除信号源
  999. const dialogFllowDele = (item) => {
  1000. dialogFllowDataDelete.value = item;
  1001. dialogFllowDelete.value = true;
  1002. }
  1003. const FllowDele = async () => {
  1004. if (flag.value) {
  1005. return;
  1006. } else {
  1007. flag.value = true;
  1008. }
  1009. let res = await documentaryApi.followDealDelete({
  1010. ids: [dialogFllowDataDelete.value.id],
  1011. });
  1012. if (res.code == 200) {
  1013. uni.showToast({
  1014. title: t("Msg.Success"),
  1015. icon: 'none'
  1016. });
  1017. FllowDeleCancel();
  1018. tableRef.value.refreshTable()
  1019. getDealLogin();
  1020. getSubscribeLoginDown()
  1021. flag.value = false;
  1022. } else {
  1023. uni.showToast({
  1024. title: res.msg,
  1025. icon: 'none'
  1026. });
  1027. flag.value = false;
  1028. }
  1029. }
  1030. const FllowDeleCancel = () => {
  1031. dialogFllowDelete.value = false;
  1032. }
  1033. const listApi = ref(null)
  1034. onMounted(() => {
  1035. getDealLogin()
  1036. getSubscribeLoginDown()
  1037. listApi.value = documentaryApi.followDealSubscribeDealList
  1038. })
  1039. </script>
  1040. <style scoped lang="scss">
  1041. @import "@/uni.scss";
  1042. .btn {
  1043. margin: 0;
  1044. }
  1045. .content-container {
  1046. .field-container {
  1047. display: grid;
  1048. grid-template-columns: repeat(3, 1fr);
  1049. gap: px2rpx(16);
  1050. min-width: 0;
  1051. overflow: hidden;
  1052. @media (max-width: 991px) {
  1053. grid-template-columns: 1fr;
  1054. }
  1055. .account-l-con {
  1056. background-color: transparent;
  1057. border-radius: px2rpx(8);
  1058. padding: px2rpx(20);
  1059. margin-bottom: px2rpx(16);
  1060. transition: all 0.3s ease;
  1061. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  1062. width: 100%;
  1063. border: 1px solid var(--bs-border-color);
  1064. box-sizing: border-box;
  1065. &:hover {
  1066. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  1067. transform: translateY(-2px);
  1068. }
  1069. .tit {
  1070. display: flex;
  1071. justify-content: space-between;
  1072. align-items: center;
  1073. margin-bottom: px2rpx(20);
  1074. padding-bottom: px2rpx(12);
  1075. border-bottom: 1px solid var(--bs-border-color);
  1076. view:first-child {
  1077. display: flex;
  1078. align-items: center;
  1079. gap: px2rpx(8);
  1080. .green-icon {
  1081. color: #28a745;
  1082. font-size: px2rpx(16);
  1083. }
  1084. .tit-tit {
  1085. font-size: px2rpx(16);
  1086. font-weight: 600;
  1087. color: var(--bs-emphasis-color);
  1088. }
  1089. text:last-child {
  1090. font-size: px2rpx(14);
  1091. font-weight: 500;
  1092. color: var(--bs-body-color);
  1093. }
  1094. }
  1095. .caozuo {
  1096. display: flex;
  1097. gap: px2rpx(12);
  1098. i {
  1099. font-size: px2rpx(18);
  1100. color: var(--bs-body-color);
  1101. transition: all 0.2s ease;
  1102. &:hover {
  1103. color: #eb3f57;
  1104. cursor: pointer;
  1105. }
  1106. &:active {
  1107. transform: scale(0.9);
  1108. }
  1109. }
  1110. }
  1111. }
  1112. .account-grid {
  1113. display: grid;
  1114. grid-template-columns: repeat(3, 1fr);
  1115. gap: px2rpx(16);
  1116. width: 100%;
  1117. box-sizing: border-box;
  1118. @media (max-width: 480px) {
  1119. grid-template-columns: repeat(3, 1fr);
  1120. }
  1121. .account-grid-item {
  1122. /* 🔥 核心修复 3:去掉强制最小宽度,避免超宽 */
  1123. /* min-width: px2rpx(200); */
  1124. margin-bottom: px2rpx(16);
  1125. .sub {
  1126. font-size: px2rpx(12);
  1127. font-weight: 500;
  1128. color: var(--bs-body-color);
  1129. margin-bottom: px2rpx(4);
  1130. text-transform: uppercase;
  1131. letter-spacing: px2rpx(0.5);
  1132. white-space: nowrap;
  1133. overflow: hidden;
  1134. text-overflow: ellipsis;
  1135. }
  1136. .num {
  1137. font-size: px2rpx(14);
  1138. font-weight: 400;
  1139. color: var(--bs-emphasis-color);
  1140. line-height: 1.4;
  1141. white-space: nowrap;
  1142. overflow: hidden;
  1143. text-overflow: ellipsis;
  1144. }
  1145. }
  1146. }
  1147. }
  1148. }
  1149. }
  1150. .avatar {
  1151. width: px2rpx(60);
  1152. height: px2rpx(60);
  1153. border-radius: 4px;
  1154. }
  1155. .content-title {
  1156. display: flex;
  1157. justify-content: space-between;
  1158. align-items: center;
  1159. .content-title-btns {
  1160. display: flex;
  1161. align-items: center;
  1162. justify-content: center;
  1163. gap: px2rpx(12);
  1164. margin-bottom: px2rpx(24);
  1165. .btn-primary {
  1166. min-width: px2rpx(120);
  1167. background-color: var(--color-error);
  1168. color: #fff;
  1169. padding: 0 px2rpx(12);
  1170. border: none;
  1171. font-size: px2rpx(14);
  1172. text-align: center;
  1173. cursor: pointer;
  1174. display: flex;
  1175. align-items: center;
  1176. justify-content: center;
  1177. gap: px2rpx(8);
  1178. }
  1179. .btn-primary1 {
  1180. background-color: #cf1322;
  1181. ;
  1182. }
  1183. .btn-primary2 {
  1184. background-color: var(--color-secondary-focus);
  1185. }
  1186. }
  1187. }
  1188. .operation-btn {
  1189. :deep(text) {
  1190. display: flex;
  1191. align-items: center;
  1192. justify-content: center;
  1193. gap: px2rpx(4);
  1194. cursor: pointer;
  1195. background-color: var(--color-slate-150);
  1196. padding: px2rpx(8) 0;
  1197. }
  1198. }
  1199. .operation-btn.disabled {
  1200. cursor: not-allowed;
  1201. opacity: 0.5;
  1202. }
  1203. .search-bar {
  1204. display: flex;
  1205. align-items: center;
  1206. justify-content: flex-start;
  1207. flex-wrap: wrap;
  1208. gap: px2rpx(16);
  1209. margin: px2rpx(16) 0;
  1210. .cwg-combox,
  1211. .uni-easyinput,
  1212. .uni-date {
  1213. width: px2rpx(240) !important;
  1214. flex: none;
  1215. }
  1216. }
  1217. .dia-content {
  1218. padding: px2rpx(20) px2rpx(20) px2rpx(100) px2rpx(20);
  1219. .uni-forms-item {
  1220. width: 100%;
  1221. }
  1222. .grid-layout {
  1223. display: grid;
  1224. grid-template-columns: 1fr 1fr;
  1225. gap: px2rpx(20);
  1226. margin: px2rpx(24) 0;
  1227. padding: px2rpx(20);
  1228. background-color: transparent;
  1229. border-radius: px2rpx(8);
  1230. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  1231. }
  1232. .fllow-title {
  1233. display: flex;
  1234. align-items: center;
  1235. justify-content: space-between;
  1236. border-bottom: 1px solid #eee;
  1237. padding-bottom: 10px;
  1238. margin-bottom: 10px;
  1239. .title {
  1240. font-weight: bold;
  1241. color: var(--bs-heading-color);
  1242. padding-left: 8px;
  1243. border-left: 4px solid #eb3f57;
  1244. font-size: 16px;
  1245. }
  1246. }
  1247. .delete-grid {
  1248. margin: px2rpx(16) 0;
  1249. }
  1250. .delete-row {
  1251. display: grid;
  1252. grid-template-columns: 1fr 1fr;
  1253. gap: px2rpx(12);
  1254. @media screen and (max-width: 768px) {
  1255. grid-template-columns: 1fr;
  1256. }
  1257. }
  1258. .delete-item {
  1259. flex: 1;
  1260. display: flex;
  1261. justify-content: space-between;
  1262. align-items: center;
  1263. padding: px2rpx(12) 0;
  1264. border-bottom: 1px dashed #e9ecef;
  1265. &:first-child {
  1266. padding-right: px2rpx(16);
  1267. }
  1268. &:last-child {
  1269. padding-left: px2rpx(16);
  1270. }
  1271. }
  1272. @media screen and (max-width: 768px) {
  1273. .delete-item {
  1274. &:first-child {
  1275. padding-right: px2rpx(0);
  1276. }
  1277. &:last-child {
  1278. padding-left: px2rpx(0);
  1279. }
  1280. }
  1281. }
  1282. .delete-label {
  1283. font-size: px2rpx(14);
  1284. color: var(--bs-body-color);
  1285. }
  1286. .delete-value {
  1287. font-size: px2rpx(14);
  1288. color: var(--bs-emphasis-color);
  1289. font-weight: 400;
  1290. }
  1291. .delete-tip {
  1292. margin-top: px2rpx(16);
  1293. font-size: px2rpx(14);
  1294. color: var(--bs-emphasis-color);
  1295. line-height: 1.5;
  1296. padding-top: px2rpx(16);
  1297. }
  1298. .tip-star {
  1299. color: #dc3545;
  1300. margin-right: px2rpx(4);
  1301. }
  1302. .agree {
  1303. margin-top: px2rpx(20);
  1304. }
  1305. .checkbox-agree {
  1306. display: flex;
  1307. align-items: flex-start;
  1308. gap: px2rpx(8);
  1309. :deep(.uni-checkbox-input) {
  1310. width: px2rpx(18);
  1311. height: px2rpx(18);
  1312. }
  1313. .agree-text {
  1314. font-size: px2rpx(14);
  1315. color: var(--bs-emphasis-color);
  1316. line-height: 1.3;
  1317. font-weight: normal;
  1318. width: 100%;
  1319. white-space: wrap;
  1320. .a {
  1321. color: #007bff;
  1322. text-decoration: underline;
  1323. margin: 0 px2rpx(4);
  1324. &:hover {
  1325. color: #0056b3;
  1326. }
  1327. }
  1328. }
  1329. }
  1330. .fllow-content {
  1331. margin-bottom: px2rpx(16);
  1332. .tit {
  1333. font-size: px2rpx(14);
  1334. font-weight: 500;
  1335. color: var(--bs-body-color);
  1336. margin-bottom: px2rpx(6);
  1337. text-transform: uppercase;
  1338. letter-spacing: px2rpx(0.5);
  1339. }
  1340. .con {
  1341. font-size: px2rpx(16);
  1342. font-weight: 400;
  1343. color: var(--bs-emphasis-color);
  1344. line-height: 1.4;
  1345. }
  1346. }
  1347. .form-row {
  1348. display: grid;
  1349. grid-template-columns: 1fr 1fr;
  1350. gap: px2rpx(20);
  1351. margin-top: px2rpx(16);
  1352. @media screen and (max-width: 768px) {
  1353. grid-template-columns: 1fr;
  1354. }
  1355. }
  1356. .form-item {
  1357. display: flex;
  1358. flex-direction: column;
  1359. align-items: flex-start;
  1360. text {
  1361. font-size: px2rpx(14);
  1362. font-weight: 500;
  1363. color: var(--bs-body-color);
  1364. margin-bottom: px2rpx(8);
  1365. white-space: nowrap;
  1366. }
  1367. input,
  1368. select,
  1369. textarea {
  1370. width: 100%;
  1371. padding: px2rpx(10);
  1372. border: 1px solid #ced4da;
  1373. border-radius: px2rpx(4);
  1374. font-size: px2rpx(14);
  1375. transition: all 0.2s ease;
  1376. &:focus {
  1377. outline: none;
  1378. border-color: #4dabf7;
  1379. box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.2);
  1380. }
  1381. }
  1382. textarea {
  1383. resize: vertical;
  1384. min-height: px2rpx(100);
  1385. }
  1386. }
  1387. .tip-red {
  1388. color: #dc3545;
  1389. font-size: px2rpx(14);
  1390. margin: px2rpx(12) 0 px2rpx(24) 0;
  1391. }
  1392. .tip-text {
  1393. margin-top: px2rpx(24);
  1394. font-size: px2rpx(14);
  1395. color: var(--bs-body-color);
  1396. line-height: 1.5;
  1397. padding: px2rpx(16);
  1398. background-color: #e7f3ff;
  1399. border-radius: px2rpx(4);
  1400. border-left: 4px solid #4dabf7;
  1401. }
  1402. }
  1403. /* 弹窗按钮样式 */
  1404. :deep(.cwg-popup__footer) {
  1405. display: flex;
  1406. gap: px2rpx(20);
  1407. padding: px2rpx(20);
  1408. border-top: 1px solid #e9ecef;
  1409. button {
  1410. flex: 1;
  1411. padding: px2rpx(12) 0;
  1412. border-radius: px2rpx(4);
  1413. font-size: px2rpx(14);
  1414. font-weight: 500;
  1415. transition: all 0.2s ease;
  1416. &:first-child {
  1417. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  1418. color: #495057;
  1419. border: 1px solid #ced4da;
  1420. &:hover {
  1421. background-color: transparent;
  1422. border-color: #adb5bd;
  1423. }
  1424. &:active {
  1425. transform: scale(0.98);
  1426. }
  1427. }
  1428. &:last-child {
  1429. background-color: #dc3545;
  1430. color: white;
  1431. border: 1px solid #dc3545;
  1432. &:hover {
  1433. background-color: #c82333;
  1434. border-color: #bd2130;
  1435. }
  1436. &:active {
  1437. transform: scale(0.98);
  1438. }
  1439. }
  1440. }
  1441. }
  1442. </style>