移动系统liao
2024-11-12 1cb49b04ae6709e6054c328f5ed12bff9ca014c8
CoreCms.Net.Web.Admin/wwwroot/views/distribution/distributor/index.html
@@ -106,7 +106,7 @@
    <!-- <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="qrcode">小程序码</a> -->
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="achievement">推广费</a>
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
    <a class="layui-btn layui-btn-xs" lay-event="edit">审核</a>
    <a class="layui-btn layui-btn-xs {{d.verifyStatus!=1?'layui-btn-danger' :''}} " lay-event="edit">{{d.verifyStatus==1?'修改' :'审核'}} </a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" data-dropdown="#CoreCmsDistributionTbDelDrop{{d.LAY_NUM}}" no-shade="true">删除</a>
    <div class="dropdown-menu-nav dropdown-popconfirm dropdown-top-right layui-hide" id="CoreCmsDistributionTbDelDrop{{d.LAY_NUM}}"
         style="max-width: 200px; white-space: normal; min-width: auto; margin-left: 10px;">
@@ -189,10 +189,11 @@
                          // { field: 'weixin', title: '微信号', sort: false, width: 100 },
                          { field: 'profession', title: '行业', sort: false, width: 100 },
                         //   { field: 'qq', title: 'qq号', sort: false, width: 90 },
                         { field: 'sales', title: '年营业额(元)', sort: false, width: 100 },
                            { field: 'storeName', title: '店铺名称', sort: false },
                         { field: 'sales', title: '年营业额(元)', sort: true, width: 100 },
                            { field: 'storeName', title: '店铺名称', sort: false, width: 133 },
                            { field: 'address', title: '地址', sort: false, width: 270 },
                            { field: 'storeCoordinate', title: '店铺坐标', sort: false },
                           // { field: 'storeCoordinate', title: '店铺坐标', sort: false },
                           // {
                            //    field: 'storeLogo', title: 'Logo', sort: false, width: 60, templet: function (d) {
                            //        if (d.storeLogo) {
@@ -201,7 +202,28 @@
                              //          return '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + setter.noImagePicUrl + '")><image style="max-width:30px;max-height:30px;" src="' + setter.noImagePicUrl + '" /></a>';
                               //     }
                             //   }
                          //  },
                            //  },
                            { field: 'schoolName', title: '学校名称', sort: true, width: 133 },
                          {
                            field: 'idCradNumber', title: '身份证', width: 120, sort: false,
                            templet: function (d) {
                                if (d.idCradNumber) {
                                  var listimg= d.idCradNumber.split(",")
                                  var str="";
                                  listimg.forEach((value,index)=>
                                  {
                                    str+= '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + value + '")><image style="max-width:30px;max-height:30px;  margin-left: 5px;" src="' + value + '" /></a>'
                                  })
                                    return str;
                                } else {
                                    return '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + setter.noImagePicUrl + '")><image style="max-width:30px;max-height:30px;   margin-left: 5px;" src="' + setter.noImagePicUrl + '" /></a>';
                                }
                            }
                        },
                            {
                                field: 'storeBanner', title: '门头图片', sort: false, width: 100, templet: function (d) {
                                    if (d.storeBanner) {
@@ -211,7 +233,11 @@
                                    }
                                }
                            },
                            { field: 'distributionAchievementTotals', title: '历史推广费总和(元)', sort: false, width: 100 },
                            { field: 'distributionAchievementTotals', title: '历史推广费总和(元)', sort: false, width: 133 },
                            { field: 'distributionYingLingTotals', title: '应领佣金(元)', sort: false, width: 133 },
                            { field: 'distributionKeLingTotals', title: '可领佣金(元)', sort: false, width: 133 },
                            { field: 'distributionYiJieSuanTotals', title: '已结算佣金(元)', sort: false, width: 133 },
                            //{ field: 'storeDesc', title: '店铺简介', sort: false, width: 105 },
                            {
                                field: 'verifyStatus', title: '审核状态', sort: false, width: 80, templet: function (data) {
@@ -222,6 +248,7 @@
                                    }
                                }
                            },
                            { field: 'createTime', title: '创建时间', width: 130, sort: false },
                            { field: 'updateTime', title: '更新时间', width: 130, sort: false },
                            { field: 'verifyTime', title: '审核时间', width: 130, sort: false },
@@ -322,7 +349,7 @@
                            admin.popup({
                                shadeClose: false,
                                title: '编辑数据',
                                area: ['640px', '300px'],
                                area: ['640px', '350px'],
                                id: 'LAY-popup-CoreCmsDistribution-edit',
                                success: function (layero, index) {
                                    view(this.id).render('distribution/distributor/edit', { data: e.data }).done(function () {
@@ -368,10 +395,19 @@
                function doDetails(obj) {
                    coreHelper.Post("Api/CoreCmsDistribution/GetDetails", { id: obj.data.id }, function (e) {
                        if (e.code === 0) {
                            debugger
        if(e.data.model.idCradNumber)
        {
            lisimg=e.data.model.idCradNumber.split(',');
            e.data.lisimg1=lisimg[0];
            e.data.lisimg2=lisimg[1];
        }
                            admin.popup({
                                shadeClose: false,
                                title: '查看详情',
                                area: ['700px', '550px'],
                                area: ['700px', '600px'],
                                id: 'LAY-popup-CoreCmsDistribution-details',
                                success: function (layero, index) {
                                    view(this.id).render('distribution/distributor/details', { data: e.data }).done(function () {