5.10航天ui交易所pc端,代码jiem-pc
lxf
2025-05-22 e74a7c7afc56cf229058091fe2ae143cf0bdb3ca
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
<!-- 矿池锁仓页面 -->
<template>
  <div style="background-color: #111214">
    <!-- <div class="miner-background"></div> -->
   <div class="router-view">
    <section  class="container">
      <section  class="header">
        <p  class="header-title">質押</p>
        <button  aria-disabled="false" type="button" class="el-button header-btn">
          <i class="el-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path fill="currentColor" d="M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"></path></svg></i>
          <span class="">質押記錄</span>
        </button>
      </section>
      <section  class="content">
          <p  class="content-subtitle">挖礦賺不停</p>
          <p  class="content-desc">鎖倉挖礦是通過將USDT託管給平台超算力礦機在平台礦池中進行的挖礦收益</p><p  class="content-subtitle">產品亮點</p>
          <div  class="plane">
            <div  class="plane-info">
              <p  class="plane-info__title">隨存隨取</p>
              <p  class="plane-info__desc">派息週期</p>
            </div>
              <div  class="plane-info">
                <p  class="plane-info__title">每日下發</p>
                <p  class="plane-info__desc">活期利息</p>
              </div>
            </div>
 
          <p  class="content-subtitle">專案介紹</p>
          <p  class="content-desc">
            <span >1. 以太坊是一個去中心化的開源區塊鏈系統,擁有自己的數位貨幣Ether.ETH 作為許多其他數位硬幣的平台,以及用於執行去中心化智能合約的平台 。</span>
            <span >2. 我們採取與硬體礦業公司合作的形式,推出網路挖礦收益產品。</span>
            <span >3. 質押您的USDT,我們將使用等值的ETH參與實體機挖礦。</span>
            <span >4. 本產品將參與投資指定Al礦機並分享分紅。</span>
            <div class="content-desc">
              <p  class="title1">舉例</p>
              <span >會員在平台上進行鎖倉挖礦10000U。選擇了週期為1天,日產出為鎖倉金額的0.3%的理財產品,則每日產出如下:10000U*0.3% =30U即1天後可獲得30U的收益,收益每日下發,鎖倉結束可隨時訪問,鎖倉挖礦本金到期後,本金自動轉入您的資產帳戶</span>
              <p  class="title1">專案規則</p>
              <span >1. 活動期間質押的USDT將計入持有快照的計算。</span>
              <span >2. 已質押的USDT將在活動結束時自動終止。</span>
              <span >3. 收益率為預估值,請以實際收到的金額為準。</span>
              <span >4. 收益將在24小時後分配到您的兌換帳戶。</span>
              <span >5. 如需提前結束活動,請聯絡客服。</span>
            </div>
          </p>
 
        </section>
        <section  class="list-container"><ul  class="list"></ul></section><!---->
      </section>
    </div>
    <!-- 底部导航栏 -->
    
 
 
    <!-- footer -->
    <!-- <footer-view></footer-view> -->
  </div>
</template>
 
