|
|
@ -79,14 +79,14 @@
|
|
|
|
<view class="new box">
|
|
|
|
<view class="new box">
|
|
|
|
<view style="background-color: #fff;width: 100%;">
|
|
|
|
<view style="background-color: #fff;width: 100%;">
|
|
|
|
<!-- 头部 -->
|
|
|
|
<!-- 头部 -->
|
|
|
|
<view class="sortHead">
|
|
|
|
<!-- <view class="sortHead">
|
|
|
|
<image src="../static/images/Yjplan/sort.png"
|
|
|
|
<image src="../static/images/Yjplan/sort.png"
|
|
|
|
style="width: 36rpx;height: 36rpx;margin-right: 22rpx;"></image>
|
|
|
|
style="width: 36rpx;height: 36rpx;margin-right: 22rpx;"></image>
|
|
|
|
<span class="sortTitle">最近一次演练计划</span>
|
|
|
|
<span class="sortTitle">最近一次演练计划</span>
|
|
|
|
</view>
|
|
|
|
</view> -->
|
|
|
|
<!-- 卡片 -->
|
|
|
|
<!-- 卡片 -->
|
|
|
|
<view class="sortCard">
|
|
|
|
<!-- <view class="sortCard"> -->
|
|
|
|
<view>
|
|
|
|
<!-- <view>
|
|
|
|
<view class="unfinishlist">
|
|
|
|
<view class="unfinishlist">
|
|
|
|
<view class="content" style="border-left: 13rpx #FFD777 solid;margin-left: 4rpx; ">
|
|
|
|
<view class="content" style="border-left: 13rpx #FFD777 solid;margin-left: 4rpx; ">
|
|
|
|
<view class="name">{{ backlog.drillName }}</view>
|
|
|
|
<view class="name">{{ backlog.drillName }}</view>
|
|
|
@ -105,7 +105,7 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view> -->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
@ -182,7 +182,7 @@
|
|
|
|
<!-- <update @showF="ShowON" :show="$store.state.updateApp.isTrue" :versionNum="$store.state.updateApp.newVesion"
|
|
|
|
<!-- <update @showF="ShowON" :show="$store.state.updateApp.isTrue" :versionNum="$store.state.updateApp.newVesion"
|
|
|
|
:downloadUrl="$store.state.updateApp.url" :versionContent="$store.state.updateApp.MiaoShu"></update> -->
|
|
|
|
:downloadUrl="$store.state.updateApp.url" :versionContent="$store.state.updateApp.MiaoShu"></update> -->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<Tabbar :value="'首页'"></Tabbar>
|
|
|
|
<!-- <Tabbar :value="'首页'"></Tabbar> -->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
@ -262,39 +262,89 @@
|
|
|
|
this.getConfigKeyData();
|
|
|
|
this.getConfigKeyData();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
goback() {
|
|
|
|
// goback() {
|
|
|
|
|
|
|
|
// const pages = getCurrentPages(); // 获取页面栈
|
|
|
|
// this.$router.go(-3)
|
|
|
|
// console.log(pages); // 打印页面栈
|
|
|
|
// window.history.back()
|
|
|
|
|
|
|
|
// window.JSBridge.exit();
|
|
|
|
// // 如果页面栈大于 1,执行返回操作
|
|
|
|
|
|
|
|
// if (pages.length > 1) {
|
|
|
|
// 获取当前页面栈
|
|
|
|
// uni.navigateBack(); // 返回上一页
|
|
|
|
const pages = getCurrentPages();
|
|
|
|
// console.log("返回上一页");
|
|
|
|
console.log(pages); // 打印页面栈
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// console.log("已经在首页,无法返回");
|
|
|
|
|
|
|
|
|
|
|
|
// 如果页面栈大于 1,执行返回操作
|
|
|
|
// // 如果没有历史记录,可以退出或关闭 WebView
|
|
|
|
|
|
|
|
// if (window.JSBridge && window.JSBridge.exit) {
|
|
|
|
if (pages.length > 1) {
|
|
|
|
// // 如果你有 JSBridge 可以调用它的退出方法
|
|
|
|
// uni.navigateBack(1);
|
|
|
|
|
|
|
|
window.history.back();
|
|
|
|
|
|
|
|
console.log("pages.length",pages.length);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
console.log('已经在首页,无法返回');
|
|
|
|
|
|
|
|
window.history.back();
|
|
|
|
|
|
|
|
console.log('已执行back');
|
|
|
|
|
|
|
|
// this.$router.go(-2)
|
|
|
|
|
|
|
|
// console.log('已执行$router');
|
|
|
|
|
|
|
|
// uni.navigateBack(1);
|
|
|
|
|
|
|
|
// console.log('已执行navigateBack');
|
|
|
|
|
|
|
|
// window.JSBridge.exit();
|
|
|
|
// window.JSBridge.exit();
|
|
|
|
// console.log('已执行exit');
|
|
|
|
// } else if (window.history.length > 1) {
|
|
|
|
|
|
|
|
// // 如果浏览器历史记录大于 1,使用 window.history.back()
|
|
|
|
|
|
|
|
// window.history.back();
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// // 没有历史记录,调用 App 的退出方法或者关闭窗口
|
|
|
|
|
|
|
|
// if (window.exitApp) {
|
|
|
|
|
|
|
|
// window.exitApp(); // 调用 App 的退出接口
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// // 如果没有 exitApp 方法,可以尝试关闭窗口
|
|
|
|
// window.close();
|
|
|
|
// window.close();
|
|
|
|
// console.log('已执行close');
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
goback() {
|
|
|
|
|
|
|
|
window.location.href="/nljzVue/#/"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// // this.$router.go(-3)
|
|
|
|
|
|
|
|
// // window.history.back()
|
|
|
|
|
|
|
|
// // window.JSBridge.exit();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// // 获取当前页面栈
|
|
|
|
|
|
|
|
// const pages = getCurrentPages();
|
|
|
|
|
|
|
|
// console.log(pages); // 打印页面栈
|
|
|
|
|
|
|
|
// uni.closeWebview();
|
|
|
|
|
|
|
|
// window.location.href="http://36.112.48.53:88/nljzVue/#/";
|
|
|
|
|
|
|
|
// window.location.replace("http://36.112.48.53:88/nljzVue/#/");
|
|
|
|
|
|
|
|
// window.location.href="http://36.112.48.53:88/nljzVue/#/"
|
|
|
|
|
|
|
|
// 如果页面栈大于 1,执行返回操作
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
// if (pages.length > 1) {
|
|
|
|
|
|
|
|
// // uni.navigateBack(1);
|
|
|
|
|
|
|
|
// window.history.back();
|
|
|
|
|
|
|
|
// console.log("pages.length",pages.length);
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// console.log('已经在首页,无法返回');
|
|
|
|
|
|
|
|
// window.history.back();
|
|
|
|
|
|
|
|
// console.log('已执行back');
|
|
|
|
|
|
|
|
// // this.$router.go(-2)
|
|
|
|
|
|
|
|
// // console.log('已执行$router');
|
|
|
|
|
|
|
|
// // uni.navigateBack(1);
|
|
|
|
|
|
|
|
// // console.log('已执行navigateBack');
|
|
|
|
|
|
|
|
// // window.JSBridge.exit();
|
|
|
|
|
|
|
|
// // console.log('已执行exit');
|
|
|
|
|
|
|
|
// // window.close();
|
|
|
|
|
|
|
|
// // console.log('已执行close');
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if (window.exitApp) {
|
|
|
|
|
|
|
|
// console.log("1111")
|
|
|
|
|
|
|
|
// window.exitApp(); // 调用 App 的退出接口
|
|
|
|
|
|
|
|
// } else if (window.WebViewBridge) {
|
|
|
|
|
|
|
|
// console.log("2222")
|
|
|
|
|
|
|
|
// window.WebViewBridge.close(); // 调用 App 的 WebView 关闭方法
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// // 如果没有 WebViewBridge 接口,使用历史记录返回
|
|
|
|
|
|
|
|
// if (window.history.length > 1) {
|
|
|
|
|
|
|
|
// console.log("33333")
|
|
|
|
|
|
|
|
// window.history.back();
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// console.log("44444")
|
|
|
|
|
|
|
|
// window.exitApp()
|
|
|
|
|
|
|
|
// // window.close(); // 如果没有历史记录,关闭当前窗口
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// },
|
|
|
|
getYanLian() {
|
|
|
|
getYanLian() {
|
|
|
|
backlog().then(res => {
|
|
|
|
backlog().then(res => {
|
|
|
|
this.backlog = res[0];
|
|
|
|
this.backlog = res[0];
|
|
|
@ -326,7 +376,8 @@ console.log('已执行back');
|
|
|
|
listNotice().then(res => {
|
|
|
|
listNotice().then(res => {
|
|
|
|
this.gonggao = res.rows
|
|
|
|
this.gonggao = res.rows
|
|
|
|
.map(item => {
|
|
|
|
.map(item => {
|
|
|
|
return item.noticeContent;
|
|
|
|
// 使用正则表达式移除 HTML 标签
|
|
|
|
|
|
|
|
return item.noticeContent.replace(/<[^>]+>/g, ''); // 这是去掉所有HTML标签的正则
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.join(' ');
|
|
|
|
.join(' ');
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -368,6 +419,8 @@ console.log('已执行back');
|
|
|
|
this.$store.commit('setshowOverPop', false);
|
|
|
|
this.$store.commit('setshowOverPop', false);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getquanxian() {
|
|
|
|
getquanxian() {
|
|
|
|
|
|
|
|
console.log("item.menuName000")
|
|
|
|
|
|
|
|
console.log("saveMenu", this.$store.state.user.saveMenu);
|
|
|
|
this.$store.state.user.saveMenu.map(item => {
|
|
|
|
this.$store.state.user.saveMenu.map(item => {
|
|
|
|
if (item.menuName === '首页') {
|
|
|
|
if (item.menuName === '首页') {
|
|
|
|
//过滤不显示的按钮
|
|
|
|
//过滤不显示的按钮
|
|
|
@ -381,6 +434,7 @@ console.log('已执行back');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
console.log("indexQuanXian",this.indexQuanXian)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
changeGrid(path) {
|
|
|
|
changeGrid(path) {
|
|
|
|
// console.log(path);
|
|
|
|
// console.log(path);
|
|
|
@ -521,7 +575,7 @@ console.log('已执行back');
|
|
|
|
|
|
|
|
|
|
|
|
.zhuye {
|
|
|
|
.zhuye {
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
.swiper {
|
|
|
|
.swiper {
|
|
|
|
height: 427rpx;
|
|
|
|
height: 427rpx;
|
|
|
|
width: 100vw;
|
|
|
|
width: 100vw;
|
|
|
|