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

Loading…
Cancel
Save