sys 3 rokov pred
rodič
commit
bc3a346398

+ 3 - 1
locale/en.json

@@ -18,5 +18,7 @@
   "index.index.invest.mix": "No less than TRX5",
   "index.index.invest.no_usdt": "Insufficient USDT",
   "index.index.invest.send_no": "fail",
-  "index.index.invest.send_ok": "succeed"
+  "index.index.invest.send_ok": "succeed",
+  "index.error.quit": "log out",
+  "index.error.errorMsg": "Error!"
 }

+ 3 - 1
locale/zh-Hans.json

@@ -18,5 +18,7 @@
 	"index.index.invest.mix": "不低于TRX5",
 	"index.index.invest.no_usdt": "USDT数量不足",
 	"index.index.invest.send_no": "失败",
-	"index.index.invest.send_ok": "成功"
+	"index.index.invest.send_ok": "成功",
+	"index.error.quit": "退出",
+	"index.error.errorMsg": "出错啦!"
 }

+ 0 - 115
pages/contract/add.vue

@@ -1,115 +0,0 @@
-<template>
-  <view class="add-box">
-    <en-nav title="投资"></en-nav>
-    <en-input type="number" v-model="investData.invest_money" :disabled="true" label="投资金额"></en-input>
-    <view class="box-but">
-      <button @click="setInvest">投资</button>
-    </view>
-  </view>
-</template>
-
-<script>
-import EnNav from "@/components/en-utils/en-nav/en-nav";
-import EnInput from "@/components/en-from/en-input/en-input";
-import {getInvestData, setInvest} from "@/api/contract";
-import tools from "@/common/js/tools";
-import bitkeepTron from "@/common/wallet/bitkeep-wallet/bitkeep-tron";
-
-export default {
-  name: "add",
-  components: {EnInput, EnNav},
-  props: {},
-  data() {
-    return {
-      investData: {
-        id: 1,
-        invest_money: '',
-        sysAddress: "",
-        sendNum: "",
-      },
-      isAjax: false
-    }
-  },
-  watch: {},
-  mounted() {
-    this.getInvestData()
-  },
-  methods: {
-
-    getInvestData() {
-      getInvestData().then((res) => {
-        if (res.code === 1) {
-          this.investData = res.data
-        } else {
-          tools.leftClick()
-        }
-      }).catch((e) => {
-        tools.leftClick()
-      })
-    },
-    async setInvest() {
-      if (this.investData.sendNum > 0) {
-        tools.error('有正在执行的交易')
-        return;
-      }
-      let trxNum = await bitkeepTron.getBalance('');
-      if (trxNum < 10) {
-        tools.error('不低于TRX10')
-        return
-      }
-      let usdtNum = await bitkeepTron.getTokenBalance('', 0);
-      if (usdtNum < this.investData.invest_money && !tools.isDevelopment()) {
-        tools.error('USDT数量不足')
-        return
-      }
-      if (this.isAjax) {
-        return
-      }
-      this.isAjax = true
-      let transactionData = bitkeepTron.getContractData(this.investData.sysAddress, this.investData.invest_money,0)
-      console.log('transactionData:')
-      console.log(transactionData)
-      bitkeepTron.sendTransaction(transactionData).then((res) => {
-        if (res) {
-          setInvest({'txid':res,'id':this.investData.id}).then((res)=>{
-            if(res.code===1){
-              tools.success(res.msg)
-              setTimeout(()=>{
-                tools.leftClick()
-              },1500)
-            }else {
-              this.isAjax = false
-              tools.error(res.msg)
-            }
-          })
-        } else {
-          this.isAjax = false
-          tools.error('交易失败')
-        }
-      }).catch((e) => {
-        this.isAjax = false
-        tools.error('交易失败')
-      })
-    }
-  }
-}
-</script>
-
-<style scoped lang="scss">
-.add-box {
-  padding: 32rpx;
-  background: #fff;
-
-  .box-but {
-    padding-top: 32rpx;
-
-    button {
-      background: #3169FA;
-      color: #fff;
-      font-size: 32rpx;
-    }
-  }
-}
-
-
-</style>

+ 0 - 198
pages/icon/index.vue

