|
|
@@ -324,15 +324,11 @@
|
|
|
uni.downloadFile({
|
|
|
url: attachLink, //下载地址,后端接口获取的链接
|
|
|
success: (data) => {
|
|
|
- console.log(data.tempFilePath)
|
|
|
- console.log(JSON.stringify(data))
|
|
|
if (data.statusCode === 200) {
|
|
|
uni.saveFile({
|
|
|
//文件保存到本地
|
|
|
tempFilePath: data.tempFilePath, //临时路径
|
|
|
success: function (res) {
|
|
|
- console.log('下载成功' + res.savedFilePath)
|
|
|
- console.log(JSON.stringify(res))
|
|
|
uni.showToast({
|
|
|
icon: 'none',
|
|
|
mask: true,
|
|
|
@@ -366,10 +362,7 @@
|
|
|
if (!type) return
|
|
|
let arr = []
|
|
|
let typeArr = type.split(',')
|
|
|
- console.log(type)
|
|
|
- console.log(this.customerOptions)
|
|
|
typeArr.map((item) => {
|
|
|
- console.log(item)
|
|
|
arr.push(this.customerOptions.find((e) => e.key == item).value)
|
|
|
})
|
|
|
return arr.join(',')
|