diff --git a/pages.json b/pages.json index 86d79ec9bd358451bd54b96cbc02f90d1ecfab1a..ddaad60e032b36c67c58200d12a29f90999a26be 100644 --- a/pages.json +++ b/pages.json @@ -618,6 +618,54 @@ "navigationBarTitleText": "图片" } }, + // #ifdef APP-ANDROID + { + "path" : "pages/API/get-image-info/get-image-info", + "style" : + { + "navigationBarTitleText" : "获取图片信息" + } + }, + { + "path" : "pages/API/compress-image/compress-image", + "style" : + { + "navigationBarTitleText" : "压缩图片" + } + }, + // #endif + // #ifdef APP + // { + // "path" : "pages/API/choose-video/choose-video", + // "style" : + // { + // "navigationBarTitleText" : "拍摄视频或从相册中选择视频" + // } + // }, + { + "path" : "pages/API/save-video-to-photos-album/save-video-to-photos-album", + "style" : + { + "navigationBarTitleText" : "保存视频到相册" + } + }, + // #endif + // #ifdef APP-ANDROID + { + "path" : "pages/API/get-video-info/get-video-info", + "style" : + { + "navigationBarTitleText" : "获取视频信息" + } + }, + // { + // "path" : "pages/API/compress-video/compress-video", + // "style" : + // { + // "navigationBarTitleText" : "压缩视频" + // } + // }, + // #endif { "path": "pages/API/get-network-type/get-network-type", "style": { diff --git a/pages/API/compress-image/compress-image.uvue b/pages/API/compress-image/compress-image.uvue new file mode 100644 index 0000000000000000000000000000000000000000..3092d6880ec32167551dc5f4fcba49f0ef6f648f --- /dev/null +++ b/pages/API/compress-image/compress-image.uvue @@ -0,0 +1,134 @@ + + + + + diff --git a/pages/API/get-image-info/get-image-info.uvue b/pages/API/get-image-info/get-image-info.uvue new file mode 100644 index 0000000000000000000000000000000000000000..152bbd94f34df9025c34a13260283bae8a8787dd --- /dev/null +++ b/pages/API/get-image-info/get-image-info.uvue @@ -0,0 +1,85 @@ + + + + + diff --git a/pages/API/get-video-info/get-video-info.uvue b/pages/API/get-video-info/get-video-info.uvue new file mode 100644 index 0000000000000000000000000000000000000000..18095fa9b99cd0d283be6ddafe83ab735ffc5822 --- /dev/null +++ b/pages/API/get-video-info/get-video-info.uvue @@ -0,0 +1,57 @@ + + + + + diff --git a/pages/API/save-image-to-photos-album/save-image-to-photos-album.uvue b/pages/API/save-image-to-photos-album/save-image-to-photos-album.uvue index da079fcc214d386239da421226838cfd054233c5..69321ff1b08aa6f7921672a47a021cd149c97b60 100644 --- a/pages/API/save-image-to-photos-album/save-image-to-photos-album.uvue +++ b/pages/API/save-image-to-photos-album/save-image-to-photos-album.uvue @@ -2,8 +2,11 @@ - - + + + + + @@ -13,6 +16,7 @@ export default { data() { return { + title: "saveImageToPhotosAlbum" } }, methods: { @@ -39,4 +43,13 @@ diff --git a/pages/API/save-video-to-photos-album/save-video-to-photos-album.uvue b/pages/API/save-video-to-photos-album/save-video-to-photos-album.uvue new file mode 100644 index 0000000000000000000000000000000000000000..8bc25ff5864cfc4b2bf476b4c9b10b2c519d6bd8 --- /dev/null +++ b/pages/API/save-video-to-photos-album/save-video-to-photos-album.uvue @@ -0,0 +1,67 @@ + + + + + diff --git a/pages/tabBar/API.uvue b/pages/tabBar/API.uvue index cbe5010ee7fc2395419002db2bb1fd718be5f761..0178847e89a45ab80d9a707e9dcb42df7f9c2d82 100644 --- a/pages/tabBar/API.uvue +++ b/pages/tabBar/API.uvue @@ -334,7 +334,7 @@ name: '媒体', pages: [ { - name: "拍照和相册选择", + name: "拍摄图片或从相册中选择图片", url: 'choose-image' }, { @@ -348,6 +348,36 @@ url: 'save-image-to-photos-album' }, // #endif + // #ifdef APP-ANDROID + { + name: "获取图片信息", + url: 'get-image-info' + }, + { + name: "压缩图片", + url: 'compress-image' + }, + // #endif + // #ifdef APP + // { + // name: "拍摄视频或从相册中选择视频", + // url: 'choose-video' + // }, + { + name: "保存视频到相册", + url: 'save-video-to-photos-album' + }, + // #endif + // #ifdef APP-ANDROID + { + name: "获取视频信息", + url: 'get-video-info' + }, + // { + // name: "压缩视频", + // url: 'compress-video' + // }, + // #endif /* { name: "图片选择和拍照", url: "image",