222
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,228 @@
|
||||
"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 htmlToText = (html) => {
|
||||
return html.replace(/<[^>]*>/g, "").replace(/ /gi, " ").replace(/<br\s*\/?>/gi, "\n").replace(/<img\s[^>]*>/gi, "").replace(/<video[^>]*>[\s\S]*?/gi, "");
|
||||
};
|
||||
const goodList = () => {
|
||||
api_api.api.searchExchageGood({
|
||||
is_selected: 1,
|
||||
limit: 5
|
||||
}).then((res) => {
|
||||
most_read_articles.value = res.data.data;
|
||||
});
|
||||
};
|
||||
const goPublish = () => {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/publish/publish"
|
||||
});
|
||||
};
|
||||
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.slice(0, 3), (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(htmlToText(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"
|
||||
}),
|
||||
c: unit
|
||||
};
|
||||
}),
|
||||
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: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
|
||||
} : {}, {
|
||||
p: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
q: item.label && item.label.length > 0
|
||||
}, item.label && item.label.length > 0 ? {
|
||||
r: common_vendor.f(item.label, (cell, k1, i1) => {
|
||||
return {
|
||||
a: common_vendor.t(cell.label_name),
|
||||
b: cell.exchange_label_id
|
||||
};
|
||||
}),
|
||||
s: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
|
||||
} : {}, {
|
||||
t: "4b2e7592-5-" + i0,
|
||||
v: common_vendor.t(item.read_num),
|
||||
w: item.collect_num > 0
|
||||
}, item.collect_num > 0 ? {
|
||||
x: "4b2e7592-6-" + i0,
|
||||
y: common_vendor.p({
|
||||
name: "heart",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
z: common_vendor.t(item.collect_num)
|
||||
} : {}, {
|
||||
A: item.comment_num > 0
|
||||
}, item.comment_num > 0 ? {
|
||||
B: "4b2e7592-7-" + i0,
|
||||
C: common_vendor.p({
|
||||
name: "chat",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
D: common_vendor.t(item.comment_num)
|
||||
} : {}, {
|
||||
E: "4b2e7592-8-" + i0,
|
||||
F: common_vendor.t(formatdate(item.push_date)),
|
||||
G: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
H: item.exchange_id
|
||||
});
|
||||
}),
|
||||
l: common_vendor.p({
|
||||
name: "eye",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
m: common_vendor.p({
|
||||
name: "clock",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
n: common_vendor.p({
|
||||
value: 2
|
||||
}),
|
||||
o: common_vendor.p({
|
||||
name: "plus",
|
||||
color: "#fff",
|
||||
size: "18"
|
||||
}),
|
||||
p: common_vendor.o(goPublish)
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
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-one-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="H" 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 ellipsis-two-lines 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" wx:key="c" 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" bindtap="{{item.p}}"><view wx:if="{{item.m}}" class="imgbox data-v-4b2e7592" bindtap="{{item.o}}"><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.q}}" class="tagbox data-v-4b2e7592" bindtap="{{item.s}}"><view wx:for="{{item.r}}" wx:for-item="cell" wx:key="b" class="tag data-v-4b2e7592">{{cell.a}}</view></view><view class="deal data-v-4b2e7592" bindtap="{{item.G}}"><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.t}}" bind:__l="__l" u-p="{{l}}"></up-icon><view class="num data-v-4b2e7592">{{item.v}}</view></view><view wx:if="{{item.w}}" class="collect item data-v-4b2e7592"><up-icon wx:if="{{item.y}}" class="data-v-4b2e7592" u-i="{{item.x}}" bind:__l="__l" u-p="{{item.y}}"></up-icon><view class="num data-v-4b2e7592">{{item.z}}</view></view><view wx:if="{{item.A}}" class="chat item data-v-4b2e7592"><up-icon wx:if="{{item.C}}" class="data-v-4b2e7592" u-i="{{item.B}}" bind:__l="__l" u-p="{{item.C}}"></up-icon><view class="num data-v-4b2e7592">{{item.D}}</view></view></view><view class="time data-v-4b2e7592"><up-icon wx:if="{{m}}" class="data-v-4b2e7592" u-i="{{item.E}}" bind:__l="__l" u-p="{{m}}"></up-icon><view class="num data-v-4b2e7592">{{item.F}}</view></view></view></view></view></view></view></view><tab-bar wx:if="{{n}}" class="data-v-4b2e7592" u-i="4b2e7592-9" bind:__l="__l" u-p="{{n}}"></tab-bar><view class="publish data-v-4b2e7592" bindtap="{{p}}"><up-icon wx:if="{{o}}" class="data-v-4b2e7592" u-i="4b2e7592-10" bind:__l="__l" u-p="{{o}}"></up-icon></view>
|
||||
@@ -0,0 +1,200 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.publish.data-v-4b2e7592 {
|
||||
width: 92rpx;
|
||||
height: 92rpx;
|
||||
background: #3CC7C0;
|
||||
border-radius: 50%;
|
||||
position: fixed;
|
||||
right: 30rpx;
|
||||
bottom: 180rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.upage.data-v-4b2e7592 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: calc(100vh - 120rpx);
|
||||
}
|
||||
.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 {
|
||||
flex-shrink: 0;
|
||||
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,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="{{r}}" class="r data-v-24ff958c" u-s="{{['top','d']}}" u-r="paging" bindquery="{{p}}" u-i="24ff958c-0" bind:__l="__l" bindupdateModelValue="{{q}}" u-p="{{r}}"><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 wx:if="{{d}}" 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 wx:if="{{h}}" class="desc data-v-24ff958c">检索词:<text class="red data-v-24ff958c">{{i}}</text></view></view><view class="tabcon data-v-24ff958c"><up-tabs wx:if="{{k}}" class="data-v-24ff958c" bindclick="{{j}}" u-i="24ff958c-2,24ff958c-0" bind:__l="__l" u-p="{{k}}"></up-tabs></view></view><view wx:for="{{l}}" wx:for-item="item" wx:key="e" class="item data-v-24ff958c" bindtap="{{item.f}}"><view class="title ellipsis-two-lines data-v-24ff958c">{{item.a}}</view><view class="deal data-v-24ff958c"><view class="left data-v-24ff958c"><view class="recored data-v-24ff958c"><up--image wx:if="{{m}}" class="data-v-24ff958c" u-i="{{item.b}}" bind:__l="__l" u-p="{{m}}"></up--image> 收录证书 </view></view><view class="time data-v-24ff958c"><up-icon wx:if="{{n}}" class="data-v-24ff958c" u-i="{{item.c}}" bind:__l="__l" u-p="{{n}}"></up-icon><view class="num data-v-24ff958c">{{item.d}}</view></view></view></view></z-paging></view>
|
||||
@@ -0,0 +1,150 @@
|
||||
/**
|
||||
* 这里是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;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
+1152
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-detail-nav": "../../components/backDetailNav/backDetailNav"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,526 @@
|
||||
/**
|
||||
* 这里是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 .content.data-v-eca06f3c .imgstyle {
|
||||
max-width: 100% !important;
|
||||
}
|
||||
.zanboxpop .zanwraper .content.data-v-eca06f3c ._block {
|
||||
text-align: left !important;
|
||||
}
|
||||
.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 .namebox.data-v-eca06f3c {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.commentcon .item .info .user .namebox.data-v-eca06f3c .u-image {
|
||||
background: none !important;
|
||||
padding-bottom: 16rpx;
|
||||
}
|
||||
.commentcon .item .info .user .namebox .selfImg.data-v-eca06f3c {
|
||||
padding-bottom: 6rpx;
|
||||
}
|
||||
.commentcon .item .info .user .namebox .name.data-v-eca06f3c {
|
||||
margin-right: 6rpx;
|
||||
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;
|
||||
margin-left: 8rpx;
|
||||
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 .left.disabled.data-v-eca06f3c .u-image__image {
|
||||
opacity: 0.5;
|
||||
}
|
||||
.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 {
|
||||
width: 100%;
|
||||
overflow-x: hidden;
|
||||
padding-bottom: 80rpx;
|
||||
}
|
||||
.desc.data-v-eca06f3c .imgstyle {
|
||||
max-width: 100%;
|
||||
position: relative;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
.desc.data-v-eca06f3c ._block {
|
||||
text-align: left !important;
|
||||
text-indent: 0px !important;
|
||||
}
|
||||
.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;
|
||||
overflow: hidden;
|
||||
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;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.box .info.data-v-eca06f3c {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 30rpx;
|
||||
font-size: 28rpx;
|
||||
color: #4b5563;
|
||||
line-height: 28rpx;
|
||||
}
|
||||
.box .info.data-v-eca06f3c .u-image {
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
+205
@@ -0,0 +1,205 @@
|
||||
"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, isLink, src) => {
|
||||
if (isLink == 1) {
|
||||
api_api.api.readRecord({
|
||||
type: 1,
|
||||
id
|
||||
}).then((res) => {
|
||||
});
|
||||
utils_navTo.navTo({
|
||||
url: `/pages/web/web?src=${src}`
|
||||
});
|
||||
} else {
|
||||
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.is_link, item.is_link_url), 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.is_link, item.is_link_url), 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 ellipsis-two-lines 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 ellipsis-two-lines 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>
|
||||
+152
@@ -0,0 +1,152 @@
|
||||
/**
|
||||
* 这里是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;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.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;
|
||||
flex-shrink: 0;
|
||||
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 - 425rpx);
|
||||
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;
|
||||
}
|
||||
+193
@@ -0,0 +1,193 @@
|
||||
"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");
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
(_easycom_up__image2 + _easycom_u_icon2 + _easycom_up_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";
|
||||
const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
|
||||
if (!Math) {
|
||||
(dNav + _easycom_up__image + _easycom_u_icon + _easycom_up_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:139", 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/search/search?doctor_id=" + id + "&doctor_name=" + name + "&from=myCase"
|
||||
});
|
||||
};
|
||||
const goHospital = (id, name) => {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/search/search?hospital_id=" + id + "&hospital_name=" + name
|
||||
});
|
||||
};
|
||||
const mySpecial = () => {
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/specialList/specialList?userId=" + userInfo.user_id + "&type=mine"
|
||||
});
|
||||
};
|
||||
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: numInfo.article_num + numInfo.video_num >= 2
|
||||
}, numInfo.article_num + numInfo.video_num >= 2 ? {
|
||||
f: common_vendor.t(numInfo.article_num),
|
||||
g: common_vendor.t(numInfo.video_num),
|
||||
h: common_vendor.t(numInfo.video_read_num + numInfo.article_read_num)
|
||||
} : {}, {
|
||||
i: numInfo.article_num + numInfo.video_num >= 2
|
||||
}, numInfo.article_num + numInfo.video_num >= 2 ? {
|
||||
j: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.myFile),
|
||||
width: "34rpx",
|
||||
height: "34rpx"
|
||||
}),
|
||||
k: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
color: "#9CA3AF",
|
||||
size: "18"
|
||||
}),
|
||||
l: common_vendor.o(($event) => goDoctor(userInfo.doctor_id, userInfo.user_name))
|
||||
} : {}, {
|
||||
m: numInfo.article_num + numInfo.video_num >= 2
|
||||
}, numInfo.article_num + numInfo.video_num >= 2 ? {
|
||||
n: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.myDownload),
|
||||
width: "42rpx",
|
||||
height: "42rpx"
|
||||
}),
|
||||
o: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
color: "#9CA3AF",
|
||||
size: "18"
|
||||
}),
|
||||
p: common_vendor.o(goCert)
|
||||
} : {}, {
|
||||
q: hospitalInfo.video_num + hospitalInfo.article_num >= 2
|
||||
}, hospitalInfo.video_num + hospitalInfo.article_num >= 2 ? {
|
||||
r: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.myHospital),
|
||||
width: "39rpx",
|
||||
height: "39rpx"
|
||||
}),
|
||||
s: common_vendor.t(userInfo.hospital_name),
|
||||
t: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
color: "#9CA3AF",
|
||||
size: "18"
|
||||
}),
|
||||
v: common_vendor.o(($event) => goHospital(userInfo.hospital_id, userInfo.hospital_name))
|
||||
} : {}, {
|
||||
w: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.myTalk),
|
||||
width: "39rpx",
|
||||
height: "39rpx"
|
||||
}),
|
||||
x: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
color: "#9CA3AF",
|
||||
size: "18"
|
||||
}),
|
||||
y: common_vendor.o(mySpecial),
|
||||
z: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.myJoin),
|
||||
width: "39rpx",
|
||||
height: "39rpx"
|
||||
}),
|
||||
A: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
color: "#9CA3AF",
|
||||
size: "18"
|
||||
}),
|
||||
B: common_vendor.o(goJoin),
|
||||
C: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.myCollect),
|
||||
width: "39rpx",
|
||||
height: "39rpx"
|
||||
}),
|
||||
D: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
color: "#9CA3AF",
|
||||
size: "18"
|
||||
}),
|
||||
E: common_vendor.o(goCollect),
|
||||
F: common_vendor.p({
|
||||
name: "plus",
|
||||
color: "#fff",
|
||||
size: "18"
|
||||
}),
|
||||
G: 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
|
||||
+10
@@ -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",
|
||||
"up-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 wx:if="{{e}}" class="databox data-v-2f1ef635"><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 class="cell data-v-2f1ef635"><view class="num data-v-2f1ef635">{{h}}</view><view class="name data-v-2f1ef635">阅读量</view></view></view><view class="listbox data-v-2f1ef635"><view wx:if="{{i}}" class="cell data-v-2f1ef635" bindtap="{{l}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{j}}" class="data-v-2f1ef635" u-i="2f1ef635-2" bind:__l="__l" u-p="{{j}}"></up--image><view class="title data-v-2f1ef635">我的病例库</view></view><u-icon wx:if="{{k}}" class="data-v-2f1ef635" u-i="2f1ef635-3" bind:__l="__l" u-p="{{k}}"></u-icon></view><view wx:if="{{m}}" class="cell data-v-2f1ef635" bindtap="{{p}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{n}}" class="data-v-2f1ef635" u-i="2f1ef635-4" bind:__l="__l" u-p="{{n}}"></up--image><view class="title data-v-2f1ef635">临床病例库收录证书下载</view></view><u-icon wx:if="{{o}}" class="data-v-2f1ef635" u-i="2f1ef635-5" bind:__l="__l" u-p="{{o}}"></u-icon></view><view wx:if="{{q}}" class="cell data-v-2f1ef635" bindtap="{{v}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{r}}" class="data-v-2f1ef635" u-i="2f1ef635-6" bind:__l="__l" u-p="{{r}}"></up--image><view class="title data-v-2f1ef635">{{s}}临床病例库</view></view><u-icon wx:if="{{t}}" class="data-v-2f1ef635" u-i="2f1ef635-7" bind:__l="__l" u-p="{{t}}"></u-icon></view><view class="cell data-v-2f1ef635" bindtap="{{y}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{w}}" class="data-v-2f1ef635" u-i="2f1ef635-8" bind:__l="__l" u-p="{{w}}"></up--image><view class="title data-v-2f1ef635">我的病例交流</view></view><u-icon wx:if="{{x}}" class="data-v-2f1ef635" u-i="2f1ef635-9" bind:__l="__l" u-p="{{x}}"></u-icon></view><view class="cell data-v-2f1ef635" bindtap="{{B}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{z}}" class="data-v-2f1ef635" u-i="2f1ef635-10" bind:__l="__l" u-p="{{z}}"></up--image><view class="title data-v-2f1ef635">我的参与互动</view></view><u-icon wx:if="{{A}}" class="data-v-2f1ef635" u-i="2f1ef635-11" bind:__l="__l" u-p="{{A}}"></u-icon></view><view class="cell data-v-2f1ef635" bindtap="{{E}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{C}}" class="data-v-2f1ef635" u-i="2f1ef635-12" bind:__l="__l" u-p="{{C}}"></up--image><view class="title data-v-2f1ef635">浏览与收藏</view></view><u-icon wx:if="{{D}}" class="data-v-2f1ef635" u-i="2f1ef635-13" bind:__l="__l" u-p="{{D}}"></u-icon></view></view></view><view class="publish data-v-2f1ef635" bindtap="{{G}}"><up-icon wx:if="{{F}}" class="data-v-2f1ef635" u-i="2f1ef635-14" bind:__l="__l" u-p="{{F}}"></up-icon></view></view>
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
/**
|
||||
* 这里是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.data-v-2f1ef635 .u-image {
|
||||
margin-top: 9rpx;
|
||||
background: none !important;
|
||||
}
|
||||
.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,223 @@
|
||||
"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("");
|
||||
common_vendor.ref(true);
|
||||
const isSearch = common_vendor.ref(false);
|
||||
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;
|
||||
}
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
var _a;
|
||||
(_a = paging.value) == null ? void 0 : _a.refresh();
|
||||
});
|
||||
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:135", type1.value);
|
||||
common_vendor.index.__f__("log", "at pages/myCollect/myCollect.vue:136", id);
|
||||
let type = "article";
|
||||
if (type2.value == 1) {
|
||||
type = "article";
|
||||
} else if (type2.value == 2) {
|
||||
type = "video";
|
||||
} else if (type2.value == 3) {
|
||||
type = "exchange";
|
||||
}
|
||||
utils_navTo.navTo({
|
||||
url: `/pages/detail/detail?id=${id}&type=${type}`
|
||||
});
|
||||
};
|
||||
const changeWord = (val) => {
|
||||
isSearch.value = true;
|
||||
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 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(total.value),
|
||||
e: keyWord.value
|
||||
}, keyWord.value ? {
|
||||
f: common_vendor.t(keyWord.value)
|
||||
} : {}) : {}, {
|
||||
g: common_vendor.o(changetype1),
|
||||
h: common_vendor.o(($event) => type1.value = $event),
|
||||
i: common_vendor.p({
|
||||
title: type1.value == 0 ? "收藏" : "浏览",
|
||||
options: options.value,
|
||||
modelValue: type1.value
|
||||
}),
|
||||
j: common_vendor.o(changetype2),
|
||||
k: common_vendor.o(($event) => type2.value = $event),
|
||||
l: common_vendor.p({
|
||||
title: title2.value,
|
||||
options: options1.value,
|
||||
modelValue: type2.value
|
||||
}),
|
||||
m: common_vendor.sr(uDropdownRef, "1cf734f5-2,1cf734f5-0", {
|
||||
"k": "uDropdownRef"
|
||||
}),
|
||||
n: 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.data.id), item.collect_id),
|
||||
j: item.collect_id
|
||||
};
|
||||
}),
|
||||
o: common_vendor.p({
|
||||
name: "eye",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
p: common_vendor.p({
|
||||
name: "heart",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
q: common_vendor.p({
|
||||
name: "clock",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
r: common_vendor.sr(paging, "1cf734f5-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
s: common_vendor.o(queryList),
|
||||
t: common_vendor.o(($event) => dataList.value = $event),
|
||||
v: 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="{{v}}" class="r data-v-1cf734f5" u-s="{{['top','d']}}" u-r="paging" bindquery="{{s}}" u-i="1cf734f5-0" bind:__l="__l" bindupdateModelValue="{{t}}" u-p="{{v}}"><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 wx:if="{{c}}" class="detail data-v-1cf734f5"><view class="desc data-v-1cf734f5">检索到:<text class="red data-v-1cf734f5">{{d}}篇</text></view><view wx:if="{{e}}" class="desc data-v-1cf734f5">检索词:<text class="red data-v-1cf734f5">{{f}}</text></view></view><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="{{i}}" class="data-v-1cf734f5" bindchange="{{g}}" u-i="1cf734f5-3,1cf734f5-2" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"></up-dropdown-item><up-dropdown-item wx:if="{{l}}" class="data-v-1cf734f5" bindchange="{{j}}" u-i="1cf734f5-4,1cf734f5-2" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"></up-dropdown-item></up-dropdown></view></view><view wx:for="{{n}}" wx:for-item="item" wx:key="j" class="item data-v-1cf734f5" bindtap="{{item.i}}"><view class="title ellipsis-two-lines 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="{{o}}" class="data-v-1cf734f5" u-i="{{item.c}}" bind:__l="__l" u-p="{{o}}"></up-icon><view class="num data-v-1cf734f5">{{item.d}}</view></view><view class="collect data-v-1cf734f5"><up-icon wx:if="{{p}}" class="data-v-1cf734f5" u-i="{{item.e}}" bind:__l="__l" u-p="{{p}}"></up-icon><view class="num data-v-1cf734f5">{{item.f}}</view></view></view><view class="time data-v-1cf734f5"><up-icon wx:if="{{q}}" class="data-v-1cf734f5" u-i="{{item.g}}" bind:__l="__l" u-p="{{q}}"></up-icon><view class="num data-v-1cf734f5">{{item.h}}</view></view></view></view></z-paging></view>
|
||||
@@ -0,0 +1,152 @@
|
||||
/**
|
||||
* 这里是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: 0rpx;
|
||||
}
|
||||
.u-page.data-v-1cf734f5 .u-dropdown__menu__item {
|
||||
height: 74rpx;
|
||||
padding: 0 20rpx;
|
||||
background: #F3F4F6;
|
||||
border-radius: 15rpx;
|
||||
flex: none;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
.u-page.data-v-1cf734f5 .u-dropdown__menu__item__text {
|
||||
font-size: 14px !important;
|
||||
color: #3CC7C0 !important;
|
||||
}
|
||||
.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;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
+247
@@ -0,0 +1,247 @@
|
||||
"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) => {
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
var _a;
|
||||
(_a = paging.value) == null ? void 0 : _a.refresh();
|
||||
});
|
||||
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,315 @@
|
||||
/**
|
||||
* 这里是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;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.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,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;
|
||||
}
|
||||
+628
@@ -0,0 +1,628 @@
|
||||
"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_radio2 = common_vendor.resolveComponent("up-radio");
|
||||
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
|
||||
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_u_icon2 = common_vendor.resolveComponent("u-icon");
|
||||
const _easycom_up_steps_item2 = common_vendor.resolveComponent("up-steps-item");
|
||||
const _easycom_up_steps2 = common_vendor.resolveComponent("up-steps");
|
||||
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
|
||||
(_easycom_up__image2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up_icon2 + _easycom_z_paging2 + _easycom_u_icon2 + _easycom_up_steps_item2 + _easycom_up_steps2 + _easycom_up_popup2)();
|
||||
}
|
||||
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.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_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_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
|
||||
const _easycom_up_steps_item = () => "../../node-modules/uview-plus/components/u-steps-item/u-steps-item.js";
|
||||
const _easycom_up_steps = () => "../../node-modules/uview-plus/components/u-steps/u-steps.js";
|
||||
const _easycom_up_popup = () => "../../node-modules/uview-plus/components/u-popup/u-popup.js";
|
||||
if (!Math) {
|
||||
(navBarSearch + _easycom_up__image + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_dropdown_item + _easycom_up_dropdown + _easycom_up_icon + _easycom_z_paging + _easycom_u_icon + _easycom_up_steps_item + _easycom_up_steps + _easycom_up_popup)();
|
||||
}
|
||||
const navBarSearch = () => "../../components/navBarSearch/navBarSearch.js";
|
||||
const _sfc_main = {
|
||||
__name: "search",
|
||||
setup(__props) {
|
||||
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 freshKey = common_vendor.ref(0);
|
||||
const navType = common_vendor.ref("");
|
||||
const navName = common_vendor.ref("肝胆相照临床病例库");
|
||||
const paging = common_vendor.ref(null);
|
||||
const hideType = common_vendor.ref(false);
|
||||
const dropTitle = common_vendor.ref("发布时间");
|
||||
const orderFilter = common_vendor.ref("1");
|
||||
const uDropdownRef = common_vendor.ref(null);
|
||||
const isCase = common_vendor.ref(false);
|
||||
const options = common_vendor.ref([
|
||||
{
|
||||
label: "发布时间",
|
||||
value: "1"
|
||||
},
|
||||
{
|
||||
label: "阅读次数",
|
||||
value: "2"
|
||||
}
|
||||
]);
|
||||
const isSearch = common_vendor.ref(false);
|
||||
const order = common_vendor.reactive({
|
||||
read_num: "",
|
||||
push_date: "desc"
|
||||
});
|
||||
const showCase = common_vendor.ref(false);
|
||||
const canOpenCase = common_vendor.ref(false);
|
||||
const caseValue1 = common_vendor.reactive({
|
||||
value: "",
|
||||
name: ""
|
||||
});
|
||||
const caseValue2 = common_vendor.reactive({
|
||||
value: "",
|
||||
name: ""
|
||||
});
|
||||
const caseValue3 = common_vendor.reactive({
|
||||
value: "",
|
||||
name: ""
|
||||
});
|
||||
const level = common_vendor.ref(1);
|
||||
const labelObj = common_vendor.reactive({
|
||||
list1: [],
|
||||
list2: [],
|
||||
list3: []
|
||||
});
|
||||
const openCaseLevel = (lev) => {
|
||||
freshKey.value++;
|
||||
level.value = lev;
|
||||
if (lev == 1) {
|
||||
caseValue2.name = "";
|
||||
caseValue2.value = "";
|
||||
labelObj.list2 = [];
|
||||
} else if (lev == 2) {
|
||||
labelObj.list3 = [];
|
||||
caseValue3.name = "";
|
||||
caseValue3.value = "";
|
||||
}
|
||||
};
|
||||
const groupChange1 = (e) => {
|
||||
caseValue1.value = e;
|
||||
for (var i = 0; i < labelObj.list1.length; i++) {
|
||||
if (labelObj.list1[i].app_iden == caseValue1.value) {
|
||||
caseValue1.name = labelObj.list1[i].label_name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
getCaseLabel(2, e);
|
||||
};
|
||||
const groupChange2 = (e) => {
|
||||
caseValue2.value = e;
|
||||
for (var i = 0; i < labelObj.list2.length; i++) {
|
||||
if (labelObj.list2[i].app_iden == caseValue2.value) {
|
||||
caseValue2.name = labelObj.list2[i].label_name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
getCaseLabel(3, e);
|
||||
};
|
||||
const groupChange3 = (e) => {
|
||||
caseValue3.value = e;
|
||||
level.value = 3;
|
||||
for (var i = 0; i < labelObj.list3.length; i++) {
|
||||
if (labelObj.list3[i].app_iden == caseValue3.value) {
|
||||
caseValue3.name = labelObj.list3[i].label_name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
const getCaseLabel = (lev, pid = 0) => {
|
||||
api_api.api.getCaseLabel({
|
||||
pId: pid
|
||||
}).then((res) => {
|
||||
level.value = lev;
|
||||
if (lev == 1) {
|
||||
labelObj.list1 = res.data.data;
|
||||
} else if (lev == 2) {
|
||||
labelObj.list2 = res.data.data;
|
||||
if (res.data.data.length == 0) {
|
||||
level.value = 1;
|
||||
}
|
||||
} else if (lev == 3) {
|
||||
labelObj.list3 = res.data.data;
|
||||
if (res.data.data.length == 0) {
|
||||
level.value = 2;
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
const openCase = () => {
|
||||
showCase.value = true;
|
||||
};
|
||||
const confirmCase = () => {
|
||||
if (level.value == 1 && caseValue1.value == "") {
|
||||
common_vendor.index.showToast({ title: "请选择疾病选项", icon: "none" });
|
||||
return false;
|
||||
}
|
||||
if (level.value == 1) {
|
||||
label_iden.value = caseValue1.value;
|
||||
}
|
||||
if (level.value == 2) {
|
||||
if (!caseValue2.value) {
|
||||
label_iden.value = caseValue1.value;
|
||||
} else {
|
||||
label_iden.value = caseValue2.value;
|
||||
}
|
||||
}
|
||||
if (level.value == 3) {
|
||||
if (!caseValue3.value) {
|
||||
label_iden.value = caseValue2.value;
|
||||
} else {
|
||||
label_iden.value = caseValue3.value;
|
||||
}
|
||||
}
|
||||
paging.value.reload();
|
||||
showCase.value = false;
|
||||
};
|
||||
const closeCase = () => {
|
||||
showCase.value = false;
|
||||
};
|
||||
const changeWord = (value) => {
|
||||
keyWord.value = value;
|
||||
isSearch.value = true;
|
||||
paging.value.reload();
|
||||
};
|
||||
common_vendor.onLoad((options2) => {
|
||||
if (options2.from == "home") {
|
||||
isSearch.value = true;
|
||||
} else if (options2.from == "myCase") {
|
||||
navType.value = "myCase";
|
||||
}
|
||||
if (options2.keyWord) {
|
||||
keyWord.value = options2.keyWord;
|
||||
}
|
||||
if (options2.order == "new") {
|
||||
order.push_date = "desc";
|
||||
hideType.value = true;
|
||||
navName.value = "文章临床病例库";
|
||||
}
|
||||
if (options2.order == "read") {
|
||||
order.push_date = "desc";
|
||||
hideType.value = true;
|
||||
navName.value = "文章临床病例库";
|
||||
}
|
||||
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;
|
||||
}
|
||||
getCaseLabel(1, 0);
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
var _a;
|
||||
(_a = paging.value) == null ? void 0 : _a.refresh();
|
||||
});
|
||||
const changeDate = (e) => {
|
||||
if (e == 1) {
|
||||
order.push_date = "desc";
|
||||
order.read_num = "";
|
||||
dropTitle.value = "发布时间";
|
||||
} else {
|
||||
order.push_date = "";
|
||||
order.read_num = "desc";
|
||||
dropTitle.value = "阅读次数";
|
||||
}
|
||||
orderFilter.value = e;
|
||||
uDropdownRef.value.close();
|
||||
paging.value.reload();
|
||||
};
|
||||
const formatdate = (date) => {
|
||||
return common_vendor.dayjs(date).format("YYYY-MM-DD");
|
||||
};
|
||||
const goDetail = (id, isLink, src) => {
|
||||
common_vendor.index.__f__("log", "at pages/search/search.vue:475", isLink);
|
||||
if (isLink == 1) {
|
||||
api_api.api.readRecord({
|
||||
type: isArticle.value ? 1 : 2,
|
||||
id
|
||||
}).then((res) => {
|
||||
});
|
||||
utils_navTo.navTo({
|
||||
url: `/pages/web/web?src=${src}`
|
||||
});
|
||||
} else {
|
||||
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 = [];
|
||||
paging.value.reload();
|
||||
};
|
||||
const searchArticle = (params) => {
|
||||
let searchForm = {
|
||||
keyword: keyWord.value,
|
||||
hospital_id: hospital_id.value,
|
||||
doctor_id: doctor_id.value,
|
||||
label_iden: label_iden.value
|
||||
};
|
||||
if (label_iden.value === "") {
|
||||
delete searchForm.label_iden;
|
||||
}
|
||||
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,
|
||||
label_iden: label_iden.value
|
||||
};
|
||||
if (label_iden.value === "") {
|
||||
delete searchForm.label_iden;
|
||||
}
|
||||
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:629", 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: navType.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_num),
|
||||
e: common_vendor.t(numInfo.video_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: !hideType.value
|
||||
}, !hideType.value ? {
|
||||
j: common_vendor.t(searchInfo.search_video_num)
|
||||
} : {}, {
|
||||
k: keyWord.value
|
||||
}, keyWord.value ? {
|
||||
l: common_vendor.t(keyWord.value)
|
||||
} : {}) : {}, {
|
||||
m: !hideType.value && !isCase.value
|
||||
}, !hideType.value && !isCase.value ? {
|
||||
n: common_vendor.t(!isArticle.value ? "视频" : "文章"),
|
||||
o: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.switchImg),
|
||||
width: "31rpx",
|
||||
height: "31rpx"
|
||||
}),
|
||||
p: common_vendor.o(swicthType)
|
||||
} : {}, {
|
||||
q: canOpenCase.value
|
||||
}, canOpenCase.value ? {
|
||||
r: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.caseImg),
|
||||
width: "31rpx",
|
||||
height: "31rpx"
|
||||
}),
|
||||
s: label_iden.value ? 1 : "",
|
||||
t: common_vendor.o(openCase)
|
||||
} : {}, {
|
||||
v: common_vendor.f(options.value, (item, k0, i0) => {
|
||||
return {
|
||||
a: "c10c040c-7-" + i0 + ",c10c040c-6",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0",
|
||||
label: item.label,
|
||||
name: item.value
|
||||
}),
|
||||
c: item.value,
|
||||
d: common_vendor.n(orderFilter.value == item.value ? "active" : "")
|
||||
};
|
||||
}),
|
||||
w: common_vendor.o(changeDate),
|
||||
x: common_vendor.o(($event) => orderFilter.value = $event),
|
||||
y: common_vendor.p({
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: orderFilter.value
|
||||
}),
|
||||
z: common_vendor.p({
|
||||
title: dropTitle.value
|
||||
}),
|
||||
A: common_vendor.sr(uDropdownRef, "c10c040c-4,c10c040c-0", {
|
||||
"k": "uDropdownRef"
|
||||
}),
|
||||
B: canOpenCase.value ? 1 : "",
|
||||
C: hideType.value ? 1 : "",
|
||||
D: isCase.value ? 1 : "",
|
||||
E: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
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-8-" + i0 + ",c10c040c-0",
|
||||
d: common_vendor.t(item.read_num),
|
||||
e: item.collect_num > 0
|
||||
}, item.collect_num > 0 ? {
|
||||
f: "c10c040c-9-" + i0 + ",c10c040c-0",
|
||||
g: common_vendor.p({
|
||||
name: "heart",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
h: common_vendor.t(item.collect_num)
|
||||
} : {}, {
|
||||
i: "c10c040c-10-" + i0 + ",c10c040c-0",
|
||||
j: common_vendor.t(formatdate(item.push_date)),
|
||||
k: index,
|
||||
l: common_vendor.o(($event) => isArticle.value ? goDetail(item.article_id, item.is_link, item.is_link_url) : goDetail(item.video_id, item.is_link, item.is_link_url), index)
|
||||
});
|
||||
}),
|
||||
F: common_vendor.p({
|
||||
name: "eye",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
G: common_vendor.p({
|
||||
name: "clock",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
H: common_vendor.sr(paging, "c10c040c-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
I: common_vendor.o(queryList),
|
||||
J: common_vendor.o(($event) => dataList.value = $event),
|
||||
K: common_vendor.p({
|
||||
["inside-more"]: true,
|
||||
["loading-more-no-more-text"]: "咱也是有底线的!",
|
||||
["auto-show-back-to-top"]: true,
|
||||
modelValue: dataList.value
|
||||
}),
|
||||
L: common_vendor.o(closeCase),
|
||||
M: common_vendor.o(confirmCase),
|
||||
N: common_vendor.t(!caseValue1.name ? "请选择选项" : caseValue1.name),
|
||||
O: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
P: common_vendor.o(($event) => openCaseLevel("1")),
|
||||
Q: caseValue1.name && labelObj.list2.length > 0
|
||||
}, caseValue1.name && labelObj.list2.length > 0 ? {
|
||||
R: common_vendor.t(!caseValue2.name ? "请选择选项" : caseValue2.name),
|
||||
S: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
T: common_vendor.o(($event) => openCaseLevel("2"))
|
||||
} : {}, {
|
||||
U: caseValue2.name && labelObj.list3.length > 0
|
||||
}, caseValue2.name && labelObj.list3.length > 0 ? {
|
||||
V: common_vendor.t(!caseValue3.name ? "请选择选项" : caseValue3.name),
|
||||
W: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
X: common_vendor.o(($event) => openCaseLevel("3"))
|
||||
} : {}, {
|
||||
Y: freshKey.value,
|
||||
Z: common_vendor.p({
|
||||
current: level.value - 1,
|
||||
direction: "column"
|
||||
}),
|
||||
aa: common_vendor.f(labelObj.list1, (item, k0, i0) => {
|
||||
return {
|
||||
a: "c10c040c-20-" + i0 + ",c10c040c-19",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
name: item.app_iden
|
||||
}),
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
ab: common_vendor.o(groupChange1),
|
||||
ac: common_vendor.o(($event) => caseValue1.value = $event),
|
||||
ad: common_vendor.p({
|
||||
name: "group1",
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue1.value
|
||||
}),
|
||||
ae: level.value == 1,
|
||||
af: common_vendor.f(labelObj.list2, (item, k0, i0) => {
|
||||
return {
|
||||
a: "c10c040c-22-" + i0 + ",c10c040c-21",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
name: item.app_iden
|
||||
}),
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
ag: common_vendor.o(groupChange2),
|
||||
ah: common_vendor.o(($event) => caseValue2.value = $event),
|
||||
ai: common_vendor.p({
|
||||
name: "group2",
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue2.value
|
||||
}),
|
||||
aj: level.value == 2,
|
||||
ak: common_vendor.f(labelObj.list3, (item, k0, i0) => {
|
||||
return {
|
||||
a: "c10c040c-24-" + i0 + ",c10c040c-23",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
name: item.app_iden
|
||||
}),
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
al: common_vendor.o(groupChange3),
|
||||
am: common_vendor.o(($event) => caseValue3.value = $event),
|
||||
an: common_vendor.p({
|
||||
name: "group3",
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue3.value
|
||||
}),
|
||||
ao: level.value == 3,
|
||||
ap: common_vendor.o(closeCase),
|
||||
aq: common_vendor.p({
|
||||
round: 10,
|
||||
zIndex: "9",
|
||||
closeOnClickOverlay: false,
|
||||
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,18 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
|
||||
"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-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",
|
||||
"u-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
|
||||
"up-steps-item": "../../node-modules/uview-plus/components/u-steps-item/u-steps-item",
|
||||
"up-steps": "../../node-modules/uview-plus/components/u-steps/u-steps",
|
||||
"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,384 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.dropcontent.data-v-c10c040c {
|
||||
padding-top: 40rpx;
|
||||
padding-bottom: 20rpx;
|
||||
background-color: #fff;
|
||||
}
|
||||
.dropcontent.data-v-c10c040c .u-radio {
|
||||
margin-bottom: 6px !important;
|
||||
margin-top: 16px !important;
|
||||
}
|
||||
.dropcontent .column.data-v-c10c040c {
|
||||
padding: 0 30rpx;
|
||||
border-top: 2rpx solid #e5e7eb;
|
||||
}
|
||||
.dropcontent .column.data-v-c10c040c .u-radio__text {
|
||||
color: #333 !important;
|
||||
}
|
||||
.dropcontent .column.active.data-v-c10c040c .u-radio__text {
|
||||
color: #3CC7C0 !important;
|
||||
}
|
||||
.stepbox.data-v-c10c040c {
|
||||
padding: 15rpx 30rpx;
|
||||
border-bottom: 2rpx dotted #f3f4f6;
|
||||
}
|
||||
.stepbox.data-v-c10c040c .u-steps-item__content {
|
||||
margin-top: -5rpx !important;
|
||||
}
|
||||
.stepbox .slot-content.data-v-c10c040c {
|
||||
width: 100%;
|
||||
margin-bottom: 25rpx;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
}
|
||||
.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;
|
||||
max-height: calc(100vh - 800rpx);
|
||||
overflow-y: scroll;
|
||||
padding-top: 22rpx;
|
||||
padding-bottom: 20rpx;
|
||||
min-height: 350rpx;
|
||||
}
|
||||
.casecon.data-v-c10c040c .u-radio {
|
||||
margin-bottom: 10px !important;
|
||||
margin-top: 0px !important;
|
||||
}
|
||||
.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: 150rpx;
|
||||
}
|
||||
.filterbox.data-v-c10c040c .u-dropdown__menu__item__text {
|
||||
font-size: 14px !important;
|
||||
color: #3CC7C0 !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;
|
||||
}
|
||||
.filterbox.on .casesdown.data-v-c10c040c {
|
||||
left: 30rpx;
|
||||
}
|
||||
.filterbox.on.data-v-c10c040c .u-dropdown__menu {
|
||||
background: #fff;
|
||||
z-index: 1;
|
||||
margin-left: 170rpx;
|
||||
}
|
||||
.filterbox.isCase.data-v-c10c040c .u-dropdown__menu {
|
||||
background: #fff;
|
||||
z-index: 1;
|
||||
margin-left: -30rpx;
|
||||
}
|
||||
.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;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.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,280 @@
|
||||
"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_radio2 = common_vendor.resolveComponent("up-radio");
|
||||
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
|
||||
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_radio2 + _easycom_up_radio_group2 + _easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up__image2 + _easycom_z_paging2)();
|
||||
}
|
||||
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_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_radio + _easycom_up_radio_group + _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 orderFilter = common_vendor.ref("1");
|
||||
const dropTitle = common_vendor.ref("更新时间");
|
||||
const option = common_vendor.ref([
|
||||
{
|
||||
label: "更新时间",
|
||||
value: "1"
|
||||
},
|
||||
{
|
||||
label: "医生名称",
|
||||
value: "2"
|
||||
},
|
||||
{
|
||||
label: "病例数",
|
||||
value: "3"
|
||||
}
|
||||
]);
|
||||
const order = common_vendor.reactive({
|
||||
push_date: "desc"
|
||||
});
|
||||
common_vendor.onLoad((options) => {
|
||||
if (options.type == "hospital") {
|
||||
type.value = "hospital";
|
||||
option.value[1].label = "医院名称";
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/searchList/searchList.vue:142", type.value);
|
||||
keyWord.value = options.name;
|
||||
if (options.name) {
|
||||
navName.value = options.name + "临床病例库";
|
||||
}
|
||||
if ((options.name = "医生") && !options.id) {
|
||||
keyWord.value = "";
|
||||
}
|
||||
if (options.order == "new") {
|
||||
order.push_date = "asc";
|
||||
}
|
||||
if (options.order == "read") {
|
||||
order.read_num = "desc";
|
||||
}
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
var _a;
|
||||
(_a = paging.value) == null ? void 0 : _a.refresh();
|
||||
});
|
||||
const change = (e) => {
|
||||
if (e == 1) {
|
||||
order.push_date = "desc";
|
||||
if (type.value == "hospital") {
|
||||
order.hospital_name = "";
|
||||
} else {
|
||||
order.doctor_name = "";
|
||||
}
|
||||
order.article_num = "";
|
||||
dropTitle.value = "更新时间";
|
||||
} else if (e == 2) {
|
||||
order.push_date = "";
|
||||
order.article_num = "";
|
||||
if (type.value == "hospital") {
|
||||
order.hospital_name = "asc";
|
||||
dropTitle.value = "医院名称";
|
||||
} else {
|
||||
order.doctor_name = "asc";
|
||||
dropTitle.value = "医生名称";
|
||||
}
|
||||
} else if (e == 3) {
|
||||
order.push_date = "";
|
||||
if (type.value == "hospital") {
|
||||
order.hospital_name = "";
|
||||
} else {
|
||||
order.doctor_name = "";
|
||||
}
|
||||
order.article_num = "desc";
|
||||
dropTitle.value = "病例数";
|
||||
}
|
||||
orderFilter.value = e;
|
||||
uDropdownRef.value.close();
|
||||
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.push_date) {
|
||||
delete order.push_date;
|
||||
}
|
||||
if (!order.article_num) {
|
||||
delete order.article_num;
|
||||
}
|
||||
if (!order.hospital_name) {
|
||||
delete order.hospital_name;
|
||||
}
|
||||
if (order.push_date || order.article_num || order.hospital_name) {
|
||||
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.push_date) {
|
||||
delete order.push_date;
|
||||
}
|
||||
if (!order.article_num) {
|
||||
delete order.article_num;
|
||||
}
|
||||
if (!order.doctor_name) {
|
||||
delete order.doctor_name;
|
||||
}
|
||||
if (order.push_date || order.article_num || order.doctor_name) {
|
||||
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:331", value);
|
||||
if (type.value == "hospital") {
|
||||
navName.value = "医院临床病例库";
|
||||
order.hospital_name = "";
|
||||
} else {
|
||||
navName.value = "医生临床病例库";
|
||||
order.doctor_name = "";
|
||||
}
|
||||
keyWord.value = value;
|
||||
dataList.value = [];
|
||||
order.push_date = "desc";
|
||||
order.article_num = "";
|
||||
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.f(option.value, (item, k0, i0) => {
|
||||
return {
|
||||
a: "5d2f7987-5-" + i0 + ",5d2f7987-4",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0",
|
||||
label: item.label,
|
||||
name: item.value
|
||||
}),
|
||||
c: item.value,
|
||||
d: common_vendor.n(orderFilter.value == item.value ? "active" : "")
|
||||
};
|
||||
}),
|
||||
d: common_vendor.o(change),
|
||||
e: common_vendor.o(($event) => orderFilter.value = $event),
|
||||
f: common_vendor.p({
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: orderFilter.value
|
||||
}),
|
||||
g: common_vendor.p({
|
||||
title: dropTitle.value
|
||||
}),
|
||||
h: common_vendor.sr(uDropdownRef, "5d2f7987-2,5d2f7987-0", {
|
||||
"k": "uDropdownRef"
|
||||
}),
|
||||
i: 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-6-" + 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)
|
||||
});
|
||||
}),
|
||||
j: type.value == "hospital",
|
||||
k: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.arrowrightImg),
|
||||
width: "32rpx",
|
||||
height: "32rpx"
|
||||
}),
|
||||
l: common_vendor.sr(paging, "5d2f7987-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-5d2f7987"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/searchList/searchList.js.map
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"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-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="{{o}}" class="r data-v-5d2f7987" u-s="{{['top','d']}}" u-r="paging" bindquery="{{m}}" u-i="5d2f7987-0" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o}}"><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="{{g}}" class="data-v-5d2f7987" u-s="{{['d']}}" u-i="5d2f7987-3,5d2f7987-2" bind:__l="__l" u-p="{{g}}"><view class="dropcontent data-v-5d2f7987"><up-radio-group wx:if="{{f}}" class="data-v-5d2f7987" u-s="{{['d']}}" bindchange="{{d}}" u-i="5d2f7987-4,5d2f7987-3" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" class="{{['column', 'data-v-5d2f7987', item.d]}}"><up-radio wx:if="{{item.b}}" class="data-v-5d2f7987" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-radio></view></up-radio-group></view></up-dropdown-item></up-dropdown></view></view><view class="listbox data-v-5d2f7987"><view wx:for="{{i}}" wx:for-item="item" wx:key="h" class="item data-v-5d2f7987" bindtap="{{item.i}}"><view wx:if="{{j}}" 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="{{k}}" class="data-v-5d2f7987" u-i="{{item.f}}" bind:__l="__l" u-p="{{k}}"></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,192 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.dropcontent.data-v-5d2f7987 {
|
||||
padding-top: 40rpx;
|
||||
padding-bottom: 20rpx;
|
||||
background-color: #fff;
|
||||
}
|
||||
.dropcontent.data-v-5d2f7987 .u-radio {
|
||||
margin-bottom: 6px !important;
|
||||
margin-top: 16px !important;
|
||||
}
|
||||
.dropcontent .column.data-v-5d2f7987 {
|
||||
padding: 0 30rpx;
|
||||
border-top: 2rpx solid #e5e7eb;
|
||||
}
|
||||
.dropcontent .column.data-v-5d2f7987 .u-radio__text {
|
||||
color: #333 !important;
|
||||
}
|
||||
.dropcontent .column.active.data-v-5d2f7987 .u-radio__text {
|
||||
color: #3CC7C0 !important;
|
||||
}
|
||||
.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;
|
||||
color: #3CC7C0 !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;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.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,215 @@
|
||||
"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_radio2 = common_vendor.resolveComponent("up-radio");
|
||||
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
|
||||
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_radio2 + _easycom_up_radio_group2 + _easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up__image2 + _easycom_z_paging2)();
|
||||
}
|
||||
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_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_radio + _easycom_up_radio_group + _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 dropTitle = common_vendor.ref("更新时间");
|
||||
const navName = common_vendor.ref("疾病临床病例库");
|
||||
const orderFilter = common_vendor.ref("1");
|
||||
const options = common_vendor.ref([
|
||||
{
|
||||
label: "更新时间",
|
||||
value: "1"
|
||||
},
|
||||
{
|
||||
label: "疾病名称",
|
||||
value: "2"
|
||||
},
|
||||
{
|
||||
label: "病例数",
|
||||
value: "3"
|
||||
}
|
||||
]);
|
||||
const order = common_vendor.reactive({
|
||||
updated_at: "desc"
|
||||
});
|
||||
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";
|
||||
}
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
var _a;
|
||||
(_a = paging.value) == null ? void 0 : _a.refresh();
|
||||
});
|
||||
const changeDate = (e) => {
|
||||
if (e == 1) {
|
||||
order.updated_at = "desc";
|
||||
order.label_name = "";
|
||||
order.article_num = "";
|
||||
dropTitle.value = "更新时间";
|
||||
} else if (e == 2) {
|
||||
order.updated_at = "";
|
||||
order.label_name = "asc";
|
||||
order.article_num = "";
|
||||
dropTitle.value = "疾病名称";
|
||||
} else if (e == 3) {
|
||||
order.updated_at = "";
|
||||
order.label_name = "";
|
||||
order.article_num = "desc";
|
||||
dropTitle.value = "病例数";
|
||||
}
|
||||
orderFilter.value = e;
|
||||
uDropdownRef.value.close();
|
||||
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.updated_at) {
|
||||
delete order.updated_at;
|
||||
}
|
||||
if (!order.label_name) {
|
||||
delete order.label_name;
|
||||
}
|
||||
if (order.article_num || order.updated_at || order.label_name) {
|
||||
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) => {
|
||||
navName.value = "疾病临床病例库";
|
||||
keyWord.value = value;
|
||||
dataList.value = [];
|
||||
order.updated_at = "desc";
|
||||
order.article_num = "";
|
||||
order.label_name = "";
|
||||
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.f(options.value, (item, k0, i0) => {
|
||||
return {
|
||||
a: "55f9e2cf-5-" + i0 + ",55f9e2cf-4",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0",
|
||||
label: item.label,
|
||||
name: item.value
|
||||
}),
|
||||
c: item.value,
|
||||
d: common_vendor.n(orderFilter.value == item.value ? "active" : "")
|
||||
};
|
||||
}),
|
||||
d: common_vendor.o(changeDate),
|
||||
e: common_vendor.o(($event) => orderFilter.value = $event),
|
||||
f: common_vendor.p({
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: orderFilter.value
|
||||
}),
|
||||
g: common_vendor.p({
|
||||
title: dropTitle.value
|
||||
}),
|
||||
h: common_vendor.sr(uDropdownRef, "55f9e2cf-2,55f9e2cf-0", {
|
||||
"k": "uDropdownRef"
|
||||
}),
|
||||
i: 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-6-" + 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)
|
||||
};
|
||||
}),
|
||||
j: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.arrowrightImg),
|
||||
width: "32rpx",
|
||||
height: "32rpx"
|
||||
}),
|
||||
k: common_vendor.sr(paging, "55f9e2cf-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
l: common_vendor.o(queryList),
|
||||
m: common_vendor.o(($event) => dataList.value = $event),
|
||||
n: 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,13 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"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-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="{{n}}" class="r data-v-55f9e2cf" u-s="{{['top','d']}}" u-r="paging" bindquery="{{l}}" u-i="55f9e2cf-0" bind:__l="__l" bindupdateModelValue="{{m}}" u-p="{{n}}"><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="{{g}}" class="data-v-55f9e2cf" u-s="{{['d']}}" u-i="55f9e2cf-3,55f9e2cf-2" bind:__l="__l" u-p="{{g}}"><view class="dropcontent data-v-55f9e2cf"><up-radio-group wx:if="{{f}}" class="data-v-55f9e2cf" u-s="{{['d']}}" bindchange="{{d}}" u-i="55f9e2cf-4,55f9e2cf-3" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" class="{{['column', 'data-v-55f9e2cf', item.d]}}"><up-radio wx:if="{{item.b}}" class="data-v-55f9e2cf" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-radio></view></up-radio-group></view></up-dropdown-item></up-dropdown></view></view><view class="listbox data-v-55f9e2cf"><view wx:for="{{i}}" 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="{{j}}" class="data-v-55f9e2cf" u-i="{{item.c}}" bind:__l="__l" u-p="{{j}}"></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,293 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.dropcontent.data-v-55f9e2cf {
|
||||
padding-top: 40rpx;
|
||||
padding-bottom: 20rpx;
|
||||
background-color: #fff;
|
||||
}
|
||||
.dropcontent.data-v-55f9e2cf .u-radio {
|
||||
margin-bottom: 6px !important;
|
||||
margin-top: 16px !important;
|
||||
}
|
||||
.dropcontent .column.data-v-55f9e2cf {
|
||||
padding: 0 30rpx;
|
||||
border-top: 2rpx solid #e5e7eb;
|
||||
}
|
||||
.dropcontent .column.data-v-55f9e2cf .u-radio__text {
|
||||
color: #333 !important;
|
||||
}
|
||||
.dropcontent .column.active.data-v-55f9e2cf .u-radio__text {
|
||||
color: #3CC7C0 !important;
|
||||
}
|
||||
.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: 0rpx;
|
||||
}
|
||||
.u-page.data-v-55f9e2cf .u-dropdown__menu__item__text {
|
||||
font-size: 14px !important;
|
||||
color: #3CC7C0 !important;
|
||||
}
|
||||
.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;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.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,613 @@
|
||||
"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__image2 = common_vendor.resolveComponent("up--image");
|
||||
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
|
||||
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
|
||||
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_u_icon2 = common_vendor.resolveComponent("u-icon");
|
||||
const _easycom_up_steps_item2 = common_vendor.resolveComponent("up-steps-item");
|
||||
const _easycom_up_steps2 = common_vendor.resolveComponent("up-steps");
|
||||
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
|
||||
const _easycom_up_overlay2 = common_vendor.resolveComponent("up-overlay");
|
||||
(_easycom_navBarSearch2 + _easycom_up__image2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up_icon2 + _easycom_z_paging2 + _easycom_u_icon2 + _easycom_up_steps_item2 + _easycom_up_steps2 + _easycom_up_popup2 + _easycom_up_overlay2)();
|
||||
}
|
||||
const _easycom_navBarSearch = () => "../../components/navBarSearch/navBarSearch.js";
|
||||
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.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_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_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
|
||||
const _easycom_up_steps_item = () => "../../node-modules/uview-plus/components/u-steps-item/u-steps-item.js";
|
||||
const _easycom_up_steps = () => "../../node-modules/uview-plus/components/u-steps/u-steps.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) {
|
||||
(_easycom_navBarSearch + _easycom_up__image + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_dropdown_item + _easycom_up_dropdown + _easycom_up_icon + _easycom_z_paging + _easycom_u_icon + _easycom_up_steps_item + _easycom_up_steps + _easycom_up_popup + _easycom_up_overlay)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "specialList",
|
||||
setup(__props) {
|
||||
const user_id = common_vendor.ref("");
|
||||
const showModal = common_vendor.ref(false);
|
||||
const showDeal = common_vendor.ref(false);
|
||||
const is_selected = common_vendor.ref(0);
|
||||
const isMine = common_vendor.ref(false);
|
||||
const paging = common_vendor.ref(null);
|
||||
const dataList = common_vendor.ref([]);
|
||||
const total = common_vendor.ref(0);
|
||||
const keyWord = common_vendor.ref("");
|
||||
const vote = common_vendor.ref(null);
|
||||
const showNum = common_vendor.ref(false);
|
||||
const label_iden = common_vendor.ref("");
|
||||
const dropTitle = common_vendor.ref("发布时间");
|
||||
const orderFilter = common_vendor.ref("1");
|
||||
const uDropdownRef = common_vendor.ref(null);
|
||||
const dealId = common_vendor.ref("");
|
||||
const options = common_vendor.ref([
|
||||
{
|
||||
label: "发布时间",
|
||||
value: "1"
|
||||
},
|
||||
{
|
||||
label: "互动更新时间",
|
||||
value: "2"
|
||||
},
|
||||
{
|
||||
label: "互动数",
|
||||
value: "3"
|
||||
}
|
||||
]);
|
||||
common_vendor.ref(true);
|
||||
const order = common_vendor.reactive({
|
||||
read_num: "",
|
||||
push_date: "desc"
|
||||
});
|
||||
const showCase = common_vendor.ref(false);
|
||||
common_vendor.ref(false);
|
||||
const freshKey = common_vendor.ref(0);
|
||||
const caseValue1 = common_vendor.reactive({
|
||||
value: "",
|
||||
name: ""
|
||||
});
|
||||
const caseValue2 = common_vendor.reactive({
|
||||
value: "",
|
||||
name: ""
|
||||
});
|
||||
const caseValue3 = common_vendor.reactive({
|
||||
value: "",
|
||||
name: ""
|
||||
});
|
||||
const level = common_vendor.ref(1);
|
||||
const labelObj = common_vendor.reactive({
|
||||
list1: [],
|
||||
list2: [],
|
||||
list3: []
|
||||
});
|
||||
const openCaseLevel = (lev) => {
|
||||
freshKey.value++;
|
||||
level.value = lev;
|
||||
if (lev == 1) {
|
||||
caseValue2.name = "";
|
||||
caseValue2.value = "";
|
||||
labelObj.list2 = [];
|
||||
} else if (lev == 2) {
|
||||
labelObj.list3 = [];
|
||||
caseValue3.name = "";
|
||||
caseValue3.value = "";
|
||||
}
|
||||
};
|
||||
const groupChange1 = (e) => {
|
||||
caseValue1.value = e;
|
||||
for (var i = 0; i < labelObj.list1.length; i++) {
|
||||
if (labelObj.list1[i].app_iden == caseValue1.value) {
|
||||
caseValue1.name = labelObj.list1[i].label_name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
getCaseLabel(2, e);
|
||||
};
|
||||
const groupChange2 = (e) => {
|
||||
caseValue2.value = e;
|
||||
for (var i = 0; i < labelObj.list2.length; i++) {
|
||||
if (labelObj.list2[i].app_iden == caseValue2.value) {
|
||||
caseValue2.name = labelObj.list2[i].label_name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
getCaseLabel(3, e);
|
||||
};
|
||||
const groupChange3 = (e) => {
|
||||
caseValue3.value = e;
|
||||
level.value = 3;
|
||||
for (var i = 0; i < labelObj.list3.length; i++) {
|
||||
if (labelObj.list3[i].app_iden == caseValue3.value) {
|
||||
caseValue3.name = labelObj.list3[i].label_name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
const getCaseLabel = (lev, pid = 0) => {
|
||||
api_api.api.getCaseLabel({
|
||||
pId: pid
|
||||
}).then((res) => {
|
||||
level.value = lev;
|
||||
if (lev == 1) {
|
||||
labelObj.list1 = res.data.data;
|
||||
} else if (lev == 2) {
|
||||
labelObj.list2 = res.data.data;
|
||||
if (res.data.data.length == 0) {
|
||||
level.value = 1;
|
||||
}
|
||||
} else if (lev == 3) {
|
||||
labelObj.list3 = res.data.data;
|
||||
if (res.data.data.length == 0) {
|
||||
level.value = 2;
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
const openCase = () => {
|
||||
showCase.value = true;
|
||||
};
|
||||
const confirmCase = () => {
|
||||
if (level.value == 1 && caseValue1.value == "") {
|
||||
common_vendor.index.showToast({ title: "请选择疾病选项", icon: "none" });
|
||||
return false;
|
||||
}
|
||||
if (level.value == 1) {
|
||||
label_iden.value = caseValue1.value;
|
||||
}
|
||||
if (level.value == 2) {
|
||||
if (!caseValue2.value) {
|
||||
label_iden.value = caseValue1.value;
|
||||
} else {
|
||||
label_iden.value = caseValue2.value;
|
||||
}
|
||||
}
|
||||
if (level.value == 3) {
|
||||
if (!caseValue3.value) {
|
||||
label_iden.value = caseValue2.value;
|
||||
} else {
|
||||
label_iden.value = caseValue3.value;
|
||||
}
|
||||
}
|
||||
paging.value.reload();
|
||||
showCase.value = false;
|
||||
};
|
||||
const closeCase = () => {
|
||||
showCase.value = false;
|
||||
};
|
||||
const openDeal = (id, voteObj) => {
|
||||
showDeal.value = true;
|
||||
dealId.value = id;
|
||||
vote.value = voteObj;
|
||||
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:504", id);
|
||||
};
|
||||
const alertDel = () => {
|
||||
showDeal.value = false;
|
||||
showModal.value = true;
|
||||
};
|
||||
const goEdit = () => {
|
||||
showDeal.value = false;
|
||||
if (vote.value && vote.value.is_have_voted != 1) {
|
||||
common_vendor.index.showToast({
|
||||
icon: "none",
|
||||
title: "不可编辑"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
utils_navTo.navTo({
|
||||
url: "/pages/publish/publish?exchange_id=" + dealId.value
|
||||
});
|
||||
};
|
||||
const htmlToText = (html) => {
|
||||
return html.replace(/<[^>]*>/g, "").replace(/ /gi, " ").replace(/<br\s*\/?>/gi, "\n").replace(/<img\s[^>]*>/gi, "").replace(/<video[^>]*>[\s\S]*?/gi, "");
|
||||
};
|
||||
const confirmDel = () => {
|
||||
api_api.api.delExchange(dealId.value).then((res) => {
|
||||
common_vendor.index.showToast({
|
||||
title: "删除成功",
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
});
|
||||
let index = dataList.value.findIndex((item) => item.exchange_id === dealId.value);
|
||||
dataList.value.splice(index, 1);
|
||||
showModal.value = false;
|
||||
};
|
||||
const closeDealPop = () => {
|
||||
showDeal.value = false;
|
||||
};
|
||||
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;
|
||||
}
|
||||
if (options2.type == "mine") {
|
||||
isMine.value = true;
|
||||
}
|
||||
if (options2.from == "talkHome") {
|
||||
showNum.value = true;
|
||||
}
|
||||
getCaseLabel(1, 0);
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
var _a;
|
||||
(_a = paging.value) == null ? void 0 : _a.refresh();
|
||||
});
|
||||
const changeDate = (e) => {
|
||||
if (e == 1) {
|
||||
order.push_date = "desc";
|
||||
order.comment_num = "";
|
||||
order.last_comment_time = "";
|
||||
dropTitle.value = "发布时间";
|
||||
} else if (e == 2) {
|
||||
order.push_date = "";
|
||||
order.comment_num = "";
|
||||
order.last_comment_time = "desc";
|
||||
dropTitle.value = "互动更新时间";
|
||||
} else {
|
||||
order.push_date = "";
|
||||
order.last_comment_time = "";
|
||||
order.comment_num = "desc";
|
||||
dropTitle.value = "互动数";
|
||||
}
|
||||
orderFilter.value = e;
|
||||
uDropdownRef.value.close();
|
||||
paging.value.reload();
|
||||
};
|
||||
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:615", 666666);
|
||||
const params = {
|
||||
page: pageNo,
|
||||
page_size: pageSize
|
||||
};
|
||||
searchList(params);
|
||||
};
|
||||
const searchList = async (params) => {
|
||||
let searchForm = {
|
||||
keyword: keyWord.value,
|
||||
user_id: user_id.value,
|
||||
label_iden: label_iden.value
|
||||
};
|
||||
if (!label_iden.value) {
|
||||
delete searchForm.label_iden;
|
||||
}
|
||||
if (Number(is_selected.value)) {
|
||||
searchForm.is_selected = Number(is_selected.value);
|
||||
}
|
||||
if (!order.comment_num) {
|
||||
delete order.comment_num;
|
||||
}
|
||||
if (!order.last_comment_time) {
|
||||
delete order.last_comment_time;
|
||||
}
|
||||
if (!label_iden.value) {
|
||||
delete searchForm.label_iden;
|
||||
}
|
||||
if (!order.push_date) {
|
||||
delete order.push_date;
|
||||
}
|
||||
if (order.comment_num || order.push_date || order.last_comment_time) {
|
||||
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({
|
||||
searchWord: keyWord.value,
|
||||
navName: "肝胆相照病例交流园地"
|
||||
}),
|
||||
c: showNum.value
|
||||
}, 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.p({
|
||||
src: common_vendor.unref(common_assets.caseImg),
|
||||
width: "31rpx",
|
||||
height: "31rpx"
|
||||
}),
|
||||
h: label_iden.value ? 1 : "",
|
||||
i: common_vendor.o(openCase),
|
||||
j: common_vendor.f(options.value, (item, k0, i0) => {
|
||||
return {
|
||||
a: "b2cb78f4-6-" + i0 + ",b2cb78f4-5",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0",
|
||||
label: item.label,
|
||||
name: item.value
|
||||
}),
|
||||
c: item.value,
|
||||
d: common_vendor.n(orderFilter.value == item.value ? "active" : "")
|
||||
};
|
||||
}),
|
||||
k: common_vendor.o(changeDate),
|
||||
l: common_vendor.o(($event) => orderFilter.value = $event),
|
||||
m: common_vendor.p({
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: orderFilter.value
|
||||
}),
|
||||
n: common_vendor.p({
|
||||
title: dropTitle.value
|
||||
}),
|
||||
o: common_vendor.sr(uDropdownRef, "b2cb78f4-3,b2cb78f4-0", {
|
||||
"k": "uDropdownRef"
|
||||
}),
|
||||
p: 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)
|
||||
}, isMine.value ? {
|
||||
c: common_vendor.o(($event) => openDeal(item.exchange_id, item.case_exchange_vote), item.exchange_id)
|
||||
} : {}, {
|
||||
d: "b2cb78f4-7-" + i0 + ",b2cb78f4-0",
|
||||
e: common_vendor.p({
|
||||
src: item.avatar ? item.avatar : common_vendor.unref(common_assets.headImg),
|
||||
width: "46rpx",
|
||||
height: "46rpx",
|
||||
radius: "50%"
|
||||
}),
|
||||
f: common_vendor.t(item.user_name),
|
||||
g: common_vendor.t(item.hospital_name),
|
||||
h: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
i: common_vendor.t(htmlToText(item.exchange_content)),
|
||||
j: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
k: item.exchange_content_image && item.exchange_content_image.length > 0
|
||||
}, item.exchange_content_image && item.exchange_content_image.length > 0 ? {
|
||||
l: common_vendor.f(item.exchange_content_image, (unit, k1, i1) => {
|
||||
return {
|
||||
a: "b2cb78f4-8-" + i0 + "-" + i1 + ",b2cb78f4-0",
|
||||
b: common_vendor.p({
|
||||
src: unit,
|
||||
radius: "10",
|
||||
width: "220rpx",
|
||||
height: "220rpx"
|
||||
})
|
||||
};
|
||||
}),
|
||||
m: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
|
||||
} : {}, {
|
||||
n: item.exchange_content_video && item.exchange_content_video.length > 0
|
||||
}, item.exchange_content_video && item.exchange_content_video.length > 0 ? {
|
||||
o: common_vendor.f(item.exchange_content_video, (videoCell, index, i1) => {
|
||||
return {
|
||||
a: index,
|
||||
b: videoCell,
|
||||
c: common_vendor.o(videoErrorCallback, index)
|
||||
};
|
||||
}),
|
||||
p: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
|
||||
} : {}, {
|
||||
q: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
r: item.label && item.label.length > 0
|
||||
}, item.label && item.label.length > 0 ? {
|
||||
s: common_vendor.f(item.label, (cell, k1, i1) => {
|
||||
return {
|
||||
a: common_vendor.t(cell.label_name),
|
||||
b: cell.exchange_label_id
|
||||
};
|
||||
}),
|
||||
t: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
|
||||
} : {}, {
|
||||
v: "b2cb78f4-9-" + i0 + ",b2cb78f4-0",
|
||||
w: common_vendor.t(item.read_num),
|
||||
x: item.collect_num > 0
|
||||
}, item.collect_num > 0 ? {
|
||||
y: "b2cb78f4-10-" + i0 + ",b2cb78f4-0",
|
||||
z: common_vendor.p({
|
||||
name: "heart",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
A: common_vendor.t(item.collect_num)
|
||||
} : {}, {
|
||||
B: item.comment_num > 0
|
||||
}, item.comment_num > 0 ? {
|
||||
C: "b2cb78f4-11-" + i0 + ",b2cb78f4-0",
|
||||
D: common_vendor.p({
|
||||
name: "chat",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
E: common_vendor.t(item.comment_num)
|
||||
} : {}, {
|
||||
F: "b2cb78f4-12-" + i0 + ",b2cb78f4-0",
|
||||
G: common_vendor.t(formatdate(item.push_date)),
|
||||
H: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
I: item.exchange_id
|
||||
});
|
||||
}),
|
||||
q: isMine.value,
|
||||
r: common_vendor.p({
|
||||
name: "eye",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
s: common_vendor.p({
|
||||
name: "clock",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
t: common_vendor.sr(paging, "b2cb78f4-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
|
||||
}),
|
||||
y: common_vendor.o(closeCase),
|
||||
z: common_vendor.o(confirmCase),
|
||||
A: common_vendor.t(!caseValue1.name ? "请选择选项" : caseValue1.name),
|
||||
B: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
C: common_vendor.o(($event) => openCaseLevel("1")),
|
||||
D: caseValue1.name && labelObj.list2.length > 0
|
||||
}, caseValue1.name && labelObj.list2.length > 0 ? {
|
||||
E: common_vendor.t(!caseValue2.name ? "请选择选项" : caseValue2.name),
|
||||
F: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
G: common_vendor.o(($event) => openCaseLevel("2"))
|
||||
} : {}, {
|
||||
H: caseValue2.name && labelObj.list3.length > 0
|
||||
}, caseValue2.name && labelObj.list3.length > 0 ? {
|
||||
I: common_vendor.t(!caseValue3.name ? "请选择选项" : caseValue3.name),
|
||||
J: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
K: common_vendor.o(($event) => openCaseLevel("3"))
|
||||
} : {}, {
|
||||
L: freshKey.value,
|
||||
M: common_vendor.p({
|
||||
current: level.value - 1,
|
||||
direction: "column"
|
||||
}),
|
||||
N: common_vendor.f(labelObj.list1, (item, k0, i0) => {
|
||||
return {
|
||||
a: "b2cb78f4-22-" + i0 + ",b2cb78f4-21",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
name: item.app_iden
|
||||
}),
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
O: common_vendor.o(groupChange1),
|
||||
P: common_vendor.o(($event) => caseValue1.value = $event),
|
||||
Q: common_vendor.p({
|
||||
name: "group1",
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue1.value
|
||||
}),
|
||||
R: level.value == 1,
|
||||
S: common_vendor.f(labelObj.list2, (item, k0, i0) => {
|
||||
return {
|
||||
a: "b2cb78f4-24-" + i0 + ",b2cb78f4-23",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
name: item.app_iden
|
||||
}),
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
T: common_vendor.o(groupChange2),
|
||||
U: common_vendor.o(($event) => caseValue2.value = $event),
|
||||
V: common_vendor.p({
|
||||
name: "group2",
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue2.value
|
||||
}),
|
||||
W: level.value == 2,
|
||||
X: common_vendor.f(labelObj.list3, (item, k0, i0) => {
|
||||
return {
|
||||
a: "b2cb78f4-26-" + i0 + ",b2cb78f4-25",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
name: item.app_iden
|
||||
}),
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
Y: common_vendor.o(groupChange3),
|
||||
Z: common_vendor.o(($event) => caseValue3.value = $event),
|
||||
aa: common_vendor.p({
|
||||
name: "group3",
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue3.value
|
||||
}),
|
||||
ab: level.value == 3,
|
||||
ac: common_vendor.o(closeCase),
|
||||
ad: common_vendor.p({
|
||||
round: 10,
|
||||
zIndex: "9",
|
||||
closeOnClickOverlay: false,
|
||||
show: showCase.value,
|
||||
mode: "bottom"
|
||||
}),
|
||||
ae: common_vendor.o(goEdit),
|
||||
af: common_vendor.o(alertDel),
|
||||
ag: common_vendor.o(closeDealPop),
|
||||
ah: common_vendor.p({
|
||||
zIndex: 60,
|
||||
overlayStyle: {
|
||||
zIndex: 59
|
||||
},
|
||||
show: showDeal.value,
|
||||
round: 10,
|
||||
mode: "bottom"
|
||||
}),
|
||||
ai: common_vendor.o(($event) => showModal.value = false),
|
||||
aj: common_vendor.o(confirmDel),
|
||||
ak: common_vendor.p({
|
||||
show: showModal.value,
|
||||
["mask-click-able"]: true
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
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,19 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"nav-bar-search": "../../components/navBarSearch/navBarSearch",
|
||||
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
|
||||
"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-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",
|
||||
"u-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
|
||||
"up-steps-item": "../../node-modules/uview-plus/components/u-steps-item/u-steps-item",
|
||||
"up-steps": "../../node-modules/uview-plus/components/u-steps/u-steps",
|
||||
"up-popup": "../../node-modules/uview-plus/components/u-popup/u-popup",
|
||||
"up-overlay": "../../node-modules/uview-plus/components/u-overlay/u-overlay"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,547 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.dropcontent.data-v-b2cb78f4 {
|
||||
padding-top: 40rpx;
|
||||
padding-bottom: 20rpx;
|
||||
background-color: #fff;
|
||||
}
|
||||
.dropcontent.data-v-b2cb78f4 .u-radio {
|
||||
margin-bottom: 6px !important;
|
||||
margin-top: 16px !important;
|
||||
}
|
||||
.dropcontent .column.data-v-b2cb78f4 {
|
||||
padding: 0 30rpx;
|
||||
border-top: 2rpx solid #e5e7eb;
|
||||
}
|
||||
.dropcontent .column.data-v-b2cb78f4 .u-radio__text {
|
||||
color: #333 !important;
|
||||
}
|
||||
.dropcontent .column.active.data-v-b2cb78f4 .u-radio__text {
|
||||
color: #3CC7C0 !important;
|
||||
}
|
||||
.stepbox.data-v-b2cb78f4 {
|
||||
padding: 15rpx 30rpx;
|
||||
border-bottom: 2rpx dotted #f3f4f6;
|
||||
}
|
||||
.stepbox.data-v-b2cb78f4 .u-steps-item__content {
|
||||
margin-top: -5rpx !important;
|
||||
}
|
||||
.stepbox .slot-content.data-v-b2cb78f4 {
|
||||
width: 100%;
|
||||
margin-bottom: 25rpx;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
}
|
||||
.dealbox .dealcell.data-v-b2cb78f4 {
|
||||
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;
|
||||
}
|
||||
.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;
|
||||
color: #3CC7C0 !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: 160rpx;
|
||||
}
|
||||
.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: 0rpx;
|
||||
}
|
||||
.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: 0rpx;
|
||||
}
|
||||
.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;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.record .list .cell .title .dot.data-v-b2cb78f4 {
|
||||
height: 40rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.record .list .cell .title .titlecon.data-v-b2cb78f4 {
|
||||
flex: 1;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.casesdown.data-v-b2cb78f4 {
|
||||
font-size: 14px;
|
||||
color: #606266;
|
||||
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;
|
||||
}
|
||||
.votepop .confirm.data-v-b2cb78f4 {
|
||||
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-b2cb78f4 {
|
||||
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-b2cb78f4 {
|
||||
margin-top: 30rpx;
|
||||
font-size: 27rpx;
|
||||
color: #9ca3af;
|
||||
line-height: 38rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.votepop .add.data-v-b2cb78f4 {
|
||||
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-b2cb78f4 {
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
.votepop .titlebox.data-v-b2cb78f4 {
|
||||
padding: 0 30rpx;
|
||||
margin: 0 !important;
|
||||
height: 86rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2rpx solid #f3f4f6;
|
||||
}
|
||||
.votepop .titlebox .left.data-v-b2cb78f4 {
|
||||
font-size: 31rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
.votepop .titlebox .right.data-v-b2cb78f4 {
|
||||
font-size: 31rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.votepop .votecon.data-v-b2cb78f4 {
|
||||
max-height: calc(100vh - 530rpx);
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.votepop .votecon .row.data-v-b2cb78f4 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.votepop .votecon .row .iconbox.data-v-b2cb78f4 {
|
||||
margin-left: 15rpx;
|
||||
align-items: center;
|
||||
}
|
||||
.votepop .votecon .titlebox.data-v-b2cb78f4 {
|
||||
border: none;
|
||||
margin: 30rpx 0 20rpx !important;
|
||||
}
|
||||
.votepop .votecon .titlebox .title.data-v-b2cb78f4 {
|
||||
font-size: 31rpx;
|
||||
color: #111827;
|
||||
}
|
||||
.votepop .votecon .titlebox .desc.data-v-b2cb78f4 {
|
||||
font-size: 27rpx;
|
||||
color: #9ca3af;
|
||||
}
|
||||
.casepop.data-v-b2cb78f4 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: calc(100vh - 400rpx);
|
||||
}
|
||||
.casepop .continue.data-v-b2cb78f4 {
|
||||
color: #2878ff !important;
|
||||
}
|
||||
.casecon.data-v-b2cb78f4 {
|
||||
flex: 1;
|
||||
max-height: calc(100vh - 800rpx);
|
||||
overflow-y: scroll;
|
||||
padding-top: 22rpx;
|
||||
padding-bottom: 20rpx;
|
||||
min-height: 350rpx;
|
||||
}
|
||||
.casecon.data-v-b2cb78f4 .u-radio {
|
||||
margin-bottom: 10px !important;
|
||||
margin-top: 0px !important;
|
||||
}
|
||||
.casecon .column.data-v-b2cb78f4 {
|
||||
padding: 0 30rpx;
|
||||
border-bottom: 2rpx solid #e5e7eb;
|
||||
}
|
||||
.zanboxpop.data-v-b2cb78f4 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
}
|
||||
.zanboxpop .zanwraper.data-v-b2cb78f4 {
|
||||
width: 630rpx;
|
||||
margin: 0 auto;
|
||||
padding-bottom: 50rpx;
|
||||
background: #f5f6f9;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.zanboxpop .zanwraper .title.data-v-b2cb78f4 {
|
||||
margin-top: 48rpx;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
font-size: 36rpx;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
}
|
||||
.zanboxpop .zanwraper .content.data-v-b2cb78f4 {
|
||||
padding: 30rpx 0;
|
||||
background: #f5f6f9;
|
||||
text-align: center;
|
||||
}
|
||||
.zanboxpop .zanwraper .content.data-v-b2cb78f4 .imgstyle {
|
||||
max-width: 100% !important;
|
||||
}
|
||||
.zanboxpop .zanwraper .content.data-v-b2cb78f4 ._block {
|
||||
text-align: left !important;
|
||||
}
|
||||
.zanboxpop .zanwraper .count.data-v-b2cb78f4 {
|
||||
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-b2cb78f4 {
|
||||
color: #ff0000;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.zanboxpop .zanwraper .count .earn.data-v-b2cb78f4 {
|
||||
font-size: 32rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox.data-v-b2cb78f4 {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
margin: 30rpx 0px 40rpx;
|
||||
padding: 0 40rpx;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox .minus.data-v-b2cb78f4 {
|
||||
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-b2cb78f4 {
|
||||
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-b2cb78f4 .u-input__content__field-wrapper__field {
|
||||
height: 60rpx;
|
||||
font-size: 34rpx !important;
|
||||
text-align: center !important;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox.data-v-b2cb78f4 .u-input {
|
||||
background: #f2f2f2;
|
||||
width: 200rpx !important;
|
||||
flex: none;
|
||||
}
|
||||
.zanboxpop .zanwraper .countbox.data-v-b2cb78f4 .u-input--radius {
|
||||
border-radius: 24rrpx;
|
||||
}
|
||||
.zanboxpop .zanwraper .btnbox.data-v-b2cb78f4 {
|
||||
margin: 0px 40rpx 0px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.zanboxpop .zanwraper .btnbox .cancle.data-v-b2cb78f4 {
|
||||
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-b2cb78f4 {
|
||||
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;
|
||||
}
|
||||
@@ -0,0 +1,537 @@
|
||||
"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__image2 = common_vendor.resolveComponent("up--image");
|
||||
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
|
||||
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
|
||||
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_u_icon2 = common_vendor.resolveComponent("u-icon");
|
||||
const _easycom_up_steps_item2 = common_vendor.resolveComponent("up-steps-item");
|
||||
const _easycom_up_steps2 = common_vendor.resolveComponent("up-steps");
|
||||
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
|
||||
(_easycom_up__image2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up_icon2 + _easycom_z_paging2 + _easycom_u_icon2 + _easycom_up_steps_item2 + _easycom_up_steps2 + _easycom_up_popup2)();
|
||||
}
|
||||
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.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_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_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
|
||||
const _easycom_up_steps_item = () => "../../node-modules/uview-plus/components/u-steps-item/u-steps-item.js";
|
||||
const _easycom_up_steps = () => "../../node-modules/uview-plus/components/u-steps/u-steps.js";
|
||||
const _easycom_up_popup = () => "../../node-modules/uview-plus/components/u-popup/u-popup.js";
|
||||
if (!Math) {
|
||||
(navBarSearch + _easycom_up__image + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_dropdown_item + _easycom_up_dropdown + _easycom_up_icon + _easycom_z_paging + _easycom_u_icon + _easycom_up_steps_item + _easycom_up_steps + _easycom_up_popup)();
|
||||
}
|
||||
const navBarSearch = () => "../../components/navBarSearch/navBarSearch.js";
|
||||
const _sfc_main = {
|
||||
__name: "videoList",
|
||||
setup(__props) {
|
||||
const paging = 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 dropTitle = common_vendor.ref("发布时间");
|
||||
const orderFilter = common_vendor.ref("1");
|
||||
const uDropdownRef = common_vendor.ref(null);
|
||||
const label_iden = common_vendor.ref(null);
|
||||
const options = common_vendor.ref([
|
||||
{
|
||||
label: "发布时间",
|
||||
value: "1"
|
||||
},
|
||||
{
|
||||
label: "阅读次数",
|
||||
value: "2"
|
||||
}
|
||||
]);
|
||||
const isSearch = common_vendor.ref(false);
|
||||
const order = common_vendor.reactive({
|
||||
read_num: "",
|
||||
push_date: "desc"
|
||||
});
|
||||
const showCase = common_vendor.ref(false);
|
||||
common_vendor.ref(false);
|
||||
const freshKey = common_vendor.ref(0);
|
||||
const caseValue1 = common_vendor.reactive({
|
||||
value: "",
|
||||
name: ""
|
||||
});
|
||||
const caseValue2 = common_vendor.reactive({
|
||||
value: "",
|
||||
name: ""
|
||||
});
|
||||
const caseValue3 = common_vendor.reactive({
|
||||
value: "",
|
||||
name: ""
|
||||
});
|
||||
const level = common_vendor.ref(1);
|
||||
const labelObj = common_vendor.reactive({
|
||||
list1: [],
|
||||
list2: [],
|
||||
list3: []
|
||||
});
|
||||
const openCaseLevel = (lev) => {
|
||||
freshKey.value++;
|
||||
level.value = lev;
|
||||
if (lev == 1) {
|
||||
caseValue2.name = "";
|
||||
caseValue2.value = "";
|
||||
labelObj.list2 = [];
|
||||
} else if (lev == 2) {
|
||||
labelObj.list3 = [];
|
||||
caseValue3.name = "";
|
||||
caseValue3.value = "";
|
||||
}
|
||||
};
|
||||
const groupChange1 = (e) => {
|
||||
caseValue1.value = e;
|
||||
for (var i = 0; i < labelObj.list1.length; i++) {
|
||||
if (labelObj.list1[i].app_iden == caseValue1.value) {
|
||||
caseValue1.name = labelObj.list1[i].label_name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
getCaseLabel(2, e);
|
||||
};
|
||||
const groupChange2 = (e) => {
|
||||
caseValue2.value = e;
|
||||
for (var i = 0; i < labelObj.list2.length; i++) {
|
||||
if (labelObj.list2[i].app_iden == caseValue2.value) {
|
||||
caseValue2.name = labelObj.list2[i].label_name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
getCaseLabel(3, e);
|
||||
};
|
||||
const groupChange3 = (e) => {
|
||||
caseValue3.value = e;
|
||||
level.value = 3;
|
||||
for (var i = 0; i < labelObj.list3.length; i++) {
|
||||
if (labelObj.list3[i].app_iden == caseValue3.value) {
|
||||
caseValue3.name = labelObj.list3[i].label_name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
const getCaseLabel = (lev, pid = 0) => {
|
||||
api_api.api.getCaseLabel({
|
||||
pId: pid
|
||||
}).then((res) => {
|
||||
level.value = lev;
|
||||
if (lev == 1) {
|
||||
labelObj.list1 = res.data.data;
|
||||
} else if (lev == 2) {
|
||||
labelObj.list2 = res.data.data;
|
||||
if (res.data.data.length == 0) {
|
||||
level.value = 1;
|
||||
}
|
||||
} else if (lev == 3) {
|
||||
labelObj.list3 = res.data.data;
|
||||
if (res.data.data.length == 0) {
|
||||
level.value = 2;
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
const openCase = () => {
|
||||
showCase.value = true;
|
||||
};
|
||||
const confirmCase = () => {
|
||||
if (level.value == 1 && caseValue1.value == "") {
|
||||
common_vendor.index.showToast({ title: "请选择疾病选项", icon: "none" });
|
||||
return false;
|
||||
}
|
||||
if (level.value == 1) {
|
||||
label_iden.value = caseValue1.value;
|
||||
}
|
||||
if (level.value == 2) {
|
||||
if (!caseValue2.value) {
|
||||
label_iden.value = caseValue1.value;
|
||||
} else {
|
||||
label_iden.value = caseValue2.value;
|
||||
}
|
||||
}
|
||||
if (level.value == 3) {
|
||||
if (!caseValue3.value) {
|
||||
label_iden.value = caseValue2.value;
|
||||
} else {
|
||||
label_iden.value = caseValue3.value;
|
||||
}
|
||||
}
|
||||
paging.value.reload();
|
||||
showCase.value = false;
|
||||
};
|
||||
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;
|
||||
}
|
||||
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);
|
||||
}
|
||||
getCaseLabel(1, 0);
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
var _a;
|
||||
(_a = paging.value) == null ? void 0 : _a.refresh();
|
||||
});
|
||||
const changeDate = (e) => {
|
||||
if (e == 1) {
|
||||
order.push_date = "desc";
|
||||
order.read_num = "";
|
||||
dropTitle.value = "发布时间";
|
||||
} else {
|
||||
order.push_date = "";
|
||||
order.read_num = "desc";
|
||||
dropTitle.value = "阅读次数";
|
||||
}
|
||||
orderFilter.value = e;
|
||||
uDropdownRef.value.close();
|
||||
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:453", 11111);
|
||||
common_vendor.index.__f__("log", "at pages/videoList/videoList.vue:454", 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,
|
||||
label_iden: label_iden.value
|
||||
};
|
||||
if (label_iden.value === "") {
|
||||
delete searchForm.label_iden;
|
||||
}
|
||||
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,
|
||||
label_iden: label_iden.value
|
||||
};
|
||||
if (label_iden.value === "") {
|
||||
delete searchForm.label_iden;
|
||||
}
|
||||
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:537", 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_num)
|
||||
}, {
|
||||
f: isArticle.value
|
||||
}, isArticle.value ? {
|
||||
g: common_vendor.t(numInfo.article_read_num)
|
||||
} : {
|
||||
h: common_vendor.t(numInfo.video_read_num)
|
||||
}, {
|
||||
i: isSearch.value
|
||||
}, isSearch.value ? common_vendor.e({
|
||||
j: common_vendor.t(searchInfo.search_video_num),
|
||||
k: keyWord.value
|
||||
}, keyWord.value ? {
|
||||
l: common_vendor.t(keyWord.value)
|
||||
} : {}) : {}, {
|
||||
m: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.caseImg),
|
||||
width: "31rpx",
|
||||
height: "31rpx"
|
||||
}),
|
||||
n: label_iden.value ? 1 : "",
|
||||
o: common_vendor.o(openCase),
|
||||
p: common_vendor.f(options.value, (item, k0, i0) => {
|
||||
return {
|
||||
a: "acc011bc-6-" + i0 + ",acc011bc-5",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0",
|
||||
label: item.label,
|
||||
name: item.value
|
||||
}),
|
||||
c: item.value,
|
||||
d: common_vendor.n(orderFilter.value == item.value ? "active" : "")
|
||||
};
|
||||
}),
|
||||
q: common_vendor.o(changeDate),
|
||||
r: common_vendor.o(($event) => orderFilter.value = $event),
|
||||
s: common_vendor.p({
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: orderFilter.value
|
||||
}),
|
||||
t: common_vendor.p({
|
||||
title: dropTitle.value
|
||||
}),
|
||||
v: common_vendor.sr(uDropdownRef, "acc011bc-3,acc011bc-0", {
|
||||
"k": "uDropdownRef"
|
||||
}),
|
||||
w: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
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-7-" + i0 + ",acc011bc-0",
|
||||
d: common_vendor.t(item.read_num),
|
||||
e: item.collect_num > 0
|
||||
}, item.collect_num > 0 ? {
|
||||
f: "acc011bc-8-" + i0 + ",acc011bc-0",
|
||||
g: common_vendor.p({
|
||||
name: "heart",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
h: common_vendor.t(item.collect_num)
|
||||
} : {}, {
|
||||
i: "acc011bc-9-" + i0 + ",acc011bc-0",
|
||||
j: common_vendor.t(formatdate(item.push_date)),
|
||||
k: index,
|
||||
l: common_vendor.o(($event) => isArticle.value ? goDetail(item.article_id) : goDetail(item.video_id), index)
|
||||
});
|
||||
}),
|
||||
x: common_vendor.p({
|
||||
name: "eye",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
y: common_vendor.p({
|
||||
name: "clock",
|
||||
color: "#6B7280",
|
||||
size: "28rpx"
|
||||
}),
|
||||
z: common_vendor.sr(paging, "acc011bc-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
A: common_vendor.o(queryList),
|
||||
B: common_vendor.o(($event) => dataList.value = $event),
|
||||
C: common_vendor.p({
|
||||
["inside-more"]: true,
|
||||
["loading-more-no-more-text"]: "咱也是有底线的!",
|
||||
["auto-show-back-to-top"]: true,
|
||||
modelValue: dataList.value
|
||||
}),
|
||||
D: common_vendor.o(closeCase),
|
||||
E: common_vendor.o(confirmCase),
|
||||
F: common_vendor.t(!caseValue1.name ? "请选择选项" : caseValue1.name),
|
||||
G: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
H: common_vendor.o(($event) => openCaseLevel("1")),
|
||||
I: caseValue1.name && labelObj.list2.length > 0
|
||||
}, caseValue1.name && labelObj.list2.length > 0 ? {
|
||||
J: common_vendor.t(!caseValue2.name ? "请选择选项" : caseValue2.name),
|
||||
K: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
L: common_vendor.o(($event) => openCaseLevel("2"))
|
||||
} : {}, {
|
||||
M: caseValue2.name && labelObj.list3.length > 0
|
||||
}, caseValue2.name && labelObj.list3.length > 0 ? {
|
||||
N: common_vendor.t(!caseValue3.name ? "请选择选项" : caseValue3.name),
|
||||
O: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
P: common_vendor.o(($event) => openCaseLevel("3"))
|
||||
} : {}, {
|
||||
Q: freshKey.value,
|
||||
R: common_vendor.p({
|
||||
current: level.value - 1,
|
||||
direction: "column"
|
||||
}),
|
||||
S: common_vendor.f(labelObj.list1, (item, k0, i0) => {
|
||||
return {
|
||||
a: "acc011bc-19-" + i0 + ",acc011bc-18",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
name: item.app_iden
|
||||
}),
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
T: common_vendor.o(groupChange1),
|
||||
U: common_vendor.o(($event) => caseValue1.value = $event),
|
||||
V: common_vendor.p({
|
||||
name: "group1",
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue1.value
|
||||
}),
|
||||
W: level.value == 1,
|
||||
X: common_vendor.f(labelObj.list2, (item, k0, i0) => {
|
||||
return {
|
||||
a: "acc011bc-21-" + i0 + ",acc011bc-20",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
name: item.app_iden
|
||||
}),
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
Y: common_vendor.o(groupChange2),
|
||||
Z: common_vendor.o(($event) => caseValue2.value = $event),
|
||||
aa: common_vendor.p({
|
||||
name: "group2",
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue2.value
|
||||
}),
|
||||
ab: level.value == 2,
|
||||
ac: common_vendor.f(labelObj.list3, (item, k0, i0) => {
|
||||
return {
|
||||
a: "acc011bc-23-" + i0 + ",acc011bc-22",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
name: item.app_iden
|
||||
}),
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
ad: common_vendor.o(groupChange3),
|
||||
ae: common_vendor.o(($event) => caseValue3.value = $event),
|
||||
af: common_vendor.p({
|
||||
name: "group3",
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue3.value
|
||||
}),
|
||||
ag: level.value == 3,
|
||||
ah: common_vendor.o(closeCase),
|
||||
ai: common_vendor.p({
|
||||
round: 10,
|
||||
zIndex: "9",
|
||||
closeOnClickOverlay: false,
|
||||
show: showCase.value,
|
||||
mode: "bottom"
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
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,18 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
|
||||
"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-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",
|
||||
"u-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
|
||||
"up-steps-item": "../../node-modules/uview-plus/components/u-steps-item/u-steps-item",
|
||||
"up-steps": "../../node-modules/uview-plus/components/u-steps/u-steps",
|
||||
"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,315 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.dropcontent.data-v-acc011bc {
|
||||
padding-top: 40rpx;
|
||||
padding-bottom: 20rpx;
|
||||
background-color: #fff;
|
||||
}
|
||||
.dropcontent.data-v-acc011bc .u-radio {
|
||||
margin-bottom: 6px !important;
|
||||
margin-top: 16px !important;
|
||||
}
|
||||
.dropcontent .column.data-v-acc011bc {
|
||||
padding: 0 30rpx;
|
||||
border-top: 2rpx solid #e5e7eb;
|
||||
}
|
||||
.dropcontent .column.data-v-acc011bc .u-radio__text {
|
||||
color: #333 !important;
|
||||
}
|
||||
.dropcontent .column.active.data-v-acc011bc .u-radio__text {
|
||||
color: #3CC7C0 !important;
|
||||
}
|
||||
.stepbox.data-v-acc011bc {
|
||||
padding: 15rpx 30rpx;
|
||||
border-bottom: 2rpx dotted #f3f4f6;
|
||||
}
|
||||
.stepbox.data-v-acc011bc .u-steps-item__content {
|
||||
margin-top: -5rpx !important;
|
||||
}
|
||||
.stepbox .slot-content.data-v-acc011bc {
|
||||
width: 100%;
|
||||
margin-bottom: 25rpx;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
}
|
||||
.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;
|
||||
color: #3CC7C0 !important;
|
||||
}
|
||||
.filterbox .casesdown.data-v-acc011bc {
|
||||
font-size: 14px;
|
||||
color: #606266;
|
||||
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;
|
||||
}
|
||||
.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: 165rpx;
|
||||
}
|
||||
.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;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.votepop .confirm.data-v-acc011bc {
|
||||
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-acc011bc {
|
||||
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-acc011bc {
|
||||
margin-top: 30rpx;
|
||||
font-size: 27rpx;
|
||||
color: #9ca3af;
|
||||
line-height: 38rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.votepop .add.data-v-acc011bc {
|
||||
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-acc011bc {
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
.votepop .titlebox.data-v-acc011bc {
|
||||
padding: 0 30rpx;
|
||||
height: 86rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2rpx solid #f3f4f6;
|
||||
}
|
||||
.votepop .titlebox .left.data-v-acc011bc {
|
||||
font-size: 31rpx;
|
||||
color: #4b5563;
|
||||
}
|
||||
.votepop .titlebox .right.data-v-acc011bc {
|
||||
font-size: 31rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
.votepop .votecon.data-v-acc011bc {
|
||||
max-height: calc(100vh - 530rpx);
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.votepop .votecon .row.data-v-acc011bc {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.votepop .votecon .row .iconbox.data-v-acc011bc {
|
||||
margin-left: 15rpx;
|
||||
align-items: center;
|
||||
}
|
||||
.votepop .votecon .titlebox.data-v-acc011bc {
|
||||
border: none;
|
||||
margin: 30rpx 0 20rpx;
|
||||
}
|
||||
.votepop .votecon .titlebox .title.data-v-acc011bc {
|
||||
font-size: 31rpx;
|
||||
color: #111827;
|
||||
}
|
||||
.votepop .votecon .titlebox .desc.data-v-acc011bc {
|
||||
font-size: 27rpx;
|
||||
color: #9ca3af;
|
||||
}
|
||||
.casepop.data-v-acc011bc {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: calc(100vh - 400rpx);
|
||||
}
|
||||
.casepop .continue.data-v-acc011bc {
|
||||
color: #2878ff !important;
|
||||
}
|
||||
.casecon.data-v-acc011bc {
|
||||
flex: 1;
|
||||
max-height: calc(100vh - 800rpx);
|
||||
overflow-y: scroll;
|
||||
padding-top: 22rpx;
|
||||
padding-bottom: 20rpx;
|
||||
min-height: 350rpx;
|
||||
}
|
||||
.casecon.data-v-acc011bc .u-radio {
|
||||
margin-bottom: 10px !important;
|
||||
margin-top: 0px !important;
|
||||
}
|
||||
.casecon .column.data-v-acc011bc {
|
||||
padding: 0 30rpx;
|
||||
border-bottom: 2rpx solid #e5e7eb;
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
__name: "web",
|
||||
setup(__props) {
|
||||
const src = common_vendor.ref("");
|
||||
common_vendor.onLoad((option) => {
|
||||
src.value = option.src;
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: src.value
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
wx.createPage(_sfc_main);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/web/web.js.map
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<web-view src="{{a}}"></web-view>
|
||||
Reference in New Issue
Block a user