Browse Source

扫码支付页面-键盘优化改动

master
W夏日 2 years ago
parent
commit
312ca6c243
  1. 2
      agentApp/pages/allpages/index.vue
  2. 86
      agentApp/pages/payment/payment.vue

2
agentApp/pages/allpages/index.vue

@ -14,7 +14,7 @@
<text>代理商相关</text> <text>代理商相关</text>
<button @click="goPage(1)">代理商登录</button> <button @click="goPage(1)">代理商登录</button>
<button @click="goPage(2)">代理商主页</button> <button @click="goPage(2)">代理商主页</button>
<button @click="goPage(3)">支付页</button>
<button @click="goPage(11)">代理商提现</button> <button @click="goPage(11)">代理商提现</button>
<button @click="goPage(12)">代理商提现详情</button> <button @click="goPage(12)">代理商提现详情</button>
<button @click="goPage(13)">代理商提现历史</button> <button @click="goPage(13)">代理商提现历史</button>

86
agentApp/pages/payment/payment.vue

@ -29,7 +29,7 @@
</view> </view>
<view class="num"> <view class="num">
<input type="text" class="pr-num" placeholder="请输入金额" placeholder-style="color: #cfcfcf;" />
<input type="text" class="pr-num" @focus="playFoucus" placeholder="请输入金额" placeholder-style="color: #cfcfcf;" />
</view> </view>
</view> </view>
<view class="pfooter u-border-top"> <view class="pfooter u-border-top">
@ -52,55 +52,7 @@
查看活动规则 查看活动规则
</view> </view>
</view> </view>
<view class="pac-list">
<view class="pl-left">
<view class="pleft-num">
<button class="p-num">
1
</button>
<button class="p-num">
2
</button>
<button class="p-num">
3
</button>
<button class="p-num p-mar">
4
</button>
<button class="p-num p-mar">
5
</button>
<button class="p-num p-mar">
6
</button>
<button class="p-num p-mar">
7
</button>
<button class="p-num p-mar">
8
</button>
<button class="p-num p-mar">
9
</button>
</view>
<view class="pleft-btom">
<button class="p-num pu-zero">
0
</button>
<button class="p-num">
.
</button>
</view>
</view>
<view class="pl-right">
<button class="p-num pr-del">
</button>
<button class="p-num pr-sure">
确定
</button>
</view>
</view>
<u-keyboard mode="number" :closeOnClickOverlay="true" @close="close" :show="show" @confirm="confirm" @cancel="cancel"></u-keyboard>
</view> </view>
</view> </view>
</template> </template>
@ -109,11 +61,22 @@
export default { export default {
data() { data() {
return { return {
show: false
} }
}, },
methods: { methods: {
playFoucus() {
this.show = true;
},
confirm() {
this.show = false;
},
cancel() {
this.show = false;
},
close() {
this.show = false;
}
} }
} }
</script> </script>
@ -147,7 +110,7 @@ export default {
.pname { .pname {
margin-top: 15rpx; margin-top: 15rpx;
color: #454545; color: #454545;
font-size: 16px;
font-size: 32rpx;
line-height: 1.5; line-height: 1.5;
font-weight: bold; font-weight: bold;
} }
@ -155,7 +118,7 @@ export default {
.paddre { .paddre {
margin-top: 5rpx; margin-top: 5rpx;
color: #666; color: #666;
font-size: 12px;
font-size: 24rpx;
line-height: 1.5; line-height: 1.5;
} }
} }
@ -178,7 +141,7 @@ export default {
.pm-title { .pm-title {
padding-left: 40rpx; padding-left: 40rpx;
color: #454545; color: #454545;
font-size: 15px;
font-size: 30rpx;
line-height: 1.5; line-height: 1.5;
} }
@ -187,7 +150,7 @@ export default {
padding-left: 40rpx; padding-left: 40rpx;
padding-top: 40rpx; padding-top: 40rpx;
color: #666; color: #666;
font-size: 12px;
font-size: 24rpx;
line-height: 1.5; line-height: 1.5;
} }
@ -205,7 +168,7 @@ export default {
.font { .font {
height: 60rpx; height: 60rpx;
line-height: 60rpx; line-height: 60rpx;
font-size: 15px;
font-size: 30rpx;
color: #454545; color: #454545;
font-weight: bold; font-weight: bold;
} }
@ -216,7 +179,7 @@ export default {
height: 60rpx; height: 60rpx;
.pr-num { .pr-num {
font-size: 34px;
font-size: 68rpx;
line-height: 70rpx; line-height: 70rpx;
min-height: 70rpx; min-height: 70rpx;
height: 70rpx; height: 70rpx;
@ -236,7 +199,7 @@ export default {
display: flex; display: flex;
.pcfont { .pcfont {
font-size: 12px;
font-size: 24rpx;
color: #666; color: #666;
height: 30rpx; height: 30rpx;
line-height: 30rpx; line-height: 30rpx;
@ -252,7 +215,7 @@ export default {
.pc-aplay { .pc-aplay {
padding-left: 40rpx; padding-left: 40rpx;
margin-left: 20rpx; margin-left: 20rpx;
font-size: 12px;
font-size: 24rpx;
height: 30rpx; height: 30rpx;
line-height: 30rpx; line-height: 30rpx;
color: #999; color: #999;
@ -263,7 +226,7 @@ export default {
.pac-link { .pac-link {
color: #1783FF; color: #1783FF;
font-size: 12px;
font-size: 24rpx;
height: 30rpx; height: 30rpx;
line-height: 30rpx; line-height: 30rpx;
cursor: pointer; cursor: pointer;
@ -272,6 +235,7 @@ export default {
.pac-list { .pac-list {
display: flex; display: flex;
display: none;
justify-content: space-between; justify-content: space-between;
position: absolute; position: absolute;
width: 100%; width: 100%;

Loading…
Cancel
Save