admin
2020-05-14 23ca597c198f147361cfc2f70aba2dd7c467fc33
佣金计算,会员自主申请相关界面修改
7个文件已修改
284 ■■■■■ 已修改文件
AppInside/fans/index.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
AppInside/openVip/css/stylesheet.css 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
AppInside/openVip/index.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
AppInside/supVipApply/index.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
AppInside/supVipManage/index.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
AppInside/yjCompute/css/stylesheet.css 145 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
AppInside/yjCompute/index.html 83 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
AppInside/fans/index.html
@@ -494,7 +494,7 @@
                            $.ajax({
                                type: "GET",
                                data: JSON.parse(params),
                                url: "http://192.168.1.253:8080/fanli/api/v2/invite/countMyTeamV2",
                                url: "http://api.flqapp.com/fanli/api/v2/invite/countMyTeamV2",
                                dataType: "jsonp",
                                async: true,
                                success: function(result) {
AppInside/openVip/css/stylesheet.css
@@ -1,6 +1,5 @@
* {
    margin: 0;
    top: 0;
    /* 不允许复制 */
    -moz-user-select: none;
    /* Firefox私有属性 */
@@ -26,8 +25,9 @@
.div_header {
    position: fixed;
    width: 100%;
    z-index: 100
    width: 100%;
    z-index: 100;
    top: 0
}
.div_header_title {
@@ -184,7 +184,7 @@
    outline: medium;
    color: #000000;
    caret-color: #E5005C;
}
}
.div_ly_title_bg {
    color: #888888;
@@ -202,7 +202,7 @@
    height: 2.1rem;
    border: none;
    outline: medium;
    padding-left: 0.32rem;
    padding: 0.3rem;
    color: #000000;
    font-size: 0.3rem;
}
@@ -309,8 +309,8 @@
.div_applystate_content_bg {
    display: -webkit-flex;
    flex-direction: row-reverse;
    align-items: center;
    flex-direction: row-reverse;
    align-items: center;
    margin-right: 0.14rem;
}
@@ -322,30 +322,29 @@
.div_applystate_content_bg :nth-child(2) {
    display: -webkit-flex;
    align-items: center;
    height: 0.3rem;
    height: 0.3rem;
    margin-right: 0.12rem;
}
.div_notReason {
    display: -webkit-flex;
    font-size: 0.3rem;
    color: #666666;
    margin-top: 0.2rem;
    margin-left: 0.27rem;
}
}
.div_notReason {
    display: -webkit-flex;
    font-size: 0.3rem;
    color: #666666;
    margin-top: 0.2rem;
    margin-left: 0.27rem;
}
.div_commit {
    background-color: #FFFFFF;
    position: fixed;
    width: 7.5rem;
    height: 0.96rem;
    top: 11.1rem;
    bottom: 0;
    z-index: 9999;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
}
.div_commit div {
@@ -358,4 +357,10 @@
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
}
@supports (bottom: env(safe-area-inset-bottom)) {
    .div_commit {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
AppInside/openVip/index.html
@@ -131,7 +131,7 @@
    <script>
        // "http://api.flqapp.com";
        var host = "http://192.168.1.122:8080";
        var host = "http://api.flqapp.com";
        $(function() {
            var app = new Vue({
                el: '#root',
AppInside/supVipApply/index.html
@@ -175,7 +175,7 @@
    <script>
        // "http://api.flqapp.com";
        var host = "http://192.168.1.122:8080";
        var host = "http://api.flqapp.com";
        $(function() {
            var app = new Vue({
                el: '#root',
AppInside/supVipManage/index.html
@@ -96,12 +96,13 @@
                            case 3:
                                break;
                            case 4:
                            yesApp.jumpWeb('http://apph5.banliapp.com/AppInside/openVip/index.html', null)
                                break;
                            case 5:
                                yesApp.jumpWeb('http://192.168.1.66:8848/flqFront/AppInside/yjCompute/index.html', null)
                                yesApp.jumpWeb('http://apph5.banliapp.com/AppInside/yjCompute/index.html', null)
                                break;
                            case 6:
                                yesApp.jumpWeb('http://192.168.1.66:8848/flqFront/AppInside/dataPreview/datapreviewmain.html', null)
                                yesApp.jumpWeb('http://192.168.1.122:8848/flqFront/AppInside/dataPreview/datapreviewmain.html', null)
                                break;
                            case 7:
                                break;
AppInside/yjCompute/css/stylesheet.css
@@ -1,6 +1,5 @@
* {
    margin: 0;
    top: 0;
    /* 不允许复制 */
    -moz-user-select: none;
    /* Firefox私有属性 */
@@ -45,20 +44,22 @@
}
.content {
    color: #888888;
    color: #333333;
    font-size: 0.36rem;
    margin-right: 0.35rem;
    font-weight: bold;
    border-style: none;
    text-align: right;
    border: 0;
    outline: none;
}
.div_commit {
    bottom: 0;
    background-color: #FFFFFF;
    position: fixed;
    width: 7.5rem;
    height: 0.96rem;
    top: 11.1rem;
    bottom: 0;
    z-index: 1000;
    display: -webkit-flex;
    align-items: center;
@@ -76,6 +77,12 @@
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
}
@supports (bottom: env(safe-area-inset-bottom)) {
    .div_commit {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
.div_add_bg {
@@ -175,69 +182,69 @@
    font-size: 0.28rem;
    height: 0.28rem;
    display: -webkit-flex;
    align-items: center;
    margin-top: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
    margin-left: 0.27rem;
}
.div_fantypes_bg {
    margin-top: 0.06rem;
}
.div_fantypes {
    color: #000000;
    font-size: 0.28rem;
    background-color: #F3F3F3;
    margin-top: 0.22rem;
    height: 0.7rem;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.92rem;
    margin-right: 0.92rem;
    border-radius: 0.06rem;
    position: relative;
}
.div_fantypes.checked {
    background-color: #FFD1E4;
    color: #E5005C;
}
.div_fantypes:hover {
    background-color: #FFD1E4;
    color: #E5005C;
}
.div_selcet.checked {
    opacity: 1;
}
.div_selcet:hover {
    opacity: 1;
}
.div_selcet {
    width: 0.38rem;
    height: 0.39rem;
    right: 0;
    top: 0.32rem;
    position: absolute;
    opacity: 0;
}
.dialog_commit {
    color: #FFFFFF;
    font-size: 0.32rem;
    background-color: #E5005C;
    border-radius: 0.4rem;
    margin-top: 0.63rem;
    margin-left: 0.42rem;
    margin-right: 0.42rem;
    height: 0.8rem;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
}
.div_fantypes_bg {
    margin-top: 0.06rem;
}
.div_fantypes {
    color: #000000;
    font-size: 0.28rem;
    background-color: #F3F3F3;
    margin-top: 0.22rem;
    height: 0.7rem;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.92rem;
    margin-right: 0.92rem;
    border-radius: 0.06rem;
    position: relative;
}
.div_fantypes.checked {
    background-color: #FFD1E4;
    color: #E5005C;
}
.div_fantypes:hover {
    background-color: #FFD1E4;
    color: #E5005C;
}
.div_selcet.checked {
    opacity: 1;
}
.div_selcet:hover {
    opacity: 1;
}
.div_selcet {
    width: 0.38rem;
    height: 0.39rem;
    right: 0;
    top: 0.32rem;
    position: absolute;
    opacity: 0;
}
.dialog_commit {
    color: #FFFFFF;
    font-size: 0.32rem;
    background-color: #E5005C;
    border-radius: 0.4rem;
    margin-top: 0.63rem;
    margin-left: 0.42rem;
    margin-right: 0.42rem;
    height: 0.8rem;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
}
AppInside/yjCompute/index.html
@@ -20,17 +20,18 @@
            <div class="div_item_bg">
                <div class="div_items" v-for="(item, index) in yjlist">
                    <div class="title">{{item.title}}</div>
                    <div class="content">{{item.content}}</div>
                    <input type="text" class="content" v-bind:placeholder="index==yjlist.length-1?item.content:''" :value="state==0?'':item.content"
                     v-bind:readonly="index==yjlist.length-1?(state==0?false:true):true" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" />
                </div>
            </div>
            <!-- 添加粉丝 -->
            <div class="div_add_bg" @click="addFans">
            <div class="div_add_bg" @click="addFans" v-if="state==0">
                <div class="div_img">
                    <img src="img/icon_add.png">
                </div>
                <div class="div_add_desc">添加粉丝</div>
            </div>
            <div class="div_desc">建议粉丝数不超过9代</div>
            <div class="div_desc"  v-if="state==0">建议粉丝数不超过9代</div>
            <div style="height: 1.5rem;"></div>
            <!-- 提交申请 -->
@@ -65,7 +66,8 @@
                    buttonName: '开始计算',
                    yjlist: [],
                    n: 0,
                    typelist: ['超级会员', '高级会员', '快省达人']
                    typelist: ['超级会员', '高级会员', '快省达人'],
                    state: 0 //0-输入模式  1-显示模式
                },
                watch: {
                    yjlist: function(val) {
@@ -79,6 +81,8 @@
                },
                methods: {
                    addFans: function() {
                        if (app.yjlist != null && app.yjlist.length >= 9)
                            return;
                        $('.dialogmask').css('display', 'block')
                    },
@@ -97,19 +101,22 @@
                        if (app.n == 0) {
                            params = {
                                title: '超级会员',
                                content: '¥0.00'
                                content: '¥0.00',
                                level: 'superVIP'
                            }
                        } else if (app.n == 1) {
                            params = {
                                title: '普通会员',
                                content: '¥0.00'
                                title: '高级会员',
                                content: '¥0.00',
                                level: 'highVIP'
                            }
                        } else if (app.n == 2) {
                            params = {
                                title: '快省达人',
                                content: '¥0.00'
                                content: '¥0.00',
                                level: 'daRen'
                            }
                        }
                        var list = app.yjlist;
@@ -121,14 +128,70 @@
                        if (app.buttonName == '开始计算') {
                            if (app.yjlist == null || app.yjlist.length <= 0) return;
                            //请求数据改变
                            app.buttonName = '重新填写';
                            app.compute();
                        } else {
                            app.state = 0;
                            //重新填写清空数据
                            app.yjlist.splice(0, app.yjlist.length);
                            app.buttonName = '开始计算';
                        }
                    },
                    compute: function() {
                        var json = new Array();
                        for (var i = 0; i < app.yjlist.length; i++) {
                            json.push(app.yjlist[i].level);
                        }
                        var money = $("input[type=text]:last").val();
                        if (money == null || money == '' || money.length < 1) {
                            yesApp.toast("请输入金额");
                            return;
                        }
                        var params = {
                            list: JSON.stringify(json),
                            money: money
                        };
                        params = yesApp.getRequestBaseParams(params);
                        yesApp.showLoading();
                        $.ajax({
                            type: "GET",
                            data: JSON.parse(params),
                            url: "http://api.flqapp.com/fanli/api/v1/help/computeCommission",
                            dataType: "jsonp",
                            async: true,
                            success: function(result) {
                                yesApp.hideLoading();
                                app.state = 1;
                                if (result.code == 0) {
                                    var list = result.data.list;
                                    var appList = app.yjlist;
                                    for (var i = 0; i < list.length; i++) {
                                        appList[i].content = list[i];
                                        appList[i].show = 1;
                                    }
                                    app.buttonName = '重新填写';
                                } else {
                                    yesApp.toast(result.msg);
                                }
                            },
                            fail: function(res) {
                                yesApp.hideLoading();
                            }
                        });
                    }
                }
            });
        });