hookehuyr

🌈 style: fix

...@@ -12,14 +12,7 @@ ...@@ -12,14 +12,7 @@
12 import Cookies from 'js-cookie' 12 import Cookies from 'js-cookie'
13 13
14 import axios from '@/utils/axios' 14 import axios from '@/utils/axios'
15 -import { useRoute, useRouter } from 'vue-router'
16 -import { onMounted } from 'vue'
17 import { Toast } from 'vant' 15 import { Toast } from 'vant'
18 -// import _ from 'lodash';
19 -import { mainStore } from './store';
20 -
21 -const store = mainStore();
22 -const $router = useRouter();
23 16
24 /** 17 /**
25 * 获取默认儿童信息 18 * 获取默认儿童信息
......
...@@ -3,13 +3,10 @@ ...@@ -3,13 +3,10 @@
3 </template> 3 </template>
4 4
5 <script setup> 5 <script setup>
6 -import { ref, reactive, onMounted } from 'vue' 6 +import { onMounted } from 'vue'
7 -import { useRoute, useRouter } from 'vue-router' 7 +import { useRoute } from 'vue-router'
8 -import axios from '@/utils/axios'; 8 +
9 -import $ from 'jquery'
10 -import { Toast } from 'vant';
11 const $route = useRoute(); 9 const $route = useRoute();
12 -const $router = useRouter();
13 10
14 onMounted(() => { 11 onMounted(() => {
15 // php需要先跳转链接获取openid 12 // php需要先跳转链接获取openid
...@@ -38,4 +35,4 @@ export default { ...@@ -38,4 +35,4 @@ export default {
38 </script> 35 </script>
39 36
40 <style lang="less" scoped> 37 <style lang="less" scoped>
41 -</style>
...\ No newline at end of file ...\ No newline at end of file
38 +</style>
......
...@@ -27,16 +27,12 @@ ...@@ -27,16 +27,12 @@
27 <script setup> 27 <script setup>
28 import BVideoCard from '@/components/BVideoCard/index.vue' 28 import BVideoCard from '@/components/BVideoCard/index.vue'
29 29
30 -import { ref, reactive, onMounted } from 'vue' 30 +import { ref } from 'vue'
31 import { useRoute, useRouter } from 'vue-router' 31 import { useRoute, useRouter } from 'vue-router'
32 import axios from '@/utils/axios'; 32 import axios from '@/utils/axios';
33 import _ from 'lodash' 33 import _ from 'lodash'
34 import { Toast } from 'vant'; 34 import { Toast } from 'vant';
35 35
36 -const $route = useRoute();
37 -const $router = useRouter();
38 -
39 -
40 const titleStyle = { 36 const titleStyle = {
41 fontSize: '1rem' 37 fontSize: '1rem'
42 } 38 }
...@@ -55,7 +51,6 @@ const onReload = (v) => { ...@@ -55,7 +51,6 @@ const onReload = (v) => {
55 } 51 }
56 52
57 const active = ref(0) 53 const active = ref(0)
58 -let tabStatus = ref('PENDING')
59 54
60 const onClickTab = (v) => { 55 const onClickTab = (v) => {
61 if (!v.name) { 56 if (!v.name) {
......
...@@ -58,7 +58,7 @@ import icon_book from '@images/shu@2x.png' ...@@ -58,7 +58,7 @@ import icon_book from '@images/shu@2x.png'
58 import BookCard from '@/components/BookCard/index.vue' 58 import BookCard from '@/components/BookCard/index.vue'
59 import ShortcutFixed from '@/components/ShortcutFixed/index.vue' 59 import ShortcutFixed from '@/components/ShortcutFixed/index.vue'
60 60
61 -import { ref, reactive, onMounted } from 'vue' 61 +import { ref, reactive } from 'vue'
62 import { useRoute, useRouter } from 'vue-router' 62 import { useRoute, useRouter } from 'vue-router'
63 import axios from '@/utils/axios'; 63 import axios from '@/utils/axios';
64 import { Toast } from 'vant'; 64 import { Toast } from 'vant';
......
...@@ -271,7 +271,7 @@ onActivated(() => { // keepAlive 重置后执行回调 ...@@ -271,7 +271,7 @@ onActivated(() => { // keepAlive 重置后执行回调
271 * 判断微信环境 271 * 判断微信环境
272 */ 272 */
273 if (wxInfo().isiOS || wxInfo().isAndroid) { 273 if (wxInfo().isiOS || wxInfo().isAndroid) {
274 - // TODO: 手机微信浏览器位置变动了,需要手动调整位置,但是无刷新是起作用的 274 + // TAG: 手机微信浏览器位置变动了,需要手动调整位置,但是无刷新是起作用的
275 const { scrollTop } = storeToRefs(store); 275 const { scrollTop } = storeToRefs(store);
276 if (scrollTop.value) { 276 if (scrollTop.value) {
277 $("html,body").animate({ "scrollTop": scrollTop.value }) 277 $("html,body").animate({ "scrollTop": scrollTop.value })
......
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
8 8
9 <script> 9 <script>
10 import mixin from 'common/mixin' 10 import mixin from 'common/mixin'
11 -import { mainStore } from '@/store' 11 +
12 -import { storeToRefs } from 'pinia'
13 export default { 12 export default {
14 mixins: [mixin.init], 13 mixins: [mixin.init],
15 data () { 14 data () {
...@@ -26,4 +25,4 @@ export default { ...@@ -26,4 +25,4 @@ export default {
26 25
27 <style lang="less" scoped> 26 <style lang="less" scoped>
28 27
29 -</style>
...\ No newline at end of file ...\ No newline at end of file
28 +</style>
......