xuruiqian
2025-02-25 e85ab165147c37b571ea67ce6f6ae9ae55a96070
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<template>
  <view class="content">
    <web-view :src="url"></web-view>
  </view>
</template>
<script>
import { ref, reactive, toRefs, onMounted, getCurrentInstance, nextTick } from "vue";
import { useBasicInfoStore } from "../../store/basicInfo"
import configInfo from '../../config';
 
export default {
  components: {},
  setup() {
    const userStore = useBasicInfoStore()
    const { proxy } = getCurrentInstance();
    const state = reactive({
      url: ""
    })
 
    onMounted(() => {
      Init();
    });
 
    const Init = () => {
      uni.setNavigationBarTitle({
        title: userStore.testTitle + "(" + userStore.questionType + ")"
      });
 
      state.url = configInfo.questionhost +
        "token=" + userStore.userinfo.token +
        "&paperid=" + userStore.paperId +
        "&type=" + userStore.questionType
 
      console.log(state.url,9999)
    }
 
 
 
 
    return { ...toRefs(state), userStore, }
  }
}
 
 
 
</script>
 
<style scoped lang="scss">
.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  //justify-content: center;
}
 
.content {
  @extend .center;
  background-color: #f5f5f5;
  height: 100vh;
  width: 100%;
}
</style>