chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
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
{yun:}include file="$wapstyle/member/cheader.htm"{/yun}
<script src="{yun:}$wap_style{/yun}/js/compress.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/exif.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script type="text/javascript">
      function check_company_cert() {
        var title = $('#title').val();
        var pic = $("input[name=preview]").val();
        var picurl = $("input[name=picurl]").val();
            
        if(title==''){
            layermsg('请输入标题');
            return false;
        }
        if(!picurl){
            if(!pic){
                layermsg('请上传图片');
                return false;
            }
        }
        return true;
    }
</script>
<form method="post" action="" onsubmit="return check_company_cert();">
    <ul class="yunset_password mt15">
        <li>
            <span class="yunset_password_mname">标题</span>
            <input type="text" name="title" id="title" placeholder="请输入标题" value="{yun:}$row.title{/yun}" class="yunset_text" style="text-align:left;">
            <input type="hidden" name="id" value="{yun:}$row.id{/yun}" class="yunset_text">
            <input type="hidden" name="picurl" value="{yun:}$row.picurl{/yun}"/>
        </li>
    </ul>
    <div class="yunset_identity_box">
        <div class="yunset_identity">
            <div align="center" class="yunset_identity_pic_img" id="previewshow" {yun:}if !$row.picurl{/yun}style="display: none;" {yun:}/if{/yun}>
                <img src="{yun:}$row.picurl{/yun}"  id="previewimg" />
            </div>
            <div class="yunset_identity_pic">
                <input type="file" id="pic" onchange="previewImage(this,'preview')" accept="image/*" class="yunset_identity_pic_file">
                <input type='hidden' name='preview' value='' id='preview'>
            </div>
            <i class="yunset_identity_pic_tj"></i>
            <div class="yunset_identity_tip"></div>
            <div class="yunset_identity_tip_c">上传企业环境 </div>
            <span class="yunset_identity_tip_a">选择上传图片</span>
        </div>
    </div>
    <div class="yunset_identity_msg">
        <i class="yunset_identity_msg_icon"></i>格式为 {yun:}$config.pic_type{/yun} 不得超过{yun:}$config.file_maxsize{/yun}M</div>
    <div class="yunset_bth_box">
        <input type="hidden" id="img" value="1">
        <input type="submit" name="submit" value="保存" class="yunset_bth">
    </div>
</form>
 
{yun:}include file="$wapstyle/footer.htm"{/yun}