<template>
    <view class="">
        <view class="step">
            <uni-steps active-color="#07c160" :options="options" :active="2"></uni-steps>
        </view>
        <view style="height: 130rpx;"></view>

        <view class="home">
            <form @submit="save">
                <view class="box-pack-between item flex-y-center border-b">
                    <text>基本信息</text>
                </view>

                <view class="bgf" style="padding: 0 30rpx;">

                    <view class="box-pack-between list flex-y-center border-b ft28">
                        <text>小程序APPID</text>
                        <view @click="copy(info.appid)">{{info.appid||''}} <text class="ft26"
                                style="color:#3387FF;margin-left: 20rpx;">复制</text></view>
                    </view>

                    <view class="bgf">
                        <view class="box-pack-between list flex-y-center br">
                            <text class="ft28">小程序名称</text>
                            <text class="setup_a" v-if="!info.nickname" @click="setup(1)">设置</text>
                            <view class="flex-grow-1 tr ft28" v-else>
                                {{info.nickname||''}}
                            </view>
                        </view>
                    </view>

                    <view class="box-pack-between border-b header-version flex-y-center">
                        <view class="header-img ft28">
                            小程序头像
                            <view class="ft22">
                                (最大宽度 500px，最大高度 500px,不超过2M,如果头像过大,加载会慢点)

                                <view style="margin-top: 20rpx;color: red;">
                                    一年内可申请修改{{info.head_image_info.modify_quota}}次
                                </view>
                                <view style="color: red;">
                                    今年还可修改{{info.head_image_info.modify_quota-info.head_image_info.modify_used_count}}次
                                </view>
                            </view>
                        </view>
                        <text class="setup_a" v-if="!xcx_logo" @click="setup(3)">设置</text>
                        <view class="home-img" v-else @click="setup(3)">
                            <image :src="xcx_logo" class="home-img-icon"></image>
                        </view>
                    </view>

                    <view class="bgf">
                        <view class="box-pack-between list flex-y-center br" style="height: auto;padding: 20rpx 0;">
                            <view class="ft28" style="min-width: 200rpx;">
                                小程序简介
                                <view class="modify_quota">
                                    一年内可申请修改{{info.signature_info.modify_quota}}次
                                </view>
                                <view class="modify_quota">
                                    今年还可修改{{info.signature_info.modify_quota-info.signature_info.modify_used_count}}次
                                </view>
                            </view>
                            <view>
                                <view class="setup_a" style="text-align: right;"
                                    v-if="(info.signature_info.modify_quota-info.signature_info.modify_used_count)>0"
                                    @click="setup(2)">设置</view>
                                <view class="flex-grow-1 break tr ft28" @click="setup(2)">
                                    {{info.signature_info.signature}}
                                </view>
                            </view>
                        </view>
                    </view>
                    <!-- <view class="flex-center pof">
						<button formType="submit" class="flex-center login-btn">提交审核</button>
					</view> -->
                </view>
            </form>
        </view>

        <view class="home">

            <view class="box-pack-between flex-y-center border-b itemTitle">
                <view class="">
                    <text>服务类目</text>
                    <view class="ft24">
                        (已添加{{category.length}}个，最多5个，一个月只能修改5次)
                    </view>
                </view>
                <view class="deploy-add flex-center ft26" @click="open" hover="true" hover-class="detail-hover">
                    添加类目
                </view>
            </view>

            <view class="bgf" style="padding: 0 30rpx;">
                <template v-for="(item,index) of category">
                    <view class="list flex flex-y-center" style="height: auto;" :key='index'>
                        <text class="ft28" style="margin-right: 10rpx;">{{item.first_name}}>{{item.second_name}}</text>
                        <text class="setup_a" style="min-width: 120rpx;">
                            {{item.audit_status==1? '审核中':item.audit_status==2? '审核不通过' :item.audit_status==3? '审核通过':''}}
                        </text>
                        <view class="iconfont iconshanjian item-del" style="margin-left: 10rpx;"
                            @click.stop="deleteItem(index)" v-if="item.audit_status != 3"></view>

                    </view>
                    <view class="reason" v-if="item.audit_status == 2">{{item.audit_reason}}</view>
                    <view class="br"></view>
                </template>


            </view>
        </view>

        <view class="home">

            <view class="box-pack-between item flex-y-center">
                <text>体验版成员</text>
                <button class="deploy-add flex-center" hover="true" hover-class="detail-hover"
                    @click="setup(4)">新增</button>
            </view>

            <view class="deploy-list" v-if="deplist.length>0">
                <view class="item-bg">
                    <view class="box-pack-between mar64 flex-y-center" v-for="(item,index) of deplist" :key='index'>
                        <view class="flex-y-center flex-grow-1 pdr-20">
                            <view class="deploy-list-nick text-1">
                                {{item.wechatid}}
                            </view>
                        </view>
                        <view class="iconfont iconshanjian item-del" @click="del(index)"></view>
                    </view>
                </view>
            </view>

        </view>


        <view class="home">

            <view class="box-pack-between item flex-y-center">
                <text>服务器域名</text>
                <button class="deploy-add flex-center" hover="true" hover-class="detail-hover"
                    @click="setup(5)">设置</button>
            </view>

            <view class="flex-y-center box-pack-between ft28 border-b pd2-3">

                <view class="word flex-grow-0">
                    服务器域名
                </view>

                <view class="qr_link flex-grow-1 tr">
                    {{info.fwq_url||''}}
                </view>

            </view>

        </view>
        <view class="home">

            <view class="box-pack-between item flex-y-center">
                <text>业务域名</text>
                <button class="deploy-add flex-center" hover="true" hover-class="detail-hover"
                    @click="setup(6)">设置</button>
            </view>

            <view class="flex-y-center box-pack-between ft28 border-b pd2-3">

                <view class="word flex-grow-0">
                    业务域名
                </view>

                <view class="qr_link flex-grow-1 tr">
                    {{info.yw_url||''}}
                </view>

            </view>

        </view>

        <view class="home">

            <view class="box-pack-between item flex-y-center pd20" style="height: auto;">
                <view class="">
                    <text>二维码规则配置 <text class="ft26" style="color: #999999;">(小程序发布上线之后再配置)</text>
                    </text>
                </view>

                <view class="flex">
                    <!--  -->
                    <block v-if="info.file==1">
                        <!-- <button style="min-width:170rpx;" class="deploy-add flex-center" hover="true"
                            hover-class="detail-hover" @click="ConfigRule">配置规则</button> -->
                        <button style="min-width:170rpx;" class="deploy-add flex-center" hover="true"
                            hover-class="detail-hover" @click="AppendRule">配置规则</button>
                    </block>
                    <button v-else class="deploy-add flex-center" hover="true" style="min-width:170rpx;"
                        hover-class="detail-hover" @click="qrcodejumpdownload">上传文件</button>
                </view>
            </view>

            <view class="flex-y-center box-pack-between ft28 border-b pd2-3" v-for="(item,index) of linkArr"
                :key='index'>
                <view class="word">
                    <view class="qr_link">
                        地址：{{item.prefix}}
                    </view>
                    <view class="qr_link">
                        路径：{{item.path}}
                    </view>
                </view>
                <view class="iconfont iconshanjian item-del" @click="DelRule(index)"></view>
            </view>
        </view>


        <uni-popup ref="uniScroll" type="bottom">
            <uni-scroll :Prov_arr="Prov_arr" @select="select"></uni-scroll>
        </uni-popup>

        <uni-popup ref="popup" type="center">
            <view class="model">
                <view v-if="type==3">
                    <view class="model-refund-title ft28">
                        小程序头像
                    </view>
                    <view class="box-pack-between flex-y-center" style="padding: 0 40rpx;">
                        <view class="home-img" @click="uploadFile" data-type='1'>
                            <image class="home-img-icon" :src="URL+xcx_logo"></image>
                        </view>
                        <view class="home-upload flex-center" @click="uploadFile" data-type='1'>上传文件</view>
                    </view>
                    <view class="tips">
                        新头像不允许涉及政治敏感与色情;
                        图片格式必须为：png,bmp,jpeg,jpg,gif；不可大于2M；建议使用png格式图片，以保持最佳效果；建议图片尺寸为144px*144px
                    </view>
                    <view class="flex-y-center model-refund-btn">
                        <view class="flex-grow-1 flex-center cancel ft26" @click="cancel">
                            取消
                        </view>
                        <button hover-class="none" @click="saveImg" class="flex-grow-1 flex-center submit ft28">
                            确定
                        </button>
                    </view>
                </view>

                <block v-else>
                    <form @submit="saveName">
                        <view class="model-refund-title ft28">
                            {{type==1?'小程序名称':type==2?'小程序简介':type==4?'添加体验者':type==5?'服务器域名':type == 6?'业务域名':''}}
                        </view>
                        <view style="padding: 20rpx;">
                            <view class="amount-input">
                                <textarea v-if="type==1" type="text" maxlength="15" auto-height="true" name="nickname"
                                    placeholder="请输入小程序名称" />

                                <textarea v-if="type==2" type="text"
                                    :value="info.signature_info.signature || signature_info" auto-height="true"
                                    name="signature" placeholder="请输入小程序简介" />

                                <textarea v-if="type==4" type="text" auto-height="true" name="wechatid"
                                    placeholder="请添加体验者" />

                                <textarea v-if="type==5" type="text" :value="info.fwq_url || URL_DEF || ''"
                                    auto-height="true" name="fwq_url" placeholder="请添加服务器域名" />
                                <textarea v-if="type==6" type="text" :value="info.yewu_url || URL || ''"
                                    auto-height="true" name="yw_url" placeholder="请添加业务域名" />

                            </view>
                        </view>

                        <view class="tips" v-if="type!=4">
                            {{type==1?'Tip：小程序名称可以由中文、数字、英文、空格及部分特殊符号组成。长度在4-30个字符之间,一个中文字等于2个字符,名称设置完成不可更改，起名请谨慎。':
							 type==2?'●功能介绍长度不超过120个字符,一个中文字等于2个字符,请确认介绍内容不含国家相关法律法规禁止内容':
							 type==5?'设置小程序服务器地址，无需加https前缀，但域名必须可以通过https访问,多个使用;隔开':''}}
                        </view>

                        <view class="flex-y-center model-refund-btn">
                            <view class="flex-grow-1 flex-center cancel ft26" @click="cancel">
                                取消
                            </view>
                            <button hover-class="none" form-type="submit" class="flex-grow-1 flex-center submit ft28">
                                确定
                            </button>
                        </view>

                    </form>

                </block>
            </view>
        </uni-popup>
    </view>
</template>

<script>
    import optionsData from './data.js'
    import uniScroll from '../components/uni-scroll/uni-scroll-cate.vue'
    export default {
        components: {
            uniScroll,
        },
        data() {
            return {
                URL: getApp().globalData.URL,
                URL_DEF: "",
                info: null,
                xcx_logo: '',
                type: 1,
                category: [],
                Prov_arr: [],
                deplist: [],
                linkArr: [],
                signature_info: "智慧经营系统，会员积分管理，DIY模块化，积分商城，无痕赋能。",
                options: optionsData.options
            }
        },

        onLoad() {
            this.wechat_info();
            this.wechat_category();
            this.wechat_firstcategory();
            this.listMember();
            this.ewmguizhe();
            this.URL_DEF = this.URL ? this.URL.split('//')[1] : ''
        },

        methods: {
            // 删除类目
            deleteItem(index) {

                console.log("lll")
                let {
                    first,
                    second,
                    second_name,
                    audit_status
                } = this.category[index];
                if (audit_status == 3) {
                    return false
                }
                uni.showModal({
                    title: '提示',
                    content: `确定要删除${second_name}类目吗？`,
                    showCancel: true,
                    cancelText: '取消',
                    confirmText: '确定',
                    success: res => {
                        if (res.confirm) {
                            this.request({
                                url: 'setting/delcategory',
                                data: {
                                    admin_id: uni.getStorageSync("admin_id"),
                                    first,
                                    second,
                                },
                            }).then(res => {
                                console.log(res, "res")
                                if (res.code === "200") {
                                    uni.showToast({
                                        title: res.message,
                                        icon: 'none'
                                    })
                                    setTimeout(() => {
                                        this.wechat_category();
                                    }, 2000)
                                }
                            });
                        }
                    },
                    fail: () => {},
                    complete: () => {}
                });
            },

            // 获取分类
            select(e) {
                console.log(e)
                // this.Mcc = e;
                let {
                    code1,
                    code2,
                    special_license_pic,
                    zzzs_name,
                } = e;
                this.request({
                    url: 'setting/addcategory',
                    data: {
                        admin_id: uni.getStorageSync("admin_id"),
                        code1,
                        code2,
                        special_license_pic,
                        zzzs_name,
                    },
                }).then(res => {
                    console.log(res, "res")
                    if (res.code === "200") {
                        uni.showToast({
                            title: res.message,
                            icon: 'none'
                        })
                        setTimeout(() => {
                            this.wechat_category();
                        }, 2000)

                    }
                });
            },

            open(e) {
                this.$refs.uniScroll.open();
            },

            cancel() {
                this.$refs.popup.close();
            },

            setup(type) {
                this.type = type;
                if (type == 2 && this.info.signature_info.modify_quota - this.info.signature_info.modify_used_count <=
                    0) {
                    return
                }
                if (type == 3 && this.info.head_image_info.modify_quota - this.info.head_image_info.modify_used_count <=
                    0) {
                    return
                }
                this.$refs.popup.open();
            },

            // 获取一级类目
            wechat_firstcategory() {
                this.request({
                    url: 'setting/wechat_firstcategory',
                    data: {
                        admin_id: uni.getStorageSync("admin_id"),
                    },
                }).then(res => {
                    console.log(res, "res")
                    if (res.code === "200") {
                        this.Prov_arr = res.data;
                    }
                });
            },

            // 获取已设置类目
            wechat_category() {
                this.request({
                    url: 'setting/wechat_category',
                    data: {
                        admin_id: uni.getStorageSync("admin_id"),
                    },
                }).then(res => {
                    console.log(res, "res")
                    if (res.code === "200") {
                        this.category = res.data;
                    }
                });
            },
            // 获取基础信息
            wechat_info() {
                this.request({
                    url: 'setting/wechat_info',
                    data: {
                        admin_id: uni.getStorageSync("admin_id"),
                    },
                }).then(res => {
                    console.log(res, "wechat_info")
                    if (res.code === "200") {
                        this.info = res.data;
                        this.xcx_logo = res.data.head_image_info.head_image_url;
                    }
                });
            },
            // 设置头像
            saveImg(e) {
                this.request({
                    url: 'setting/modifyheadimage',
                    data: {
                        admin_id: uni.getStorageSync("admin_id"),
                        license_pic: this.xcx_logo,
                    },
                }).then(res => {
                    console.log(res, "res")
                    if (res.code === "200") {
                        this.$refs.popup.close();
                        uni.showToast({
                            title: res.message,
                            icon: 'none'
                        })
                        setTimeout(() => {
                            this.wechat_info()
                        }, 2000)
                    }
                });
            },
            // 设置名称/简介/体验者
            saveName(e) {
                console.log(e)
                let url, data = {
                    admin_id: uni.getStorageSync("admin_id"),
                };
                if (this.type == 1) {
                    url = 'setting/setnickname';
                    data.nickname = e.detail.value.nickname;
                }
                if (this.type == 2) {
                    url = 'setting/modifysignature';
                    data.signature = e.detail.value.signature;
                }
                if (this.type == 4) {
                    url = 'setting/bindMember';
                    data.wechatid = e.detail.value.wechatid;
                }
                if (this.type == 5) {
                    url = 'setting/modify_domain';
                    data.fwq_url = e.detail.value.fwq_url;
                }
                if (this.type == 6) {
                    url = 'setting/setBusinessDomain';
                    data.ywurl = e.detail.value.yw_url;
                }
                this.request({
                    url,
                    data,
                }).then(res => {
                    console.log(res, "res")
                    if (res.code === "200") {
                        uni.showToast({
                            title: res.message,
                            icon: 'none'
                        })
                        this.$refs.popup.close();
                        setTimeout(() => {
                            this.type == 4 ? this.listMember() : this.wechat_info();
                        }, 2000)

                    }
                });
            },

            uploadFile(e) {
                var type = e.currentTarget.dataset.type,
                    url = type == 3 ? "setting/logo_upload" : "setting/upload";
                uni.chooseImage({
                    success: (res) => {
                        res.tempFilePaths.forEach((v, i) => {
                            console.log(v)
                            this.Upload({
                                url: url,
                                data: {
                                    url: v,
                                    admin_id: uni.getStorageSync("admin_id"),
                                }
                            }).then(res => {
                                console.log(res, "res")
                                type == 1 ? (this.xcx_logo = res.src) :
                                    type == 2 ? (this.special_license_pic = res.src) :
                                    type == 3 ? (this.app_logo = res.src) : '';
                            }).catch({});
                        })
                    }
                });
            },

            // 删除体验者
            del(index) {
                uni.showModal({
                    title: '提示',
                    content: '确定要删除用户吗？',
                    showCancel: true,
                    cancelText: '取消',
                    confirmText: '确定',
                    success: res => {
                        if (res.confirm) {
                            this.request({
                                url: 'setting/unBindMember',
                                data: {
                                    admin_id: uni.getStorageSync("admin_id"),
                                    wechatid: this.deplist[index].wechatid,
                                }
                            }).then(res => {

                                uni.showToast({
                                    title: res.message,
                                    icon: 'none'
                                })
                                this.deplist.splice(index, 1);
                            })
                        }
                    },
                    fail: () => {},
                    complete: () => {}
                });
            },
            qrcodejumpdownload() {
                this.request({
                    url: 'setting/qrcodejumpdownload',
                    data: {
                        admin_id: uni.getStorageSync("admin_id"),
                    }
                }).then(res => {
                    if (res.code == 200) {
                        uni.showToast({
                            title: res.message,
                            icon: 'none'
                        })
                        setTimeout(() => {
                            this.wechat_info()
                        }, 2000)
                    }
                })
            },

            // 新增规则
            ConfigRule(e) {
                this.request({
                    url: 'setting/oldewmqrcode',
                    data: {
                        admin_id: uni.getStorageSync("admin_id"),
                    }
                }).then(res => {
                    if (res.code == 200) {
                        uni.showToast({
                            title: res.message,
                            icon: 'none'
                        })
                        setTimeout(() => {
                            this.ewmguizhe();
                        }, 2000)
                    }
                })
            },
            // 追加规则
            AppendRule(e) {
                this.request({
                    url: 'setting/newewmqrcode',
                    data: {
                        admin_id: uni.getStorageSync("admin_id"),
                    }
                }).then(res => {
                    if (res.code == 200) {
                        uni.showToast({
                            title: res.message,
                            icon: 'none'
                        })
                        setTimeout(() => {
                            this.ewmguizhe();
                        }, 2000)
                    }
                })
            },
            // 删除规则
            DelRule(index) {
                uni.showModal({
                    title: '提示',
                    content: '确定要删除规则吗？',
                    showCancel: true,
                    cancelText: '取消',
                    confirmText: '确定',
                    success: res => {
                        if (res.confirm) {
                            this.request({
                                url: 'setting/delqrcodejumpget',
                                data: {
                                    admin_id: uni.getStorageSync("admin_id"),
                                    prefix: this.linkArr[index].prefix,
                                }
                            }).then(res => {
                                uni.showToast({
                                    title: res.message,
                                    icon: 'none'
                                })

                                this.linkArr.splice(index, 1);
                            })
                        }
                    },
                    fail: () => {},
                    complete: () => {}
                });
            },

            // 规则列表
            ewmguizhe(e) {
                this.request({
                    url: 'setting/qrcodejumpget',
                    data: {
                        admin_id: uni.getStorageSync("admin_id"),
                    }
                }).then(res => {
                    if (res.code == 200) {
                        this.linkArr = res.data;
                    }
                })
            },
            // 获取体验者
            listMember() {
                this.request({
                    url: 'setting/listMember',
                    data: {
                        admin_id: uni.getStorageSync("admin_id"),
                    }
                }).then(res => {
                    if (res.code == 200) {
                        this.deplist = res.data;
                    }
                })
            },

            copy(appid) {
                // #ifdef MP-WEIXIN
                uni.setClipboardData({
                    data: appid,
                    success: function() {
                        console.log('success');
                    }
                });
                // #endif

                // #ifdef H5
                let content = appid;
                if (!document.queryCommandSupported('copy')) {
                    // 不支持
                    return false
                }
                let textarea = document.createElement("input")
                textarea.value = content
                textarea.readOnly = "readOnly"
                document.body.appendChild(textarea)
                textarea.select() // 选择对象
                textarea.setSelectionRange(0, content.length) //核心
                let result = document.execCommand("copy") // 执行浏览器复制命令
                textarea.remove();
                uni.showToast({
                    title: "复制成功",
                    icon: 'none'
                })
                return result
                // #endif
            },
        }
    }
