Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2afb87d2
authored
May 09, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
战败订单商品bug修复
1 parent
25f2b964
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
config.js
tabWorkOrder/pages/createOrder/createOrder.js
config.js
View file @
2afb87d
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* 2测试
* 2测试
* 3生产环境
* 3生产环境
*/
*/
let
index
=
2
let
index
=
3
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
...
...
tabWorkOrder/pages/createOrder/createOrder.js
View file @
2afb87d
...
@@ -126,7 +126,10 @@ Page({
...
@@ -126,7 +126,10 @@ Page({
deleteName
.
map
(
item
=>
{
deleteName
.
map
(
item
=>
{
if
(
orderObj
[
item
])
delete
orderObj
[
item
]
if
(
orderObj
[
item
])
delete
orderObj
[
item
]
})
})
goodsList
=
[]
if
(
orderObj
.
selectPayType
!=
0
)
{
goodsList
=
[]
}
// goodsList = []
this
.
setData
({
this
.
setData
({
orderObj
,
orderObj
,
goodsList
goodsList
...
@@ -596,6 +599,8 @@ Page({
...
@@ -596,6 +599,8 @@ Page({
v
.
price
=
0
v
.
price
=
0
v
.
shopMinPrice
=
0
v
.
shopMinPrice
=
0
v
.
upgradePrice
=
0
v
.
upgradePrice
=
0
v
.
totalPrice
=
0
v
.
number
=
1
})
})
})
})
// 是战败并且只有一个商品 默认选中
// 是战败并且只有一个商品 默认选中
...
@@ -610,6 +615,7 @@ Page({
...
@@ -610,6 +615,7 @@ Page({
}
}
}
}
console
.
log
(
subOrderList
,
'subOrderList'
)
console
.
log
(
subOrderList
,
'subOrderList'
)
// debugger
this
.
setData
({
this
.
setData
({
goodsData
,
goodsData
,
goodsList
:
subOrderList
,
goodsList
:
subOrderList
,
...
...
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