Commit 1092ea9e authored by 李俊赕's avatar 李俊赕

delete-nouse-page

parent b5a22276
...@@ -110,24 +110,27 @@ ...@@ -110,24 +110,27 @@
}, },
{ {
"path": "pages/photo/product", "path": "pages/take/detail",
"style": { "style": {
"navigationBarTitleText": "扳手会工单规范" "navigationBarTitleText": "工单详情"
} }
}, },
{ {
"path": "pages/take/detail", "path": "pages/photo/index",
"style": { "style": {
"navigationBarTitleText": "工单详情" "navigationBarTitleText": "拍照小工具首页"
}
},
{
"path": "pages/photo/product",
"style": {
"navigationBarTitleText": "扳手会工单规范"
} }
}, },
{ {
"path": "pages/photo/try", "path": "pages/photo/take",
"style": { "style": {
"navigationBarTitleText": "拍照", "navigationBarTitleText": "拍照",
"navigationBarBackgroundColor": "#333333", "navigationBarBackgroundColor": "#333333",
...@@ -136,8 +139,6 @@ ...@@ -136,8 +139,6 @@
} }
}, },
{ {
"path": "pages/photo/detail", "path": "pages/photo/detail",
"style": { "style": {
...@@ -148,10 +149,6 @@ ...@@ -148,10 +149,6 @@
} }
}, },
{ {
"path": "pages/photo/preview", "path": "pages/photo/preview",
"style": { "style": {
...@@ -177,17 +174,6 @@ ...@@ -177,17 +174,6 @@
"navigationBarTitleText": "扳手会工单规范" "navigationBarTitleText": "扳手会工单规范"
} }
}, },
{
"path": "pages/photo/take",
"style": {
"navigationBarTitleText": "拍照-ljd",
"disableScroll": true
}
},
{ {
"path": "pages/index/success", "path": "pages/index/success",
"style": { "style": {
...@@ -289,7 +275,7 @@ ...@@ -289,7 +275,7 @@
"query": "" //启动参数,在页面的onLoad函数里面得到 "query": "" //启动参数,在页面的onLoad函数里面得到
},{ },{
"name": "拍照小工具", //模式名称 "name": "拍照小工具", //模式名称
"path": "pages/photo/try", //启动页面,必选 "path": "pages/photo/take", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到 "query": "" //启动参数,在页面的onLoad函数里面得到
},{ },{
"name": "基本信息", //模式名称 "name": "基本信息", //模式名称
......
This diff is collapsed.
This diff is collapsed.
...@@ -185,10 +185,12 @@ ...@@ -185,10 +185,12 @@
getLocation() { getLocation() {
let that = this let that = this
uni.getLocation({ uni.getLocation({
type: 'wgs84', type: 'gcj02',
success: function(res) { success: function(res) {
that.longitude = res.longitude console.log(res,'res')
that.latitude = res.latitude that.longitude = parseFloat(res.longitude).toFixed(4)
that.latitude = parseFloat(res.latitude).toFixed(3)
console.log(that.longitude,'that.longitude',that.latitude,'that.latitude')
that.baiduLocation() that.baiduLocation()
}, },
fail() { fail() {
...@@ -342,7 +344,8 @@ ...@@ -342,7 +344,8 @@
//第一步: 拍照 //第一步: 拍照
takePhoto() { takePhoto() {
this.getLocation()
return
let that = this let that = this
this.ctx.takePhoto({ this.ctx.takePhoto({
quality: 'high', quality: 'high',
......
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