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.
106 lines
5.7 KiB
106 lines
5.7 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:24rpx;width:6rpx;background:#007AFF"></view>
|
|
<view class="text-black text-sg text-bold" style="margin-left: 12rpx">付款方式</view>
|
|
</view>
|
|
<view style="min-height:90rpx;padding-right:32rpx">
|
|
<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 clickable data-name="2" bind:click="onTypeClick">
|
|
<text slot="title">
|
|
<text>银行卡转账</text>
|
|
<text wx:if="{{params.bankCardNo}}">({{params.bankCardNo}})</text>
|
|
</text>
|
|
<van-radio slot="right-icon" name="2" disabled="{{!params.bankCardNo}}" />
|
|
</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>
|
|
<view class="flex flex-center" style="justify-content: flex-start;margin-top:16rpx;padding: 0rpx 32rpx">
|
|
<view style="height:24rpx;width:6rpx;background:#007AFF"></view>
|
|
<view class="text-black text-sg text-bold" style="margin-left: 12rpx">付款备注</view>
|
|
</view>
|
|
<view style="min-height:90rpx;padding: 0rpx 32rpx">
|
|
<input id="payRemark" placeholder-style="color:#aaa" style="width:100%;height:90rpx" placeholder="请输入付款备注" bindinput="bindInput" />
|
|
<view style="height:1rpx;background:#eee"></view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="flex flex-justify bg-white lable" wx:if="{{orderList}}">
|
|
<view class="flex flex-center">
|
|
<text style="height:24rpx;width:6rpx;background:#007AFF"></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">{{item.factoryCustomerName}} {{item.factoryCustomerMobile || ''}}</view>
|
|
<view class="text-sm text-gray">{{item.inspectionTime}}</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.settlePrice, 2)}}元</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</van-cell>
|
|
|
|
<submit-layout wx:if="{{orderList}}">
|
|
<van-button plain type="default" custom-style="height:88rpx;width:254rpx" disabled="{{amount==0}}" bind:click="agentPayment" wx:if="{{orderStatus == 4}}">使用千鸟代付</van-button>
|
|
<van-button type="info" custom-style="margin-left:32rpx;height:88rpx;width:400rpx" disabled="{{amount==0}}" bind:click="paymentOrder" wx:if="{{orderStatus == 4}}">直接付款</van-button>
|
|
<van-button type="info" custom-style="height:88rpx;width:686rpx" disabled="{{amount==0}}" bind:click="paymentOrder" wx:if="{{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> -->
|
|
|
|
<van-dialog id="van-dialog" />
|
|
<notification id="qn-notification"/>
|
|
|