Commit 3cb5a641 authored by youjie's avatar youjie

no message

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