修改报告bug
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import formateTime from '../../../../../utils/formate-time';
|
||||
import constant from '../../../../../utils/constant';
|
||||
import debounce from '../../../../../../utils/debounce';
|
||||
const app = getApp()
|
||||
// eslint-disable-next-line no-undef
|
||||
Component({
|
||||
@@ -189,6 +190,7 @@ Component({
|
||||
const renderDom = [{
|
||||
type: 'sugar_check',
|
||||
title:customMessage.title,
|
||||
detection_link:data.detection_link,
|
||||
disease_class_names:data.disease_class_names
|
||||
}];
|
||||
return renderDom;
|
||||
@@ -253,7 +255,11 @@ Component({
|
||||
} catch (error) {
|
||||
}
|
||||
},
|
||||
goReport(event){
|
||||
goReport:debounce(function(event){
|
||||
wx.showLoading({
|
||||
mask:true,
|
||||
title: '正在打开文件...'
|
||||
})
|
||||
const url=event.currentTarget.dataset.url;
|
||||
const randfile = new Date().getTime() + '检测报告';
|
||||
const newPath = `${wx.env.USER_DATA_PATH}/${randfile}`;
|
||||
@@ -268,9 +274,11 @@ Component({
|
||||
showMenu:true,
|
||||
filePath: newPath,
|
||||
success: function (res) {
|
||||
wx.hideLoading();
|
||||
console.log('打开文档成功')
|
||||
},
|
||||
fail:function(error){
|
||||
wx.hideLoading();
|
||||
wx.showToast({
|
||||
title:res,
|
||||
icon:"none"
|
||||
@@ -286,7 +294,7 @@ Component({
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
}),
|
||||
goSick(event){
|
||||
const url=event.currentTarget.dataset.url;
|
||||
console.log(url);
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<image class="tui-navigatorbar-back" bindtap="goBack" src="../../static/assets/ic_back_black.svg" />
|
||||
<view class="conversation-title">{{conversationName}}</view>
|
||||
</view> -->
|
||||
<view class="list-box {{ showTips && 'list-box-notips'}} || {{ showGroupTips && 'list-box-group'}} || {{ showAll && 'list-box-group-notips'}}" style="height: calc(100vh {{baseInfo.inquiry_status==4?'- 197rpx':'- 97px'}} - 100rpx - {{navbar_height}}px);"><!-- 100vh -input-area高度 - info高度 -navbar高度 -->
|
||||
<view class="list-box {{ showTips && 'list-box-notips'}} || {{ showGroupTips && 'list-box-group'}} || {{ showAll && 'list-box-group-notips'}}" style="height: calc(100vh {{baseInfo.inquiry_status==4?'- 197rpx':'- 196rpx'}} - 100rpx - {{navbar_height}}px);"><!-- 100vh -input-area高度 - info高度 -navbar高度 -->
|
||||
<!-- <view wx:if="{{showTips}}" class="safetytips-box"> -->
|
||||
<!-- <view class="safetytips">
|
||||
<text>【安全提示】本 APP 仅用于体验腾讯云即时通信 IM 产品功能,不可用于业务洽谈与拓展。请勿轻信汇款、中奖等涉及钱款等信息,勿轻易拨打陌生电话,谨防上当受骗。</text>
|
||||
@@ -64,7 +64,8 @@
|
||||
bind:handleCall="handleCall" message_rounds="{{message_rounds}}"></MessageInput>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 40px;position: fixed;bottom: 0;width: 100%;background-color: #fff;z-index: 1;" wx:if="{{baseInfo.inquiry_status==4}}">
|
||||
<!-- wx:if="{{baseInfo.inquiry_status==4}}" -->
|
||||
<view style="height: 40px;position: fixed;bottom: 0;width: 100%;background-color: #fff;z-index: 1;" >
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user