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 c9ceac10
authored
Jun 13, 2023
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
ea4bf583
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
packageCrowdFunding/components/activityDetail/activityDetail.wxss
packageCrowdFunding/components/activityDetail/index.wxs
packageCrowdFunding/pages/activityPay/activityPay.js
packageCrowdFunding/components/activityDetail/activityDetail.wxss
View file @
c9ceac1
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
.order-box {
.order-box {
background-color: #fdfdfd;
background-color: #fdfdfd;
height: calc(100% - 104rpx - 104rpx - 52rpx -
2
0rpx);
height: calc(100% - 104rpx - 104rpx - 52rpx -
3
0rpx);
}
}
.list {
.list {
...
...
packageCrowdFunding/components/activityDetail/index.wxs
View file @
c9ceac1
var priceFilter = function (num) {
var priceFilter = function (num) {
// 处理金额分转元并补零
// 处理金额分转元并补零
var pow = Math.pow(10, 2)
var pow = Math.pow(10, 2)
console.log((Math.round(num / 100 * pow) / pow).toFixed(2), '-------')
return (Math.round(num / 100 * pow) / pow).toFixed(2)
return (Math.round(num / 100 * pow) / pow).toFixed(2)
}
}
module.exports = {
module.exports = {
...
...
packageCrowdFunding/pages/activityPay/activityPay.js
View file @
c9ceac1
...
@@ -224,20 +224,19 @@ Page({
...
@@ -224,20 +224,19 @@ Page({
// 多商品切换商品 重新生成支付订单
// 多商品切换商品 重新生成支付订单
changeGoods
(
e
)
{
changeGoods
(
e
)
{
if
(
time
)
clearInterval
(
time
)
if
(
time
)
clearInterval
(
time
)
let
{
orderCode
,
orderPaySource
,
selectPayType
,
textAreaValue
}
=
this
.
data
let
{
orderCode
,
orderPaySource
,
selectPayType
,
orderDetail
}
=
this
.
data
let
value
=
e
?.
detail
||
{}
let
value
=
e
?.
detail
||
{}
let
{
accountName
}
=
wx
.
$util
.
getUserInfo
()
let
{
accountName
}
=
wx
.
$util
.
getUserInfo
()
this
.
setData
({
this
.
setData
({
shopmallGoodsId
:
value
.
specialGoodsId
shopmallGoodsId
:
value
.
specialGoodsId
})
})
if
(
selectPayType
==
2
)
return
// 门店收款 切换商品无需创建订单
let
params
=
{
let
params
=
{
subOrderCode
:
orderCode
,
subOrderCode
:
orderCode
,
orderPaySource
:
orderPaySource
,
// 订单支付源 (1.正常付尾款,2关联尾款单,3未收款新增,4已收款补录)
orderPaySource
:
orderPaySource
,
// 订单支付源 (1.正常付尾款,2关联尾款单,3未收款新增,4已收款补录)
shopmallGoodsId
:
value
.
specialGoodsId
,
shopmallGoodsId
:
value
.
specialGoodsId
,
selectPayType
:
selectPayType
,
// 支付方式(1:线上微信支付,2:线下收款,3:POS机收款, 4:支付宝支付
)
selectPayType
:
selectPayType
==
2
?
1
:
selectPayType
,
// 支付方式(1:线上微信支付,2:线下收款,3:POS机收款, 4:支付宝支付) 选择门店收款时切换商品 以微信支付方式创建子订单(无交易流水号
)
updatedBy
:
accountName
,
updatedBy
:
accountName
,
remark
:
textAreaValue
// 备注
remark
:
orderDetail
?.
remark
// 备注
}
}
wx
.
$util
.
showLoading
()
wx
.
$util
.
showLoading
()
createPayOrderAPI
(
params
).
then
(
async
res
=>
{
createPayOrderAPI
(
params
).
then
(
async
res
=>
{
...
...
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