hookehuyr

fix

...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
15 "publish": "npm run build && npm run rm && npm run mv && npm run git && npm run update" 15 "publish": "npm run build && npm run rm && npm run mv && npm run git && npm run update"
16 }, 16 },
17 "dependencies": { 17 "dependencies": {
18 + "@vueuse/core": "^8.4.2",
18 "animate.css": "^4.1.1", 19 "animate.css": "^4.1.1",
19 "html2canvas": "^1.4.1", 20 "html2canvas": "^1.4.1",
20 "jquery": "^3.6.0", 21 "jquery": "^3.6.0",
......
...@@ -46,7 +46,7 @@ const onUpload = (v) => { ...@@ -46,7 +46,7 @@ const onUpload = (v) => {
46 show.value = true; 46 show.value = true;
47 // x_field_1是金数据表单传入的参数,老师上传的格式为:user_id-book_id-perf_id,perf_id 为 0 47 // x_field_1是金数据表单传入的参数,老师上传的格式为:user_id-book_id-perf_id,perf_id 为 0
48 let str = `${props.user_id}-${v.id}-0`; 48 let str = `${props.user_id}-${v.id}-0`;
49 - location.href = `http://jsj.onwall.cn/f/g7D0MT?x_field_1=${str}`; 49 + location.href = `https://jsj.onwall.cn/f/g7D0MT?x_field_1=${str}`;
50 // BUG: 关闭loading临时处理 50 // BUG: 关闭loading临时处理
51 setTimeout(() => { 51 setTimeout(() => {
52 show.value = false; 52 show.value = false;
......
...@@ -5,8 +5,10 @@ ...@@ -5,8 +5,10 @@
5 <template v-if="kg_id"> 5 <template v-if="kg_id">
6 <van-row align="center" justify="center" style="position: relative; top: 50%; transform: translateY(-50%);"> 6 <van-row align="center" justify="center" style="position: relative; top: 50%; transform: translateY(-50%);">
7 <van-col span="2"> 7 <van-col span="2">
8 - <van-image round width="2rem" height="2rem" lazy-load :src="kgInfo.logo" 8 + <van-image v-if="kgInfo.logo" round width="2rem" height="2rem" lazy-load :src="kgInfo.logo" style="vertical-align: text-bottom;">
9 - style="vertical-align: text-bottom;"> 9 + <template v-slot:error>加载失败</template>
10 + </van-image>
11 + <van-image v-else round width="2rem" height="2rem" lazy-load :src="icon_avatar" style="vertical-align: text-bottom;">
10 <template v-slot:error>加载失败</template> 12 <template v-slot:error>加载失败</template>
11 </van-image> 13 </van-image>
12 </van-col> 14 </van-col>
...@@ -49,6 +51,7 @@ ...@@ -49,6 +51,7 @@
49 import Cookies from 'js-cookie' 51 import Cookies from 'js-cookie'
50 52
51 import no_image from '@images/que-shuju@2x.png' 53 import no_image from '@images/que-shuju@2x.png'
54 +import icon_avatar from '@images/que-logo@2x.png'
52 55
53 import MyButton from '@/components/MyButton/index.vue' 56 import MyButton from '@/components/MyButton/index.vue'
54 import BookCard from '@/components/BookCard/index.vue' 57 import BookCard from '@/components/BookCard/index.vue'
...@@ -56,7 +59,7 @@ import ShortcutFixed from '@/components/ShortcutFixed/index.vue' ...@@ -56,7 +59,7 @@ import ShortcutFixed from '@/components/ShortcutFixed/index.vue'
56 59
57 import { bookFn } from '@/composables/useBookList.js' 60 import { bookFn } from '@/composables/useBookList.js'
58 61
59 -import { ref, reactive } from 'vue' 62 +import { ref, reactive, nextTick } from 'vue'
60 import { useRoute, useRouter } from 'vue-router' 63 import { useRoute, useRouter } from 'vue-router'
61 import _ from 'lodash' 64 import _ from 'lodash'
62 import axios from '@/utils/axios'; 65 import axios from '@/utils/axios';
......
...@@ -233,6 +233,27 @@ ...@@ -233,6 +233,27 @@
233 resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.2.33.tgz#69a8c99ceb37c1b031d5cc4aec2ff1dc77e1161e" 233 resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.2.33.tgz#69a8c99ceb37c1b031d5cc4aec2ff1dc77e1161e"
234 integrity sha512-UBc1Pg1T3yZ97vsA2ueER0F6GbJebLHYlEi4ou1H5YL4KWvMOOWwpYo9/QpWq93wxKG6Wo13IY74Hcn/f7c7Bg== 234 integrity sha512-UBc1Pg1T3yZ97vsA2ueER0F6GbJebLHYlEi4ou1H5YL4KWvMOOWwpYo9/QpWq93wxKG6Wo13IY74Hcn/f7c7Bg==
235 235
236 +"@vueuse/core@^8.4.2":
237 + version "8.4.2"
238 + resolved "https://registry.yarnpkg.com/@vueuse/core/-/core-8.4.2.tgz#e5be73f40394150e6a1b6abd59e5adb7c6bb6c1f"
239 + integrity sha512-dUVU96lii1ZdWoNJXauQNt+4QrHz1DKbuW+y6pDR2N10q7rGZJMDU7pQeMcC2XeosX7kMODfaBuqsF03NozzLg==
240 + dependencies:
241 + "@vueuse/metadata" "8.4.2"
242 + "@vueuse/shared" "8.4.2"
243 + vue-demi "*"
244 +
245 +"@vueuse/metadata@8.4.2":
246 + version "8.4.2"
247 + resolved "https://registry.yarnpkg.com/@vueuse/metadata/-/metadata-8.4.2.tgz#b33e6b7bd5ca69e3f24ea41b149267118bcd566f"
248 + integrity sha512-2BIj++7P0/I5dfMsEe8q7Kw0HqVAjVcyNOd9+G22/ILUC9TVLTeYOuJ1kwa1Gpr+0LWKHc6GqHiLWNL33+exoQ==
249 +
250 +"@vueuse/shared@8.4.2":
251 + version "8.4.2"
252 + resolved "https://registry.yarnpkg.com/@vueuse/shared/-/shared-8.4.2.tgz#5900f06ff78bd8b6df4cbf48f8ca82dd6d9747d1"
253 + integrity sha512-hILXMEjL8YQhj1LHN/HZ49UThyfk8irTjhele2nW+L3N55ElFUBGB/f4w0rg8EW+/suhqv7kJJPTZzvHCqxlIw==
254 + dependencies:
255 + vue-demi "*"
256 +
236 animate.css@^4.1.1: 257 animate.css@^4.1.1:
237 version "4.1.1" 258 version "4.1.1"
238 resolved "https://registry.npmjs.org/animate.css/-/animate.css-4.1.1.tgz" 259 resolved "https://registry.npmjs.org/animate.css/-/animate.css-4.1.1.tgz"
......