chengmw
2026-04-02 f6b958eedcfd1ec955a8638ec8f70d01a9c05ae6
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>在线修改调解协议书</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
            padding: 20px;
        }
        
        .container {
            max-width: 1000px;
            margin: 0 auto;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
            overflow: hidden;
        }
        
        .header {
            background-color: #1A6FB8;
            color: white;
            padding: 25px 30px;
            border-bottom: 5px solid #0d4a8a;
        }
        
        .header h1 {
            font-size: 24px;
            margin-bottom: 10px;
            font-weight: 600;
        }
        
        .header .subtitle {
            font-size: 16px;
            opacity: 0.9;
        }
        
        .main-content {
            padding: 25px 30px;
        }
        
        .section-title {
            color: #1A6FB8;
            font-size: 18px;
            margin-bottom: 15px;
            padding-left: 10px;
            border-left: 4px solid #1A6FB8;
        }
        
        /* 协议书编辑区域样式 */
        .agreement-editor {
            margin-bottom: 25px;
        }
        
        .editor-area {
            border: 1px solid #d0e3ff;
            border-radius: 8px;
            min-height: 600px;
            padding: 30px;
            font-size: 16px;
            line-height: 1.8;
            background-color: #f9fafc;
        }
        
        .editor-area:focus {
            outline: none;
            border-color: #1A6FB8;
            box-shadow: 0 0 0 2px rgba(26, 111, 184, 0.1);
        }
        
        /* 可编辑内容样式 */
        .editable {
            position: relative;
            display: inline-block;
            min-width: 80px;
            padding-bottom: 2px;
            margin: 0 2px;
            cursor: text;
        }
        
        .editable::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 1px;
            background-color: #1A6FB8;
            border-bottom: 1px dashed #1A6FB8;
        }
        
        .editable:hover::after {
            background-color: #ff6b6b;
            border-bottom: 1px solid #ff6b6b;
        }
        
        .editable:focus {
            outline: none;
            background-color: #fffacd;
            border-radius: 3px;
        }
        
        /* 操作按钮样式 */
        .action-buttons {
            display: flex;
            justify-content: flex-end;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #eaeaea;
        }
        
        .btn {
            padding: 12px 36px;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            font-size: 16px;
            border: none;
            transition: all 0.2s;
            background-color: #1A6FB8;
            color: white;
        }
        
        .btn:hover {
            background-color: #155a9c;
        }
        
        /* 不可编辑内容样式 */
        .uneditable {
            display: inline;
        }
        
        .note {
            font-size: 14px;
            color: #666;
            margin-top: 15px;
            padding: 10px;
            background-color: #f0f8ff;
            border-radius: 5px;
            border-left: 3px solid #1A6FB8;
        }
        
        @media (max-width: 768px) {
            .header, .main-content {
                padding: 20px;
            }
            
            .btn {
                width: 100%;
                padding: 12px 24px;
            }
            
            .editor-area {
                padding: 20px;
                min-height: 500px;
                font-size: 15px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        
        
        <div class="main-content">
            <div class="note">
                <strong>编辑提示:</strong>下方协议书中带有下划线的文字均可直接点击编辑。编辑完成后,请点击页面底部的"保存"按钮。
            </div>
         <br/>   
            <div class="agreement-editor">
                
                <div class="editor-area" id="agreement-content">
                    <h3 style="text-align: center; margin-bottom: 20px; color: #1A6FB8; font-size: 22px;">调解协议书</h3>
                    
                    <p style="margin-bottom: 15px; font-size: 16px;">协议编号:<span class="editable" contenteditable="true">M20240510003</span></p>
                    
                    <p style="margin-bottom: 15px; font-size: 16px;">甲方(申请人):<span class="editable" contenteditable="true">黄某</span></p>
                    <p style="margin-bottom: 15px; font-size: 16px;">乙方(被申请人):<span class="editable" contenteditable="true">邓某</span></p>
                    
                    <p style="margin-bottom: 20px; font-size: 16px;">调解组织:<span class="editable" contenteditable="true">白云区新市街人民调解委员会</span></p>
                    
                    <p style="margin-bottom: 20px; text-indent: 2em; font-size: 16px;">甲乙双方因<span class="editable" contenteditable="true">邻里隐私权</span>纠纷一案,于<span class="editable" contenteditable="true">2024年5月15日</span>经<span class="editable" contenteditable="true">白云区新市街人民调解委员会</span>主持调解,双方在平等、自愿、协商的基础上,达成如下协议:</p>
                    
                    <h4 style="color: #1A6FB8; margin: 20px 0 10px; font-size: 17px;">一、纠纷事实</h4>
                    <p style="margin-bottom: 15px; text-indent: 2em; font-size: 16px;">乙方<span class="editable" contenteditable="true">邓某</span>在其入户门安装可视门铃,位置正对甲方<span class="editable" contenteditable="true">黄某</span>家卧室和阳台。甲方认为该可视门铃侵犯其隐私权,日常生活受到干扰,双方因此产生纠纷。</p>
                    
                    <h4 style="color: #1A6FB8; margin: 20px 0 10px; font-size: 17px;">二、协议内容</h4>
                    <p style="margin-bottom: 10px; font-size: 16px;">1. 乙方<span class="editable" contenteditable="true">邓某</span>承诺于本协议签订之日起<span class="editable" contenteditable="true">3</span>日内,将安装于入户门的可视门铃调整至合适位置,确保不直接拍摄到甲方<span class="editable" contenteditable="true">黄某</span>家卧室和阳台等私密区域。</p>
                    <p style="margin-bottom: 10px; font-size: 16px;">2. 乙方<span class="editable" contenteditable="true">邓某</span>就安装可视门铃给甲方<span class="editable" contenteditable="true">黄某</span>造成的不便,当面向甲方<span class="editable" contenteditable="true">黄某</span>口头赔礼道歉。</p>
                    <p style="margin-bottom: 10px; font-size: 16px;">3. 乙方<span class="editable" contenteditable="true">邓某</span>向甲方<span class="editable" contenteditable="true">黄某</span>一次性支付经济补偿人民币<span class="editable" contenteditable="true">500</span>元,用于甲方购买遮光窗帘等物品,以减少可视门铃可能造成的影响。</p>
                    <p style="margin-bottom: 10px; font-size: 16px;">4. 甲方<span class="editable" contenteditable="true">黄某</span>接受乙方<span class="editable" contenteditable="true">邓某</span>的道歉和经济补偿,不再就此事追究乙方<span class="editable" contenteditable="true">邓某</span>的其他责任。</p>
                    
                    <h4 style="color: #1A6FB8; margin: 20px 0 10px; font-size: 17px;">三、履行方式与期限</h4>
                    <p style="margin-bottom: 10px; font-size: 16px;">1. 本协议第一条、第二条内容于本协议签订之日履行。</p>
                    <p style="margin-bottom: 10px; font-size: 16px;">2. 本协议第三条内容,乙方应于本协议签订之日起<span class="editable" contenteditable="true">3</span>日内,将经济补偿人民币<span class="editable" contenteditable="true">500</span>元支付给甲方。</p>
                    
                    <h4 style="color: #1A6FB8; margin: 20px 0 10px; font-size: 17px;">四、其他事项</h4>
                    <p style="margin-bottom: 10px; font-size: 16px;">1. 本协议一式<span class="editable" contenteditable="true">三</span>份,甲、乙双方各执一份,调解委员会留存一份,具有同等法律效力。</p>
                    <p style="margin-bottom: 10px; font-size: 16px;">2. 本协议经双方签字后生效。</p>
                    <p style="margin-bottom: 10px; font-size: 16px;">3. 本协议履行完毕后,双方就本案纠纷再无其他争议。</p>
                    
                    <div style="margin-top: 40px;">
                        <div style="display: flex; justify-content: space-between; margin-bottom: 60px;">
                            <div>
                                <p style="font-size: 16px;">甲方(签字):<span class="editable" contenteditable="true"></span></p>
                                <p style="margin-top: 40px; font-size: 16px;">年<span class="editable" contenteditable="true" style="min-width: 40px;">  </span>月<span class="editable" contenteditable="true" style="min-width: 40px;">  </span>日</p>
                            </div>
                            <div>
                                <p style="font-size: 16px;">乙方(签字):<span class="editable" contenteditable="true"></span></p>
                                <p style="margin-top: 40px; font-size: 16px;">年<span class="editable" contenteditable="true" style="min-width: 40px;">  </span>月<span class="editable" contenteditable="true" style="min-width: 40px;">  </span>日</p>
                            </div>
                        </div>
                        
                        <div style="text-align: center; margin-top: 30px;">
                            <p style="font-size: 16px;">调解员(签字):<span class="editable" contenteditable="true">李调解员</span></p>
                            <p style="margin-top: 10px; font-size: 16px;"><span class="editable" contenteditable="true">白云区新市街人民调解委员会</span>(盖章)</p>
                            <p style="margin-top: 10px; font-size: 16px;">年<span class="editable" contenteditable="true" style="min-width: 40px;">  </span>月<span class="editable" contenteditable="true" style="min-width: 40px;">  </span>日</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="action-buttons">
                <button class="btn" onclick="saveAgreement()">保存修改</button>
            </div>
        </div>
    </div>
 
    <script>
        // 保存协议书
        function saveAgreement() {
            // 获取所有可编辑内容
            const editableElements = document.querySelectorAll('.editable');
            let editedContent = {};
            
            editableElements.forEach((element, index) => {
                const text = element.textContent.trim();
                if (text) {
                    editedContent[`field_${index}`] = text;
                }
            });
            
            // 在实际应用中,这里应该发送到服务器保存
            alert('调解协议书已保存!');
            
            // 模拟保存成功
            const saveTime = new Date().toLocaleString();
            console.log('协议书保存时间:', saveTime);
            console.log('编辑的内容:', editedContent);
        }
        
        // 页面加载完成后初始化
        document.addEventListener('DOMContentLoaded', function() {
            // 为所有可编辑元素添加点击事件,聚焦时全选内容
            const editableElements = document.querySelectorAll('.editable');
            editableElements.forEach(element => {
                element.addEventListener('click', function() {
                    this.focus();
                    
                    // 移动光标到内容末尾
                    const range = document.createRange();
                    const sel = window.getSelection();
                    range.selectNodeContents(this);
                    range.collapse(false); // 折叠到末尾
                    sel.removeAllRanges();
                    sel.addRange(range);
                });
                
                // 添加焦点和失焦样式变化
                element.addEventListener('focus', function() {
                    this.style.backgroundColor = '#fffacd';
                });
                
                element.addEventListener('blur', function() {
                    this.style.backgroundColor = '';
                });
            });
        });
    </script>
</body>
</html>