123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- {layout name="layout2" /}
- <style>
- .div-flex {
- display: flex;
- align-items: center;
- justify-content: left;
- }
- .image {
- height: 80px;
- width: 80px;
- }
- </style>
-
- <div class="layui-card-body">
- <!--基本信息-->
- <div class="layui-form" lay-filter="layuiadmin-form-order" id="layuiadmin-form-order">
- <input type="hidden" class="id" name="id" value="{$detail.id}">
-
- <div class="layui-form-item div-flex">
- <label class="layui-form-label ">产品来源</label>
- <div class="div-width">{$detail.source_type_text}</div>
- </div>
-
- <div class="layui-form-item div-flex">
- <label class="layui-form-label ">商品名称:</label>
- <div class="div-width">{$detail.name}</div>
- </div>
-
- <div class="layui-form-item div-flex">
- <label class="layui-form-label ">商品封面:</label>
- <div class="div-width"><img src="{$detail.cover_img}" class="image-show image"></div>
- </div>
-
- <!-- 价格形式-->
- <div class="layui-form-item div-flex">
- <label class="layui-form-label ">价格形式:</label>
- <div class="div-width">
- <span>{$detail.price_type_text}</span>
- <span>{$detail.price_tips}</span>
- </div>
- </div>
-
- <div class="layui-form-item div-flex">
- <label class="layui-form-label ">商品链接:</label>
- <div class="div-width">{$detail.url}</div>
- </div>
-
- <div class="layui-form-item div-flex">
- <label class="layui-form-label ">审核状态:</label>
- <div class="div-width">{$detail.audit_status_text}</div>
- </div>
-
- <div class="layui-form-item div-flex">
- <label class="layui-form-label">审核原因:</label>
- <div class="layui-input-inline">
- <textarea name="audit_remark" placeholder="请输入审核不通过的原因" class="layui-textarea audit_remark">{$detail.audit_remark}</textarea>
- </div>
- </div>
-
- <div class="layui-form-item" style="text-align: center">
- <div class="layui-input-block ">
- {eq name= "detail.sys_audit_status" value="0"}
- <button type="button" class="layui-btn layui-btn-sm layui-btn-danger width_160 " id="fail">不通过</button>
- <button type="button" class="layui-btn layui-btn-sm layui-btn-normal width_160 " id="success">通过</button>
- {/eq}
- <button type="button" class="layui-btn layui-btn-sm layui-btn-primary width_160 " id="back">返回</button>
- </div>
- </div>
-
- </div>
- </div>
-
- <script type="text/javascript">
- layui.use(['form'], function () {
- var $ = layui.$;
- var id = $('.id').val();
- //主图放大
- $(document).on('click', '.image-show', function () {
- var src = $(this).attr('src');
- like.showImg(src, 400);
- });
-
- $('#back').click(function () {
- var index=parent.layer.getFrameIndex(window.name); //获取当前窗口的name
- parent.layer.close(index);
- parent.layui.table.reload('like-table-lists');
- return true;
- });
-
-
- // 审核通过
- $('#success').click(function () {
- var audit_remark = $('.audit_remark').val();
- layer.confirm('确认审核通过吗?', {
- btn: ['确认', '取消'] //按钮
- }, function () {
- like.ajax({
- url: '{:url("live.LiveGoods/audit")}'
- , data: {'id': id, 'status': 1, 'audit_remark': audit_remark}
- , type: 'post'
- , success: function (res) {
- if (res.code == 1) {
- layui.layer.msg(res.msg, {
- offset: '15px'
- , icon: 1
- , time: 1000
- }, function () {
- location.reload();
- });
- }
- }
- });
- });
- });
-
-
- // 审核失败
- $('#fail').click(function () {
- var audit_remark = $('.audit_remark').val();
- like.ajax({
- url: '{:url("live.LiveGoods/audit")}'
- , data: {'id': id, 'status': 3, 'audit_remark': audit_remark}
- , type: 'post'
- , success: function (res) {
- if (res.code == 1) {
- layui.layer.msg(res.msg, {
- offset: '15px'
- , icon: 1
- , time: 1000
- }, function () {
- location.reload();
- });
- }
- },
- });
- });
-
- });
- </script>
|