移动系统liao
2024-05-09 5d6cb15ac86d9174393cb9d1538d69b567e2c26c
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
<script type="text/html" template lay-done="layui.data.done(d);">
    <table class="layui-table layui-form" lay-filter="LAY-app-CoreCmsGoodsComment-detailsForm" id="LAY-app-CoreCmsGoodsComment-detailsForm">
        <colgroup>
            <col width="100">
            <col>
        </colgroup>
        <tbody>
 
            <tr>
                <td>
                    <label for="id">序列</label>
                </td>
                <td>
                    {{ d.params.data.id || '' }}
                </td>
            </tr>
 
            <tr>
                <td>
                    <label for="commentId">评价用户</label>
                </td>
                <td>
                    <a href="javascript:void(0);" onclick="layui.coreHelper.viewImage('{{ d.params.data.avatarImage || layui.setter.noImagePicUrl }}')"><image style="max-width:60px;max-height:60px;border-radius: 30px;" src="{{d.params.data.avatarImage || layui.setter.noImagePicUrl }}" /></a>   {{ d.params.data.nickName || '' }}  【{{ d.params.data.mobile || '' }}】
 
                </td>
            </tr>
 
            <tr>
                <td>
                    <label for="score">评价星级</label>
                </td>
                <td>
                    {{ d.params.data.score || '' }}
                </td>
            </tr>
            <tr>
                <td>
                    <label for="goodsId">商品名称</label>
                </td>
                <td>
                    {{ d.params.data.goodName || '' }}
                </td>
            </tr>
 
            <tr>
                <td>
                    <label for="orderId">评价订单</label>
                </td>
                <td>
                    {{ d.params.data.orderId || '' }}
                </td>
            </tr>
 
            <tr>
                <td>
                    <label for="addon">货品规格</label>
                </td>
                <td>
                    {{ d.params.data.addon || '' }}
                </td>
            </tr>
 
            <tr>
                <td>
                    <label for="images">评价图片</label>
                </td>
                <td>
                    {{#  layui.each(d.params.data.imagesArr, function(index, item){ }}
                    <a href="javascript:void(0);" onclick="layui.coreHelper.viewImage('{{ item || '' }}')"><image style="max-width:128px;max-height:128px;" src="{{item || '' }}" /></a>&nbsp;
                    {{#  }); }}
                </td>
            </tr>
 
            <tr>
                <td>
                    <label for="contentBody">评价内容</label>
                </td>
                <td>
                    {{ d.params.data.contentBody || '' }}
                </td>
            </tr>
 
            <tr>
                <td>
                    <label for="sellerContent">商家回复</label>
                </td>
                <td>
                    {{ d.params.data.sellerContent || '' }}
                </td>
            </tr>
 
            <tr>
                <td>
                    <label for="isDisplay">前台显示</label>
                </td>
                <td>
                    <input type="checkbox" disabled name="isDisplay" value="{{d.params.data.isDisplay}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="isDisplay" {{ d.params.data.isDisplay ? 'checked' : '' }}>
                </td>
            </tr>
 
            <tr>
                <td>
                    <label for="createTime">创建时间</label>
                </td>
                <td>
                    {{ d.params.data.createTime || '' }}
                </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','setter'], function () {
            var $ = layui.$
                , setter = layui.setter
                , admin = layui.admin
                , coreHelper = layui.coreHelper
                , form = layui.form;
            form.render(null, 'LAY-app-CoreCmsGoodsComment-detailsForm');
        });
    };
</script>