trading-management.vue 55 KB

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