修改
This commit is contained in:
parent
164f752f52
commit
3f10822514
@ -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: '获取报告中'
|
||||||
});
|
});
|
||||||
@ -101,11 +103,12 @@
|
|||||||
fail: function(err) {
|
fail: function(err) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
message: '请求报告失败',
|
title: '请求报告失败',
|
||||||
type: 'error'
|
type: 'error'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
getPhoneNumberp(val) {
|
getPhoneNumberp(val) {
|
||||||
wx.login({
|
wx.login({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user