{{$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;