Compare commits

..

No commits in common. "9b00f8a04bb6125f69038e320312e195beacb664" and "e40f72db164387df873c999df2bf820e10621828" have entirely different histories.

18 changed files with 99 additions and 143 deletions

View File

@ -33,11 +33,6 @@
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
overflow: hidden; overflow: hidden;
} }
.ellipsis-one-lines {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
/* #ifdef H5 */ /* #ifdef H5 */
.zp-container{ .zp-container{
z-index: 0!important; z-index: 0!important;

View File

@ -88,7 +88,7 @@ const search=()=>{
}); });
}else if(props.type=='caseTalk'){ }else if(props.type=='caseTalk'){
navTo({ navTo({
url: `/pages/specialList/specialList?keyWord=${keyWord.value}&from=talkHome`, url: `/pages/specialList/specialList?keyWord=${keyWord.value}`,
}); });
} }
// if (!keyWord.value) { // if (!keyWord.value) {

View File

@ -26,9 +26,9 @@
</view> </view>
</view> </view>
<view class="list"> <view class="list">
<view class="cell" v-for="item in most_read_articles.slice(0,3)" :key="item.exchange_id" @click="goDetail(item.exchange_id)"> <view class="cell" v-for="item in most_read_articles" :key="item.exchange_id" @click="goDetail(item.exchange_id)">
<view class="circle"></view> <view class="circle"></view>
<view class="title ellipsis-one-lines">{{ item.exchange_title }}</view> <view class="title ellipsis-two-lines">{{ item.exchange_title }}</view>
</view> </view>
</view> </view>
</view> </view>
@ -62,7 +62,7 @@
>{{ item.user_name }}{{ item.hospital_name }}</view >{{ item.user_name }}{{ item.hospital_name }}</view
> >
</view> </view>
<view class="content" @click="goDetail(item.exchange_id)"> {{ htmlToText(item.exchange_content) }} </view> <view class="content" @click="goDetail(item.exchange_id)"> {{ item.exchange_content }} </view>
<view <view
class="imgbox" class="imgbox"
@click="goDetail(item.exchange_id)" @click="goDetail(item.exchange_id)"
@ -86,10 +86,9 @@
</up--image> </up--image>
</view> </view>
</view> </view>
<view class="videocon" @click="goDetail(item.exchange_id)"> <view class="videocon">
<view <view
class="imgbox" class="imgbox"
@click="goDetail(item.exchange_id)"
v-if=" v-if="
item.exchange_content_video && item.exchange_content_video &&
item.exchange_content_video.length > 0 item.exchange_content_video.length > 0
@ -120,7 +119,7 @@
<up-icon name="eye" color="#4B5563" size="28rpx"></up-icon> <up-icon name="eye" color="#4B5563" size="28rpx"></up-icon>
<view class="num">{{ item.read_num }}</view> <view class="num">{{ item.read_num }}</view>
</view> </view>
<view class="collect item" v-if="item.collect_num>0"> <view class="collect item">
<up-icon <up-icon
name="heart" name="heart"
color="#4B5563" color="#4B5563"
@ -128,7 +127,7 @@
></up-icon> ></up-icon>
<view class="num">{{ item.collect_num }}</view> <view class="num">{{ item.collect_num }}</view>
</view> </view>
<view class="chat item" v-if="item.comment_num>0"> <view class="chat item">
<up-icon name="chat" color="#4B5563" size="28rpx"></up-icon> <up-icon name="chat" color="#4B5563" size="28rpx"></up-icon>
<view class="num">{{ item.comment_num }}</view> <view class="num">{{ item.comment_num }}</view>
</view> </view>
@ -217,13 +216,6 @@ const goDetail = (id) => {
}); });
}; };
const htmlToText=(html)=>{
return html
.replace(/<[^>]*>/g, '') // HTML
.replace(/&nbsp;/gi, ' ') // HTML
.replace(/<br\s*\/?>/gi, '\n').replace(/<img\s[^>]*>/gi, '') // <img>
.replace(/<video[^>]*>[\s\S]*?/gi, ''); //
}
const goodList=()=>{ const goodList=()=>{
api.searchExchageGood({ api.searchExchageGood({
is_selected:1, is_selected:1,

View File

@ -767,13 +767,18 @@ const givePoint=()=>{
onLoad((options) => { onLoad((options) => {
id.value = options.id; id.value = options.id;
type.value = options.type; type.value = options.type;
readRecord() if (type.value == "article") {
getArticleDetail(options.id);
} else if (type.value == "video") {
getVideoDetail(options.id);
} else {
getExchangeDetail(options.id);
}
let userInfo=uni.getStorageSync('userInfo'); let userInfo=uni.getStorageSync('userInfo');
if(userInfo.user_id){ if(userInfo.user_id){
user_id.value=userInfo.user_id; user_id.value=userInfo.user_id;
} }
readRecord()
}); });
const clearComment = () => { const clearComment = () => {
parent_id.value = null; parent_id.value = null;
@ -1612,7 +1617,7 @@ const addVote = () => {
getExchangeDetail(id.value); getExchangeDetail(id.value);
}); });
}; };
const readRecord= async()=>{ const readRecord=()=>{
let flag=1; let flag=1;
if(type.value=='article'){ if(type.value=='article'){
flag=1; flag=1;
@ -1622,19 +1627,15 @@ const readRecord= async()=>{
flag=3; flag=3;
} }
const res=api.readRecord({ api.readRecord({
type:flag, type:flag,
id:id.value id:id.value
}) }).then((res)=>{
if(res){ // uni.showToast({
if (type.value == "article") { // icon: "none",
getArticleDetail(id.value); // title: "",
} else if (type.value == "video") { // });
getVideoDetail(id.value); });
} else {
getExchangeDetail(id.value);
}
}
} }
</script> </script>
@ -2031,8 +2032,6 @@ const readRecord= async()=>{
margin: 0rpx 12rpx; margin: 0rpx 12rpx;
} }
.desc { .desc {
width:100%;
overflow-x:hidden;
padding-bottom: 80rpx; padding-bottom: 80rpx;
:deep(.imgstyle){ :deep(.imgstyle){
max-width:100%; max-width:100%;

View File

@ -10,7 +10,6 @@
> >
<template #top> <template #top>
<navBarSearch <navBarSearch
:searchWord="keyWord"
:navName="'肝胆相照病例交流园地'" :navName="'肝胆相照病例交流园地'"
@changeWord="changeWord" @changeWord="changeWord"
></navBarSearch> ></navBarSearch>
@ -108,10 +107,9 @@
</up--image> </up--image>
</view> </view>
</view> </view>
<view class="videocon" @click="goDetail(item.exchange_id)"> <view class="videocon">
<view <view
class="imgbox" class="imgbox"
@click="goDetail(item.exchange_id)"
v-if=" v-if="
item.exchange_content_video && item.exchange_content_video &&
item.exchange_content_video.length > 0 item.exchange_content_video.length > 0
@ -553,9 +551,6 @@ onLoad((options) => {
if(options.type=="mine"){ if(options.type=="mine"){
isMine.value=true; isMine.value=true;
} }
if(options.from=="talkHome"){
showNum.value=true;
}
getCaseLabel(1,0) getCaseLabel(1,0)
}); });
onShow(()=>{ onShow(()=>{

View File

@ -1 +1 @@
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script setup>\r\n\timport { onLaunch,onShow,onHide } from '@dcloudio/uni-app'\r\n\tonLaunch(()=>{\r\n\t\tconsole.log('App Launch')\r\n\t});\r\n\tonShow(()=>{\r\n\t\tconsole.log('App Show')\r\n\t\t\r\n\t});\r\n\tonHide(()=>{\r\n\t\tconsole.log('App Hide')\r\n\t});\r\n</script>\r\n\r\n<style>\r\n\t\r\n\t/*每个页面公共css */\r\n\t/* #ifdef H5 */\r\n\t*{\r\n\t\tmargin: 0;\r\n\t\tpadding: 0;\r\n\t}\r\n\tuni-page-head {\r\n\t\tdisplay: none;\r\n\t}\r\n\t/* #endif */\r\n\twx-button:after{\r\n\t\tborder: none;\r\n\t}\r\n.ellipsis-two-lines {\r\n display: -webkit-box;\r\n -webkit-box-orient: vertical;\r\n -webkit-line-clamp: 2;\r\n overflow: hidden;\r\n}\r\n.ellipsis-one-lines {\r\n\toverflow: hidden;\r\n\twhite-space: nowrap;\r\n\ttext-overflow: ellipsis;\r\n}\r\n/* #ifdef H5 */\r\n.zp-container{\r\n\tz-index: 0!important;\r\n}\r\n/* #endif */\r\n.u-image{\r\n\tbackground: none!important;\r\n}\r\n.u-steps-item__line{\r\n\theight:36px!important;\r\n}\r\n</style>","import App from './App'\nimport uviewPlus, { setConfig } from 'uview-plus'\r\n// #ifdef H5\r\nimport VConsole from 'vconsole';\nconst vConsole = new VConsole();\r\n// #endif\n// #ifndef VUE3\nimport Vue from 'vue'\nimport './uni.promisify.adaptor'\nVue.config.productionTip = false\nApp.mpType = 'app'\nconst app = new Vue({\n ...App\n})\napp.$mount()\n// #endif\n// #ifdef VUE3\nimport { createSSRApp } from 'vue'\nexport function createApp() {\n const app = createSSRApp(App)\n \n app.use(uviewPlus, async() => {\t \n \t\treturn {\n \t\t\toptions: {\n \t\t\t\t// 修改$u.config对象的属性\n \t\t\t\tconfig: {\n \t\t\t\t\t// 修改默认单位为rpx相当于执行 uni.$u.config.unit = 'rpx'\n \t\t\t\t\tunit: 'rpx'\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t})\n\t\n return {\n app\n }\n}\n// #endif\n"],"names":["onLaunch","uni","onShow","onHide","createSSRApp","App","uviewPlus"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAECA,kBAAAA,SAAS,MAAI;AACZC,oBAAAA,MAAA,MAAA,OAAA,gBAAY,YAAY;AAAA,IAC1B,CAAE;AACDC,kBAAAA,OAAO,MAAI;AACVD,oBAAAA,MAAA,MAAA,OAAA,gBAAY,UAAU;AAAA,IAExB,CAAE;AACDE,kBAAAA,OAAO,MAAI;AACVF,oBAAAA,MAAA,MAAA,OAAA,iBAAY,UAAU;AAAA,IACxB,CAAE;;;;;ACOK,SAAS,YAAY;AAC1B,QAAM,MAAMG,cAAY,aAACC,SAAG;AAE5B,MAAI,IAAIC,cAAAA,WAAW,YAAW;AAC5B,WAAO;AAAA,MACN,SAAS;AAAA;AAAA,QAER,QAAQ;AAAA;AAAA,UAEP,MAAM;AAAA,QACN;AAAA,MACD;AAAA,IACD;AAAA,EACL,CAAI;AAEF,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"} {"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script setup>\r\n\timport { onLaunch,onShow,onHide } from '@dcloudio/uni-app'\r\n\tonLaunch(()=>{\r\n\t\tconsole.log('App Launch')\r\n\t});\r\n\tonShow(()=>{\r\n\t\tconsole.log('App Show')\r\n\t\t\r\n\t});\r\n\tonHide(()=>{\r\n\t\tconsole.log('App Hide')\r\n\t});\r\n</script>\r\n\r\n<style>\r\n\t\r\n\t/*每个页面公共css */\r\n\t/* #ifdef H5 */\r\n\t*{\r\n\t\tmargin: 0;\r\n\t\tpadding: 0;\r\n\t}\r\n\tuni-page-head {\r\n\t\tdisplay: none;\r\n\t}\r\n\t/* #endif */\r\n\twx-button:after{\r\n\t\tborder: none;\r\n\t}\r\n.ellipsis-two-lines {\r\n display: -webkit-box;\r\n -webkit-box-orient: vertical;\r\n -webkit-line-clamp: 2;\r\n overflow: hidden;\r\n}\r\n/* #ifdef H5 */\r\n.zp-container{\r\n\tz-index: 0!important;\r\n}\r\n/* #endif */\r\n.u-image{\r\n\tbackground: none!important;\r\n}\r\n.u-steps-item__line{\r\n\theight:36px!important;\r\n}\r\n</style>","import App from './App'\nimport uviewPlus, { setConfig } from 'uview-plus'\r\n// #ifdef H5\r\nimport VConsole from 'vconsole';\nconst vConsole = new VConsole();\r\n// #endif\n// #ifndef VUE3\nimport Vue from 'vue'\nimport './uni.promisify.adaptor'\nVue.config.productionTip = false\nApp.mpType = 'app'\nconst app = new Vue({\n ...App\n})\napp.$mount()\n// #endif\n// #ifdef VUE3\nimport { createSSRApp } from 'vue'\nexport function createApp() {\n const app = createSSRApp(App)\n \n app.use(uviewPlus, async() => {\t \n \t\treturn {\n \t\t\toptions: {\n \t\t\t\t// 修改$u.config对象的属性\n \t\t\t\tconfig: {\n \t\t\t\t\t// 修改默认单位为rpx相当于执行 uni.$u.config.unit = 'rpx'\n \t\t\t\t\tunit: 'rpx'\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t})\n\t\n return {\n app\n }\n}\n// #endif\n"],"names":["onLaunch","uni","onShow","onHide","createSSRApp","App","uviewPlus"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAECA,kBAAAA,SAAS,MAAI;AACZC,oBAAAA,MAAA,MAAA,OAAA,gBAAY,YAAY;AAAA,IAC1B,CAAE;AACDC,kBAAAA,OAAO,MAAI;AACVD,oBAAAA,MAAA,MAAA,OAAA,gBAAY,UAAU;AAAA,IAExB,CAAE;AACDE,kBAAAA,OAAO,MAAI;AACVF,oBAAAA,MAAA,MAAA,OAAA,iBAAY,UAAU;AAAA,IACxB,CAAE;;;;;ACOK,SAAS,YAAY;AAC1B,QAAM,MAAMG,cAAY,aAACC,SAAG;AAE5B,MAAI,IAAIC,cAAAA,WAAW,YAAW;AAC5B,WAAO;AAAA,MACN,SAAS;AAAA;AAAA,QAER,QAAQ;AAAA;AAAA,UAEP,MAAM;AAAA,QACN;AAAA,MACD;AAAA,IACD;AAAA,EACL,CAAI;AAEF,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -10,11 +10,6 @@ wx-button:after{
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
overflow: hidden; overflow: hidden;
} }
.ellipsis-one-lines {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.u-image{ .u-image{
background: none!important; background: none!important;
} }

View File

@ -51,7 +51,7 @@ const _sfc_main = {
}); });
} else if (props.type == "caseTalk") { } else if (props.type == "caseTalk") {
utils_navTo.navTo({ utils_navTo.navTo({
url: `/pages/specialList/specialList?keyWord=${keyWord.value}&from=talkHome` url: `/pages/specialList/specialList?keyWord=${keyWord.value}`
}); });
} }
}; };

View File

@ -66,9 +66,6 @@ const _sfc_main = {
}).catch((err) => { }).catch((err) => {
}); });
}; };
const htmlToText = (html) => {
return html.replace(/<[^>]*>/g, "").replace(/&nbsp;/gi, " ").replace(/<br\s*\/?>/gi, "\n").replace(/<img\s[^>]*>/gi, "").replace(/<video[^>]*>[\s\S]*?/gi, "");
};
const goodList = () => { const goodList = () => {
api_api.api.searchExchageGood({ api_api.api.searchExchageGood({
is_selected: 1, is_selected: 1,
@ -104,7 +101,7 @@ const _sfc_main = {
color: "#3CC7C0" color: "#3CC7C0"
}), }),
g: common_vendor.o(($event) => goList("read")), g: common_vendor.o(($event) => goList("read")),
h: common_vendor.f(most_read_articles.value.slice(0, 3), (item, k0, i0) => { h: common_vendor.f(most_read_articles.value, (item, k0, i0) => {
return { return {
a: common_vendor.t(item.exchange_title), a: common_vendor.t(item.exchange_title),
b: item.exchange_id, b: item.exchange_id,
@ -132,7 +129,7 @@ const _sfc_main = {
e: common_vendor.t(item.user_name), e: common_vendor.t(item.user_name),
f: common_vendor.t(item.hospital_name), f: common_vendor.t(item.hospital_name),
g: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id), g: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
h: common_vendor.t(htmlToText(item.exchange_content)), h: common_vendor.t(item.exchange_content),
i: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id), i: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
j: item.exchange_content_image && item.exchange_content_image.length > 0 j: item.exchange_content_image && item.exchange_content_image.length > 0
}, item.exchange_content_image && item.exchange_content_image.length > 0 ? { }, item.exchange_content_image && item.exchange_content_image.length > 0 ? {
@ -158,46 +155,28 @@ const _sfc_main = {
b: videoCell, b: videoCell,
c: common_vendor.o(videoErrorCallback, index) 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), o: item.label && item.label.length > 0
q: item.label && item.label.length > 0
}, item.label && item.label.length > 0 ? { }, item.label && item.label.length > 0 ? {
r: common_vendor.f(item.label, (cell, k1, i1) => { p: common_vendor.f(item.label, (cell, k1, i1) => {
return { return {
a: common_vendor.t(cell.label_name), a: common_vendor.t(cell.label_name),
b: cell.exchange_label_id b: cell.exchange_label_id
}; };
}), }),
s: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id) q: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
} : {}, { } : {}, {
t: "4b2e7592-5-" + i0, r: "4b2e7592-5-" + i0,
v: common_vendor.t(item.read_num), s: common_vendor.t(item.read_num),
w: item.collect_num > 0 t: "4b2e7592-6-" + i0,
}, item.collect_num > 0 ? { v: common_vendor.t(item.collect_num),
x: "4b2e7592-6-" + i0, w: "4b2e7592-7-" + i0,
y: common_vendor.p({ x: common_vendor.t(item.comment_num),
name: "heart", y: "4b2e7592-8-" + i0,
color: "#4B5563", z: common_vendor.t(formatdate(item.push_date)),
size: "28rpx" A: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
}), B: item.exchange_id
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({ l: common_vendor.p({
@ -206,19 +185,29 @@ const _sfc_main = {
size: "28rpx" size: "28rpx"
}), }),
m: common_vendor.p({ m: common_vendor.p({
name: "clock", name: "heart",
color: "#4B5563", color: "#4B5563",
size: "28rpx" size: "28rpx"
}), }),
n: common_vendor.p({ n: common_vendor.p({
value: 2 name: "chat",
color: "#4B5563",
size: "28rpx"
}), }),
o: common_vendor.p({ o: common_vendor.p({
name: "clock",
color: "#4B5563",
size: "28rpx"
}),
p: common_vendor.p({
value: 2
}),
q: common_vendor.p({
name: "plus", name: "plus",
color: "#fff", color: "#fff",
size: "18" size: "18"
}), }),
p: common_vendor.o(goPublish) r: common_vendor.o(goPublish)
}); });
}; };
} }

