打包地址
This commit is contained in:
+211
@@ -0,0 +1,211 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_form_item2 = common_vendor.resolveComponent("up-form-item");
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
const _easycom_up_upload2 = common_vendor.resolveComponent("up-upload");
|
||||
const _easycom_up_form2 = common_vendor.resolveComponent("up-form");
|
||||
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
|
||||
const _easycom_up_picker2 = common_vendor.resolveComponent("up-picker");
|
||||
(_easycom_up_input2 + _easycom_up_form_item2 + _easycom_up_icon2 + _easycom_up_upload2 + _easycom_up_form2 + _easycom_up_button2 + _easycom_up_picker2)();
|
||||
}
|
||||
const _easycom_up_input = () => "../../node-modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_form_item = () => "../../node-modules/uview-plus/components/u-form-item/u-form-item.js";
|
||||
const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
|
||||
const _easycom_up_upload = () => "../../node-modules/uview-plus/components/u-upload/u-upload.js";
|
||||
const _easycom_up_form = () => "../../node-modules/uview-plus/components/u-form/u-form.js";
|
||||
const _easycom_up_button = () => "../../node-modules/uview-plus/components/u-button/u-button.js";
|
||||
const _easycom_up_picker = () => "../../node-modules/uview-plus/components/u-picker/u-picker.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_input + _easycom_up_form_item + _easycom_up_icon + _easycom_up_upload + _easycom_up_form + _easycom_up_button + QfImageCropper + _easycom_up_picker)();
|
||||
}
|
||||
const QfImageCropper = () => "../../uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.js";
|
||||
const _sfc_main = {
|
||||
__name: "apply",
|
||||
setup(__props) {
|
||||
const imgCropper = common_vendor.ref(null);
|
||||
const model = common_vendor.reactive({
|
||||
name: ""
|
||||
});
|
||||
const showCroper = common_vendor.ref(false);
|
||||
const coperImg = common_vendor.ref("");
|
||||
const customStyle = common_vendor.reactive({
|
||||
height: "90rpx",
|
||||
fontSize: "36rpx"
|
||||
});
|
||||
const areacolumns = common_vendor.ref([]);
|
||||
const showArea = common_vendor.ref(false);
|
||||
const departcolumns = common_vendor.ref([]);
|
||||
const showDepart = common_vendor.ref(false);
|
||||
const titlecolumns = common_vendor.ref([]);
|
||||
const showTitle = common_vendor.ref(false);
|
||||
const closeArea = () => {
|
||||
showArea.value = false;
|
||||
};
|
||||
const confirmArea = (e) => {
|
||||
showArea.value = false;
|
||||
};
|
||||
const closeDepart = () => {
|
||||
showDepart.value = false;
|
||||
};
|
||||
const confirmDepart = (e) => {
|
||||
common_vendor.index.__f__("log", "at pages/apply/apply.vue:122", e);
|
||||
showDepart.value = false;
|
||||
};
|
||||
const closeTitle = () => {
|
||||
showTitle.value = false;
|
||||
};
|
||||
const confirmTitle = (e) => {
|
||||
showTitle.value = false;
|
||||
};
|
||||
const afterRead = (event) => {
|
||||
coperImg.value = event.file.url;
|
||||
showCroper.value = true;
|
||||
};
|
||||
const handleCrop = (e) => {
|
||||
common_vendor.index.__f__("log", "at pages/apply/apply.vue:139", e.tempFilePath);
|
||||
};
|
||||
const handleCancel = () => {
|
||||
showCroper.value = false;
|
||||
};
|
||||
common_vendor.onShow(() => {
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.o(($event) => model.name = $event),
|
||||
b: common_vendor.p({
|
||||
placeholder: "请输入真实姓名",
|
||||
modelValue: model.name
|
||||
}),
|
||||
c: common_vendor.p({
|
||||
label: "姓名",
|
||||
prop: "userInfo.name",
|
||||
borderBottom: true
|
||||
}),
|
||||
d: common_vendor.o(($event) => model.name = $event),
|
||||
e: common_vendor.p({
|
||||
placeholder: "请选择医院",
|
||||
modelValue: model.name
|
||||
}),
|
||||
f: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
g: common_vendor.o(($event) => showArea.value = true),
|
||||
h: common_vendor.p({
|
||||
label: "医院",
|
||||
prop: "userInfo.name",
|
||||
borderBottom: true
|
||||
}),
|
||||
i: common_vendor.o(($event) => model.name = $event),
|
||||
j: common_vendor.p({
|
||||
placeholder: "请选择科室",
|
||||
modelValue: model.name
|
||||
}),
|
||||
k: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
l: common_vendor.o(($event) => showDepart.value = true),
|
||||
m: common_vendor.p({
|
||||
label: "科室",
|
||||
prop: "userInfo.name",
|
||||
borderBottom: true
|
||||
}),
|
||||
n: common_vendor.o(($event) => model.name = $event),
|
||||
o: common_vendor.p({
|
||||
placeholder: "请选择职称",
|
||||
modelValue: model.name
|
||||
}),
|
||||
p: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
q: common_vendor.o(($event) => showTitle.value = true),
|
||||
r: common_vendor.p({
|
||||
label: "职称",
|
||||
prop: "userInfo.name",
|
||||
borderBottom: true
|
||||
}),
|
||||
s: common_vendor.o(($event) => model.name = $event),
|
||||
t: common_vendor.p({
|
||||
placeholder: "请输入执业证号",
|
||||
modelValue: model.name
|
||||
}),
|
||||
v: common_vendor.p({
|
||||
label: "执业证号(选填)",
|
||||
prop: "userInfo.name",
|
||||
borderBottom: true
|
||||
}),
|
||||
w: common_vendor.o(($event) => model.name = $event),
|
||||
x: common_vendor.p({
|
||||
placeholder: "",
|
||||
modelValue: model.name
|
||||
}),
|
||||
y: common_vendor.o(afterRead),
|
||||
z: common_vendor.p({
|
||||
maxCount: 1
|
||||
}),
|
||||
A: common_vendor.unref(common_assets.img),
|
||||
B: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
C: common_vendor.p({
|
||||
label: "执业医师资格证或工作胸牌",
|
||||
prop: "userInfo.name",
|
||||
borderBottom: true
|
||||
}),
|
||||
D: common_vendor.sr("form", "426a9ebe-0"),
|
||||
E: common_vendor.p({
|
||||
labelPosition: "left",
|
||||
model,
|
||||
labelWidth: "115rpx"
|
||||
}),
|
||||
F: common_vendor.p({
|
||||
customStyle,
|
||||
type: "success",
|
||||
text: "提交",
|
||||
color: "#3cc7c0",
|
||||
size: "large"
|
||||
}),
|
||||
G: showCroper.value
|
||||
}, showCroper.value ? {
|
||||
H: common_vendor.sr(imgCropper, "426a9ebe-19", {
|
||||
"k": "imgCropper"
|
||||
}),
|
||||
I: common_vendor.o(handleCancel),
|
||||
J: common_vendor.o(handleCrop),
|
||||
K: common_vendor.p({
|
||||
width: 500,
|
||||
height: 500,
|
||||
radius: 0,
|
||||
backgroundColor: "#000",
|
||||
src: coperImg.value,
|
||||
zIndex: "999",
|
||||
delay: "1500"
|
||||
})
|
||||
} : {}, {
|
||||
L: common_vendor.o(closeArea),
|
||||
M: common_vendor.o(confirmArea),
|
||||
N: common_vendor.p({
|
||||
show: showArea.value,
|
||||
columns: areacolumns.value
|
||||
}),
|
||||
O: common_vendor.o(closeDepart),
|
||||
P: common_vendor.o(confirmDepart),
|
||||
Q: common_vendor.p({
|
||||
show: showDepart.value,
|
||||
columns: departcolumns.value
|
||||
}),
|
||||
R: common_vendor.o(closeTitle),
|
||||
S: common_vendor.o(confirmTitle),
|
||||
T: common_vendor.p({
|
||||
show: showTitle.value,
|
||||
columns: titlecolumns.value
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-426a9ebe"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/apply/apply.js.map
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"navigationBarTitleText": "注册",
|
||||
"enablePullDownRefresh": false,
|
||||
"disableScroll": true,
|
||||
"usingComponents": {
|
||||
"up-input": "../../node-modules/uview-plus/components/u-input/u-input",
|
||||
"up-form-item": "../../node-modules/uview-plus/components/u-form-item/u-form-item",
|
||||
"up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
|
||||
"up-upload": "../../node-modules/uview-plus/components/u-upload/u-upload",
|
||||
"up-form": "../../node-modules/uview-plus/components/u-form/u-form",
|
||||
"up-button": "../../node-modules/uview-plus/components/u-button/u-button",
|
||||
"up-picker": "../../node-modules/uview-plus/components/u-picker/u-picker",
|
||||
"qf-image-cropper": "../../uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="logincontent data-v-426a9ebe"><up-form wx:if="{{E}}" class="r data-v-426a9ebe" u-s="{{['d']}}" u-r="form" u-i="426a9ebe-0" bind:__l="__l" u-p="{{E}}"><up-form-item wx:if="{{c}}" class="data-v-426a9ebe" u-s="{{['d']}}" u-i="426a9ebe-1,426a9ebe-0" bind:__l="__l" u-p="{{c}}"><up-input wx:if="{{b}}" class="data-v-426a9ebe" u-i="426a9ebe-2,426a9ebe-1" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></up-input></up-form-item><view class="smsbox data-v-426a9ebe"><up-form-item wx:if="{{h}}" class="data-v-426a9ebe" u-s="{{['right','d']}}" bindclick="{{g}}" u-i="426a9ebe-3,426a9ebe-0" bind:__l="__l" u-p="{{h}}"><up-input wx:if="{{e}}" class="data-v-426a9ebe" u-i="426a9ebe-4,426a9ebe-3" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></up-input><up-icon class="data-v-426a9ebe" u-i="426a9ebe-5,426a9ebe-3" bind:__l="__l" u-p="{{f}}" slot="right"></up-icon></up-form-item><up-form-item wx:if="{{m}}" class="data-v-426a9ebe" u-s="{{['right','d']}}" bindclick="{{l}}" u-i="426a9ebe-6,426a9ebe-0" bind:__l="__l" u-p="{{m}}"><up-input wx:if="{{j}}" class="data-v-426a9ebe" u-i="426a9ebe-7,426a9ebe-6" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"></up-input><up-icon class="data-v-426a9ebe" u-i="426a9ebe-8,426a9ebe-6" bind:__l="__l" u-p="{{k}}" slot="right"></up-icon></up-form-item><up-form-item wx:if="{{r}}" class="data-v-426a9ebe" u-s="{{['right','d']}}" bindclick="{{q}}" u-i="426a9ebe-9,426a9ebe-0" bind:__l="__l" u-p="{{r}}"><up-input wx:if="{{o}}" class="data-v-426a9ebe" u-i="426a9ebe-10,426a9ebe-9" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o}}"></up-input><up-icon class="data-v-426a9ebe" u-i="426a9ebe-11,426a9ebe-9" bind:__l="__l" u-p="{{p}}" slot="right"></up-icon></up-form-item><up-form-item wx:if="{{v}}" class="data-v-426a9ebe" u-s="{{['d']}}" u-i="426a9ebe-12,426a9ebe-0" bind:__l="__l" u-p="{{v}}"><up-input wx:if="{{t}}" class="data-v-426a9ebe" u-i="426a9ebe-13,426a9ebe-12" bind:__l="__l" bindupdateModelValue="{{s}}" u-p="{{t}}"></up-input></up-form-item><up-form-item wx:if="{{C}}" class="data-v-426a9ebe" u-s="{{['right','d']}}" u-i="426a9ebe-14,426a9ebe-0" bind:__l="__l" u-p="{{C}}"><up-input wx:if="{{x}}" class="data-v-426a9ebe" u-i="426a9ebe-15,426a9ebe-14" bind:__l="__l" bindupdateModelValue="{{w}}" u-p="{{x}}"></up-input><view class="rightbox data-v-426a9ebe" slot="right"><view class="uploadwraper data-v-426a9ebe"><up-upload wx:if="{{z}}" class="data-v-426a9ebe" bindafterRead="{{y}}" u-i="426a9ebe-16,426a9ebe-14" bind:__l="__l" u-p="{{z}}"></up-upload><image src="{{A}}" mode="widthFix" style="width:120rpx;height:80px" class="dimg data-v-426a9ebe"></image></view><up-icon wx:if="{{B}}" class="data-v-426a9ebe" u-i="426a9ebe-17,426a9ebe-14" bind:__l="__l" u-p="{{B}}"></up-icon></view></up-form-item></view></up-form><view class="row data-v-426a9ebe"><up-button wx:if="{{F}}" class="custom-style data-v-426a9ebe" u-i="426a9ebe-18" bind:__l="__l" u-p="{{F}}"></up-button></view><view class="data-v-426a9ebe"><qf-image-cropper wx:if="{{G}}" class="r data-v-426a9ebe" u-r="imgCropper" bindcancel="{{I}}" bindcrop="{{J}}" u-i="426a9ebe-19" bind:__l="__l" u-p="{{K}}"></qf-image-cropper></view><up-picker wx:if="{{N}}" class="data-v-426a9ebe" bindcancel="{{L}}" bindconfirm="{{M}}" u-i="426a9ebe-20" bind:__l="__l" u-p="{{N}}"></up-picker><up-picker wx:if="{{Q}}" class="data-v-426a9ebe" bindcancel="{{O}}" bindconfirm="{{P}}" u-i="426a9ebe-21" bind:__l="__l" u-p="{{Q}}"></up-picker><up-picker wx:if="{{T}}" class="data-v-426a9ebe" bindcancel="{{R}}" bindconfirm="{{S}}" u-i="426a9ebe-22" bind:__l="__l" u-p="{{T}}"></up-picker></view>
|
||||
@@ -0,0 +1,95 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.logincontent.data-v-426a9ebe {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background: #fff;
|
||||
}
|
||||
.logincontent .rightbox.data-v-426a9ebe {
|
||||
display: flex;
|
||||
}
|
||||
.logincontent .uploadwraper.data-v-426a9ebe {
|
||||
position: relative;
|
||||
width: 140rpx;
|
||||
height: 80rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
.logincontent .uploadwraper.data-v-426a9ebe .u-upload {
|
||||
width: 140rpx;
|
||||
height: 80rpx;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
opacity: 0;
|
||||
}
|
||||
.logincontent .uploadwraper.data-v-426a9ebe .dimg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
.logincontent .smsbox.data-v-426a9ebe .u-form-item:nth-child(4) .u-form-item__body__left {
|
||||
width: 240rpx !important;
|
||||
}
|
||||
.logincontent .smsbox.data-v-426a9ebe .u-form-item:nth-child(5) .u-form-item__body__left {
|
||||
width: 418rpx !important;
|
||||
}
|
||||
.logincontent.data-v-426a9ebe .u-form-item__body__left__content__label {
|
||||
font-size: 34rpx;
|
||||
color: #000;
|
||||
}
|
||||
.logincontent .title.data-v-426a9ebe {
|
||||
padding: 124rpx 0 64rpx 30rpx;
|
||||
font-size: 46rpx;
|
||||
font-stretch: normal;
|
||||
letter-spacing: 2rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.logincontent.data-v-426a9ebe .u-form {
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.logincontent .row.data-v-426a9ebe {
|
||||
margin-top: 60rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.logincontent .row .left.data-v-426a9ebe {
|
||||
flex: 1;
|
||||
color: #3cc7c0;
|
||||
text-align: left;
|
||||
}
|
||||
.logincontent .row .right.data-v-426a9ebe {
|
||||
flex: 1;
|
||||
color: #666;
|
||||
text-align: right;
|
||||
}
|
||||
.logincontent .row.data-v-426a9ebe .u-button--large .u-button__text {
|
||||
font-size: 36rpx !important;
|
||||
}
|
||||
.logincontent.data-v-426a9ebe .wrap {
|
||||
border-radius: 16rpx;
|
||||
overflow: hidden;
|
||||
border: none;
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
if (!Math) {
|
||||
tabBar();
|
||||
}
|
||||
const tabBar = () => "../../components/tabBar/tabBar.js";
|
||||
const _sfc_main = {
|
||||
__name: "case",
|
||||
setup(__props) {
|
||||
const src = common_vendor.ref("");
|
||||
common_vendor.onLoad((options) => {
|
||||
{
|
||||
const { envVersion } = common_vendor.index.getAccountInfoSync().miniProgram;
|
||||
let token = "";
|
||||
if (envVersion == "release") {
|
||||
token = common_vendor.index.getStorageSync("AUTH_TOKEN_CASEDATA");
|
||||
} else {
|
||||
token = common_vendor.index.getStorageSync("DEV_AUTH_TOKEN_CASEDATA");
|
||||
}
|
||||
src.value = "https://dev-caseplatform.igandan.com/web/home?token=" + token;
|
||||
}
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: src.value,
|
||||
b: common_vendor.p({
|
||||
value: 1
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-14eb7e01"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/case/case.js.map
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "互动病例",
|
||||
"usingComponents": {
|
||||
"tab-bar": "../../components/tabBar/tabBar"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="content data-v-14eb7e01"><view class="page data-v-14eb7e01"><web-view class="data-v-14eb7e01" src="{{a}}"></web-view></view><tab-bar wx:if="{{b}}" class="data-v-14eb7e01" u-i="14eb7e01-0" bind:__l="__l" u-p="{{b}}"></tab-bar></view>
|
||||
@@ -0,0 +1,7 @@
|
||||
|
||||
.page.data-v-14eb7e01{
|
||||
width:100%;
|
||||
height:calc(100vh - 100rpx);
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,205 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const utils_navTo = require("../../utils/navTo.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
|
||||
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
(_easycom_u_icon2 + _easycom_up__image2 + _easycom_up_icon2)();
|
||||
}
|
||||
const _easycom_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.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";
|
||||
if (!Math) {
|
||||
(navBar + _easycom_u_icon + _easycom_up__image + _easycom_up_icon + tabBar)();
|
||||
}
|
||||
const navBar = () => "../../components/navBar/navBar.js";
|
||||
const tabBar = () => "../../components/tabBar/tabBar.js";
|
||||
const _sfc_main = {
|
||||
__name: "caseTalk",
|
||||
setup(__props) {
|
||||
const numInfo = common_vendor.reactive({});
|
||||
const most_read_articles = common_vendor.ref([]);
|
||||
const new_articles = common_vendor.ref([]);
|
||||
const formatdate = (date) => {
|
||||
return common_vendor.dayjs(date).format("YYYY-MM-DD");
|
||||
};
|
||||
const goList = (type) => {
|
||||
if (type == "read") {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/specialList/specialList?is_selected=1"
|
||||
});
|
||||
} else {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/specialList/specialList"
|
||||
});
|
||||
}
|
||||
};
|
||||
const getStatic = () => {
|
||||
api_api.api.getExchangeStatic().then((res) => {
|
||||
let result = res.data.data;
|
||||
Object.assign(numInfo, result);
|
||||
});
|
||||
};
|
||||
const goDetail = (id) => {
|
||||
utils_navTo.navTo({
|
||||
url: `/pages/detail/detail?id=${id}&type=exchange`
|
||||
});
|
||||
};
|
||||
const videoErrorCallback = (e) => {
|
||||
common_vendor.index.showModal({
|
||||
content: e.target.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
};
|
||||
const searchList = async () => {
|
||||
let searchForm = {
|
||||
page: 1,
|
||||
page_size: 10
|
||||
};
|
||||
api_api.api.searchExchage({
|
||||
...searchForm
|
||||
}).then((res) => {
|
||||
new_articles.value = res.data.data.data;
|
||||
}).catch((err) => {
|
||||
});
|
||||
};
|
||||
const goodList = () => {
|
||||
api_api.api.searchExchageGood({
|
||||
is_selected: 1,
|
||||
limit: 5
|
||||
}).then((res) => {
|
||||
most_read_articles.value = res.data.data;
|
||||
});
|
||||
};
|
||||
common_vendor.onShow(() => {
|
||||
getStatic();
|
||||
goodList();
|
||||
searchList();
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
navName: "肝胆相照病例交流园地",
|
||||
type: "caseTalk"
|
||||
}),
|
||||
b: common_vendor.t(numInfo.exchange_num),
|
||||
c: common_vendor.t(numInfo.exchange_collect_num),
|
||||
d: common_vendor.t(numInfo.exchange_read_num),
|
||||
e: most_read_articles.value.length > 0
|
||||
}, most_read_articles.value.length > 0 ? {
|
||||
f: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
size: "16",
|
||||
color: "#3CC7C0"
|
||||
}),
|
||||
g: common_vendor.o(($event) => goList("read")),
|
||||
h: common_vendor.f(most_read_articles.value, (item, k0, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.exchange_title),
|
||||
b: item.exchange_id,
|
||||
c: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
i: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
size: "16",
|
||||
color: "#3CC7C0"
|
||||
}),
|
||||
j: common_vendor.o(($event) => goList("new")),
|
||||
k: common_vendor.f(new_articles.value, (item, k0, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.exchange_title),
|
||||
b: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
c: "4b2e7592-3-" + i0,
|
||||
d: common_vendor.p({
|
||||
src: item.avatar ? item.avatar : common_vendor.unref(common_assets.headImg),
|
||||
width: "46rpx",
|
||||
height: "46rpx",
|
||||
radius: "50%"
|
||||
}),
|
||||
e: common_vendor.t(item.user_name),
|
||||
f: common_vendor.t(item.hospital_name),
|
||||
g: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
h: common_vendor.t(item.exchange_content),
|
||||
i: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
j: item.exchange_content_image && item.exchange_content_image.length > 0
|
||||
}, item.exchange_content_image && item.exchange_content_image.length > 0 ? {
|
||||
k: common_vendor.f(item.exchange_content_image, (unit, k1, i1) => {
|
||||
return {
|
||||
a: "4b2e7592-4-" + i0 + "-" + i1,
|
||||
b: common_vendor.p({
|
||||
src: unit,
|
||||
radius: "10",
|
||||
width: "220rpx",
|
||||
height: "220rpx"
|
||||
})
|
||||
};
|
||||
}),
|
||||
l: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
|
||||
} : {}, {
|
||||
m: item.exchange_content_video && item.exchange_content_video.length > 0
|
||||
}, item.exchange_content_video && item.exchange_content_video.length > 0 ? {
|
||||
n: common_vendor.f(item.exchange_content_video, (videoCell, index, i1) => {
|
||||
return {
|
||||
a: index,
|
||||
b: videoCell,
|
||||
c: common_vendor.o(videoErrorCallback, index)
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
o: item.label && item.label.length > 0
|
||||
}, item.label && item.label.length > 0 ? {
|
||||
p: common_vendor.f(item.label, (cell, k1, i1) => {
|
||||
return {
|
||||
a: common_vendor.t(cell.label_name),
|
||||
b: cell.exchange_label_id
|
||||
};
|
||||
}),
|
||||
q: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
|
||||
} : {}, {
|
||||
r: "4b2e7592-5-" + i0,
|
||||
s: common_vendor.t(item.read_num),
|
||||
t: "4b2e7592-6-" + i0,
|
||||
v: common_vendor.t(item.collect_num),
|
||||
w: "4b2e7592-7-" + i0,
|
||||
x: common_vendor.t(item.comment_num),
|
||||
y: "4b2e7592-8-" + i0,
|
||||
z: common_vendor.t(formatdate(item.push_date)),
|
||||
A: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
B: item.exchange_id
|
||||
});
|
||||
}),
|
||||
l: common_vendor.p({
|
||||
name: "eye",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
m: common_vendor.p({
|
||||
name: "heart",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
n: common_vendor.p({
|
||||
name: "chat",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
o: common_vendor.p({
|
||||
name: "clock",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
p: common_vendor.p({
|
||||
value: 2
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4b2e7592"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/caseTalk/caseTalk.js.map
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"u-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
|
||||
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
|
||||
"up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
|
||||
"nav-bar": "../../components/navBar/navBar",
|
||||
"tab-bar": "../../components/tabBar/tabBar"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="upage data-v-4b2e7592"><nav-bar wx:if="{{a}}" class="data-v-4b2e7592" u-i="4b2e7592-0" bind:__l="__l" u-p="{{a}}"></nav-bar><view class="databox data-v-4b2e7592"><view class="cell data-v-4b2e7592"><view class="num data-v-4b2e7592">{{b}}</view><view class="name data-v-4b2e7592">病例数</view></view><view class="cell data-v-4b2e7592"><view class="num data-v-4b2e7592">{{c}}</view><view class="name data-v-4b2e7592">互动数</view></view><view class="cell data-v-4b2e7592"><view class="num data-v-4b2e7592">{{d}}</view><view class="name data-v-4b2e7592">浏览量</view></view></view><view class="bar data-v-4b2e7592"></view><view class="box data-v-4b2e7592"><view wx:if="{{e}}" class="special mostread data-v-4b2e7592"><view class="titlebox data-v-4b2e7592"><view class="title data-v-4b2e7592">精选病例</view><view class="more data-v-4b2e7592" bindtap="{{g}}"><view class="morename data-v-4b2e7592">查看更多</view><u-icon wx:if="{{f}}" class="data-v-4b2e7592" u-i="4b2e7592-1" bind:__l="__l" u-p="{{f}}"></u-icon></view></view><view class="list data-v-4b2e7592"><view wx:for="{{h}}" wx:for-item="item" wx:key="b" class="cell data-v-4b2e7592" bindtap="{{item.c}}"><view class="circle data-v-4b2e7592"></view><view class="title ellipsis-two-lines data-v-4b2e7592">{{item.a}}</view></view></view></view><view class="bar data-v-4b2e7592"></view><view class="record special data-v-4b2e7592"><view class="titlebox data-v-4b2e7592"><view class="title data-v-4b2e7592">最新收录</view><view class="more data-v-4b2e7592" bindtap="{{j}}"><view class="morename data-v-4b2e7592">查看更多</view><u-icon wx:if="{{i}}" class="data-v-4b2e7592" u-i="4b2e7592-2" bind:__l="__l" u-p="{{i}}"></u-icon></view></view><view class="list data-v-4b2e7592"><view wx:for="{{k}}" wx:for-item="item" wx:key="B" class="cell data-v-4b2e7592"><view class="title ellipsis-two-lines data-v-4b2e7592" bindtap="{{item.b}}">{{item.a}}</view><view class="doctor data-v-4b2e7592" bindtap="{{item.g}}"><up--image wx:if="{{item.d}}" class="data-v-4b2e7592" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></up--image><view class="name data-v-4b2e7592">{{item.e}}({{item.f}})</view></view><view class="content data-v-4b2e7592" bindtap="{{item.i}}">{{item.h}}</view><view wx:if="{{item.j}}" class="imgbox data-v-4b2e7592" bindtap="{{item.l}}"><view wx:for="{{item.k}}" wx:for-item="unit" class="imgcell data-v-4b2e7592"><up--image wx:if="{{unit.b}}" class="data-v-4b2e7592" u-s="{{['d']}}" u-i="{{unit.a}}" bind:__l="__l" u-p="{{unit.b}}"><view class="data-v-4b2e7592" slot="error" style="font-size:24rpx">加载失败</view></up--image></view></view><view class="videocon data-v-4b2e7592"><view wx:if="{{item.m}}" class="imgbox data-v-4b2e7592"><video wx:for="{{item.n}}" wx:for-item="videoCell" wx:key="a" class="myVideo data-v-4b2e7592" src="{{videoCell.b}}" binderror="{{videoCell.c}}" controls></video></view></view><view wx:if="{{item.o}}" class="tagbox data-v-4b2e7592" bindtap="{{item.q}}"><view wx:for="{{item.p}}" wx:for-item="cell" wx:key="b" class="tag data-v-4b2e7592">{{cell.a}}</view></view><view class="deal data-v-4b2e7592" bindtap="{{item.A}}"><view class="left data-v-4b2e7592"><view class="eyebox item data-v-4b2e7592"><up-icon wx:if="{{l}}" class="data-v-4b2e7592" u-i="{{item.r}}" bind:__l="__l" u-p="{{l}}"></up-icon><view class="num data-v-4b2e7592">{{item.s}}</view></view><view class="collect item data-v-4b2e7592"><up-icon wx:if="{{m}}" class="data-v-4b2e7592" u-i="{{item.t}}" bind:__l="__l" u-p="{{m}}"></up-icon><view class="num data-v-4b2e7592">{{item.v}}</view></view><view class="chat item data-v-4b2e7592"><up-icon wx:if="{{n}}" class="data-v-4b2e7592" u-i="{{item.w}}" bind:__l="__l" u-p="{{n}}"></up-icon><view class="num data-v-4b2e7592">{{item.x}}</view></view></view><view class="time data-v-4b2e7592"><up-icon wx:if="{{o}}" class="data-v-4b2e7592" u-i="{{item.y}}" bind:__l="__l" u-p="{{o}}"></up-icon><view class="num data-v-4b2e7592">{{item.z}}</view></view></view></view></view></view></view></view><tab-bar wx:if="{{p}}" class="data-v-4b2e7592" u-i="4b2e7592-9" bind:__l="__l" u-p="{{p}}"></tab-bar>
|
||||
@@ -0,0 +1,187 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.upage.data-v-4b2e7592 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: calc(100vh - 100rpx);
|
||||
}
|
||||
.mostread .cell.data-v-4b2e7592 {
|
||||
padding: 22rpx 0rpx !important;
|
||||
margin: 0 30rpx;
|
||||
display: flex;
|
||||
}
|
||||
.box.data-v-4b2e7592 {
|
||||
flex: 1;
|
||||
padding-bottom: 30rpx;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.myVideo.data-v-4b2e7592 {
|
||||
width: 100%;
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
.deal.data-v-4b2e7592 {
|
||||
padding-top: 20rpx;
|
||||
display: flex;
|
||||
color: #4B5563;
|
||||
font-size: 24rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.deal .left.data-v-4b2e7592 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.deal .left .item.data-v-4b2e7592 {
|
||||
width: 100rpx;
|
||||
}
|
||||
.deal .collect.data-v-4b2e7592 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.deal .eyebox.data-v-4b2e7592,
|
||||
.deal .chat.data-v-4b2e7592 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.deal .time.data-v-4b2e7592 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.deal .num.data-v-4b2e7592 {
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
.tagbox.data-v-4b2e7592 {
|
||||
margin-top: 24rpx;
|
||||
display: flex;
|
||||
}
|
||||
.tagbox .tag.data-v-4b2e7592 {
|
||||
height: 54rpx;
|
||||
padding: 0 28rpx;
|
||||
background: #ECFAF9;
|
||||
border-radius: 30rpx;
|
||||
margin-right: 12rpx;
|
||||
font-size: 27rpx;
|
||||
color: #3CC7C0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.doctor.data-v-4b2e7592 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.record.data-v-4b2e7592 {
|
||||
padding-top: 30rpx;
|
||||
}
|
||||
.record .list.data-v-4b2e7592 {
|
||||
margin: 30rpx 30rpx;
|
||||
}
|
||||
.record .list .name.data-v-4b2e7592 {
|
||||
padding: 20rpx 0 20rpx 15rpx;
|
||||
font-size: 27rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.record .list .content.data-v-4b2e7592 {
|
||||
font-size: 27rpx;
|
||||
color: #666666;
|
||||
line-height: 38rpx;
|
||||
}
|
||||
.record .list .imgbox.data-v-4b2e7592 {
|
||||
display: flex;
|
||||
margin-top: 24rpx;
|
||||
}
|
||||
.record .list .imgbox .imgcell.data-v-4b2e7592 {
|
||||
width: 220rpx;
|
||||
height: 220rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.record .list .imgbox .imgcell.data-v-4b2e7592:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
.special.data-v-4b2e7592 {
|
||||
padding-top: 30rpx;
|
||||
}
|
||||
.special .list.data-v-4b2e7592 {
|
||||
margin: 8rpx 0rpx 0;
|
||||
}
|
||||
.special .list .cell.data-v-4b2e7592 {
|
||||
padding: 22rpx 30rpx;
|
||||
border-bottom: 2rpx solid #f3f4f6;
|
||||
}
|
||||
.special .list .cell .circle.data-v-4b2e7592 {
|
||||
margin-top: 15rpx;
|
||||
width: 15rpx;
|
||||
height: 15rpx;
|
||||
background: #3cc7c0;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.special .list .cell .title.data-v-4b2e7592 {
|
||||
margin-left: 10rpx;
|
||||
font-size: 32rpx;
|
||||
color: #000000;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.special .list .cell.data-v-4b2e7592:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.titlebox.data-v-4b2e7592 {
|
||||
margin: 0 30rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.titlebox .more.data-v-4b2e7592 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.titlebox .more .morename.data-v-4b2e7592 {
|
||||
margin-right: 10rpx;
|
||||
font-size: 28rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.bar.data-v-4b2e7592 {
|
||||
height: 16rpx;
|
||||
background: #f3f4f6;
|
||||
}
|
||||
.databox.data-v-4b2e7592 {
|
||||
height: 162rpx;
|
||||
background: #ffffff;
|
||||
display: flex;
|
||||
padding: 0 30rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.databox .cell.data-v-4b2e7592 {
|
||||
flex: 1;
|
||||
padding: 35rpx 0;
|
||||
text-align: center;
|
||||
}
|
||||
.databox .cell .num.data-v-4b2e7592 {
|
||||
font-size: 38rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.databox .cell .name.data-v-4b2e7592 {
|
||||
margin-top: 18rpx;
|
||||
font-size: 28rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
if (!Array) {
|
||||
const _easycom_u__image2 = common_vendor.resolveComponent("u--image");
|
||||
_easycom_u__image2();
|
||||
}
|
||||
const _easycom_u__image = () => "../../node-modules/uview-plus/components/u-image/u-image.js";
|
||||
if (!Math) {
|
||||
(backNav + _easycom_u__image)();
|
||||
}
|
||||
const backNav = () => "../../components/backNav/backNav.js";
|
||||
const _sfc_main = {
|
||||
__name: "certImg",
|
||||
setup(__props) {
|
||||
const src = common_vendor.ref("");
|
||||
common_vendor.onLoad((options) => {
|
||||
if (options.src) {
|
||||
src.value = options.src;
|
||||
} else {
|
||||
src.value = "https://cn.bing.com//th?id=OHR.SanMiguelAzores_ZH-CN2511982585_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp";
|
||||
}
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
navName: "病例收录证书"
|
||||
}),
|
||||
b: common_vendor.p({
|
||||
showLoading: true,
|
||||
src: src.value,
|
||||
width: "100%",
|
||||
mode: "widthFix"
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-f07c1461"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/certImg/certImg.js.map
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"u--image": "../../node-modules/uview-plus/components/u-image/u-image",
|
||||
"back-nav": "../../components/backNav/backNav"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<back-nav wx:if="{{a}}" class="data-v-f07c1461" u-i="f07c1461-0" bind:__l="__l" u-p="{{a}}"></back-nav><view class="imgbox data-v-f07c1461"><u--image wx:if="{{b}}" class="data-v-f07c1461" u-i="f07c1461-1" bind:__l="__l" u-p="{{b}}"></u--image></view>
|
||||
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.imgbox.data-v-f07c1461 {
|
||||
margin-top: -30rpx;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
+1057
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"polyv-player": "plugin://polyv-player/player",
|
||||
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
|
||||
"up-input": "../../node-modules/uview-plus/components/u-input/u-input",
|
||||
"up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
|
||||
"up-parse": "../../node-modules/uview-plus/components/u-parse/u-parse",
|
||||
"up-radio": "../../node-modules/uview-plus/components/u-radio/u-radio",
|
||||
"up-radio-group": "../../node-modules/uview-plus/components/u-radio-group/u-radio-group",
|
||||
"up-image": "../../node-modules/uview-plus/components/u-image/u-image",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
|
||||
"up--textarea": "../../node-modules/uview-plus/components/u--textarea/u--textarea",
|
||||
"up-upload": "../../node-modules/uview-plus/components/u-upload/u-upload",
|
||||
"up-popup": "../../node-modules/uview-plus/components/u-popup/u-popup",
|
||||
"up-overlay": "../../node-modules/uview-plus/components/u-overlay/u-overlay",
|
||||
"back-nav": "../../components/backNav/backNav"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,491 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.videobox.data-v-eca06f3c {
|
||||
padding: 20rpx 30rpx;
|
||||
}
|
||||
.videobox .cloumn.data-v-eca06f3c {
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
.videobox.data-v-eca06f3c .video {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.videobox .con.data-v-eca06f3c .img {
|
||||
width: 100%;
|
||||
}
|
||||
.zanboxpop.data-v-eca06f3c {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
}
|
||||
.zanboxpop .zanwraper.data-v-eca06f3c {
|
||||
width: 630rpx;
|
||||
margin: 0 auto;
|
||||
padding-bottom: 50rpx;
|
||||
background: #f5f6f9;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.zanboxpop .zanwraper .title.data-v-eca06f3c {
|
||||
margin-top: 48rpx;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
font-size: 36rpx;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
}
|
||||
.zanboxpop .zanwraper .content.data-v-eca06f3c {
|
||||
padding: 30rpx 0;
|
||||
background: #f5f6f9;
|
||||
text-align: center;
|
||||
}
|
||||
.zanboxpop .zanwraper .count.data-v-eca06f3c {
|
||||
margin-top: 24rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
}
|
||||
.zanboxpop .zanwraper .count .num.data-v-eca06f3c {
|
||||
color: #ff0000;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.zanboxpop .zanwraper .count .earn.data-v-eca06f3c {
|
||||
font-size: 32rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox.data-v-eca06f3c {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
margin: 30rpx 0px 40rpx;
|
||||
padding: 0 40rpx;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox .minus.data-v-eca06f3c {
|
||||
flex-shrink: 0;
|
||||
margin-left: 10rp;
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
font-size: 60rpx;
|
||||
color: #333;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #ffffff;
|
||||
border-radius: 12rpx;
|
||||
border: 2rpx solid #e9e9e9;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox .add.data-v-eca06f3c {
|
||||
flex-shrink: 0;
|
||||
width: 90rpx;
|
||||
margin-left: 10rpx;
|
||||
height: 90rpx;
|
||||
font-size: 60rpx;
|
||||
color: #333;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
background: #3cc7c0;
|
||||
border-radius: 12rpx;
|
||||
border: 2rpx solid #3cc7c0;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox.data-v-eca06f3c .u-input__content__field-wrapper__field {
|
||||
height: 60rpx;
|
||||
font-size: 34rpx !important;
|
||||
text-align: center !important;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox.data-v-eca06f3c .u-input {
|
||||
background: #f2f2f2;
|
||||
width: 200rpx !important;
|
||||
flex: none;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox.data-v-eca06f3c .u-input--radius {
|
||||
border-radius: 24rrpx;
|
||||
}
|
||||
.zanboxpop .zanwraper .btnbox.data-v-eca06f3c {
|
||||
margin: 0px 40rpx 0px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.zanboxpop .zanwraper .btnbox .cancle.data-v-eca06f3c {
|
||||
color: rgba(0, 0, 0, 0.3);
|
||||
width: 256rpx;
|
||||
height: 88rpx;
|
||||
background: #f5f6f9;
|
||||
border-radius: 25px;
|
||||
border: 2rpx solid rgba(0, 0, 0, 0.15);
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.zanboxpop .zanwraper .btnbox .ok.data-v-eca06f3c {
|
||||
color: #fff;
|
||||
width: 256rpx;
|
||||
height: 88rpx;
|
||||
background: #3cc7c0;
|
||||
border-radius: 25px;
|
||||
border: 2rpx solid #3cc7c0;
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.commentPop.data-v-eca06f3c {
|
||||
height: calc(100vh - 400rpx);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.commentPop .commentScroll.data-v-eca06f3c {
|
||||
flex: 1;
|
||||
overflow-y: scroll;
|
||||
margin-bottom: 96rpx;
|
||||
}
|
||||
.commentPop .bottom.data-v-eca06f3c {
|
||||
border-top: 2rpx solid #efefef;
|
||||
height: 96rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #fff;
|
||||
}
|
||||
.commentPop .bottom.data-v-eca06f3c .u-input__content__field-wrapper__field {
|
||||
height: 50rpx;
|
||||
}
|
||||
.commentPop .bottom.data-v-eca06f3c .u-input {
|
||||
background: #f2f2f2;
|
||||
}
|
||||
.commentPop .bottom.data-v-eca06f3c .u-input--radius {
|
||||
border-radius: 40rpx;
|
||||
}
|
||||
.commentPop .title.data-v-eca06f3c {
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
border-bottom: 2rpx solid #e7e7e7;
|
||||
}
|
||||
.commentPop .title .close.data-v-eca06f3c {
|
||||
position: absolute;
|
||||
right: 20rpx;
|
||||
top: 30rpx;
|
||||
}
|
||||
.commentPop .unit .item.data-v-eca06f3c {
|
||||
margin-top: 12rpx;
|
||||
border-bottom: 2rpx solid #e7e7e7;
|
||||
}
|
||||
.dealbox .dealcell.data-v-eca06f3c {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 112rpx;
|
||||
font-size: 32rpx;
|
||||
color: rgba(0, 0, 0, 0.9);
|
||||
border-bottom: 2rpx solid #efefef;
|
||||
}
|
||||
.expand.data-v-eca06f3c {
|
||||
display: flex;
|
||||
font-size: 32rpx;
|
||||
padding: 12rpx 0;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.commentcon .item.data-v-eca06f3c {
|
||||
display: flex;
|
||||
padding: 30rpx 35rpx 16rpx;
|
||||
}
|
||||
.commentcon .item .info.data-v-eca06f3c {
|
||||
margin-left: 24rpx;
|
||||
flex: 1;
|
||||
}
|
||||
.commentcon .item .info .user.data-v-eca06f3c {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.commentcon .item .info .user .name.data-v-eca06f3c {
|
||||
font-size: 34rpx;
|
||||
}
|
||||
.commentcon .item .info .user .dot.data-v-eca06f3c {
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.commentcon .item .info .question.data-v-eca06f3c {
|
||||
margin-top: 15rpx;
|
||||
font-size: 30rpx;
|
||||
margin-bottom: 0px;
|
||||
line-height: 54rpx;
|
||||
color: #333;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
}
|
||||
.commentcon .item .info .commentImg.data-v-eca06f3c {
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
.commentcon .item .info .date.data-v-eca06f3c {
|
||||
font-size: 30rpx;
|
||||
color: #666666;
|
||||
line-height: 34px;
|
||||
}
|
||||
.comnum.data-v-eca06f3c {
|
||||
padding: 0 30rpx;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
height: 100rpx;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #e7e7e7;
|
||||
}
|
||||
.comnum .imgcon.data-v-eca06f3c {
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.comnum.data-v-eca06f3c .u-image {
|
||||
background: none !important;
|
||||
}
|
||||
.comnum .num.data-v-eca06f3c {
|
||||
margin-left: 10rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.content.data-v-eca06f3c {
|
||||
background-color: #fff;
|
||||
}
|
||||
.votebox.data-v-eca06f3c {
|
||||
padding: 30rpx;
|
||||
background: #fff;
|
||||
}
|
||||
.votebox.data-v-eca06f3c .u-radio__label-wrap {
|
||||
flex: 1;
|
||||
}
|
||||
.votebox.data-v-eca06f3c .u-radio {
|
||||
padding: 16rpx;
|
||||
}
|
||||
.votebox .group.data-v-eca06f3c {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.votebox .group .row.data-v-eca06f3c {
|
||||
border-radius: 20rpx;
|
||||
border: 2rpx solid #B8B8B8;
|
||||
background: #fff;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
.votebox .btn.data-v-eca06f3c {
|
||||
margin: 50rpx 40rpx 0;
|
||||
height: 92rpx;
|
||||
background: #3cc7c0;
|
||||
border-radius: 46rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 32rpx;
|
||||
color: #ffffff;
|
||||
}
|
||||
.votebox .name.data-v-eca06f3c {
|
||||
font-size: 36rpx;
|
||||
color: #000000;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.votebox .title.data-v-eca06f3c {
|
||||
margin-top: 24rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333333;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.votebox .option.data-v-eca06f3c {
|
||||
margin-top: 26rpx;
|
||||
}
|
||||
.votebox .option .row.data-v-eca06f3c {
|
||||
font-size: 27rpx;
|
||||
color: #4b5563;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 10rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.votebox .option .line.data-v-eca06f3c {
|
||||
width: 100%;
|
||||
height: 15rpx;
|
||||
background: #f3f4f6;
|
||||
border-radius: 19rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
.votebox .option .line .inner.data-v-eca06f3c {
|
||||
height: 15rpx;
|
||||
background: #3cc7c0;
|
||||
border-radius: 19rpx;
|
||||
}
|
||||
.imgboxshang.data-v-eca06f3c {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.imgbox.data-v-eca06f3c {
|
||||
margin: 0 30rpx 30rpx;
|
||||
}
|
||||
.imgbox .imgunit.data-v-eca06f3c {
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
position: relative;
|
||||
}
|
||||
.imgbox .imgunit .close.data-v-eca06f3c {
|
||||
position: absolute;
|
||||
top: 0rpx;
|
||||
right: 0;
|
||||
}
|
||||
.poptitle.data-v-eca06f3c {
|
||||
height: 88rpx;
|
||||
border-bottom: 1rpx solid #e7e7e7;
|
||||
}
|
||||
.sendbox.data-v-eca06f3c {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: 0 30rpx 30rpx;
|
||||
}
|
||||
.sendbox .btn.data-v-eca06f3c {
|
||||
width: 120rpx;
|
||||
height: 58rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #3cc7c0;
|
||||
font-weight: 400;
|
||||
font-size: 30rpx;
|
||||
color: #fff;
|
||||
border-radius: 12rpx;
|
||||
}
|
||||
.wraper.data-v-eca06f3c {
|
||||
margin: 0rpx 12rpx;
|
||||
}
|
||||
.desc.data-v-eca06f3c {
|
||||
padding-bottom: 80rpx;
|
||||
}
|
||||
.bottom.data-v-eca06f3c {
|
||||
position: fixed;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 40rpx 30rpx;
|
||||
align-items: center;
|
||||
border-top: 2rpx solid #f9fafb;
|
||||
background: #fff;
|
||||
bottom: 0;
|
||||
}
|
||||
.bottom.data-v-eca06f3c .u-image {
|
||||
background: none !important;
|
||||
}
|
||||
.bottom.data-v-eca06f3c .placeholderClass {
|
||||
font-size: 30rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
.bottom .right.data-v-eca06f3c {
|
||||
margin-left: 20rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
}
|
||||
.bottom .right .imgbox.data-v-eca06f3c {
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.bottom .iptbox.data-v-eca06f3c {
|
||||
flex: 1;
|
||||
padding-left: 30rpx;
|
||||
background: #f3f4f6;
|
||||
border-radius: 38px;
|
||||
height: 77rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.bottom .iptbox .ipt.data-v-eca06f3c {
|
||||
margin-left: 15rpx;
|
||||
}
|
||||
.bar.data-v-eca06f3c {
|
||||
width: 100%;
|
||||
background: #f9fafb;
|
||||
height: 20rpx;
|
||||
}
|
||||
.box.data-v-eca06f3c {
|
||||
background: #fff;
|
||||
/* height: calc(100vh - 220rpx);
|
||||
overflow-y: scroll;
|
||||
-webkit-overflow-scrolling: touch; */
|
||||
}
|
||||
.box .title.data-v-eca06f3c {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding: 35rpx 30rpx 0;
|
||||
background: #fff;
|
||||
margin-top: -40rpx;
|
||||
font-weight: 400;
|
||||
font-size: 38rpx;
|
||||
color: #111827;
|
||||
line-height: 54rpx;
|
||||
}
|
||||
.box .info.data-v-eca06f3c {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 20rpx;
|
||||
padding: 0 30rpx;
|
||||
font-size: 28rpx;
|
||||
color: #4b5563;
|
||||
line-height: 38rpx;
|
||||
}
|
||||
.box .info.data-v-eca06f3c .u-image {
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.box .info .name.data-v-eca06f3c {
|
||||
margin-left: 15rpx;
|
||||
}
|
||||
.deal.data-v-eca06f3c {
|
||||
margin-top: 12rpx;
|
||||
padding: 0 30rpx 20rpx;
|
||||
display: flex;
|
||||
color: #6b7280;
|
||||
font-size: 24rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.deal .left.data-v-eca06f3c {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.deal .collect.data-v-eca06f3c {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.deal .eyebox.data-v-eca06f3c {
|
||||
width: 160rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.deal .time.data-v-eca06f3c {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.deal .num.data-v-eca06f3c {
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
+194
@@ -0,0 +1,194 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const utils_navTo = require("../../utils/navTo.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
if (!Array) {
|
||||
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
|
||||
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
|
||||
(_easycom_up__image2 + _easycom_u_icon2)();
|
||||
}
|
||||
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.js";
|
||||
const _easycom_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
|
||||
if (!Math) {
|
||||
(navBar + _easycom_up__image + _easycom_u_icon + tabBar)();
|
||||
}
|
||||
const tabBar = () => "../../components/tabBar/tabBar.js";
|
||||
const navBar = () => "../../components/navBar/navBar.js";
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
setup(__props) {
|
||||
common_vendor.ref(null);
|
||||
common_vendor.ref([]);
|
||||
const most_read_articles = common_vendor.ref([]);
|
||||
const new_articles = common_vendor.ref([]);
|
||||
const recommend_doctor = common_vendor.ref([]);
|
||||
const recommend_hospital = common_vendor.ref([]);
|
||||
const numInfo = common_vendor.reactive({});
|
||||
const goDetail = (id) => {
|
||||
utils_navTo.navTo({
|
||||
url: `/pages/detail/detail?id=${id}&type=article`
|
||||
});
|
||||
};
|
||||
const goListBy = (id, name, type) => {
|
||||
let url = "";
|
||||
if (type == "doctor") {
|
||||
url = `/pages/search/search?doctor_id=${id}&doctor_name=${name}`;
|
||||
} else {
|
||||
url = `/pages/search/search?hospital_id=${id}&hospital_name=${name}`;
|
||||
}
|
||||
utils_navTo.navTo({
|
||||
url
|
||||
});
|
||||
};
|
||||
const getData = async () => {
|
||||
const { data } = await api_api.api.getHomeData();
|
||||
if (data.code == 200) {
|
||||
most_read_articles.value = data.data.most_read_articles;
|
||||
new_articles.value = data.data.new_articles;
|
||||
recommend_doctor.value = data.data.recommend_doctor;
|
||||
recommend_hospital.value = data.data.recommend_hospital;
|
||||
}
|
||||
};
|
||||
const getStatic = () => {
|
||||
api_api.api.getHomeStatics().then((res) => {
|
||||
let result = res.data.data;
|
||||
Object.assign(numInfo, result);
|
||||
});
|
||||
};
|
||||
const goList = (type) => {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/search/search?order=" + type
|
||||
});
|
||||
};
|
||||
const goVideo = () => {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/videoList/videoList"
|
||||
});
|
||||
};
|
||||
const goSick = () => {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/sickList/sickList"
|
||||
});
|
||||
};
|
||||
const searchDoctor = () => {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/searchList/searchList?type=doctor&name=医生&id="
|
||||
});
|
||||
};
|
||||
const goHospital = () => {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/searchList/searchList?type=hospital&name=医院&id="
|
||||
});
|
||||
};
|
||||
common_vendor.onShow(() => {
|
||||
getStatic();
|
||||
getData();
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
type: "home"
|
||||
}),
|
||||
b: common_vendor.t(numInfo.article_num),
|
||||
c: common_vendor.t(numInfo.video_num),
|
||||
d: common_vendor.t(numInfo.video_read_num && numInfo.article_read_num ? numInfo.video_read_num + numInfo.article_read_num : 0),
|
||||
e: common_vendor.o(goVideo),
|
||||
f: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.videoImg),
|
||||
radius: "20rpx",
|
||||
width: "330rpx",
|
||||
height: "176rpx"
|
||||
}),
|
||||
g: common_vendor.o(goSick),
|
||||
h: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.sickImg),
|
||||
width: "330rpx",
|
||||
radius: "20rpx",
|
||||
height: "176rpx"
|
||||
}),
|
||||
i: common_vendor.o(goHospital),
|
||||
j: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.hospitalImg),
|
||||
radius: "20rpx",
|
||||
width: "330rpx",
|
||||
height: "176rpx"
|
||||
}),
|
||||
k: common_vendor.o(searchDoctor),
|
||||
l: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.doctorImg),
|
||||
width: "330rpx",
|
||||
radius: "20rpx",
|
||||
height: "176rpx"
|
||||
}),
|
||||
m: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
size: "16",
|
||||
color: "#3CC7C0"
|
||||
}),
|
||||
n: common_vendor.o(($event) => goList("new")),
|
||||
o: common_vendor.f(new_articles.value, (item, k0, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.article_title),
|
||||
b: common_vendor.f(item.author, (tag, k1, i1) => {
|
||||
return {
|
||||
a: common_vendor.t(tag.doctor_name),
|
||||
b: tag.author_id
|
||||
};
|
||||
}),
|
||||
c: item.article_id,
|
||||
d: common_vendor.o(($event) => goDetail(item.article_id), item.article_id)
|
||||
};
|
||||
}),
|
||||
p: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
size: "16",
|
||||
color: "#3CC7C0"
|
||||
}),
|
||||
q: common_vendor.o(($event) => goList("read")),
|
||||
r: common_vendor.f(most_read_articles.value, (item, k0, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.article_title),
|
||||
b: common_vendor.f(item.author, (tag, k1, i1) => {
|
||||
return {
|
||||
a: common_vendor.t(tag.doctor_name),
|
||||
b: tag.author_id
|
||||
};
|
||||
}),
|
||||
c: item.article_id,
|
||||
d: common_vendor.o(($event) => goDetail(item.article_id), item.article_id)
|
||||
};
|
||||
}),
|
||||
s: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
size: "16",
|
||||
color: "#3CC7C0"
|
||||
}),
|
||||
t: common_vendor.o(goHospital),
|
||||
v: common_vendor.f(recommend_hospital.value, (item, k0, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.hospital_name),
|
||||
b: item.hospital_id,
|
||||
c: common_vendor.o(($event) => goListBy(item.hospital_id, item.hospital_name, "hospital"), item.hospital_id)
|
||||
};
|
||||
}),
|
||||
w: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
size: "16",
|
||||
color: "#3CC7C0"
|
||||
}),
|
||||
x: common_vendor.o(searchDoctor),
|
||||
y: common_vendor.f(recommend_doctor.value, (item, k0, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.doctor_name),
|
||||
b: item.doctor_id,
|
||||
c: common_vendor.o(($event) => goListBy(item.doctor_id, item.doctor_name, "doctor"), item.doctor_id)
|
||||
};
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1cf27b2a"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
|
||||
"u-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
|
||||
"tab-bar": "../../components/tabBar/tabBar",
|
||||
"nav-bar": "../../components/navBar/navBar"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<nav-bar wx:if="{{a}}" class="data-v-1cf27b2a" u-i="1cf27b2a-0" bind:__l="__l" u-p="{{a}}"></nav-bar><view class="page data-v-1cf27b2a"><view class="databox data-v-1cf27b2a"><view class="cell data-v-1cf27b2a"><view class="num data-v-1cf27b2a">{{b}}</view><view class="name data-v-1cf27b2a">文章</view></view><view class="cell data-v-1cf27b2a"><view class="num data-v-1cf27b2a">{{c}}</view><view class="name data-v-1cf27b2a">视频</view></view><view class="cell data-v-1cf27b2a"><view class="num data-v-1cf27b2a">{{d}}</view><view class="name data-v-1cf27b2a">阅读量</view></view></view><view class="kubox data-v-1cf27b2a"><view class="row data-v-1cf27b2a"><up--image wx:if="{{f}}" class="data-v-1cf27b2a" bindclick="{{e}}" u-i="1cf27b2a-1" bind:__l="__l" u-p="{{f}}"></up--image><up--image wx:if="{{h}}" class="data-v-1cf27b2a" bindclick="{{g}}" u-i="1cf27b2a-2" bind:__l="__l" u-p="{{h}}"></up--image></view><view class="row data-v-1cf27b2a" style="margin-top:30rpx"><up--image wx:if="{{j}}" class="data-v-1cf27b2a" bindclick="{{i}}" u-i="1cf27b2a-3" bind:__l="__l" u-p="{{j}}"></up--image><up--image wx:if="{{l}}" class="data-v-1cf27b2a" bindclick="{{k}}" u-i="1cf27b2a-4" bind:__l="__l" u-p="{{l}}"></up--image></view></view><view class="newsbox data-v-1cf27b2a"><view class="titlebox data-v-1cf27b2a"><view class="title data-v-1cf27b2a">最新上线</view><view class="more data-v-1cf27b2a" bindtap="{{n}}"><view class="morename data-v-1cf27b2a">查看更多</view><u-icon wx:if="{{m}}" class="data-v-1cf27b2a" u-i="1cf27b2a-5" bind:__l="__l" u-p="{{m}}"></u-icon></view></view><view class="listbox data-v-1cf27b2a"><view wx:for="{{o}}" wx:for-item="item" wx:key="c" class="cell data-v-1cf27b2a" bindtap="{{item.d}}"><view class="circle data-v-1cf27b2a"></view><view class="info data-v-1cf27b2a"><view class="name data-v-1cf27b2a">{{item.a}}</view><view class="tagsbox data-v-1cf27b2a"><view wx:for="{{item.b}}" wx:for-item="tag" wx:key="b" class="tag data-v-1cf27b2a">{{tag.a}}</view></view></view></view></view></view><view class="newsbox data-v-1cf27b2a"><view class="titlebox data-v-1cf27b2a"><view class="title data-v-1cf27b2a">最多阅读</view><view class="more data-v-1cf27b2a" bindtap="{{q}}"><view class="morename data-v-1cf27b2a">查看更多</view><u-icon wx:if="{{p}}" class="data-v-1cf27b2a" u-i="1cf27b2a-6" bind:__l="__l" u-p="{{p}}"></u-icon></view></view><view class="listbox data-v-1cf27b2a"><view wx:for="{{r}}" wx:for-item="item" wx:key="c" class="cell data-v-1cf27b2a" bindtap="{{item.d}}"><view class="circle data-v-1cf27b2a"></view><view class="info data-v-1cf27b2a"><view class="name data-v-1cf27b2a">{{item.a}}</view><view class="tagsbox data-v-1cf27b2a"><view wx:for="{{item.b}}" wx:for-item="tag" wx:key="b" class="tag data-v-1cf27b2a">{{tag.a}}</view></view></view></view></view></view><view class="recbox data-v-1cf27b2a"><view class="titlebox data-v-1cf27b2a"><view class="title data-v-1cf27b2a">医院病例库推荐</view><view class="more data-v-1cf27b2a" bindtap="{{t}}"><view class="morename data-v-1cf27b2a">查看更多</view><u-icon wx:if="{{s}}" class="data-v-1cf27b2a" u-i="1cf27b2a-7" bind:__l="__l" u-p="{{s}}"></u-icon></view></view><view class="list data-v-1cf27b2a"><view wx:for="{{v}}" wx:for-item="item" wx:key="b" class="cell data-v-1cf27b2a" bindtap="{{item.c}}">{{item.a}}</view></view></view><view class="recbox data-v-1cf27b2a"><view class="titlebox data-v-1cf27b2a"><view class="title data-v-1cf27b2a">医生病例库推荐</view><view class="more data-v-1cf27b2a" bindtap="{{x}}"><view class="morename data-v-1cf27b2a">查看更多</view><u-icon wx:if="{{w}}" class="data-v-1cf27b2a" u-i="1cf27b2a-8" bind:__l="__l" u-p="{{w}}"></u-icon></view></view><view class="list data-v-1cf27b2a"><view wx:for="{{y}}" wx:for-item="item" wx:key="b" class="cell data-v-1cf27b2a" bindtap="{{item.c}}">{{item.a}}</view></view></view></view><tab-bar class="data-v-1cf27b2a" u-i="1cf27b2a-9" bind:__l="__l"></tab-bar>
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.tagsbox.data-v-1cf27b2a {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
}
|
||||
.tagsbox .tag.data-v-1cf27b2a {
|
||||
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;
|
||||
}
|
||||
.newsbox.data-v-1cf27b2a {
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
.recbox.data-v-1cf27b2a {
|
||||
padding-bottom: 23rpx;
|
||||
margin-bottom: 16rpx;
|
||||
padding-top: 36rpx;
|
||||
background: #fff;
|
||||
}
|
||||
.recbox .cell.data-v-1cf27b2a {
|
||||
margin: 23rpx 30rpx 0;
|
||||
padding: 34rpx;
|
||||
background: #f3f4f6;
|
||||
font-size: 30rpx;
|
||||
color: #4b5563;
|
||||
line-height: 43rpx;
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
.listbox .cell.data-v-1cf27b2a {
|
||||
margin: 0 30rpx;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
border-bottom: 1rpx solid #f3f4f6;
|
||||
padding: 34rpx 0;
|
||||
}
|
||||
.listbox .cell .circle.data-v-1cf27b2a {
|
||||
margin-right: 30rpx;
|
||||
margin-top: 18rpx;
|
||||
width: 16rpx;
|
||||
height: 16rpx;
|
||||
background: #3cc7c0;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.listbox .cell .name.data-v-1cf27b2a {
|
||||
font-size: 32rpx;
|
||||
color: #000000;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.listbox .cell .author.data-v-1cf27b2a {
|
||||
font-size: 28rpx;
|
||||
color: #4b5563;
|
||||
line-height: 38rpx;
|
||||
}
|
||||
.titlebox.data-v-1cf27b2a {
|
||||
margin: 0 30rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.titlebox .more.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.titlebox .more .morename.data-v-1cf27b2a {
|
||||
margin-right: 10rpx;
|
||||
font-size: 28rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.newsbox.data-v-1cf27b2a {
|
||||
padding-top: 36rpx;
|
||||
background: #fff;
|
||||
}
|
||||
.page.data-v-1cf27b2a {
|
||||
background: #f9fafb;
|
||||
height: calc(100vh - 400rpx);
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.kubox.data-v-1cf27b2a {
|
||||
padding: 30rpx 0;
|
||||
width: 100%;
|
||||
background: rgba(0, 0, 0, 0);
|
||||
}
|
||||
.kubox .row.data-v-1cf27b2a {
|
||||
padding: 0 30rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.kubox .row .item.data-v-1cf27b2a {
|
||||
margin-left: 30rpx;
|
||||
padding: 32rpx;
|
||||
flex: 1;
|
||||
background: #e9fafb;
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
.kubox .row .item .name.data-v-1cf27b2a {
|
||||
font-size: 32rpx;
|
||||
color: #00919e;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.databox.data-v-1cf27b2a {
|
||||
height: 162rpx;
|
||||
background: #ffffff;
|
||||
display: flex;
|
||||
padding: 0 30rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.databox .cell.data-v-1cf27b2a {
|
||||
flex: 1;
|
||||
padding: 35rpx 0;
|
||||
text-align: center;
|
||||
}
|
||||
.databox .cell .num.data-v-1cf27b2a {
|
||||
font-size: 38rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.databox .cell .name.data-v-1cf27b2a {
|
||||
margin-top: 18rpx;
|
||||
font-size: 28rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
+304
@@ -0,0 +1,304 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
const utils_auth = require("../../utils/auth.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_form_item2 = common_vendor.resolveComponent("up-form-item");
|
||||
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
|
||||
const _easycom_up_code2 = common_vendor.resolveComponent("up-code");
|
||||
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
|
||||
const _easycom_up_form2 = common_vendor.resolveComponent("up-form");
|
||||
(_easycom_up_input2 + _easycom_up_form_item2 + _easycom_up_toast2 + _easycom_up_code2 + _easycom_up_button2 + _easycom_up_form2)();
|
||||
}
|
||||
const _easycom_up_input = () => "../../node-modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_form_item = () => "../../node-modules/uview-plus/components/u-form-item/u-form-item.js";
|
||||
const _easycom_up_toast = () => "../../node-modules/uview-plus/components/u-toast/u-toast.js";
|
||||
const _easycom_up_code = () => "../../node-modules/uview-plus/components/u-code/u-code.js";
|
||||
const _easycom_up_button = () => "../../node-modules/uview-plus/components/u-button/u-button.js";
|
||||
const _easycom_up_form = () => "../../node-modules/uview-plus/components/u-form/u-form.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_input + _easycom_up_form_item + _easycom_up_toast + _easycom_up_code + _easycom_up_button + _easycom_up_form)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "login",
|
||||
setup(__props) {
|
||||
const code = common_vendor.ref("");
|
||||
const phone = common_vendor.ref(null);
|
||||
common_vendor.ref(false);
|
||||
const isPhoneLogin = common_vendor.ref(true);
|
||||
const customStyle = common_vendor.reactive({
|
||||
height: "90rpx",
|
||||
fontSize: "36rpx"
|
||||
});
|
||||
const customCode = common_vendor.reactive({
|
||||
color: "#3ec7c0",
|
||||
height: "64rpx",
|
||||
fontSize: "28rpx",
|
||||
borderColor: "#e2e2e2",
|
||||
opcity: "1"
|
||||
});
|
||||
const tips = common_vendor.ref("");
|
||||
const seconds = common_vendor.ref(10);
|
||||
const uCodeRef = common_vendor.ref(null);
|
||||
const checked = common_vendor.ref(false);
|
||||
const hasRedirectUrl = common_vendor.ref(false);
|
||||
const radioChange = (e) => {
|
||||
checked.value = !checked.value;
|
||||
};
|
||||
const alertAgree = () => {
|
||||
common_vendor.index.showToast({
|
||||
title: "请先同意用户协议",
|
||||
icon: "none"
|
||||
});
|
||||
};
|
||||
common_vendor.onLoad((options) => {
|
||||
if (options.redirectUrl) {
|
||||
hasRedirectUrl.value = true;
|
||||
}
|
||||
});
|
||||
const goPage = () => {
|
||||
if (hasRedirectUrl.value) {
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:201", "true");
|
||||
let url = "";
|
||||
let redirectUrl = common_vendor.index.getStorageSync("redirectUrl");
|
||||
if (redirectUrl && redirectUrl.indexOf("/login/login") == -1) {
|
||||
url = redirectUrl;
|
||||
} else {
|
||||
url = "pages/index/index";
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:210", "url:" + url);
|
||||
common_vendor.index.redirectTo({
|
||||
url: "/" + url,
|
||||
success() {
|
||||
common_vendor.index.setStorageSync("redirectUrl", "");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:219", "false");
|
||||
common_vendor.index.redirectTo({
|
||||
url: "/pages/index/index"
|
||||
});
|
||||
}
|
||||
};
|
||||
const getPhoneNumber = (e) => {
|
||||
if (e.detail.errMsg === "getPhoneNumber:ok") {
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:228", e.target.code);
|
||||
utils_auth.auth().then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:230", res);
|
||||
api_api.api.wxLogin({
|
||||
phone_code: e.target.code,
|
||||
wx_code: res,
|
||||
source: 1
|
||||
}).then((data) => {
|
||||
let result = data.data.data;
|
||||
{
|
||||
const { envVersion } = common_vendor.index.getAccountInfoSync().miniProgram;
|
||||
if (envVersion == "release") {
|
||||
common_vendor.index.setStorageSync("AUTH_TOKEN_CASEDATA", result.token);
|
||||
} else {
|
||||
common_vendor.index.setStorageSync("DEV_AUTH_TOKEN_CASEDATA", result.token);
|
||||
}
|
||||
}
|
||||
common_vendor.index.setStorageSync("userInfo", {
|
||||
avatar: result.avatar,
|
||||
user_id: result.user_id,
|
||||
status: result.status,
|
||||
user_name: result.user_name,
|
||||
doctor_id: result.doctor_id
|
||||
});
|
||||
goPage();
|
||||
}).catch((err) => {
|
||||
common_vendor.index.showToast({
|
||||
title: err,
|
||||
icon: "none"
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
const phoneLogin = () => {
|
||||
if (!isPhoneNum(phone.value))
|
||||
return;
|
||||
if (!code.value) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请输入验证码",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (!checked.value) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请先同意用户协议",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
utils_auth.auth().then((res) => {
|
||||
api_api.api.mobileLogin({
|
||||
code: code.value,
|
||||
phone: phone.value,
|
||||
wx_code: res
|
||||
}).then((data) => {
|
||||
let result = data.data.data;
|
||||
const { envVersion } = common_vendor.index.getAccountInfoSync().miniProgram;
|
||||
if (envVersion == "release") {
|
||||
common_vendor.index.setStorageSync("AUTH_TOKEN_CASEDATA", result.token);
|
||||
} else {
|
||||
common_vendor.index.setStorageSync("DEV_AUTH_TOKEN_CASEDATA", result.token);
|
||||
}
|
||||
common_vendor.index.setStorageSync("userInfo", {
|
||||
avatar: result.avatar,
|
||||
user_id: result.user_id,
|
||||
status: result.status,
|
||||
user_name: result.user_name,
|
||||
doctor_id: result.doctor_id
|
||||
});
|
||||
goPage();
|
||||
});
|
||||
});
|
||||
};
|
||||
const isPhoneNum = (phonenum) => {
|
||||
let reg = /^1[3456789]\d{9}$/;
|
||||
if (!reg.test(phonenum)) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请输入有效的手机号码!",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
const codeChange = (text) => {
|
||||
tips.value = text;
|
||||
};
|
||||
const switchType = () => {
|
||||
isPhoneLogin.value = !isPhoneLogin.value;
|
||||
};
|
||||
const goRegister = () => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/register/register"
|
||||
});
|
||||
};
|
||||
const getCode = () => {
|
||||
if (!isPhoneNum(phone.value))
|
||||
return;
|
||||
if (uCodeRef.value.canGetCode) {
|
||||
common_vendor.index.showLoading({
|
||||
title: "正在获取验证码"
|
||||
});
|
||||
getSms();
|
||||
} else {
|
||||
common_vendor.index.$u.toast("倒计时结束后再发送");
|
||||
}
|
||||
};
|
||||
const getSms = () => {
|
||||
api_api.api.getCode({
|
||||
phone: phone.value,
|
||||
scene: 1
|
||||
}).then((res) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.$u.toast("验证码已发送");
|
||||
uCodeRef.value.start();
|
||||
});
|
||||
};
|
||||
const end = () => {
|
||||
customCode.opacity = 1;
|
||||
};
|
||||
const start = () => {
|
||||
customCode.opacity = 0.5;
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: !isPhoneLogin.value
|
||||
}, !isPhoneLogin.value ? {
|
||||
b: common_vendor.o(($event) => phone.value = $event),
|
||||
c: common_vendor.p({
|
||||
placeholder: "请输入肝胆相照专家版手机号",
|
||||
modelValue: phone.value
|
||||
}),
|
||||
d: common_vendor.p({
|
||||
label: "手机号",
|
||||
prop: "userInfo.name",
|
||||
borderBottom: true
|
||||
})
|
||||
} : {}, {
|
||||
e: !isPhoneLogin.value
|
||||
}, !isPhoneLogin.value ? {
|
||||
f: common_vendor.o(($event) => code.value = $event),
|
||||
g: common_vendor.p({
|
||||
placeholder: "请输入验证码",
|
||||
modelValue: code.value
|
||||
}),
|
||||
h: common_vendor.sr("uToastRef", "e4e4508d-5,e4e4508d-3"),
|
||||
i: common_vendor.sr(uCodeRef, "e4e4508d-6,e4e4508d-3", {
|
||||
"k": "uCodeRef"
|
||||
}),
|
||||
j: common_vendor.o(end),
|
||||
k: common_vendor.o(start),
|
||||
l: common_vendor.o(codeChange),
|
||||
m: common_vendor.p({
|
||||
seconds: seconds.value
|
||||
}),
|
||||
n: common_vendor.t(tips.value),
|
||||
o: common_vendor.o(getCode),
|
||||
p: common_vendor.p({
|
||||
customStyle: customCode,
|
||||
color: "#e2e2e2"
|
||||
}),
|
||||
q: common_vendor.p({
|
||||
label: "验证码",
|
||||
prop: "userInfo.name",
|
||||
borderBottom: true
|
||||
})
|
||||
} : {}, {
|
||||
r: common_vendor.sr("form", "e4e4508d-0"),
|
||||
s: common_vendor.p({
|
||||
labelPosition: "left",
|
||||
labelWidth: "115rpx"
|
||||
}),
|
||||
t: !isPhoneLogin.value
|
||||
}, !isPhoneLogin.value ? {
|
||||
v: common_vendor.o(phoneLogin),
|
||||
w: common_vendor.p({
|
||||
customStyle,
|
||||
type: "success",
|
||||
text: "登录",
|
||||
color: "#3cc7c0",
|
||||
size: "large"
|
||||
})
|
||||
} : common_vendor.e({
|
||||
x: checked.value
|
||||
}, checked.value ? {
|
||||
y: common_vendor.o(getPhoneNumber),
|
||||
z: common_vendor.p({
|
||||
customStyle,
|
||||
type: "success",
|
||||
["open-type"]: "getPhoneNumber",
|
||||
text: "手机号快捷登录",
|
||||
color: "#3cc7c0",
|
||||
size: "large"
|
||||
})
|
||||
} : {
|
||||
A: common_vendor.o(alertAgree),
|
||||
B: common_vendor.p({
|
||||
customStyle,
|
||||
type: "success",
|
||||
text: "手机号快捷登录",
|
||||
color: "#3cc7c0",
|
||||
size: "large"
|
||||
})
|
||||
}), {
|
||||
C: common_vendor.t(isPhoneLogin.value ? "用短信验证码登录" : "快捷登录"),
|
||||
D: common_vendor.o(switchType),
|
||||
E: common_vendor.o(goRegister),
|
||||
F: checked.value,
|
||||
G: common_vendor.o(radioChange)
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-e4e4508d"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/login.js.map
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "登录",
|
||||
"usingComponents": {
|
||||
"up-input": "../../node-modules/uview-plus/components/u-input/u-input",
|
||||
"up-form-item": "../../node-modules/uview-plus/components/u-form-item/u-form-item",
|
||||
"up-toast": "../../node-modules/uview-plus/components/u-toast/u-toast",
|
||||
"up-code": "../../node-modules/uview-plus/components/u-code/u-code",
|
||||
"up-button": "../../node-modules/uview-plus/components/u-button/u-button",
|
||||
"up-form": "../../node-modules/uview-plus/components/u-form/u-form"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="logincontent data-v-e4e4508d"><view class="title data-v-e4e4508d">登录观看</view><up-form wx:if="{{s}}" class="r data-v-e4e4508d" u-s="{{['d']}}" u-r="form" u-i="e4e4508d-0" bind:__l="__l" u-p="{{s}}"><up-form-item wx:if="{{a}}" class="data-v-e4e4508d" u-s="{{['d']}}" u-i="e4e4508d-1,e4e4508d-0" bind:__l="__l" u-p="{{d}}"><up-input wx:if="{{c}}" class="data-v-e4e4508d" u-i="e4e4508d-2,e4e4508d-1" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"></up-input></up-form-item><view wx:if="{{e}}" class="smsbox data-v-e4e4508d"><up-form-item wx:if="{{q}}" class="data-v-e4e4508d" u-s="{{['right','d']}}" u-i="e4e4508d-3,e4e4508d-0" bind:__l="__l" u-p="{{q}}"><up-input wx:if="{{g}}" class="data-v-e4e4508d" u-i="e4e4508d-4,e4e4508d-3" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"></up-input><view class="wrap data-v-e4e4508d" slot="right"><up-toast class="r data-v-e4e4508d" u-r="uToastRef" u-i="e4e4508d-5,e4e4508d-3" bind:__l="__l"></up-toast><up-code wx:if="{{m}}" class="r data-v-e4e4508d" bindend="{{j}}" bindstart="{{k}}" u-r="uCodeRef" bindchange="{{l}}" u-i="e4e4508d-6,e4e4508d-3" bind:__l="__l" u-p="{{m}}"></up-code><up-button wx:if="{{p}}" u-s="{{['d']}}" bindtap="{{o}}" class="custom-code data-v-e4e4508d" u-i="e4e4508d-7,e4e4508d-3" bind:__l="__l" u-p="{{p}}"><text class="codetext data-v-e4e4508d">{{n}}</text></up-button></view></up-form-item></view></up-form><view wx:if="{{t}}" class="row data-v-e4e4508d"><up-button wx:if="{{w}}" bindclick="{{v}}" class="custom-style data-v-e4e4508d" u-i="e4e4508d-8" bind:__l="__l" u-p="{{w}}"></up-button></view><view wx:else class="row data-v-e4e4508d" style="margin-top:120rpx"><up-button wx:if="{{x}}" class="custom-style data-v-e4e4508d" bindgetphonenumber="{{y}}" u-i="e4e4508d-9" bind:__l="__l" u-p="{{z}}"></up-button><up-button wx:else class="custom-style data-v-e4e4508d" bindclick="{{A}}" u-i="e4e4508d-10" bind:__l="__l" u-p="{{B||''}}"></up-button></view><view class="row data-v-e4e4508d"><view class="left data-v-e4e4508d" bindtap="{{D}}">{{C}}</view><view class="right data-v-e4e4508d" bindtap="{{E}}"> 注册 </view></view><view class="row data-v-e4e4508d" style="margin-top:10rpx"><radio-group class="data-v-e4e4508d" bindtap="{{G}}" labelDisabled="{{true}}"><label class="radio data-v-e4e4508d"><radio class="data-v-e4e4508d" labelDisabled="{{true}}" value="1" checked="{{F}}" color="rgb(41, 121, 255)"/> 我已阅读并同意<navigator class="agree data-v-e4e4508d">《用户协议》</navigator></label></radio-group></view><view class="row data-v-e4e4508d"><view class="tip data-v-e4e4508d">操作说明</view></view><view class="line data-v-e4e4508d"><view class="qq data-v-e4e4508d">1、</view> 肝胆相照注册账号与微信绑定,肝胆相照相关直播、视频无忧随心看 </view><view class="line data-v-e4e4508d"><view class="qq data-v-e4e4508d">2、</view> 仅需操作一次,后续通过微信观看直播、视频无需额外操作,立即进入 </view><view class="line data-v-e4e4508d"><view class="qq data-v-e4e4508d">3、</view> 若您还未注册肝胆相照专家版App, 请直接点击“注册”进行注册操作 </view><view class="desc data-v-e4e4508d"> 若您有任何疑问或需要我们协助,请与您的小助手联系或直接微信联系<text class="red data-v-e4e4508d">igandan1000</text></view></view>
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.radio.data-v-e4e4508d {
|
||||
display: inline-flex;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.radio radio.data-v-e4e4508d {
|
||||
transform: scale(0.8) translateY(-2px);
|
||||
}
|
||||
.radio .agree.data-v-e4e4508d {
|
||||
background: none;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.logincontent.data-v-e4e4508d {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background: #fff;
|
||||
}
|
||||
.logincontent .pwdbox.data-v-e4e4508d .u-form-item:nth-child(2) .u-form-item__body__left {
|
||||
width: 180rpx !important;
|
||||
}
|
||||
.logincontent .smsbox.data-v-e4e4508d .u-form-item:first-child .u-form-item__body__left {
|
||||
width: 180rpx !important;
|
||||
}
|
||||
.logincontent.data-v-e4e4508d .u-form-item__body__left__content__label {
|
||||
font-size: 34rpx;
|
||||
color: #000;
|
||||
}
|
||||
.logincontent .title.data-v-e4e4508d {
|
||||
padding: 124rpx 0 64rpx 30rpx;
|
||||
font-size: 46rpx;
|
||||
font-stretch: normal;
|
||||
letter-spacing: 2rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.logincontent.data-v-e4e4508d .u-form {
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.logincontent .row.data-v-e4e4508d {
|
||||
margin-top: 30rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.logincontent .row .left.data-v-e4e4508d {
|
||||
flex: 1;
|
||||
color: #3cc7c0;
|
||||
text-align: left;
|
||||
}
|
||||
.logincontent .row .right.data-v-e4e4508d {
|
||||
flex: 1;
|
||||
color: #666;
|
||||
text-align: right;
|
||||
}
|
||||
.logincontent .row.data-v-e4e4508d .u-button--large .u-button__text {
|
||||
font-size: 36rpx !important;
|
||||
}
|
||||
.logincontent .row .tip.data-v-e4e4508d {
|
||||
color: #333333;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
.logincontent.data-v-e4e4508d .wrap {
|
||||
border-radius: 16rpx;
|
||||
overflow: hidden;
|
||||
border: none;
|
||||
}
|
||||
.logincontent .line.data-v-e4e4508d {
|
||||
padding: 0 30rpx;
|
||||
margin-top: 10rpx;
|
||||
color: #999999;
|
||||
line-height: 44rpx;
|
||||
font-size: 26rpx;
|
||||
display: flex;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
.logincontent .desc.data-v-e4e4508d {
|
||||
padding: 0 30rpx;
|
||||
color: #999999;
|
||||
line-height: 44rpx;
|
||||
font-size: 26rpx;
|
||||
letter-spacing: 2rpx;
|
||||
}
|
||||
.logincontent .desc .red.data-v-e4e4508d {
|
||||
color: red;
|
||||
}
|
||||
+185
@@ -0,0 +1,185 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const utils_navTo = require("../../utils/navTo.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
|
||||
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
|
||||
(_easycom_up__image2 + _easycom_u_icon2)();
|
||||
}
|
||||
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.js";
|
||||
const _easycom_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
|
||||
if (!Math) {
|
||||
(dNav + _easycom_up__image + _easycom_u_icon)();
|
||||
}
|
||||
const dNav = () => "../../components/backNav/backNav.js";
|
||||
const _sfc_main = {
|
||||
__name: "my",
|
||||
setup(__props) {
|
||||
const userInfo = common_vendor.reactive({});
|
||||
const numInfo = common_vendor.reactive({});
|
||||
const hospitalInfo = common_vendor.reactive({});
|
||||
const getInfo = () => {
|
||||
api_api.api.getUserInfo().then((res) => {
|
||||
const result = res.data.data;
|
||||
Object.assign(userInfo, result);
|
||||
common_vendor.index.__f__("log", "at pages/my/my.vue:102", result);
|
||||
if (userInfo.doctor_id) {
|
||||
getNum(userInfo.doctor_id);
|
||||
}
|
||||
if (userInfo.hospital_id) {
|
||||
getHospitalNum(userInfo.hospital_id);
|
||||
}
|
||||
});
|
||||
};
|
||||
const getNum = (id) => {
|
||||
api_api.api.getStaticDoctor(id).then((res) => {
|
||||
const result = res.data.data;
|
||||
Object.assign(numInfo, result);
|
||||
});
|
||||
};
|
||||
const getHospitalNum = (id) => {
|
||||
api_api.api.getStaticHospital(id).then((res) => {
|
||||
const result = res.data.data;
|
||||
Object.assign(hospitalInfo, result);
|
||||
});
|
||||
};
|
||||
common_vendor.onLoad(() => {
|
||||
getInfo();
|
||||
});
|
||||
const goCert = () => {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/certList/certList?doctor_id=" + userInfo.doctor_id
|
||||
});
|
||||
};
|
||||
const goDoctor = (id, name) => {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/searchList/searchList?type=doctor&id=" + id + "&name=" + name
|
||||
});
|
||||
};
|
||||
const goHospital = (id, name) => {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/searchList/searchList?type=hospital&id=" + id + "&name=" + name
|
||||
});
|
||||
};
|
||||
const mySpecial = () => {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/specialList/specialList?userId=" + userInfo.user_id
|
||||
});
|
||||
};
|
||||
const goJoin = () => {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/myJoin/myJoin"
|
||||
});
|
||||
};
|
||||
const goCollect = () => {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/myCollect/myCollect"
|
||||
});
|
||||
};
|
||||
const goPublish = () => {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/publish/publish"
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
src: userInfo.avatar ? userInfo.avatar : common_vendor.unref(common_assets.headImg),
|
||||
width: "154rpx",
|
||||
height: "154rpx",
|
||||
radius: "50%"
|
||||
}),
|
||||
b: common_vendor.t(userInfo.user_name),
|
||||
c: common_vendor.t(userInfo.title),
|
||||
d: common_vendor.t(userInfo.hospital_name),
|
||||
e: common_vendor.t(numInfo.article_num),
|
||||
f: common_vendor.t(numInfo.video_num),
|
||||
g: common_vendor.t(numInfo.video_read_num + numInfo.article_read_num),
|
||||
h: numInfo.article_num > 0
|
||||
}, numInfo.article_num > 0 ? {
|
||||
i: common_vendor.p({
|
||||
name: "chat-fill",
|
||||
color: "#000",
|
||||
size: "28"
|
||||
}),
|
||||
j: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
color: "#9CA3AF",
|
||||
size: "18"
|
||||
}),
|
||||
k: common_vendor.o(($event) => goDoctor(userInfo.doctor_id, userInfo.user_name))
|
||||
} : {}, {
|
||||
l: common_vendor.p({
|
||||
name: "chat-fill",
|
||||
color: "#000",
|
||||
size: "28"
|
||||
}),
|
||||
m: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
color: "#9CA3AF",
|
||||
size: "18"
|
||||
}),
|
||||
n: common_vendor.o(goCert),
|
||||
o: hospitalInfo.video_read_num > 0 || hospitalInfo.article_read_num > 0
|
||||
}, hospitalInfo.video_read_num > 0 || hospitalInfo.article_read_num > 0 ? {
|
||||
p: common_vendor.p({
|
||||
name: "chat-fill",
|
||||
color: "#000",
|
||||
size: "28"
|
||||
}),
|
||||
q: common_vendor.t(userInfo.hospital_name),
|
||||
r: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
color: "#9CA3AF",
|
||||
size: "18"
|
||||
}),
|
||||
s: common_vendor.o(($event) => goHospital(userInfo.hospital_id, userInfo.hospital_name))
|
||||
} : {}, {
|
||||
t: common_vendor.p({
|
||||
name: "chat-fill",
|
||||
color: "#000",
|
||||
size: "28"
|
||||
}),
|
||||
v: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
color: "#9CA3AF",
|
||||
size: "18"
|
||||
}),
|
||||
w: common_vendor.o(mySpecial),
|
||||
x: common_vendor.p({
|
||||
name: "chat-fill",
|
||||
color: "#000",
|
||||
size: "28"
|
||||
}),
|
||||
y: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
color: "#9CA3AF",
|
||||
size: "18"
|
||||
}),
|
||||
z: common_vendor.o(goJoin),
|
||||
A: common_vendor.p({
|
||||
name: "chat-fill",
|
||||
color: "#000",
|
||||
size: "28"
|
||||
}),
|
||||
B: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
color: "#9CA3AF",
|
||||
size: "18"
|
||||
}),
|
||||
C: common_vendor.o(goCollect),
|
||||
D: common_vendor.p({
|
||||
name: "plus",
|
||||
color: "#fff",
|
||||
size: "18"
|
||||
}),
|
||||
E: common_vendor.o(goPublish)
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2f1ef635"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/my/my.js.map
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
|
||||
"u-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
|
||||
"d-nav": "../../components/backNav/backNav"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="upage data-v-2f1ef635"><d-nav class="data-v-2f1ef635" u-i="2f1ef635-0" bind:__l="__l"></d-nav><view class="con data-v-2f1ef635"><view class="infobox data-v-2f1ef635"><up--image wx:if="{{a}}" class="data-v-2f1ef635" u-i="2f1ef635-1" bind:__l="__l" u-p="{{a}}"></up--image><view class="info data-v-2f1ef635"><view class="name data-v-2f1ef635">{{b}}({{c}}) </view><view class="hospital data-v-2f1ef635">{{d}}</view></view></view><view class="databox data-v-2f1ef635"><view class="cell data-v-2f1ef635"><view class="num data-v-2f1ef635">{{e}}</view><view class="name data-v-2f1ef635">文章</view></view><view class="cell data-v-2f1ef635"><view class="num data-v-2f1ef635">{{f}}</view><view class="name data-v-2f1ef635">视频</view></view><view class="cell data-v-2f1ef635"><view class="num data-v-2f1ef635">{{g}}</view><view class="name data-v-2f1ef635">阅读量</view></view></view><view class="listbox data-v-2f1ef635"><view class="titlename data-v-2f1ef635">我的临床病例库</view><view wx:if="{{h}}" class="cell data-v-2f1ef635" bindtap="{{k}}"><view class="left data-v-2f1ef635"><u-icon wx:if="{{i}}" class="data-v-2f1ef635" u-i="2f1ef635-2" bind:__l="__l" u-p="{{i}}"></u-icon><view class="title data-v-2f1ef635">我的病例库</view></view><u-icon wx:if="{{j}}" class="data-v-2f1ef635" u-i="2f1ef635-3" bind:__l="__l" u-p="{{j}}"></u-icon></view><view class="cell data-v-2f1ef635" bindtap="{{n}}"><view class="left data-v-2f1ef635"><u-icon wx:if="{{l}}" class="data-v-2f1ef635" u-i="2f1ef635-4" bind:__l="__l" u-p="{{l}}"></u-icon><view class="title data-v-2f1ef635">临床病例库收录证书下载</view></view><u-icon wx:if="{{m}}" class="data-v-2f1ef635" u-i="2f1ef635-5" bind:__l="__l" u-p="{{m}}"></u-icon></view><view wx:if="{{o}}" class="cell data-v-2f1ef635" bindtap="{{s}}"><view class="left data-v-2f1ef635"><u-icon wx:if="{{p}}" class="data-v-2f1ef635" u-i="2f1ef635-6" bind:__l="__l" u-p="{{p}}"></u-icon><view class="title data-v-2f1ef635">{{q}}临床病例库</view></view><u-icon wx:if="{{r}}" class="data-v-2f1ef635" u-i="2f1ef635-7" bind:__l="__l" u-p="{{r}}"></u-icon></view><view class="cell data-v-2f1ef635" bindtap="{{w}}"><view class="left data-v-2f1ef635"><u-icon wx:if="{{t}}" class="data-v-2f1ef635" u-i="2f1ef635-8" bind:__l="__l" u-p="{{t}}"></u-icon><view class="title data-v-2f1ef635">我的病例交流</view></view><u-icon wx:if="{{v}}" class="data-v-2f1ef635" u-i="2f1ef635-9" bind:__l="__l" u-p="{{v}}"></u-icon></view><view class="cell data-v-2f1ef635" bindtap="{{z}}"><view class="left data-v-2f1ef635"><u-icon wx:if="{{x}}" class="data-v-2f1ef635" u-i="2f1ef635-10" bind:__l="__l" u-p="{{x}}"></u-icon><view class="title data-v-2f1ef635">我的参与互动</view></view><u-icon wx:if="{{y}}" class="data-v-2f1ef635" u-i="2f1ef635-11" bind:__l="__l" u-p="{{y}}"></u-icon></view><view class="cell data-v-2f1ef635" bindtap="{{C}}"><view class="left data-v-2f1ef635"><u-icon wx:if="{{A}}" class="data-v-2f1ef635" u-i="2f1ef635-12" bind:__l="__l" u-p="{{A}}"></u-icon><view class="title data-v-2f1ef635">浏览与收藏</view></view><u-icon wx:if="{{B}}" class="data-v-2f1ef635" u-i="2f1ef635-13" bind:__l="__l" u-p="{{B}}"></u-icon></view></view></view><view class="publish data-v-2f1ef635" bindtap="{{E}}"><u-icon wx:if="{{D}}" class="data-v-2f1ef635" u-i="2f1ef635-14" bind:__l="__l" u-p="{{D}}"></u-icon></view></view>
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.upage.data-v-2f1ef635 {
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.con.data-v-2f1ef635 {
|
||||
height: calc(100vh - 100rpx);
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.publish.data-v-2f1ef635 {
|
||||
width: 92rpx;
|
||||
height: 92rpx;
|
||||
background: #3CC7C0;
|
||||
border-radius: 50%;
|
||||
position: fixed;
|
||||
right: 30rpx;
|
||||
bottom: 100rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.listbox.data-v-2f1ef635 {
|
||||
margin: 34rpx 30rpx 0;
|
||||
}
|
||||
.listbox .titlename.data-v-2f1ef635 {
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.listbox .cell.data-v-2f1ef635 {
|
||||
height: 108rpx;
|
||||
padding: 0 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
background: #F9FAFB;
|
||||
border-radius: 15rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.listbox .cell .left.data-v-2f1ef635 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 32rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.listbox .cell .left .title.data-v-2f1ef635 {
|
||||
margin-top: 4rpx;
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
.databox.data-v-2f1ef635 {
|
||||
height: 162rpx;
|
||||
background: #ffffff;
|
||||
display: flex;
|
||||
padding: 10rpx 0rpx;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2rpx solid rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.databox .cell.data-v-2f1ef635 {
|
||||
flex: 1;
|
||||
padding: 35rpx 0;
|
||||
text-align: center;
|
||||
}
|
||||
.databox .cell .num.data-v-2f1ef635 {
|
||||
font-size: 38rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.databox .cell .name.data-v-2f1ef635 {
|
||||
margin-top: 18rpx;
|
||||
font-size: 28rpx;
|
||||
color: #4B5563;
|
||||
}
|
||||
.infobox.data-v-2f1ef635 {
|
||||
margin: 0 30rpx;
|
||||
display: flex;
|
||||
}
|
||||
.infobox .info.data-v-2f1ef635 {
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.infobox .info .name.data-v-2f1ef635 {
|
||||
font-size: 32rpx;
|
||||
color: #000000;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.infobox .info .hospital.data-v-2f1ef635 {
|
||||
font-size: 28rpx;
|
||||
color: #4B5563;
|
||||
line-height: 38rpx;
|
||||
}
|
||||
@@ -0,0 +1,203 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
const utils_navTo = require("../../utils/navTo.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_dropdown_item2 = common_vendor.resolveComponent("up-dropdown-item");
|
||||
const _easycom_up_dropdown2 = common_vendor.resolveComponent("up-dropdown");
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
|
||||
(_easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up_icon2 + _easycom_z_paging2)();
|
||||
}
|
||||
const _easycom_up_dropdown_item = () => "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item.js";
|
||||
const _easycom_up_dropdown = () => "../../node-modules/uview-plus/components/u-dropdown/u-dropdown.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_dropdown_item + _easycom_up_dropdown + _easycom_up_icon + _easycom_z_paging)();
|
||||
}
|
||||
const navBarSearch = () => "../../components/navBarSearch/navBarSearch.js";
|
||||
const _sfc_main = {
|
||||
__name: "myCollect",
|
||||
setup(__props) {
|
||||
const paging = common_vendor.ref(null);
|
||||
const uDropdownRef = common_vendor.ref(null);
|
||||
const dataList = common_vendor.ref([]);
|
||||
const total = common_vendor.ref(0);
|
||||
common_vendor.ref("");
|
||||
const keyWord = common_vendor.ref("");
|
||||
const isArticle = common_vendor.ref(true);
|
||||
const navName = common_vendor.ref("肝胆相照临床病例库");
|
||||
const type1 = common_vendor.ref(0);
|
||||
const type2 = common_vendor.ref(1);
|
||||
const title2 = common_vendor.ref("文章病例库");
|
||||
const options = common_vendor.ref([
|
||||
{
|
||||
label: "收藏",
|
||||
value: 0
|
||||
},
|
||||
{
|
||||
label: "浏览",
|
||||
value: 1
|
||||
}
|
||||
]);
|
||||
const options1 = common_vendor.ref([
|
||||
{
|
||||
label: "文章病例库",
|
||||
value: 1
|
||||
},
|
||||
{
|
||||
label: "视频病例库",
|
||||
value: 2
|
||||
},
|
||||
{
|
||||
label: "病例交流",
|
||||
value: 3
|
||||
}
|
||||
]);
|
||||
common_vendor.reactive({
|
||||
read_num: "",
|
||||
push_date: ""
|
||||
});
|
||||
common_vendor.onLoad((options2) => {
|
||||
if (options2.keyWord) {
|
||||
keyWord.value = options2.keyWord;
|
||||
}
|
||||
});
|
||||
const changetype1 = (e) => {
|
||||
type1.value = e;
|
||||
paging.value.reload();
|
||||
};
|
||||
const changetype2 = (e) => {
|
||||
type2.value = e;
|
||||
title2.value = options1.value[e - 1].label;
|
||||
paging.value.reload();
|
||||
};
|
||||
const formatdate = (date) => {
|
||||
return common_vendor.dayjs(date).format("YYYY-MM-DD");
|
||||
};
|
||||
const goDetail = (id) => {
|
||||
common_vendor.index.__f__("log", "at pages/myCollect/myCollect.vue:126", 11111);
|
||||
common_vendor.index.__f__("log", "at pages/myCollect/myCollect.vue:127", id);
|
||||
let type = isArticle.value ? "article" : "video";
|
||||
utils_navTo.navTo({
|
||||
url: `/pages/detail/detail?id=${id}&type=${type}`
|
||||
});
|
||||
};
|
||||
const changeWord = (val) => {
|
||||
keyWord.value = val;
|
||||
paging.value.reload();
|
||||
};
|
||||
const searchCollect = (params) => {
|
||||
let searchForm = {
|
||||
keyword: keyWord.value,
|
||||
type: type2.value
|
||||
};
|
||||
api_api.api.getMyCollect({
|
||||
...searchForm,
|
||||
...params
|
||||
}).then((res) => {
|
||||
paging.value.complete(res.data.data.data);
|
||||
total.value = res.data.data.total;
|
||||
}).catch((err) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
const searchRead = async (params) => {
|
||||
let searchForm = {
|
||||
keyword: keyWord.value,
|
||||
type: type2.value
|
||||
};
|
||||
api_api.api.getMyRead({
|
||||
...searchForm,
|
||||
...params
|
||||
}).then((res) => {
|
||||
paging.value.complete(res.data.data.data);
|
||||
total.value = res.data.data.total;
|
||||
}).catch((err) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
const queryList = (pageNo, pageSize) => {
|
||||
const params = {
|
||||
page: pageNo,
|
||||
page_size: pageSize
|
||||
};
|
||||
type1.value == 1 ? searchRead(params) : searchCollect(params);
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.o(changeWord),
|
||||
b: common_vendor.p({
|
||||
searchWord: keyWord.value,
|
||||
navName: navName.value
|
||||
}),
|
||||
c: common_vendor.o(changetype1),
|
||||
d: common_vendor.o(($event) => type1.value = $event),
|
||||
e: common_vendor.p({
|
||||
title: type1.value == 0 ? "收藏" : "浏览",
|
||||
options: options.value,
|
||||
modelValue: type1.value
|
||||
}),
|
||||
f: common_vendor.o(changetype2),
|
||||
g: common_vendor.o(($event) => type2.value = $event),
|
||||
h: common_vendor.p({
|
||||
title: title2.value,
|
||||
options: options1.value,
|
||||
modelValue: type2.value
|
||||
}),
|
||||
i: common_vendor.sr(uDropdownRef, "1cf734f5-2,1cf734f5-0", {
|
||||
"k": "uDropdownRef"
|
||||
}),
|
||||
j: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.data.title),
|
||||
b: common_vendor.f(item.data.author, (tag, k1, i1) => {
|
||||
return {
|
||||
a: common_vendor.t(tag.doctor_name),
|
||||
b: tag.author_id
|
||||
};
|
||||
}),
|
||||
c: "1cf734f5-5-" + i0 + ",1cf734f5-0",
|
||||
d: common_vendor.t(item.data.read_num),
|
||||
e: "1cf734f5-6-" + i0 + ",1cf734f5-0",
|
||||
f: common_vendor.t(item.data.collect_num),
|
||||
g: "1cf734f5-7-" + i0 + ",1cf734f5-0",
|
||||
h: common_vendor.t(formatdate(item.data.push_date)),
|
||||
i: common_vendor.o(($event) => goDetail(), item.collect_id),
|
||||
j: item.collect_id
|
||||
};
|
||||
}),
|
||||
k: common_vendor.p({
|
||||
name: "eye",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
l: common_vendor.p({
|
||||
name: "heart",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
m: common_vendor.p({
|
||||
name: "clock",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
n: common_vendor.sr(paging, "1cf734f5-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
o: common_vendor.o(queryList),
|
||||
p: common_vendor.o(($event) => dataList.value = $event),
|
||||
q: 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-1cf734f5"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/myCollect/myCollect.js.map
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-dropdown-item": "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item",
|
||||
"up-dropdown": "../../node-modules/uview-plus/components/u-dropdown/u-dropdown",
|
||||
"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-1cf734f5"><z-paging wx:if="{{q}}" class="r data-v-1cf734f5" u-s="{{['top','d']}}" u-r="paging" bindquery="{{o}}" u-i="1cf734f5-0" bind:__l="__l" bindupdateModelValue="{{p}}" u-p="{{q}}"><view slot="top"><nav-bar-search wx:if="{{b}}" class="data-v-1cf734f5" bindchangeWord="{{a}}" u-i="1cf734f5-1,1cf734f5-0" bind:__l="__l" u-p="{{b}}"></nav-bar-search><view class="filterbox data-v-1cf734f5"><up-dropdown u-s="{{['d']}}" class="u-dropdown r data-v-1cf734f5" u-r="uDropdownRef" u-i="1cf734f5-2,1cf734f5-0" bind:__l="__l"><up-dropdown-item wx:if="{{e}}" class="data-v-1cf734f5" bindchange="{{c}}" u-i="1cf734f5-3,1cf734f5-2" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></up-dropdown-item><up-dropdown-item wx:if="{{h}}" class="data-v-1cf734f5" bindchange="{{f}}" u-i="1cf734f5-4,1cf734f5-2" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"></up-dropdown-item></up-dropdown></view></view><view wx:for="{{j}}" wx:for-item="item" wx:key="j" class="item data-v-1cf734f5" bindtap="{{item.i}}"><view class="title ellipsis data-v-1cf734f5">{{item.a}}</view><view class="tagsbox data-v-1cf734f5"><view wx:for="{{item.b}}" wx:for-item="tag" wx:key="b" class="tag data-v-1cf734f5">{{tag.a}}</view></view><view class="deal data-v-1cf734f5"><view class="left data-v-1cf734f5"><view class="eyebox data-v-1cf734f5"><up-icon wx:if="{{k}}" class="data-v-1cf734f5" u-i="{{item.c}}" bind:__l="__l" u-p="{{k}}"></up-icon><view class="num data-v-1cf734f5">{{item.d}}</view></view><view class="collect data-v-1cf734f5"><up-icon wx:if="{{l}}" class="data-v-1cf734f5" u-i="{{item.e}}" bind:__l="__l" u-p="{{l}}"></up-icon><view class="num data-v-1cf734f5">{{item.f}}</view></view></view><view class="time data-v-1cf734f5"><up-icon wx:if="{{m}}" class="data-v-1cf734f5" u-i="{{item.g}}" bind:__l="__l" u-p="{{m}}"></up-icon><view class="num data-v-1cf734f5">{{item.h}}</view></view></view></view></z-paging></view>
|
||||
@@ -0,0 +1,147 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.databox.data-v-1cf734f5 {
|
||||
height: 162rpx;
|
||||
background: #ffffff;
|
||||
display: flex;
|
||||
margin-bottom: 20rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.databox .cell.data-v-1cf734f5 {
|
||||
flex: 1;
|
||||
padding: 35rpx 0;
|
||||
text-align: center;
|
||||
}
|
||||
.databox .cell .num.data-v-1cf734f5 {
|
||||
font-size: 38rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.databox .cell .name.data-v-1cf734f5 {
|
||||
margin-top: 18rpx;
|
||||
font-size: 28rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
.filterbox.data-v-1cf734f5 {
|
||||
display: flex;
|
||||
height: 128rpx;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
.filterbox .type.data-v-1cf734f5 {
|
||||
position: absolute;
|
||||
left: 30rpx;
|
||||
top: 24rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
height: 74rpx;
|
||||
padding: 0 25rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
.u-page.data-v-1cf734f5 .u-flex {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
}
|
||||
.u-page.data-v-1cf734f5 .u-dropdown__menu {
|
||||
background: #fff;
|
||||
z-index: 1;
|
||||
margin-left: -30rpx;
|
||||
}
|
||||
.u-page.data-v-1cf734f5 .u-dropdown__menu__item {
|
||||
height: 74rpx;
|
||||
padding: 0 20rpx;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
flex: none;
|
||||
margin-left: 60rpx;
|
||||
}
|
||||
.u-page .deal.data-v-1cf734f5 {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
color: #6b7280;
|
||||
font-size: 24rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.u-page .deal .left.data-v-1cf734f5 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .collect.data-v-1cf734f5 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .eyebox.data-v-1cf734f5 {
|
||||
width: 160rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .time.data-v-1cf734f5 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .num.data-v-1cf734f5 {
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
.u-page .item.data-v-1cf734f5 {
|
||||
border-bottom: 1rpx solid #f3f4f6;
|
||||
padding: 30rpx;
|
||||
}
|
||||
.u-page .item .title.data-v-1cf734f5 {
|
||||
font-size: 30rpx;
|
||||
color: #111827;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.u-page .tagsbox.data-v-1cf734f5 {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
}
|
||||
.u-page .tagsbox .tag.data-v-1cf734f5 {
|
||||
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-1cf734f5 {
|
||||
background: #f9f9f9;
|
||||
padding: 12rpx 30rpx;
|
||||
}
|
||||
.detail .desc.data-v-1cf734f5 {
|
||||
font-size: 26rpx;
|
||||
color: #4b5563;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.detail .red.data-v-1cf734f5 {
|
||||
color: #FF0000;
|
||||
}
|
||||
+243
@@ -0,0 +1,243 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_tabs2 = common_vendor.resolveComponent("up-tabs");
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
|
||||
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
|
||||
const _easycom_up_overlay2 = common_vendor.resolveComponent("up-overlay");
|
||||
(_easycom_up_tabs2 + _easycom_up_icon2 + _easycom_z_paging2 + _easycom_up_popup2 + _easycom_up_overlay2)();
|
||||
}
|
||||
const _easycom_up_tabs = () => "../../node-modules/uview-plus/components/u-tabs/u-tabs.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";
|
||||
const _easycom_up_popup = () => "../../node-modules/uview-plus/components/u-popup/u-popup.js";
|
||||
const _easycom_up_overlay = () => "../../node-modules/uview-plus/components/u-overlay/u-overlay.js";
|
||||
if (!Math) {
|
||||
(backLogoNav + _easycom_up_tabs + _easycom_up_icon + _easycom_z_paging + _easycom_up_popup + _easycom_up_overlay)();
|
||||
}
|
||||
const backLogoNav = () => "../../components/backLogoNav/backLogoNav.js";
|
||||
const _sfc_main = {
|
||||
__name: "myJoin",
|
||||
setup(__props) {
|
||||
const paging = common_vendor.ref(null);
|
||||
common_vendor.ref(null);
|
||||
const dataList = common_vendor.ref([]);
|
||||
const total = common_vendor.ref(0);
|
||||
const delId = common_vendor.ref("");
|
||||
const keyWord = common_vendor.ref("");
|
||||
common_vendor.ref(true);
|
||||
const navName = common_vendor.ref("肝胆相照临床病例库");
|
||||
const showDeal = common_vendor.ref(false);
|
||||
const showModal = common_vendor.ref(false);
|
||||
const tab = common_vendor.ref(0);
|
||||
const closeDeal = () => {
|
||||
showDeal.value = false;
|
||||
};
|
||||
const alertPop = () => {
|
||||
showModal.value = true;
|
||||
showDeal.value = false;
|
||||
};
|
||||
const confirmDel = () => {
|
||||
if (tab.value == 0) {
|
||||
delExchangeComment(delId.value);
|
||||
} else if (tab.value == 1) {
|
||||
delArticleComment(delId.value);
|
||||
} else if (tab.value == 2) {
|
||||
delVideoComment(delId.value);
|
||||
}
|
||||
showModal.value = false;
|
||||
};
|
||||
const openDeal = () => {
|
||||
showDeal.value = true;
|
||||
};
|
||||
const isDel = (id) => {
|
||||
delId.value = id;
|
||||
showDeal.value = true;
|
||||
};
|
||||
common_vendor.ref([
|
||||
{
|
||||
label: "正序",
|
||||
value: "asc"
|
||||
},
|
||||
{
|
||||
label: "倒序",
|
||||
value: "desc"
|
||||
}
|
||||
]);
|
||||
const tabList = common_vendor.ref([
|
||||
{
|
||||
name: "病例交流"
|
||||
},
|
||||
{
|
||||
name: "文章病例库"
|
||||
},
|
||||
{
|
||||
name: "视频病例库"
|
||||
}
|
||||
]);
|
||||
const delArticleComment = (id) => {
|
||||
api_api.api.delArticleComment(id).then((res) => {
|
||||
common_vendor.index.showToast({
|
||||
icon: "none",
|
||||
title: "删除成功"
|
||||
});
|
||||
paging.value.refresh();
|
||||
});
|
||||
};
|
||||
const delVideoComment = (id) => {
|
||||
api_api.api.delVideoComment(id).then((res) => {
|
||||
common_vendor.index.showToast({
|
||||
icon: "none",
|
||||
title: "删除成功"
|
||||
});
|
||||
paging.value.refresh();
|
||||
});
|
||||
};
|
||||
const delExchangeComment = (id) => {
|
||||
api_api.api.delExchangeComment(id).then((res) => {
|
||||
common_vendor.index.showToast({
|
||||
icon: "none",
|
||||
title: "删除成功"
|
||||
});
|
||||
paging.value.refresh();
|
||||
});
|
||||
};
|
||||
const switchTab = (item) => {
|
||||
tab.value = item.index;
|
||||
paging.value.reload();
|
||||
};
|
||||
common_vendor.onLoad((options) => {
|
||||
});
|
||||
const formatdate = (date) => {
|
||||
return common_vendor.dayjs(date).format("YYYY-MM-DD");
|
||||
};
|
||||
const getExchangeCommentUser = async (params) => {
|
||||
api_api.api.getExchangeCommentUser({
|
||||
...params
|
||||
}).then((res) => {
|
||||
paging.value.complete(res.data.data.data);
|
||||
total.value = res.data.data.total;
|
||||
}).catch((err) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
const getArticleCommentUser = async (params) => {
|
||||
api_api.api.getArticleCommentUser({
|
||||
...params
|
||||
}).then((res) => {
|
||||
paging.value.complete(res.data.data.data);
|
||||
total.value = res.data.data.total;
|
||||
}).catch((err) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
const getVideoCommentUser = async (params) => {
|
||||
api_api.api.getVideoCommentUser({
|
||||
...params
|
||||
}).then((res) => {
|
||||
paging.value.complete(res.data.data.data);
|
||||
total.value = res.data.data.total;
|
||||
}).catch((err) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
const queryList = (pageNo, pageSize) => {
|
||||
const params = {
|
||||
page: pageNo,
|
||||
page_size: pageSize
|
||||
};
|
||||
if (tab.value == 0) {
|
||||
getExchangeCommentUser(params);
|
||||
} else if (tab.value == 1) {
|
||||
getArticleCommentUser(params);
|
||||
} else {
|
||||
getVideoCommentUser(params);
|
||||
}
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
searchWord: keyWord.value,
|
||||
navName: navName.value
|
||||
}),
|
||||
b: common_vendor.o(switchTab),
|
||||
c: common_vendor.p({
|
||||
activeStyle: {
|
||||
color: "#3CC7C0"
|
||||
},
|
||||
inactiveStyle: {
|
||||
color: "#4B5563"
|
||||
},
|
||||
lineColor: "#3CC7C0",
|
||||
lineWidth: "155rpx",
|
||||
lineHeight: "2",
|
||||
list: tabList.value
|
||||
}),
|
||||
d: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.content),
|
||||
b: "235c92a6-3-" + i0 + ",235c92a6-0",
|
||||
c: common_vendor.t(formatdate(item.created_at)),
|
||||
d: common_vendor.o(($event) => isDel(item.comment_id), index)
|
||||
}, tab.value == 0 ? {
|
||||
e: common_vendor.t(item.author_name),
|
||||
f: common_vendor.t(item.author_hospital_name)
|
||||
} : {}, tab.value == 0 ? {
|
||||
g: common_vendor.t(item.exchange_title)
|
||||
} : tab.value == 1 ? {
|
||||
h: common_vendor.t(item.article_title)
|
||||
} : tab.value == 2 ? {
|
||||
i: common_vendor.t(item.video_title)
|
||||
} : {}, {
|
||||
j: index
|
||||
});
|
||||
}),
|
||||
e: common_vendor.p({
|
||||
name: "clock",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
f: tab.value == 0,
|
||||
g: tab.value == 0,
|
||||
h: tab.value == 1,
|
||||
i: tab.value == 2,
|
||||
j: common_vendor.sr(paging, "235c92a6-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
k: common_vendor.o(queryList),
|
||||
l: common_vendor.o(($event) => dataList.value = $event),
|
||||
m: common_vendor.p({
|
||||
["inside-more"]: true,
|
||||
["loading-more-no-more-text"]: "咱也是有底线的!",
|
||||
["auto-show-back-to-top"]: true,
|
||||
modelValue: dataList.value
|
||||
}),
|
||||
n: common_vendor.o(alertPop),
|
||||
o: common_vendor.o(closeDeal),
|
||||
p: common_vendor.o(closeDeal),
|
||||
q: common_vendor.o(openDeal),
|
||||
r: common_vendor.p({
|
||||
zIndex: 10,
|
||||
overlayStyle: {
|
||||
zIndex: 9
|
||||
},
|
||||
closeOnClickOverlay: false,
|
||||
show: showDeal.value,
|
||||
round: 10,
|
||||
mode: "bottom"
|
||||
}),
|
||||
s: common_vendor.o(($event) => showModal.value = false),
|
||||
t: common_vendor.o(confirmDel),
|
||||
v: common_vendor.p({
|
||||
show: showModal.value,
|
||||
["mask-click-able"]: true
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-235c92a6"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/myJoin/myJoin.js.map
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-tabs": "../../node-modules/uview-plus/components/u-tabs/u-tabs",
|
||||
"up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
|
||||
"up-popup": "../../node-modules/uview-plus/components/u-popup/u-popup",
|
||||
"up-overlay": "../../node-modules/uview-plus/components/u-overlay/u-overlay",
|
||||
"back-logo-nav": "../../components/backLogoNav/backLogoNav"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="u-page data-v-235c92a6"><z-paging wx:if="{{m}}" class="r data-v-235c92a6" u-s="{{['top','d']}}" u-r="paging" bindquery="{{k}}" u-i="235c92a6-0" bind:__l="__l" bindupdateModelValue="{{l}}" u-p="{{m}}"><view slot="top"><back-logo-nav wx:if="{{a}}" class="data-v-235c92a6" u-i="235c92a6-1,235c92a6-0" bind:__l="__l" u-p="{{a}}"></back-logo-nav><view class="tabcon data-v-235c92a6"><up-tabs wx:if="{{c}}" class="data-v-235c92a6" bindclick="{{b}}" u-i="235c92a6-2,235c92a6-0" bind:__l="__l" u-p="{{c}}"></up-tabs></view></view><view wx:for="{{d}}" wx:for-item="item" wx:key="j" class="item data-v-235c92a6"><view class="title data-v-235c92a6">{{item.a}}</view><view class="deal data-v-235c92a6"><view class="time data-v-235c92a6"><up-icon wx:if="{{e}}" class="data-v-235c92a6" u-i="{{item.b}}" bind:__l="__l" u-p="{{e}}"></up-icon><view class="num data-v-235c92a6">{{item.c}}</view></view><view class="dot data-v-235c92a6" bindtap="{{item.d}}">...</view></view><view class="casecontent data-v-235c92a6"><view wx:if="{{f}}" class="author data-v-235c92a6">{{item.e}}({{item.f}})</view><view wx:if="{{g}}" class="content data-v-235c92a6">{{item.g}}</view><view wx:elif="{{h}}" class="content data-v-235c92a6">{{item.h}}</view><view wx:elif="{{i}}" class="content data-v-235c92a6">{{item.i}}</view></view></view></z-paging></view><up-popup wx:if="{{r}}" class="data-v-235c92a6" u-s="{{['d']}}" bindclose="{{p}}" bindopen="{{q}}" u-i="235c92a6-4" bind:__l="__l" u-p="{{r}}"><view class="dealbox data-v-235c92a6"><view class="dealcell data-v-235c92a6" bindtap="{{n}}">删除</view><view class="bar data-v-235c92a6"></view><view class="dealcell data-v-235c92a6" bindtap="{{o}}">取消</view></view></up-popup><up-overlay wx:if="{{v}}" class="data-v-235c92a6" u-s="{{['d']}}" u-i="235c92a6-5" bind:__l="__l" u-p="{{v}}"><view class="zanboxpop data-v-235c92a6"><view class="zanwraper data-v-235c92a6"><view class="title data-v-235c92a6">提示</view><view class="content data-v-235c92a6"> 是否删除该评论? </view><view class="btnbox data-v-235c92a6"><view class="cancle data-v-235c92a6" bindtap="{{s}}">取消</view><view class="ok data-v-235c92a6" bindtap="{{t}}">确定</view></view></view></view></up-overlay>
|
||||
@@ -0,0 +1,314 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.zanboxpop.data-v-235c92a6 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
}
|
||||
.zanboxpop .zanwraper.data-v-235c92a6 {
|
||||
width: 630rpx;
|
||||
margin: 0 auto;
|
||||
padding-bottom: 50rpx;
|
||||
background: #f5f6f9;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.zanboxpop .zanwraper .title.data-v-235c92a6 {
|
||||
margin-top: 48rpx;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
font-size: 36rpx;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
}
|
||||
.zanboxpop .zanwraper .content.data-v-235c92a6 {
|
||||
padding: 30rpx 0;
|
||||
background: #f5f6f9;
|
||||
text-align: center;
|
||||
}
|
||||
.zanboxpop .zanwraper .count.data-v-235c92a6 {
|
||||
margin-top: 24rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
}
|
||||
.zanboxpop .zanwraper .count .num.data-v-235c92a6 {
|
||||
color: #ff0000;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.zanboxpop .zanwraper .count .earn.data-v-235c92a6 {
|
||||
font-size: 32rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox.data-v-235c92a6 {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
margin: 30rpx 0px 40rpx;
|
||||
padding: 0 40rpx;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox .minus.data-v-235c92a6 {
|
||||
flex-shrink: 0;
|
||||
margin-left: 10rp;
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
font-size: 60rpx;
|
||||
color: #333;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #ffffff;
|
||||
border-radius: 12rpx;
|
||||
border: 2rpx solid #e9e9e9;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox .add.data-v-235c92a6 {
|
||||
flex-shrink: 0;
|
||||
width: 90rpx;
|
||||
margin-left: 10rpx;
|
||||
height: 90rpx;
|
||||
font-size: 60rpx;
|
||||
color: #333;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
background: #3cc7c0;
|
||||
border-radius: 12rpx;
|
||||
border: 2rpx solid #3cc7c0;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox.data-v-235c92a6 .u-input__content__field-wrapper__field {
|
||||
height: 60rpx;
|
||||
font-size: 34rpx !important;
|
||||
text-align: center !important;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox.data-v-235c92a6 .u-input {
|
||||
background: #f2f2f2;
|
||||
width: 200rpx !important;
|
||||
flex: none;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox.data-v-235c92a6 .u-input--radius {
|
||||
border-radius: 24rrpx;
|
||||
}
|
||||
.zanboxpop .zanwraper .btnbox.data-v-235c92a6 {
|
||||
margin: 0px 40rpx 0px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.zanboxpop .zanwraper .btnbox .cancle.data-v-235c92a6 {
|
||||
color: rgba(0, 0, 0, 0.3);
|
||||
width: 256rpx;
|
||||
height: 88rpx;
|
||||
background: #f5f6f9;
|
||||
border-radius: 25px;
|
||||
border: 2rpx solid rgba(0, 0, 0, 0.15);
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.zanboxpop .zanwraper .btnbox .ok.data-v-235c92a6 {
|
||||
color: #fff;
|
||||
width: 256rpx;
|
||||
height: 88rpx;
|
||||
background: #3cc7c0;
|
||||
border-radius: 25px;
|
||||
border: 2rpx solid #3cc7c0;
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.bar.data-v-235c92a6 {
|
||||
width: 100%;
|
||||
background: #f9fafb;
|
||||
height: 20rpx;
|
||||
}
|
||||
.dealbox .dealcell.data-v-235c92a6 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 112rpx;
|
||||
font-size: 32rpx;
|
||||
color: rgba(0, 0, 0, 0.9);
|
||||
border-bottom: 2rpx solid #efefef;
|
||||
}
|
||||
.tabcon.data-v-235c92a6 {
|
||||
margin: -20rpx 20rpx 0;
|
||||
}
|
||||
.databox.data-v-235c92a6 {
|
||||
height: 162rpx;
|
||||
background: #ffffff;
|
||||
display: flex;
|
||||
margin-bottom: 20rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.databox .cell.data-v-235c92a6 {
|
||||
flex: 1;
|
||||
padding: 35rpx 0;
|
||||
text-align: center;
|
||||
}
|
||||
.databox .cell .num.data-v-235c92a6 {
|
||||
font-size: 38rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.databox .cell .name.data-v-235c92a6 {
|
||||
margin-top: 18rpx;
|
||||
font-size: 28rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
.filterbox.data-v-235c92a6 {
|
||||
display: flex;
|
||||
height: 128rpx;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
.filterbox .type.data-v-235c92a6 {
|
||||
position: absolute;
|
||||
left: 30rpx;
|
||||
top: 24rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #f3f4f6;
|
||||
border-radius: 15rpx;
|
||||
height: 74rpx;
|
||||
padding: 0 25rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
.u-page.data-v-235c92a6 .u-flex {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
}
|
||||
.u-page.data-v-235c92a6 .u-dropdown__menu {
|
||||
background: #fff;
|
||||
z-index: 1;
|
||||
margin-left: 180rpx;
|
||||
}
|
||||
.u-page.data-v-235c92a6 .u-dropdown__menu__item {
|
||||
height: 74rpx;
|
||||
padding: 0 20rpx;
|
||||
background: #f3f4f6;
|
||||
border-radius: 15rpx;
|
||||
flex: none;
|
||||
margin-left: 60rpx;
|
||||
}
|
||||
.u-page .casecontent.data-v-235c92a6 {
|
||||
margin-top: 16rpx;
|
||||
padding: 24rpx 30rpx;
|
||||
border-radius: 16rpx;
|
||||
border: 2rpx solid #E5E7EB;
|
||||
}
|
||||
.u-page .casecontent .author.data-v-235c92a6 {
|
||||
font-size: 26rpx;
|
||||
color: #666666;
|
||||
}
|
||||
.u-page .casecontent .content.data-v-235c92a6 {
|
||||
margin-top: 10rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333333;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.u-page .deal.data-v-235c92a6 {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
color: #6b7280;
|
||||
font-size: 24rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.u-page .deal .left.data-v-235c92a6 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .recored.data-v-235c92a6 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 31rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.u-page .deal .collect.data-v-235c92a6 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .eyebox.data-v-235c92a6 {
|
||||
width: 160rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .dot.data-v-235c92a6 {
|
||||
font-size: 34rpx;
|
||||
}
|
||||
.u-page .deal .time.data-v-235c92a6 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .num.data-v-235c92a6 {
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
.u-page .item.data-v-235c92a6 {
|
||||
border-bottom: 1rpx solid #f3f4f6;
|
||||
padding: 30rpx;
|
||||
}
|
||||
.u-page .item .title.data-v-235c92a6 {
|
||||
font-size: 30rpx;
|
||||
color: #111827;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.u-page .tagsbox.data-v-235c92a6 {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
}
|
||||
.u-page .tagsbox .tag.data-v-235c92a6 {
|
||||
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-235c92a6 {
|
||||
background: #f9f9f9;
|
||||
padding: 12rpx 30rpx;
|
||||
}
|
||||
.detail .desc.data-v-235c92a6 {
|
||||
font-size: 26rpx;
|
||||
color: #4b5563;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.detail .red.data-v-235c92a6 {
|
||||
color: #ff0000;
|
||||
}
|
||||
@@ -0,0 +1,909 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
const uni_modules_svEditor_components_common_utils = require("../../uni_modules/sv-editor/components/common/utils.js");
|
||||
if (!Array) {
|
||||
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
|
||||
const _easycom_up__textarea2 = common_vendor.resolveComponent("up--textarea");
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
|
||||
const _easycom_up_overlay2 = common_vendor.resolveComponent("up-overlay");
|
||||
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
|
||||
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
|
||||
(_easycom_u_icon2 + _easycom_up__textarea2 + _easycom_up_icon2 + _easycom_up__image2 + _easycom_up_input2 + _easycom_up_popup2 + _easycom_up_overlay2 + _easycom_up_radio2 + _easycom_up_radio_group2)();
|
||||
}
|
||||
const _easycom_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
|
||||
const _easycom_up__textarea = () => "../../node-modules/uview-plus/components/u--textarea/u--textarea.js";
|
||||
const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
|
||||
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.js";
|
||||
const _easycom_up_input = () => "../../node-modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_popup = () => "../../node-modules/uview-plus/components/u-popup/u-popup.js";
|
||||
const _easycom_up_overlay = () => "../../node-modules/uview-plus/components/u-overlay/u-overlay.js";
|
||||
const _easycom_up_radio = () => "../../node-modules/uview-plus/components/u-radio/u-radio.js";
|
||||
const _easycom_up_radio_group = () => "../../node-modules/uview-plus/components/u-radio-group/u-radio-group.js";
|
||||
if (!Math) {
|
||||
(_easycom_u_icon + _easycom_up__textarea + svEditor + _easycom_up_icon + _easycom_up__image + _easycom_up_input + _easycom_up_popup + _easycom_up_overlay + _easycom_up_radio + _easycom_up_radio_group)();
|
||||
}
|
||||
const svEditor = () => "../../uni_modules/sv-editor/components/sv-editor/sv-editor.js";
|
||||
const _sfc_main = {
|
||||
__name: "publish",
|
||||
setup(__props) {
|
||||
const isLock = common_vendor.ref(false);
|
||||
const isFlag = common_vendor.ref(false);
|
||||
const delId = common_vendor.ref("");
|
||||
const showModal = common_vendor.ref(false);
|
||||
const delType = common_vendor.ref("delDraft");
|
||||
const showCase = common_vendor.ref(false);
|
||||
const caseValue1 = common_vendor.ref("");
|
||||
const caseValue2 = common_vendor.ref("");
|
||||
const caseValue3 = common_vendor.ref("");
|
||||
const level = common_vendor.ref(1);
|
||||
const isPublish = common_vendor.ref(false);
|
||||
const labelObj = common_vendor.reactive({
|
||||
list1: [],
|
||||
list2: [],
|
||||
list3: []
|
||||
});
|
||||
const form = common_vendor.reactive({
|
||||
exchange_title: "",
|
||||
exchange_content: "",
|
||||
exchange_summary: "",
|
||||
case_exchange_vote: {},
|
||||
case_exchange_label: []
|
||||
});
|
||||
const voteData = common_vendor.reactive({
|
||||
vote_title: "",
|
||||
valid_day: 7,
|
||||
case_exchange_vote_option: [
|
||||
{
|
||||
option_value: ""
|
||||
}
|
||||
]
|
||||
});
|
||||
common_vendor.ref("");
|
||||
const showVote = common_vendor.ref(false);
|
||||
const showDraft = common_vendor.ref(false);
|
||||
const showTitle = common_vendor.ref(false);
|
||||
const draftList = common_vendor.ref([]);
|
||||
const imgList = common_vendor.ref([]);
|
||||
common_vendor.ref([]);
|
||||
const editorCtx = common_vendor.ref(null);
|
||||
const editorCtxResult = common_vendor.ref(null);
|
||||
const isFocusInfo = common_vendor.ref(true);
|
||||
const isFocusResult = common_vendor.ref(false);
|
||||
const labelList = common_vendor.ref([]);
|
||||
const goBack = () => {
|
||||
common_vendor.index.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
};
|
||||
const closeCase = () => {
|
||||
showCase.value = false;
|
||||
};
|
||||
const epaste = (e) => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:518", e);
|
||||
};
|
||||
const addOption = () => {
|
||||
voteData.case_exchange_vote_option.push({
|
||||
option_value: ""
|
||||
});
|
||||
};
|
||||
const delOption = (index) => {
|
||||
voteData.case_exchange_vote_option.splice(index, 1);
|
||||
};
|
||||
const changeDay = (type) => {
|
||||
if (type === "minus") {
|
||||
if (voteData.valid_day <= 1)
|
||||
return;
|
||||
voteData.valid_day--;
|
||||
} else if (type === "plus") {
|
||||
voteData.valid_day++;
|
||||
}
|
||||
};
|
||||
const clearVote = () => {
|
||||
voteData.vote_title = "";
|
||||
voteData.case_exchange_vote_option = [
|
||||
{
|
||||
option_value: ""
|
||||
}
|
||||
];
|
||||
voteData.valid_day = 7;
|
||||
form.case_exchange_vote.vote_title = "";
|
||||
form.case_exchange_vote.case_exchange_vote_option = [
|
||||
{
|
||||
option_value: ""
|
||||
}
|
||||
];
|
||||
form.case_exchange_vote.valid_day = 7;
|
||||
};
|
||||
const saveVote = () => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:553", voteData);
|
||||
if (voteData.vote_title == "") {
|
||||
common_vendor.index.showToast({
|
||||
title: "请输入投票标题",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (voteData.vote_title.length > 20) {
|
||||
common_vendor.index.showToast({
|
||||
title: "投票标题不能超过20个字符",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (voteData.case_exchange_vote_option.length == 0) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请添加投票选项",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
for (let i = 0; i < voteData.case_exchange_vote_option.length; i++) {
|
||||
if (voteData.case_exchange_vote_option[i].option_value == "") {
|
||||
common_vendor.index.showToast({
|
||||
title: "投票选项不能为空",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (voteData.case_exchange_vote_option[i].option_value.length > 16) {
|
||||
common_vendor.index.showToast({
|
||||
title: "第" + (i + 1) + "个投票选项超过16个字符",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (voteData.case_exchange_vote_option.length < 2) {
|
||||
common_vendor.index.showToast({
|
||||
title: "至少添加两个选项",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
Object.assign(form.case_exchange_vote, voteData);
|
||||
showVote.value = false;
|
||||
};
|
||||
const fromatDay = (value) => {
|
||||
var date = /* @__PURE__ */ new Date();
|
||||
var year = date.getFullYear();
|
||||
let Y = common_vendor.dayjs().format("YYYY");
|
||||
if (year == Y) {
|
||||
return common_vendor.dayjs(value).format("MM-DD");
|
||||
} else {
|
||||
return common_vendor.dayjs(value).format("YYYY-MM-DD");
|
||||
}
|
||||
};
|
||||
const ready = (e) => {
|
||||
editorCtx.value = e;
|
||||
let html = "<p>【患者信息】:</p><br/><p>【主诉】:</p><br/><p>【现病史及既往史】:</p><br/><p>【检查】:</p><br/><p>【临床诊断】:</p><br/><p>【治疗经过及结果】:</p><br/><br/>";
|
||||
editorCtx.value.initHtml(html);
|
||||
};
|
||||
const readyResult = (e) => {
|
||||
editorCtxResult.value = e;
|
||||
};
|
||||
const clearMuBan = () => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:625", "清空模板");
|
||||
editorCtx.value.initHtml("");
|
||||
};
|
||||
const focusInfo = () => {
|
||||
isFocusInfo.value = true;
|
||||
};
|
||||
const blurInfo = () => {
|
||||
setTimeout(() => {
|
||||
isFocusInfo.value = false;
|
||||
}, 2e3);
|
||||
};
|
||||
const focusResult = () => {
|
||||
isFocusResult.value = true;
|
||||
};
|
||||
const closeVote = () => {
|
||||
showVote.value = false;
|
||||
};
|
||||
const openVote = () => {
|
||||
showVote.value = true;
|
||||
};
|
||||
const closeDraft = () => {
|
||||
showDraft.value = false;
|
||||
};
|
||||
const openDraft = () => {
|
||||
showDraft.value = true;
|
||||
};
|
||||
const closeTitle = () => {
|
||||
showTitle.value = false;
|
||||
};
|
||||
const openTitle = () => {
|
||||
showTitle.value = true;
|
||||
};
|
||||
const alertTitle = () => {
|
||||
if (isFocusInfo.value) {
|
||||
showTitle.value = true;
|
||||
}
|
||||
};
|
||||
const pFun = (files) => {
|
||||
common_vendor.index.showLoading({
|
||||
title: "正在上传图片...",
|
||||
mask: true
|
||||
});
|
||||
let promiseFun = [];
|
||||
for (let i = 0; i < files.length; i++) {
|
||||
promiseFun.push(handleUpload(files[i]));
|
||||
}
|
||||
Promise.all(promiseFun).then((res) => {
|
||||
common_vendor.index.hideLoading();
|
||||
});
|
||||
};
|
||||
const saveDraft = async () => {
|
||||
if (isLock.value)
|
||||
return false;
|
||||
isLock.value = true;
|
||||
const res = await editorCtx.value.getLastContent();
|
||||
form.exchange_content = res.html;
|
||||
const resResult = await editorCtx.value.getLastContent();
|
||||
form.exchange_summary = resResult.html;
|
||||
if (labelList.value.length > 0) {
|
||||
form.case_exchange_label = labelList.value;
|
||||
}
|
||||
api_api.api.saveDraft(form).then((res2) => {
|
||||
isLock.value = false;
|
||||
common_vendor.index.showToast({
|
||||
title: "保存成功",
|
||||
icon: "none"
|
||||
});
|
||||
getDraftList();
|
||||
});
|
||||
};
|
||||
const editDraft = (index) => {
|
||||
let draft = draftList.value[index];
|
||||
let {
|
||||
exchange_content,
|
||||
exchange_title,
|
||||
exchange_label,
|
||||
exchange_summary,
|
||||
exchange_vote
|
||||
} = draft;
|
||||
editorCtx.value.initHtml(exchange_content);
|
||||
form.exchange_content = exchange_content;
|
||||
form.exchange_title = exchange_title;
|
||||
form.case_exchange_label = exchange_label;
|
||||
labelList.value = exchange_label;
|
||||
form.exchange_summary = exchange_summary;
|
||||
form.case_exchange_vote = exchange_vote;
|
||||
editorCtxResult.value.initHtml(exchange_content);
|
||||
Object.assign(voteData, draft);
|
||||
showDraft.value = false;
|
||||
};
|
||||
const willDelDraft = (id) => {
|
||||
delId.value = id;
|
||||
delType.value = "delDraft";
|
||||
showModal.value = true;
|
||||
};
|
||||
const confirmDel = () => {
|
||||
showModal.value = false;
|
||||
if (delType.value == "delDraft") {
|
||||
delDraft(delId.value);
|
||||
} else if (delType.value == "saveDraft") {
|
||||
saveDraft();
|
||||
}
|
||||
};
|
||||
const cancelDel = () => {
|
||||
showModal.value = false;
|
||||
if (delType.value == "saveDraft") {
|
||||
goBack();
|
||||
}
|
||||
};
|
||||
const delDraft = (id) => {
|
||||
api_api.api.delDraft(id).then((res) => {
|
||||
common_vendor.index.showToast({
|
||||
title: "删除成功",
|
||||
icon: "none"
|
||||
});
|
||||
});
|
||||
getDraftList();
|
||||
};
|
||||
const alertSave = async () => {
|
||||
if (isPublish.value) {
|
||||
goBack();
|
||||
} else {
|
||||
const res = await editorCtx.value.getLastContent();
|
||||
const resContent = await editorCtxResult.value.getLastContent();
|
||||
if (form.exchange_title || res.html || resContent.html || form.case_exchange_vote && form.case_exchange_vote.vote_title && form.case_exchange_label && form.case_exchange_label.length > 0) {
|
||||
delType.value = "saveDraft";
|
||||
showModal.value = true;
|
||||
} else {
|
||||
goBack();
|
||||
}
|
||||
}
|
||||
};
|
||||
const publish = async () => {
|
||||
const initInfo = "<p>【患者信息】:</p><br/><p>【主诉】:</p><br/><p>【现病史及既往史】:</p><br/><p>【检查】:</p><br/><p>【临床诊断】:</p><br/><p>【治疗经过及结果】:</p><br/><br/>";
|
||||
if (form.exchange_title == "") {
|
||||
common_vendor.index.showToast({
|
||||
title: "请输入标题",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
const res = await editorCtx.value.getLastContent();
|
||||
let html = editorCtx.value.exportHtml(res.html);
|
||||
if (html == initInfo) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请编辑病例信息",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (!(form.case_exchange_vote && form.case_exchange_vote.vote_title)) {
|
||||
delete form.case_exchange_vote;
|
||||
}
|
||||
if (!form.case_exchange_label || form.case_exchange_label && form.case_exchange_label.length == 0) {
|
||||
delete form.case_exchange_label;
|
||||
}
|
||||
form.case_exchange_label = labelList.value;
|
||||
if (isLock.value)
|
||||
return false;
|
||||
isFlag.value = true;
|
||||
form.exchange_content = html;
|
||||
const resContent = await editorCtxResult.value.getLastContent();
|
||||
let reshtml = editorCtxResult.value.exportHtml(resContent.html);
|
||||
form.exchange_summary = reshtml == "<p><br></p>" ? "" : reshtml;
|
||||
api_api.api.addExchange(form).then((res2) => {
|
||||
common_vendor.index.showToast({
|
||||
title: "发布成功",
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
isFlag.value = false;
|
||||
isPublish.value = true;
|
||||
common_vendor.index.navigateBack();
|
||||
});
|
||||
};
|
||||
const handleUpload = (file) => {
|
||||
api_api.api.getOss({
|
||||
scene: 1
|
||||
}).then((rep) => {
|
||||
let result = rep.data;
|
||||
if (result.code == 200) {
|
||||
let { access_id, dir, policy, signature, host } = result.data;
|
||||
let time = common_vendor.dayjs().format("YYYYMMDDHHmmss");
|
||||
let random = generateRandomNumber();
|
||||
let filename = time + random;
|
||||
let imgType = "." + getImageFormat(file);
|
||||
return new Promise((resolve, reject) => {
|
||||
common_vendor.index.uploadFile({
|
||||
url: host,
|
||||
// 仅为示例,非真实的接口地址
|
||||
filePath: file,
|
||||
name: "file",
|
||||
formData: {
|
||||
OSSAccessKeyId: access_id,
|
||||
policy,
|
||||
key: dir + time + random + imgType,
|
||||
signature
|
||||
},
|
||||
success(res) {
|
||||
if (res.statusCode === 204) {
|
||||
let url = host + "/" + dir + filename + imgType;
|
||||
imgList.value.push(url);
|
||||
uni_modules_svEditor_components_common_utils.addImage([url]);
|
||||
}
|
||||
},
|
||||
fail: (err) => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:861", err);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
const insertWord = (word) => {
|
||||
uni_modules_svEditor_components_common_utils.addText(word);
|
||||
showTitle.value = false;
|
||||
};
|
||||
const insertAllWord = () => {
|
||||
let word = [
|
||||
"患者信息",
|
||||
"主诉",
|
||||
"现病史及既往史:",
|
||||
"检查",
|
||||
"临床诊断",
|
||||
"治疗经过及结果"
|
||||
];
|
||||
word.forEach((item) => {
|
||||
uni_modules_svEditor_components_common_utils.addText(item);
|
||||
});
|
||||
showTitle.value = false;
|
||||
};
|
||||
const generateRandomNumber = () => {
|
||||
let randomNumber = Math.floor(1e3 + Math.random() * 9e3);
|
||||
return randomNumber;
|
||||
};
|
||||
const getImageFormat = (imageUrl) => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:891", imageUrl);
|
||||
const lastDotIndex = imageUrl.lastIndexOf(".");
|
||||
if (lastDotIndex !== -1) {
|
||||
return imageUrl.substring(lastDotIndex + 1);
|
||||
}
|
||||
return "unknown";
|
||||
};
|
||||
const insertImage = (file) => {
|
||||
if (!(!isFocusInfo.value && !isFocusResult.value)) {
|
||||
common_vendor.index.chooseImage({
|
||||
count: 9,
|
||||
//默认9
|
||||
sizeType: ["original", "compressed"],
|
||||
//可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ["album"],
|
||||
//从相册选择
|
||||
extension: [".jpg", ".png", ".jpeg"],
|
||||
success: function(res) {
|
||||
pFun(res.tempFilePaths);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
const insertVideo = (file) => {
|
||||
if (!(!isFocusInfo.value && !isFocusResult.value)) {
|
||||
common_vendor.index.chooseVideo({
|
||||
count: 5,
|
||||
//默认9//可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ["album"],
|
||||
//从相册选择
|
||||
extension: [".mp4", ".webm", ".ogg"],
|
||||
success: function(res) {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:918", res.tempFilePath);
|
||||
HandleAddVideo(res.tempFilePath);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
const HandleAddVideo = async (file) => {
|
||||
common_vendor.index.showLoading({
|
||||
title: "正在上传视频...",
|
||||
mask: true
|
||||
});
|
||||
const videos = await uni_modules_svEditor_components_common_utils.addVideo(async (editorCtx2) => {
|
||||
return new Promise((resolve) => {
|
||||
api_api.api.getOss({
|
||||
scene: 2
|
||||
}).then((rep) => {
|
||||
let result = rep.data;
|
||||
if (result.code == 200) {
|
||||
let { access_id, dir, policy, signature, host } = result.data;
|
||||
let time = common_vendor.dayjs().format("YYYYMMDDHHmmss");
|
||||
let random = generateRandomNumber();
|
||||
let filename = time + random;
|
||||
let imgType = "." + getImageFormat(file);
|
||||
return new Promise((res, reject) => {
|
||||
common_vendor.index.uploadFile({
|
||||
url: host,
|
||||
// 仅为示例,非真实的接口地址
|
||||
filePath: file,
|
||||
name: "file",
|
||||
formData: {
|
||||
OSSAccessKeyId: access_id,
|
||||
policy,
|
||||
key: dir + time + random + imgType,
|
||||
signature
|
||||
},
|
||||
async success(res2) {
|
||||
if (res2.statusCode === 204) {
|
||||
let url = host + "/" + dir + filename + imgType;
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:960", editorCtx2);
|
||||
let imgUrl = "https://cn.bing.com//th?id=OHR.FlamingosNamibia_ZH-CN3639748956_1920x1080.jpg";
|
||||
const fileThumbnail = await editorCtx2.createCoverThumbnail(
|
||||
imgUrl
|
||||
);
|
||||
resolve([
|
||||
{
|
||||
videoUrl: url,
|
||||
videoImg: fileThumbnail
|
||||
}
|
||||
]);
|
||||
}
|
||||
},
|
||||
fail: (err) => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:975", err);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
if (videos) {
|
||||
common_vendor.index.showLoading();
|
||||
common_vendor.index.showToast({ title: "添加视频成功", icon: "success" });
|
||||
} else {
|
||||
common_vendor.index.showToast({ title: "添加视频失败", icon: "error" });
|
||||
}
|
||||
};
|
||||
const getDraftList = () => {
|
||||
api_api.api.getDraftList().then((res) => {
|
||||
draftList.value = res.data.data.data;
|
||||
});
|
||||
};
|
||||
const getCaseLabel = (lev, pid = 0) => {
|
||||
api_api.api.getCaseLabel({
|
||||
pid
|
||||
}).then((res) => {
|
||||
if (lev == 1) {
|
||||
labelObj.list1 = res.data.data;
|
||||
} else if (lev == 2) {
|
||||
labelObj.list2 = res.data.data;
|
||||
} else if (lev == 3) {
|
||||
labelObj.list3 = res.data.data;
|
||||
}
|
||||
level.value = lev;
|
||||
});
|
||||
};
|
||||
const confirmCase = () => {
|
||||
if (level.value == 1 && caseValue1.value == "") {
|
||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
||||
return false;
|
||||
}
|
||||
if (level.value == 2 && caseValue2.value == "") {
|
||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
||||
return false;
|
||||
}
|
||||
if (level.value == 3 && caseValue3.value == "") {
|
||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
||||
return false;
|
||||
}
|
||||
showCase.value = false;
|
||||
if (level.value == 1) {
|
||||
let label = labelObj.list1.find((item) => item.app_iden == caseValue1.value);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1025", label);
|
||||
labelList.value.push({
|
||||
app_iden: label.app_iden,
|
||||
label_name: label.label_name
|
||||
});
|
||||
}
|
||||
if (level.value == 2) {
|
||||
let label = labelObj.list2.find((item) => item.app_iden == caseValue2.value);
|
||||
labelList.value.push({
|
||||
app_iden: label.app_iden,
|
||||
label_name: label.label_name
|
||||
});
|
||||
}
|
||||
if (level.value == 3) {
|
||||
let label = labelObj.list3.find((item) => item.app_iden == caseValue3.value);
|
||||
labelList.value.push({
|
||||
app_iden: label.app_iden,
|
||||
label_name: label.label_name
|
||||
});
|
||||
}
|
||||
labelList.value = labelList.value.filter((item, index) => labelList.value.findIndex((i) => i.app_iden === item.app_iden) === index);
|
||||
caseValue1.value = "";
|
||||
caseValue2.value = "";
|
||||
caseValue3.value = "";
|
||||
};
|
||||
const continueCase = () => {
|
||||
if (level.value == 1 && caseValue1.value == "") {
|
||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
||||
return false;
|
||||
}
|
||||
if (level.value == 2 && caseValue2.value == "") {
|
||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
||||
return false;
|
||||
}
|
||||
if (level.value == 3 && caseValue3.value == "") {
|
||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
||||
return false;
|
||||
}
|
||||
if (level.value == 1) {
|
||||
getCaseLabel(2, caseValue1.value);
|
||||
} else if (level.value == 2) {
|
||||
getCaseLabel(3, caseValue2.value);
|
||||
}
|
||||
};
|
||||
const delLabel = (index) => {
|
||||
labelList.value.splice(index, 1);
|
||||
};
|
||||
const openLabelPop = () => {
|
||||
showCase.value = true;
|
||||
getCaseLabel(1, 0);
|
||||
};
|
||||
common_vendor.onLoad(() => {
|
||||
getDraftList();
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
name: "arrow-left",
|
||||
color: "#000",
|
||||
size: "24"
|
||||
}),
|
||||
b: common_vendor.o(alertSave),
|
||||
c: common_vendor.o(($event) => form.exchange_title = $event),
|
||||
d: common_vendor.p({
|
||||
autoHeight: true,
|
||||
placeholder: "输入标题,可包含患者信息、主诉",
|
||||
modelValue: form.exchange_title
|
||||
}),
|
||||
e: common_vendor.p({
|
||||
name: "trash",
|
||||
color: "#6B7280",
|
||||
size: "18"
|
||||
}),
|
||||
f: common_vendor.o(clearMuBan),
|
||||
g: common_vendor.o(ready),
|
||||
h: common_vendor.o(focusInfo),
|
||||
i: common_vendor.o(blurInfo),
|
||||
j: common_vendor.o(epaste),
|
||||
k: common_vendor.p({
|
||||
placeholder: "患者基本情况,检查结果,诊疗图片或视频",
|
||||
eid: "editor-id",
|
||||
pasteMode: "origin"
|
||||
}),
|
||||
l: common_vendor.o(readyResult),
|
||||
m: common_vendor.o(focusResult),
|
||||
n: common_vendor.o(focusResult),
|
||||
o: common_vendor.p({
|
||||
placeholder: "分享经验和心得,如:诊断与鉴别诊断易错点,治疗过程难点,病例的相关知识总结及讨论等",
|
||||
eid: "editorResult"
|
||||
}),
|
||||
p: common_vendor.f(labelList.value, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.label_name),
|
||||
b: "bfce3555-5-" + i0,
|
||||
c: common_vendor.o(($event) => delLabel(index), item.app_iden),
|
||||
d: item.app_iden
|
||||
};
|
||||
}),
|
||||
q: common_vendor.p({
|
||||
name: "close-circle",
|
||||
color: "#3CC7C0",
|
||||
size: "20"
|
||||
}),
|
||||
r: common_vendor.p({
|
||||
name: "plus",
|
||||
color: "#3CC7C0",
|
||||
size: "16"
|
||||
}),
|
||||
s: common_vendor.o(openLabelPop),
|
||||
t: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.photoImg),
|
||||
width: "32rpx",
|
||||
height: "32rpx"
|
||||
}),
|
||||
v: common_vendor.o(insertImage),
|
||||
w: !isFocusInfo.value && !isFocusResult.value ? 1 : "",
|
||||
x: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.videoImg$1),
|
||||
width: "32rpx",
|
||||
height: "32rpx"
|
||||
}),
|
||||
y: common_vendor.o(insertVideo),
|
||||
z: !isFocusInfo.value && !isFocusResult.value ? 1 : "",
|
||||
A: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.addImg),
|
||||
width: "32rpx",
|
||||
height: "32rpx"
|
||||
}),
|
||||
B: !isFocusInfo.value ? 1 : "",
|
||||
C: common_vendor.o(alertTitle),
|
||||
D: common_vendor.o(($event) => showDraft.value = true),
|
||||
E: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.voteImg),
|
||||
width: "47rpx",
|
||||
height: "47rpx"
|
||||
}),
|
||||
F: common_vendor.o(($event) => showVote.value = true),
|
||||
G: common_vendor.o(publish),
|
||||
H: common_vendor.o(closeVote),
|
||||
I: common_vendor.o(saveVote),
|
||||
J: common_vendor.o(($event) => voteData.vote_title = $event),
|
||||
K: common_vendor.p({
|
||||
placeholder: "请输入投票标题",
|
||||
border: "surround",
|
||||
clearable: true,
|
||||
modelValue: voteData.vote_title
|
||||
}),
|
||||
L: common_vendor.f(voteData.case_exchange_vote_option, (item, index, i0) => {
|
||||
return {
|
||||
a: "bfce3555-13-" + i0 + ",bfce3555-11",
|
||||
b: common_vendor.o(($event) => item.option_value = $event, index),
|
||||
c: common_vendor.p({
|
||||
placeholder: "输入选项,建议少于16个字",
|
||||
border: "surround",
|
||||
clearable: true,
|
||||
modelValue: item.option_value
|
||||
}),
|
||||
d: "bfce3555-14-" + i0 + ",bfce3555-11",
|
||||
e: common_vendor.o(($event) => delOption(index), index),
|
||||
f: index
|
||||
};
|
||||
}),
|
||||
M: common_vendor.p({
|
||||
name: "minus-circle",
|
||||
color: "red",
|
||||
size: "28"
|
||||
}),
|
||||
N: common_vendor.p({
|
||||
name: "plus",
|
||||
color: "#4B5563",
|
||||
size: "18"
|
||||
}),
|
||||
O: common_vendor.o(addOption),
|
||||
P: common_vendor.o(($event) => changeDay("minus")),
|
||||
Q: common_vendor.t(voteData.valid_day),
|
||||
R: common_vendor.o(($event) => changeDay("plus")),
|
||||
S: common_vendor.o(saveVote),
|
||||
T: common_vendor.o(clearVote),
|
||||
U: common_vendor.o(closeVote),
|
||||
V: common_vendor.o(openVote),
|
||||
W: common_vendor.p({
|
||||
round: 10,
|
||||
show: showVote.value,
|
||||
mode: "bottom"
|
||||
}),
|
||||
X: common_vendor.p({
|
||||
name: "close",
|
||||
color: "#4B5563",
|
||||
size: "20"
|
||||
}),
|
||||
Y: common_vendor.o(closeDraft),
|
||||
Z: common_vendor.f(draftList.value, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.exchange_title ? item.exchange_title : "无标题"),
|
||||
b: item.exchange_content
|
||||
}, item.exchange_content ? {
|
||||
c: item.exchange_content
|
||||
} : item.exchange_summary ? common_vendor.e({
|
||||
e: item.exchange_summary
|
||||
}, item.exchange_summary ? {
|
||||
f: item.exchange_summary
|
||||
} : {}) : item.exchange_label && item.exchange_label.length > 0 ? common_vendor.e({
|
||||
h: item.exchange_summary
|
||||
}, item.exchange_summary ? {} : {}, {
|
||||
i: common_vendor.f(item.exchange_label, (cell, k1, i1) => {
|
||||
return {
|
||||
a: common_vendor.t(cell.label_name),
|
||||
b: cell.label_name
|
||||
};
|
||||
})
|
||||
}) : item.exchange_vote ? {
|
||||
k: common_vendor.t(item.exchange_vote.vote_title)
|
||||
} : {}, {
|
||||
d: item.exchange_summary,
|
||||
g: item.exchange_label && item.exchange_label.length > 0,
|
||||
j: item.exchange_vote,
|
||||
l: common_vendor.t(fromatDay(item.updated_at)),
|
||||
m: "bfce3555-18-" + i0 + ",bfce3555-16",
|
||||
n: common_vendor.o(($event) => willDelDraft(item.draft_id), item.draft_id),
|
||||
o: "bfce3555-19-" + i0 + ",bfce3555-16",
|
||||
p: common_vendor.o(($event) => editDraft(index), item.draft_id),
|
||||
q: item.draft_id
|
||||
});
|
||||
}),
|
||||
aa: common_vendor.p({
|
||||
name: "trash",
|
||||
color: "#4B5563",
|
||||
size: "16"
|
||||
}),
|
||||
ab: common_vendor.p({
|
||||
name: "edit-pen",
|
||||
color: "#fff",
|
||||
size: "17"
|
||||
}),
|
||||
ac: common_vendor.o(closeDraft),
|
||||
ad: common_vendor.o(openDraft),
|
||||
ae: common_vendor.p({
|
||||
round: 10,
|
||||
zIndex: "9",
|
||||
show: showDraft.value,
|
||||
mode: "bottom"
|
||||
}),
|
||||
af: common_vendor.p({
|
||||
name: "close",
|
||||
color: "#4B5563",
|
||||
size: "20"
|
||||
}),
|
||||
ag: common_vendor.o(closeTitle),
|
||||
ah: common_vendor.o(insertAllWord),
|
||||
ai: common_vendor.p({
|
||||
name: "plus-circle",
|
||||
color: "#3CC7C0",
|
||||
size: "20"
|
||||
}),
|
||||
aj: common_vendor.o(insertAllWord),
|
||||
ak: common_vendor.o(($event) => insertWord("患者信息")),
|
||||
al: common_vendor.o(($event) => insertWord("主诉")),
|
||||
am: common_vendor.o(($event) => insertWord("现病史及既往史")),
|
||||
an: common_vendor.o(($event) => insertWord("检查")),
|
||||
ao: common_vendor.o(($event) => insertWord("临床诊断")),
|
||||
ap: common_vendor.o(($event) => insertWord("治疗经过及结果")),
|
||||
aq: common_vendor.o(closeTitle),
|
||||
ar: common_vendor.o(openTitle),
|
||||
as: common_vendor.p({
|
||||
round: 10,
|
||||
zIndex: "9",
|
||||
show: showTitle.value,
|
||||
mode: "bottom"
|
||||
}),
|
||||
at: delType.value == "delDraft"
|
||||
}, delType.value == "delDraft" ? {} : delType.value == "saveDraft" ? {} : {}, {
|
||||
av: delType.value == "saveDraft",
|
||||
aw: common_vendor.o(cancelDel),
|
||||
ax: common_vendor.o(confirmDel),
|
||||
ay: common_vendor.p({
|
||||
show: showModal.value,
|
||||
["mask-click-able"]: true
|
||||
}),
|
||||
az: common_vendor.o(($event) => showCase.value = false),
|
||||
aA: common_vendor.o(continueCase),
|
||||
aB: level.value != 3,
|
||||
aC: common_vendor.o(confirmCase),
|
||||
aD: common_vendor.f(labelObj.list1, (item, k0, i0) => {
|
||||
return {
|
||||
a: "bfce3555-26-" + i0 + ",bfce3555-25",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
name: item.app_iden
|
||||
}),
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
aE: common_vendor.o(($event) => caseValue1.value = $event),
|
||||
aF: common_vendor.p({
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue1.value
|
||||
}),
|
||||
aG: level.value == 1,
|
||||
aH: common_vendor.f(labelObj.list2, (item, k0, i0) => {
|
||||
return {
|
||||
a: "bfce3555-28-" + i0 + ",bfce3555-27",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
name: item.app_iden
|
||||
}),
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
aI: common_vendor.o(($event) => caseValue2.value = $event),
|
||||
aJ: common_vendor.p({
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue2.value
|
||||
}),
|
||||
aK: level.value == 2,
|
||||
aL: common_vendor.f(labelObj.list2, (item, k0, i0) => {
|
||||
return {
|
||||
a: "bfce3555-30-" + i0 + ",bfce3555-29",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
name: item.app_iden
|
||||
}),
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
aM: common_vendor.o(($event) => caseValue3.value = $event),
|
||||
aN: common_vendor.p({
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue3.value
|
||||
}),
|
||||
aO: level.value == 3,
|
||||
aP: common_vendor.o(closeCase),
|
||||
aQ: common_vendor.p({
|
||||
round: 10,
|
||||
zIndex: "9",
|
||||
show: showCase.value,
|
||||
mode: "bottom"
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bfce3555"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/publish/publish.js.map
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"u-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
|
||||
"up--textarea": "../../node-modules/uview-plus/components/u--textarea/u--textarea",
|
||||
"up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
|
||||
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
|
||||
"up-input": "../../node-modules/uview-plus/components/u-input/u-input",
|
||||
"up-popup": "../../node-modules/uview-plus/components/u-popup/u-popup",
|
||||
"up-overlay": "../../node-modules/uview-plus/components/u-overlay/u-overlay",
|
||||
"up-radio": "../../node-modules/uview-plus/components/u-radio/u-radio",
|
||||
"up-radio-group": "../../node-modules/uview-plus/components/u-radio-group/u-radio-group",
|
||||
"sv-editor": "../../uni_modules/sv-editor/components/sv-editor/sv-editor"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,649 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.casepop.data-v-bfce3555 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: calc(100vh - 750rpx);
|
||||
}
|
||||
.casepop .continue.data-v-bfce3555 {
|
||||
color: #2878ff !important;
|
||||
}
|
||||
.casecon.data-v-bfce3555 {
|
||||
flex: 1;
|
||||
overflow-y: scroll;
|
||||
padding-top: 10rpx;
|
||||
min-height: 350rpx;
|
||||
}
|
||||
.casecon .column.data-v-bfce3555 {
|
||||
padding: 0 30rpx;
|
||||
border-bottom: 2rpx solid #e5e7eb;
|
||||
}
|
||||
.navbox.data-v-bfce3555 {
|
||||
padding-bottom: 20rpx;
|
||||
background-color: #f9fafb;
|
||||
position: relative;
|
||||
height: 200rpx;
|
||||
background: radial-gradient(60% 90% at 4% 2%, #43c9c3 0%, rgba(255, 255, 255, 0) 100%);
|
||||
}
|
||||
.navbox .bg.data-v-bfce3555 {
|
||||
z-index: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
background: radial-gradient(43% 90% at 84% 6%, #ffd6c9 0%, rgba(255, 255, 255, 0) 100%);
|
||||
}
|
||||
.navbox .namebox.data-v-bfce3555 {
|
||||
padding-top: 102rpx;
|
||||
justify-content: center;
|
||||
margin: 0rpx 30rpx 0rpx;
|
||||
position: relative;
|
||||
display: flex;
|
||||
}
|
||||
.navbox .namebox .back.data-v-bfce3555 {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
}
|
||||
.navbox .namebox .name.data-v-bfce3555 {
|
||||
margin-left: 16rpx;
|
||||
font-size: 30rpx;
|
||||
color: #111827;
|
||||
}
|
||||
.navbox .search.data-v-bfce3555 {
|
||||
margin: 40rpx 30rpx 0rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.navbox .search .searchwrap.data-v-bfce3555 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex: 1;
|
||||
padding-left: 28rpx;
|
||||
margin-right: 23rpx;
|
||||
height: 80rpx;
|
||||
background: #fbfbfb;
|
||||
box-shadow: 0px 4rpx 10rpx 0px rgba(153, 153, 153, 0.5);
|
||||
border-radius: 40rpx;
|
||||
}
|
||||
.navbox .search .searchwrap .ipt.data-v-bfce3555 {
|
||||
margin-left: 15rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.zanboxpop.data-v-bfce3555 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
}
|
||||
.zanboxpop .zanwraper.data-v-bfce3555 {
|
||||
width: 630rpx;
|
||||
margin: 0 auto;
|
||||
padding-bottom: 50rpx;
|
||||
background: #f5f6f9;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.zanboxpop .zanwraper .title.data-v-bfce3555 {
|
||||
margin-top: 48rpx;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
font-size: 36rpx;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
}
|
||||
.zanboxpop .zanwraper .content.data-v-bfce3555 {
|
||||
padding: 30rpx 0;
|
||||
background: #f5f6f9;
|
||||
text-align: center;
|
||||
}
|
||||
.zanboxpop .zanwraper .count.data-v-bfce3555 {
|
||||
margin-top: 24rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
}
|
||||
.zanboxpop .zanwraper .count .num.data-v-bfce3555 {
|
||||
color: #ff0000;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.zanboxpop .zanwraper .count .earn.data-v-bfce3555 {
|
||||
font-size: 32rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox.data-v-bfce3555 {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
margin: 30rpx 0px 40rpx;
|
||||
padding: 0 40rpx;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox .minus.data-v-bfce3555 {
|
||||
flex-shrink: 0;
|
||||
margin-left: 10rp;
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
font-size: 60rpx;
|
||||
color: #333;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #ffffff;
|
||||
border-radius: 12rpx;
|
||||
border: 2rpx solid #e9e9e9;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox .add.data-v-bfce3555 {
|
||||
flex-shrink: 0;
|
||||
width: 90rpx;
|
||||
margin-left: 10rpx;
|
||||
height: 90rpx;
|
||||
font-size: 60rpx;
|
||||
color: #333;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
background: #3cc7c0;
|
||||
border-radius: 12rpx;
|
||||
border: 2rpx solid #3cc7c0;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox.data-v-bfce3555 .u-input__content__field-wrapper__field {
|
||||
height: 60rpx;
|
||||
font-size: 34rpx !important;
|
||||
text-align: center !important;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox.data-v-bfce3555 .u-input {
|
||||
background: #f2f2f2;
|
||||
width: 200rpx !important;
|
||||
flex: none;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox.data-v-bfce3555 .u-input--radius {
|
||||
border-radius: 24rrpx;
|
||||
}
|
||||
.zanboxpop .zanwraper .btnbox.data-v-bfce3555 {
|
||||
margin: 0px 40rpx 0px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.zanboxpop .zanwraper .btnbox .cancle.data-v-bfce3555 {
|
||||
color: rgba(0, 0, 0, 0.3);
|
||||
width: 256rpx;
|
||||
height: 88rpx;
|
||||
background: #f5f6f9;
|
||||
border-radius: 25px;
|
||||
border: 2rpx solid rgba(0, 0, 0, 0.15);
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.zanboxpop .zanwraper .btnbox .ok.data-v-bfce3555 {
|
||||
color: #fff;
|
||||
width: 256rpx;
|
||||
height: 88rpx;
|
||||
background: #3cc7c0;
|
||||
border-radius: 25px;
|
||||
border: 2rpx solid #3cc7c0;
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.titlepop .top.data-v-bfce3555 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
margin: 0 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
font-size: 30rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.titlepop .con.data-v-bfce3555 {
|
||||
padding-bottom: 50rpx;
|
||||
}
|
||||
.titlepop .cellbox.data-v-bfce3555 {
|
||||
margin: 20rpx 30rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.titlepop .cellbox .cell.data-v-bfce3555 {
|
||||
width: 200rpx;
|
||||
height: 60rpx;
|
||||
border-radius: 25rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #e5e7eb78;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
#editor.data-v-bfce3555 {
|
||||
padding: 0 30rpx;
|
||||
height: calc(100vh - 700rpx);
|
||||
}
|
||||
#editorRes.data-v-bfce3555 {
|
||||
min-height: 300rpx;
|
||||
}
|
||||
#editorRes.data-v-bfce3555 .sv-editor-wrapper {
|
||||
flex: 1;
|
||||
min-height: 300rpx;
|
||||
}
|
||||
.myVideo.data-v-bfce3555 {
|
||||
width: 100%;
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
.imgbox.data-v-bfce3555 {
|
||||
margin: 0 30rpx 30rpx;
|
||||
position: relative;
|
||||
}
|
||||
.imgbox .close.data-v-bfce3555 {
|
||||
position: absolute;
|
||||
top: 0rpx;
|
||||
right: 0;
|
||||
z-index: 9999;
|
||||
}
|
||||
.imgbox .imgunit.data-v-bfce3555 {
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
position: relative;
|
||||
}
|
||||
.imgbox .imgunit .close.data-v-bfce3555 {
|
||||
position: absolute;
|
||||
top: 0rpx;
|
||||
right: 0;
|
||||
}
|
||||
.draftpop .titlebox.data-v-bfce3555 {
|
||||
text-align: center;
|
||||
padding: 30rpx;
|
||||
font-size: 31rpx;
|
||||
color: #111827;
|
||||
position: relative;
|
||||
}
|
||||
.draftpop .titlebox .close.data-v-bfce3555 {
|
||||
position: absolute;
|
||||
top: 20rpx;
|
||||
right: 30rpx;
|
||||
}
|
||||
.draftpop .draftlist.data-v-bfce3555 {
|
||||
height: calc(100vh - 500rpx);
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.draftpop .draftlist .cell.data-v-bfce3555 {
|
||||
padding-bottom: 34rpx;
|
||||
border-bottom: 2rpx solid #e5e7eb;
|
||||
}
|
||||
.draftpop .draftlist .cell .title.data-v-bfce3555 {
|
||||
margin: 15rpx 30rpx 0;
|
||||
font-size: 36rpx;
|
||||
color: #111827;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.draftpop .draftlist .cell .smalltitle.data-v-bfce3555 {
|
||||
margin: 4px 0rpx 0;
|
||||
font-size: 30rpx;
|
||||
color: #666666;
|
||||
line-height: 38rpx;
|
||||
}
|
||||
.draftpop .draftlist .cell .con.data-v-bfce3555 {
|
||||
font-size: 30rpx;
|
||||
color: #666666;
|
||||
line-height: 38rpx;
|
||||
font-size: 30rpx;
|
||||
color: #666666;
|
||||
line-height: 38rpx;
|
||||
}
|
||||
.draftpop .draftlist .cell .deal.data-v-bfce3555 {
|
||||
margin: 36rpx 30rpx 0;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.draftpop .draftlist .cell .deal .time.data-v-bfce3555 {
|
||||
font-size: 26rpx;
|
||||
color: #9ca3af;
|
||||
}
|
||||
.draftpop .draftlist .cell .deal .right.data-v-bfce3555 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.draftpop .draftlist .cell .deal .del.data-v-bfce3555 {
|
||||
width: 138rpx;
|
||||
height: 62rpx;
|
||||
background: #f3f4f6;
|
||||
display: flex;
|
||||
border-radius: 20rpx;
|
||||
align-items: center;
|
||||
font-size: 27rpx;
|
||||
color: #4b5563;
|
||||
justify-content: center;
|
||||
}
|
||||
.draftpop .draftlist .cell .deal .edit.data-v-bfce3555 {
|
||||
margin-left: 23rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 192rpx;
|
||||
height: 62rpx;
|
||||
font-size: 27rpx;
|
||||
color: #ffffff;
|
||||
background: #3cc7c0;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
.expire.data-v-bfce3555 {
|
||||
margin-top: 46rpx;
|
||||
padding: 0 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.expire .name.data-v-bfce3555 {
|
||||
font-size: 31rpx;
|
||||
color: #111827;
|
||||
}
|
||||
.expire .right.data-v-bfce3555 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.expire .right .day.data-v-bfce3555 {
|
||||
min-width: 50rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.expire .right .minus.data-v-bfce3555 {
|
||||
width: 62rpx;
|
||||
height: 62rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #f5f5f5;
|
||||
border-radius: 50%;
|
||||
font-size: 50rpx;
|
||||
}
|
||||
.expire .right .plus.data-v-bfce3555 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 50rpx;
|
||||
justify-content: center;
|
||||
width: 62rpx;
|
||||
height: 62rpx;
|
||||
background: #f5f5f5;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.row.data-v-bfce3555 {
|
||||
padding: 0 30rpx;
|
||||
margin-bottom: 23rpx;
|
||||
}
|
||||
.row.data-v-bfce3555 .u-input {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
.row.data-v-bfce3555 .u-input--radius {
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
.row.data-v-bfce3555 .u-input__content__field-wrapper__field {
|
||||
height: 92rpx;
|
||||
}
|
||||
.first.data-v-bfce3555 {
|
||||
margin-bottom: 47rpx;
|
||||
}
|
||||
.votepop .confirm.data-v-bfce3555 {
|
||||
margin: 39rpx 30rpx 0;
|
||||
height: 92rpx;
|
||||
background: #3cc7c0;
|
||||
border-radius: 15rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 31rpx;
|
||||
color: #ffffff;
|
||||
justify-content: center;
|
||||
}
|
||||
.votepop .del.data-v-bfce3555 {
|
||||
margin: 30rpx 30rpx 30rpx;
|
||||
height: 92rpx;
|
||||
background: #fff;
|
||||
border-radius: 15rpx;
|
||||
font-size: 31rpx;
|
||||
color: #666666;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.votepop .tips.data-v-bfce3555 {
|
||||
margin-top: 30rpx;
|
||||
font-size: 27rpx;
|
||||
color: #9ca3af;
|
||||
line-height: 38rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.votepop .add.data-v-bfce3555 {
|
||||
margin: 0 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 92rpx;
|
||||
justify-content: center;
|
||||
background: #f5f5f5;
|
||||
border-radius: 15rpx;
|
||||
font-size: 31rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
.votepop .add .desc.data-v-bfce3555 {
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
.votepop .titlebox.data-v-bfce3555 {
|
||||
padding: 0 30rpx;
|
||||
height: 86rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2rpx solid #f3f4f6;
|
||||
}
|
||||
.votepop .titlebox .left.data-v-bfce3555 {
|
||||
font-size: 31rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
.votepop .titlebox .right.data-v-bfce3555 {
|
||||
font-size: 31rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.votepop .votecon.data-v-bfce3555 {
|
||||
max-height: calc(100vh - 530rpx);
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.votepop .votecon .row.data-v-bfce3555 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.votepop .votecon .row .iconbox.data-v-bfce3555 {
|
||||
margin-left: 15rpx;
|
||||
align-items: center;
|
||||
}
|
||||
.votepop .votecon .titlebox.data-v-bfce3555 {
|
||||
border: none;
|
||||
margin: 30rpx 0 20rpx;
|
||||
}
|
||||
.votepop .votecon .titlebox .title.data-v-bfce3555 {
|
||||
font-size: 31rpx;
|
||||
color: #111827;
|
||||
}
|
||||
.votepop .votecon .titlebox .desc.data-v-bfce3555 {
|
||||
font-size: 27rpx;
|
||||
color: #9ca3af;
|
||||
}
|
||||
.upage.data-v-bfce3555 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
}
|
||||
.upage.data-v-bfce3555 .u-image {
|
||||
background: transparent !important;
|
||||
}
|
||||
.toolbox.data-v-bfce3555 {
|
||||
border-top: 2rpx solid #f3f4f6;
|
||||
padding: 22rpx 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.toolbox .cell.data-v-bfce3555 {
|
||||
margin-right: 20rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.toolbox .cell .name.data-v-bfce3555 {
|
||||
font-size: 25rpx;
|
||||
margin-left: 4rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
.toolbox .cell.active.data-v-bfce3555 {
|
||||
opacity: 0.65;
|
||||
}
|
||||
.bottom.data-v-bfce3555 {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
z-index: 3;
|
||||
background: #ffffff;
|
||||
}
|
||||
.bottom .bottombtn.data-v-bfce3555 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-top: 2rpx solid #e5e7eb;
|
||||
height: 133rpx;
|
||||
}
|
||||
.bottom .right.data-v-bfce3555 {
|
||||
margin-right: 30rpx;
|
||||
flex: 1;
|
||||
margin-left: 32rpx;
|
||||
height: 86rpx;
|
||||
background: #3cc7c0;
|
||||
border-radius: 23rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 31rpx;
|
||||
color: #ffffff;
|
||||
}
|
||||
.bottom .left.data-v-bfce3555 {
|
||||
margin-left: 30rpx;
|
||||
display: flex;
|
||||
}
|
||||
.bottom .left .draft.data-v-bfce3555 {
|
||||
width: 162rpx;
|
||||
height: 86rpx;
|
||||
background: rgba(0, 0, 0, 0);
|
||||
border-radius: 16rpx;
|
||||
border: 2rpx solid #e5e7eb;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.bottom .left .vote.data-v-bfce3555 {
|
||||
margin-left: 25rpx;
|
||||
width: 162rpx;
|
||||
height: 86rpx;
|
||||
background: rgba(0, 0, 0, 0);
|
||||
border-radius: 16rpx;
|
||||
border: 2rpx solid #e5e7eb;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.form.data-v-bfce3555 {
|
||||
height: calc(100vh - 133rpx);
|
||||
margin: -20rpx 0rpx 134rpx;
|
||||
padding-bottom: 80rpx;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.form .sickbox.data-v-bfce3555 {
|
||||
display: flex;
|
||||
padding: 25rpx 25rpx 0;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.form .add.data-v-bfce3555 {
|
||||
display: flex;
|
||||
font-size: 26rpx;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #3cc7c0;
|
||||
margin-left: 18rpx;
|
||||
}
|
||||
.form .sick.data-v-bfce3555 {
|
||||
position: relative;
|
||||
padding: 0 60rpx 0 30rpx;
|
||||
height: 60rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #f9f9f9;
|
||||
border-radius: 40rpx;
|
||||
font-size: 25rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.form .sick .del.data-v-bfce3555 {
|
||||
position: absolute;
|
||||
right: 12rpx;
|
||||
}
|
||||
.form .textcon.data-v-bfce3555 {
|
||||
border-bottom: 2rpx solid #f3f4f6;
|
||||
}
|
||||
.form .textbox.data-v-bfce3555 {
|
||||
padding: 0 30rpx;
|
||||
border-bottom: 2rpx solid #f3f4f6;
|
||||
}
|
||||
.form .textbox.data-v-bfce3555 .u-textarea__field {
|
||||
min-height: 55rpx !important;
|
||||
}
|
||||
.form .textcell.data-v-bfce3555 {
|
||||
padding: 0 30rpx;
|
||||
margin-top: 25rpx;
|
||||
}
|
||||
.form .textcell .titlebox.data-v-bfce3555 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.form .row.data-v-bfce3555 {
|
||||
padding: 30rpx 30rpx 0;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.form .row .left.data-v-bfce3555 {
|
||||
font-size: 38rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.form .row .left .tip.data-v-bfce3555 {
|
||||
color: #9ca3af;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.form .row .right.data-v-bfce3555 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #6b7280;
|
||||
font-size: 31rpx;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
__name: "register",
|
||||
setup(__props) {
|
||||
const src = common_vendor.ref("https://wx.igandan.com/hcp/toRegister?fromType=wx");
|
||||
common_vendor.reactive({
|
||||
name: ""
|
||||
});
|
||||
common_vendor.ref(false);
|
||||
common_vendor.ref(true);
|
||||
common_vendor.reactive({
|
||||
height: "90rpx",
|
||||
fontSize: "36rpx"
|
||||
});
|
||||
common_vendor.reactive({
|
||||
color: "#3ec7c0",
|
||||
height: "64rpx",
|
||||
fontSize: "28rpx",
|
||||
borderColor: "#e2e2e2",
|
||||
opcity: "1"
|
||||
});
|
||||
common_vendor.ref("");
|
||||
common_vendor.ref(10);
|
||||
common_vendor.ref(null);
|
||||
common_vendor.onLoad(() => {
|
||||
const { envVersion } = common_vendor.index.getAccountInfoSync().miniProgram;
|
||||
common_vendor.index.__f__("log", "at pages/register/register.vue:142", envVersion);
|
||||
if (envVersion == "release") {
|
||||
src.value = "https://wx.igandan.com/hcp/toRegister";
|
||||
} else {
|
||||
src.value = "https://dev-wx.igandan.com/hcp/toRegister?fromType=weChat";
|
||||
}
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: src.value
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bac4a35d"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/register/register.js.map
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "注册",
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="logincontent data-v-bac4a35d"><web-view class="data-v-bac4a35d" src="{{a}}"></web-view></view>
|
||||
@@ -0,0 +1,97 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.logincontent.data-v-bac4a35d {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background: #fff;
|
||||
}
|
||||
.logincontent .pwdbox.data-v-bac4a35d .u-form-item:nth-child(2) .u-form-item__body__left {
|
||||
width: 180rpx !important;
|
||||
}
|
||||
.logincontent .smsbox.data-v-bac4a35d .u-form-item:first-child .u-form-item__body__left {
|
||||
width: 180rpx !important;
|
||||
}
|
||||
.logincontent.data-v-bac4a35d .u-form-item__body__left__content__label {
|
||||
font-size: 34rpx;
|
||||
color: #000;
|
||||
}
|
||||
.logincontent .title.data-v-bac4a35d {
|
||||
padding: 124rpx 0 64rpx 30rpx;
|
||||
font-size: 46rpx;
|
||||
font-stretch: normal;
|
||||
letter-spacing: 2rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.logincontent.data-v-bac4a35d .u-form {
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.logincontent .row.data-v-bac4a35d {
|
||||
margin-top: 60rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.logincontent .row .left.data-v-bac4a35d {
|
||||
flex: 1;
|
||||
color: #3cc7c0;
|
||||
text-align: left;
|
||||
}
|
||||
.logincontent .row .right.data-v-bac4a35d {
|
||||
flex: 1;
|
||||
color: #666;
|
||||
text-align: right;
|
||||
}
|
||||
.logincontent .row.data-v-bac4a35d .u-button--large .u-button__text {
|
||||
font-size: 36rpx !important;
|
||||
}
|
||||
.logincontent .row .tip.data-v-bac4a35d {
|
||||
color: #333333;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
.logincontent.data-v-bac4a35d .wrap {
|
||||
border-radius: 16rpx;
|
||||
overflow: hidden;
|
||||
border: none;
|
||||
}
|
||||
.logincontent .line.data-v-bac4a35d {
|
||||
padding: 0 30rpx;
|
||||
margin-top: 10rpx;
|
||||
color: #999999;
|
||||
line-height: 44rpx;
|
||||
font-size: 26rpx;
|
||||
display: flex;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
.logincontent .desc.data-v-bac4a35d {
|
||||
padding: 0 30rpx;
|
||||
color: #999999;
|
||||
line-height: 44rpx;
|
||||
font-size: 26rpx;
|
||||
letter-spacing: 2rpx;
|
||||
}
|
||||
.logincontent .desc .red.data-v-bac4a35d {
|
||||
color: red;
|
||||
}
|
||||
+485
@@ -0,0 +1,485 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const utils_navTo = require("../../utils/navTo.js");
|
||||
if (!Array) {
|
||||
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
|
||||
const _easycom_up_dropdown_item2 = common_vendor.resolveComponent("up-dropdown-item");
|
||||
const _easycom_up_dropdown2 = common_vendor.resolveComponent("up-dropdown");
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
|
||||
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
|
||||
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
|
||||
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
|
||||
(_easycom_up__image2 + _easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up_icon2 + _easycom_z_paging2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_popup2)();
|
||||
}
|
||||
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.js";
|
||||
const _easycom_up_dropdown_item = () => "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item.js";
|
||||
const _easycom_up_dropdown = () => "../../node-modules/uview-plus/components/u-dropdown/u-dropdown.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";
|
||||
const _easycom_up_radio = () => "../../node-modules/uview-plus/components/u-radio/u-radio.js";
|
||||
const _easycom_up_radio_group = () => "../../node-modules/uview-plus/components/u-radio-group/u-radio-group.js";
|
||||
const _easycom_up_popup = () => "../../node-modules/uview-plus/components/u-popup/u-popup.js";
|
||||
if (!Math) {
|
||||
(navBarSearch + _easycom_up__image + _easycom_up_dropdown_item + _easycom_up_dropdown + _easycom_up_icon + _easycom_z_paging + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_popup)();
|
||||
}
|
||||
const navBarSearch = () => "../../components/navBarSearch/navBarSearch.js";
|
||||
const _sfc_main = {
|
||||
__name: "search",
|
||||
setup(__props) {
|
||||
const paging = common_vendor.ref(null);
|
||||
const uDropdownRef = common_vendor.ref(null);
|
||||
const dataList = common_vendor.ref([]);
|
||||
const total = common_vendor.ref(0);
|
||||
const keyWord = common_vendor.ref("");
|
||||
const label_iden = common_vendor.ref("");
|
||||
const isArticle = common_vendor.ref(true);
|
||||
const hospital_id = common_vendor.ref("");
|
||||
const hospital_name = common_vendor.ref("");
|
||||
const doctor_id = common_vendor.ref("");
|
||||
const doctor_name = common_vendor.ref("");
|
||||
const numInfo = common_vendor.reactive({});
|
||||
const searchInfo = common_vendor.reactive({});
|
||||
const navName = common_vendor.ref("肝胆相照临床病例库");
|
||||
const options = common_vendor.ref([
|
||||
{
|
||||
label: "正序",
|
||||
value: "asc"
|
||||
},
|
||||
{
|
||||
label: "倒序",
|
||||
value: "desc"
|
||||
}
|
||||
]);
|
||||
const isSearch = common_vendor.ref(false);
|
||||
const order = common_vendor.reactive({
|
||||
read_num: "",
|
||||
push_date: ""
|
||||
});
|
||||
const showCase = common_vendor.ref(false);
|
||||
const canOpenCase = common_vendor.ref(false);
|
||||
const caseValue1 = common_vendor.ref("");
|
||||
const caseValue2 = common_vendor.ref("");
|
||||
const caseValue3 = common_vendor.ref("");
|
||||
const level = common_vendor.ref(1);
|
||||
const labelObj = common_vendor.reactive({
|
||||
list1: [],
|
||||
list2: [],
|
||||
list3: []
|
||||
});
|
||||
const getCaseLabel = (lev, pid = 0) => {
|
||||
api_api.api.getCaseLabel({
|
||||
pid
|
||||
}).then((res) => {
|
||||
if (lev == 1) {
|
||||
labelObj.list1 = res.data.data;
|
||||
} else if (lev == 2) {
|
||||
labelObj.list2 = res.data.data;
|
||||
} else if (lev == 3) {
|
||||
labelObj.list3 = res.data.data;
|
||||
}
|
||||
level.value = lev;
|
||||
});
|
||||
};
|
||||
const openCase = () => {
|
||||
getCaseLabel(1, 0);
|
||||
showCase.value = true;
|
||||
};
|
||||
const confirmCase = () => {
|
||||
if (level.value == 1 && caseValue1.value == "") {
|
||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
||||
return false;
|
||||
}
|
||||
if (level.value == 2 && caseValue2.value == "") {
|
||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
||||
return false;
|
||||
}
|
||||
if (level.value == 3 && caseValue3.value == "") {
|
||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
||||
return false;
|
||||
}
|
||||
showCase.value = false;
|
||||
if (level.value == 1) {
|
||||
label_iden.value = caseValue1.value;
|
||||
}
|
||||
if (level.value == 2) {
|
||||
label_iden.value = caseValue2.value;
|
||||
}
|
||||
if (level.value == 3) {
|
||||
label_iden.value = caseValue3.value;
|
||||
}
|
||||
};
|
||||
const continueCase = () => {
|
||||
if (level.value == 1 && caseValue1.value == "") {
|
||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
||||
return false;
|
||||
}
|
||||
if (level.value == 2 && caseValue2.value == "") {
|
||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
||||
return false;
|
||||
}
|
||||
if (level.value == 3 && caseValue3.value == "") {
|
||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
||||
return false;
|
||||
}
|
||||
if (level.value == 1) {
|
||||
getCaseLabel(2, caseValue1.value);
|
||||
} else if (level.value == 2) {
|
||||
getCaseLabel(3, caseValue2.value);
|
||||
}
|
||||
paging.value.reload();
|
||||
};
|
||||
const closeCase = () => {
|
||||
showCase.value = false;
|
||||
};
|
||||
const changeWord = (value) => {
|
||||
keyWord.value = value;
|
||||
isSearch.value = true;
|
||||
paging.value.reload();
|
||||
};
|
||||
common_vendor.onLoad((options2) => {
|
||||
if (options2.keyWord) {
|
||||
keyWord.value = options2.keyWord;
|
||||
}
|
||||
if (options2.order == "new") {
|
||||
order.push_date = "asc";
|
||||
}
|
||||
if (options2.order == "read") {
|
||||
order.read_num = "desc";
|
||||
}
|
||||
if (options2.order == "video") {
|
||||
isArticle.value = false;
|
||||
}
|
||||
if (options2.doctor_id) {
|
||||
doctor_id.value = options2.doctor_id;
|
||||
doctor_name.value = options2.doctor_name;
|
||||
navName.value = doctor_name.value + "临床病例库";
|
||||
getStaticDoctor(doctor_id.value);
|
||||
}
|
||||
if (options2.hospital_id) {
|
||||
hospital_id.value = options2.hospital_id;
|
||||
hospital_name.value = options2.hospital_name;
|
||||
navName.value = hospital_name.value + "临床病例库";
|
||||
getStaticHospital(hospital_id.value);
|
||||
}
|
||||
if (options2.case_id) {
|
||||
label_iden.value = options2.case_id;
|
||||
navName.value = options2.case_name + "临床病例库";
|
||||
getStaticSick(label_iden.value);
|
||||
} else {
|
||||
canOpenCase.value = true;
|
||||
}
|
||||
});
|
||||
const change = (e) => {
|
||||
paging.value.reload();
|
||||
};
|
||||
const formatdate = (date) => {
|
||||
return common_vendor.dayjs(date).format("YYYY-MM-DD");
|
||||
};
|
||||
const goDetail = (id) => {
|
||||
common_vendor.index.__f__("log", "at pages/search/search.vue:322", 11111);
|
||||
common_vendor.index.__f__("log", "at pages/search/search.vue:323", id);
|
||||
let type = isArticle.value ? "article" : "video";
|
||||
utils_navTo.navTo({
|
||||
url: `/pages/detail/detail?id=${id}&type=${type}`
|
||||
});
|
||||
};
|
||||
const swicthType = () => {
|
||||
isArticle.value = !isArticle.value;
|
||||
dataList.value = [];
|
||||
order.read_num = "";
|
||||
order.push_date = "";
|
||||
paging.value.reload();
|
||||
};
|
||||
const searchArticle = (params) => {
|
||||
let searchForm = {
|
||||
keyword: keyWord.value,
|
||||
hospital_id: hospital_id.value,
|
||||
doctor_id: doctor_id.value
|
||||
};
|
||||
if (isSearch.value) {
|
||||
searchForm.is_need_num = 1;
|
||||
}
|
||||
if (!order.read_num) {
|
||||
delete order.read_num;
|
||||
}
|
||||
if (!order.push_date) {
|
||||
delete order.push_date;
|
||||
}
|
||||
if (order.read_num || order.push_date) {
|
||||
searchForm.order = order;
|
||||
}
|
||||
api_api.api.searchArticle({
|
||||
...searchForm,
|
||||
...params
|
||||
}).then((res) => {
|
||||
paging.value.complete(res.data.data.data);
|
||||
total.value = res.data.data.total;
|
||||
searchInfo.search_video_num = res.data.data.search_video_num;
|
||||
searchInfo.search_article_num = res.data.data.search_article_num;
|
||||
}).catch((err) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
const searchVideo = async (params) => {
|
||||
let searchForm = {
|
||||
keyword: keyWord.value,
|
||||
hospital_id: hospital_id.value,
|
||||
doctor_id: doctor_id.value
|
||||
};
|
||||
if (isSearch.value) {
|
||||
searchForm.is_need_num = 1;
|
||||
}
|
||||
if (!order.read_num) {
|
||||
delete order.read_num;
|
||||
}
|
||||
if (!order.push_date) {
|
||||
delete order.push_date;
|
||||
}
|
||||
if (order.read_num || order.push_date) {
|
||||
searchForm.order = order;
|
||||
}
|
||||
api_api.api.searchVideo({
|
||||
...searchForm,
|
||||
...params
|
||||
}).then((res) => {
|
||||
paging.value.complete(res.data.data.data);
|
||||
total.value = res.data.data.total;
|
||||
searchInfo.search_video_num = res.data.data.search_video_num;
|
||||
searchInfo.search_article_num = res.data.data.search_article_num;
|
||||
}).catch((err) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
const getStaticDoctor = (id) => {
|
||||
api_api.api.getStaticDoctor(id).then((res) => {
|
||||
let result = res.data.data;
|
||||
if (result) {
|
||||
Object.assign(numInfo, result);
|
||||
} else {
|
||||
Object.assign(numInfo, {
|
||||
article_num: 0,
|
||||
article_read_num: 0,
|
||||
video_collect_num: 0,
|
||||
video_num: 0,
|
||||
video_read_num: 0
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
const getStaticSick = (id) => {
|
||||
api_api.api.getStaticSick({
|
||||
label_iden: id
|
||||
}).then((res) => {
|
||||
let result = res.data.data;
|
||||
if (result) {
|
||||
Object.assign(numInfo, result);
|
||||
} else {
|
||||
Object.assign(numInfo, {
|
||||
article_num: 0,
|
||||
article_read_num: 0,
|
||||
video_collect_num: 0,
|
||||
video_num: 0,
|
||||
video_read_num: 0
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
const getStaticHospital = (id) => {
|
||||
api_api.api.getStaticHospital(id).then((res) => {
|
||||
let result = res.data.data;
|
||||
if (result) {
|
||||
Object.assign(numInfo, result);
|
||||
} else {
|
||||
Object.assign(numInfo, {
|
||||
article_num: 0,
|
||||
article_read_num: 0,
|
||||
video_collect_num: 0,
|
||||
video_num: 0,
|
||||
video_read_num: 0
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
const queryList = (pageNo, pageSize) => {
|
||||
common_vendor.index.__f__("log", "at pages/search/search.vue:451", 666666);
|
||||
const params = {
|
||||
page: pageNo,
|
||||
page_size: pageSize
|
||||
};
|
||||
isArticle.value ? 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: hospital_id.value || doctor_id.value || label_iden.value && !canOpenCase.value
|
||||
}, hospital_id.value || doctor_id.value || label_iden.value && !canOpenCase.value ? {
|
||||
d: common_vendor.t(numInfo.article_collect_num),
|
||||
e: common_vendor.t(numInfo.video_collect_num),
|
||||
f: common_vendor.t(numInfo.video_read_num + numInfo.article_read_num)
|
||||
} : {}, {
|
||||
g: isSearch.value
|
||||
}, isSearch.value ? common_vendor.e({
|
||||
h: common_vendor.t(searchInfo.search_article_num),
|
||||
i: common_vendor.t(searchInfo.search_video_num),
|
||||
j: keyWord.value
|
||||
}, keyWord.value ? {
|
||||
k: common_vendor.t(keyWord.value)
|
||||
} : {}) : {}, {
|
||||
l: common_vendor.t(!isArticle.value ? "文章" : "视频"),
|
||||
m: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.switchImg),
|
||||
width: "31rpx",
|
||||
height: "31rpx"
|
||||
}),
|
||||
n: common_vendor.o(swicthType),
|
||||
o: canOpenCase.value
|
||||
}, canOpenCase.value ? {
|
||||
p: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.caseImg),
|
||||
width: "31rpx",
|
||||
height: "31rpx"
|
||||
}),
|
||||
q: common_vendor.o(openCase)
|
||||
} : {}, {
|
||||
r: common_vendor.o(change),
|
||||
s: common_vendor.o(($event) => order.push_date = $event),
|
||||
t: common_vendor.p({
|
||||
title: "发布时间",
|
||||
options: options.value,
|
||||
modelValue: order.push_date
|
||||
}),
|
||||
v: common_vendor.o(change),
|
||||
w: common_vendor.o(($event) => order.read_num = $event),
|
||||
x: common_vendor.p({
|
||||
title: "阅读量",
|
||||
options: options.value,
|
||||
modelValue: order.read_num
|
||||
}),
|
||||
y: common_vendor.sr(uDropdownRef, "c10c040c-4,c10c040c-0", {
|
||||
"k": "uDropdownRef"
|
||||
}),
|
||||
z: canOpenCase.value ? 1 : "",
|
||||
A: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(isArticle.value ? 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: "c10c040c-7-" + i0 + ",c10c040c-0",
|
||||
d: common_vendor.t(item.read_num),
|
||||
e: "c10c040c-8-" + i0 + ",c10c040c-0",
|
||||
f: common_vendor.t(item.collect_num),
|
||||
g: "c10c040c-9-" + i0 + ",c10c040c-0",
|
||||
h: common_vendor.t(formatdate(item.push_date)),
|
||||
i: index,
|
||||
j: common_vendor.o(($event) => isArticle.value ? goDetail(item.article_id) : goDetail(item.video_id), index)
|
||||
};
|
||||
}),
|
||||
B: common_vendor.p({
|
||||
name: "eye",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
C: common_vendor.p({
|
||||
name: "heart",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
D: common_vendor.p({
|
||||
name: "clock",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
E: common_vendor.sr(paging, "c10c040c-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
F: common_vendor.o(queryList),
|
||||
G: common_vendor.o(($event) => dataList.value = $event),
|
||||
H: common_vendor.p({
|
||||
["inside-more"]: true,
|
||||
["loading-more-no-more-text"]: "咱也是有底线的!",
|
||||
["auto-show-back-to-top"]: true,
|
||||
modelValue: dataList.value
|
||||
}),
|
||||
I: common_vendor.o(($event) => showCase.value = false),
|
||||
J: common_vendor.o(continueCase),
|
||||
K: level.value != 3,
|
||||
L: common_vendor.o(confirmCase),
|
||||
M: common_vendor.f(labelObj.list1, (item, k0, i0) => {
|
||||
return {
|
||||
a: "c10c040c-12-" + i0 + ",c10c040c-11",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
name: item.app_iden
|
||||
}),
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
N: common_vendor.o(($event) => caseValue1.value = $event),
|
||||
O: common_vendor.p({
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue1.value
|
||||
}),
|
||||
P: level.value == 1,
|
||||
Q: common_vendor.f(labelObj.list2, (item, k0, i0) => {
|
||||
return {
|
||||
a: "c10c040c-14-" + i0 + ",c10c040c-13",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
name: item.app_iden
|
||||
}),
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
R: common_vendor.o(($event) => caseValue2.value = $event),
|
||||
S: common_vendor.p({
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue2.value
|
||||
}),
|
||||
T: level.value == 2,
|
||||
U: common_vendor.f(labelObj.list2, (item, k0, i0) => {
|
||||
return {
|
||||
a: "c10c040c-16-" + i0 + ",c10c040c-15",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
name: item.app_iden
|
||||
}),
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
V: common_vendor.o(($event) => caseValue3.value = $event),
|
||||
W: common_vendor.p({
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue3.value
|
||||
}),
|
||||
X: level.value == 3,
|
||||
Y: common_vendor.o(closeCase),
|
||||
Z: common_vendor.p({
|
||||
round: 10,
|
||||
zIndex: "9",
|
||||
show: showCase.value,
|
||||
mode: "bottom"
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c10c040c"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/search/search.js.map
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
|
||||
"up-dropdown-item": "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item",
|
||||
"up-dropdown": "../../node-modules/uview-plus/components/u-dropdown/u-dropdown",
|
||||
"up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
|
||||
"up-radio": "../../node-modules/uview-plus/components/u-radio/u-radio",
|
||||
"up-radio-group": "../../node-modules/uview-plus/components/u-radio-group/u-radio-group",
|
||||
"up-popup": "../../node-modules/uview-plus/components/u-popup/u-popup",
|
||||
"nav-bar-search": "../../components/navBarSearch/navBarSearch"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,330 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.bar.data-v-c10c040c {
|
||||
width: 100%;
|
||||
background: #f9fafb;
|
||||
height: 20rpx;
|
||||
}
|
||||
.votepop .confirm.data-v-c10c040c {
|
||||
margin: 39rpx 30rpx 0;
|
||||
height: 92rpx;
|
||||
background: #3cc7c0;
|
||||
border-radius: 15rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 31rpx;
|
||||
color: #ffffff;
|
||||
justify-content: center;
|
||||
}
|
||||
.votepop .del.data-v-c10c040c {
|
||||
margin: 30rpx 30rpx 30rpx;
|
||||
height: 92rpx;
|
||||
background: #fff;
|
||||
border-radius: 15rpx;
|
||||
font-size: 31rpx;
|
||||
color: #666666;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.votepop .tips.data-v-c10c040c {
|
||||
margin-top: 30rpx;
|
||||
font-size: 27rpx;
|
||||
color: #9ca3af;
|
||||
line-height: 38rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.votepop .add.data-v-c10c040c {
|
||||
margin: 0 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 92rpx;
|
||||
justify-content: center;
|
||||
background: #f5f5f5;
|
||||
border-radius: 15rpx;
|
||||
font-size: 31rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
.votepop .add .desc.data-v-c10c040c {
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
.votepop .titlebox.data-v-c10c040c {
|
||||
padding: 0 30rpx;
|
||||
height: 86rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2rpx solid #f3f4f6;
|
||||
}
|
||||
.votepop .titlebox .left.data-v-c10c040c {
|
||||
font-size: 31rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
.votepop .titlebox .right.data-v-c10c040c {
|
||||
font-size: 31rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.votepop .votecon.data-v-c10c040c {
|
||||
max-height: calc(100vh - 530rpx);
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.votepop .votecon .row.data-v-c10c040c {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.votepop .votecon .row .iconbox.data-v-c10c040c {
|
||||
margin-left: 15rpx;
|
||||
align-items: center;
|
||||
}
|
||||
.votepop .votecon .titlebox.data-v-c10c040c {
|
||||
border: none;
|
||||
margin: 30rpx 0 20rpx;
|
||||
}
|
||||
.votepop .votecon .titlebox .title.data-v-c10c040c {
|
||||
font-size: 31rpx;
|
||||
color: #111827;
|
||||
}
|
||||
.votepop .votecon .titlebox .desc.data-v-c10c040c {
|
||||
font-size: 27rpx;
|
||||
color: #9ca3af;
|
||||
}
|
||||
.casepop.data-v-c10c040c {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: calc(100vh - 400rpx);
|
||||
}
|
||||
.casepop .continue.data-v-c10c040c {
|
||||
color: #2878ff !important;
|
||||
}
|
||||
.casecon.data-v-c10c040c {
|
||||
flex: 1;
|
||||
overflow-y: scroll;
|
||||
padding-top: 10rpx;
|
||||
min-height: 350rpx;
|
||||
}
|
||||
.casecon .column.data-v-c10c040c {
|
||||
padding: 0 30rpx;
|
||||
border-bottom: 2rpx solid #e5e7eb;
|
||||
}
|
||||
.databox.data-v-c10c040c {
|
||||
height: 162rpx;
|
||||
background: #ffffff;
|
||||
display: flex;
|
||||
margin-bottom: 20rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.databox .cell.data-v-c10c040c {
|
||||
flex: 1;
|
||||
padding: 35rpx 0;
|
||||
text-align: center;
|
||||
}
|
||||
.databox .cell .num.data-v-c10c040c {
|
||||
font-size: 38rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.databox .cell .name.data-v-c10c040c {
|
||||
margin-top: 18rpx;
|
||||
font-size: 28rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
.filterbox.data-v-c10c040c {
|
||||
display: flex;
|
||||
height: 128rpx;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
.filterbox.data-v-c10c040c .u-flex {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
}
|
||||
.filterbox.data-v-c10c040c .u-dropdown__menu {
|
||||
background: #fff;
|
||||
z-index: 1;
|
||||
margin-left: 160rpx;
|
||||
}
|
||||
.filterbox.data-v-c10c040c .u-dropdown__menu__item__text {
|
||||
font-size: 14px !important;
|
||||
}
|
||||
.filterbox.data-v-c10c040c .u-dropdown__menu__item {
|
||||
height: 74rpx;
|
||||
padding: 0 20rpx;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
flex: none;
|
||||
margin-left: 60rpx;
|
||||
}
|
||||
.filterbox .type.data-v-c10c040c {
|
||||
position: absolute;
|
||||
left: 30rpx;
|
||||
top: 24rpx;
|
||||
color: #606266;
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
height: 74rpx;
|
||||
padding: 0 25rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
.filterbox .casesdown.data-v-c10c040c {
|
||||
font-size: 14px;
|
||||
color: #606266;
|
||||
position: absolute;
|
||||
left: 190rpx;
|
||||
top: 24rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
height: 74rpx;
|
||||
padding: 0 25rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
.filterbox.active.data-v-c10c040c {
|
||||
display: flex;
|
||||
height: 128rpx;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
.filterbox.active.data-v-c10c040c .u-flex {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
}
|
||||
.filterbox.active.data-v-c10c040c .u-dropdown__menu {
|
||||
background: #fff;
|
||||
z-index: 1;
|
||||
margin-left: 330rpx;
|
||||
}
|
||||
.filterbox.active.data-v-c10c040c .u-dropdown__menu__item__text {
|
||||
font-size: 14px !important;
|
||||
}
|
||||
.filterbox.active.data-v-c10c040c .u-dropdown__menu__item {
|
||||
height: 74rpx;
|
||||
padding: 0 20rpx;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
flex: none;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.filterbox.active .type.data-v-c10c040c {
|
||||
position: absolute;
|
||||
left: 30rpx;
|
||||
top: 24rpx;
|
||||
color: #606266;
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
height: 74rpx;
|
||||
padding: 0 25rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
.filterbox.active .casesdown.data-v-c10c040c {
|
||||
font-size: 14px;
|
||||
color: #606266;
|
||||
position: absolute;
|
||||
left: 190rpx;
|
||||
top: 24rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
height: 74rpx;
|
||||
padding: 0 25rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
.u-page .deal.data-v-c10c040c {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
color: #6b7280;
|
||||
font-size: 24rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.u-page .deal .left.data-v-c10c040c {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .collect.data-v-c10c040c {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .eyebox.data-v-c10c040c {
|
||||
width: 160rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .time.data-v-c10c040c {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .num.data-v-c10c040c {
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
.u-page .item.data-v-c10c040c {
|
||||
border-bottom: 1rpx solid #f3f4f6;
|
||||
padding: 30rpx;
|
||||
}
|
||||
.u-page .item .title.data-v-c10c040c {
|
||||
font-size: 30rpx;
|
||||
color: #111827;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.u-page .tagsbox.data-v-c10c040c {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
}
|
||||
.u-page .tagsbox .tag.data-v-c10c040c {
|
||||
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-c10c040c {
|
||||
background: #f9f9f9;
|
||||
padding: 12rpx 30rpx;
|
||||
}
|
||||
.detail .desc.data-v-c10c040c {
|
||||
font-size: 26rpx;
|
||||
color: #4b5563;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.detail .red.data-v-c10c040c {
|
||||
color: #FF0000;
|
||||
}
|
||||
@@ -0,0 +1,209 @@
|
||||
"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_dropdown_item2 = common_vendor.resolveComponent("up-dropdown-item");
|
||||
const _easycom_up_dropdown2 = common_vendor.resolveComponent("up-dropdown");
|
||||
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
|
||||
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
|
||||
(_easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up__image2 + _easycom_z_paging2)();
|
||||
}
|
||||
const _easycom_up_dropdown_item = () => "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item.js";
|
||||
const _easycom_up_dropdown = () => "../../node-modules/uview-plus/components/u-dropdown/u-dropdown.js";
|
||||
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.js";
|
||||
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
|
||||
if (!Math) {
|
||||
(navBarSearch + _easycom_up_dropdown_item + _easycom_up_dropdown + _easycom_up__image + _easycom_z_paging)();
|
||||
}
|
||||
const navBarSearch = () => "../../components/navBarSearch/navBarSearch.js";
|
||||
const _sfc_main = {
|
||||
__name: "searchList",
|
||||
setup(__props) {
|
||||
const paging = common_vendor.ref(null);
|
||||
const uDropdownRef = common_vendor.ref(null);
|
||||
const dataList = common_vendor.ref([]);
|
||||
const total = common_vendor.ref(0);
|
||||
common_vendor.ref("");
|
||||
const keyWord = common_vendor.ref("");
|
||||
common_vendor.ref(true);
|
||||
const type = common_vendor.ref("doctor");
|
||||
const navName = common_vendor.ref("医生临床病例库");
|
||||
const options = common_vendor.ref([
|
||||
{
|
||||
label: "正序",
|
||||
value: "asc"
|
||||
},
|
||||
{
|
||||
label: "倒序",
|
||||
value: "desc"
|
||||
}
|
||||
]);
|
||||
const order = common_vendor.reactive({
|
||||
read_num: "",
|
||||
push_date: ""
|
||||
});
|
||||
common_vendor.onLoad((options2) => {
|
||||
if (options2.type == "hospital") {
|
||||
type.value = "hospital";
|
||||
}
|
||||
keyWord.value = options2.name;
|
||||
if (options2.name) {
|
||||
navName.value = options2.name + "临床病例库";
|
||||
}
|
||||
if ((options2.name = "医生") && !options2.id) {
|
||||
keyWord.value = "";
|
||||
}
|
||||
if (options2.order == "new") {
|
||||
order.push_date = "asc";
|
||||
}
|
||||
if (options2.order == "read") {
|
||||
order.read_num = "desc";
|
||||
}
|
||||
});
|
||||
const change = (e) => {
|
||||
paging.value.reload();
|
||||
};
|
||||
const formatdate = (date) => {
|
||||
if (!date)
|
||||
return common_vendor.dayjs().format("YYYY-MM-DD");
|
||||
return common_vendor.dayjs(date).format("YYYY-MM-DD");
|
||||
};
|
||||
const searchHospital = async (params) => {
|
||||
let searchForm = {
|
||||
hospital_name: keyWord.value
|
||||
};
|
||||
if (!order.read_num) {
|
||||
delete order.read_num;
|
||||
}
|
||||
if (!order.push_date) {
|
||||
delete order.push_date;
|
||||
}
|
||||
if (order.read_num || order.push_date) {
|
||||
searchForm.order = order;
|
||||
}
|
||||
api_api.api.searchHospital({
|
||||
...searchForm,
|
||||
...params
|
||||
}).then((res) => {
|
||||
paging.value.complete(res.data.data.data);
|
||||
total.value = res.data.data.total;
|
||||
}).catch((err) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
const searchDoctor = async (params) => {
|
||||
let searchForm = {
|
||||
doctor_name: keyWord.value
|
||||
};
|
||||
if (!order.read_num) {
|
||||
delete order.read_num;
|
||||
}
|
||||
if (!order.push_date) {
|
||||
delete order.push_date;
|
||||
}
|
||||
if (order.read_num || order.push_date) {
|
||||
searchForm.order = order;
|
||||
}
|
||||
api_api.api.searchDoctor({
|
||||
...searchForm,
|
||||
...params
|
||||
}).then((res) => {
|
||||
paging.value.complete(res.data.data.data);
|
||||
total.value = res.data.data.total;
|
||||
}).catch((err) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
const queryList = (pageNo, pageSize) => {
|
||||
const params = {
|
||||
page: pageNo,
|
||||
page_size: pageSize
|
||||
};
|
||||
type.value == "hospital" ? searchHospital(params) : searchDoctor(params);
|
||||
};
|
||||
const goDetail = (id, name) => {
|
||||
let url = "";
|
||||
if (type.value == "doctor") {
|
||||
url = `/pages/search/search?doctor_id=${id}&doctor_name=${name}`;
|
||||
} else {
|
||||
url = `/pages/search/search?hospital_id=${id}&hospital_name=${name}`;
|
||||
}
|
||||
utils_navTo.navTo({
|
||||
url
|
||||
});
|
||||
};
|
||||
const changeWord = (value) => {
|
||||
common_vendor.index.__f__("log", "at pages/searchList/searchList.vue:259", value);
|
||||
if (value) {
|
||||
navName.value = value + "临床病例库";
|
||||
keyWord.value = value;
|
||||
dataList.value = [];
|
||||
order.read_num = "";
|
||||
order.push_date = "";
|
||||
paging.value.reload();
|
||||
}
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.o(changeWord),
|
||||
b: common_vendor.p({
|
||||
searchWord: keyWord.value,
|
||||
navName: navName.value,
|
||||
type: type.value
|
||||
}),
|
||||
c: common_vendor.o(change),
|
||||
d: common_vendor.o(($event) => order.push_date = $event),
|
||||
e: common_vendor.p({
|
||||
title: "发布时间",
|
||||
options: options.value,
|
||||
modelValue: order.push_date
|
||||
}),
|
||||
f: common_vendor.sr(uDropdownRef, "5d2f7987-2,5d2f7987-0", {
|
||||
"k": "uDropdownRef"
|
||||
}),
|
||||
g: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
return common_vendor.e(type.value == "hospital" ? {
|
||||
a: common_vendor.t(item.basic_hospital.hospital_name)
|
||||
} : {
|
||||
b: common_vendor.t(item.case_clinical_doctor.doctor_name),
|
||||
c: common_vendor.t(item.case_clinical_doctor.hospital_name)
|
||||
}, {
|
||||
d: common_vendor.f(item.author, (tag, k1, i1) => {
|
||||
return {
|
||||
a: common_vendor.t(tag.doctor_name),
|
||||
b: tag.author_id
|
||||
};
|
||||
}),
|
||||
e: common_vendor.t(item.video_num + item.article_num),
|
||||
f: "5d2f7987-4-" + i0 + ",5d2f7987-0",
|
||||
g: common_vendor.t(formatdate(item.last_push_date)),
|
||||
h: index,
|
||||
i: common_vendor.o(($event) => type.value == "hospital" ? goDetail(item.basic_hospital.hospital_id, item.basic_hospital.hospital_name) : goDetail(item.case_clinical_doctor.doctor_id, item.case_clinical_doctor.doctor_name), index)
|
||||
});
|
||||
}),
|
||||
h: type.value == "hospital",
|
||||
i: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.arrowrightImg),
|
||||
width: "32rpx",
|
||||
height: "32rpx"
|
||||
}),
|
||||
j: common_vendor.sr(paging, "5d2f7987-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
k: common_vendor.o(queryList),
|
||||
l: common_vendor.o(($event) => dataList.value = $event),
|
||||
m: 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-5d2f7987"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/searchList/searchList.js.map
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-dropdown-item": "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item",
|
||||
"up-dropdown": "../../node-modules/uview-plus/components/u-dropdown/u-dropdown",
|
||||
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
|
||||
"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-5d2f7987"><z-paging wx:if="{{m}}" class="r data-v-5d2f7987" u-s="{{['top','d']}}" u-r="paging" bindquery="{{k}}" u-i="5d2f7987-0" bind:__l="__l" bindupdateModelValue="{{l}}" u-p="{{m}}"><view slot="top"><nav-bar-search wx:if="{{b}}" class="data-v-5d2f7987" bindchangeWord="{{a}}" u-i="5d2f7987-1,5d2f7987-0" bind:__l="__l" u-p="{{b}}"></nav-bar-search><view class="filterbox data-v-5d2f7987"><up-dropdown u-s="{{['d']}}" class="u-dropdown r data-v-5d2f7987" u-r="uDropdownRef" u-i="5d2f7987-2,5d2f7987-0" bind:__l="__l"><up-dropdown-item wx:if="{{e}}" class="data-v-5d2f7987" bindchange="{{c}}" u-i="5d2f7987-3,5d2f7987-2" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></up-dropdown-item></up-dropdown></view></view><view class="listbox data-v-5d2f7987"><view wx:for="{{g}}" wx:for-item="item" wx:key="h" class="item data-v-5d2f7987" bindtap="{{item.i}}"><view wx:if="{{h}}" class="title ellipsis data-v-5d2f7987">{{item.a}}</view><view wx:else class="title ellipsis data-v-5d2f7987">{{item.b}}({{item.c}})</view><view class="tagsbox data-v-5d2f7987"><view wx:for="{{item.d}}" wx:for-item="tag" wx:key="b" class="tag data-v-5d2f7987">{{tag.a}}</view></view><view class="deal data-v-5d2f7987"><view class="left data-v-5d2f7987"><view class="count data-v-5d2f7987"> 病例数:{{item.e}}<up--image wx:if="{{i}}" class="data-v-5d2f7987" u-i="{{item.f}}" bind:__l="__l" u-p="{{i}}"></up--image></view></view><view class="time data-v-5d2f7987"><view class="num data-v-5d2f7987">更新时间:{{item.g}}</view></view></view></view></view></z-paging></view>
|
||||
@@ -0,0 +1,171 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.databox.data-v-5d2f7987 {
|
||||
height: 162rpx;
|
||||
background: #ffffff;
|
||||
display: flex;
|
||||
margin-bottom: 20rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.databox .cell.data-v-5d2f7987 {
|
||||
flex: 1;
|
||||
padding: 35rpx 0;
|
||||
text-align: center;
|
||||
}
|
||||
.databox .cell .num.data-v-5d2f7987 {
|
||||
font-size: 38rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.databox .cell .name.data-v-5d2f7987 {
|
||||
margin-top: 18rpx;
|
||||
font-size: 28rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
.listbox.data-v-5d2f7987 {
|
||||
background: #F8F9FA;
|
||||
overflow: hidden;
|
||||
}
|
||||
.filterbox.data-v-5d2f7987 {
|
||||
display: flex;
|
||||
height: 128rpx;
|
||||
background: #fff;
|
||||
border-bottom: 2rpx solid rgba(0, 0, 0, 0.08);
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
.filterbox.data-v-5d2f7987 .u-dropdown__menu__item__text {
|
||||
font-size: 14px !important;
|
||||
}
|
||||
.filterbox .type.data-v-5d2f7987 {
|
||||
position: absolute;
|
||||
left: 30rpx;
|
||||
top: 24rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
height: 74rpx;
|
||||
padding: 0 25rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
.u-page.data-v-5d2f7987 .z-paging-content-fixed {
|
||||
background: #F8F9FA !important;
|
||||
}
|
||||
.u-page.data-v-5d2f7987 .u-flex {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
}
|
||||
.u-page.data-v-5d2f7987 .u-image {
|
||||
background: none !important;
|
||||
}
|
||||
.u-page.data-v-5d2f7987 .u-dropdown__menu {
|
||||
background: #fff;
|
||||
z-index: 1;
|
||||
margin-left: -30rpx;
|
||||
}
|
||||
.u-page.data-v-5d2f7987 .u-dropdown__menu__item {
|
||||
height: 74rpx;
|
||||
padding: 0 20rpx;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
flex: none;
|
||||
margin-left: 60rpx;
|
||||
}
|
||||
.u-page .deal.data-v-5d2f7987 {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
color: #6b7280;
|
||||
background: #fff;
|
||||
font-size: 24rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.u-page .deal .left.data-v-5d2f7987 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 27rpx;
|
||||
}
|
||||
.u-page .deal .left .count.data-v-5d2f7987 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .collect.data-v-5d2f7987 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .eyebox.data-v-5d2f7987 {
|
||||
width: 160rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .time.data-v-5d2f7987 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .num.data-v-5d2f7987 {
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
.u-page .item.data-v-5d2f7987 {
|
||||
margin: 30rpx;
|
||||
background: #fff;
|
||||
padding: 30rpx;
|
||||
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
|
||||
border-radius: 23rpx;
|
||||
}
|
||||
.u-page .item .title.data-v-5d2f7987 {
|
||||
font-size: 30rpx;
|
||||
color: #111827;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.u-page .tagsbox.data-v-5d2f7987 {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
}
|
||||
.u-page .tagsbox .tag.data-v-5d2f7987 {
|
||||
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-5d2f7987 {
|
||||
background: #f9f9f9;
|
||||
padding: 12rpx 30rpx;
|
||||
}
|
||||
.detail .desc.data-v-5d2f7987 {
|
||||
font-size: 26rpx;
|
||||
color: #4b5563;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.detail .red.data-v-5d2f7987 {
|
||||
color: #FF0000;
|
||||
}
|
||||
@@ -0,0 +1,175 @@
|
||||
"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_dropdown_item2 = common_vendor.resolveComponent("up-dropdown-item");
|
||||
const _easycom_up_dropdown2 = common_vendor.resolveComponent("up-dropdown");
|
||||
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
|
||||
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
|
||||
(_easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up__image2 + _easycom_z_paging2)();
|
||||
}
|
||||
const _easycom_up_dropdown_item = () => "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item.js";
|
||||
const _easycom_up_dropdown = () => "../../node-modules/uview-plus/components/u-dropdown/u-dropdown.js";
|
||||
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.js";
|
||||
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
|
||||
if (!Math) {
|
||||
(navBarSearch + _easycom_up_dropdown_item + _easycom_up_dropdown + _easycom_up__image + _easycom_z_paging)();
|
||||
}
|
||||
const navBarSearch = () => "../../components/navBarSearch/navBarSearch.js";
|
||||
const _sfc_main = {
|
||||
__name: "sickList",
|
||||
setup(__props) {
|
||||
const paging = common_vendor.ref(null);
|
||||
const uDropdownRef = common_vendor.ref(null);
|
||||
const dataList = common_vendor.ref([]);
|
||||
const total = common_vendor.ref(0);
|
||||
common_vendor.ref("");
|
||||
const keyWord = common_vendor.ref("");
|
||||
common_vendor.ref(true);
|
||||
const type = common_vendor.ref("doctor");
|
||||
const navName = common_vendor.ref("疾病临床病例库");
|
||||
const options = common_vendor.ref([
|
||||
{
|
||||
label: "正序",
|
||||
value: "asc"
|
||||
},
|
||||
{
|
||||
label: "倒序",
|
||||
value: "desc"
|
||||
}
|
||||
]);
|
||||
const order = common_vendor.reactive({
|
||||
article_num: "",
|
||||
push_date: ""
|
||||
});
|
||||
common_vendor.onLoad((options2) => {
|
||||
if (options2.type == "hospital") {
|
||||
type.value = "hospital";
|
||||
}
|
||||
keyWord.value = options2.name;
|
||||
if (options2.name) {
|
||||
navName.value = options2.name + "临床病例库";
|
||||
}
|
||||
if ((options2.name = "医生") && !options2.id) {
|
||||
keyWord.value = "";
|
||||
}
|
||||
if (options2.order == "new") {
|
||||
order.push_date = "asc";
|
||||
}
|
||||
if (options2.order == "read") {
|
||||
order.article_num = "desc";
|
||||
}
|
||||
});
|
||||
const change = (e) => {
|
||||
paging.value.reload();
|
||||
};
|
||||
const formatdate = (date) => {
|
||||
return common_vendor.dayjs(date).format("YYYY-MM-DD");
|
||||
};
|
||||
const searchList = async (params) => {
|
||||
let searchForm = {
|
||||
label_name: keyWord.value
|
||||
};
|
||||
if (!order.article_num) {
|
||||
delete order.article_num;
|
||||
}
|
||||
if (!order.push_date) {
|
||||
delete order.push_date;
|
||||
}
|
||||
if (order.article_num || order.push_date) {
|
||||
searchForm.order = order;
|
||||
}
|
||||
api_api.api.getSearchLabel({
|
||||
...searchForm,
|
||||
...params
|
||||
}).then((res) => {
|
||||
paging.value.complete(res.data.data.data);
|
||||
total.value = res.data.data.total;
|
||||
}).catch((err) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
const queryList = (pageNo, pageSize) => {
|
||||
const params = {
|
||||
page: pageNo,
|
||||
page_size: pageSize
|
||||
};
|
||||
searchList(params);
|
||||
};
|
||||
const goDetail = (id, name) => {
|
||||
let url = `/pages/search/search?case_id=${id}&case_name=${name}`;
|
||||
utils_navTo.navTo({
|
||||
url
|
||||
});
|
||||
};
|
||||
const changeWord = (value) => {
|
||||
common_vendor.index.__f__("log", "at pages/sickList/sickList.vue:184", value);
|
||||
if (value) {
|
||||
navName.value = value + "临床病例库";
|
||||
keyWord.value = value;
|
||||
dataList.value = [];
|
||||
order.article_num = "";
|
||||
order.push_date = "";
|
||||
paging.value.reload();
|
||||
}
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.o(changeWord),
|
||||
b: common_vendor.p({
|
||||
searchWord: keyWord.value,
|
||||
navName: navName.value,
|
||||
type: "case"
|
||||
}),
|
||||
c: common_vendor.o(change),
|
||||
d: common_vendor.o(($event) => order.push_date = $event),
|
||||
e: common_vendor.p({
|
||||
title: "发布时间",
|
||||
options: options.value,
|
||||
modelValue: order.push_date
|
||||
}),
|
||||
f: common_vendor.o(change),
|
||||
g: common_vendor.o(($event) => order.article_num = $event),
|
||||
h: common_vendor.p({
|
||||
title: "文章数量",
|
||||
options: options.value,
|
||||
modelValue: order.article_num
|
||||
}),
|
||||
i: common_vendor.sr(uDropdownRef, "55f9e2cf-2,55f9e2cf-0", {
|
||||
"k": "uDropdownRef"
|
||||
}),
|
||||
j: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.label_name),
|
||||
b: common_vendor.t(item.video_num + item.article_num),
|
||||
c: "55f9e2cf-5-" + i0 + ",55f9e2cf-0",
|
||||
d: common_vendor.t(formatdate(item.last_push_date)),
|
||||
e: index,
|
||||
f: common_vendor.o(($event) => goDetail(item.label_iden, item.label_name), index)
|
||||
};
|
||||
}),
|
||||
k: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.arrowrightImg),
|
||||
width: "32rpx",
|
||||
height: "32rpx"
|
||||
}),
|
||||
l: common_vendor.sr(paging, "55f9e2cf-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
m: common_vendor.o(queryList),
|
||||
n: common_vendor.o(($event) => dataList.value = $event),
|
||||
o: 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-55f9e2cf"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/sickList/sickList.js.map
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-dropdown-item": "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item",
|
||||
"up-dropdown": "../../node-modules/uview-plus/components/u-dropdown/u-dropdown",
|
||||
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
|
||||
"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-55f9e2cf"><z-paging wx:if="{{o}}" class="r data-v-55f9e2cf" u-s="{{['top','d']}}" u-r="paging" bindquery="{{m}}" u-i="55f9e2cf-0" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o}}"><view slot="top"><nav-bar-search wx:if="{{b}}" class="data-v-55f9e2cf" bindchangeWord="{{a}}" u-i="55f9e2cf-1,55f9e2cf-0" bind:__l="__l" u-p="{{b}}"></nav-bar-search><view class="filterbox data-v-55f9e2cf"><up-dropdown u-s="{{['d']}}" class="u-dropdown r data-v-55f9e2cf" u-r="uDropdownRef" u-i="55f9e2cf-2,55f9e2cf-0" bind:__l="__l"><up-dropdown-item wx:if="{{e}}" class="data-v-55f9e2cf" bindchange="{{c}}" u-i="55f9e2cf-3,55f9e2cf-2" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></up-dropdown-item><up-dropdown-item wx:if="{{h}}" class="data-v-55f9e2cf" bindchange="{{f}}" u-i="55f9e2cf-4,55f9e2cf-2" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"></up-dropdown-item></up-dropdown></view></view><view class="listbox data-v-55f9e2cf"><view wx:for="{{j}}" wx:for-item="item" wx:key="e" class="item data-v-55f9e2cf" bindtap="{{item.f}}"><view class="title ellipsis data-v-55f9e2cf">{{item.a}}</view><view class="deal data-v-55f9e2cf"><view class="left data-v-55f9e2cf"><view class="count data-v-55f9e2cf"> 病例数:{{item.b}}<up--image wx:if="{{k}}" class="data-v-55f9e2cf" u-i="{{item.c}}" bind:__l="__l" u-p="{{k}}"></up--image></view></view><view class="time data-v-55f9e2cf"><view class="num data-v-55f9e2cf">更新时间:{{item.d}}</view></view></view></view></view></z-paging></view>
|
||||
@@ -0,0 +1,269 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.votepop .confirm.data-v-55f9e2cf {
|
||||
margin: 39rpx 30rpx 0;
|
||||
height: 92rpx;
|
||||
background: #3cc7c0;
|
||||
border-radius: 15rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 31rpx;
|
||||
color: #ffffff;
|
||||
justify-content: center;
|
||||
}
|
||||
.votepop .del.data-v-55f9e2cf {
|
||||
margin: 30rpx 30rpx 30rpx;
|
||||
height: 92rpx;
|
||||
background: #fff;
|
||||
border-radius: 15rpx;
|
||||
font-size: 31rpx;
|
||||
color: #666666;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.votepop .tips.data-v-55f9e2cf {
|
||||
margin-top: 30rpx;
|
||||
font-size: 27rpx;
|
||||
color: #9ca3af;
|
||||
line-height: 38rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.votepop .add.data-v-55f9e2cf {
|
||||
margin: 0 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 92rpx;
|
||||
justify-content: center;
|
||||
background: #f5f5f5;
|
||||
border-radius: 15rpx;
|
||||
font-size: 31rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
.votepop .add .desc.data-v-55f9e2cf {
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
.votepop .titlebox.data-v-55f9e2cf {
|
||||
padding: 0 30rpx;
|
||||
height: 86rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2rpx solid #f3f4f6;
|
||||
}
|
||||
.votepop .titlebox .left.data-v-55f9e2cf {
|
||||
font-size: 31rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
.votepop .titlebox .right.data-v-55f9e2cf {
|
||||
font-size: 31rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.votepop .votecon.data-v-55f9e2cf {
|
||||
max-height: calc(100vh - 530rpx);
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.votepop .votecon .row.data-v-55f9e2cf {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.votepop .votecon .row .iconbox.data-v-55f9e2cf {
|
||||
margin-left: 15rpx;
|
||||
align-items: center;
|
||||
}
|
||||
.votepop .votecon .titlebox.data-v-55f9e2cf {
|
||||
border: none;
|
||||
margin: 30rpx 0 20rpx;
|
||||
}
|
||||
.votepop .votecon .titlebox .title.data-v-55f9e2cf {
|
||||
font-size: 31rpx;
|
||||
color: #111827;
|
||||
}
|
||||
.votepop .votecon .titlebox .desc.data-v-55f9e2cf {
|
||||
font-size: 27rpx;
|
||||
color: #9ca3af;
|
||||
}
|
||||
.casepop.data-v-55f9e2cf {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: calc(100vh - 400rpx);
|
||||
}
|
||||
.casepop .continue.data-v-55f9e2cf {
|
||||
color: #2878ff !important;
|
||||
}
|
||||
.casecon.data-v-55f9e2cf {
|
||||
flex: 1;
|
||||
overflow-y: scroll;
|
||||
padding-top: 10rpx;
|
||||
min-height: 350rpx;
|
||||
}
|
||||
.casecon .column.data-v-55f9e2cf {
|
||||
padding: 0 30rpx;
|
||||
border-bottom: 2rpx solid #e5e7eb;
|
||||
}
|
||||
.databox.data-v-55f9e2cf {
|
||||
height: 162rpx;
|
||||
background: #ffffff;
|
||||
display: flex;
|
||||
margin-bottom: 20rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.databox .cell.data-v-55f9e2cf {
|
||||
flex: 1;
|
||||
padding: 35rpx 0;
|
||||
text-align: center;
|
||||
}
|
||||
.databox .cell .num.data-v-55f9e2cf {
|
||||
font-size: 38rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.databox .cell .name.data-v-55f9e2cf {
|
||||
margin-top: 18rpx;
|
||||
font-size: 28rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
.listbox.data-v-55f9e2cf {
|
||||
background: #F8F9FA;
|
||||
overflow: hidden;
|
||||
}
|
||||
.filterbox.data-v-55f9e2cf {
|
||||
display: flex;
|
||||
height: 128rpx;
|
||||
background: #fff;
|
||||
border-bottom: 2rpx solid rgba(0, 0, 0, 0.08);
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
.filterbox .type.data-v-55f9e2cf {
|
||||
position: absolute;
|
||||
left: 30rpx;
|
||||
top: 24rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
height: 74rpx;
|
||||
padding: 0 25rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
.u-page.data-v-55f9e2cf .z-paging-content-fixed {
|
||||
background: #F8F9FA !important;
|
||||
}
|
||||
.u-page.data-v-55f9e2cf .u-flex {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
}
|
||||
.u-page.data-v-55f9e2cf .u-image {
|
||||
background: none !important;
|
||||
}
|
||||
.u-page.data-v-55f9e2cf .u-dropdown__menu {
|
||||
background: #fff;
|
||||
z-index: 1;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
.u-page.data-v-55f9e2cf .u-dropdown__menu__item {
|
||||
height: 74rpx;
|
||||
padding: 0 20rpx;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
flex: none;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
.u-page .deal.data-v-55f9e2cf {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
color: #6b7280;
|
||||
background: #fff;
|
||||
font-size: 24rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.u-page .deal .left.data-v-55f9e2cf {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 27rpx;
|
||||
}
|
||||
.u-page .deal .left .count.data-v-55f9e2cf {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .collect.data-v-55f9e2cf {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .eyebox.data-v-55f9e2cf {
|
||||
width: 160rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .time.data-v-55f9e2cf {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .num.data-v-55f9e2cf {
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
.u-page .item.data-v-55f9e2cf {
|
||||
margin: 30rpx;
|
||||
background: #fff;
|
||||
padding: 30rpx;
|
||||
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
|
||||
border-radius: 23rpx;
|
||||
}
|
||||
.u-page .item .title.data-v-55f9e2cf {
|
||||
font-size: 30rpx;
|
||||
color: #111827;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.u-page .tagsbox.data-v-55f9e2cf {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
}
|
||||
.u-page .tagsbox .tag.data-v-55f9e2cf {
|
||||
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-55f9e2cf {
|
||||
background: #f9f9f9;
|
||||
padding: 12rpx 30rpx;
|
||||
}
|
||||
.detail .desc.data-v-55f9e2cf {
|
||||
font-size: 26rpx;
|
||||
color: #4b5563;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.detail .red.data-v-55f9e2cf {
|
||||
color: #FF0000;
|
||||
}
|
||||
@@ -0,0 +1,243 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
const utils_navTo = require("../../utils/navTo.js");
|
||||
if (!Array) {
|
||||
const _easycom_navBarSearch2 = common_vendor.resolveComponent("navBarSearch");
|
||||
const _easycom_up_dropdown_item2 = common_vendor.resolveComponent("up-dropdown-item");
|
||||
const _easycom_up_dropdown2 = common_vendor.resolveComponent("up-dropdown");
|
||||
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_navBarSearch2 + _easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up__image2 + _easycom_up_icon2 + _easycom_z_paging2)();
|
||||
}
|
||||
const _easycom_navBarSearch = () => "../../components/navBarSearch/navBarSearch.js";
|
||||
const _easycom_up_dropdown_item = () => "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item.js";
|
||||
const _easycom_up_dropdown = () => "../../node-modules/uview-plus/components/u-dropdown/u-dropdown.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) {
|
||||
(_easycom_navBarSearch + _easycom_up_dropdown_item + _easycom_up_dropdown + _easycom_up__image + _easycom_up_icon + _easycom_z_paging)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "specialList",
|
||||
setup(__props) {
|
||||
const user_id = common_vendor.ref("");
|
||||
const is_selected = common_vendor.ref(0);
|
||||
const paging = common_vendor.ref(null);
|
||||
const dataList = common_vendor.ref([]);
|
||||
const total = common_vendor.ref(0);
|
||||
const keyWord = common_vendor.ref("");
|
||||
const showNum = common_vendor.ref(false);
|
||||
const options = common_vendor.ref([
|
||||
{
|
||||
label: "正序",
|
||||
value: "asc"
|
||||
},
|
||||
{
|
||||
label: "倒序",
|
||||
value: "desc"
|
||||
}
|
||||
]);
|
||||
const order = common_vendor.reactive({
|
||||
read_num: "",
|
||||
push_date: ""
|
||||
});
|
||||
const formatdate = (date) => {
|
||||
return common_vendor.dayjs(date).format("YYYY-MM-DD");
|
||||
};
|
||||
common_vendor.onLoad((options2) => {
|
||||
if (options2.keyWord) {
|
||||
keyWord.value = options2.keyWord;
|
||||
}
|
||||
if (options2.userId) {
|
||||
user_id.value = options2.userId;
|
||||
}
|
||||
if (options2.is_selected) {
|
||||
is_selected.value = options2.is_selected;
|
||||
}
|
||||
});
|
||||
const videoErrorCallback = (e) => {
|
||||
common_vendor.index.showModal({
|
||||
content: e.target.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
};
|
||||
const changeWord = (val) => {
|
||||
if (!val)
|
||||
return false;
|
||||
showNum.value = true;
|
||||
keyWord.value = val;
|
||||
paging.value.reload();
|
||||
};
|
||||
const goDetail = (id) => {
|
||||
utils_navTo.navTo({
|
||||
url: `/pages/detail/detail?id=${id}&type=exchange`
|
||||
});
|
||||
};
|
||||
const queryList = (pageNo, pageSize) => {
|
||||
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:218", 666666);
|
||||
const params = {
|
||||
page: pageNo,
|
||||
page_size: pageSize
|
||||
};
|
||||
searchList(params);
|
||||
};
|
||||
const searchList = async (params) => {
|
||||
let searchForm = {
|
||||
keyword: keyWord.value,
|
||||
user_id: user_id.value
|
||||
};
|
||||
if (Number(is_selected.value)) {
|
||||
searchForm.is_selected = Number(is_selected.value);
|
||||
}
|
||||
if (!order.read_num) {
|
||||
delete order.read_num;
|
||||
}
|
||||
if (!order.push_date) {
|
||||
delete order.push_date;
|
||||
}
|
||||
if (order.read_num || order.push_date) {
|
||||
searchForm.order = order;
|
||||
}
|
||||
api_api.api.searchExchage({
|
||||
...searchForm,
|
||||
...params
|
||||
}).then((res) => {
|
||||
paging.value.complete(res.data.data.data);
|
||||
total.value = res.data.data.total;
|
||||
}).catch((err) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.o(changeWord),
|
||||
b: common_vendor.p({
|
||||
navName: "肝胆相照精选病例交流"
|
||||
}),
|
||||
c: total.value > 0 && showNum.value
|
||||
}, total.value > 0 && showNum.value ? common_vendor.e({
|
||||
d: common_vendor.t(total.value),
|
||||
e: keyWord.value
|
||||
}, keyWord.value ? {
|
||||
f: common_vendor.t(keyWord.value)
|
||||
} : {}) : {}, {
|
||||
g: common_vendor.o(_ctx.change),
|
||||
h: common_vendor.o(($event) => order.push_date = $event),
|
||||
i: common_vendor.p({
|
||||
title: "发布时间",
|
||||
options: options.value,
|
||||
modelValue: order.push_date
|
||||
}),
|
||||
j: common_vendor.o(_ctx.change),
|
||||
k: common_vendor.o(($event) => order.read_num = $event),
|
||||
l: common_vendor.p({
|
||||
title: "阅读量",
|
||||
options: options.value,
|
||||
modelValue: order.read_num
|
||||
}),
|
||||
m: common_vendor.sr("uDropdownRef", "b2cb78f4-2,b2cb78f4-0"),
|
||||
n: common_vendor.f(dataList.value, (item, k0, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.exchange_title),
|
||||
b: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
c: "b2cb78f4-5-" + i0 + ",b2cb78f4-0",
|
||||
d: common_vendor.p({
|
||||
src: item.avatar ? item.avatar : common_vendor.unref(common_assets.headImg),
|
||||
width: "46rpx",
|
||||
height: "46rpx",
|
||||
radius: "50%"
|
||||
}),
|
||||
e: common_vendor.t(item.user_name),
|
||||
f: common_vendor.t(item.hospital_name),
|
||||
g: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
h: common_vendor.t(item.exchange_content),
|
||||
i: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
j: item.exchange_content_image && item.exchange_content_image.length > 0
|
||||
}, item.exchange_content_image && item.exchange_content_image.length > 0 ? {
|
||||
k: common_vendor.f(item.exchange_content_image, (unit, k1, i1) => {
|
||||
return {
|
||||
a: "b2cb78f4-6-" + i0 + "-" + i1 + ",b2cb78f4-0",
|
||||
b: common_vendor.p({
|
||||
src: unit,
|
||||
radius: "10",
|
||||
width: "220rpx",
|
||||
height: "220rpx"
|
||||
})
|
||||
};
|
||||
}),
|
||||
l: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
|
||||
} : {}, {
|
||||
m: item.exchange_content_video && item.exchange_content_video.length > 0
|
||||
}, item.exchange_content_video && item.exchange_content_video.length > 0 ? {
|
||||
n: common_vendor.f(item.exchange_content_video, (videoCell, index, i1) => {
|
||||
return {
|
||||
a: index,
|
||||
b: videoCell,
|
||||
c: common_vendor.o(videoErrorCallback, index)
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
o: item.label && item.label.length > 0
|
||||
}, item.label && item.label.length > 0 ? {
|
||||
p: common_vendor.f(item.label, (cell, k1, i1) => {
|
||||
return {
|
||||
a: common_vendor.t(cell.label_name),
|
||||
b: cell.exchange_label_id
|
||||
};
|
||||
}),
|
||||
q: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
|
||||
} : {}, {
|
||||
r: "b2cb78f4-7-" + i0 + ",b2cb78f4-0",
|
||||
s: common_vendor.t(item.read_num),
|
||||
t: "b2cb78f4-8-" + i0 + ",b2cb78f4-0",
|
||||
v: common_vendor.t(item.collect_num),
|
||||
w: "b2cb78f4-9-" + i0 + ",b2cb78f4-0",
|
||||
x: common_vendor.t(item.comment_num),
|
||||
y: "b2cb78f4-10-" + i0 + ",b2cb78f4-0",
|
||||
z: common_vendor.t(formatdate(item.push_date)),
|
||||
A: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
B: item.exchange_id
|
||||
});
|
||||
}),
|
||||
o: common_vendor.p({
|
||||
name: "eye",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
p: common_vendor.p({
|
||||
name: "heart",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
q: common_vendor.p({
|
||||
name: "chat",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
r: common_vendor.p({
|
||||
name: "clock",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
s: common_vendor.sr(paging, "b2cb78f4-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
t: common_vendor.o(queryList),
|
||||
v: common_vendor.o(($event) => dataList.value = $event),
|
||||
w: 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-b2cb78f4"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/specialList/specialList.js.map
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"nav-bar-search": "../../components/navBarSearch/navBarSearch",
|
||||
"up-dropdown-item": "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item",
|
||||
"up-dropdown": "../../node-modules/uview-plus/components/u-dropdown/u-dropdown",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="upage data-v-b2cb78f4"><z-paging wx:if="{{w}}" class="r data-v-b2cb78f4" u-s="{{['top','d']}}" u-r="paging" bindquery="{{t}}" u-i="b2cb78f4-0" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"><view slot="top"><nav-bar-search wx:if="{{b}}" class="data-v-b2cb78f4" bindchangeWord="{{a}}" u-i="b2cb78f4-1,b2cb78f4-0" bind:__l="__l" u-p="{{b}}"></nav-bar-search><view wx:if="{{c}}" class="detail data-v-b2cb78f4"><view class="desc data-v-b2cb78f4">检索到:<text class="red data-v-b2cb78f4">{{d}}个病例</text></view><view wx:if="{{e}}" class="desc data-v-b2cb78f4">检索词:<text class="red data-v-b2cb78f4">{{f}}</text></view></view><view class="bar data-v-b2cb78f4"></view><view class="filterbox data-v-b2cb78f4"><up-dropdown u-s="{{['d']}}" class="u-dropdown r data-v-b2cb78f4" u-r="uDropdownRef" u-i="b2cb78f4-2,b2cb78f4-0" bind:__l="__l"><up-dropdown-item wx:if="{{i}}" class="data-v-b2cb78f4" bindchange="{{g}}" u-i="b2cb78f4-3,b2cb78f4-2" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"></up-dropdown-item><up-dropdown-item wx:if="{{l}}" class="data-v-b2cb78f4" bindchange="{{j}}" u-i="b2cb78f4-4,b2cb78f4-2" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"></up-dropdown-item></up-dropdown></view></view><view class="box data-v-b2cb78f4"><view class="record data-v-b2cb78f4"><view class="list data-v-b2cb78f4"><view wx:for="{{n}}" wx:for-item="item" wx:key="B" class="cell data-v-b2cb78f4"><view bindtap="{{item.b}}" class="title ellipsis-two-lines data-v-b2cb78f4">{{item.a}}</view><view class="doctor data-v-b2cb78f4" bindtap="{{item.g}}"><up--image wx:if="{{item.d}}" class="data-v-b2cb78f4" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></up--image><view class="name data-v-b2cb78f4">{{item.e}}({{item.f}})</view></view><view class="content data-v-b2cb78f4" bindtap="{{item.i}}">{{item.h}}</view><view wx:if="{{item.j}}" class="imgbox data-v-b2cb78f4" bindtap="{{item.l}}"><view wx:for="{{item.k}}" wx:for-item="unit" class="imgcell data-v-b2cb78f4"><up--image wx:if="{{unit.b}}" class="data-v-b2cb78f4" u-s="{{['d']}}" u-i="{{unit.a}}" bind:__l="__l" u-p="{{unit.b}}"><view class="data-v-b2cb78f4" slot="error" style="font-size:24rpx">加载失败</view></up--image></view></view><view class="videocon data-v-b2cb78f4"><view wx:if="{{item.m}}" class="imgbox data-v-b2cb78f4"><video wx:for="{{item.n}}" wx:for-item="videoCell" wx:key="a" class="myVideo data-v-b2cb78f4" src="{{videoCell.b}}" binderror="{{videoCell.c}}" controls></video></view></view><view wx:if="{{item.o}}" class="tagbox data-v-b2cb78f4" bindtap="{{item.q}}"><view wx:for="{{item.p}}" wx:for-item="cell" wx:key="b" class="tag data-v-b2cb78f4">{{cell.a}}</view></view><view class="deal data-v-b2cb78f4" bindtap="{{item.A}}"><view class="left data-v-b2cb78f4"><view class="eyebox item data-v-b2cb78f4"><up-icon wx:if="{{o}}" class="data-v-b2cb78f4" u-i="{{item.r}}" bind:__l="__l" u-p="{{o}}"></up-icon><view class="num data-v-b2cb78f4">{{item.s}}</view></view><view class="collect item data-v-b2cb78f4"><up-icon wx:if="{{p}}" class="data-v-b2cb78f4" u-i="{{item.t}}" bind:__l="__l" u-p="{{p}}"></up-icon><view class="num data-v-b2cb78f4">{{item.v}}</view></view><view class="chat item data-v-b2cb78f4"><up-icon wx:if="{{q}}" class="data-v-b2cb78f4" u-i="{{item.w}}" bind:__l="__l" u-p="{{q}}"></up-icon><view class="num data-v-b2cb78f4">{{item.x}}</view></view></view><view class="time data-v-b2cb78f4"><up-icon wx:if="{{r}}" class="data-v-b2cb78f4" u-i="{{item.y}}" bind:__l="__l" u-p="{{r}}"></up-icon><view class="num data-v-b2cb78f4">{{item.z}}</view></view></view></view></view></view></view></z-paging></view>
|
||||
@@ -0,0 +1,237 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.filterbox.data-v-b2cb78f4 {
|
||||
display: flex;
|
||||
height: 128rpx;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
border-bottom: 2rpx solid #f3f4f6;
|
||||
}
|
||||
.filterbox.data-v-b2cb78f4 .u-dropdown__menu__item__text {
|
||||
font-size: 14px !important;
|
||||
}
|
||||
.filterbox .type.data-v-b2cb78f4 {
|
||||
color: #606266;
|
||||
font-size: 14px;
|
||||
position: absolute;
|
||||
left: 30rpx;
|
||||
top: 24rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
height: 74rpx;
|
||||
padding: 0 25rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
.detail.data-v-b2cb78f4 {
|
||||
background: #f9f9f9;
|
||||
padding: 12rpx 30rpx;
|
||||
}
|
||||
.detail .desc.data-v-b2cb78f4 {
|
||||
font-size: 26rpx;
|
||||
color: #4b5563;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.detail .red.data-v-b2cb78f4 {
|
||||
color: #ff0000;
|
||||
}
|
||||
.upage.data-v-b2cb78f4 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: calc(100vh - 100rpx);
|
||||
}
|
||||
.upage.data-v-b2cb78f4 .u-flex {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
}
|
||||
.upage.data-v-b2cb78f4 .u-dropdown__menu {
|
||||
background: #fff;
|
||||
z-index: 1;
|
||||
margin-left: 0rpx;
|
||||
}
|
||||
.upage.data-v-b2cb78f4 .u-dropdown__menu__item {
|
||||
height: 74rpx;
|
||||
padding: 0 20rpx;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
flex: none;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
.box.data-v-b2cb78f4 {
|
||||
flex: 1;
|
||||
padding-bottom: 30rpx;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.myVideo.data-v-b2cb78f4 {
|
||||
width: 100%;
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
.deal.data-v-b2cb78f4 {
|
||||
padding-top: 20rpx;
|
||||
display: flex;
|
||||
color: #4b5563;
|
||||
font-size: 24rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.deal .left.data-v-b2cb78f4 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.deal .left .item.data-v-b2cb78f4 {
|
||||
width: 100rpx;
|
||||
}
|
||||
.deal .collect.data-v-b2cb78f4 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.deal .eyebox.data-v-b2cb78f4,
|
||||
.deal .chat.data-v-b2cb78f4 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.deal .time.data-v-b2cb78f4 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.deal .num.data-v-b2cb78f4 {
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
.tagbox.data-v-b2cb78f4 {
|
||||
margin-top: 24rpx;
|
||||
display: flex;
|
||||
}
|
||||
.tagbox .tag.data-v-b2cb78f4 {
|
||||
height: 54rpx;
|
||||
padding: 0 28rpx;
|
||||
background: #ecfaf9;
|
||||
border-radius: 30rpx;
|
||||
font-size: 27rpx;
|
||||
color: #3cc7c0;
|
||||
margin-right: 12rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.doctor.data-v-b2cb78f4 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.record.data-v-b2cb78f4 {
|
||||
padding-top: 30rpx;
|
||||
}
|
||||
.record .list.data-v-b2cb78f4 {
|
||||
margin: 30rpx 30rpx;
|
||||
}
|
||||
.record .list .name.data-v-b2cb78f4 {
|
||||
padding: 20rpx 0 20rpx 15rpx;
|
||||
font-size: 27rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.record .list .content.data-v-b2cb78f4 {
|
||||
font-size: 27rpx;
|
||||
color: #666666;
|
||||
line-height: 38rpx;
|
||||
}
|
||||
.record .list .imgbox.data-v-b2cb78f4 {
|
||||
display: flex;
|
||||
margin-top: 24rpx;
|
||||
}
|
||||
.record .list .imgbox .imgcell.data-v-b2cb78f4 {
|
||||
width: 220rpx;
|
||||
height: 220rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.record .list .imgbox .imgcell.data-v-b2cb78f4:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
.record.data-v-b2cb78f4 {
|
||||
padding-top: 30rpx;
|
||||
}
|
||||
.record .list.data-v-b2cb78f4 {
|
||||
margin: 8rpx 0rpx 0;
|
||||
}
|
||||
.record .list .cell.data-v-b2cb78f4 {
|
||||
padding: 22rpx 30rpx;
|
||||
border-bottom: 2rpx solid #f3f4f6;
|
||||
}
|
||||
.record .list .cell .circle.data-v-b2cb78f4 {
|
||||
margin-top: 15rpx;
|
||||
width: 15rpx;
|
||||
height: 15rpx;
|
||||
background: #3cc7c0;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.record .list .cell .title.data-v-b2cb78f4 {
|
||||
margin-left: 10rpx;
|
||||
font-size: 32rpx;
|
||||
color: #000000;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.record .list .cell.data-v-b2cb78f4:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.titlebox.data-v-b2cb78f4 {
|
||||
margin: 0 30rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.titlebox .more.data-v-b2cb78f4 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.titlebox .more .morename.data-v-b2cb78f4 {
|
||||
margin-right: 10rpx;
|
||||
font-size: 28rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.bar.data-v-b2cb78f4 {
|
||||
height: 16rpx;
|
||||
background: #f3f4f6;
|
||||
}
|
||||
.databox.data-v-b2cb78f4 {
|
||||
height: 162rpx;
|
||||
background: #ffffff;
|
||||
display: flex;
|
||||
padding: 0 30rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.databox .cell.data-v-b2cb78f4 {
|
||||
flex: 1;
|
||||
padding: 35rpx 0;
|
||||
text-align: center;
|
||||
}
|
||||
.databox .cell .num.data-v-b2cb78f4 {
|
||||
font-size: 38rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.databox .cell .name.data-v-b2cb78f4 {
|
||||
margin-top: 18rpx;
|
||||
font-size: 28rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
@@ -0,0 +1,259 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
const utils_navTo = require("../../utils/navTo.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_dropdown_item2 = common_vendor.resolveComponent("up-dropdown-item");
|
||||
const _easycom_up_dropdown2 = common_vendor.resolveComponent("up-dropdown");
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
|
||||
(_easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up_icon2 + _easycom_z_paging2)();
|
||||
}
|
||||
const _easycom_up_dropdown_item = () => "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item.js";
|
||||
const _easycom_up_dropdown = () => "../../node-modules/uview-plus/components/u-dropdown/u-dropdown.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_dropdown_item + _easycom_up_dropdown + _easycom_up_icon + _easycom_z_paging)();
|
||||
}
|
||||
const navBarSearch = () => "../../components/navBarSearch/navBarSearch.js";
|
||||
const _sfc_main = {
|
||||
__name: "videoList",
|
||||
setup(__props) {
|
||||
const paging = common_vendor.ref(null);
|
||||
const uDropdownRef = common_vendor.ref(null);
|
||||
const dataList = common_vendor.ref([]);
|
||||
const total = common_vendor.ref(0);
|
||||
const keyWord = common_vendor.ref("");
|
||||
const isArticle = common_vendor.ref(false);
|
||||
const hospital_id = common_vendor.ref("");
|
||||
const hospital_name = common_vendor.ref("");
|
||||
const doctor_id = common_vendor.ref("");
|
||||
const doctor_name = common_vendor.ref("");
|
||||
const numInfo = common_vendor.reactive({});
|
||||
const searchInfo = common_vendor.reactive({});
|
||||
const navName = common_vendor.ref("视频临床病例库");
|
||||
const options = common_vendor.ref([
|
||||
{
|
||||
label: "正序",
|
||||
value: "asc"
|
||||
},
|
||||
{
|
||||
label: "倒序",
|
||||
value: "desc"
|
||||
}
|
||||
]);
|
||||
const isSearch = common_vendor.ref(false);
|
||||
const order = common_vendor.reactive({
|
||||
read_num: "",
|
||||
push_date: ""
|
||||
});
|
||||
const changeWord = (value) => {
|
||||
keyWord.value = value;
|
||||
isSearch.value = true;
|
||||
paging.value.reload();
|
||||
};
|
||||
common_vendor.onLoad((options2) => {
|
||||
if (options2.keyWord) {
|
||||
keyWord.value = options2.keyWord;
|
||||
}
|
||||
if (options2.order == "new") {
|
||||
order.push_date = "asc";
|
||||
}
|
||||
if (options2.order == "read") {
|
||||
order.read_num = "desc";
|
||||
}
|
||||
if (options2.order == "video") {
|
||||
isArticle.value = false;
|
||||
}
|
||||
getStatic();
|
||||
if (options2.doctor_id) {
|
||||
doctor_id.value = options2.doctor_id;
|
||||
doctor_name.value = options2.doctor_name;
|
||||
navName.value = doctor_name.value + "临床病例库";
|
||||
getStaticDoctor(doctor_id.value);
|
||||
}
|
||||
if (options2.hospital_id) {
|
||||
hospital_id.value = options2.hospital_id;
|
||||
hospital_name.value = options2.hospital_name;
|
||||
navName.value = hospital_name.value + "临床病例库";
|
||||
getStaticDoctor(hospital_id.value);
|
||||
}
|
||||
});
|
||||
const change = (e) => {
|
||||
paging.value.reload();
|
||||
};
|
||||
const formatdate = (date) => {
|
||||
return common_vendor.dayjs(date).format("YYYY-MM-DD");
|
||||
};
|
||||
const goDetail = (id) => {
|
||||
common_vendor.index.__f__("log", "at pages/videoList/videoList.vue:162", 11111);
|
||||
common_vendor.index.__f__("log", "at pages/videoList/videoList.vue:163", id);
|
||||
let type = isArticle.value ? "article" : "video";
|
||||
utils_navTo.navTo({
|
||||
url: `/pages/detail/detail?id=${id}&type=${type}`
|
||||
});
|
||||
};
|
||||
const getStatic = () => {
|
||||
api_api.api.getHomeStatics().then((res) => {
|
||||
let result = res.data.data;
|
||||
Object.assign(numInfo, result);
|
||||
});
|
||||
};
|
||||
const searchArticle = (params) => {
|
||||
let searchForm = {
|
||||
keyword: keyWord.value,
|
||||
hospital_id: hospital_id.value,
|
||||
doctor_id: doctor_id.value
|
||||
};
|
||||
if (isSearch.value) {
|
||||
searchForm.is_need_num = 1;
|
||||
}
|
||||
if (!order.read_num) {
|
||||
delete order.read_num;
|
||||
}
|
||||
if (!order.push_date) {
|
||||
delete order.push_date;
|
||||
}
|
||||
if (order.read_num || order.push_date) {
|
||||
searchForm.order = order;
|
||||
}
|
||||
api_api.api.searchArticle({
|
||||
...searchForm,
|
||||
...params
|
||||
}).then((res) => {
|
||||
paging.value.complete(res.data.data.data);
|
||||
total.value = res.data.data.total;
|
||||
searchInfo.search_video_num = res.data.data.search_video_num;
|
||||
searchInfo.search_article_num = res.data.data.search_article_num;
|
||||
}).catch((err) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
const searchVideo = async (params) => {
|
||||
let searchForm = {
|
||||
keyword: keyWord.value,
|
||||
hospital_id: hospital_id.value,
|
||||
doctor_id: doctor_id.value
|
||||
};
|
||||
if (isSearch.value) {
|
||||
searchForm.is_need_num = 1;
|
||||
}
|
||||
if (!order.read_num) {
|
||||
delete order.read_num;
|
||||
}
|
||||
if (!order.push_date) {
|
||||
delete order.push_date;
|
||||
}
|
||||
if (order.read_num || order.push_date) {
|
||||
searchForm.order = order;
|
||||
}
|
||||
api_api.api.searchVideo({
|
||||
...searchForm,
|
||||
...params
|
||||
}).then((res) => {
|
||||
paging.value.complete(res.data.data.data);
|
||||
total.value = res.data.data.total;
|
||||
searchInfo.search_video_num = res.data.data.search_video_num;
|
||||
searchInfo.search_article_num = res.data.data.search_article_num;
|
||||
}).catch((err) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
const queryList = (pageNo, pageSize) => {
|
||||
common_vendor.index.__f__("log", "at pages/videoList/videoList.vue:238", 666666);
|
||||
const params = {
|
||||
page: pageNo,
|
||||
page_size: pageSize
|
||||
};
|
||||
isArticle.value ? 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,
|
||||
type: "video"
|
||||
}),
|
||||
c: isArticle.value
|
||||
}, isArticle.value ? {
|
||||
d: common_vendor.t(numInfo.article_collect_num)
|
||||
} : {
|
||||
e: common_vendor.t(numInfo.video_collect_num)
|
||||
}, {
|
||||
f: isArticle.value
|
||||
}, isArticle.value ? {
|
||||
g: common_vendor.t(numInfo.article_read_num)
|
||||
} : {
|
||||
h: common_vendor.t(numInfo.video_read_num)
|
||||
}, {
|
||||
i: common_vendor.o(change),
|
||||
j: common_vendor.o(($event) => order.push_date = $event),
|
||||
k: common_vendor.p({
|
||||
title: "发布时间",
|
||||
options: options.value,
|
||||
modelValue: order.push_date
|
||||
}),
|
||||
l: common_vendor.o(change),
|
||||
m: common_vendor.o(($event) => order.read_num = $event),
|
||||
n: common_vendor.p({
|
||||
title: "阅读量",
|
||||
options: options.value,
|
||||
modelValue: order.read_num
|
||||
}),
|
||||
o: common_vendor.sr(uDropdownRef, "acc011bc-2,acc011bc-0", {
|
||||
"k": "uDropdownRef"
|
||||
}),
|
||||
p: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(isArticle.value ? 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: "acc011bc-5-" + i0 + ",acc011bc-0",
|
||||
d: common_vendor.t(item.read_num),
|
||||
e: "acc011bc-6-" + i0 + ",acc011bc-0",
|
||||
f: common_vendor.t(item.collect_num),
|
||||
g: "acc011bc-7-" + i0 + ",acc011bc-0",
|
||||
h: common_vendor.t(formatdate(item.push_date)),
|
||||
i: index,
|
||||
j: common_vendor.o(($event) => isArticle.value ? goDetail(item.article_id) : goDetail(item.video_id), index)
|
||||
};
|
||||
}),
|
||||
q: common_vendor.p({
|
||||
name: "eye",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
r: common_vendor.p({
|
||||
name: "heart",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
s: common_vendor.p({
|
||||
name: "clock",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
t: common_vendor.sr(paging, "acc011bc-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
v: common_vendor.o(queryList),
|
||||
w: common_vendor.o(($event) => dataList.value = $event),
|
||||
x: 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-acc011bc"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/videoList/videoList.js.map
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-dropdown-item": "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item",
|
||||
"up-dropdown": "../../node-modules/uview-plus/components/u-dropdown/u-dropdown",
|
||||
"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-acc011bc"><z-paging wx:if="{{x}}" class="r data-v-acc011bc" u-s="{{['top','d']}}" u-r="paging" bindquery="{{v}}" u-i="acc011bc-0" bind:__l="__l" bindupdateModelValue="{{w}}" u-p="{{x}}"><view slot="top"><nav-bar-search wx:if="{{b}}" class="data-v-acc011bc" bindchangeWord="{{a}}" u-i="acc011bc-1,acc011bc-0" bind:__l="__l" u-p="{{b}}"></nav-bar-search><view class="databox data-v-acc011bc"><view wx:if="{{c}}" class="cell data-v-acc011bc"><view class="num data-v-acc011bc">{{d}}</view><view class="name data-v-acc011bc">文章</view></view><view wx:else class="cell data-v-acc011bc"><view class="num data-v-acc011bc">{{e}}</view><view class="name data-v-acc011bc">视频</view></view><view wx:if="{{f}}" class="cell data-v-acc011bc"><view class="num data-v-acc011bc">{{g}}</view><view class="name data-v-acc011bc">阅读量</view></view><view wx:else class="cell data-v-acc011bc"><view class="num data-v-acc011bc">{{h}}</view><view class="name data-v-acc011bc">阅读量</view></view></view><view class="bar data-v-acc011bc"></view><view class="filterbox data-v-acc011bc"><up-dropdown u-s="{{['d']}}" class="u-dropdown r data-v-acc011bc" u-r="uDropdownRef" u-i="acc011bc-2,acc011bc-0" bind:__l="__l"><up-dropdown-item wx:if="{{k}}" class="data-v-acc011bc" bindchange="{{i}}" u-i="acc011bc-3,acc011bc-2" bind:__l="__l" bindupdateModelValue="{{j}}" u-p="{{k}}"></up-dropdown-item><up-dropdown-item wx:if="{{n}}" class="data-v-acc011bc" bindchange="{{l}}" u-i="acc011bc-4,acc011bc-2" bind:__l="__l" bindupdateModelValue="{{m}}" u-p="{{n}}"></up-dropdown-item></up-dropdown></view></view><view wx:for="{{p}}" wx:for-item="item" wx:key="i" class="item data-v-acc011bc" bindtap="{{item.j}}"><view class="title ellipsis data-v-acc011bc">{{item.a}}</view><view class="tagsbox data-v-acc011bc"><view wx:for="{{item.b}}" wx:for-item="tag" wx:key="b" class="tag data-v-acc011bc">{{tag.a}}</view></view><view class="deal data-v-acc011bc"><view class="left data-v-acc011bc"><view class="eyebox data-v-acc011bc"><up-icon wx:if="{{q}}" class="data-v-acc011bc" u-i="{{item.c}}" bind:__l="__l" u-p="{{q}}"></up-icon><view class="num data-v-acc011bc">{{item.d}}</view></view><view class="collect data-v-acc011bc"><up-icon wx:if="{{r}}" class="data-v-acc011bc" u-i="{{item.e}}" bind:__l="__l" u-p="{{r}}"></up-icon><view class="num data-v-acc011bc">{{item.f}}</view></view></view><view class="time data-v-acc011bc"><up-icon wx:if="{{s}}" class="data-v-acc011bc" u-i="{{item.g}}" bind:__l="__l" u-p="{{s}}"></up-icon><view class="num data-v-acc011bc">{{item.h}}</view></view></view></view></z-paging></view>
|
||||
@@ -0,0 +1,158 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.bar.data-v-acc011bc {
|
||||
width: 100%;
|
||||
background: #f9fafb;
|
||||
height: 20rpx;
|
||||
}
|
||||
.databox.data-v-acc011bc {
|
||||
height: 162rpx;
|
||||
background: #ffffff;
|
||||
display: flex;
|
||||
margin-bottom: 20rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.databox .cell.data-v-acc011bc {
|
||||
flex: 1;
|
||||
padding: 35rpx 0;
|
||||
text-align: center;
|
||||
}
|
||||
.databox .cell .num.data-v-acc011bc {
|
||||
font-size: 38rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.databox .cell .name.data-v-acc011bc {
|
||||
margin-top: 18rpx;
|
||||
font-size: 28rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
.filterbox.data-v-acc011bc {
|
||||
display: flex;
|
||||
height: 128rpx;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
border-bottom: 2rpx solid #f3f4f6;
|
||||
}
|
||||
.filterbox.data-v-acc011bc .u-dropdown__menu__item__text {
|
||||
font-size: 14px !important;
|
||||
}
|
||||
.filterbox .type.data-v-acc011bc {
|
||||
color: #606266;
|
||||
font-size: 14px;
|
||||
position: absolute;
|
||||
left: 30rpx;
|
||||
top: 24rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
height: 74rpx;
|
||||
padding: 0 25rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
.u-page.data-v-acc011bc .u-flex {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
}
|
||||
.u-page.data-v-acc011bc .u-dropdown__menu {
|
||||
background: #fff;
|
||||
z-index: 1;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
.u-page.data-v-acc011bc .u-dropdown__menu__item {
|
||||
height: 74rpx;
|
||||
padding: 0 20rpx;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
flex: none;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
.u-page .deal.data-v-acc011bc {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
color: #6b7280;
|
||||
font-size: 24rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.u-page .deal .left.data-v-acc011bc {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .collect.data-v-acc011bc {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .eyebox.data-v-acc011bc {
|
||||
width: 160rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .time.data-v-acc011bc {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-page .deal .num.data-v-acc011bc {
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
.u-page .item.data-v-acc011bc {
|
||||
border-bottom: 1rpx solid #f3f4f6;
|
||||
padding: 30rpx;
|
||||
}
|
||||
.u-page .item .title.data-v-acc011bc {
|
||||
font-size: 30rpx;
|
||||
color: #111827;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.u-page .tagsbox.data-v-acc011bc {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
}
|
||||
.u-page .tagsbox .tag.data-v-acc011bc {
|
||||
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-acc011bc {
|
||||
background: #f9f9f9;
|
||||
padding: 12rpx 30rpx;
|
||||
}
|
||||
.detail .desc.data-v-acc011bc {
|
||||
font-size: 26rpx;
|
||||
color: #4b5563;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.detail .red.data-v-acc011bc {
|
||||
color: #FF0000;
|
||||
}
|
||||
Reference in New Issue
Block a user