username@email.com
2024-05-29 7a3a4f8012a72f80d8dd62064a76655c803da864
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<script type="text/html" template lay-done="layui.data.done(d);">
    <table class="layui-table layui-form" lay-filter="LAY-app-CoreCmsDistribution-detailsForm" id="LAY-app-CoreCmsDistribution-detailsForm">
        <colgroup>
            <col width="150">
            <col>
        </colgroup>
        <tbody>
            <tr>
                <td style="width: 20%;">
                    <label for="id">序列</label>
                </td>
                <td style="width: 30%;">
                    {{ d.params.data.model.id || '' }}
                </td>
                <td style="width: 20%;">
                    <label for="userId">用户Id</label>
                </td>
                <td style="width: 30%;">
                    {{ d.params.data.model.userId || '' }}
                </td>
            </tr>
 
            <tr>
                <td>
                    <label for="name">经销商名称</label>
                </td>
                <td>
                    {{ d.params.data.model.name || '' }}
                </td>
                <td>
                    <label for="gradeId">经销等级</label>
                </td>
                <td>
                    {{# layui.each(d.params.data.grades, function(index, item){ }}
                    {{#  if(item.id === d.params.data.model.gradeId){ }}
                    <button class="layui-btn layui-btn-xs">{{ item.name }}</button>
                    {{#  } }}
                    {{# }); }}
                </td>
            </tr>
 
            <tr>
                <td>
                    <label for="mobile">手机号</label>
                </td>
                <td>
                    {{ d.params.data.model.mobile || '' }}
                </td>
                <td>
                    <label for="weixin">微信号</label>
                </td>
                <td>
                    {{ d.params.data.model.weixin || '' }}
                </td>
            </tr>
 
            <tr>
                <td>
                    <label for="qq">qq号</label>
                </td>
                <td colspan="3">
                    {{ d.params.data.model.qq || '' }}
                </td>
            </tr>
 
            <tr>
                <td>
                    <label for="storeName">店铺名称</label>
                </td>
                <td colspan="3">
                    {{ d.params.data.model.storeName || '' }}
                </td>
            </tr>
 
            <tr>
                <td>
                    <label for="storeLogo">店铺Logo</label>
                </td>
                <td>
                    <img src=" {{ d.params.data.model.storeLogo ? d.params.data.model.storeLogo:'/static/images/common/empty-banner.png' }}" />
                </td>
                <td>
                    <label for="storeBanner">店铺Banner</label>
                </td>
                <td>
                    <img src=" {{ d.params.data.model.storeBanner ? d.params.data.model.storeBanner:'/static/images/common/empty-banner.png' }}" />
                </td>
            </tr>
            <tr>
                <td>
                    <label for="schoolName">学校名称</label>
                </td>
                <td>
                    {{ d.params.data.model.schoolName || '' }}
                </td>
                <td>
                    <label for="idCradNumber">身份证</label>
                </td>
                <td>
                 {{#if(d.params.data.model.idCradNumber){}}
                  
               
                 <a href="javascript:;" class="preview-image" data-url="{{d.params.data.lisimg1}}">
                    <img src="{{d.params.data.lisimg1}}" alt="图片预览" style="max-width:30px;max-height:30px;  margin-left: 5px;">
                  </a>
                     <!-- <a href="javascript:void(0);" onclick=""><img style="max-width:30px;max-height:30px;  margin-left: 5px;" src="{{d.params.data.lisimg1}}" /></a>
 
                     <a href="javascript:void(0);" onclick=""><img style="max-width:30px;max-height:30px;  margin-left: 5px;" src="{{d.params.data.lisimg1}}" /></a> -->
                    {{# }else{}}
           
                    <img src=" /static/images/common/empty-banner.png" />
                    {{# }}}
                </td>
            </tr>
            <tr>
                <td>
                    <label for="storeDesc">店铺简介</label>
                </td>
                <td colspan="3">
                    {{ d.params.data.model.storeDesc || '' }}
                </td>
            </tr>
 
            <tr>
                <td>
                    <label for="createTime">创建时间</label>
                </td>
                <td>
                    {{ d.params.data.model.createTime || '' }}
                </td>
                <td>
                    <label for="updateTime">更新时间</label>
                </td>
                <td>
                    {{ d.params.data.model.updateTime || '' }}
                </td>
            </tr>
            <tr>
                <td>
                    <label for="verifyStatus">审核状态</label>
                </td>
                <td>
                    {{# layui.each(d.params.data.distributionVerifyStatus, function(index, item){ }}
 
                    {{#  if(item.value === d.params.data.model.verifyStatus){ }}
                    <button class="layui-btn layui-btn-xs">{{ item.description }}</button>
                    {{#  } }}
 
                    {{# }); }}
                </td>
                <td>
                    <label for="verifyTime">审核时间</label>
                </td>
                <td>
                    {{ d.params.data.model.verifyTime || '' }}
                </td>
            </tr>
        </tbody>
    </table>
</script>
 
<script>
    var debug = layui.setter.debug;
    layui.data.done = function (d) {
        //开启调试情况下获取接口赋值数据
        if (debug) { console.log(d.params.data); }
 
 
        layui.use(['admin', 'form', 'coreHelper','photos'], function () {
            var $ = layui.$
                , setter = layui.setter
                , admin = layui.admin
                , coreHelper = layui.coreHelper
                ,photos=layui.photos
                , form = layui.form;
                
            form.render(null, 'LAY-app-CoreCmsDistribution-detailsForm');
        });
 
         // 监听图片链接的点击事件
  $('.preview-image').on('click', function () {
    var index = $(this).data('index');
    var imgSrc = $(this).attr('href');
 
    // 使用layer的图片预览功能
    layer.photos({
      photos: '.image-links' // 这里指定了图片所在的父容器
      , anim: 5 // 图片切换动画,默认是0,可以设置0-6的数字,代表不同的动画效果
      , success: function (layero, index) {
        // 当前预览的图片索引
        console.log('当前预览的图片索引:', index);
        // 如果需要,你可以在这里添加更多的操作,比如关闭时的回调
      }
    });
 
    return false; // 阻止默认的链接行为
  });
    };
</script>