Commit 7a27c3ae7bdeaa517eb290286b6ae297c8c362aa
1 parent
de6a8cfe
[年会抽奖]调试拍照
Showing
1 changed file
with
1 additions
and
1 deletions
mobile.js
@@ -98,7 +98,7 @@ var action = { | @@ -98,7 +98,7 @@ var action = { | ||
98 | this.getSeatList(); | 98 | this.getSeatList(); |
99 | }, | 99 | }, |
100 | // 打开摄像头,type=1: 唤起摄像头,type=2: 打开相册 | 100 | // 打开摄像头,type=1: 唤起摄像头,type=2: 打开相册 |
101 | - openCamera: function(type = 1) { | 101 | + openCamera: function(type) { |
102 | console.log('type: ', type) | 102 | console.log('type: ', type) |
103 | var sourceType = []; | 103 | var sourceType = []; |
104 | if (type === 1) { | 104 | if (type === 1) { |