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
3e4823ee
Commit
3e4823ee
authored
Mar 15, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加推荐人参数
parent
ce27a3e5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
1 deletion
+29
-1
App.vue
take-order/App.vue
+2
-1
base.vue
take-order/pages/settle/base.vue
+2
-0
file.vue
take-order/pages/settle/file.vue
+1
-0
index.vue
take-order/pages/settle/index.vue
+24
-0
No files found.
take-order/App.vue
View file @
3e4823ee
...
@@ -96,7 +96,8 @@
...
@@ -96,7 +96,8 @@
protocolContent
:
''
,
protocolContent
:
''
,
signUrl
:
''
,
signUrl
:
''
,
jumpLoginStatus
:
true
jumpLoginStatus
:
true
,
settleRecommend
:
''
},
},
...
...
take-order/pages/settle/base.vue
View file @
3e4823ee
...
@@ -321,7 +321,9 @@
...
@@ -321,7 +321,9 @@
});
});
const
params
=
{
const
params
=
{
...
baseInfo
,
...
baseInfo
,
recommender
:
getApp
().
globalData
.
settleRecommend
}
}
console
.
log
(
params
,
'params'
)
params
.
service_area
=
baseInfo
.
service_area
.
join
(
','
)
params
.
service_area
=
baseInfo
.
service_area
.
join
(
','
)
const
res
=
await
this
.
$u
.
api
.
submitSettleBaseInfo
(
params
)
const
res
=
await
this
.
$u
.
api
.
submitSettleBaseInfo
(
params
)
this
.
saving
=
false
;
this
.
saving
=
false
;
...
...
take-order/pages/settle/file.vue
View file @
3e4823ee
...
@@ -262,6 +262,7 @@
...
@@ -262,6 +262,7 @@
const
fileInfo
=
this
.
fileInfo
;
const
fileInfo
=
this
.
fileInfo
;
let
submitInfoData
=
{
let
submitInfoData
=
{
...
fileInfo
,
...
fileInfo
,
recommender
:
getApp
().
globalData
.
settleRecommend
}
}
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'加载中……'
title
:
'加载中……'
...
...
take-order/pages/settle/index.vue
View file @
3e4823ee
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
this
.
initpageData
(
e
)
this
.
startCounting
()
this
.
startCounting
()
},
},
onShow
(){
onShow
(){
...
@@ -38,6 +39,29 @@
...
@@ -38,6 +39,29 @@
uni
.
hideLoading
()
uni
.
hideLoading
()
},
},
methods
:
{
methods
:
{
initpageData
(
option
){
if
(
option
&&
option
.
q
){
const
urlLink
=
decodeURIComponent
(
option
.
q
)
const
recommender
=
this
.
getQueryVariable
(
urlLink
,
'recommender'
)
getApp
().
globalData
.
settleRecommend
=
recommender
}
},
getQueryVariable
(
url
,
key
){
const
queryStringArr
=
url
.
split
(
'?'
)
let
val
=
''
let
queryStr
=
queryStringArr
&&
queryStringArr
.
length
>
1
&&
queryStringArr
[
1
]
if
(
!
queryStr
){
return
}
let
queryArr
=
queryStr
.
split
(
"&"
);
for
(
let
i
=
0
;
i
<
queryArr
.
length
;
i
++
)
{
let
pair
=
queryArr
[
i
].
split
(
"="
);
if
(
pair
[
0
]
==
key
){
val
=
pair
[
1
];
}
}
return
val
},
async
getBaseInfo
(){
async
getBaseInfo
(){
const
app
=
getApp
()
const
app
=
getApp
()
const
callBack
=
(
vm
,
result
)
=>
{
const
callBack
=
(
vm
,
result
)
=>
{
...
...
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