This commit is contained in:
zyy 2019-09-03 15:22:58 +08:00
commit 10ab09451b
3 changed files with 21 additions and 24 deletions

View File

@ -3,8 +3,8 @@ export function getBaseUrl() {
let BASE_API;
if (process.env.NODE_ENV === 'development') {
// BASE_API = 'https://joylink.club/jlcloud';
// BASE_API = 'https://test.joylink.club/jlcloud';
BASE_API = 'http://192.168.3.5:9000'; // 袁琪
BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
// BASE_API = 'http://192.168.3.4:9000' // 琰培
} else {

View File

@ -470,21 +470,25 @@ export default {
},
//
async selectQuest(row, id) {
const res = await loadScript(row.id, id, this.group);
if (res && res.code == 200) {
this.questId = parseInt(row.id);
if (res.data && res.data.mapLocation) {
const mapLocation={'offsetX': res.data.mapLocation.x, 'offsetY': res.data.mapLocation.y, 'scaleRate': res.data.mapLocation.scale};
Vue.prototype.$jlmap.setOptions(mapLocation);
try {
const res = await loadScript(row.id, id, this.group);
if (res && res.code == 200) {
this.questId = parseInt(row.id);
if (res.data && res.data.mapLocation) {
const mapLocation={'offsetX': res.data.mapLocation.x, 'offsetY': res.data.mapLocation.y, 'scaleRate': res.data.mapLocation.scale};
Vue.prototype.$jlmap.setOptions(mapLocation);
}
}
}
if (this.$refs.menuDemon) {
this.$refs.menuDemon.initLoadPage();
}
if (this.$refs.menuDemon) {
this.$refs.menuDemon.initLoadPage();
}
if (this.$refs.menuScript) {
this.$refs.menuScript.initLoadPage();
if (this.$refs.menuScript) {
this.$refs.menuScript.initLoadPage();
}
} catch (error) {
this.$messageBox(error.message);
}
},
// 退

View File

@ -328,7 +328,6 @@ export default {
}
},
async mounted() {
this.getRoomState();
this.userId = this.$store.state.user.id;
this.getRoomInfo(); // info
this.getUserList(); //
@ -364,15 +363,6 @@ export default {
}
this.$store.dispatch('socket/setJointRoomInfo'); //
},
//
async getRoomState() {
const res = await postRoomDetail(this.$route.query.group);
this.mapId = res.data.mapId;
this.starting = false;
if (res.data.state == '02') {
this.starting = true;
}
},
//
showContextMenu(e, obj, node, vueElem) {
e.preventDefault();
@ -503,6 +493,9 @@ export default {
async getRoomInfo() {
//
const res = await postRoomDetail(this.$route.query.group);
this.starting = res.data.state == '02';
this.mapId = res.data.mapId;
this.roomInfo = {
creatorId: res.data.creatorId,
totalNum: Number(res.data.permissionNum) + Number(res.data.audiencePermissionNum),