Commit 50a5f52e by 刘海龙

1111

parent 27b33166
...@@ -69,8 +69,8 @@ ...@@ -69,8 +69,8 @@
<input id="file2" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload"/> <input id="file2" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload"/>
<input id="file3" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload"/> --> <input id="file3" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload"/> -->
<input id="file" name="image" type="file" v-if="isFile" style="display: none;" accept="image/*" @change="upload"/> <input id="file" name="image" type="file" v-if="isFile" style="display: none;" accept="image/*" @change="upload"/>
<input id="file2" name="image" type="file" v-if="isFile" style="display: none;" accept="image/*" @change="upload"/> <input id="file2" name="image" type="file" v-if="isFile2" style="display: none;" accept="image/*" @change="upload"/>
<input id="file3" name="image" type="file" v-if="isFile" style="display: none;" accept="image/*" @change="upload"/> <input id="file3" name="image" type="file" v-if="isFile3" style="display: none;" accept="image/*" @change="upload"/>
</div> </div>
<!-- 按钮 --> <!-- 按钮 -->
...@@ -106,6 +106,8 @@ ...@@ -106,6 +106,8 @@
uploadName: '', uploadName: '',
isSubmit: true, isSubmit: true,
isFile: true, isFile: true,
isFile2: true,
isFile3: true,
upload_image: '__PUBLIC__/appapi/img/iconCard-1.png', upload_image: '__PUBLIC__/appapi/img/iconCard-1.png',
upload_image2: '__PUBLIC__/appapi/img/iconCard-2.png', upload_image2: '__PUBLIC__/appapi/img/iconCard-2.png',
upload_image3: '__PUBLIC__/appapi/img/iconCard-3.png', upload_image3: '__PUBLIC__/appapi/img/iconCard-3.png',
...@@ -198,6 +200,7 @@ ...@@ -198,6 +200,7 @@
if (_this.uploadName === 'front_view') { if (_this.uploadName === 'front_view') {
id = 'file'; id = 'file';
saveName = 'auth_' + uid + '_1'; saveName = 'auth_' + uid + '_1';
console.log(11111)
} }
if (_this.uploadName === 'back_view') { if (_this.uploadName === 'back_view') {
id = 'file2'; id = 'file2';
...@@ -231,11 +234,11 @@ ...@@ -231,11 +234,11 @@
} }
if (_this.uploadName === 'back_view') { if (_this.uploadName === 'back_view') {
_this.form.back_view = str.data.url; _this.form.back_view = str.data.url;
_this.isFile = true _this.isFile2 = true
} }
if (_this.uploadName === 'handset_view') { if (_this.uploadName === 'handset_view') {
_this.form.handset_view = str.data.url; _this.form.handset_view = str.data.url;
_this.isFile = true _this.isFile3 = true
} }
_this.checkSubmit(); _this.checkSubmit();
layer.close(loadingIndex); layer.close(loadingIndex);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment