Commit 98aca68f by 胡悦

提交

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