trading-management.vue 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547
  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">{{ optObj[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 = computed(() => ({
  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. watch(locale, () => {
  739. formRef.value?.clearValidate()
  740. })
  741. const filterChineseEnglishOnlyForApply = (field, value, type) => {
  742. // 只保留中文、英文和空格
  743. const filtered = value.replace(/[^\u4e00-\u9fa5a-zA-Z\s]/g, '');
  744. // 去掉前后空格,如果没有正文内容(全是空格)就设置为空字符串
  745. const trimmed = filtered.trim();
  746. if (type == 1) {
  747. nextTick(() => {
  748. dialogFllowData.value[field] = trimmed;
  749. })
  750. } else {
  751. nextTick(() => {
  752. dialogFllowDataApply[field] = trimmed;
  753. })
  754. }
  755. }
  756. //获取客户跟单账户的下拉列表
  757. const isSubscribeLoading = ref(false)
  758. const SubscribeDownData = ref([])
  759. const getSubscribeLoginDown = async () => {
  760. isSubscribeLoading.value = true
  761. let res = await documentaryApi.followDealSubscribeLoginList({
  762. platform: "",
  763. page: null,
  764. });
  765. if (res.code == 200) {
  766. SubscribeDownData.value = res.data?.map(item => ({
  767. text: t('Documentary.console.item28') + '-' + item.dealLogin || '--',
  768. value: item.dealLogin
  769. })) || []
  770. } else {
  771. uni.showToast({
  772. title: res.msg,
  773. icon: 'none'
  774. })
  775. }
  776. isSubscribeLoading.value = false
  777. }
  778. const onAgreeChange = (e) => {
  779. dialogFllowDataApply.agree = e.detail.value.length > 0
  780. }
  781. // 单位类型
  782. function groupCurrency(type) {
  783. const map = { GBP: ': £', USD: ': $', EUR: ': €', USC: ': ¢' }
  784. return map[type] || ': $'
  785. }
  786. // 账户类型
  787. function groupTypeName(type) {
  788. const typeMap = {
  789. '1': t('AccountType.ClassicAccount'),
  790. '2': t('AccountType.SeniorAccount'),
  791. '3': isAfterJuly28() ? '--' : t('AccountType.AgencyAccount'),
  792. '5': t('AccountType.SpeedAccount'),
  793. '6': t('AccountType.SpeedAccount'),
  794. '7': t('AccountType.StandardAccount'),
  795. '8': t('AccountType.CentAccount')
  796. }
  797. return typeMap[type] || ''
  798. }
  799. const loginOptions = computed(() => loginOptionsLogin.value.map(item => ({
  800. text: `${item.login} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${item.balance || 0}`,
  801. value: item.login,
  802. disable: item.balance < 1000
  803. })))
  804. const selectLoginDeal = () => {
  805. loginOptionsLogin.value.forEach((item) => {
  806. if (item.login == dialogFllowDataApply.dealLogin) {
  807. dialogFllowDataApply.leverage = "1:" + item.leverage;
  808. dialogFllowDataApply.loginType = item.type;
  809. dialogFllowDataApply.platform = item.platform;
  810. }
  811. });
  812. }
  813. const applyRef = ref(null)
  814. const dialogFllowDataApply = reactive({
  815. dealLogin: '',
  816. leverage: '',
  817. loginType: '',
  818. platform: '',
  819. currency: '',
  820. leverageStatus: '',
  821. withdrawStatus: '',
  822. depositStatus: '',
  823. accountStatus: '',
  824. status: '',
  825. note: '',
  826. followType: '',
  827. volume: '',
  828. ratio: '',
  829. traderStrategy: '',
  830. personalSignature: '',
  831. nickname: '',
  832. protectAmount: '',
  833. protectRatio: '',
  834. introduceShow: '',
  835. historyShow: '',
  836. historyTime: '',
  837. settlementCycle: '',
  838. distributionType: '',
  839. distributionRatio: '',
  840. withdrawCurrency: '',
  841. withdrawAmount: '',
  842. depositCurrency: '',
  843. depositAmount: '',
  844. withdrawLogin: '',
  845. depositLogin: '',
  846. addTime: '',
  847. title: '',
  848. })
  849. const loginOptionsLogin = ref([])
  850. const dialogFllowApply = ref(false)
  851. //获取申请信号源交易账户下拉
  852. const getCustomLoginDownLogin = async () => {
  853. if (flag.value) {
  854. return;
  855. } else {
  856. flag.value = true;
  857. }
  858. let res = await documentaryApi.CustomDropdownData({
  859. platform: "",
  860. });
  861. if (res.code == 200) {
  862. loginOptionsLogin.value = res.data;
  863. dialogFllowApply.value = true;
  864. } else {
  865. uni.showToast({
  866. title: res.msg,
  867. icon: 'none'
  868. });
  869. }
  870. flag.value = false;
  871. }
  872. watch(() => dialogFllowDataApply.dealLogin, (newVal, oldVal) => {
  873. if (newVal !== oldVal) {
  874. selectLoginDeal();
  875. }
  876. })
  877. //申请信号源
  878. const ApplyFllow = async () => {
  879. try {
  880. await applyRef.value.validate()
  881. if (flag.value) {
  882. return;
  883. } else {
  884. flag.value = true;
  885. }
  886. let res = await documentaryApi.followDealApply({
  887. ...dialogFllowDataApply,
  888. });
  889. if (res.code == 200) {
  890. uni.showToast({
  891. title: t("Msg.Success"),
  892. icon: 'none'
  893. });
  894. ApplyFllowCancel();
  895. getDealLogin();
  896. flag.value = false;
  897. } else {
  898. uni.showToast({
  899. title: res.msg,
  900. icon: 'none'
  901. });
  902. flag.value = false;
  903. }
  904. } catch (error) {
  905. uni.showToast({title:error.msg, icon: 'none'});
  906. } finally {
  907. flag.value = false;
  908. }
  909. }
  910. const ApplyFllowCancel = () => {
  911. applyRef.value &&
  912. applyRef.value.clearValidate();
  913. dialogFllowApply.value = false;
  914. }
  915. //获取客户信号源账户
  916. const accountDataLoading = ref(false)
  917. const accountData = ref([])
  918. const accountPager = ref({
  919. current: 1,
  920. row: 10,
  921. rowTotal: 0,
  922. pageTotal: 0
  923. })
  924. const getDealLogin = async () => {
  925. accountDataLoading.value = true;
  926. let res = await documentaryApi.followDealList({
  927. platform: null,
  928. status: 2,
  929. page: {
  930. current: accountPager.value.current,
  931. row: accountPager.value.row,
  932. },
  933. });
  934. if (res.code == 200) {
  935. accountData.value = res.data || []
  936. accountPager.value.rowTotal = res.page.rowTotal;
  937. accountPager.value.pageTotal = res.page.pageTotal;
  938. } else {
  939. uni.showToast({
  940. title: res.msg,
  941. icon: 'none'
  942. });
  943. }
  944. accountDataLoading.value = false;
  945. }
  946. //修改信号源
  947. const dialogFllowData = ref({})
  948. const dialogFllow = ref(false)
  949. const dialogFllowDataDelete = ref({})
  950. const dialogFllowDelete = ref(false)
  951. const flag = ref(false)
  952. const dialogFllowUpdate = (item) => {
  953. dialogFllowData.value = item;
  954. dialogFllow.value = true;
  955. }
  956. const FllowUpdate = async () => {
  957. try {
  958. await formRef.value.validate()
  959. if (flag.value) {
  960. return;
  961. } else {
  962. flag.value = true;
  963. }
  964. let res = await documentaryApi.followDealUpdate({
  965. ...dialogFllowData.value,
  966. });
  967. if (res.code == 200) {
  968. uni.showToast({
  969. title: t("Msg.Success"),
  970. icon: 'none'
  971. });
  972. FllowUpdateCancel();
  973. tableRef.value.refreshTable()
  974. getDealLogin();
  975. getSubscribeLoginDown()
  976. flag.value = false;
  977. } else {
  978. uni.showToast({
  979. title: res.msg,
  980. icon: 'none'
  981. });
  982. flag.value = false;
  983. }
  984. } catch (error) {
  985. flag.value = false;
  986. }
  987. }
  988. const FllowUpdateCancel = () => {
  989. formRef.value && formRef.value.clearValidate();
  990. dialogFllow.value = false;
  991. }
  992. //删除信号源
  993. const dialogFllowDele = (item) => {
  994. dialogFllowDataDelete.value = item;
  995. dialogFllowDelete.value = true;
  996. }
  997. const FllowDele = async () => {
  998. if (flag.value) {
  999. return;
  1000. } else {
  1001. flag.value = true;
  1002. }
  1003. let res = await documentaryApi.followDealDelete({
  1004. ids: [dialogFllowDataDelete.value.id],
  1005. });
  1006. if (res.code == 200) {
  1007. uni.showToast({
  1008. title: t("Msg.Success"),
  1009. icon: 'none'
  1010. });
  1011. FllowDeleCancel();
  1012. tableRef.value.refreshTable()
  1013. getDealLogin();
  1014. getSubscribeLoginDown()
  1015. flag.value = false;
  1016. } else {
  1017. uni.showToast({
  1018. title: res.msg,
  1019. icon: 'none'
  1020. });
  1021. flag.value = false;
  1022. }
  1023. }
  1024. const FllowDeleCancel = () => {
  1025. dialogFllowDelete.value = false;
  1026. }
  1027. const listApi = ref(null)
  1028. onMounted(() => {
  1029. getDealLogin()
  1030. getSubscribeLoginDown()
  1031. listApi.value = documentaryApi.followDealSubscribeDealList
  1032. })
  1033. </script>
  1034. <style scoped lang="scss">
  1035. @import "@/uni.scss";
  1036. .btn {
  1037. margin: 0;
  1038. }
  1039. .content-container {
  1040. .field-container {
  1041. display: grid;
  1042. grid-template-columns: repeat(3, 1fr);
  1043. gap: px2rpx(16);
  1044. min-width: 0;
  1045. overflow: hidden;
  1046. @media (max-width: 991px) {
  1047. grid-template-columns: 1fr;
  1048. }
  1049. .account-l-con {
  1050. background-color: transparent;
  1051. border-radius: px2rpx(8);
  1052. padding: px2rpx(20);
  1053. margin-bottom: px2rpx(16);
  1054. transition: all 0.3s ease;
  1055. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  1056. width: 100%;
  1057. border: 1px solid var(--bs-border-color);
  1058. box-sizing: border-box;
  1059. &:hover {
  1060. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  1061. transform: translateY(-2px);
  1062. }
  1063. .tit {
  1064. display: flex;
  1065. justify-content: space-between;
  1066. align-items: center;
  1067. margin-bottom: px2rpx(20);
  1068. padding-bottom: px2rpx(12);
  1069. border-bottom: 1px solid var(--bs-border-color);
  1070. view:first-child {
  1071. display: flex;
  1072. align-items: center;
  1073. gap: px2rpx(8);
  1074. .green-icon {
  1075. color: #28a745;
  1076. font-size: px2rpx(16);
  1077. }
  1078. .tit-tit {
  1079. font-size: px2rpx(16);
  1080. font-weight: 600;
  1081. color: var(--bs-emphasis-color);
  1082. }
  1083. text:last-child {
  1084. font-size: px2rpx(14);
  1085. font-weight: 500;
  1086. color: var(--bs-body-color);
  1087. }
  1088. }
  1089. .caozuo {
  1090. display: flex;
  1091. gap: px2rpx(12);
  1092. i {
  1093. font-size: px2rpx(18);
  1094. color: var(--bs-body-color);
  1095. transition: all 0.2s ease;
  1096. &:hover {
  1097. color: #eb3f57;
  1098. cursor: pointer;
  1099. }
  1100. &:active {
  1101. transform: scale(0.9);
  1102. }
  1103. }
  1104. }
  1105. }
  1106. .account-grid {
  1107. display: grid;
  1108. grid-template-columns: repeat(3, 1fr);
  1109. gap: px2rpx(16);
  1110. width: 100%;
  1111. box-sizing: border-box;
  1112. @media (max-width: 480px) {
  1113. grid-template-columns: repeat(3, 1fr);
  1114. }
  1115. .account-grid-item {
  1116. /* 🔥 核心修复 3:去掉强制最小宽度,避免超宽 */
  1117. /* min-width: px2rpx(200); */
  1118. margin-bottom: px2rpx(16);
  1119. .sub {
  1120. font-size: px2rpx(12);
  1121. font-weight: 500;
  1122. color: var(--bs-body-color);
  1123. margin-bottom: px2rpx(4);
  1124. text-transform: uppercase;
  1125. letter-spacing: px2rpx(0.5);
  1126. white-space: nowrap;
  1127. overflow: hidden;
  1128. text-overflow: ellipsis;
  1129. }
  1130. .num {
  1131. font-size: px2rpx(14);
  1132. font-weight: 400;
  1133. color: var(--bs-emphasis-color);
  1134. line-height: 1.4;
  1135. white-space: nowrap;
  1136. overflow: hidden;
  1137. text-overflow: ellipsis;
  1138. }
  1139. }
  1140. }
  1141. }
  1142. }
  1143. }
  1144. .avatar {
  1145. width: px2rpx(60);
  1146. height: px2rpx(60);
  1147. border-radius: 4px;
  1148. }
  1149. .content-title {
  1150. display: flex;
  1151. justify-content: space-between;
  1152. align-items: center;
  1153. .content-title-btns {
  1154. display: flex;
  1155. align-items: center;
  1156. justify-content: center;
  1157. gap: px2rpx(12);
  1158. margin-bottom: px2rpx(24);
  1159. .btn-primary {
  1160. min-width: px2rpx(120);
  1161. background-color: var(--color-error);
  1162. color: #fff;
  1163. padding: 0 px2rpx(12);
  1164. border: none;
  1165. font-size: px2rpx(14);
  1166. text-align: center;
  1167. cursor: pointer;
  1168. display: flex;
  1169. align-items: center;
  1170. justify-content: center;
  1171. gap: px2rpx(8);
  1172. }
  1173. .btn-primary1 {
  1174. background-color: #cf1322;
  1175. ;
  1176. }
  1177. .btn-primary2 {
  1178. background-color: var(--color-secondary-focus);
  1179. }
  1180. }
  1181. }
  1182. .operation-btn {
  1183. :deep(text) {
  1184. display: flex;
  1185. align-items: center;
  1186. justify-content: center;
  1187. gap: px2rpx(4);
  1188. cursor: pointer;
  1189. background-color: var(--color-slate-150);
  1190. padding: px2rpx(8) 0;
  1191. }
  1192. }
  1193. .operation-btn.disabled {
  1194. cursor: not-allowed;
  1195. opacity: 0.5;
  1196. }
  1197. .search-bar {
  1198. display: flex;
  1199. align-items: center;
  1200. justify-content: flex-start;
  1201. flex-wrap: wrap;
  1202. gap: px2rpx(16);
  1203. margin: px2rpx(16) 0;
  1204. .cwg-combox,
  1205. .uni-easyinput,
  1206. .uni-date {
  1207. width: px2rpx(240) !important;
  1208. flex: none;
  1209. }
  1210. }
  1211. .dia-content {
  1212. padding: px2rpx(20) px2rpx(20) px2rpx(100) px2rpx(20);
  1213. .uni-forms-item {
  1214. width: 100%;
  1215. }
  1216. .grid-layout {
  1217. display: grid;
  1218. grid-template-columns: 1fr 1fr;
  1219. gap: px2rpx(20);
  1220. margin: px2rpx(24) 0;
  1221. padding: px2rpx(20);
  1222. background-color: transparent;
  1223. border-radius: px2rpx(8);
  1224. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  1225. }
  1226. .fllow-title {
  1227. display: flex;
  1228. align-items: center;
  1229. justify-content: space-between;
  1230. border-bottom: 1px solid #eee;
  1231. padding-bottom: 10px;
  1232. margin-bottom: 10px;
  1233. .title {
  1234. font-weight: bold;
  1235. color: var(--bs-heading-color);
  1236. padding-left: 8px;
  1237. border-left: 4px solid #eb3f57;
  1238. font-size: 16px;
  1239. }
  1240. }
  1241. .delete-grid {
  1242. margin: px2rpx(16) 0;
  1243. }
  1244. .delete-row {
  1245. display: grid;
  1246. grid-template-columns: 1fr 1fr;
  1247. gap: px2rpx(12);
  1248. @media screen and (max-width: 768px) {
  1249. grid-template-columns: 1fr;
  1250. }
  1251. }
  1252. .delete-item {
  1253. flex: 1;
  1254. display: flex;
  1255. justify-content: space-between;
  1256. align-items: center;
  1257. padding: px2rpx(12) 0;
  1258. border-bottom: 1px dashed #e9ecef;
  1259. &:first-child {
  1260. padding-right: px2rpx(16);
  1261. }
  1262. &:last-child {
  1263. padding-left: px2rpx(16);
  1264. }
  1265. }
  1266. .delete-label {
  1267. font-size: px2rpx(14);
  1268. color: var(--bs-body-color);
  1269. }
  1270. .delete-value {
  1271. font-size: px2rpx(14);
  1272. color: var(--bs-emphasis-color);
  1273. font-weight: 400;
  1274. }
  1275. .delete-tip {
  1276. margin-top: px2rpx(16);
  1277. font-size: px2rpx(14);
  1278. color: var(--bs-emphasis-color);
  1279. line-height: 1.5;
  1280. padding-top: px2rpx(16);
  1281. }
  1282. .tip-star {
  1283. color: #dc3545;
  1284. margin-right: px2rpx(4);
  1285. }
  1286. .agree {
  1287. margin-top: px2rpx(20);
  1288. }
  1289. .checkbox-agree {
  1290. display: flex;
  1291. align-items: flex-start;
  1292. gap: px2rpx(8);
  1293. :deep(.uni-checkbox-input) {
  1294. width: px2rpx(18);
  1295. height: px2rpx(18);
  1296. }
  1297. .agree-text {
  1298. font-size: px2rpx(14);
  1299. color: var(--bs-emphasis-color);
  1300. line-height: 1.3;
  1301. font-weight: normal;
  1302. width: 100%;
  1303. white-space: wrap;
  1304. .a {
  1305. color: #007bff;
  1306. text-decoration: underline;
  1307. margin: 0 px2rpx(4);
  1308. &:hover {
  1309. color: #0056b3;
  1310. }
  1311. }
  1312. }
  1313. }
  1314. .fllow-content {
  1315. margin-bottom: px2rpx(16);
  1316. .tit {
  1317. font-size: px2rpx(14);
  1318. font-weight: 500;
  1319. color: var(--bs-body-color);
  1320. margin-bottom: px2rpx(6);
  1321. text-transform: uppercase;
  1322. letter-spacing: px2rpx(0.5);
  1323. }
  1324. .con {
  1325. font-size: px2rpx(16);
  1326. font-weight: 400;
  1327. color: var(--bs-emphasis-color);
  1328. line-height: 1.4;
  1329. }
  1330. }
  1331. .form-row {
  1332. display: grid;
  1333. grid-template-columns: 1fr 1fr;
  1334. gap: px2rpx(20);
  1335. margin-top: px2rpx(16);
  1336. @media screen and (max-width: 768px) {
  1337. grid-template-columns: 1fr;
  1338. }
  1339. }
  1340. .form-item {
  1341. display: flex;
  1342. flex-direction: column;
  1343. align-items: flex-start;
  1344. text {
  1345. font-size: px2rpx(14);
  1346. font-weight: 500;
  1347. color: var(--bs-body-color);
  1348. margin-bottom: px2rpx(8);
  1349. white-space: nowrap;
  1350. }
  1351. input,
  1352. select,
  1353. textarea {
  1354. width: 100%;
  1355. padding: px2rpx(10);
  1356. border: 1px solid #ced4da;
  1357. border-radius: px2rpx(4);
  1358. font-size: px2rpx(14);
  1359. transition: all 0.2s ease;
  1360. &:focus {
  1361. outline: none;
  1362. border-color: #4dabf7;
  1363. box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.2);
  1364. }
  1365. }
  1366. textarea {
  1367. resize: vertical;
  1368. min-height: px2rpx(100);
  1369. }
  1370. }
  1371. .tip-red {
  1372. color: #dc3545;
  1373. font-size: px2rpx(14);
  1374. margin: px2rpx(12) 0 px2rpx(24) 0;
  1375. }
  1376. .tip-text {
  1377. margin-top: px2rpx(24);
  1378. font-size: px2rpx(14);
  1379. color: var(--bs-body-color);
  1380. line-height: 1.5;
  1381. padding: px2rpx(16);
  1382. background-color: #e7f3ff;
  1383. border-radius: px2rpx(4);
  1384. border-left: 4px solid #4dabf7;
  1385. }
  1386. }
  1387. /* 弹窗按钮样式 */
  1388. :deep(.cwg-popup__footer) {
  1389. display: flex;
  1390. gap: px2rpx(20);
  1391. padding: px2rpx(20);
  1392. border-top: 1px solid #e9ecef;
  1393. button {
  1394. flex: 1;
  1395. padding: px2rpx(12) 0;
  1396. border-radius: px2rpx(4);
  1397. font-size: px2rpx(14);
  1398. font-weight: 500;
  1399. transition: all 0.2s ease;
  1400. &:first-child {
  1401. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  1402. color: #495057;
  1403. border: 1px solid #ced4da;
  1404. &:hover {
  1405. background-color: transparent;
  1406. border-color: #adb5bd;
  1407. }
  1408. &:active {
  1409. transform: scale(0.98);
  1410. }
  1411. }
  1412. &:last-child {
  1413. background-color: #dc3545;
  1414. color: white;
  1415. border: 1px solid #dc3545;
  1416. &:hover {
  1417. background-color: #c82333;
  1418. border-color: #bd2130;
  1419. }
  1420. &:active {
  1421. transform: scale(0.98);
  1422. }
  1423. }
  1424. }
  1425. }
  1426. </style>