9.24上午提交

This commit is contained in:
zoujiandong
2025-09-24 11:37:39 +08:00
parent 70eeb19867
commit bdd2ba278e
11 changed files with 180 additions and 43 deletions
+44 -1
View File
@@ -43,6 +43,39 @@
</view>
</view>
</view>
<view class="line phone" v-else-if="item.msg_type==4" @click="onDetail(item)">
<view class="custom">
<view class="title">{{JSON.parse(item.msg_content).name }}</view>
<view class="row">
<view class="left">{{ docUrl+JSON.parse(item.msg_content).path }}</view>
<view class="right">
<image :src="docUrl+JSON.parse(item.msg_content).imgpath" ></image>
</view>
</view>
</view>
</view>
<view class="line phone" v-else-if="item.msg_type==5" @click="onDetail(item)">
<view class="custom">
<view class="title">{{JSON.parse(item.msg_content).topic }}</view>
<view class="row">
<view class="left">{{ docUrl+JSON.parse(item.msg_content).path }}</view>
<view class="right">
<image :src="JSON.parse(item.msg_content).imgPath" ></image>
</view>
</view>
</view>
</view>
<view class="line phone" v-else-if="item.msg_type==6" @click="onDetail(item)">
<view class="custom">
<view class="title">{{JSON.parse(item.msg_content).topic }}</view>
<view class="row">
<view class="left">{{JSON.parse(item.msg_content).path }}</view>
<view class="right">
<image :src="JSON.parse(item.msg_content).imgPath" ></image>
</view>
</view>
</view>
</view>
</view>
<view class="card-footer">
<view class="btn-outline" @click="onResend(item)">再发一条</view>
@@ -184,8 +217,18 @@ const onRefresh = async () => {
uni.showToast({ title: '刷新成功', icon: 'none' });
};
const onDetail = (item) => {
let path='';
if(item.msg_type==3){
path=docUrl+JSON.parse(item.msg_content).path;
}else if(item.msg_type==4){
path=docUrl+JSON.parse(item.msg_content).path;
}else if(item.msg_type==5){
path=JSON.parse(item.msg_content).path;
}else if(item.msg_type==6){
path=JSON.parse(item.msg_content).path;
}
navTo({
url: `/pages_app/webview/webview?url=${encodeURIComponent(docUrl+JSON.parse(item.msg_content).path)}`,
url: `/pages_app/webview/webview?url=${encodeURIComponent(path)}`,
})
}
// 上拉加载更多