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 () {
},
mounted () {
},
methods: {
onChange (e) {
this.params = e.params

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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