diff --git a/assets/img/home/home7.png b/assets/img/home/home7.png new file mode 100644 index 0000000..71d16c1 Binary files /dev/null and b/assets/img/home/home7.png differ diff --git a/pages/base/home.vue b/pages/base/home.vue index 434904d..fe8a14e 100644 --- a/pages/base/home.vue +++ b/pages/base/home.vue @@ -314,7 +314,7 @@ {{$t("homeNewText.a20")}} {{$t("homeNewText.a21")}} - + diff --git a/pages/exchange/contract-history.vue b/pages/exchange/contract-history.vue index 030e16c..c8f3014 100644 --- a/pages/exchange/contract-history.vue +++ b/pages/exchange/contract-history.vue @@ -47,7 +47,7 @@
{{$t('contract.c7')}}
-
{{item.profit*1||'--'}}
+
{{item.profit*1||'--'}}
{{$t('contract.b3')}}
@@ -360,7 +360,15 @@ export default { myCanvas.width=0 myCanvas.height=0 }, - + profitColor(item){ + if (item&&item.profit&&item.profit.startsWith('-')) { + return 'red'; + }else if(item.profit==null){ + return 'white'; + }else{ + return 'green'; + } + } }, mounted() { // this.generalizeInfo() @@ -404,4 +412,13 @@ export default { /deep/ .share.vant-popup-index{ z-index: 100; } + .red{ + color: red; + } + .green{ + color: green; + } + .white{ + color: white; + } diff --git a/pages/reg/index.vue b/pages/reg/index.vue index a148ed4..909ce06 100644 --- a/pages/reg/index.vue +++ b/pages/reg/index.vue @@ -210,10 +210,10 @@ export default { } return; } - if (!this.form.invite_code) { - this.$toast(this.$t('reg.c7')); - return; - } + // if (!this.form.invite_code) { + // this.$toast(this.$t('reg.c7')); + // return; + // } this.form.type=this.form.type this.form.country_code = this.country_code || 86;