</script>

<style>
    @import url("../css/style.css");

    page .detail-hover {
        opacity: 0.6;
        transform: scale(0.8, 0.8);
    }

    .itemTitle {
        padding: 30rpx 20rpx;
    }

    .setup_a {
        flex: none;
        color: #576B95;
        font-size: 26rpx;
        margin-left: auto;
    }

    .reason {
        font-size: 24rpx;
        padding: 10rpx;
        background-color: #f0f0f0;
        color: #f00;
        line-height: 1.5;
        border-radius: 6rpx;
        margin-bottom: 20rpx;
    }

    .pd20 {
        padding: 20rpx;
    }

    .pd2-3 {
        padding: 20rpx 30rpx;
    }

    .step {
        padding: 20rpx 0;
        position: fixed;
        width: 100%;
        background: #FFFFFF;
        z-index: 999;
    }

    .deploy-add {
        padding: 0 15rpx;
        height: 60rpx;
        text-align: center;
        border-radius: 10rpx;
        background-color: #07C160;
        color: #FFFFFF;
        margin-left: 20rpx;
    }

    .deploy-list {
        padding: 24rpx;

    }

    .item-bg {
        background: #f6f8fe;
        border-radius: 12rpx;
        margin: 0 auto;
        font-size: 28rpx;
        font-family: PingFang SC, PingFang SC-Regular;
        font-weight: 400;
        color: #333333;
        padding: 36rpx 32rpx;
    }

    .item-del {
        flex: none;
        color: red;
    }

    .item-bg-32 {
        margin-right: 32rpx;
    }

    .item-bg .mar64:last-child {
        margin-bottom: 0rpx;
    }

    .deploy-list-nick {
        width: 300rpx;
        margin-right: 20rpx;
    }

    .deploy-list-logon {
        width: 180rpx;
        margin-right: 30rpx;
    }

    .mar64 {
        margin-bottom: 64rpx;
    }

    .amount-input {
        padding: 20rpx;
        border: 1rpx solid #F1F1F1;
    }

    .model {
        background: #FFFFFF;
        border-radius: 10rpx;
        width: 600rpx;
        overflow: hidden;
    }

    .model-refund-title {
        text-align: center;
        padding: 20rpx 0;
    }

    .model-refund-btn {
        border-top-color: #f5f5f5;
        border-top-style: solid;
        border-top-width: 1px;

    }

    .model-refund-btn .cancel {
        height: 90rpx;
    }

    .model-refund-btn .submit {

        height: 90rpx;
        border-left: 1rpx solid #f1f1f1;
        border-radius: 0;
    }

    .list {
        height: auto;
        background: #fff;
        position: relative;
        padding: 30rpx 0;
    }

    .header-version {
        padding: 20rpx 0;
    }

    .home-img {
        font-size: 26rpx;
        text-align: center;
        display: inline-block;
    }

    .home-upload {
        border: 1rpx solid #e3e4e5;
        height: 80rpx;
        border-radius: 6rpx;
        padding: 0 32rpx;
        min-width: 180rpx;
        font-size: 28rpx;
        letter-spacing: 0;
        background: #f6f7f8;
    }

    .home-img-icon {
        border: 1rpx solid #ccc;
        width: 200rpx;
        height: 200rpx;
    }

    .header-img {
        max-width: 300rpx;
    }

    button {
        background-color: #fff;
        padding: 0;
        margin: 0;
        line-height: 1rpx;
        min-height: 0;
        font-size: 28rpx;
        background: #fff;
        border-radius: none;
    }

    button::after {
        border: none;
    }

    .qr_link {
        margin-bottom: 10rpx;
    }

    .tips {
        font-size: 24rpx;
        color: red;
        padding: 10rpx 20rpx;
    }

    .model {
        background: #FFFFFF;
        border-radius: 10rpx;
        width: 600rpx;
        overflow: hidden;
    }

    .amount-input textarea {
        width: 100%;
    }

    .model-refund-title {
        text-align: center;
        padding: 20rpx 0;
    }

    .model-refund-btn {
        border-top-color: #f5f5f5;
        border-top-style: solid;
        border-top-width: 1px;

    }

    .model-refund-btn .cancel {
        height: 90rpx;
    }

    .model-refund-btn .submit {

        height: 90rpx;
        border-left: 1rpx solid #f1f1f1;
        border-radius: 0;
    }

    button {
        background-color: #fff;
        padding: 0;
        margin: 0;
        line-height: 1rpx;
        /* border: 1px solid #cccccc; */
        min-height: 0;
        font-size: 28rpx;
        background: #fff;
        border-radius: none;
    }

    button::after {
        border: none;
    }

    .modify_quota {
        font-size: 20rpx;
        margin-top: 10rpx;
        color: red;
    }
</style>
