|
@@ -1,4 +1,4 @@
|
|
|
-import { defineComponent, onMounted, reactive, ref } from 'vue';
|
|
|
+import { defineComponent, onMounted, reactive, ref, nextTick } from 'vue';
|
|
|
import styles from './index.module.less';
|
|
|
import { List, Popup, DatePicker, Popover, Picker } from 'vant';
|
|
|
import request from '@/helpers/request';
|
|
@@ -23,13 +23,6 @@ export default defineComponent({
|
|
|
setup() {
|
|
|
const route = useRoute();
|
|
|
const router = useRouter();
|
|
|
- const areaTenantName = sessionStorage.getItem('areaTenantName') || ''
|
|
|
- const shareTitle = areaTenantName + '音乐(器乐)数字化转型问卷统计';
|
|
|
- const weChatShare = useWeChatShare(
|
|
|
- shareTitle,
|
|
|
- '科技赋能音乐(器乐)学习,在每一个孩子心中奏响美妙的乐章。',
|
|
|
- window.location.origin + '/classroom-app/shareImg/questionnaire-statistics.png'
|
|
|
- );
|
|
|
|
|
|
const tabName = ref('all');
|
|
|
const forms = reactive({
|
|
@@ -158,12 +151,24 @@ export default defineComponent({
|
|
|
refreshing.value = false
|
|
|
};
|
|
|
|
|
|
- onMounted(async () => {
|
|
|
+ const initWxShare = () => {
|
|
|
+ const shareTitle = (state.schoolInfo.schoolName||'') + '音乐(器乐)数字化转型调查统计';
|
|
|
+ const weChatShare = useWeChatShare(
|
|
|
+ shareTitle,
|
|
|
+ '科技赋能音乐(器乐)学习,在每一个孩子心中奏响美妙的乐章。',
|
|
|
+ window.location.origin + '/classroom-app/shareImg/questionnaire-statistics-new.png'
|
|
|
+ );
|
|
|
if (browser().weixin) {
|
|
|
weChatShare.getAppSignature()
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
+ onMounted(async () => {
|
|
|
await queryInfo()
|
|
|
queryList()
|
|
|
+ nextTick(() => {
|
|
|
+ initWxShare()
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
return () => (
|