Commit 7c320df1 authored by Mac's avatar Mac

1

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