Commit 98aca68f by 胡悦

提交

1 parent f3158552
...@@ -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
}) })
......
...@@ -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": {
......
...@@ -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 16:23:30 * @LastEditTime: 2024-04-08 17: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: 286rpx; margin-top: 286rpx;
background-color: #f8f9f9; background-color: #f8f9f9;
min-height: 1154rpx; min-height: 1154rpx;
padding-bottom: 30rpx; padding-bottom: 30rpx;
.payment-title { .payment-title {
position: relative;
width: 100%; width: 100%;
height: 96rpx; height: 96rpx;
padding: 24rpx 0 26rpx; padding: 24rpx 0 26rpx;
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: 160rpx;
height: 96rpx;
font-size: 50rpx;
text-align: right;
padding-right: 20rpx;
line-height: 96rpx;
}
} }
} }
.popup-content { .popup-content {
...@@ -162,6 +179,45 @@ export default { ...@@ -162,6 +179,45 @@ export default {
color: #1a1a1a; 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 { .payment-done {
......
...@@ -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 14:51:14 * @LastEditTime: 2024-04-08 16: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 16rpx 60rpx; padding: 0 16rpx 60rpx;
margin-top: 38rpx; margin-top: 38rpx;
.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: 32rpx;
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!