Commit 7d74ccd6 by hank

更改设备绑定页面

parent 7fb1629e
...@@ -199,22 +199,25 @@ export default { ...@@ -199,22 +199,25 @@ export default {
}, },
goDevices() { goDevices() {
let _this = this; let _this = this;
window.wx.miniProgram.navigateTo({
window.wx.miniProgram.getEnv(function(res) { url: `/pages/home/film/schedule_add/components/device/index?cId=${_this.templateData.calendarId}&fId=${_this.templateData.filmId}`
if (res.miniProgram) {
window.wx.miniProgram.navigateTo({
url: `pages/home/film/schedule_add/components/device/index?calendarId=${_this.templateData.calendarId}`
});
} else {
_this.$router.push({
path: "/tempaltes/filmdevice",
query: {
filmId: this.$route.query.filmId,
calendarId: this.templateData.calendarId
}
});
}
}); });
// window.wx.miniProgram.getEnv(function(res) {
// console.log(res.miniprogram, "miniProgram");
// if (res.miniProgram) {
// window.wx.miniProgram.navigateTo({
// url: `pages/home/film/schedule_add/components/device/index?calendarId=${_this.templateData.calendarId}`
// });
// } else {
// _this.$router.push({
// path: "/tempaltes/filmdevice",
// query: {
// filmId: _this.$route.query.filmId,
// calendarId: _this.templateData.calendarId
// }
// });
// }
// });
}, },
goEdit() { goEdit() {
this.$router.push({ this.$router.push({
......
...@@ -235,17 +235,17 @@ export default { ...@@ -235,17 +235,17 @@ export default {
this.$router.back(); this.$router.back();
}); });
} }
bindDeviceToFilm(this.deviceChecked, this.$route.query.filmId).then( // bindDeviceToFilm(this.deviceChecked, this.$route.query.filmId).then(
() => { // () => {
this.$toast.success("绑定成功"); // this.$toast.success("绑定成功");
this.show = false; // this.show = false;
this.page = 0; // this.page = 0;
this.list = []; // this.list = [];
this.finished = false; // this.finished = false;
this.deviceChecked = []; // this.deviceChecked = [];
this.isCheck = []; // this.isCheck = [];
} // }
); // );
} else { } else {
this.$toast.success("请选择设备"); this.$toast.success("请选择设备");
this.show = false; this.show = false;
......
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 sign in to comment