<script>
import Axios from "@/utils/http";
import FundBuy from "./FundBuy.vue";
import { useUserStore } from "@/store/user.js";
export default {
  components: { FundBuy },
  data() {
    return {
      language: "zh-CN",
      tableData: [],
      amount_sum: "",
      amountSumValue: "",
      today_profit: "",
      todayProfitValue: "",
      aready_profit: "",
      areadyProfitValue: "",
      order_sum: "",
      showProductId: "",
      typeName: "mine",
      outputCurrency: "",
      buyCurrency: "",
      textData: [
        {
          recommend: this.$t("message.user.yijiyonghu"),
          revenue: "20%",
          subscribe: "5%",
        },
        {
          recommend: this.$t("message.user.erjiyonghu"),
          revenue: "10%",
          subscribe: "3%",
        },
        {
          recommend: this.$t("message.user.sanjiyonghu"),
          revenue: "5%",
          subscribe: "1%",
        },
      ],
      checked1: false,
      checked2: false,
      tableOrderData: [],
      mineOrderData: [],
      tableDataAll: [],
      money: 0,
      checkdIndex: 0,
    };
  },
  mounted() {
    const lang = JSON.parse(localStorage.getItem("lang"));
    if (lang == "en") {
      this.language = "en";
    } else if (lang == "cht") {
      this.language = "CN";
    } else if (lang == "zh-CN") {
      this.language = "zh-CN";
    } else {
      this.language = "other";
    }
 
    this.getlist();
    this.getIncome();
    // this.getMineOrderList();
    //没有登录不请求
    let spToken = localStorage.getItem("spToken", "");
    if (spToken && spToken != "") {
      this.getMineOrderList();
      this.getUsdt();
    }
 
    let self = this;
    let lockMiner_main_search = document.getElementById(
      "lockMiner_main_search"
    );
    lockMiner_main_search.oninput = function () {
      console.log(lockMiner_main_search.value);
      self.search(lockMiner_main_search.value);
    };
  },
  methods: {
    goAccounts() {
      this.$router.push({
        path: "/wallet/financialAccounts",
        query: {
          type: 1,
        },
      });
    },
    goHistory() {
      this.$router.push({
        path: "/order/financialOrder",
        query: {
          type: "miner",
        },
      });
    },
    getlist() {
      Axios.fetch("wap/api/miner!list.action").then((res) => {
        this.tableDataAll = res.data;
        this.tableData = [].concat(this.tableDataAll);
      });
    },
    //理财收益统计
    getIncome() {
      Axios.fetch("wap/api/minerOrder!listSum.action").then((res) => {
        this.amount_sum = res.data.amount_sum;
        this.amountSumValue = res.data.amountSumValue;
        this.today_profit = res.data.today_profit;
        this.todayProfitValue = res.data.todayProfitValue;
        this.aready_profit = res.data.aready_profit;
        this.areadyProfitValue = res.data.areadyProfitValue;
        this.order_sum = res.data.order_sum;
        this.outputCurrency = res.data.outputCurrency;
        this.buyCurrency = res.data.buyCurrency || "usdt";
      });
    },
    //理财账户列表数据
    getOrderList() {
      Axios.fetch("wap/api/financeOrder!list.action", {
        state: 1,
        page_no: 1,
      }).then((res) => {
        // this.tableOrderData = res.data;
        // console.log(JSON.stringify(res.data));
      });
    },
    //矿池锁仓列表
    getMineOrderList() {
      Axios.fetch("wap/api/minerOrder!list.action", {
        state: 1,
        page_no: 1,
      }).then((res) => {
        this.mineOrderData = res.data;
        console.log("getMineOrderList = " + JSON.stringify(res.data));
      });
    },
    //获取可用余额USDT
    getUsdt() {
      Axios.fetch("wap/api/wallet!getAll.action")
        .then((res) => {
          console.log("money = " + JSON.stringify(res.data));
          this.money = res.data.usdt;
        })
        .catch((err) => {
          console.log(err);
        });
    },
    //买入
    buyBtn(id) {
      if (useUserStore().userInfo.token == "") {
        this.$router.push("/login");
      } else {
        this.$refs.panelShow.show();
        this.showProductId = id;
      }
    },
    goRouter(parmas) {
      if (parmas != "/loginOut") {
        this.$router.push(parmas);
      } else {
        Axios.loginOut().then((res) => {
          if (res.code == "0") {
            localStorage.removeItem("spToken");
            localStorage.removeItem("vuex");
            localStorage.removeItem("username");
            this.$router.push("/login");
            window.location.reload();
          }
        });
      }
    },
    Checkd() {
      console.log("Checkd");
 
      if (!this.checked1 && !this.checked2) {
        console.log("!this.checked1&!this.checked2");
        //所有的
        this.tableData = [].concat(this.tableDataAll);
      } else if (this.checked1 && this.checked2) {
        console.log("this.checked1&this.checked2");
 
        let newTable = [];
        let table1 = [].concat(this.tableDataAll);
        for (let i = 0; i < table1.length; i++) {
          let t = table1[i];
          for (let j = 0; j < this.mineOrderData.length; j++) {
            let t2 = this.mineOrderData[j];
            console.log("t=" + t.name_en);
            console.log("t2=" + t2.miner_name_en);
            // if(t.name_en == t2.miner_name_en){
            //     newTable.push(JSON.parse(JSON.stringify(t)));
            // }
          }
 
          if (t.investment_min <= this.money && t.on_sale == "1") {
            newTable.push(JSON.parse(JSON.stringify(t)));
          }
        }
 
        let newTable2 = [];
        for (let i = 0; i < newTable.length; i++) {
          let t = newTable[i];
          if (t.investment_min <= this.money && t.on_sale == "1") {
            newTable2.push(JSON.parse(JSON.stringify(t)));
          }
        }
 
        this.tableData = newTable2;
      } else if (this.checked1) {
        //可以购买
        console.log("this.checked1&");
        //this.money
        let newTable = [];
        let table1 = [].concat(this.tableDataAll);
 
        for (let i = 0; i < table1.length; i++) {
          let t = table1[i];
          // console.log("t="+JSON.stringify(t));
          if (t.investment_min <= this.money && t.on_sale == "1") {
            newTable.push(JSON.parse(JSON.stringify(t)));
          }
        }
        this.tableData = newTable;
      } else if (this.checked2) {
        //已经
        console.log("this.checked2&");
        let newTable = [];
        let table1 = [].concat(this.tableDataAll);
 
        console.log("this.tableDataAll = " + JSON.stringify(this.tableDataAll));
        console.log(
          "this.mineOrderData = " + JSON.stringify(this.mineOrderData)
        );
 
        for (let i = 0; i < table1.length; i++) {
          let t = table1[i];
          // for(let j = 0 ; j < this.mineOrderData.length ; j++){
          //     let t2 = this.mineOrderData[j];
          //     console.log("t="+t.name_en);
          //     console.log("t2="+t2.miner_name_en);
          //     if(t.name_en == t2.miner_name_en){
          //         newTable.push(JSON.parse(JSON.stringify(t)));
          //     }
          // }
 
          if (t.investment_min <= this.money && t.on_sale == "1") {
            newTable.push(JSON.parse(JSON.stringify(t)));
          }
        }
 
        this.tableData = newTable;
      }
    },
    search(value) {
      let newTable = [];
 
      let table1 = [].concat(this.tableDataAll);
      for (let i = 0; i < table1.length; i++) {
        let t = table1[i];
        console.log(JSON.stringify(t));
        if (t.name_en && t.name_en.indexOf(value) >= 0) {
          newTable.push(JSON.parse(JSON.stringify(t)));
        } else if (t.name_cn && t.name_cn.indexOf(value) >= 0) {
          newTable.push(JSON.parse(JSON.stringify(t)));
        } else if (t.name && t.name.indexOf(value) >= 0) {
          newTable.push(JSON.parse(JSON.stringify(t)));
        }
      }
 
      this.tableData = newTable;
    },
  },
  computed: {
    //该计算属性返回要监视的对象属性值
    getChecked1() {
      console.log("getChecked1=" + this.checked1);
 
      return this.checked1;
    },
    getChecked2() {
      console.log("getChecked2=" + this.checked2);
 
      return this.checked2;
    },
  },
  watch: {
    //开始监听返回该对象属性值计算属性
    getChecked1: function (newVal, oldVal) {
      console.log(newVal, oldVal);
      this.checkdIndex++;
 
      console.log("this.checkdIndex = " + this.checkdIndex);
 
      // if(this.checkdIndex==2){
      this.Checkd();
      this.checkdIndex = 0;
      // }
    },
    getChecked2: function (newVal, oldVal) {
      console.log(newVal, oldVal);
      this.checkdIndex++;
 
      console.log("this.checkdIndex = " + this.checkdIndex);
 
      // if(this.checkdIndex==2){
      this.Checkd();
      this.checkdIndex = 0;
      // }
    },
  },
};
</script>
 
