Commit 77a0a556 authored by 潘永坪's avatar 潘永坪

扫码支付页面优化

parent 700f5ad9
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</view> </view>
<view class="banner"> <view class="banner">
<u-swiper :list="list" @change="e => currentNum = e.current" indicatorStyle="right: 20px" height="300" circular> <u-swiper :list="list" @change="e => currentNum = e.current" indicatorStyle="right: 20px" height="300" circular @click='swiperClick(currentNum)'>
<view slot="indicator" class="indicator-num"> <view slot="indicator" class="indicator-num">
<text class="indicator-num__text">{{ currentNum + 1 }}/{{ list.length }}</text> <text class="indicator-num__text">{{ currentNum + 1 }}/{{ list.length }}</text>
</view> </view>
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
</view> </view>
</view> </view>
</template> </template>
<!-- 显示增加数量页面 -->
<template v-if="showNumber"> <template v-if="showNumber">
<view class="top2"> <view class="top2">
<view class="top2-name"> <view class="top2-name">
...@@ -100,9 +100,10 @@ ...@@ -100,9 +100,10 @@
v-model="buyNum" v-model="buyNum"
bg-color='#3688FF' bg-color='#3688FF'
color='#ffffff' color='#ffffff'
:input-height="60" iconStyle='color:#ffffff;font-size:32rpx;'
:min="1" buttonSize='60'
size='28'> input-width="100"
:min="1">
</u-number-box> </u-number-box>
</view> </view>
<view class="top2-price"> <view class="top2-price">
...@@ -396,20 +397,21 @@ export default { ...@@ -396,20 +397,21 @@ export default {
this.$request('user/newCompany/findCompanyById', data).then(res => { this.$request('user/newCompany/findCompanyById', data).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.code == '00') { if (res.code == '00') {
this.companyAttribute = res.data.companyAttribute
this.paydJumpUrl = res.data.paydJumpUrl this.paydJumpUrl = res.data.paydJumpUrl
if (this.companyAttribute == 5) { let list=res.data.companyTollPointVoList||[]
//出租车显示联系人姓名,其他显示公司名称
this.companyName = res.data.contactName
} else {
this.companyName = res.data.companyName
}
let list=res.data.companyTollPointVoList
list.forEach(item=>{ list.forEach(item=>{
if(item.tollPoints==this.extendInfo){ if(item.tollPoints==this.extendInfo){
this.tollPoint=item this.tollPoint=item
} }
}) })
this.companyAttribute = res.data.companyAttribute
if (this.companyAttribute == 5) {
//出租车显示联系人姓名
this.companyName = res.data.contactName
} else {
//优先取收费点名称,然后是公司名称,然后是联系人名称
this.companyName=this.tollPoint.tollPointByname||res.data.companyName||res.data.contactName
}
if(this.tollPoint.tollPointsModel==0){ if(this.tollPoint.tollPointsModel==0){
//显示输入金额页面 //显示输入金额页面
this.showMoney=true this.showMoney=true
...@@ -426,8 +428,6 @@ export default { ...@@ -426,8 +428,6 @@ export default {
icon: 'none' icon: 'none'
}) })
} }
//优先取收费点名称,然后是公司名称,然后是联系人名称
this.companyName=this.tollPoint.tollPointByname||res.data.companyName||res.data.contactName
} }
} else { } else {
uni.showToast({ uni.showToast({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment