<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
    <view slot="info" class="container main">
        <view class="zero one">
            <button type="primary" bindtap="onSearch">查询</button>
        </view>
        <view class="zero two">
            <scroll-view scroll-y="true" class="scroll-view">
                <view class="list-scroll-view">
                    <view class="list" wx:for="{{list}}" wx:key="item">
                        <view class="name">{{item.user_name}}--[{{item.order_no}}]</view>
                        <view class="other">
                            <view class="other_1">
                                <text>支付金额：</text>
                                <text>{{item.money}}</text>
                            </view>
                            <view class="other_1">
                                <text>支付类型：</text>
                                <text>{{item.type}}</text>
                            </view>
                            <view class="other_1">
                                <text>支付状态：</text>
                                <text>{{item.statusZh}}</text>
                            </view>
                        </view>
                        <view class="btn">
                            <button type="primary" size="mini" bindtap="toView" data-item="{{item}}">详细信息</button>
                            <button type="warn" size="mini" bindtap="toRefund" data-item="{{item}}" wx:if="{{item.status=='1'}}">退款</button>

                        </view>
                    </view>
                </view>
            </scroll-view>
        </view>
    </view>
</mobile-main>
<e-dialog dialog="{{dialog}}" bind:toClose="toClose">
    <view slot="info">
        <view class="dialog_one" wx:if="{{dialog.type=='1'}}">
            <view class="one_1">
                <text>支付订单号：</text>
                <text>{{info.order_no||'暂无'}}</text>
            </view>
            <view class="one_1">
                <text>支付用户：</text>
                <text>{{info.user_name||'暂无'}}</text>
            </view>
            <view class="one_1">
                <text>支付金额：</text>
                <text>{{info.money||'暂无'}}</text>
            </view>
            <view class="one_1">
                <text>支付类型：</text>
                <text>{{info.type||'暂无'}}</text>
            </view>
            <view class="one_1">
                <text>支付状态：</text>
                <text>{{info.statusZh}}</text>
            </view>
            <view class="one_1">
                <text>支付时间：</text>
                <text>{{info.time||'暂无'}}</text>
            </view>
            <view class="one_1">
                <text>支付说明：</text>
                <text>{{info.desc||'暂无'}}</text>
            </view>
        </view>
        <view class="dialog_two" wx:elif="{{dialog.type=='2'}}">
            <form catchsubmit="searchSubmit">
                <view class="content">
                    <view class="label">支付金额</view>
                    <view class="value">
                        <input type="text" name="money" value="{{searchInfo.money}}" placeholder="请输入支付金额" />
                    </view>
                </view>
                <view class="content">
                    <view class="label">支付类型</view>
                    <view class="value">
                        <input type="text" name="type" value="{{searchInfo.type}}" placeholder="请输入支付类型" />
                    </view>
                </view>
                <view class="content">
                    <view class="label">支付状态</view>
                    <view class="value">
                        <picker mode="selector" bindchange="statusChange" value="{{searchInfo.status}}" name="status" range-key='label' range="{{statusList}}">
                            <view class="input">{{searchInfo.status=='0'?'未支付':searchInfo.status=='1'?'已支付':searchInfo.status=='-1'?'支付失败':searchInfo.status=='-2'?'申请退款':searchInfo.status=='-3'?'已退款':'请选择支付状态'}}</view>
                        </picker>
                    </view>
                </view>
                <view class="btn">
                    <button type="primary" size="mini" form-type="submit">提交保存</button>
                </view>
            </form>
        </view>
    </view>
</e-dialog>