Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
和慭琛
take_order
Commits
3de3fa98
Commit
3de3fa98
authored
Mar 25, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加global参数
parent
8a2015b3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
6 deletions
+31
-6
App.vue
take-order/App.vue
+12
-1
pages.json
take-order/pages.json
+2
-2
list.vue
take-order/pages/photo/list.vue
+9
-3
product.vue
take-order/pages/photo/product.vue
+6
-0
take.vue
take-order/pages/photo/take.vue
+2
-0
No files found.
take-order/App.vue
View file @
3de3fa98
...
@@ -100,7 +100,18 @@
...
@@ -100,7 +100,18 @@
settleRecommend
:
''
,
settleRecommend
:
''
,
navHeight
:
0
,
//导航栏高度
navHeight
:
0
,
//导航栏高度
rpxScreenHeight
:
0
,
// 照相视框高度
rpxScreenHeight
:
0
,
// 照相视框高度
//拍照相关数据
photo
:{
product
:{
brandId
:
''
,
// 品牌id
brandName
:
''
,
// 品牌名称
classifyId
:
''
,
// 分类id
systemId
:
''
,
// 系统id
},
productList
:[],
currentItem
:
null
,
// 选择的某一项
}
},
},
onLaunch
:
function
()
{
onLaunch
:
function
()
{
...
...
take-order/pages.json
View file @
3de3fa98
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
{
{
"path"
:
"pages/photo/product"
,
"path"
:
"pages/photo/product"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"
扳手会工单规范
"
,
"navigationBarTitleText"
:
"
拍照小工具
"
,
"navigationBarBackgroundColor"
:
"#FFFFFF"
,
"navigationBarBackgroundColor"
:
"#FFFFFF"
,
"backgroundColor"
:
"#F4F5F7"
"backgroundColor"
:
"#F4F5F7"
}
}
...
@@ -288,7 +288,7 @@
...
@@ -288,7 +288,7 @@
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},{
},{
"name"
:
"拍照-规范"
,
//模式名称
"name"
:
"拍照-规范"
,
//模式名称
"path"
:
"pages/photo/
take
"
,
//启动页面,必选
"path"
:
"pages/photo/
product
"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},{
},{
"name"
:
"基本信息"
,
//模式名称
"name"
:
"基本信息"
,
//模式名称
...
...
take-order/pages/photo/list.vue
View file @
3de3fa98
...
@@ -97,9 +97,10 @@
...
@@ -97,9 +97,10 @@
},
},
handleData
:
function
(
res
)
{
handleData
:
function
(
res
)
{
const
globalData
=
getApp
().
globalData
globalData
.
photo
.
productList
=
res
.
result
this
.
dataList
=
res
.
result
this
.
dataList
=
res
.
result
this
.
dataList
.
forEach
(
item
=>
{
this
.
dataList
.
forEach
(
item
=>
{
item
.
list
.
forEach
(
subItem
=>
{
item
.
list
.
forEach
(
subItem
=>
{
...
@@ -139,7 +140,12 @@
...
@@ -139,7 +140,12 @@
//右侧点击
//右侧点击
rightItemClick
:
function
(
item
,
ikey
)
{
rightItemClick
:
function
(
item
,
ikey
)
{
console
.
log
(
item
,
'item'
)
const
photo
=
getApp
().
globalData
.
photo
photo
.
currentItem
=
item
uni
.
navigateTo
({
url
:
'/pages/photo/take'
})
// // for (let i = 0; i
<
this
.
rightList
.
length
;
i
++
)
{
// // for (let i = 0; i
<
this
.
rightList
.
length
;
i
++
)
{
// // var subItem = this.rightList[i]
// // var subItem = this.rightList[i]
// // if(i == ikey){
// // if(i == ikey){
...
...
take-order/pages/photo/product.vue
View file @
3de3fa98
...
@@ -141,6 +141,12 @@
...
@@ -141,6 +141,12 @@
// 点击下一步
// 点击下一步
handleClick
()
{
handleClick
()
{
// 点击下一步设置全局拍照品牌品类
const
globalData
=
getApp
().
globalData
let
keys
=
[
'brandId'
,
'brandName'
,
'classifyId'
,
'systemId'
]
keys
.
map
(
key
=>
{
globalData
.
photo
.
product
[
key
]
=
this
[
key
]
||
this
.
param
[
key
]
})
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/photo/list'
+
url
:
'/pages/photo/list'
+
'?brandId='
+
this
.
param
.
brandId
+
'?brandId='
+
this
.
param
.
brandId
+
...
...
take-order/pages/photo/take.vue
View file @
3de3fa98
...
@@ -79,6 +79,8 @@
...
@@ -79,6 +79,8 @@
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
const
photo
=
getApp
().
globalData
.
photo
console
.
log
(
photo
,
'global-photo'
)
getApp
().
trackPage
(
'拍照页'
)
getApp
().
trackPage
(
'拍照页'
)
// this.ctx = uni.createCameraContext();
// this.ctx = uni.createCameraContext();
this
.
waterInfo
.
date
=
this
.
getTime
()
this
.
waterInfo
.
date
=
this
.
getTime
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment