This commit is contained in:
DESKTOP-GMUNQ1B\k 2024-03-02 17:31:12 +08:00
parent 4e38320e3a
commit 79bab5631b
3 changed files with 59 additions and 49 deletions

View File

@ -112,7 +112,7 @@
{ {
"path": "pages/payment/get_payment", "path": "pages/payment/get_payment",
"style": { "style": {
"navigationBarTitleText": "面对面收款", "navigationBarTitleText": "提货付款",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },

View File

@ -40,8 +40,8 @@
<image src="../../../static/cloud_warehouse/dkbl.png" /> <image src="../../../static/cloud_warehouse/dkbl.png" />
<block v-for="(item,indx) in propotionData" :key="indx"> <block v-for="(item,indx) in propotionData" :key="indx">
<view class="con-right-proportion-item" <view class="con-right-proportion-item"
:class="{'active':storeParam.deduction_rate == item.product_label_id}" :class="{'active':storeParam.deduction_rate == item.value}"
@click="handleChooseProp(item.product_label_id)"> @click="handleChooseProp(item.value)">
{{item.label_name}} {{item.label_name}}
</view> </view>
</block> </block>
@ -66,7 +66,7 @@
<u-loading-icon color="#999"></u-loading-icon> <u-loading-icon color="#999"></u-loading-icon>
</template> </template>
</u-image> </u-image>
<view class="short_item_right">1 <view class="short_item_right">
<view class="r_name">{{item.product.store_name}}</view> <view class="r_name">{{item.product.store_name}}</view>
<view class="r_type"> <view class="r_type">
<view v-if="item.product.store_info">{{item.product.store_info}}</view> <view v-if="item.product.store_info">{{item.product.store_info}}</view>
@ -527,6 +527,11 @@
mer_id: ENV == 'prod' ? '259' : '244' mer_id: ENV == 'prod' ? '259' : '244'
}).then(res => { }).then(res => {
this.propotionData = res.data; this.propotionData = res.data;
this.propotionData.unshift({
product_label_id: '',
value: '',
label_name: '全部'
})
}) })
}, },

View File

@ -1,14 +1,14 @@
<template> <template>
<view class="container"> <view class="container">
<view class="v-navbar"> <view class="v-navbar">
<u-navbar title="面对面收款" :safeAreaInsetTop="false" :fixed="false" @leftClick="leftClick" bgColor="transparent" <u-navbar title="提货付款" :safeAreaInsetTop="false" :fixed="false" @leftClick="leftClick" bgColor="transparent"
leftIconColor="#fff" :titleStyle="{color:'#fff',fontWeight:'bold',fontSize:'32rpx'}"> leftIconColor="#fff" :titleStyle="{color:'#fff',fontWeight:'bold',fontSize:'32rpx'}">
</u-navbar> </u-navbar>
</view> </view>
<view v-if="merchantInfo && !isEmpty"> <view v-if="merchantInfo && !isEmpty">
<view class="v-desc"> <view class="v-desc">
<view> <view>
<view class="v-desc-main">付款给商家</view> <view class="v-desc-main">确认提货付款</view>
<view class="v-desc-sub">{{merchantInfo.merchant.mer_name}}</view> <view class="v-desc-sub">{{merchantInfo.merchant.mer_name}}</view>
</view> </view>
<u-image :showLoading="true" :src="merchantInfo.merchant.mer_avatar" width="182rpx" height="182rpx" <u-image :showLoading="true" :src="merchantInfo.merchant.mer_avatar" width="182rpx" height="182rpx"
@ -20,8 +20,9 @@
<view class="v-con-text">付款金额</view> <view class="v-con-text">付款金额</view>
<view class="v-con-input" style="margin-right: 10px;"> <view class="v-con-input" style="margin-right: 10px;">
<text style="color: #303133;font-size:46rpx;"></text> <text style="color: #303133;font-size:46rpx;"></text>
<u--input type="digit" maxlength="5" fontSize="23" v-model="cartForm.total_amount" <u--input type="digit" maxlength="7" fontSize="23" v-model="cartForm.total_amount"
placeholder="请输入金额" border="none" placeholderStyle="color:#999;font-size:30rpx"> placeholder="请输入金额" border="none" placeholderStyle="color:#999;font-size:30rpx"
@input="validateDecimal">
</u--input> </u--input>
</view> </view>
@ -51,7 +52,8 @@
<image src="/static/images/no_thing.png"></image> <image src="/static/images/no_thing.png"></image>
<text style="margin-top: 60rpx;">{{tips}}</text> <text style="margin-top: 60rpx;">{{tips}}</text>
<!-- 登陆 --> <!-- 登陆 -->
<authorize :isAuto="isAuto" :isGoIndex="false" :isShowAuth="isShowAuth" @authColse="authColse" @onLoadFun="onLoadFun"> <authorize :isAuto="isAuto" :isGoIndex="false" :isShowAuth="isShowAuth" @authColse="authColse"
@onLoadFun="onLoadFun">
</authorize> </authorize>
</view> </view>
</view> </view>
@ -118,7 +120,12 @@
} }
}, },
methods: { methods: {
leftClick(e){ validateDecimal(event) {
console.log(event);
this.checkForm.total_amount = event.match(/^\d*(\.?\d{0,2})/g)[0]
},
leftClick(e) {
uni.switchTab({ uni.switchTab({
url: '/pages/index/index' url: '/pages/index/index'
}) })
@ -178,7 +185,7 @@
title: err.message || err.msg || err title: err.message || err.msg || err
}) })
// #ifdef APP // #ifdef APP
setTimeout(()=>{ setTimeout(() => {
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
}) })
@ -324,7 +331,9 @@
} }
.v-wrap { .v-wrap {
position: relative; display: flex;
align-items: center;
padding-left: 20rpx;
width: 666rpx; width: 666rpx;
height: 210rpx; height: 210rpx;
background-image: url("https://lihai001.oss-cn-chengdu.aliyuncs.com/def/2f9c2202402291652415355.webp"); background-image: url("https://lihai001.oss-cn-chengdu.aliyuncs.com/def/2f9c2202402291652415355.webp");
@ -332,28 +341,24 @@
background-repeat: no-repeat; background-repeat: no-repeat;
.v-wrap-money { .v-wrap-money {
position: absolute; display: flex;
top: 70rpx; align-items: center;
left: 36rpx;
color: #FF5E0C; color: #FF5E0C;
margin-right: 30rpx;
.icon { .icon {
font-size: 28rpx; font-size: 34rpx;
} }
.num { .num {
font-size: 46rpx; font-size: 46rpx;
display: inline-block; display: inline-block;
overflow: auto; overflow: auto;
width: 160rpx; width: 180rpx;
} }
} }
.v-wrap-desc { .v-wrap-desc {
position: absolute;
top: 67rpx;
left: 230rpx;
.v-wrap-desc-main { .v-wrap-desc-main {
margin-bottom: 16rpx; margin-bottom: 16rpx;
font-weight: 600; font-weight: 600;