@@ -1,198 +0,0 @@
-<template>
-  <view class="icon-box">
-    <Nav title="资产" :left-show="false" bgckgroundBox="#146AF0" titleColor="#fff"></Nav>
-    <view class="mui-content">
-      <view class="ln-assets-blue">
-        <view class="ln-assets-top">总账户资产折合(USDT)</view>
-        <view class="ln-assets-hd">
-          <view class="ln-assets-num">{{totalUsdt.toFixed(6)}}</view>
-          <view class="ln-assets-price">&asymp;{{totalPrice.toFixed(2)}} CNY</view>
-        </view>
-      </view>
-      <view class="order-list">
-        <view class="order-item" v-for="coin in list">
-          <view @click="" class="order-list-hd">
-            <view class="order-list-nm text-blue">{{coin.coin_name}}</view>
-            <view class="order-list-state"><i class="iconfont mui-icon-arrowright">&#xe62b;</i></view>
-          </view>
-          <view class="order-list-con ">
-            <view class="order-list-iteam">
-              <view class="order-list-tit">可用({{coin.coin_name}})</view>
-              <view class="order-list-num">{{coin.num.toFixed(6)}}</view>
-            </view>
-            <view class="order-list-iteam">
-              <view class="order-list-tit">冻结({{coin.coin_name}})</view>
-              <view class="order-list-num">{{coin.lock_num.toFixed(6)}}</view>
-            </view>
-            <view class="order-list-iteam order-list-iteamr">
-              <view class="order-list-tit">折合(CNY)</view>
-              <view class="order-list-num">&asymp;{{coin.price.toFixed(2)}}</view>
-            </view>
-          </view>
-        </view>
-
-      </view>
-
-
-    </view>
-  </view>
-</template>
-
-<script>
-import {getIconList} from "@/api/member";
-
-export default {
-  name: "index",
-  components: {},
-  props: {},
-  data() {
-    return {
-      totalPrice:0,
-      totalUsdt:0,
-      list:[],
-    }
-  },
-  watch: {},
-  mounted() {
-    this.getIconList()
-  },
-  methods: {
-    getIconList(){
-      getIconList().then((res)=>{
-        if(res.code===1){
-          this.totalPrice=res.data.totalPrice
-          this.totalUsdt=res.data.totalUsdt
-          this.list=res.data.list
-        }
-      })
-    }
-  }
-}
-</script>
-
-<style scoped lang="scss">
-@import url("/components/static/css/en-common.css") ;
-.icon-box{
-  background: #131E30;
-  min-height: calc(100vh - 50px);
-  .mui-icon-arrowright{
-    color: #7388a7;
-  }
-  .mui-content{
-    color: #7388a7;
-    .ln-assets-blue{
-      position: relative;
-      width: 100%;
-      padding:0 10px 10px 10px;
-      color: rgba(255,255,255,0.6);
-      background: #146AF0;
-      .ln-assets-top{
-        width: 100%;
-        height: 16px;
-        line-height: 16px;
-        font-size: 12px;
-        overflow: hidden;
-        text-overflow: ellipsis;
-        white-space: nowrap;
-        color: rgba(255,255,255,0.6);
-      }
-      .ln-assets-hd{
-        width: 100%;
-        margin: 15px auto;
-        .ln-assets-num {
-          width: 100%;
-          line-height: 28px;
-          color: #FFFFFF;
-          font-size: 24px;
-        }
-        .ln-assets-price {
-          width: 100%;
-          line-height: 20px;
-          font-size: 12px;
-          color: rgba(255,255,255,0.6);
-        }
-      }
-    }
-    .order-list{
-      width: calc(100% - 20px);
-      list-style-type: none;
-      margin: 0;
-      -webkit-padding-start: 0;
-      padding: 0 10px;
-      .order-item{
-        width: 100%;
-        padding: 6px 0;
-        border-bottom: 1px solid #213141;
-        position: relative;
-        margin: 0;
-        -webkit-padding-start: 0;
-        .order-list-hd {
-          width: 100%;
-          height: 28px;
-          line-height: 28px;
-          padding: 6px 0;
-          .order-list-nm.text-blue {
-            font-size: 16px;
-            color: #146AF0;
-          }
-          .order-list-nm {
-            max-width: 70%;
-            height: 28px;
-            font-size: 16px;
-            font-weight: 800;
-            color: #FFFFFF;
-            float: left;
-            overflow: hidden;
-            text-overflow: ellipsis;
-            white-space: nowrap;
-          }
-          .order-list-state, .order-list-statewhite {
-            width: 28%;
-            height: 28px;
-            line-height: 28px;
-            text-align: right;
-            float: right;
-          }
-        }
-        .order-list-con {
-          position: relative;
-          width: 100%;
-          padding: 6px 0;
-          overflow: auto;
-          .order-list-iteam {
-            width: 35%;
-            margin-right: 2%;
-            float: left;
-            .order-list-tit {
-              width: 100%;
-              height: 20px;
-              line-height: 20px;
-              color: #495B73;
-              font-size: 12px;
-              overflow: hidden;
-              text-overflow: ellipsis;
-              white-space: nowrap;
-            }
-            .order-list-num {
-              width: 100%;
-              height: 24px;
-              line-height: 24px;
-              font-size: 13px;
-              color: #FFFFFF;
-              overflow: hidden;
-              text-overflow: ellipsis;
-              white-space: nowrap;
-            }
-          }
-          .order-list-iteamr {
-            width: 26%;
-            margin-right: 0;
-            text-align: right;
-          }
-        }
-      }
-    }
-  }
-}
-
-</style>

