|
@@ -37,7 +37,19 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="mui-content-padded" style="padding-bottom:20px">
|
|
|
- <h5><span class="colorfe616c">*</span>上传照片<span style="font-size: 12px;" v-show="picList.length">点击图片可预览</span></h5>
|
|
|
+ <h5>
|
|
|
+ <span class="colorfe616c">*</span>上传照片
|
|
|
+ <span style="font-size: 12px;" v-show="picList.length">点击图片可预览</span>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </h5>
|
|
|
+ <!--
|
|
|
+ <div class="mui-switch" @click="switchBl=!switchBl" :class="{
|
|
|
+ 'mui-active':switchBl
|
|
|
+ }" id="mySwitch">
|
|
|
+ <div class="mui-switch-handle"></div>
|
|
|
+ </div> -->
|
|
|
<div class="fyy-upphoto" v-viewer >
|
|
|
<div class="mui-col-xs-3 fyy-upphoto-close" v-for="(item,index) in picList">
|
|
|
<img :src="item" />
|
|
@@ -120,10 +132,13 @@
|
|
|
},
|
|
|
reasonDefault: '公文申请',
|
|
|
picList: [],
|
|
|
+ switchBl:false,
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
-
|
|
|
+
|
|
|
+ //mui("#mySwitch").switch().toggle();
|
|
|
},
|
|
|
methods: {
|
|
|
getClass(ac, i) {
|
|
@@ -216,7 +231,10 @@
|
|
|
//上传图片
|
|
|
uploadpic() {
|
|
|
this.isLoading = true;
|
|
|
- WxJsApi.uploadPic(this.imgBase64,true).then(response => {
|
|
|
+ console.log((this.imgBase64.length>1024*1000*5))
|
|
|
+ console.log((this.imgBase64.length))
|
|
|
+
|
|
|
+ WxJsApi.uploadPic(this.imgBase64,(this.imgBase64.length>1024*1000*5)).then(response => {
|
|
|
this.isLoading = false;
|
|
|
|
|
|
this.picList.push(response);
|