Browse Source

修改拖动条

master
liaoxinyu 2 years ago
parent
commit
dfae44c31f
  1. 19
      pages/exchange/open-position.vue

19
pages/exchange/open-position.vue

@ -212,11 +212,10 @@
/> -->
</view>
<!-- :value="activeStep"
@input="sliderChange" -->
@input="sliderChange" :step="25" -->
<el-slider
v-model="activeStep"
@change="sliderChange"
:step="25"
:value="activeStep"
@input="sliderChange"
show-stops
:marks="marks"
:show-tooltip="false"
@ -1013,7 +1012,7 @@ export default {
75: '75%',
100: '100%',
},
activeStep: 0,
// activeStep: 0,
showsStopLoss:false
};
},
@ -1060,11 +1059,11 @@ export default {
isLogin() {
return Boolean(uni.getStorageSync("token"));
},
// activeStep() {
// if (!this.form.amount || !this.maxNum) return 0;
// let num = (this.form.amount / this.maxNum) * 100;
// return num;
// },
activeStep() {
if (!this.form.amount || !this.maxNum) return 0;
let num = (this.form.amount / this.maxNum) * 100;
return num;
},
android() {
// #ifdef APP-PLUS
return plus.os.name

Loading…
Cancel
Save