|
|
@@ -53,9 +53,9 @@
|
|
|
class="w-100"
|
|
|
titleColor="title-text"
|
|
|
title2
|
|
|
- image="https://mn.wenlvti.net/app_static/minnan/images/inhert/IconBorrow.png"
|
|
|
+ :image="appConfiguration?.articleBorrow?.icon"
|
|
|
:title="loader.content.value.title"
|
|
|
- desc="点击查询借阅"
|
|
|
+ :desc="appConfiguration?.articleBorrow?.text"
|
|
|
@click="goBorrow(loader.content.value.title)"
|
|
|
/>
|
|
|
</view>
|
|
|
@@ -123,7 +123,7 @@ import { DataDateUtils } from "@imengyu/js-request-transform";
|
|
|
import { useSimplePageContentLoader } from "@/common/composeabe/SimplePageContentLoader";
|
|
|
import { useLoadQuerys } from "@/common/composeabe/LoadQuerys";
|
|
|
import { computed } from "vue";
|
|
|
-import { StringUtils } from "@imengyu/imengyu-utils";
|
|
|
+import { FormatUtils, StringUtils } from "@imengyu/imengyu-utils";
|
|
|
import { injectAppConfiguration } from "@/api/system/useAppConfiguration";
|
|
|
import { useSimpleDataLoader } from "@/common/composeabe/SimpleDataLoader";
|
|
|
import { navTo, redirectTo } from "@/components/utils/PageAction";
|
|
|
@@ -275,6 +275,7 @@ function goArchive(id: number) {
|
|
|
})
|
|
|
},
|
|
|
fail: (res) => {
|
|
|
+ console.error(res);
|
|
|
uni.hideLoading()
|
|
|
uni.showToast({
|
|
|
title: '下载文件失败,请检查网络',
|
|
|
@@ -304,7 +305,9 @@ function goDetails(id: number) {
|
|
|
});
|
|
|
}
|
|
|
function goBorrow(title: string) {
|
|
|
- navTo('/pages/article/web/ewebview', { url: `https://mn.wenlvti.net/xmlib/opac/m/search?q=${encodeURIComponent(title)}&curlibcode=&searchWay=title&hasholding=1` });
|
|
|
+ navTo('/pages/article/web/ewebview', {
|
|
|
+ url: FormatUtils.formatString(appConfiguration.value?.articleBorrow?.url || '', { title })
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
function getPageShareData() {
|