Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 854fbabf
authored
Oct 22, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix;去掉console
1 parent
3d50a774
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
pages/tab/index/index.js
pages/tab/index/index.js
View file @
854fbab
...
...
@@ -213,20 +213,11 @@ Page({
},
// 提交测算
submit
(
e
)
{
<<<<<<<
HEAD
console
.
log
(
e
)
let
sales
=
e
?
+
e
.
detail
.
value
.
sales
:
this
.
data
.
formData
.
sales
let
flow
=
e
?
+
e
.
detail
.
value
.
flow
:
this
.
data
.
formData
.
flow
const
reg
=
/^
[
1-9
]\d
*$/
console
.
log
(
reg
.
test
(
sales
),
flow
,
'---'
)
=======
console
.
log
(
e
);
let
sales
=
e
?
+
e
.
detail
.
value
.
sales
:
this
.
data
.
formData
.
sales
;
let
flow
=
e
?
+
e
.
detail
.
value
.
flow
:
this
.
data
.
formData
.
flow
;
console
.
log
(
'flow'
,
sales
,
flow
)
const
reg
=
/^
[
1-9
]\d
*$/
;
console
.
log
(
reg
.
test
(
sales
),
flow
,
"---"
);
>>>>>>>
79
abc4b9c737b04214efde25436bd78cadbc6b51
if
(
!
reg
.
test
(
sales
))
{
wx
.
showToast
({
title
:
'门店月平均新车销量应为正整数'
,
...
...
@@ -264,16 +255,6 @@ Page({
this
.
data
.
senceData
.
forEach
((
item
,
index
)
=>
{
item
.
productList
.
forEach
((
i
,
lastIndex
)
=>
{
if
(
i
.
profit
)
{
<<<<<<<
HEAD
let
sale
=
`senceData[
${
index
}
].productList[
${
lastIndex
}
].sale`
let
name
=
`senceData[
${
index
}
].productList[
${
lastIndex
}
].profit`
let
profit
=
_this
.
formula
(
i
.
productType
,
sales
,
flow
)
console
.
log
(
name
,
profit
)
this
.
setData
({
[
name
]:
profit
,
[
sale
]:
sales
})
=======
let
sale
=
`senceData[
${
index
}
].productList[
${
lastIndex
}
].sale`
;
let
name
=
`senceData[
${
index
}
].productList[
${
lastIndex
}
].profit`
;
let
flowKey
=
`senceData[
${
index
}
].productList[
${
lastIndex
}
].flow`
;
...
...
@@ -284,7 +265,6 @@ Page({
[
sale
]:
sales
,
[
flowKey
]:
flow
,
});
>>>>>>>
79
abc4b9c737b04214efde25436bd78cadbc6b51
}
})
})
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment