Helius
2021-11-30 d4c997972509c2da06b1128086b1735597823d3f
Merge branch 'ty_fix' of http://120.27.238.55:7000/r/beauty-erp into ty_fix
7 files modified
172 ■■■■ changed files
zq-erp/pom.xml 4 ●●●● patch | view | raw | blame | history
zq-erp/src/main/resources/config/application.properties 8 ●●●● patch | view | raw | blame | history
zq-erp/src/main/resources/config/mdprd/system.properties 3 ●●●● patch | view | raw | blame | history
zq-erp/src/main/resources/config/prd/system.properties 5 ●●●●● patch | view | raw | blame | history
zq-erp/src/main/resources/config/test/system.properties 2 ●●●●● patch | view | raw | blame | history
zq-erp/src/main/resources/mybatis/mapper/hive/SysVipInfoDao.xml 2 ●●● patch | view | raw | blame | history
zq-erp/src/main/resources/templates/views/admin/shop/shopAdvertisType-list.html 148 ●●●●● patch | view | raw | blame | history
zq-erp/pom.xml
@@ -413,11 +413,11 @@
                    <exclude>config/xcx/*</exclude>
                    <exclude>config/xcshop/*</exclude>
                    <!---->
                    <!--
                    <exclude>config/config.json</exclude>
                    <exclude>config/application.properties</exclude>
                    <exclude>config/system.properties</exclude>
-->
                    <exclude>**/*.woff</exclude>
zq-erp/src/main/resources/config/application.properties
@@ -4,14 +4,14 @@
#线上测试环境
#
#spring.datasource.username=ct_test
#spring.datasource.password=123456
#spring.datasource.url=jdbc:mysql://120.27.238.55:3306/hive_test_meidu?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&allowMultiQueries=true&transformedBitIsBoolean=true&serverTimezone=GMT%2B8
spring.datasource.username=ct_test
spring.datasource.password=123456
spring.datasource.url=jdbc:mysql://120.27.238.55:3306/hive_test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&allowMultiQueries=true&transformedBitIsBoolean=true&serverTimezone=GMT%2B8
#spring.datasource.username=hive
#spring.datasource.password=hive123!@#
#spring.datasource.url=jdbc:mysql://124.70.222.34/hive_prd?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&allowMultiQueries=true&transformedBitIsBoolean=true&serverTimezone=GMT%2B8
#spring.datasource.username=xc_shop
#spring.datasource.password=xc_shop123!@#
#spring.datasource.url=jdbc:mysql://124.70.222.34/xc_shop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&allowMultiQueries=true&transformedBitIsBoolean=true&serverTimezone=GMT%2B8
zq-erp/src/main/resources/config/mdprd/system.properties
@@ -59,7 +59,8 @@
wechar_login_url =https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code
xcx_appid =wx3836ab3c1490ff29
xcx_secret =39a3687ec5b2666ed68e7c8b83b26b47
xcx_manager_appid=wx2948b3b914a9722e
xcx_manager_secret=1685dfd99a43e213ed8be07870b898ba
#微信支付调试开关
wx_pay_debug_onoff = false
zq-erp/src/main/resources/config/prd/system.properties
@@ -12,7 +12,7 @@
default_password=123
#nginx静态资源访问地址
static_resource_url=https://hive.file.csxuncong.com/uploadeFile/
static_resource_url=https://filehive2.jyymatrix.cc/uploadeFile/
#文件保存地址
file_storage_path=/mnt/hive/static/uploadeFile/
#文件上传大小字节为单位  10MB
@@ -59,7 +59,8 @@
wechar_login_url =https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code
xcx_appid =wx3836ab3c1490ff29
xcx_secret =39a3687ec5b2666ed68e7c8b83b26b47
xcx_manager_appid=wx2948b3b914a9722e
xcx_manager_secret=1685dfd99a43e213ed8be07870b898ba
#微信支付调试开关
wx_pay_debug_onoff = false
zq-erp/src/main/resources/config/test/system.properties
@@ -48,6 +48,8 @@
wechar_login_url =https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code
xcx_appid =wx5cc58f796224af61
xcx_secret =facea088aae414e5c2ee86b459887721
xcx_manager_appid=wx2948b3b914a9722e
xcx_manager_secret=1685dfd99a43e213ed8be07870b898ba
gzh_appid=wx57e6335559bdbda6
gzh_secret=ecb408af170e3890e6544290cad33760
zq-erp/src/main/resources/mybatis/mapper/hive/SysVipInfoDao.xml
@@ -1461,7 +1461,7 @@
               c.LEVEL_NAME vipLevel,
               a.POINT_ALL integral,
               e.shop_short_name shopName,
               sum(IFNULL(b.gift_money, 0)) totalBalance,
               sum(IFNULL(b.real_money, 0)) totalBalance,
               sum(IFNULL(b.gift_money, 0)) giftBalance,
               (select sum(IFNULL(d.goods_cash, 0) + IFNULL(d.proj_cash, 0) + IFNULL(d.card_cash, 0)) from achieve_new d where d.vip_id=a.id) totalShopping
        from sys_vip_info a
