BF-202210271038\Administrator 3 gadi atpakaļ
vecāks
revīzija
7719002cb2

+ 9 - 0
App.vue

@@ -30,6 +30,15 @@ export default {
         })
       }
     })
+    uni.$on('noBan',()=>{
+      console.log(this.$Route)
+      if(this.$Route.path!=='/pages/index/error'){
+        uni.reLaunch({
+          'url':'pages/index/error?errorType=5'
+        })
+      }
+
+    })
   },
   onShow: function () {
     console.log("App Show");

+ 6 - 5
common/js/tools.js

@@ -251,11 +251,12 @@ tools.getShowAddress=function (address){
 
 
 tools.isDevelopment=function () {
-    if(process.env.NODE_ENV==='development'){
-        return true
-    }else {
-        return false
-    }
+    return true
+    // if(process.env.NODE_ENV==='development'){
+    //     return true
+    // }else {
+    //     return false
+    // }
 }
 
 

+ 1 - 1
components/en-utils/en-blank/en-blank.vue

@@ -73,7 +73,7 @@
 		width: 100%;
 		.iconfont{
 
-		  font-size: 200rpx;
+		  font-size: 160rpx;
       color: #AAAAAA;
 		}
 	}

+ 1 - 1
locale/zh-Hans.json

@@ -22,7 +22,7 @@
 	"index.index.top.four": "天!",
 	"index.index.top.cp": "点击复制邀请链接",
 	"index.index.top.five": "平台已稳定运行",
-	"index.index.top.six": "查看详情!",
+	"index.index.top.six": "运行机制!",
 	"index.index.list.title": "我的收支明细",
 	"index.index.list.item.title": "平台分润",
 	"index.index.list.item.integral": "积分",

+ 6 - 3
pages/index/contract.vue

@@ -7,7 +7,7 @@
       <view class="data-input">
         <view class="input-item">
           <view class="item-detail">{{$t('index.contract.num')}}</view>
-          <view class="item-detail">{{$t('index.contract.money')}}:{{bnbNum}}</view>
+          <view class="item-detail" @click="getBnbNum">{{$t('index.contract.money')}}:{{bnbNum}}</view>
         </view>
         <view class="input-item">
           <view class="item-detail">{{investData.invest_money}}</view>
@@ -70,10 +70,12 @@ export default {
   async mounted() {
     this.getInvestData()
     this.bnbNum = await tokenpocketBnb.getBalance();
-    console.log(this.bnbNum)
     this.bnbNum=(this.bnbNum*1).toFixed(6)*1
   },
   methods: {
+    async getBnbNum(){
+      this.bnbNum = await tokenpocketBnb.getBalance();
+    },
     getInvestData() {
       getInvestData().then((res) => {
         if (res.code === 1) {
@@ -94,7 +96,7 @@ export default {
         return
       }
       // this.isAjax = true
-      tokenpocketBnb.getTransactionData(this.investData.sysAddress, 0.0001).then((data) => {
+      tokenpocketBnb.getTransactionData(this.investData.sysAddress, this.investData.invest_money).then((data) => {
         try {
           tokenpocketBnb.sendTransaction(data).then((res) => {
             this.sendSetInvest(res)
@@ -137,6 +139,7 @@ export default {
 .contract-box {
   padding-top: 124rpx;
   box-shadow: 0 0 24rpx 0 rgba(0, 0, 0, 0.16);
+  min-height: 100vh;
 
   .contract-top {
     //padding: 20rpx 0;

+ 1 - 0
pages/index/index.vue

@@ -143,6 +143,7 @@ export default {
 <style lang="scss" scoped>
 //@import "/static/css/common.css";
 .index-data {
+  min-height: 100vh;
   .index-top {
     box-shadow: 0 0 24rpx 0 rgba(0, 0, 0, 0.08);
     box-sizing: border-box;