View File

@ -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-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> <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 File

@ -182,11 +182,18 @@ const _sfc_main = {
common_vendor.onLoad((options) => { common_vendor.onLoad((options) => {
id.value = options.id; id.value = options.id;
type.value = options.type; type.value = options.type;
readRecord(); if (type.value == "article") {
getArticleDetail(options.id);
} else if (type.value == "video") {
getVideoDetail(options.id);
} else {
getExchangeDetail(options.id);
}
let userInfo = common_vendor.index.getStorageSync("userInfo"); let userInfo = common_vendor.index.getStorageSync("userInfo");
if (userInfo.user_id) { if (userInfo.user_id) {
user_id.value = userInfo.user_id; user_id.value = userInfo.user_id;
} }
readRecord();
}); });
const clearComment = () => { const clearComment = () => {
parent_id.value = null; parent_id.value = null;
@ -320,18 +327,18 @@ const _sfc_main = {
}; };
const close = () => { const close = () => {
showCommentDialog.value = false; showCommentDialog.value = false;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:925", "close"); common_vendor.index.__f__("log", "at pages/detail/detail.vue:930", "close");
}; };
const openDeal = () => { const openDeal = () => {
showDeal.value = true; showDeal.value = true;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:930", "open"); common_vendor.index.__f__("log", "at pages/detail/detail.vue:935", "open");
}; };
const closeDeal = () => { const closeDeal = () => {
showDeal.value = false; showDeal.value = false;
}; };
const openMore = () => { const openMore = () => {
showMore.value = true; showMore.value = true;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:938", "open"); common_vendor.index.__f__("log", "at pages/detail/detail.vue:943", "open");
}; };
const closeMore = () => { const closeMore = () => {
showMore.value = false; showMore.value = false;
@ -369,12 +376,12 @@ const _sfc_main = {
success(res) { success(res) {
if (res.statusCode === 204) { if (res.statusCode === 204) {
let url = host + "/" + dir + filename + imgType; let url = host + "/" + dir + filename + imgType;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1289", url); common_vendor.index.__f__("log", "at pages/detail/detail.vue:1294", url);
imgList.value = [url]; imgList.value = [url];
} }
}, },
fail: (err) => { fail: (err) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1294", err); common_vendor.index.__f__("log", "at pages/detail/detail.vue:1299", err);
} }
}); });
}); });
@ -393,8 +400,8 @@ const _sfc_main = {
return "unknown"; return "unknown";
}; };
const afterRead = (file, lists, name) => { const afterRead = (file, lists, name) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1313", lists); common_vendor.index.__f__("log", "at pages/detail/detail.vue:1318", lists);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1314", name); common_vendor.index.__f__("log", "at pages/detail/detail.vue:1319", name);
handleUpload(file); handleUpload(file);
}; };
const delImg = (index) => { const delImg = (index) => {
@ -668,7 +675,7 @@ const _sfc_main = {
getExchangeDetail(id.value); getExchangeDetail(id.value);
}); });
}; };
const readRecord = async () => { const readRecord = () => {
let flag = 1; let flag = 1;
if (type.value == "article") { if (type.value == "article") {
flag = 1; flag = 1;
@ -677,19 +684,11 @@ const _sfc_main = {
} else { } else {
flag = 3; flag = 3;
} }
const res = api_api.api.readRecord({ api_api.api.readRecord({
type: flag, type: flag,
id: id.value id: id.value
}).then((res) => {
}); });
if (res) {
if (type.value == "article") {
getArticleDetail(id.value);
} else if (type.value == "video") {
getVideoDetail(id.value);
} else {
getExchangeDetail(id.value);
}
}
}; };
return (_ctx, _cache) => { return (_ctx, _cache) => {
return common_vendor.e({ return common_vendor.e({

View File

@ -401,8 +401,6 @@
margin: 0rpx 12rpx; margin: 0rpx 12rpx;
} }
.desc.data-v-eca06f3c { .desc.data-v-eca06f3c {
width: 100%;
overflow-x: hidden;
padding-bottom: 80rpx; padding-bottom: 80rpx;
} }
.desc.data-v-eca06f3c .imgstyle { .desc.data-v-eca06f3c .imgstyle {

View File

@ -202,7 +202,7 @@ const _sfc_main = {
showDeal.value = true; showDeal.value = true;
dealId.value = id; dealId.value = id;
vote.value = voteObj; vote.value = voteObj;
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:502", id); common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:500", id);
}; };
const alertDel = () => { const alertDel = () => {
showDeal.value = false; showDeal.value = false;
@ -246,9 +246,6 @@ const _sfc_main = {
if (options2.type == "mine") { if (options2.type == "mine") {
isMine.value = true; isMine.value = true;
} }
if (options2.from == "talkHome") {
showNum.value = true;
}
getCaseLabel(1, 0); getCaseLabel(1, 0);
}); });
common_vendor.onShow(() => { common_vendor.onShow(() => {
@ -295,7 +292,7 @@ const _sfc_main = {
}); });
}; };
const queryList = (pageNo, pageSize) => { const queryList = (pageNo, pageSize) => {
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:604", 666666); common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:599", 666666);
const params = { const params = {
page: pageNo, page: pageNo,
page_size: pageSize page_size: pageSize
@ -343,7 +340,6 @@ const _sfc_main = {
return common_vendor.e({ return common_vendor.e({
a: common_vendor.o(changeWord), a: common_vendor.o(changeWord),
b: common_vendor.p({ b: common_vendor.p({
searchWord: keyWord.value,
navName: "肝胆相照病例交流园地" navName: "肝胆相照病例交流园地"
}), }),
c: showNum.value c: showNum.value
@ -426,46 +422,44 @@ const _sfc_main = {
b: videoCell, b: videoCell,
c: common_vendor.o(videoErrorCallback, index) 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), p: item.label && item.label.length > 0
r: item.label && item.label.length > 0
}, item.label && item.label.length > 0 ? { }, item.label && item.label.length > 0 ? {
s: common_vendor.f(item.label, (cell, k1, i1) => { q: common_vendor.f(item.label, (cell, k1, i1) => {
return { return {
a: common_vendor.t(cell.label_name), a: common_vendor.t(cell.label_name),
b: cell.exchange_label_id b: cell.exchange_label_id
}; };
}), }),
t: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id) r: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
} : {}, { } : {}, {
v: "b2cb78f4-9-" + i0 + ",b2cb78f4-0", s: "b2cb78f4-9-" + i0 + ",b2cb78f4-0",
w: common_vendor.t(item.read_num), t: common_vendor.t(item.read_num),
x: item.collect_num > 0 v: item.collect_num > 0
}, item.collect_num > 0 ? { }, item.collect_num > 0 ? {
y: "b2cb78f4-10-" + i0 + ",b2cb78f4-0", w: "b2cb78f4-10-" + i0 + ",b2cb78f4-0",
z: common_vendor.p({ x: common_vendor.p({
name: "heart", name: "heart",
color: "#4B5563", color: "#4B5563",
size: "28rpx" size: "28rpx"
}), }),
A: common_vendor.t(item.collect_num) y: common_vendor.t(item.collect_num)
} : {}, { } : {}, {
B: item.comment_num > 0 z: item.comment_num > 0
}, item.comment_num > 0 ? { }, item.comment_num > 0 ? {
C: "b2cb78f4-11-" + i0 + ",b2cb78f4-0", A: "b2cb78f4-11-" + i0 + ",b2cb78f4-0",
D: common_vendor.p({ B: common_vendor.p({
name: "chat", name: "chat",
color: "#4B5563", color: "#4B5563",
size: "28rpx" size: "28rpx"
}), }),
E: common_vendor.t(item.comment_num) C: common_vendor.t(item.comment_num)
} : {}, { } : {}, {
F: "b2cb78f4-12-" + i0 + ",b2cb78f4-0", D: "b2cb78f4-12-" + i0 + ",b2cb78f4-0",
G: common_vendor.t(formatdate(item.push_date)), E: common_vendor.t(formatdate(item.push_date)),
H: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id), F: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
I: item.exchange_id G: item.exchange_id
}); });
}), }),
p: isMine.value, p: isMine.value,

File diff suppressed because one or more lines are too long