-
-
-
{{ item.pushUser }}
-
{{ item.pushTime }}
-
-
-
![]()
-
{{item.name}}
-
-
{{ item.synopsis }}
-
-
{{ item.docType?.label }}
-
-
{{ item.listShowButton==null ? '已处理' : '未处理' }}
-
阅读 {{item.readCount}}
+
+
+
+
{{ item.pushUser }}
+
{{ item.pushTime }}
+
+
+
![]()
+
{{item.name}}
+
+
{{ item.synopsis }}
+
+
{{ item.docType?.label }}
+
+ {{ item.listShowButton==null ? '已处理' : '未处理' }}
+ 阅读 {{item.readCount}}
+
-
-
+
+
@@ -69,6 +71,7 @@ export default {
pageSize:10,
keyword:'',
trainingType:1,
+ isLoading:false,
show:false,
showEmpty:false
}
@@ -77,6 +80,28 @@ export default {
this.getList()
},
methods:{
+ goH5Detail(item){
+ let data = {
+ "action": "goTraining",
+ "params": {
+ "id": item.id,
+ }
+ };
+ let u = navigator.userAgent;
+ let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
+ if(isiOS){
+ window.webkit.messageHandlers.nativeObject.postMessage(data);
+ }else {
+ window.android.sendMessage("articleId=" + item.id);
+ }
+ },
+ onRefresh() {
+ this.getList()
+ setTimeout(() => {
+ this.$toast('刷新成功');
+ this.isLoading = false;
+ }, 1000);
+ },
async changeTab(index) {
this.activeIndex = index
this.pageNum = 1
@@ -161,6 +186,7 @@ export default {
padding: 0 8px;
width: 100%;
box-sizing: border-box;
+
.itemWrap{
margin-top: 16px;
@include wh(100%, 300px);
diff --git a/src/views/documentView/trainDocment.vue b/src/views/documentView/trainDocment.vue
index 4e90a302..e455c68c 100644
--- a/src/views/documentView/trainDocment.vue
+++ b/src/views/documentView/trainDocment.vue
@@ -23,7 +23,7 @@