This commit is contained in:
闫晓茹 2023-04-19 15:34:15 +08:00
parent 5fdd773a97
commit 9207def7d5
3 changed files with 44 additions and 41 deletions

View File

@ -152,7 +152,7 @@
lookbook(item) { lookbook(item) {
if (item.existFlag == false) { if (item.existFlag == false) {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: "暂无报告", message: "暂无报告",
type: 'error', type: 'error',
duration: 1000 duration: 1000
}) })

View File

@ -24,12 +24,15 @@
{{item.totalFraction}} {{item.totalFraction}}
<span></span> <span></span>
</view> </view>
<view class="baogao"> <view class="baogao" @tap='lookbook(item)'>
<view class="image"> <view class="image">
</view> </view>
<!-- <view class="look">查看报告</view> --> <view class="look" v-if="item.existFlag==false">暂无报告</view>
<view class="look" @tap='showToast(item)' v-if="item.existFlag==false">查看报告</view> <view class="lookreport" v-else>查看报告</view>
<view class="lookreport" @tap='lookbook(item)' v-else>查看报告</view> <view class="lookreport" @tap='lookbook(item)' v-else>
<view class="image">
</view>查看报告
</view>
</view> </view>
</view> </view>
<u-toast ref="uToast" /> <u-toast ref="uToast" />
@ -70,15 +73,14 @@
}, },
methods: { methods: {
showToast() { lookbook(item) {
if (item.existFlag == false) {
this.$refs.uToast.show({ this.$refs.uToast.show({
message: "暂无报告", message: "暂无报告",
type: 'error', type: 'error',
duration: 1000 duration: 1000
}) })
}, } else {
lookbook(item) {
uni.showLoading({ uni.showLoading({
title: '获取报告中' title: '获取报告中'
}); });
@ -106,6 +108,7 @@
}) })
} }
}); });
}
}, },
getPhoneNumberp(val) { getPhoneNumberp(val) {
wx.login({ wx.login({

View File

@ -202,7 +202,7 @@
lookbook(item) { lookbook(item) {
if (item.existFlag == false) { if (item.existFlag == false) {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: "暂无报告", message: "暂无报告",
type: 'error', type: 'error',
duration: 1000 duration: 1000
}) })