index.vue
3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<template>
<view class="PaymentMethodPop">
<u-popup :show="show" bgColor="transparent" mode="bottom">
<view class="PaymentMethodPop-c">
<view class="PaymentMethodPop-c-1">选择支付方式</view>
<view class="PaymentMethodPop-c-2">
<u-radio-group v-model="value" placement="column">
<view class="PaymentMethodPop-c-2-i">
<view class="PaymentMethodPop-c-2-i-l">
<image class="PaymentMethodPop-c-2-i-l-i" src="@/static/imagesV2/icon53.png" mode="widthFix"></image>
<text class="PaymentMethodPop-c-2-i-l-r">微信支付</text>
</view>
<view class="PaymentMethodPop-c-2-i-r">
<u-radio :name="PAYMENTTYPE.WECHAT"></u-radio>
</view>
</view>
<view class="PaymentMethodPop-c-2-i">
<view class="PaymentMethodPop-c-2-i-l">
<image class="PaymentMethodPop-c-2-i-l-i" src="@/static/imagesV2/icon54.png" mode="widthFix"></image>
<text class="PaymentMethodPop-c-2-i-l-r">支付宝支付</text>
</view>
<view class="PaymentMethodPop-c-2-i-r">
<u-radio :name="PAYMENTTYPE.ALIPAY"></u-radio>
</view>
</view>
</u-radio-group>
</view>
<view class="PaymentMethodPop-c-3">
<view class="PaymentMethodPop-c-3-l" @click="cancel">
取消
</view>
<view class="PaymentMethodPop-c-3-r" @click="confirm">
确定
</view>
</view>
</view>
</u-popup>
</view>
</template>
<script>
import { PAYMENTTYPE } from "@/emit/index.js"
export default {
name: 'PaymentMethodPop',
data() {
return {
PAYMENTTYPE,
value: PAYMENTTYPE.WECHAT,
show: false
}
},
methods: {
open() {
this.show = true
},
cancel() {
this.show = false
this.$emit('cancel')
},
confirm() {
this.show = false
this.$emit('confirm')
}
}
}
</script>
<style lang="scss" scoped>
.PaymentMethodPop-c{
padding-bottom: calc(env(safe-area-inset-bottom));
border-radius: 20rpx 20rpx 0 0;
background-color: #fff;
.PaymentMethodPop-c-1{
padding-top: 60rpx;
font-size: 34rpx;
color: #0A0A0A;
text-align: center;
font-weight: bold;
}
.PaymentMethodPop-c-2{
margin-top: 100rpx;
padding: 0 40rpx;
&:last-child{
border-bottom: none;
}
.PaymentMethodPop-c-2-i{
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1rpx #E6E6E6 solid;
height: 110rpx;
.PaymentMethodPop-c-2-i-l{
display: flex;
align-items: center;
.PaymentMethodPop-c-2-i-l-i{
height: 50rpx;
width: 50rpx;
}
.PaymentMethodPop-c-2-i-l-r{
font-size: 28rpx;
color: #151E31;
margin-left: 17rpx;
}
}
}
}
.PaymentMethodPop-c-3{
display: flex;
justify-content: space-between;
padding: 0 45rpx;
margin-top: 80rpx;
.PaymentMethodPop-c-3-l{
height: 78rpx;
border-radius: 200rpx;
width: 312rpx;
text-align: center;
line-height: 78rpx;
background-color: #EBEBEB;
}
.PaymentMethodPop-c-3-r{
height: 78rpx;
border-radius: 200rpx;
width: 312rpx;
text-align: center;
line-height: 78rpx;
background-color: #2D81FF;
color: #FFFFFF;
}
}
}
</style>