Commit 7c320df1 authored by Mac's avatar Mac

1

parent 587059de
......@@ -36,7 +36,8 @@
</view>
</template>
<script>
<script>
export default {
props: ["CompData",'index'],
......@@ -74,7 +75,8 @@
uni.chooseVideo({
count: 1,
sourceType: ['camera', 'album'],
success: function(res) {
success: function(res) {
console.log(res)
that.upFile(res.tempFilePath, 1)
uni.showLoading({
title: '上传中...'
......@@ -90,8 +92,10 @@
let MallBaseId = uni.getStorageSync("mall_UserInfo").MallBaseId ? uni.getStorageSync("mall_UserInfo")
.MallBaseId :
1;
let action = this.host2 + '/api/File/UploadTencent?MallBaseId=' + MallBaseId
// let action = 'http://192.168.20.214:8120/Upload/UploadBlob'
// let action = this.host2 + '/api/File/UploadTencent?MallBaseId=' + MallBaseId
var newPath = "/EduSystem/Test/Upload/" ;
let action = "http://192.168.20.214:8120/Upload/UploadBase64?filePath="+newPath
let that = this
uni.uploadFile({
url: action,
......
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