Commit d31e3c0d authored by youjie's avatar youjie

no message

parent 3a7c3843
...@@ -69,9 +69,6 @@ ...@@ -69,9 +69,6 @@
// console.log(e);//// e中包含了原有的e信息, 并添加了custom对象 // console.log(e);//// e中包含了原有的e信息, 并添加了custom对象
data.minValue = e.custom.minValue; data.minValue = e.custom.minValue;
data.maxValue = e.custom.maxValue; data.maxValue = e.custom.maxValue;
data.ruleObj.StartNum = e.custom.minValue;
data.ruleObj.EndNum = e.custom.maxValue;
}, },
down(e){ down(e){
data.minValue = e.custom.minValue; data.minValue = e.custom.minValue;
...@@ -87,6 +84,9 @@ ...@@ -87,6 +84,9 @@
data.ruleObj.StartNum = item.StartNum; data.ruleObj.StartNum = item.StartNum;
data.ruleObj.EndNum = item.EndNum; data.ruleObj.EndNum = item.EndNum;
data.ruleObj.Info = item.Info; data.ruleObj.Info = item.Info;
data.minValue = item.StartNum;
data.maxValue = item.EndNum;
} else { } else {
data.ruleObj.DetailId = 0; data.ruleObj.DetailId = 0;
data.ruleObj.StartNum = 0; data.ruleObj.StartNum = 0;
...@@ -102,8 +102,8 @@ ...@@ -102,8 +102,8 @@
console.log(value) console.log(value)
}, },
save() { save() {
data.ruleObj.StartNum = data.valueNum[0]; data.ruleObj.StartNum = data.minValue;
data.ruleObj.EndNum = data.valueNum[1]; data.ruleObj.EndNum = data.maxValue;
ctx.emit("change", data.ruleObj); ctx.emit("change", data.ruleObj);
data.show = false data.show = false
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view clipchildren= false> <view clipchildren= false>
<text class="loading" :style="{opacity: lineLeft===0 ? '1' : '0'}">loading...</text> <text class="loading" :style="{opacity: lineLeft===0 ? '1' : '0'}">loading...</text>
<view class="fj-slider-box" :style="{opacity: lineLeft!==0 ? '1' : '0'}" clipchildren= false> <view class="fj-slider-box" :style="{opacity: lineLeft!==0 ? '1' : '0'}" clipchildren= false>
<view class="tip" :style="{left:`${tipLeft}px`,opacity: tipShow ? '1' : '1'}"> <view class="tip" :style="{left:`${tipLeft}px`,opacity: tipShow ? '1' : '0'}">
{{curValue}}% {{curValue}}%
<view class="h"></view> <view class="h"></view>
</view> </view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment