Commit a9bca9cc authored by IvyXia123's avatar IvyXia123

时间推送修改

parent 623f381f
......@@ -661,7 +661,8 @@ export default {
this.$router.push({
name: "map",
query: {
course_type: res.start_periods_course_type
course_type: res.start_periods_course_type,
periods_id: res.start_periods_id
}
});
}
......
......@@ -21,7 +21,7 @@
</template>
<script>
import { postNotifySettingApi } from "../../service/api";
import { postNotifySettingApi, getNotifyApi } from "../../service/api";
import { DatetimePicker, Popup, Toast } from 'vant';
import tishiTimer from '../../assets/evaluate/tishi_timer.png'
import youjiantou from '../../assets/evaluate/youjiantou.png'
......@@ -75,6 +75,12 @@
this.$router.go(-1);
})
}
},
mounted() {
getNotifyApi(this.$route.query.periods_id).then(res => {
if(res.time)
this.currentTime = res.time.split(':')[0] + ':' + res.time.split(':')[1]
})
}
}
</script>
......
......@@ -98,7 +98,6 @@
sharePage
},
mounted() {
console.log(this.lesson, 9876546);
this.initPage();
},
/**
......
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