11
This commit is contained in:
+5
@@ -10,6 +10,11 @@ wx-button:after{
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
}
|
||||
.ellipsis-one-lines {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.u-image{
|
||||
background: none!important;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ const _sfc_main = {
|
||||
});
|
||||
} else if (props.type == "caseTalk") {
|
||||
utils_navTo.navTo({
|
||||
url: `/pages/specialList/specialList?keyWord=${keyWord.value}`
|
||||
url: `/pages/specialList/specialList?keyWord=${keyWord.value}&from=talkHome`
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
+40
-29
@@ -66,6 +66,9 @@ const _sfc_main = {
|
||||
}).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,
|
||||
@@ -101,7 +104,7 @@ const _sfc_main = {
|
||||
color: "#3CC7C0"
|
||||
}),
|
||||
g: common_vendor.o(($event) => goList("read")),
|
||||
h: common_vendor.f(most_read_articles.value, (item, k0, i0) => {
|
||||
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,
|
||||
@@ -129,7 +132,7 @@ const _sfc_main = {
|
||||
e: common_vendor.t(item.user_name),
|
||||
f: common_vendor.t(item.hospital_name),
|
||||
g: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
h: common_vendor.t(item.exchange_content),
|
||||
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 ? {
|
||||
@@ -155,28 +158,46 @@ const _sfc_main = {
|
||||
b: videoCell,
|
||||
c: common_vendor.o(videoErrorCallback, index)
|
||||
};
|
||||
})
|
||||
}),
|
||||
o: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
|
||||
} : {}, {
|
||||
o: item.label && item.label.length > 0
|
||||
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 ? {
|
||||
p: common_vendor.f(item.label, (cell, k1, i1) => {
|
||||
r: common_vendor.f(item.label, (cell, k1, i1) => {
|
||||
return {
|
||||
a: common_vendor.t(cell.label_name),
|
||||
b: cell.exchange_label_id
|
||||
};
|
||||
}),
|
||||
q: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
|
||||
s: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
|
||||
} : {}, {
|
||||
r: "4b2e7592-5-" + i0,
|
||||
s: common_vendor.t(item.read_num),
|
||||
t: "4b2e7592-6-" + i0,
|
||||
v: common_vendor.t(item.collect_num),
|
||||
w: "4b2e7592-7-" + i0,
|
||||
x: common_vendor.t(item.comment_num),
|
||||
y: "4b2e7592-8-" + i0,
|
||||
z: common_vendor.t(formatdate(item.push_date)),
|
||||
A: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
B: item.exchange_id
|
||||
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({
|
||||
@@ -185,29 +206,19 @@ const _sfc_main = {
|
||||
size: "28rpx"
|
||||
}),
|
||||
m: common_vendor.p({
|
||||
name: "heart",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
n: common_vendor.p({
|
||||
name: "chat",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
o: common_vendor.p({
|
||||
name: "clock",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
p: common_vendor.p({
|
||||
n: common_vendor.p({
|
||||
value: 2
|
||||
}),
|
||||
q: common_vendor.p({
|
||||
o: common_vendor.p({
|
||||
name: "plus",
|
||||
color: "#fff",
|
||||
size: "18"
|
||||
}),
|
||||
r: common_vendor.o(goPublish)
|
||||
p: common_vendor.o(goPublish)
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="upage data-v-4b2e7592"><nav-bar wx:if="{{a}}" class="data-v-4b2e7592" u-i="4b2e7592-0" bind:__l="__l" u-p="{{a}}"></nav-bar><view class="databox data-v-4b2e7592"><view class="cell data-v-4b2e7592"><view class="num data-v-4b2e7592">{{b}}</view><view class="name data-v-4b2e7592">病例数</view></view><view class="cell data-v-4b2e7592"><view class="num data-v-4b2e7592">{{c}}</view><view class="name data-v-4b2e7592">互动数</view></view><view class="cell data-v-4b2e7592"><view class="num data-v-4b2e7592">{{d}}</view><view class="name data-v-4b2e7592">浏览量</view></view></view><view class="bar data-v-4b2e7592"></view><view class="box data-v-4b2e7592"><view wx:if="{{e}}" class="special mostread data-v-4b2e7592"><view class="titlebox data-v-4b2e7592"><view class="title data-v-4b2e7592">精选病例</view><view class="more data-v-4b2e7592" bindtap="{{g}}"><view class="morename data-v-4b2e7592">查看更多</view><u-icon wx:if="{{f}}" class="data-v-4b2e7592" u-i="4b2e7592-1" bind:__l="__l" u-p="{{f}}"></u-icon></view></view><view class="list data-v-4b2e7592"><view wx:for="{{h}}" wx:for-item="item" wx:key="b" class="cell data-v-4b2e7592" bindtap="{{item.c}}"><view class="circle data-v-4b2e7592"></view><view class="title ellipsis-two-lines data-v-4b2e7592">{{item.a}}</view></view></view></view><view class="bar data-v-4b2e7592"></view><view class="record special data-v-4b2e7592"><view class="titlebox data-v-4b2e7592"><view class="title data-v-4b2e7592">最新收录</view><view class="more data-v-4b2e7592" bindtap="{{j}}"><view class="morename data-v-4b2e7592">查看更多</view><u-icon wx:if="{{i}}" class="data-v-4b2e7592" u-i="4b2e7592-2" bind:__l="__l" u-p="{{i}}"></u-icon></view></view><view class="list data-v-4b2e7592"><view wx:for="{{k}}" wx:for-item="item" wx:key="B" class="cell data-v-4b2e7592"><view class="title ellipsis-two-lines data-v-4b2e7592" bindtap="{{item.b}}">{{item.a}}</view><view class="doctor data-v-4b2e7592" bindtap="{{item.g}}"><up--image wx:if="{{item.d}}" class="data-v-4b2e7592" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></up--image><view class="name data-v-4b2e7592">{{item.e}}({{item.f}})</view></view><view class="content data-v-4b2e7592" bindtap="{{item.i}}">{{item.h}}</view><view wx:if="{{item.j}}" class="imgbox data-v-4b2e7592" bindtap="{{item.l}}"><view wx:for="{{item.k}}" wx:for-item="unit" 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"><view wx:if="{{item.m}}" class="imgbox data-v-4b2e7592"><video wx:for="{{item.n}}" wx:for-item="videoCell" wx:key="a" class="myVideo data-v-4b2e7592" src="{{videoCell.b}}" binderror="{{videoCell.c}}" controls></video></view></view><view wx:if="{{item.o}}" class="tagbox data-v-4b2e7592" bindtap="{{item.q}}"><view wx:for="{{item.p}}" wx:for-item="cell" wx:key="b" class="tag data-v-4b2e7592">{{cell.a}}</view></view><view class="deal data-v-4b2e7592" bindtap="{{item.A}}"><view class="left data-v-4b2e7592"><view class="eyebox item data-v-4b2e7592"><up-icon wx:if="{{l}}" class="data-v-4b2e7592" u-i="{{item.r}}" bind:__l="__l" u-p="{{l}}"></up-icon><view class="num data-v-4b2e7592">{{item.s}}</view></view><view class="collect item data-v-4b2e7592"><up-icon wx:if="{{m}}" class="data-v-4b2e7592" u-i="{{item.t}}" bind:__l="__l" u-p="{{m}}"></up-icon><view class="num data-v-4b2e7592">{{item.v}}</view></view><view class="chat item data-v-4b2e7592"><up-icon wx:if="{{n}}" class="data-v-4b2e7592" u-i="{{item.w}}" bind:__l="__l" u-p="{{n}}"></up-icon><view class="num data-v-4b2e7592">{{item.x}}</view></view></view><view class="time data-v-4b2e7592"><up-icon wx:if="{{o}}" class="data-v-4b2e7592" u-i="{{item.y}}" bind:__l="__l" u-p="{{o}}"></up-icon><view class="num data-v-4b2e7592">{{item.z}}</view></view></view></view></view></view></view></view><tab-bar wx:if="{{p}}" class="data-v-4b2e7592" u-i="4b2e7592-9" bind:__l="__l" u-p="{{p}}"></tab-bar><view class="publish data-v-4b2e7592" bindtap="{{r}}"><up-icon wx:if="{{q}}" class="data-v-4b2e7592" u-i="4b2e7592-10" bind:__l="__l" u-p="{{q}}"></up-icon></view>
|
||||
<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 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>
|
||||
+26
-20
@@ -202,7 +202,7 @@ const _sfc_main = {
|
||||
showDeal.value = true;
|
||||
dealId.value = id;
|
||||
vote.value = voteObj;
|
||||
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:500", id);
|
||||
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:502", id);
|
||||
};
|
||||
const alertDel = () => {
|
||||
showDeal.value = false;
|
||||
@@ -246,6 +246,9 @@ const _sfc_main = {
|
||||
if (options2.type == "mine") {
|
||||
isMine.value = true;
|
||||
}
|
||||
if (options2.from == "talkHome") {
|
||||
showNum.value = true;
|
||||
}
|
||||
getCaseLabel(1, 0);
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
@@ -292,7 +295,7 @@ const _sfc_main = {
|
||||
});
|
||||
};
|
||||
const queryList = (pageNo, pageSize) => {
|
||||
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:599", 666666);
|
||||
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:604", 666666);
|
||||
const params = {
|
||||
page: pageNo,
|
||||
page_size: pageSize
|
||||
@@ -340,6 +343,7 @@ const _sfc_main = {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.o(changeWord),
|
||||
b: common_vendor.p({
|
||||
searchWord: keyWord.value,
|
||||
navName: "肝胆相照病例交流园地"
|
||||
}),
|
||||
c: showNum.value
|
||||
@@ -422,44 +426,46 @@ const _sfc_main = {
|
||||
b: videoCell,
|
||||
c: common_vendor.o(videoErrorCallback, index)
|
||||
};
|
||||
})
|
||||
}),
|
||||
p: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
|
||||
} : {}, {
|
||||
p: item.label && item.label.length > 0
|
||||
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 ? {
|
||||
q: common_vendor.f(item.label, (cell, k1, i1) => {
|
||||
s: common_vendor.f(item.label, (cell, k1, i1) => {
|
||||
return {
|
||||
a: common_vendor.t(cell.label_name),
|
||||
b: cell.exchange_label_id
|
||||
};
|
||||
}),
|
||||
r: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
|
||||
t: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
|
||||
} : {}, {
|
||||
s: "b2cb78f4-9-" + i0 + ",b2cb78f4-0",
|
||||
t: common_vendor.t(item.read_num),
|
||||
v: item.collect_num > 0
|
||||
v: "b2cb78f4-9-" + i0 + ",b2cb78f4-0",
|
||||
w: common_vendor.t(item.read_num),
|
||||
x: item.collect_num > 0
|
||||
}, item.collect_num > 0 ? {
|
||||
w: "b2cb78f4-10-" + i0 + ",b2cb78f4-0",
|
||||
x: common_vendor.p({
|
||||
y: "b2cb78f4-10-" + i0 + ",b2cb78f4-0",
|
||||
z: common_vendor.p({
|
||||
name: "heart",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
y: common_vendor.t(item.collect_num)
|
||||
A: common_vendor.t(item.collect_num)
|
||||
} : {}, {
|
||||
z: item.comment_num > 0
|
||||
B: item.comment_num > 0
|
||||
}, item.comment_num > 0 ? {
|
||||
A: "b2cb78f4-11-" + i0 + ",b2cb78f4-0",
|
||||
B: common_vendor.p({
|
||||
C: "b2cb78f4-11-" + i0 + ",b2cb78f4-0",
|
||||
D: common_vendor.p({
|
||||
name: "chat",
|
||||
color: "#4B5563",
|
||||
size: "28rpx"
|
||||
}),
|
||||
C: common_vendor.t(item.comment_num)
|
||||
E: common_vendor.t(item.comment_num)
|
||||
} : {}, {
|
||||
D: "b2cb78f4-12-" + i0 + ",b2cb78f4-0",
|
||||
E: common_vendor.t(formatdate(item.push_date)),
|
||||
F: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
|
||||
G: item.exchange_id
|
||||
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
|
||||
});
|
||||
}),
|
||||
p: isMine.value,
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user