Browse Source

修改币币右侧数据问题

master
liaoxinyu 3 months ago
parent
commit
2d8d289462
  1. 4
      layout/vDropdwon.vue
  2. 3
      pages/exchange/sell-and-buy.vue

4
layout/vDropdwon.vue

@ -58,7 +58,7 @@ export default {
leverShow:{ leverShow:{
deep: true, deep: true,
handler:function(newVal,oldVal) { handler:function(newVal,oldVal) {
console.log(newVal, '下拉组件leverShow更新'); // console.log(newVal, 'leverShow');
this.$nextTick(() => { this.$nextTick(() => {
this.text=this.list[newVal].label; this.text=this.list[newVal].label;
}) })
@ -67,7 +67,7 @@ export default {
list:{ list:{
deep: true, deep: true,
handler:function(newVal,oldVal) { handler:function(newVal,oldVal) {
console.log(newVal, '下拉组件list更新'); // console.log(newVal, 'list');
if(this.contract==1&&this.list){ if(this.contract==1&&this.list){
this.text=this.list[1].label this.text=this.list[1].label
}else if(this.contract==0&&this.list){ }else if(this.contract==0&&this.list){

3
pages/exchange/sell-and-buy.vue

@ -91,7 +91,8 @@ export default {
return this.sellList.splice(this.sellList.length-this.max,this.max) return this.sellList.splice(this.sellList.length-this.max,this.max)
} }
if(this.max&&this.contract==0){ if(this.max&&this.contract==0){
return this.sellList.splice(0,this.max) // return this.sellList.splice(0,this.max)
return this.sellList.splice(this.sellList.length-this.max,this.max)
} }
return this.sellList return this.sellList
} }

Loading…
Cancel
Save