打包地址

This commit is contained in:
zoujiandong
2025-06-17 13:40:11 +08:00
parent 28065a3a18
commit 33b5e299da
532 changed files with 42087 additions and 1 deletions
+181
View File
@@ -0,0 +1,181 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
const utils_navTo = require("../../utils/navTo.js");
const common_assets = require("../../common/assets.js");
if (!Array) {
const _easycom_up_tabs2 = common_vendor.resolveComponent("up-tabs");
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
(_easycom_up_tabs2 + _easycom_up__image2 + _easycom_up_icon2 + _easycom_z_paging2)();
}
const _easycom_up_tabs = () => "../../node-modules/uview-plus/components/u-tabs/u-tabs.js";
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.js";
const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
if (!Math) {
(navBarSearch + _easycom_up_tabs + _easycom_up__image + _easycom_up_icon + _easycom_z_paging)();
}
const navBarSearch = () => "../../components/navBarSearch/navBarSearch.js";
const _sfc_main = {
__name: "certList",
setup(__props) {
const paging = common_vendor.ref(null);
const isSearch = common_vendor.ref(false);
const dataList = common_vendor.ref([]);
const total = common_vendor.ref(0);
common_vendor.ref("");
const keyWord = common_vendor.ref("");
const tab = common_vendor.ref(0);
common_vendor.ref("");
const doctor_id = common_vendor.ref("");
const numInfo = common_vendor.reactive({});
const navName = common_vendor.ref("肝胆相照临床病例库");
const formatdate = (date) => {
return common_vendor.dayjs(date).format("YYYY-MM-DD");
};
const tabList = common_vendor.ref([{
name: "文章病例库"
}, {
name: "视频病例库"
}]);
const switchTab = (index) => {
tab.value = index.index;
paging.value.reload();
};
common_vendor.onLoad((options) => {
if (options.keyWord) {
keyWord.value = options.keyWord;
}
if (options.doctor_id) {
doctor_id.value = options.doctor_id;
}
});
const goDetail = (url) => {
utils_navTo.navTo({
url: `/pages/certImg/certImg?src=${url}`
});
};
const changeWord = (val) => {
keyWord.value = val;
isSearch.value = true;
paging.value.reload();
};
const searchArticle = (params) => {
let searchForm = {
keyword: keyWord.value,
doctor_id: doctor_id.value
};
if (isSearch.value) {
formatdate.is_need_num = 1;
}
api_api.api.searchArticle({
...searchForm,
...params
}).then((res) => {
paging.value.complete(res.data.data.data);
total.value = res.data.data.total;
numInfo.search_article_num = res.data.data.search_article_num;
numInfo.search_video_num = res.data.data.search_video_num;
}).catch((err) => {
paging.value.complete(false);
});
};
const searchVideo = async (params) => {
let searchForm = {
keyword: keyWord.value,
doctor_id: doctor_id.value
};
api_api.api.searchVideo({
...searchForm,
...params
}).then((res) => {
paging.value.complete(res.data.data.data);
total.value = res.data.data.total;
numInfo.search_article_num = res.data.data.search_article_num;
numInfo.search_video_num = res.data.data.search_video_num;
}).catch((err) => {
paging.value.complete(false);
});
};
const queryList = (pageNo, pageSize) => {
common_vendor.index.__f__("log", "at pages/certList/certList.vue:162", 666666);
const params = {
page: pageNo,
page_size: pageSize
};
tab.value == 0 ? searchArticle(params) : searchVideo(params);
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.o(changeWord),
b: common_vendor.p({
searchWord: keyWord.value,
navName: navName.value
}),
c: isSearch.value
}, isSearch.value ? common_vendor.e({
d: common_vendor.t(numInfo.search_article_num),
e: common_vendor.t(numInfo.search_video_num),
f: keyWord.value
}, keyWord.value ? {
g: common_vendor.t(keyWord.value)
} : {}) : {}, {
h: common_vendor.o(switchTab),
i: common_vendor.p({
activeStyle: {
color: "#3CC7C0"
},
inactiveStyle: {
color: "#4B5563"
},
lineColor: "#3CC7C0",
lineWidth: "155rpx",
lineHeight: "2",
list: tabList.value
}),
j: common_vendor.f(dataList.value, (item, index, i0) => {
return {
a: common_vendor.t(tab.value == 0 ? item.article_title : item.video_title),
b: common_vendor.f(item.author, (tag, k1, i1) => {
return {
a: common_vendor.t(tag.doctor_name),
b: tag.author_id
};
}),
c: "24ff958c-3-" + i0 + ",24ff958c-0",
d: "24ff958c-4-" + i0 + ",24ff958c-0",
e: common_vendor.t(formatdate(item.push_date)),
f: index,
g: common_vendor.o(($event) => goDetail(item.cert_image), index)
};
}),
k: common_vendor.p({
src: common_vendor.unref(common_assets.certImg),
width: "39rpx",
height: "39rpx"
}),
l: common_vendor.p({
name: "clock",
color: "#6B7280",
size: "28rpx"
}),
m: common_vendor.sr(paging, "24ff958c-0", {
"k": "paging"
}),
n: common_vendor.o(queryList),
o: common_vendor.o(($event) => dataList.value = $event),
p: common_vendor.p({
["inside-more"]: true,
["loading-more-no-more-text"]: "咱也是有底线的!",
["auto-show-back-to-top"]: true,
modelValue: dataList.value
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-24ff958c"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/certList/certList.js.map
@@ -0,0 +1,11 @@
{
"navigationBarTitleText": "肝胆相照临床病例库",
"navigationStyle": "custom",
"usingComponents": {
"up-tabs": "../../node-modules/uview-plus/components/u-tabs/u-tabs",
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
"up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
"nav-bar-search": "../../components/navBarSearch/navBarSearch"
}
}
@@ -0,0 +1 @@
<view class="u-page data-v-24ff958c"><z-paging wx:if="{{p}}" class="r data-v-24ff958c" u-s="{{['top','d']}}" u-r="paging" bindquery="{{n}}" u-i="24ff958c-0" bind:__l="__l" bindupdateModelValue="{{o}}" u-p="{{p}}"><view slot="top"><nav-bar-search wx:if="{{b}}" class="data-v-24ff958c" bindchangeWord="{{a}}" u-i="24ff958c-1,24ff958c-0" bind:__l="__l" u-p="{{b}}"></nav-bar-search><view wx:if="{{c}}" class="detail data-v-24ff958c"><view class="desc data-v-24ff958c">检索到:<text class="red data-v-24ff958c">{{d}}篇文章</text></view><view class="desc data-v-24ff958c">检索到:<text class="red data-v-24ff958c">{{e}}个视频</text></view><view wx:if="{{f}}" class="desc data-v-24ff958c">检索词:<text class="red data-v-24ff958c">{{g}}</text></view></view><view class="tabcon data-v-24ff958c"><up-tabs wx:if="{{i}}" class="data-v-24ff958c" bindclick="{{h}}" u-i="24ff958c-2,24ff958c-0" bind:__l="__l" u-p="{{i}}"></up-tabs></view></view><view wx:for="{{j}}" wx:for-item="item" wx:key="f" class="item data-v-24ff958c" bindtap="{{item.g}}"><view class="title ellipsis data-v-24ff958c">{{item.a}}</view><view class="tagsbox data-v-24ff958c"><view wx:for="{{item.b}}" wx:for-item="tag" wx:key="b" class="tag data-v-24ff958c">{{tag.a}}</view></view><view class="deal data-v-24ff958c"><view class="left data-v-24ff958c"><view class="recored data-v-24ff958c"><up--image wx:if="{{k}}" class="data-v-24ff958c" u-i="{{item.c}}" bind:__l="__l" u-p="{{k}}"></up--image> 收录证书 </view></view><view class="time data-v-24ff958c"><up-icon wx:if="{{l}}" class="data-v-24ff958c" u-i="{{item.d}}" bind:__l="__l" u-p="{{l}}"></up-icon><view class="num data-v-24ff958c">{{item.e}}</view></view></view></view></z-paging></view>
@@ -0,0 +1,149 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.detail.data-v-24ff958c {
background: #f9f9f9;
padding: 12rpx 30rpx;
}
.detail .desc.data-v-24ff958c {
font-size: 26rpx;
color: #4b5563;
line-height: 40rpx;
}
.detail .red.data-v-24ff958c {
color: #FF0000;
}
.tabcon.data-v-24ff958c {
margin: 0 20rpx;
}
.databox.data-v-24ff958c {
height: 162rpx;
background: #ffffff;
display: flex;
margin-bottom: 20rpx;
justify-content: space-between;
}
.databox .cell.data-v-24ff958c {
flex: 1;
padding: 35rpx 0;
text-align: center;
}
.databox .cell .num.data-v-24ff958c {
font-size: 38rpx;
color: #3cc7c0;
}
.databox .cell .name.data-v-24ff958c {
margin-top: 18rpx;
font-size: 28rpx;
color: #4b5563;
}
.data-v-24ff958c .u-flex {
display: flex;
flex-direction: row;
overflow: hidden;
}
.data-v-24ff958c .u-dropdown__menu {
background: #fff;
z-index: 1;
margin-left: -30rpx;
}
.data-v-24ff958c .u-dropdown__menu__item {
height: 74rpx;
padding: 0 20rpx;
background: #F3F4F6;
border-radius: 15rpx;
flex: none;
margin-left: 60rpx;
}
.u-page .deal.data-v-24ff958c {
margin-top: 20rpx;
display: flex;
color: #6b7280;
font-size: 24rpx;
justify-content: space-between;
}
.u-page .deal .left.data-v-24ff958c {
display: flex;
align-items: center;
}
.u-page .deal .recored.data-v-24ff958c {
display: flex;
align-items: center;
font-size: 31rpx;
color: #3CC7C0;
}
.u-page .deal .collect.data-v-24ff958c {
display: flex;
align-items: center;
}
.u-page .deal .eyebox.data-v-24ff958c {
width: 160rpx;
display: flex;
align-items: center;
}
.u-page .deal .time.data-v-24ff958c {
display: flex;
align-items: center;
}
.u-page .deal .num.data-v-24ff958c {
margin-left: 8rpx;
}
.u-page .item.data-v-24ff958c {
border-bottom: 1rpx solid #f3f4f6;
padding: 30rpx;
}
.u-page .item .title.data-v-24ff958c {
font-size: 30rpx;
color: #111827;
line-height: 46rpx;
}
.u-page .tagsbox.data-v-24ff958c {
margin-top: 20rpx;
display: flex;
}
.u-page .tagsbox .tag.data-v-24ff958c {
padding: 0 10rpx;
margin-right: 16rpx;
height: 46rpx;
line-height: 46rpx;
text-align: center;
background: rgba(60, 199, 192, 0.1);
border-radius: 8rpx;
font-weight: 400;
font-size: 24rpx;
color: #3cc7c0;
}
.detail.data-v-24ff958c {
background: #f9f9f9;
padding: 12rpx 30rpx;
}
.detail .desc.data-v-24ff958c {
font-size: 26rpx;
color: #4b5563;
line-height: 40rpx;
}
.detail .red.data-v-24ff958c {
color: #FF0000;
}