修改详情内容
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
<view class="border-bottom"></view>
|
||||
<view class="r-list">
|
||||
<view class="r-left">创建人</view>
|
||||
<view class="r-right">{{ detail.createUser.userId }}</view>
|
||||
<view class="r-right">{{ detail.createUser?detail.createUser.userId:'' }}</view>
|
||||
</view>
|
||||
<view class="border-bottom"></view>
|
||||
<view class="r-list">
|
||||
@@ -65,11 +65,10 @@ let detail = ref({})
|
||||
onLoad(async(opt) => {
|
||||
try {
|
||||
detail.value = JSON.parse(decodeURIComponent(opt.detail));
|
||||
console.log(detail.value);
|
||||
// console.log(detail.value);
|
||||
} catch (e) {
|
||||
console.error('参数解析失败', e);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
// 获取导航栏高度用于内容区域padding
|
||||
@@ -78,49 +77,10 @@ onMounted(() => {
|
||||
navBarPaddingTop.value = getNavBarPaddingTop() * 2;
|
||||
})
|
||||
|
||||
// 查询列表
|
||||
let list = ref([]);
|
||||
const mescrollRef = ref(null);
|
||||
const upOption = ref({
|
||||
page: { num: 0, size: 10 },
|
||||
noMoreSize: 5,
|
||||
empty: {
|
||||
tip: '~ 空空如也 ~',
|
||||
icon: "../../static/images/mescroll-empty.png"
|
||||
},
|
||||
textLoading: '加载中...',
|
||||
textNoMore: '已经到底了'
|
||||
});
|
||||
|
||||
const downOption = ref({
|
||||
auto: false,
|
||||
textInOffset: '下拉刷新',
|
||||
textOutOffset: '释放更新',
|
||||
textLoading: '刷新中...'
|
||||
});
|
||||
|
||||
const mescrollInit = (mescroll) => {
|
||||
console.log("mescrollInit=>")
|
||||
mescrollRef.value = mescroll;
|
||||
};
|
||||
|
||||
// 下拉刷新
|
||||
const downCallback = async (mescroll) => {
|
||||
try {
|
||||
// 查询数据
|
||||
mescroll.resetUpScroll();
|
||||
} catch (error) {
|
||||
mescroll.endErr();
|
||||
} finally {
|
||||
mescroll.endSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 跳转webview
|
||||
const handleJump = ()=>{
|
||||
let item = detail.value;
|
||||
console.log(111,item)
|
||||
uni.navigateTo({
|
||||
url: `/pages/h5-webview/h5-webview?url=${item.mobileLink}&title=${item.subject}`
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user