-
-
+
@@ -945,16 +934,30 @@
- -->
-
-
+
+
+
{{ $t(`apiFile.miningPoolInformation1`) }}
HashRate
@@ -1677,7 +1679,7 @@
-
+
{{ $t(`apiFile.realTimeMiningMachine`) }}
Post /oapi/v1/miner/hashrate_real
@@ -1739,7 +1741,7 @@
-
+
{{ $t(`apiFile.miningMachineHistory24h`) }}
Post /oapi/v1/miner/hashrate_history
@@ -1809,7 +1811,7 @@
-
+
{{ $t(`apiFile.realTimeMiningMachine24h30m`) }}
Post /oapi/v1/miner/hashrate_last24h
@@ -1868,7 +1870,7 @@
-
+ -->
@@ -2455,6 +2457,42 @@ a{
font-size: 14px;
margin: 0;
}
+.dynamic-content {
+ width: 100%;
+ margin: 0 auto;
+
+ // 富文本样式
+ :deep(table) {
+ border-collapse: collapse;
+ width: 100%;
+ margin: 16px 0;
+ }
+ :deep(th), :deep(td) {
+ border: 1px solid #d1d5db;
+ padding: 8px 12px;
+ text-align: left;
+ }
+ :deep(th) {
+ background: #f3f4f6;
+ font-weight: bold;
+ }
+ :deep(strong), :deep(b) {
+ font-weight: bold !important;
+ color: inherit !important;
+ font-style: normal !important;
+ }
+ :deep(em), :deep(i) {
+ font-style: italic !important;
+ color: inherit !important;
+ }
+ :deep(a) {
+ color: #007bff !important;
+ text-decoration: none !important;
+ &:hover {
+ text-decoration: underline !important;
+ }
+ }
+ }
/* 加载动画 */
@keyframes pulse {
diff --git a/mining-pool/src/views/documentManagement/modifyDocument/index.js b/mining-pool/src/views/documentManagement/modifyDocument/index.js
index f687c29..71472e5 100644
--- a/mining-pool/src/views/documentManagement/modifyDocument/index.js
+++ b/mining-pool/src/views/documentManagement/modifyDocument/index.js
@@ -25,11 +25,10 @@ export default{
this.addParams.type = String(this.addParams.type)
this.addParams.childType = String(this.addParams.childType)
this.typeArray = [this.addParams.type]
-
// 标记已从后台获取数据,避免被本地存储覆盖
this.hasBackendData = true
+ // 删除 editor.setHtml 的调用,内容初始化交由 onCreated 统一处理
}
-
}
}
}
\ No newline at end of file
diff --git a/mining-pool/src/views/rate/index.js b/mining-pool/src/views/rate/index.js
index 4b88640..fbbcce4 100644
--- a/mining-pool/src/views/rate/index.js
+++ b/mining-pool/src/views/rate/index.js
@@ -1,3 +1,4 @@
+import { findDataInfo ,documentsList} from '../../api/documentManagement'
export default {
data(){
return{
@@ -88,7 +89,28 @@ export default {
- ]
+ ],
+ DetailsParams:{
+ lang:this.$i18n.locale,
+ childType:2,//1服务条款、2费率、3API文档 childType
+ },
+ info:"",
+ rateLoading:false
}
+ },
+ mounted(){
+ this.fetchProblemDetails(this.DetailsParams)
+ },
+ methods:{
+ async fetchProblemDetails(params) {
+ this.setLoading('rateLoading', true);
+ const res = await findDataInfo(params)
+ if(res && res.code === 200){
+
+ this.info = res.data.content || ""
+
+ }
+ this.setLoading('rateLoading', false);
+ },
}
}
\ No newline at end of file
diff --git a/mining-pool/src/views/rate/index.vue b/mining-pool/src/views/rate/index.vue
index c011cf8..7758260 100644
--- a/mining-pool/src/views/rate/index.vue
+++ b/mining-pool/src/views/rate/index.vue
@@ -63,7 +63,21 @@
- {{$t(`course.rateRelated`)}}
+
+
+
+
+
+
+
{{item.rate}}
{{item.mode}}
{{item.quota}}
@@ -84,7 +97,7 @@
-
+ -->
@@ -282,6 +295,8 @@ export default {
padding: 10px;
text-align: center;
padding-top:30px;
+ background: #fff;
+ padding: 20px;
h2{
text-align: left;
padding-left: 50px;
@@ -353,4 +368,42 @@ export default {
}
}
+
+ .dynamic-content {
+ width: 100%;
+ margin: 0 auto;
+
+ // 富文本样式
+ :deep(table) {
+ border-collapse: collapse;
+ width: 100%;
+ margin: 16px 0;
+ }
+ :deep(th), :deep(td) {
+ border: 1px solid #d1d5db;
+ padding: 8px 12px;
+ text-align: left;
+ }
+ :deep(th) {
+ background: #f3f4f6;
+ font-weight: bold;
+ }
+ :deep(strong), :deep(b) {
+ font-weight: bold !important;
+ color: inherit !important;
+ font-style: normal !important;
+ }
+ :deep(em), :deep(i) {
+ font-style: italic !important;
+ color: inherit !important;
+ }
+ :deep(a) {
+ color: #007bff !important;
+ text-decoration: none !important;
+ &:hover {
+ text-decoration: underline !important;
+ }
+ }
+ }
+
\ No newline at end of file