diff --git a/api/file.js b/api/file.js index ae56ea5..3e3bea5 100644 --- a/api/file.js +++ b/api/file.js @@ -19,9 +19,7 @@ function toLogin() { function upLoad(url, data) { let Url = HTTP_REQUEST_URL_THREE, header = {} - // if (store.state.app.token) header[TOKENNAME] = 'Bearer ' + store.state.app.token; if (store.state.app.token) header[TOKENNAME] = store.state.app.token; - // header[TOKENNAME] = 'Bearer sdjflidshjgfkbdasgjmasbgvhauuiavhkesvndkaesbvkjsdbv'; return new Promise((reslove, reject) => { uni.uploadFile({ url: Url + '/api' + url, @@ -41,4 +39,6 @@ function upLoad(url, data) { export const upLoadImage = (data)=>{ return upLoad('/upload/image', data) -} \ No newline at end of file +} + +export const VIDEO_URL = HTTP_REQUEST_URL_THREE + '/api/upload/video' \ No newline at end of file diff --git a/manifest.json b/manifest.json index bee337d..d83a7f1 100644 --- a/manifest.json +++ b/manifest.json @@ -24,7 +24,8 @@ "Payment" : {}, "Barcode" : {}, "Camera" : {}, - "Maps" : {} + "Maps" : {}, + "VideoPlayer" : {} }, /* 应用发布信息 */ "distribute" : { diff --git a/subpkg/otherTask/otherTask.vue b/subpkg/otherTask/otherTask.vue index 153b0c4..fade700 100644 --- a/subpkg/otherTask/otherTask.vue +++ b/subpkg/otherTask/otherTask.vue @@ -14,37 +14,65 @@ 详情描述 - - 添加附件 - + + 添加附件 + + - + + + + + + + + + + + + + + + + + + + + + + + +