Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-weapp-smartshop
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 d7cdb64d
authored
Mar 10, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
支付功能修改
1 parent
169f7a4e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
8 deletions
packagesPayment/pages/QRPayment/QRPayment.js
packagesPayment/pages/QRPayment/QRPayment.wxml
packagesPayment/pages/QRPayment/QRPayment.wxss
packagesPayment/pages/QRPayment/QRPayment.js
View file @
d7cdb64
...
...
@@ -32,7 +32,8 @@ Page({
workWechatQrcode
:
''
,
qrcodeType
:
''
,
userCollaborationName
:
''
,
userCollaborationCheck
:
false
userCollaborationCheck
:
false
,
isYqType
:
true
},
/**
...
...
@@ -120,12 +121,15 @@ Page({
const
[
key
,
val
]
=
item
.
split
(
'='
)
op
[
key
]
=
val
})
// 区分是流量方还是园区店
let
isYqType
=
Boolean
(
op
?.
merchantId
)
this
.
setData
({
...
op
...
op
,
isYqType
})
// 获取质保卡配置
this
.
getwxQrcode
()
isYqType
&&
this
.
getwxQrcode
()
//util.showLoading('加载中...')
console
.
log
(
op
)
...
...
@@ -233,18 +237,23 @@ Page({
// 支付
handlePay
()
{
let
_this
=
this
const
{
payMoney
,
merchantId
,
openId
,
unPayMoneyList
,
userCollaborationName
,
userCollaborationCheck
}
=
this
.
data
const
{
payMoney
,
merchantId
,
isYqType
,
shopMerchantId
,
openId
,
unPayMoneyList
,
userCollaborationName
,
userCollaborationCheck
}
=
this
.
data
if
(
userCollaborationName
&&
!
userCollaborationCheck
)
{
return
util
.
showToast
(
`请先阅读并勾选《
${
userCollaborationName
}
》`
)
}
if
(
payMoney
===
''
||
unPayMoneyList
.
includes
(
payMoney
))
return
// this.wxPayment(payMoney)
// console.log(Number(payMoney), '付款')
let
params
=
{
merchantId
,
openId
,
receivedMoney
:
payMoney
*
100
}
if
(
isYqType
)
{
params
.
merchantId
=
merchantId
}
else
{
params
.
shopMerchantId
=
shopMerchantId
}
util
.
showLoading
(
'加载中...'
)
// 调用支付接口生成对应的微信支付参数
// console.log(params)
...
...
packagesPayment/pages/QRPayment/QRPayment.wxml
View file @
d7cdb64
...
...
@@ -6,10 +6,14 @@
<view class="pay-header payCompanyInfo">
<!-- <view class=""> -->
<image class="shopIcon" src="../../../images/shopIcon.png" />
<view class="company">
<view class="company"
wx:if="{{isYqType}}"
>
<view class="company-name">深圳市嘀加智慧云服务有限公司</view>
<view class="company-yqd">{{merchantName}}</view>
</view>
<view class="company center" wx:else>
<!-- <view class="company-name" >深圳市嘀加智慧云服务有限公司</view> -->
<view class="company-name">{{merchantName}}</view>
</view>
<!-- 付款给企业 -->
<!-- <view class="company-name">(深圳****公司)</view> -->
<!-- </view> -->
...
...
@@ -75,7 +79,7 @@
支付成功
</view>
<view class="line" />
<view class="orderInfo">
<view
wx:if="{{isYqType}}"
class="orderInfo">
<view class="label">收款主体</view>
<view class="info">深圳市嘀加智慧云服务有限公司</view>
</view>
...
...
packagesPayment/pages/QRPayment/QRPayment.wxss
View file @
d7cdb64
...
...
@@ -25,12 +25,15 @@
margin-top: 15rpx;
font-size: 24rpx;
}
.userCollaborationContainer .radio {
margin-top: -4rpx;
}
.userCollaborationContainer .label {
min-width: 180rpx;
min-width: 180rpx;
}
.linkText {
color: #3582EE;
}
...
...
@@ -48,6 +51,14 @@
margin-left: 20rpx;
}
.pay-header .center {
/* display: flex; */
justify-content: center;
/* height: 88rpx;
flex-direction: column;
margin-left: 20rpx; */
}
.company-name {
font-size: 32rpx;
color: #333;
...
...
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