Browse Source

修改首页图片 合约中的历史记录改变颜色 注册的推荐人可填可不填

master
liaoxinyu 2 years ago
parent
commit
0b4fb7bf1c
  1. BIN
      assets/img/home/home7.png
  2. 2
      pages/base/home.vue
  3. 21
      pages/exchange/contract-history.vue
  4. 8
      pages/reg/index.vue

BIN
assets/img/home/home7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

2
pages/base/home.vue

@ -314,7 +314,7 @@
<view class="currency" style="text-align: center;font-size: 60rpx;">{{$t("homeNewText.a20")}}</view>
<view class="currency" style="text-align: center;font-size: 26rpx;margin-top: 10px;">{{$t("homeNewText.a21")}}</view>
<view style="display: flex;width: 100%;justify-content: center;margin-top: 40px;">
<image src="@/assets/img/home/home4.png" mode="aspectFit" style="width: 670rpx;height: 400rpx;"></image>
<image src="@/assets/img/home/home7.png" mode="aspectFit" style="width: 670rpx;height: 400rpx;"></image>
</view>
<a href="https://app.btcoinmt.com/download/BTCoinmt.html" style="display: block;width: 100%;text-decoration: none;">
<view class="store_view">

21
pages/exchange/contract-history.vue

@ -47,7 +47,7 @@
</div>
<div class="row d-flex m-y-mini justify-between">
<div class="label fn-sm">{{$t('contract.c7')}}</div>
<div class="color-light">{{item.profit*1||'--'}}</div>
<div :class="profitColor(item)" >{{item.profit*1||'--'}}</div>
</div>
<div class="row d-flex m-y-mini justify-between">
<div class="label fn-sm">{{$t('contract.b3')}}</div>
@ -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;
}
</style>

8
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;

Loading…
Cancel
Save