Commit aa8f5daa authored by 李俊赕's avatar 李俊赕

edit-pages.json

parent 675a53c6
...@@ -288,8 +288,8 @@ ...@@ -288,8 +288,8 @@
"path": "pages/settle/index", //启动页面,必选 "path": "pages/settle/index", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到 "query": "" //启动参数,在页面的onLoad函数里面得到
},{ },{
"name": "考试", //模式名称 "name": "拍照小工具", //模式名称
"path": "pages/exam/index", //启动页面,必选 "path": "pages/photo/try", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到 "query": "" //启动参数,在页面的onLoad函数里面得到
},{ },{
"name": "基本信息", //模式名称 "name": "基本信息", //模式名称
......
<template> <template>
<view class="blackBackColor"> <view class="blackBackColor">
<camera device-position="back" flash="off" style='width:100%; height:100vh; overflow: hidden;' @error="cameraRefuse"> <camera device-position="front" flash="on" style='width:100%; height:100vh; overflow: hidden;' @error="cameraRefuse">
<cover-view class="locationView"> <cover-view class="locationView">
<cover-view class="locationText u-m-l-20 u-m-t-30">经度:{{longitude}}</cover-view> <cover-view class="locationText u-m-l-20 u-m-t-30">经度:{{longitude}}</cover-view>
<cover-view class="locationText u-m-l-20 u-m-t-10">维度:{{latitude}}</cover-view> <cover-view class="locationText u-m-l-20 u-m-t-10">维度:{{latitude}}</cover-view>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<cover-image class="backIcon" :src="icon_arrow_down" mode="" @click="simpleBack"></cover-image> <cover-image class="backIcon" :src="icon_arrow_down" mode="" @click="simpleBack"></cover-image>
<!--cover-image class='switchIcon' :src='icon_switch_white' @click="switchClick()"> </cover-image--> <!--cover-image class='switchIcon' :src='icon_switch_white' @click="switchClick()"> </cover-image-->
<cover-image class='takeIcon' :src='icon_take' @click="takePhoto()"> </cover-image> <cover-image class='takeIcon' :src='icon_take' @click="takePhoto()"> </cover-image>
<!--cover-image class='flashIcon' :src='icon_light_on_white' @click="flashClick()"> </cover-image--> <!--cover-image class='flashIcon' :src='icon_light_on_white' @click="flashClick()"> </cover-image-->
</cover-view> </cover-view>
<!--button @click="openSetting">打开设置页</button--> <!--button @click="openSetting">打开设置页</button-->
...@@ -120,6 +120,35 @@ ...@@ -120,6 +120,35 @@
}, },
simpleBack(){ simpleBack(){
const FileSystemManager = wx.getFileSystemManager()
FileSystemManager.getSavedFileList({
success (res) {
console.log(res,'res-getSavedFileList')
if (res.fileList.length > 0){
wx.removeSavedFile({
filePath: res.fileList[0].filePath,
complete (res) {
console.log(res)
}
})
}
}
})
return
wx.getSavedFileList({
success (res) {
console.log(res,'res')
if (res.fileList.length > 0){
wx.removeSavedFile({
filePath: res.fileList[0].filePath,
complete (res) {
console.log(res)
}
})
}
}
})
return
uni.navigateBack({ uni.navigateBack({
//delta: 2 //delta: 2
}); });
...@@ -397,7 +426,13 @@ ...@@ -397,7 +426,13 @@
canvasId: 'canvas', canvasId: 'canvas',
success: (res) => { success: (res) => {
self.saveToLocal(res.tempFilePath) self.saveToLocal(res.tempFilePath)
const FileSystemManager = wx.getFileSystemManager()
FileSystemManager.saveFile({
tempFilePath:res.tempFilePath,
success (res) {
console.log(res,'res-saveFile')
}
})
// this.$emit('canvasImage', res.tempFilePath); // this.$emit('canvasImage', res.tempFilePath);
// if (this.showPreview) { // if (this.showPreview) {
// this.restultImage = res.tempFilePath // this.restultImage = res.tempFilePath
......
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