Commit a9bca9cc authored by IvyXia123's avatar IvyXia123

时间推送修改

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