Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f0f4a9ec
authored
Apr 08, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
详细
1 parent
1104b2f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
28 deletions
pages/detail/detail.vue
pages/detail/detail.vue
View file @
f0f4a9e
...
...
@@ -2,17 +2,23 @@
* @Description:
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors:
huyue
* @LastEditTime: 2024-04-08 17:
20:55
* @LastEditors:
前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-08 17:
37:07
-->
<
template
>
<view>
详情页
<button
@
click=
"open"
>
打开弹窗
</button>
<uni-popup
ref=
"popup"
type=
"bottom"
:mask-click=
"false"
border-radius=
"16px 16px 0 0"
>
<uni-popup
ref=
"popup"
type=
"bottom"
:mask-click=
"false"
border-radius=
"16px 16px 0 0"
>
<view
class=
"popup-wrapper"
>
<view
class=
"popup-box"
>
<view
class=
"payment-title"
>
付款二维码
<view
class=
"payment-title"
>
付款二维码
<view
class=
"icon-close"
@
click=
"close"
>
×
</view>
</view>
<view
class=
"popup-content"
>
...
...
@@ -27,7 +33,11 @@
</view>
<view
class=
"payment-content"
>
<view
v-show=
"payActive === 1"
class=
"qr-code-content"
>
<image
class=
"qr-code-img"
:src=
"payInfo.storePaymentQrcodeUrl"
mode=
"scaleToFill"
/>
<image
class=
"qr-code-img"
:src=
"payInfo.storePaymentQrcodeUrl"
mode=
"scaleToFill"
/>
<!--
<image
class=
"qr-code-img"
src=
"https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/11.png"
...
...
@@ -42,9 +52,15 @@
mode=
"scaleToFill"
/>
<view
class=
"bank-info"
>
<view
class=
"bank-item"
v-for=
"item in accountList"
:key=
"item.field"
>
<text
class=
"bank-label"
>
{{
item
.
label
}}
:
</text>
<view
class=
"bank-value"
>
{{
accountInfo
[
item
.
field
]
}}
</view>
<view
class=
"bank-item"
v-for=
"item in accountList"
:key=
"item.field"
>
<text
class=
"bank-label"
>
{{
item
.
label
}}
:
</text>
<view
class=
"bank-value"
>
{{
accountInfo
[
item
.
field
]
}}
</view>
</view>
</view>
</view>
...
...
@@ -69,34 +85,36 @@ const PAYMENT_TYPE = [
];
const
ACCOUT_LIST
=
[
{
label
:
'公司名称'
,
field
:
'companyName'
label
:
"公司名称"
,
field
:
"companyName"
,
},
{
label
:
'基本账户'
,
field
:
'basicAccount'
label
:
"基本账户"
,
field
:
"basicAccount"
,
},
{
label
:
'支行账号'
,
field
:
'paymentType'
label
:
"支行账号"
,
field
:
"paymentType"
,
},
{
label
:
'一般账户'
,
field
:
'generalAccount'
label
:
"一般账户"
,
field
:
"generalAccount"
,
},
{
label
:
'支付账户'
,
field
:
'paymentAccount'
}
]
label
:
"支付账户"
,
field
:
"paymentAccount"
,
},
];
import
myClick
from
"@/mixin/click"
;
export
default
{
mixins
:
[
myClick
],
data
()
{
return
{
payInfo
:
{},
accountInfo
:
{},
payActive
:
2
,
paymentType
:
PAYMENT_TYPE
,
accountList
:
ACCOUT_LIST
accountList
:
ACCOUT_LIST
,
};
},
onLoad
(
options
)
{
...
...
@@ -114,20 +132,21 @@ export default {
// 查询门店支付配置
async
findPayInfo
()
{
const
data
=
await
uni
.
$api
.
commonApi
.
findPayInfo
({
merchantId
:
44209880
,
})
merchantId
:
44209880
,
});
this
.
payInfo
=
data
.
find
((
item
)
=>
item
.
paymentType
==
1
);
this
.
accountInfo
=
data
.
find
((
item
)
=>
item
.
paymentType
==
2
);
},
open
()
{
this
.
stopAudio
();
// 通过组件定义的ref调用uni-popup方法 ,如果传入参数 ,type 属性将失效 ,仅支持 ['top','left','bottom','right','center']
this
.
$refs
.
popup
.
open
(
"bottom"
);
//
this.$refs.popup.open("bottom");
this
.
findPayInfo
();
},
close
()
{
this
.
$refs
.
popup
.
close
();
}
}
,
},
};
</
script
>
...
...
@@ -223,12 +242,12 @@ export default {
margin-bottom
:
0
;
}
.bank-label
{
color
:
#6
C6C
70
;
color
:
#6
c6c
70
;
line-height
:
94
rpx
;
}
.bank-value
{
box-sizing
:
border-box
;
background-color
:
#
F8F9F
9
;
background-color
:
#
f8f9f
9
;
border-radius
:
8
rpx
;
width
:
740
rpx
;
height
:
80
rpx
;
...
...
@@ -236,7 +255,7 @@ export default {
padding-left
:
24
rpx
;
font-weight
:
500
;
font-size
:
32
rpx
;
color
:
#1
A1A1A
;
color
:
#1
a1a1a
;
letter-spacing
:
0
;
}
}
...
...
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