Commit 66c5a80e88acaf312a0e63ca4bda3e2177d195c8
1 parent
98c4a480
传递证书的base到原生方法
Showing
1 changed file
with
5 additions
and
1 deletions
src/pages/test.vue
| @@ -50,11 +50,15 @@ | @@ -50,11 +50,15 @@ | ||
| 50 | let r = type.match(/png|jpeg|bmp|gif/)[0]; | 50 | let r = type.match(/png|jpeg|bmp|gif/)[0]; |
| 51 | return 'image/' + r; | 51 | return 'image/' + r; |
| 52 | }; | 52 | }; |
| 53 | -// imgData = imgData.replace(_fixType(type),''); | 53 | + imgData = imgData.replace(_fixType(type),''); |
| 54 | let filename = "证书" + '.' + type; | 54 | let filename = "证书" + '.' + type; |
| 55 | if(that.isCNLive.value){ | 55 | if(that.isCNLive.value){ |
| 56 | that.getimgUrl(imgData) | 56 | that.getimgUrl(imgData) |
| 57 | }else { | 57 | }else { |
| 58 | + // 判断在ios内 | ||
| 59 | +// if(that.isiPhone.value){ | ||
| 60 | +// imgData = imgData.replace("data:;base64,",""); | ||
| 61 | +// } | ||
| 58 | that.saveFile(imgData,filename); | 62 | that.saveFile(imgData,filename); |
| 59 | } | 63 | } |
| 60 | 64 |