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 98aca68f
authored
Apr 08, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
f3158552
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
94 additions
and
30 deletions
api/module/common.js
pages.json
pages/detail/detail.vue
pages/home/home.vue
static/bank-logo.jpg
api/module/common.js
View file @
98aca68
...
@@ -12,7 +12,6 @@ module.exports = {
...
@@ -12,7 +12,6 @@ module.exports = {
findSoureList
()
{
findSoureList
()
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.smartcarlife.recepiton.soure.findSoureList'
,
method
:
'dj.api.smartcarlife.recepiton.soure.findSoureList'
,
sessionId
:
"b5e0a471-a2cd-4020-a522-72bcd68d6da7"
,
projectName
:
"boutique"
,
projectName
:
"boutique"
,
})
})
},
},
...
@@ -20,7 +19,6 @@ module.exports = {
...
@@ -20,7 +19,6 @@ module.exports = {
findPayInfo
(
data
)
{
findPayInfo
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.smartcarlife.recepiton.pay.findPayInfoConfigListByMerchantId'
,
method
:
'dj.api.smartcarlife.recepiton.pay.findPayInfoConfigListByMerchantId'
,
sessionId
:
"b5e0a471-a2cd-4020-a522-72bcd68d6da7"
,
projectName
:
"boutique"
,
projectName
:
"boutique"
,
...
data
...
data
})
})
...
...
pages.json
View file @
98aca68
...
@@ -4,17 +4,18 @@
...
@@ -4,17 +4,18 @@
},
},
"pages"
:
[
"pages"
:
[
{
{
"path"
:
"pages/
common/login
"
,
"path"
:
"pages/
home/home
"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},
},
{
{
"path"
:
"pages/
home/home
"
,
"path"
:
"pages/
common/login
"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},
},
{
{
"path"
:
"pages/detail/detail"
,
"path"
:
"pages/detail/detail"
,
"style"
:
{
"style"
:
{
...
...
pages/detail/detail.vue
View file @
98aca68
...
@@ -3,16 +3,18 @@
...
@@ -3,16 +3,18 @@
* @Author: huyue
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @Date: 2024-04-08 11:30:30
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2024-04-08 1
6:23:30
* @LastEditTime: 2024-04-08 1
7:09:42
-->
-->
<
template
>
<
template
>
<view>
<view>
详情页
详情页
<button
@
click=
"open"
>
打开弹窗
</button>
<button
@
click=
"open"
>
打开弹窗
</button>
<uni-popup
ref=
"popup"
type=
"bottom"
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-wrapper"
>
<view
class=
"popup-box"
>
<view
class=
"popup-box"
>
<view
class=
"payment-title"
>
付款二维码
</view>
<view
class=
"payment-title"
>
付款二维码
<view
class=
"icon-close"
@
click=
"close"
>
×
</view>
</view>
<view
class=
"popup-content"
>
<view
class=
"popup-content"
>
<view
class=
"tab-list"
>
<view
class=
"tab-list"
>
<view
<view
...
@@ -22,21 +24,29 @@
...
@@ -22,21 +24,29 @@
@click="handleSwitchTab(item)"
@click="handleSwitchTab(item)"
>
{{
item
.
name
}}
</view
>
{{
item
.
name
}}
</view
>
>
<!--
<view
class=
"tab-item qr-code active"
>
扫码支付
</view>
<view
class=
"tab-item corporate"
>
对公账户
</view>
-->
</view>
</view>
<view
class=
"payment-content"
>
<view
class=
"payment-content"
>
<view
v-show=
"payActive === 1"
class=
"qr-code-content"
>
<view
v-show=
"payActive === 1"
class=
"qr-code-content"
>
<
!--
<image
:src=
"payInfo.storePaymentQrcodeUrl"
mode=
"aspectFit"
/>
--
>
<
image
class=
"qr-code-img"
:src=
"payInfo.storePaymentQrcodeUrl"
mode=
"scaleToFill"
/
>
<image
<
!--
<
image
class=
"qr-code-img"
class=
"qr-code-img"
src=
"https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/11.png"
src=
"https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/11.png"
mode=
"scaleToFill"
mode=
"scaleToFill"
/>
/>
-->
<view
class=
"qr-code-info"
>
扫码付款,支持多渠道付款
</view>
<view
class=
"qr-code-info"
>
扫码付款,支持多渠道付款
</view>
</view>
</view>
<view
v-show=
"payActive === 2"
>
<view
v-show=
"payActive === 2"
class=
"corporate-content"
>
DDDD
<image
class=
"bank-logo"
src=
"https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/11.png"
mode=
"scaleToFill"
/>
<view
class=
"bank-info"
>
<view
class=
"bank-item"
>
<text
class=
"bank-label"
>
公司名称:
</text>
<view
class=
"bank-value"
>
东莞问界交付中心
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -61,6 +71,7 @@ export default {
...
@@ -61,6 +71,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
payInfo
:
{},
payInfo
:
{},
accountInfo
:
{},
payActive
:
1
,
payActive
:
1
,
paymentType
:
PAYMENT_TYPE
,
paymentType
:
PAYMENT_TYPE
,
};
};
...
@@ -79,42 +90,48 @@ export default {
...
@@ -79,42 +90,48 @@ export default {
},
},
// 查询门店支付配置
// 查询门店支付配置
async
findPayInfo
()
{
async
findPayInfo
()
{
this
.
payInfo
=
(
const
data
=
await
uni
.
$api
.
commonApi
.
findPayInfo
({
await
uni
.
$api
.
commonApi
.
findPayInfo
({
merchantId
:
44209880
,
merchantId
:
44209880
,
})
})
).
find
((
item
)
=>
item
.
paymentType
==
1
);
this
.
payInfo
=
data
.
find
((
item
)
=>
item
.
paymentType
==
1
);
this
.
accountInfo
=
data
.
find
((
item
)
=>
item
.
paymentType
==
2
);
},
},
open
()
{
open
()
{
// 通过组件定义的ref调用uni-popup方法 ,如果传入参数 ,type 属性将失效 ,仅支持 ['top','left','bottom','right','center']
// 通过组件定义的ref调用uni-popup方法 ,如果传入参数 ,type 属性将失效 ,仅支持 ['top','left','bottom','right','center']
this
.
$refs
.
popup
.
open
(
"
top
"
);
this
.
$refs
.
popup
.
open
(
"
bottom
"
);
this
.
findPayInfo
();
this
.
findPayInfo
();
},
},
close
()
{
this
.
$refs
.
popup
.
close
();
}
},
},
};
};
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
//
.popup-wrapper
{
//
position
:
relative
;
//
height
:
100vh
;
//
}
.popup-box
{
.popup-box
{
//
position
:
absolute
;
//
bottom
:
0
;
//
width
:
100%
;
//
display
:
flex
;
//
flex-direction
:
column
;
margin-top
:
286
rpx
;
margin-top
:
286
rpx
;
background-color
:
#f8f9f9
;
background-color
:
#f8f9f9
;
min-height
:
1154
rpx
;
min-height
:
1154
rpx
;
padding-bottom
:
30
rpx
;
padding-bottom
:
30
rpx
;
.payment-title
{
.payment-title
{
position
:
relative
;
width
:
100%
;
width
:
100%
;
height
:
96
rpx
;
height
:
96
rpx
;
padding
:
24
rpx
0
26
rpx
;
padding
:
24
rpx
0
26
rpx
;
text-align
:
center
;
text-align
:
center
;
border-bottom
:
1px
solid
#e8e8e8
;
border-bottom
:
1px
solid
#e8e8e8
;
.icon-close
{
position
:
absolute
;
right
:
0
;
top
:
0
;
width
:
160
rpx
;
height
:
96
rpx
;
font-size
:
50
rpx
;
text-align
:
right
;
padding-right
:
20
rpx
;
line-height
:
96
rpx
;
}
}
}
}
}
.popup-content
{
.popup-content
{
...
@@ -162,6 +179,45 @@ export default {
...
@@ -162,6 +179,45 @@ export default {
color
:
#1a1a1a
;
color
:
#1a1a1a
;
}
}
}
}
.corporate-content
{
width
:
1080
rpx
;
background-color
:
#fff
;
border-radius
:
24
rpx
;
.bank-logo
{
width
:
100%
;
height
:
136
rpx
;
}
.bank-info
{
font-weight
:
500
;
font-size
:
32
rpx
;
padding
:
27
rpx
80
rpx
39
rpx
;
.bank-item
{
display
:
flex
;
align-items
:
center
;
margin-bottom
:
16
rpx
;
&:last-child
{
margin-bottom
:
0
;
}
.bank-label
{
color
:
#6C6C70
;
line-height
:
94
rpx
;
}
.bank-value
{
box-sizing
:
border-box
;
background-color
:
#F8F9F9
;
border-radius
:
8
rpx
;
width
:
740
rpx
;
height
:
80
rpx
;
line-height
:
80
rpx
;
padding-left
:
24
rpx
;
font-weight
:
500
;
font-size
:
32
rpx
;
color
:
#1A1A1A
;
letter-spacing
:
0
;
}
}
}
}
}
}
}
}
.payment-done
{
.payment-done
{
...
...
pages/home/home.vue
View file @
98aca68
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2024-04-07 14:39:40
* @Date: 2024-04-07 14:39:40
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2024-04-08 1
4:51:14
* @LastEditTime: 2024-04-08 1
6:44:42
-->
-->
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
...
@@ -58,7 +58,15 @@
...
@@ -58,7 +58,15 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
moduleList
:
[]
moduleList
:
[
{
id
:
1
,
sort
:
1
,
thumbnail
:
"https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/11.png"
,
title
:
"问界三包政策"
,
type
:
1
,
}
]
};
};
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
...
@@ -135,7 +143,7 @@ export default {
...
@@ -135,7 +143,7 @@ export default {
}
}
.store-addr
{
.store-addr
{
display
:
flex
;
display
:
flex
;
align-items
:
flex-start
;
align-items
:
stretch
;
padding
:
0
16
rpx
60
rpx
;
padding
:
0
16
rpx
60
rpx
;
margin-top
:
38
rpx
;
margin-top
:
38
rpx
;
.icon-addr
{
.icon-addr
{
...
@@ -148,6 +156,7 @@ export default {
...
@@ -148,6 +156,7 @@ export default {
color
:
#6C6C70
;
color
:
#6C6C70
;
word-wrap
:
break-word
;
word-wrap
:
break-word
;
white-space
:
normal
;
white-space
:
normal
;
line-height
:
32
rpx
;
}
}
}
}
}
}
...
...
static/bank-logo.jpg
0 → 100644
View file @
98aca68
7.19 KB
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