<style scoped>
@import url(./wealth.css);
 
.el-table >>> .el-table thead {
  font-size: 15px !important;
}
 
/* .en-btn-style{
    position: relative;
    top:30px;
} */
input[type="checkbox"] {
  border: 1px solid #ffffff;
}
.css-search-3 {
  background-color: #111214;
}
/* 改变表格背景颜色 */
/deep/ .el-table__cell {
  background: #111214 !important; /* 你想要的颜色 */
}
.collapse {
  border-top: none;
  border-bottom-color: #111214;
}
/deep/ .el-collapse-item__header {
  background-color: #111214;
  color: white;
}
/deep/ .el-collapse-item__content {
  font-size: 15px;
  background-color: #111214;
  color: rgb(185, 185, 185);
}
/deep/ .el-table__empty-block {
  background-color: #111214;
}
.css-search-3 input {
  color: #fff;
  font-size: 14px;
}
 
.router-view{
      flex: 1;
    background-color: #000;
}
 
.container {
    background-color: #000;
    width: 1232px;
    padding: 24px 16px 16px;
    margin: auto;
    .list {
      display: flex;
      flex-wrap: wrap;
      color: #fff;
  }
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    margin-bottom: 16px;
    .header-title {
      font-size: 36px;
      color: #fff;
    }
 
  .header-btn {
      min-width: 114px;
      line-height: 40px;
      height: 40px;
      font-size: 16px;
      background-color: transparent;
      border: 1px solid #fff;
      color: #fff;
  }
 
  .el-button [class*=el-icon]+span {
      margin-left: 6px;
  }
 
  .el-button>span {
      align-items: center;
      display: inline-flex;
  }
}
 
.content {
      color: #fff;
      padding: 24px 0;
      .content-subtitle {
        font-size: 20px;
        font-weight: 600;
        line-height: 28px;
        margin-bottom: 12px;
        margin-top: 24px;
      }
      .plane {
        display: flex;
        justify-content: space-between;
        align-items: center;
        .plane-info {
          flex: 1 0 49%;
          max-width: 500px;
          padding: 16px;
          box-sizing: border-box;
          border-radius: 12px;
          background-color: #1e2129;
          text-align: center;
        }
        .plane-info__title {
          font-size: 24px;
          line-height: 32px;
          color: #f7b328;
        }
        .plane-info__desc {
          color: #ececec;
          line-height: 24px;
        }
      }
 
      .content-subtitle {
          font-size: 20px;
          font-weight: 600;
          line-height: 28px;
          margin-bottom: 12px;
          margin-top: 24px;
      }
    
 
}
.content-desc {
    font-size: 14px;
    color: #989898;
}
    
 
</style>