+ 7 - 7
pages/index/error.vue

@@ -7,10 +7,10 @@
         </text>
       </view>
       <view class="error-text">
-        {{errorMsg}}
+        {{$t('index.error.errorMsg')}}~~
       </view>
       <view class="error-but">
-        <button @click="closeSys">退出程序</button>
+        <button @click="closeSys">{{$t('index.error.quit')}}</button>
       </view>
     </view>
 
@@ -24,7 +24,7 @@ export default {
   components: {},
   data() {
     return {
-      errorMsg:'出错啦!~~'
+      errorMsg:'出错啦'
     }
   },
   onLoad(query) {
@@ -51,21 +51,21 @@ export default {
 .error-box{
   width: 100vw;
   height: 100vh;
-  background: #131E30;
+  background: #fff;
   .error-content{
     padding-top: 300rpx;
     .error-icon{
       text-align: center;
       text{
         font-size: 240rpx;
-        color: #7388a7;
+        color: #9197a5;
       }
     }
     .error-text{
       font-size: 32rpx;
       text-align: center;
       font-weight: 600;
-      color: #7388a7;
+      color: #9197a5;
     }
     .error-but{
       button{
@@ -74,7 +74,7 @@ export default {
         line-height: 82rpx;
         border: 0;
         border-radius: 6rpx;
-        background: #3e526b;
+        background: #9197a5;
         color: #FFFFFF;
         letter-spacing: 4rpx;
         margin-top: 40rpx;

+ 0 - 205
pages/msg/index.vue

@@ -1,205 +0,0 @@
-<template>
-  <view class="msg-box">
-    <Nav title="留言反馈" :left-show="false"  titleColor="#fff"></Nav>
-    <view class="mui-content">
-      <view class="ln-public">
-        留言内容
-      </view>
-      <view class="msg-text" contenteditable="true" placeholder="在此输入留言内容,限200字。"></view>
-      <view class="msg-btn" @click="sendMsg">提交</view>
-      <view class="msg-list">
-        <view class="msg-item" v-for="(msgItem,index) in list">
-          <view class="msg-list-con">
-            <view class="msg-list-tit">
-              <view class="msg-list-name">
-               {{msgItem.username}}
-              </view>
-              <view class="msg-list-time">{{msgItem.created_at}}</view>
-            </view>
-            <view class="msg-list-intro">{{msgItem.content}}</view>
-          </view>
-          <view class="msg-list-con" v-if="msgItem.reply!==''">
-            <view class="msg-list-tit">
-              <view class="msg-list-name">
-                回复
-              </view>
-              <view class="msg-list-time">{{msgItem.updated_at}}</view>
-            </view>
-            <view class="msg-list-intro">{{msgItem.reply}}</view>
-          </view>
-        </view>
-      </view>
-      <en-blank v-if="list.length<=0"></en-blank>
-    </view>
-  </view>
-</template>
-
-<script>
-import $ from 'jquery/src/jquery'
-import {addMsg, getMsgList} from "@/api/news";
-import tools from "@/common/js/tools";
-import EnBlank from "@/components/en-utils/en-blank/en-blank";
-export default {
-  name: "index",
-  components: {EnBlank},
-  props: {},
-  data() {
-    return {
-      isAjax:false,
-      page:1,
-      list:[],
-      total:null
-    }
-  },
-  watch: {},
-  mounted() {
-    this.startList()
-  },
-  onReachBottom() {
-    this.getMsgList()
-  },
-  methods: {
-    startList(){
-      this.page=1;
-      this.list=[];
-      this.total=null;
-      this.getMsgList()
-    },
-    getMsgList(){
-      if(this.isAjax){
-        return;
-      }
-      if(this.total!==null && this.total>=this.list.length){
-        return;
-      }
-      getMsgList({'page':this.page}).then((res)=>{
-        if(res.code===1){
-          this.total=res.data.total
-          this.list.push(...res.data.items)
-          ++this.page
-        }
-      })
-    },
-    sendMsg(){
-      let msg = $('.msg-text').text();
-      if(msg===''){
-        tools.error('请输入留言内容')
-        return;
-      }
-      if(this.isAjax){
-        return;
-      }
-      this.isAjax=true
-      addMsg({'content':msg}).then((res)=>{
-        this.isAjax=false
-        if(res.code===1){
-            this.list.unshift(res.data)
-          $('.msg-text').text('');
-            tools.success(res.msg)
-        }else {
-          tools.error(res.msg)
-        }
-      }).catch((e)=>{
-        this.isAjax=false
-      })
-    }
-  }
-}
-</script>
-
-<style scoped lang="scss">
-.msg-box{
-  background: #131E30;
-  min-height: calc(100vh - 50px);
-  .mui-content{
-    padding:0 10px;
-    .ln-public {
-      width: 100%;
-      padding: 0 10px;
-      font-size: 20px;
-      line-height: 28px;
-      font-weight: 600;
-      margin: 20px auto;
-      color: #D9E4F6;
-      word-break: break-all;
-    }
-    .msg-text {
-      width: calc(100% - 20px);
-      min-height: 98px;
-      line-height: 24px;
-      color: #D9E4F6;
-      padding: 10px 0;
-      background: #061623;
-      border: 1px solid rgba(39,60,83,0.5);
-      margin: 10px;
-    }
-    .msg-btn {
-      display: block;
-      width: 82%;
-      height: 42px;
-      line-height: 42px;
-      border: 0;
-      border-radius: 3px;
-      text-align: center;
-      padding: 0;
-      font-size: 16px;
-      background: #007AFF;
-      color: #FFFFFF;
-      margin: 15px auto;
-      margin-top: 60px;
-      overflow: hidden;
-      text-overflow: ellipsis;
-      white-space: nowrap;
-    }
-    .msg-list {
-      width: calc(100% - 20px);
-      line-height: 20px;
-      padding: 0 10px;
-      border-top: 1px solid rgba(39,60,83,0.5);
-      list-style-type: none;
-      margin: 0;
-      -webkit-padding-start: 0;
-      .msg-item{
-        padding: 2px 0;
-        border-bottom: 1px solid rgba(39,60,83,0.5);
-        color: #D9E4F6;
-        .msg-list-con {
-          width: 100%;
-          overflow: auto;
-          margin: 15px 0;
-          .msg-list-tit {
-            width: 100%;
-            height: 30px;
-            line-height: 30px;
-            .msg-list-name {
-              max-width: calc(100% - 120px);
-              height: 30px;
-              float: left;
-              overflow: hidden;
-              text-overflow: ellipsis;
-              white-space: nowrap;
-              color: #D9E4F6;
-            }
-            .msg-list-time {
-              max-width: 130px;
-              height: 30px;
-              font-size: 12px;
-              color: #495B73;
-              text-align: right;
-              float: right;
-              overflow: hidden;
-            }
-          }
-          .msg-list-intro {
-            width: 100%;
-            line-height: 20px;
-            color: #495B73;
-            text-align: justify;
-          }
-        }
-      }
-    }
-
-  }
-}
-</style>

+ 0 - 163
pages/my/index.vue

@@ -1,163 +0,0 @@
-<template>
-  <view class="my-box">
-    <Nav title="我的" :left-show="false"  titleColor="#D9E4F6"></Nav>
-    <view class="content">
-      <view class="user-box" >
-        <image class="user-box-left" src="/static/img/icon/logo.png" mode=""></image>
-        <view class="user-box-right">
-          <view class="user-box-right-one">
-            张啥的境况
-          </view>
-          <view class="user-box-right-two">
-           一级会员
-          </view>
-        </view>
-      </view>
-      <view class="more-function">
-        更多功能
-      </view>
-      <view class="function-box">
-        <view class="function-box-list" >
-          <view class="function-box-list-left">
-            <view class="function-box-list-left-two">
-              操作中心
-            </view>
-          </view>
-          <image class="function-box-list-right" src="@/static/img/my/jrimg.png" mode=""></image>
-        </view>
-        <view class="function-box-list" >
-          <view class="function-box-list-left">
-            <view class="function-box-list-left-two">
-              操作中心
-            </view>
-          </view>
-          <image class="function-box-list-right" src="@/static/img/my/jrimg.png" mode=""></image>
-        </view>
-        <view class="function-box-list" >
-          <view class="function-box-list-left">
-            <view class="function-box-list-left-two">
-              操作中心
-            </view>
-          </view>
-          <image class="function-box-list-right" src="@/static/img/my/jrimg.png" mode=""></image>
-        </view>
-      </view>
-    </view>
-  </view>
-</template>
-
-<script>
-export default {
-  name: "index",
-  components: {},
-  props: {},
-  data() {
-    return {}
-  },
-  watch: {},
-  mounted() {
-
-  },
-  methods: {}
-}
-</script>
-
-<style scoped lang="scss">
-.my-box{
-  background: #131E30;
-  min-height: calc(100vh - 50px);
-  .content {
-    width: 100%;
-    height: auto;
-    padding: 60rpx 32rpx 0;
-    box-sizing: border-box;
-
-    .user-box {
-      display: flex;
-      align-items: center;
-      margin: 0 0 34rpx 0;
-
-      .user-box-left {
-        width: 124rpx;
-        height: 124rpx;
-        border-radius: 50%;
-        margin: 0 20rpx 0 0;
-      }
-
-      .user-box-right {
-        .user-box-right-one {
-          max-width: 320rpx;
-          font-size: 40rpx;
-          color:  #D9E4F6;
-          font-weight: 600;
-          white-space: nowrap;
-          text-overflow: ellipsis;
-          overflow: hidden;
-          word-break: break-all;
-        }
-
-        .user-box-right-two {
-          font-size: 20rpx;
-          padding: 2rpx 8rpx;
-          background: #3169FA;
-          border-radius: 3px;
-          display: inline;
-          color: #FFFFFF;
-        }
-      }
-    }
-
-
-    .more-function {
-      padding: 0 0 0 32rpx;
-      font-size: 32rpx;
-      font-weight: 600;
-      color: #D9E4F6;
-      margin: 0 0 26rpx 0;
-    }
-
-    .function-box {
-      width: 100%;
-      height: auto;
-      background: #061623;
-      border-radius:16rpx;
-      padding: 52rpx 26rpx 0;
-      box-sizing: border-box;
-
-      .function-box-list {
-        display: flex;
-        align-items: center;
-        justify-content: space-between;
-        padding: 0 0 56rpx 0;
-        border-bottom: 1rpx solid #D9E4F6;
-        margin: 0 0 54rpx 0;
-
-        .function-box-list-left {
-          display: flex;
-          align-items: center;
-
-          .function-box-list-left-one {
-            width: 40rpx;
-            height: 40rpx;
-            margin: 0 12rpx 0 0;
-          }
-
-          .function-box-list-left-two {
-            font-size: 32rpx;
-            color: #D9E4F6;
-          }
-        }
-
-        .function-box-list-right {
-          width: 44rpx;
-          height: 44rpx;
-          display: block;
-        }
-      }
-      .function-box-list:last-child{
-        border:none;
-      }
-    }
-  }
-}
-</style>