修改报告bug
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { API } from './../../../utils/network/api'
|
||||
import debounce from './../../../utils/debounce'
|
||||
let api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
@@ -19,7 +20,11 @@ Page({
|
||||
})
|
||||
|
||||
},
|
||||
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}`;
|
||||
@@ -34,9 +39,11 @@ Page({
|
||||
showMenu:true,
|
||||
filePath: newPath,
|
||||
success: function (res) {
|
||||
console.log('打开文档成功')
|
||||
console.log('打开文档成功');
|
||||
wx.hideLoading()
|
||||
},
|
||||
fail:function(error){
|
||||
wx.hideLoading()
|
||||
wx.showToast({
|
||||
title:res,
|
||||
icon:"none"
|
||||
@@ -52,7 +59,7 @@ Page({
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
}),
|
||||
formatImgList(){
|
||||
let diagnose_images = this.data.case_detail.diagnose_images?this.data.case_detail.diagnose_images:[];
|
||||
let img_list = [];
|
||||
|
||||
Reference in New Issue
Block a user