Commit 3cb5a641 authored by youjie's avatar youjie

no message

parent fd0b5a98
......@@ -9,9 +9,8 @@
<view class="rulesPopup-RuleSettings">
<text class="RuleSettings-title">规则设置</text>
<view class="RuleSettings-slider">
<van-slider v-model="valueNum" range
bar-height="4rpx" active-color="#ee0a24"
@change="onChange" />
<sRegionSlider :minValue="minValue" :maxValue="maxValue" :step="1"
@up="up" @down="down" @move="move" />
</view>
</view>
</view>
......@@ -26,6 +25,7 @@
</view>
</template>
<script>
import sRegionSlider from '@/components/sregionslider/sregionslider'
import {
ref,
reactive,
......@@ -39,17 +39,18 @@
uploadFile
} from "@/utils/index";
export default {
components: {
sRegionSlider
},
props: {
},
emits: ['change'],
components: {},
setup(props, ctx) {
let {
proxy
} = getCurrentInstance();
let data = reactive({
valueNum: [10, 50],
show: false,
loading: false,
isRange: true,
......@@ -59,9 +60,22 @@
StartNum: 0, //开始值
EndNum: 0, //结束值
Info: "", //评价
}
},
minValue:0,
maxValue:10
});
let methods = {
chage(minValue,maxValue){
data.minValue = minValue;
data.maxValue = maxValue;
},
up(e){
// console.log(e);//// e中包含了原有的e信息, 并添加了custom对象
data.minValue = e.custom.minValue;
data.maxValue = e.custom.maxValue;
},
down(e){ },
move(e){ },
showFun(item) {
if (item) {
data.ruleObj.DetailId = item.DetailId;
......@@ -115,7 +129,7 @@
}
.RuleSettings-slider {
padding: 52rpx 0 66rpx 0;
padding: 0 0 30rpx 0;
}
.rulesPopup-save view {
......
This diff is collapsed.
......@@ -86,11 +86,16 @@
show:false
});
let methods = {
back() {
uni.navigateBack({
delta: 1
})
},
// 关闭规则弹窗
closure(){
refs.getrulesPopup.$vm.closepopup()
},
saveRules() { //保存规则
proxy.$request("/Teacher/SetCourseComment", data.courseRule).then(res => {
if (res) {
......@@ -113,6 +118,7 @@
data.show = true
refs.getrulesPopup.$vm.showFun(item)
},
//删除规则
deleteRules(item, index) {
let self=this;
......@@ -208,6 +214,14 @@
this.show = option.show
this.addRules()
}
if(option.CourseId){
this.show = true
this.addRules()
setTimeout(()=>{
this.show = false
this.closure()
},100)
}
this.getCourseRule();
},
};
......
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