zq-erp/src/main/resources/templates/views/admin/shop/shopAdvertisType-list.html
@@ -92,6 +92,34 @@
        .drawer {
            overflow: scroll;
        }
        .assembly-style .el-form-item__content{
            margin-left: 0px !important;
            display: flex;
            align-items: center;
        }
        .assembly-style .el-input{
            width: 100px !important;
        }
        .assembly-style i{
            font-size: 30px;
        }
        .assembly-style .active{
            color: #409eff;
        }
        .module-property{
            display: flex;
            flex-wrap: wrap;
        }
        .module-property .el-form-item__content{
            margin-left: 0px !important;
            display: flex;
            align-items: center;
        }
        .module-property .el-input{
            width: 100px !important;
        }
    </style>
</head>
<body>
@@ -320,12 +348,36 @@
                </el-col>-->
            </el-form-item>
            <el-form-item label="CSS样式">
                <el-input v-model="currentNode.nodeStyleStr"></el-input>
<!--            <el-form-item label="CSS样式">-->
<!--                <el-input v-model="currentNode.nodeStyleStr"></el-input>-->
<!--            </el-form-item>-->
            <el-form-item label="组件宽高" class="assembly-style">
                <el-input v-model="zjwidth" v-on:input="widthChange"></el-input>
                <i :class="selected ? 'el-icon-link active' : 'el-icon-link'" @click="fixedProportion"></i>
                <el-input v-model="zjheight" v-on:input="heightChange"></el-input>
            </el-form-item>
            <el-form-item label="节点属性">
                <el-input v-model="currentNode.nodeAttribute"></el-input>
<!--            <el-form-item label="节点属性">-->
<!--                <el-input v-model="currentNode.nodeAttribute"></el-input>-->
<!--            </el-form-item>-->
            <el-form-item label="组件属性">
<!--                1.图片-->
<!--                6.滑块-->
<!--                3.轮播图-->
<!--                4.视频-->
<!--                5.跑马灯文字-->
                <el-from class="module-property" >
                    <el-form-item label="自动切换时间间隔(毫秒)">
                        <el-input v-model="interval"></el-input>
                    </el-form-item>
                    <el-form-item label="前边距">
                        <el-input v-model="previousMargin"></el-input>
                    </el-form-item>
                    <el-form-item label="后边距">
                        <el-input v-model="nextMargin"></el-input>
                    </el-form-item>
                </el-from>
            </el-form-item>
            <el-form-item label="页面组">
                <el-input v-model="currentNode.pageCode"></el-input>
@@ -366,7 +418,6 @@
<script>
    var id = $.query.get("id");
@@ -390,6 +441,14 @@
            pageList:[],
            //当前编辑页面
            currentPage:{},
            zjwidth:'',
            zjheight:'',
            selected:false,
            //宽高比
            aspectRatio:'',
            interval:'',
            previousMargin:'',
            nextMargin:'',
        },
        created: function () {
@@ -414,8 +473,17 @@
        mounted: function () {
        },
        methods: {
            widthChange(){
                if(this.selected){
                    this.zjheight = parseInt(this.zjwidth/this.aspectRatio)
                }
            },
            heightChange(){
                if(this.selected){
                    this.zjwidth = parseInt(this.zjheight*this.aspectRatio)
                }
            },
            getHeight() {
                this.height = window.innerHeight - 40 + 'px';
            },
@@ -431,15 +499,32 @@
                    spinner: 'el-icon-loading',
                    background: 'rgba(0, 0, 0, 0.7)'
                });
                let f = e.target.files[0];
                let reader = new FileReader();
                reader.onload = function (e) {
                    let data = e.target.result;
                    //加载图片获取图片真实宽度和高度
                    let image = new Image();
                    image.onload=function(){
                        let width = image.width;
                        let height = image.height;
                        _this.aspectRatio= width/height
                    };
                    image.src= data;
                };
                reader.readAsDataURL(f);
                uploadForImage(
                    basePath + "/admin/multipleUploadFile/doUpload",
                    e.target.files[0],
                    function (d, result) {
                        _this.process = d + "%";
                        if (d == 100) {
                            if (result) {
                                if (result.status == 200) {
                                    loading.close();
                                    _this.currentNode.ads[index].imgUrl = result.path;
                                } else {
@@ -512,8 +597,38 @@
            },
            clickNode(node) {
                console.log(node)
                var _this = this;
                this.currentNode = node;
                this.drawer = !this.drawer;
                this.zjwidth = node.nodeStyle.width.substring(0,node.nodeStyle.width.length-2);
                this.zjheight = node.nodeStyle.height.substring(0,node.nodeStyle.height.length-2);
                let nodeAttribute = JSON.parse(node.nodeAttribute)
                console.log(1111)
                console.log(nodeAttribute)
                if(nodeAttribute.interval){
                    _this.interval = nodeAttribute['interval'];
                    _this.previousMargin = nodeAttribute['previous-margin'];
                    _this.nextMargin = nodeAttribute['next-margin'];
                }
                let image = new Image();
                image.onload = function() {
                    let width = image.width; // 宽 px
                    let height = image.height; // 高 px
                    _this.aspectRatio = width/height;
                    console.log(1111);
                    console.log(_this.aspectRatio);
                }
                if(node.ads){
                    image.src = node.ads[0].imgUrl;
                }else {
                    image.src = node.nodeValue;
                }
            },
            //改变编辑页面,切换页面元素
@@ -521,7 +636,6 @@
                this.currentPage=this.pageList[index];
                this.currentPageCode=this.pageList[index].code;
                console.log(this.currentPageCode);
                this.loadPageAds();
            },
            loadPageAds() {
@@ -537,6 +651,8 @@
                            if (node.nodeStyle != null && node.nodeStyle.length > 1) {
                                node.nodeStyleStr = node.nodeStyle;
                                node.nodeStyle = JSON.parse(node.nodeStyle);
                                _this.zjwidth = node.nodeStyle.width.substring(0,node.nodeStyle.width.length-2);
                                _this.zjheight = node.nodeStyle.height.substring(0,node.nodeStyle.height.length-2);
                            }
                        }
                        _this.adNodes = data.rows;
@@ -601,9 +717,18 @@
                if (!this.validation(cNode)) {
                    return false;
                }
                let zjw = this.zjwidth;
                let zjh = this.zjheight;
                if(zjw != null && zjh != null){
                    cNode.nodeStyleStr = '{"width":"'+zjw+'px","height":"'+zjh+'px"}';
                }
                if(this.interval != null && this.previousMargin != null && this.nextMargin != null){
                    cNode.nodeAttribute = '{"interval":'+this.interval+',"previous-margin":'+this.previousMargin+',"next-margin":'+this.nextMargin+'}';
                }
                if (cNode.nodeStyleStr != null && cNode.nodeStyleStr.length > 1) {
                    cNode.nodeStyle = JSON.parse(cNode.nodeStyleStr);
                }
                let data = {
@@ -673,7 +798,14 @@
                    "1"
                );
            },
            fixedProportion(){
                let _this = this;
                _this.selected = !_this.selected
                if(_this.selected){
                    _this.zjwidth = 0
                    _this.zjheight = 0
                }
            },
        },
        destroyed() {