Merge pull request 'gdpao' (#33) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/33
This commit was merged in pull request #33.
This commit is contained in:
@@ -234,7 +234,7 @@ export default {
|
||||
count: 1,
|
||||
sourceType: ['camera', 'album'],
|
||||
success: function(res) {
|
||||
self.src = res.tempFilePath;
|
||||
that.src = res.tempFilePath;
|
||||
const tempFilePaths = res.tempFilePath;
|
||||
uni.uploadFile({
|
||||
url: url, //仅为示例,非真实的接口地址
|
||||
@@ -247,6 +247,7 @@ export default {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
},
|
||||
success: uploadFileRes => {
|
||||
console.log(uploadFileRes);
|
||||
let obj = JSON.parse(uploadFileRes.data);
|
||||
that.videopath = obj.data.url;
|
||||
that.selectvideo = obj.data.key;
|
||||
|
||||
Reference in New Issue
Block a user