You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
5.6 KiB
103 lines
5.6 KiB
<!--pages/process/payment/index.wxml-->
|
|
<wxs module="formate" src="../../formate.wxs"></wxs>
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">收货付款</view>
|
|
</cu-custom>
|
|
|
|
<view class="flex flex-column" style="height:360rpx;background-color:#008AFF;align-items: center">
|
|
<view class="text-white text-sg" style="margin-top:72rpx">付款金额(元)</view>
|
|
<view class="text-white text-sl text-bold" style="margin-top:16rpx">{{formate.formateAmount(amount, 2)}}</view>
|
|
</view>
|
|
|
|
<view class="bg-white" style="border-radius: 20rpx 20rpx 0rpx 0rpx;padding: 32rpx 0rpx;margin-top:-90rpx" wx:if="{{orderList}}">
|
|
<view class="flex flex-center" style="justify-content: flex-start;padding: 0rpx 32rpx">
|
|
<view style="height:30rpx;width:6rpx;background-image: linear-gradient(180deg, #007AFF 0%, #027BFF 15%, #5AABFF 45%, #CAF4FE 100%);"></view>
|
|
<view class="text-black text-sg text-bold" style="margin-left: 12rpx">付款方式</view>
|
|
</view>
|
|
<van-radio-group value="{{ settleType }}" bind:change="onTypeChange">
|
|
<van-cell-group>
|
|
<van-cell title="现金支付" clickable data-name="1" bind:click="onTypeClick">
|
|
<van-radio slot="right-icon" name="1" />
|
|
</van-cell>
|
|
<van-cell title="{{params.bankCardNo ? '银行卡转账(' + params.bankCardNo + ')' : '银行卡转账' }}" clickable data-name="2" bind:click="onTypeClick">
|
|
<van-radio slot="right-icon" name="2" />
|
|
</van-cell>
|
|
<van-cell title="微信支付" clickable data-name="4" bind:click="onTypeClick">
|
|
<van-radio slot="right-icon" name="4" />
|
|
</van-cell>
|
|
<van-cell title="支付宝支付" clickable data-name="5" bind:click="onTypeClick">
|
|
<van-radio slot="right-icon" name="5" />
|
|
</van-cell>
|
|
<van-cell title="使用千鸟代付" clickable data-name="3" bind:click="onTypeClick" wx:if="{{orderStatus == 4}}">
|
|
<van-radio slot="right-icon" name="3" />
|
|
</van-cell>
|
|
</van-cell-group>
|
|
</van-radio-group>
|
|
<view class="flex flex-center" style="justify-content: flex-start;padding: 24rpx 32rpx">
|
|
<view class="text-black text-sg">付款备注</view>
|
|
</view>
|
|
<view style="min-height:90rpx;padding: 0rpx 32rpx">
|
|
<van-textarea id="payRemark" bind:change="bindInput" placeholder="点击输入付款备注,最多100字"></van-textarea>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="flex flex-justify bg-white lable" wx:if="{{orderList}}">
|
|
<view class="flex flex-center">
|
|
<text style="height:30rpx;width:6rpx;background-image: linear-gradient(180deg, #007AFF 0%, #027BFF 15%, #5AABFF 45%, #CAF4FE 100%);"></text>
|
|
<text class="text-black text-sg text-bold" style="margin-left: 12rpx">订单信息</text>
|
|
<text class="text-gray text-sm" style="margin-left:12rpx">(共{{orderList.length}}笔订单)</text>
|
|
</view>
|
|
<text class="text-gray text-sm">点击订单项可以查看详情</text>
|
|
</view>
|
|
<van-cell clickable is-link wx:for="{{ orderList }}" wx:key="index">
|
|
<view slot="title" class="flex" style="justify-content: flex-start">
|
|
<van-checkbox value="{{ !item.checked }}" custom-class="checkbox" data-index="{{index}}" icon-size="36rpx"
|
|
shape="square" bind:change="onChange"></van-checkbox>
|
|
<view style="flex:1;margin-left:16rpx" data-index="{{index}}" catchtap="lookItem">
|
|
<view class="flex flex-justify">
|
|
<view class="text-black text-lg van-ellipsis" style="max-width:320rpx;">{{item.factoryCustomerName}} {{item.factoryCustomerMobile || ''}}</view>
|
|
<view class="text-sm text-gray">{{item.inspectionTime || item.predictDeliveryToFactoryTime || item.createTime}}</view>
|
|
</view>
|
|
<view class="text-sm text-gray" style="line-height:54rpx">
|
|
<text>品类:{{item.productName}}</text>
|
|
<text style="margin-left:24rpx">重量:{{item.settleWeight}}公斤</text>
|
|
<text style="margin-left:24rpx">金额:{{formate.formateAmount(item.adjustedPrice, 2)}}元</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</van-cell>
|
|
|
|
<view style="height:16rpx" wx:if="{{orderList}}"></view>
|
|
<submit-layout wx:if="{{orderList}}">
|
|
<van-button type="info" custom-style="height:88rpx;width:686rpx" disabled="{{amount==0}}" bind:click="paymentOrder">{{orderStatus == 42 ? '结算' : '付款'}}
|
|
</van-button>
|
|
</submit-layout>
|
|
|
|
<!-- <van-popup show="{{ show }}" z-index="66" custom-class="van-dialog" bind:close="onPopupClose">
|
|
|
|
<view class="van-dialog__message" style="padding: 24px 0px 0px 0px">
|
|
<text style="font-size:36rpx">温馨提示</text>
|
|
</view>
|
|
<view class="van-dialog__message" style="text-align: start">
|
|
<text class="van-dialog__message-text" user-select="true">该客户注册成为纸通宝用户,才可以使用千鸟代付,通过以下两种方式让您的客户注册成纸通宝用户。
|
|
1:让客户使用微信扫下面的二维码注册
|
|
2:使用客户的手机号码,获取千鸟互联的验证码进行注册
|
|
</text>
|
|
</view>
|
|
<view class="van-hairline--top">
|
|
<van-button size="large" class="van-dialog__button" custom-class="van-dialog__confirm" custom-style="color: #1989fa"
|
|
bind:click="onCancel">验证码注册</van-button>
|
|
</view>
|
|
<view class="van-hairline--top">
|
|
<van-button size="large" class="van-dialog__button" custom-class="van-dialog__confirm" custom-style="color: #1989fa"
|
|
bind:click="onCancel">扫二维码注册</van-button>
|
|
</view>
|
|
<view class="van-hairline--top">
|
|
<van-button size="large" class="van-dialog__button" custom-class="van-dialog__cancel"
|
|
custom-style="color: #323233" bind:click="onPopupClose">取消</van-button>
|
|
</view>
|
|
</van-popup> -->
|
|
<vip-dialog id="vip-dialog"/>
|
|
<van-dialog id="van-dialog" />
|
|
<notification id="qn-notification"/>
|
|
|