bug
This commit is contained in:
		@@ -111,6 +111,7 @@ export default {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  created() {
 | 
					  created() {
 | 
				
			||||||
 | 
					    this.$loading()
 | 
				
			||||||
    this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact']).then(() => {
 | 
					    this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact']).then(() => {
 | 
				
			||||||
      this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']).then(() => {
 | 
					      this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']).then(() => {
 | 
				
			||||||
        this.getList()
 | 
					        this.getList()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <div class="detail">
 | 
					  <div class="detail" v-if="pageShow">
 | 
				
			||||||
    <template v-if="!list">
 | 
					    <template v-if="!list">
 | 
				
			||||||
      <div class="card">
 | 
					      <div class="card">
 | 
				
			||||||
        <header>{{ detail.title }}</header>
 | 
					        <header>{{ detail.title }}</header>
 | 
				
			||||||
@@ -115,6 +115,7 @@
 | 
				
			|||||||
        detail: {},
 | 
					        detail: {},
 | 
				
			||||||
        list: false,
 | 
					        list: false,
 | 
				
			||||||
        current: 0,
 | 
					        current: 0,
 | 
				
			||||||
 | 
					        pageShow: false,
 | 
				
			||||||
        show: false,
 | 
					        show: false,
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -225,13 +226,18 @@
 | 
				
			|||||||
        }).then(res => {
 | 
					        }).then(res => {
 | 
				
			||||||
          if (res && res.data) {
 | 
					          if (res && res.data) {
 | 
				
			||||||
            this.detail = res.data
 | 
					            this.detail = res.data
 | 
				
			||||||
 | 
					            this.pageShow = true
 | 
				
			||||||
 | 
					            this.$hideLoading()
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    created() {
 | 
					    created() {
 | 
				
			||||||
 | 
					      this.$loading()
 | 
				
			||||||
      this.injectJWeixin(['sendChatMessage']).then(() => {
 | 
					      this.injectJWeixin(['sendChatMessage']).then(() => {
 | 
				
			||||||
        this.getDetail()
 | 
					        this.getDetail()
 | 
				
			||||||
 | 
					      }).catch(() => {
 | 
				
			||||||
 | 
					        this.getDetail()
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    mounted() {
 | 
					    mounted() {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -135,6 +135,7 @@ export default {
 | 
				
			|||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  created() {
 | 
					  created() {
 | 
				
			||||||
 | 
					    this.$loading()
 | 
				
			||||||
    document.title = "通知公告";
 | 
					    document.title = "通知公告";
 | 
				
			||||||
    this.$dict.load("announcementStatus");
 | 
					    this.$dict.load("announcementStatus");
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
@@ -256,6 +257,8 @@ export default {
 | 
				
			|||||||
          }
 | 
					          }
 | 
				
			||||||
          this.dataList = this.current > 1 ? [...this.dataList, ...res.data.records] : res.data.records
 | 
					          this.dataList = this.current > 1 ? [...this.dataList, ...res.data.records] : res.data.records
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        this.$hideLoading()
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <div class="detail">
 | 
					  <div class="detail" v-if="pageShow">
 | 
				
			||||||
    <template v-if="detailObj">
 | 
					    <template v-if="detailObj">
 | 
				
			||||||
      <div class="card">
 | 
					      <div class="card">
 | 
				
			||||||
        <header>{{detailObj.title}}</header>
 | 
					        <header>{{detailObj.title}}</header>
 | 
				
			||||||
@@ -74,11 +74,15 @@
 | 
				
			|||||||
    data() {
 | 
					    data() {
 | 
				
			||||||
      return {
 | 
					      return {
 | 
				
			||||||
        detailObj: {},
 | 
					        detailObj: {},
 | 
				
			||||||
 | 
					        pageShow: false
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    created() {
 | 
					    created() {
 | 
				
			||||||
 | 
					      this.$loading()
 | 
				
			||||||
      this.injectJWeixin(['sendChatMessage']).then(() => {
 | 
					      this.injectJWeixin(['sendChatMessage']).then(() => {
 | 
				
			||||||
        this.getDetail()
 | 
					        this.getDetail()
 | 
				
			||||||
 | 
					      }).catch(() => {
 | 
				
			||||||
 | 
					        this.$hideLoading()
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -106,6 +110,8 @@
 | 
				
			|||||||
        }).then(res=>{
 | 
					        }).then(res=>{
 | 
				
			||||||
          if(res && res.data){
 | 
					          if(res && res.data){
 | 
				
			||||||
            this.detailObj = res.data;
 | 
					            this.detailObj = res.data;
 | 
				
			||||||
 | 
					            this.pageShow = true
 | 
				
			||||||
 | 
					            this.$hideLoading()
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,10 +16,11 @@
 | 
				
			|||||||
<script>
 | 
					<script>
 | 
				
			||||||
  import AiBack from "../../../components/AiBack";
 | 
					  import AiBack from "../../../components/AiBack";
 | 
				
			||||||
  import AiTopFixed from "../../../components/AiTopFixed";
 | 
					  import AiTopFixed from "../../../components/AiTopFixed";
 | 
				
			||||||
 | 
					  import AiOpenData from "../../../components/AiOpenData";
 | 
				
			||||||
 | 
					  import {mapActions} from "vuex";
 | 
				
			||||||
  export default {
 | 
					  export default {
 | 
				
			||||||
    name: "read",
 | 
					    name: "read",
 | 
				
			||||||
    components: {AiBack, AiTopFixed},
 | 
					    components: {AiBack, AiTopFixed, AiOpenData},
 | 
				
			||||||
    props:{
 | 
					    props:{
 | 
				
			||||||
      params:[String,Number]
 | 
					      params:[String,Number]
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -31,9 +32,13 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    created() {
 | 
					    created() {
 | 
				
			||||||
      document.title = "接收对象";
 | 
					      document.title = "接收对象";
 | 
				
			||||||
 | 
					      this.$loading()
 | 
				
			||||||
 | 
					      this.injectJWeixin().then(() => {
 | 
				
			||||||
        this.getList();
 | 
					        this.getList();
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    methods: {
 | 
					    methods: {
 | 
				
			||||||
 | 
					      ...mapActions(['previewFile', 'injectJWeixin']),
 | 
				
			||||||
      getList() {
 | 
					      getList() {
 | 
				
			||||||
        this.$http.post("/app/appannouncementreader/list-unread",null,{
 | 
					        this.$http.post("/app/appannouncementreader/list-unread",null,{
 | 
				
			||||||
          params:{
 | 
					          params:{
 | 
				
			||||||
@@ -42,6 +47,7 @@
 | 
				
			|||||||
        }).then(res => {
 | 
					        }).then(res => {
 | 
				
			||||||
          if (res && res.data) {
 | 
					          if (res && res.data) {
 | 
				
			||||||
            this.list = res.data;
 | 
					            this.list = res.data;
 | 
				
			||||||
 | 
					            this.$hideLoading()
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										14
									
								
								src/main.js
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								src/main.js
									
									
									
									
									
								
							@@ -6,6 +6,20 @@ import utils from './common/util';
 | 
				
			|||||||
import ui from 'uview-ui'
 | 
					import ui from 'uview-ui'
 | 
				
			||||||
import apps from './apps/index'
 | 
					import apps from './apps/index'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const loading = title => {
 | 
				
			||||||
 | 
					  uni.showLoading({
 | 
				
			||||||
 | 
					    title: title ? title : '加载中',
 | 
				
			||||||
 | 
					    mask: true
 | 
				
			||||||
 | 
					  })
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const hideLoading = () => {
 | 
				
			||||||
 | 
					  uni.hideLoading()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Vue.prototype.$loading = loading
 | 
				
			||||||
 | 
					Vue.prototype.$hideLoading = hideLoading
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Vue.use(ui)
 | 
					Vue.use(ui)
 | 
				
			||||||
Vue.use(apps)
 | 
					Vue.use(apps)
 | 
				
			||||||
Vue.config.productionTip = false;
 | 
					Vue.config.productionTip = false;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user