guoshilong
2022-10-08 830ce15ad9894bdfd442ecd3e8051bd0cd79836b
pages/eventgm/eventsReported.vue
@@ -40,7 +40,13 @@
         </u-action-sheet> -->
         
         <u-form-item label-position="top" label-width="25%" label="图片上传:">
            <evan-upload ref="evanUpload" :imgLimit="4" :options="uploadOption" @on-upload="onUpload"></evan-upload>
            <evan-upload ref="evanUpload"
            :usePreview="true"
            :imgLimit="4"
            :options="uploadOption"
            @on-upload="onUpload"
            @on-pre-video="onPreVideo"
         ></evan-upload>
         </u-form-item>
         
         <u-form-item label-position="top" label="备注:">
@@ -123,6 +129,7 @@
      this.getHeader()
   },
   methods:{
      //获取头部
      getHeader(){
         let accessToken = uni.getStorageSync('accessToken');
         var myHeader = {}
@@ -187,6 +194,7 @@
         this.form.sourceText = this.sourceList[index].text
         this.form.source = this.sourceList[index].value
      },
      //表单提交
      submit(){
         this.$refs.uForm.validate(valid => {
            if (valid) {
@@ -226,7 +234,8 @@
               e.thumbnail = res.data.link
            })
         }
      },
      onPreVideo(res){
      }
   }
};