9.24上午提交
This commit is contained in:
@@ -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)}`,
|
||||
})
|
||||
}
|
||||
// 上拉加载更多
|
||||
|
||||
Reference in New Issue
Block a user