This commit is contained in:
yanran200730
2021-12-08 18:01:40 +08:00
parent 38a08ff55e
commit fefc72c09f
8 changed files with 26 additions and 11 deletions

View File

@@ -33,6 +33,9 @@
onLoad () { onLoad () {
}, },
mounted () {
},
methods: { methods: {
onChange (e) { onChange (e) {
this.params = e.params this.params = e.params

View File

@@ -111,9 +111,10 @@ export default {
} }
}, },
created() { created() {
this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact']) this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact']).then(() => {
this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']).then(() => { this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']).then(() => {
this.getList() this.getList()
})
}) })
}, },

View File

@@ -220,7 +220,9 @@
} }
}, },
created() { created() {
this.getDetail(); this.injectJWeixin(['sendChatMessage']).then(() => {
this.getDetail()
})
}, },
mounted() { mounted() {
document.title = "会议详情" document.title = "会议详情"

View File

@@ -73,6 +73,7 @@ import AiEmpty from "../../components/AiEmpty";
import AiTopFixed from "../../components/AiTopFixed"; import AiTopFixed from "../../components/AiTopFixed";
import {add, detail, read} from "./components"; import {add, detail, read} from "./components";
import AiOpenData from "../../components/AiOpenData"; import AiOpenData from "../../components/AiOpenData";
import {mapActions} from "vuex";
export default { export default {
name: "AppNotification", name: "AppNotification",
@@ -139,6 +140,7 @@ export default {
}, },
methods: { methods: {
...mapActions(['injectJWeixin']),
emitShow() { emitShow() {
const {id} = this.$route.query const {id} = this.$route.query
if (id) { if (id) {
@@ -150,7 +152,9 @@ export default {
this.showList = false; this.showList = false;
} }
this.current = 1; this.current = 1;
this.getList(); this.injectJWeixin(['sendChatMessage']).then(() => {
this.getList();
})
}, },
emitReachBottom() { emitReachBottom() {
this.current = this.current + 1; this.current = this.current + 1;

View File

@@ -77,7 +77,9 @@
} }
}, },
created() { created() {
this.getDetail(); this.injectJWeixin(['sendChatMessage']).then(() => {
this.getDetail()
})
}, },
mounted() { mounted() {

View File

@@ -19,8 +19,9 @@ export default {
methods: { methods: {
...mapActions(['injectJWeixin']), ...mapActions(['injectJWeixin']),
bindWWOpenData() { bindWWOpenData() {
if (window?.WWOpenData) WWOpenData.bind(this.$el) if (window.WWOpenData) {
else this.injectJWeixin().then(() => { WWOpenData.bind(this.$el)
} else this.injectJWeixin().then(() => {
this.$nextTick(() => { this.$nextTick(() => {
WWOpenData.bind(this.$el) WWOpenData.bind(this.$el)
WWOpenData.on('update', () => { WWOpenData.on('update', () => {
@@ -31,7 +32,9 @@ export default {
} }
}, },
mounted() { mounted() {
this.bindWWOpenData() this.$nextTick(() => {
this.bindWWOpenData()
})
} }
} }
</script> </script>

View File

@@ -15,7 +15,7 @@ Vue.prototype.$http = axios;
Vue.prototype.$cdn = 'https://cdn.cunwuyun.cn/dvcp/h5/'; Vue.prototype.$cdn = 'https://cdn.cunwuyun.cn/dvcp/h5/';
Object.keys(utils).map((e) => (Vue.prototype['$' + e] = utils[e])); Object.keys(utils).map((e) => (Vue.prototype['$' + e] = utils[e]));
App.mpType = 'app'; App.mpType = 'app';
process.env.NODE_ENV == 'development' && new VConsole(); // process.env.NODE_ENV == 'development' && new VConsole();
const app = new Vue({ const app = new Vue({
store, store,
...App ...App

View File

@@ -10,7 +10,7 @@
<b v-for="app in apps" :key="app.key" @tap="handleGotoApp(app)">{{ app.name }}</b> <b v-for="app in apps" :key="app.key" @tap="handleGotoApp(app)">{{ app.name }}</b>
</div> </div>
</section> </section>
</template>0 </template>
<script> <script>
import {mapActions, mapState} from 'vuex' import {mapActions, mapState} from 'vuex'